]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Fix output of LD_SHOW_AUXV=1.
[thirdparty/glibc.git] / ChangeLog
1 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
2
3 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
4 call _dl_procinfo.
5 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
6 Ignore types other than AT_HWCAP.
7 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
8 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
9 Likewise.
10 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
11 in the case of falling back to generic output mechanism.
12 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
13 Likewise.
14
15 2019-03-12 Florian Weimer <fweimer@redhat.com>
16
17 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
18
19 2019-03-12 Florian Weimer <fweimer@redhat.com>
20
21 [BZ #24047]
22 resolv: Enable full ICMP errors for UDP DNS sockets
23 * resolv/res_enable_icmp.c: New file.
24 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
25 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
26 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
27 socket.
28
29 2019-03-11 Mao Han <han_mao@c-sky.com>
30
31 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
32 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
33
34 2019-03-11 Mao Han <han_mao@c-sky.com>
35
36 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
37 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
38 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
39
40 2019-03-11 Mao Han <han_mao@c-sky.com>
41
42 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
43 directly.
44 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
45 definition.
46
47 2019-03-11 Mao Han <han_mao@c-sky.com>
48
49 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
50 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
51 in mcontext_t
52
53 2019-03-08 Mike FABIAN <mfabian@redhat.com>
54
55 [BZ #24307]
56 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
57 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
58 Unicode 12.0.0.
59 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
60 * localedata/unicode-gen/PropList.txt: Likewise.
61 * localedata/unicode-gen/UnicodeData.txt: Likewise.
62 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
63 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
64 * localedata/charmaps/UTF-8: Regenerate.
65 * localedata/locales/i18n_ctype: Likewise.
66 * localedata/locales/tr_TR: Likewise.
67 * localedata/locales/translit_circle: Likewise.
68 * localedata/locales/translit_cjk_compat: Likewise.
69 * localedata/locales/translit_combining: Likewise.
70 * localedata/locales/translit_compat: Likewise.
71 * localedata/locales/translit_font: Likewise.
72 * localedata/locales/translit_fraction: Likewise.
73
74 2019-03-07 Joseph Myers <joseph@codesourcery.com>
75
76 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
77 than after operators.
78 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
79 (setitimer_locked): Likewise.
80 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
81 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
82 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
83 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
84 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
85 (PPC_CPU_SUPPORTED): Likewise.
86 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
87 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
88 (stat_overflow): Likewise.
89 (statfs_overflow): Likewise.
90 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
91 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
92 (eq_ttyname_r): Likewise.
93 (run_chroot_tests): Likewise.
94
95 2019-03-07 Florian Weimer <fweimer@redhat.com>
96
97 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
98 header check.
99
100 2019-03-07 Martin Liska <mliska@suse.cz>
101
102 * math/Makefile: Change location where math-vector-fortran.h is
103 installed.
104 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
105 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
106 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
107 * scripts/check-installed-headers.sh: Skip Fortran header files.
108 * scripts/check-wrapper-headers.py: Likewise.
109
110 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
111
112 * nptl/nptl-init.c (__have_futex_clock_realtime,
113 __have_futex_clock_realtime): Remove definition.
114 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
115 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
116 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
117 __ASSUME_FUTEX_CLOCK_REALTIME support.
118 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
119 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
120 * sysdeps/unix/sysv/linux/kernel-features.h
121 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
122 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
123 Adjust comment.
124
125 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
126
127 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
128 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
129 __GI___wcscpy and wcscpy.
130
131 2019-03-04 Florian Weimer <fweimer@redhat.com>
132
133 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
134 declaration.
135 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
136 defined.
137
138 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
139
140 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
141 * sysdeps/s390/s390-32/sysdep.h: Likewise.
142
143 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
144
145 [BZ #24162]
146 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
147 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
148
149 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
150
151 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
152 tests.
153 (do_test): Likewise.
154 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
155 (do_test_call_varg): Likewise.
156 (do_test_call_rarg): Likewise.
157 * sysdeps/ieee754/ldbl-opt/Makefile
158 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
159 tst-nldbl-error.
160 ($(objpfx)tst-nldbl-warn.c): New rule.
161 ($(objpfx)tst-nldbl-error.c): Likewise.
162 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
163 New variables.
164
165 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
166
167 [BZ #23984]
168 * include/bits/error-ldbl.h: New file.
169 * include/error.h: Include stdarg.h. Declare internal functions
170 __error_internal and __error_at_line_internal.
171 * misc/Makefile (headers): Add bits/error-ldbl.h.
172 * misc/bits/error-ldbl.h: New file.
173 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
174 avoid the inclusion of bits/error.h.
175 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
176 and __nldbl_error_at_line.
177 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
178 (__nldbl_error, __ndlbl_error_at_line): New functions.
179 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
180 Redirect error and error_at_line.
181 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
182 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
183 Likewise.
184 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
185 Likewise.
186 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
187 Likewise.
188 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
189 Likewise.
190 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
191 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
192 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
193
194 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
195
196 [BZ #23984]
197 * include/bits/err-ldbl.h: New file.
198 * include/err.h: Add prototypes for the internal functions:
199 __vwarnx_internal and __vwarn_internal.
200 * misc/Makefile (headers): Add bits/err-ldbl.h.
201 * misc/bits/err-ldbl.h: New file.
202 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
203 defined, i.e.: when -mlong-double-64 is in use.
204 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
205 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
206 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
207 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
208 (VA_CALL): New macro.
209 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
210 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
211 functions.
212 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
213 declare prototypes for the new functions.
214 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
216 Likewise.
217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
218 Likewise.
219 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
220 Likewise.
221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
222 Likewise.
223 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
224 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
225 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
226
227 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
228
229 * sysdeps/ieee754/ldbl-opt/Makefile
230 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
231 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
232 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
233
234 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
235
236 [BZ #23983]
237 * argp/Makefile (headers): Add bits/argp-ldbl.h.
238 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
239 * argp/bits/argp-ldbl.h: New file.
240 * include/argp.h: Include stdarg.h. Add prototypes for internal
241 functions: __argp_error_internal and __argp_failure_internal.
242 * include/bits/argp-ldbl.h: New file.
243 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
244 __nldbl_argp_error and __nldbl_argp_failure.
245 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
246 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
248 Redirect argp_error and argp_failure calls.
249 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
250 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
251 Likewise.
252 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
253 Likewise.
254 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
255 Likewise.
256 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
257 Likewise.
258 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
259 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
260 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
261
262 2019-03-01 Florian Weimer <fweimer@redhat.com>
263
264 [BZ #20419]
265 * elf/tst-big-note-lib.S: Create a syntactically valid note.
266 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
267 code, to avoid creating an ABI tag note.
268 (modules-names-nobuild): Add tst-big-note-lib.
269
270 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
271
272 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
273 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
274
275 2019-03-01 Florian Weimer <fweimer@redhat.com>
276
277 [BZ #20271]
278 * sysdeps/unix/sysv/linux/netlink_assert_response.c
279 (__netlink_assert_response): Add additional missing newlines.
280
281 2019-02-28 Joseph Myers <joseph@codesourcery.com>
282
283 * sysdeps/powerpc/powerpc32/dl-machine.c
284 (__elf_machine_fixup_plt): Use space before '('.
285 (__process_machine_rela): Likewise.
286 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
287 Likewise.
288 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
289 Likewise.
290 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
291 Likewise.
292 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
293 (pattern): Likewise.
294 (delta): Likewise.
295 (check_result): Likewise.
296 (check_excepts): Likewise.
297 (check_op): Likewise.
298 (fail_xr): Likewise.
299 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
300 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
301 (SCNHSZ): Likewise.
302 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
303 Likewise.
304 (ARGS): Likewise.
305 (__makecontext): Likewise.
306 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
307 Likewise.
308
309 2019-02-28 Florian Weimer <fweimer@redhat.com>
310
311 [BZ #23937]
312 elf: Add test with a local IFUNC resolver.
313 * elf/ifuncmain9.c: New file.
314 * elf/ifuncmain9pic.c: Likewise.
315 * elf/ifuncmain9picstatic.c: Likewise.
316 * elf/ifuncmain9pie.c: Likewise.
317 * elf/ifuncmain9static.c: Likewise.
318 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
319 ifuncmain9static, ifuncmain9picstatic.
320 * elf/Makefile [multi-arch && build-shared] (tests-internal):
321 Add ifuncmain9, ifuncmain9pic.
322 * elf/Makefile [multi-arch && build-shared && have-fpie]
323 (ifunc-pie-tests): Add ifuncmain9pie.
324 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
325 (CFLAGS-ifuncmain9picstatic.c): Likewise.
326 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
327
328 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
329
330 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
331 * configure: Regenerated.
332 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
333
334 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
335
336 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
337 symbol as __wcspcy instead of wcscpy.
338
339 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
340
341 * include/stdio.h (__renameat2): New hidden prototype.
342 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
343 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
344 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
345 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
346
347 2019-02-27 Joseph Myers <joseph@codesourcery.com>
348
349 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
350 if statement.
351
352 * benchtests/bench-strcpy.c (do_test): Use space before '('.
353 * benchtests/bench-string.h (cmdline_process_function): Likewise.
354 * benchtests/bench-strlen.c (do_test): Likewise.
355 (test_main): Likewise.
356 * catgets/gencat.c (read_old): Likewise.
357 * elf/cache.c (load_aux_cache): Likewise.
358 * iconvdata/bug-iconv8.c (do_test): Likewise.
359 * math/test-tgmath-ret.c (do_test): Likewise.
360 * nis/nis_call.c (rec_dirsearch): Likewise.
361 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
362 * nptl/tst-audit-threads.c (do_test): Likewise.
363 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
364 * nss/nss_test1.c (init): Likewise.
365 * nss/test-netdb.c (test_hosts): Likewise.
366 * posix/execvpe.c (maybe_script_execute): Likewise.
367 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
368 * stdio-common/tst-printf.c (do_test): Likewise.
369 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
370 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
371 * stdlib/qsort.c (STACK_SIZE): Likewise.
372 * stdlib/test-canon.c (do_test): Likewise.
373 * stdlib/tst-swapcontext1.c (do_test): Likewise.
374 * string/memcmp.c (OPSIZ): Likewise.
375 * string/test-strcpy.c (do_test): Likewise.
376 (do_random_tests): Likewise.
377 * string/test-strlen.c (do_test): Likewise.
378 (test_main): Likewise.
379 * string/test-strrchr.c (do_test): Likewise.
380 (do_random_tests): Likewise.
381 * string/tester.c (test_memrchr): Likewise.
382 (test_memchr): Likewise.
383 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
384 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
385 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
386 (read_encoded_value_with_base): Likewise.
387 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
388 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
389 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
390 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
391 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
392 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
393 Likewise.
394 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
395 Likewise.
396 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
397 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
398 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
399 Likewise.
400 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
401 Likewise.
402 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
403 Likewise.
404 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
405 Likewise.
406 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
407 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
408 (FP_XSTATE_MAGIC2_SIZE): Likewise.
409 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
410 * time/test_time.c (main): Likewise.
411
412 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
413
414 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
415
416 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
417 wmemcpy.
418
419 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
420 wmemcpy.
421
422 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
423
424 * include/wchar.h (__wcscpy): New prototype.
425 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
426 (__wcscpy): Route internal symbol to generic implementation.
427 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
428 Add internal __wcscpy alias.
429 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
430 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
431 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
432 * wcsmbs/wcscpy.c (wcscpy): Add
433 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
434 use generic implementation.
435 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
436
437 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
438 wmemset.
439
440 * sysdeps/m68k/wcpcpy.c: Remove file.
441 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
442
443 2019-02-26 Joseph Myers <joseph@codesourcery.com>
444
445 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
446 than after operators.
447 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
448 * sysdeps/mach/hurd/getcwd.c
449 (__hurd_canonicalize_directory_name_internal): Likewise.
450 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
451 (pthread_mutex_consistent): Likewise.
452 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
453 Likewise.
454 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
455 (__pthread_mutex_transfer_np): Likewise.
456 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
457 (__pthread_mutex_unlock): Likewise.
458 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
459 (mtx_owned_p): Likewise.
460 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
461 (pthread_mutexattr_getrobust): Likewise.
462 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
463 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
464 Likewise.
465 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
466 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
467 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
468 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
469 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
470 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
471 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
472 Likewise.
473 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
474 Likewise.
475 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
476 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
477 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
478 (____longjmp_chk): Likewise.
479 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
480 Likewise.
481 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
482 (INTERNAL_SYSCALL): Likewise.
483 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
484 (INTERNAL_SYSCALL): Likewise.
485 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
486 (__get_clockfreq_via_cpuinfo): Likewise.
487
488 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
489 comments.
490 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
491 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
492 (WORD_COPY_BWD): Likewise.
493 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
494 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
495 Likewise.
496 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
497 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
498 comment.
499 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
500
501 2019-02-25 Joseph Myers <joseph@codesourcery.com>
502
503 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
504 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
505 rather than after operators.
506 * elf/cache.c (print_cache): Likewise.
507 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
508 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
509 * hurd/hurdinit.c (_hurd_setproc): Likewise.
510 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
511 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
512 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
513 (reauth_proc): Likewise.
514 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
515 (__file_name_split_at): Likewise.
516 (__directory_name_split_at): Likewise.
517 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
518 * hurd/port2fd.c (_hurd_port2fd): Likewise.
519 * iconv/gconv_dl.c (do_print): Likewise.
520 * inet/netinet/in.h (struct sockaddr_in): Likewise.
521 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
522 * locale/setlocale.c (new_composite_name): Likewise.
523 * malloc/memusagestat.c (main): Likewise.
524 * misc/fstab.c (fstab_convert): Likewise.
525 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
526 Likewise.
527 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
528 (getgrent_next_file): Likewise.
529 (internal_getgrnam_r): Likewise.
530 (internal_getgrgid_r): Likewise.
531 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
532 Likewise.
533 (internal_getgrent_r): Likewise.
534 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
535 (getpwent_next_nss): Likewise.
536 (getpwent_next_file): Likewise.
537 (internal_getpwnam_r): Likewise.
538 (internal_getpwuid_r): Likewise.
539 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
540 Likewise.
541 (getspent_next_nss): Likewise.
542 (internal_getspnam_r): Likewise.
543 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
544 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
545 * string/strchr.c (STRCHR): Likewise.
546 * string/strchrnul.c (STRCHRNUL): Likewise.
547 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
548 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
549 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
550 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
551 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
552 Likewise.
553 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
554 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
555 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
556 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
557 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
558 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
559 (open_file): Likewise.
560 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
561 (pthread_mutexattr_setprotocol): Likewise.
562 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
563 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
564 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
565 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
566 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
567 Likewise.
568 (elf_machine_rela): Likewise.
569 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
570 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
571 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
572 * sysdeps/posix/rename.c (rename): Likewise.
573 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
574 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
575 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
576 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
577 * sysdeps/unix/grantpt.c (grantpt): Likewise.
578 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
579 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
580 Likewise.
581 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
582 Likewise.
583 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
584 * time/tzfile.c (__tzfile_compute): Likewise.
585
586 2019-02-22 Joseph Myers <joseph@codesourcery.com>
587
588 * benchtests/bench-memmem.c (simple_memmem): Break lines before
589 rather than after operators.
590 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
591 * crypt/md5.c (md5_finish_ctx): Likewise.
592 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
593 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
594 * elf/cache.c (load_aux_cache): Likewise.
595 * elf/dl-load.c (open_verify): Likewise.
596 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
597 * elf/readelflib.c (process_elf_file): Likewise.
598 * elf/rtld.c (dl_main): Likewise.
599 * elf/sprof.c (generate_call_graph): Likewise.
600 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
601 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
602 * hurd/dtable.c (reauth_dtable): Likewise.
603 * hurd/getdport.c (__getdport): Likewise.
604 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
605 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
606 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
607 Likewise.
608 * hurd/hurdioctl.c (fioctl): Likewise.
609 * hurd/hurdselect.c (_hurd_select): Likewise.
610 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
611 (STOPSIGS): Likewise.
612 * hurd/hurdstartup.c (_hurd_startup): Likewise.
613 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
614 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
615 * hurd/msgportdemux.c (msgport_server): Likewise.
616 * hurd/setauth.c (_hurd_setauth): Likewise.
617 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
618 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
619 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
620 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
621 * login/tst-utmp.c (do_check): Likewise.
622 (simulate_login): Likewise.
623 * mach/lowlevellock.h (lll_lock): Likewise.
624 (lll_trylock): Likewise.
625 * math/test-fenv.c (ALL_EXC): Likewise.
626 * math/test-fenvinline.c (ALL_EXC): Likewise.
627 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
628 * nis/nis_call.c (__do_niscall3): Likewise.
629 * nis/nis_callback.c (cb_prog_1): Likewise.
630 * nis/nis_defaults.c (searchaccess): Likewise.
631 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
632 * nis/nis_ismember.c (internal_ismember): Likewise.
633 * nis/nis_local_names.c (nis_local_principal): Likewise.
634 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
635 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
636 Likewise.
637 * nis/ypclnt.c (yp_match): Likewise.
638 (yp_first): Likewise.
639 (yp_next): Likewise.
640 (yp_master): Likewise.
641 (yp_order): Likewise.
642 * nscd/hstcache.c (cache_addhst): Likewise.
643 * nscd/initgrcache.c (addinitgroupsX): Likewise.
644 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
645 (internal_getpwuid_r): Likewise.
646 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
647 * posix/glob.h (__GLOB_FLAGS): Likewise.
648 * posix/regcomp.c (peek_token): Likewise.
649 (peek_token_bracket): Likewise.
650 (parse_expression): Likewise.
651 * posix/regexec.c (sift_states_iter_mb): Likewise.
652 (check_node_accept_bytes): Likewise.
653 * posix/tst-spawn3.c (do_test): Likewise.
654 * posix/wordexp-test.c (testit): Likewise.
655 * posix/wordexp.c (parse_tilde): Likewise.
656 (exec_comm): Likewise.
657 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
658 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
659 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
660 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
661 * stdio-common/tst-fileno.c (do_test): Likewise.
662 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
663 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
664 * stdlib/strtod_l.c (round_and_return): Likewise.
665 (____STRTOF_INTERNAL): Likewise.
666 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
667 * string/strcspn.c (STRCSPN): Likewise.
668 * string/test-memmem.c (simple_memmem): Likewise.
669 * termios/tcsetattr.c (tcsetattr): Likewise.
670 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
671 * time/asctime.c (asctime_internal): Likewise.
672 * time/strptime_l.c (__strptime_internal): Likewise.
673 * time/sys/time.h (timercmp): Likewise.
674 * time/tzfile.c (__tzfile_compute): Likewise.
675
676 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
677
678 [BZ #21915]
679 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
680
681 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
682
683 * argp/argp-help.c (__argp_error_internal): New function,
684 renamed from __argp_error, but that takes a 'mode_flags'
685 parameter to control the format of long double parameters.
686 (__argp_error): Converted into a call __argp_error_internal.
687 (__argp_failure_internal): New function, renamed from
688 __argp_failure, but that takes a 'mode_flags' parameter.
689 (__argp_failure): Converted into a call __argp_failure_internal.
690 * misc/err.c (__vwarnx_internal): New function, renamed from
691 vwarnx, but that takes a 'mode_flags' parameter.
692 (vwarnx): Converted into a call to __vwarnx_internal.
693 (__vwarn_internal): New function, renamed from vwarn, but that
694 takes a 'mode_flags' parameter.
695 (vwarn): Converted into a call to __vwarn_internal.
696 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
697 call to __vfxprintf with 'mode_flags'.
698 (__error_internal): New function, renamed from error, but that
699 takes a 'mode_flags' parameter.
700 (error): Converted into a call to __error_internal.
701 (__error_at_line_internal): New function, renamed from
702 error_at_line, but that takes a 'mode_flags' parameter.
703 (error_at_line): Converted into a call to
704 __error_at_line_internal.
705 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
706 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
707 Likewise.
708
709 2019-02-20 Martin Liska <mliska@suse.cz>
710
711 * math/Makefile: Install math-vector-fortran.h.
712 * bits/math-vector-fortran.h: New file.
713 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
714
715 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
716
717 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
718 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
719
720 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
721
722 * nptl/pthread_mutex_trylock.c: Fix comment.
723
724 2019-02-19 Carlos O'Donell <carlos@redhat.com>
725
726 * nptl/pthread_tryjoin.c: Fix comment.
727
728 2019-02-18 Joseph Myers <joseph@codesourcery.com>
729
730 [BZ #24231]
731 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
732 after R_SPARC_H34 case.
733
734 2019-02-18 Florian Weimer <fweimer@redhat.com>
735
736 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
737 (getanswer): Do not call Dprintf.
738 (res_gethostbyname2_context): Likewise.
739 (res_gethostbyaddr_context): Likewise.
740
741 2019-02-18 Florian Weimer <fweimer@redhat.com>
742
743 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
744 declaration.
745 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
746 Remove definitions.
747 * libio/stdfiles.c: Update comment.
748 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
749 set _IO_stdin, _IO_stdout, _IO_stderr.
750 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
751 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
752 inline function.
753 (_IO_deallocate_file): New inline function.
754 * libio/iolibio.h (_IO_vprintf): Remove definition.
755 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
756 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
757 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
758 _IO_legacy_file.
759 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
760 __builtin_expect. Use _IO_legacy_file.
761
762 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
763
764 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
765 Initialize ctid with a known value and remove update of ctid
766 after clone.
767 (wait_tid): Adjust arguments and call futex_wait with ctid_val
768 as assumed current value of ctid_ptr.
769
770 2019-02-15 Florian Weimer <fweimer@redhat.com>
771
772 Check that non-sysdeps headers have wrapper headers.
773 * scripts/check-wrapper-headers.py: New file.
774 * Makefile (tests-special): Add check-wrapper-headers.out.
775 (check-wrapper-headers.out): New target.
776 * Rules (tests-special): Add check-wrapper-headers.out.
777 (check-wrapper-headers.out): New target.
778
779 2019-02-15 Florian Weimer <fweimer@redhat.com>
780
781 Add missing header wrappers under include/.
782 * include/ar.h: New file.
783 * include/bits/mqueue2.h: Likewise.
784 * include/bits/stdio.h: Likewise.
785 * include/bits/stdio2.h: Likewise.
786 * include/fstab.h: Likewise.
787 * include/fts.h: Likewise.
788 * include/lastlog.h: Likewise.
789 * include/netinet/icmp6.h: Likewise.
790 * include/netinet/igmp.h: Likewise.
791 * include/netinet/ip6.h: Likewise.
792 * include/re_comp.h: Likewise.
793 * include/regexp.h: Likewise.
794 * include/rpcsvc/bootparam.h: Likewise.
795 * include/rpcsvc/yp_prot.h: Likewise.
796 * include/sys/random.h: Likewise.
797 * include/sys/stropts.h: Likewise.
798 * include/sys/ttychars.h: Likewise.
799 * include/sys/vfs.h: Likewise.
800 * include/wait.h: Likewise.
801
802 2019-02-15 Florian Weimer <fweimer@redhat.com>
803
804 * nptl_db/proc_service.h: Move to ...
805 * sysdeps/nptl/proc_service.h: ... here.
806 * nptl_db/thread_db.h: Move to ...
807 * sysdeps/nptl/thread_db.h: ... here.
808 * nptl/descr.h: Include <thread_db.h>.
809
810 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
811
812 * io/Makefile (tests): Add tst-lockf.
813 * io/lockf.c (lockf): Use __fcntl and only define for
814 !__OFF_T_MATCHES_OFF64_T.
815 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
816 __OFF_T_MATCHES_OFF64_T case.
817 * io/tst-lockf.c: New file.
818 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
819 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
820 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
821 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
822 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
823 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
824 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
825 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
826 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
827
828 2019-02-15 Florian Weimer <fweimer@redhat.com>
829
830 [BZ #24211]
831 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
832 pd->result after the thread descriptor has been freed.
833
834 2019-02-15 Joseph Myers <joseph@codesourcery.com>
835
836 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
837 from function return type.
838
839 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
840
841 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
842
843 * scripts/test_printers_common.py: Set TERM to a known harmless
844 value.
845
846 2019-02-14 Joseph Myers <joseph@codesourcery.com>
847
848 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
849 (xdr_u_int): Likewise.
850 (xdr_enum): Likewise.
851 (xdr_bytes): Reword fall-through comment.
852 (xdr_string): Likewise.
853
854 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
855
856 [BZ #2421]
857 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
858 (tests): Add tst-join8 tst-join9.
859 * nptl/lll_timedwait_tid.c: Remove file.
860 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
861 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
862 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
863 * nptl/pthread_join_common.c (timedwait_tid): New function.
864 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
865 is set.
866 * nptl/tst-join5.c (thread_join): New function.
867 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
868 check.
869 * nptl/tst-join8.c: New file.
870 * nptl/tst-join9.c: Likewise.
871 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
872 lll_futex_timed_wait_cancel): Add generic macros.
873 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
874 Remove definitions.
875 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
876 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
877 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
878 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
879 Remove function.
880 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
881 Likewise.
882 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
883 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
884 (lll_futex_timed_wait_cancel): New macro.
885
886 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
887
888 * benchtests/Makefile: Add malloc-simple benchmark.
889 * benchtests/bench-malloc-simple.c: New benchmark.
890
891 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
892
893 * benchtests/bench-memmove.c (do_one_test): Remove unused
894 ORIG_SRC.
895 (do_test): Adjust.
896 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
897 ORIG_SRC.
898 (do_test): Adjust.
899
900 2019-01-13 Jim Wilson <jimw@sifive.com>
901
902 [BZ #24040]
903 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
904 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
905 (func): New.
906 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
907 call func directly.
908 * nptl/Makefile (tests): Add tst-unwind-thread.
909 (CFLAGS-tst-unwind-thread.c): Define.
910 * nptl/tst-unwind-thread.c: New file.
911 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
912 as undefined.
913
914 2019-02-13 Joseph Myers <joseph@codesourcery.com>
915
916 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
917 comment wording.
918 * nis/nis_call.c (__do_niscall3): Likewise.
919
920 * catgets/gencat.c (normalize_line): Use braces around empty
921 'else' body.
922 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
923 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
924 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
925 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
926 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
927 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
928 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
929 definition.
930
931 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
932 execlp returns.
933
934 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
935
936 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
937 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
938 * benchtests/bench-strchr.c (stupid_strchr): Remove.
939 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
940 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
941 * benchtests/bench-strlen.c (builtin_strlen): Remove.
942 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
943 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
944 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
945 * benchtests/bench-strspn.c (stupid_strspn): Remove.
946 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
947 * benchtests/bench-bcopy.c: Delete file.
948 * benchtests/bench-bzero.c: Likewise.
949 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
950 (simple_memccpy): Remove.
951 (generic_memccpy): Add function.
952 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
953 * benchtests/bench-memmove.c (simple_bcopy): Remove.
954 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
955 (generic_mempcpy): Add new function.
956 * benchtests/bench-memset.c (simple_bzero): Remove.
957 (builtin_bzero): Remove.
958 (builtin_memset): Remove.
959 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
960 (generic_rawmemchr): Add new function.
961
962 2019-02-12 Florian Weimer <fweimer@redhat.com>
963
964 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
965
966 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
967
968 [BZ #24122]
969 * elf/Makefile (tests): Add tst-audit13.
970 (modules-names): Add tst-audit13mod1.
971 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
972 rule.
973 * elf/tst-audit13.c: New file.
974 * elf/tst-audit13mod1.c: Likewise.
975
976 2019-02-12 Florian Weimer <fweimer@redhat.com>
977
978 [BZ #24122]
979 * elf/rtld.c (unload_audit_module): New function.
980 (report_audit_module_load_error): Likewise.
981 (load_audit_module): Likewise. Extracted from dl_main. Call
982 _dl_close if the laversion symbol cannot be found. Use early
983 returns for error handling. Add malloc error check. Check for a
984 zero return value from la_version. Remove spurious comment about
985 static TLS initialization. Remove useless casts.
986 (notify_audit_modules_of_loaded_object): New function. Extracted
987 from dl_main.
988 (load_audit_module): Likewise.
989 (dl_main): Call load_audit_modules.
990
991 2019-02-12 Joseph Myers <joseph@codesourcery.com>
992
993 * elf/dl-exception.c (_dl_exception_create_format): Add
994 fall-through comments.
995 * elf/ldconfig.c (parse_conf_include): Likewise.
996 * elf/rtld.c (print_statistics): Likewise.
997 * locale/programs/charmap.c (parse_charmap): Likewise.
998 * misc/mntent_r.c (__getmntent_r): Likewise.
999 * posix/wordexp.c (parse_arith): Likewise.
1000 (parse_backtick): Likewise.
1001 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1002 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1003 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1004
1005 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1006
1007 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1008 Use float instead of double.
1009
1010 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1011
1012 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1013
1014 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1015
1016 * sysdeps/powerpc/bits/mathinline.h: Remove.
1017
1018 2019-02-08 Florian Weimer <fweimer@redhat.com>
1019
1020 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1021 * math/bits/math-finite.h: Move to ...
1022 * bits/math-finite.h: ... here.
1023
1024 2019-02-08 Florian Weimer <fweimer@redhat.com>
1025
1026 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1027 * bits/unistd_ext.h: here.
1028
1029 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1030
1031 [BZ #21915]
1032 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1033 * nss/tst-nss-files-hosts-long.c: New file.
1034 * nss/tst-nss-files-hosts-long.root: New directory.
1035 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1036 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1037
1038 2019-02-08 Florian Weimer <fweimer@redhat.com>
1039
1040 * include/bits/unistd_ext.h: Remove file.
1041 * posix/bits/unistd_ext.h: Move to ...
1042 * sysdeps/generic/bits/unistd_ext.h: ... here.
1043
1044 2019-02-08 Florian Weimer <fweimer@redhat.com>
1045
1046 * include/bits/unistd_ext.h: New file.
1047
1048 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1049
1050 * time/tst-strftime2.c: Use array_length macros instead of magic
1051 numbers.
1052
1053 2019-02-08 Florian Weimer <fweimer@redhat.com>
1054
1055 [BZ #24161]
1056 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1057 argument.
1058 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1059 locking if the new do_locking argument is true.
1060 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1061 __run_fork_handlers.
1062
1063 2019-02-08 Florian Weimer <fweimer@redhat.com>
1064
1065 [BZ #6399]
1066 Linux: Add gettid system call wrapper.
1067 * posix/Makefile (headers): Add bits/unistd_ext.h.
1068 * posix/bits/unistd_ext.h: New file.
1069 * posix/unistd.h: Include it.
1070 * manual/process.texi (Process Identification): Document gettid.
1071 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1072 tst-gettid, tst-gettid-kill.
1073 (tst-gettid): Link with $(shared-thread-library).
1074 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1075 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1076 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1077 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1078 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1079 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1080 Add gettid.
1081 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1082 Likewise.
1083 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1084 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1085 Likewise.
1086 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1087 Likewise.
1088 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1089 Likewise.
1090 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1091 Likewise.
1092 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1093 Likewise.
1094 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1095 Likewise.
1096 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1097 Likewise.
1098 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1099 (GLIBC_2.30): Likewise.
1100 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1101 (GLIBC_2.30): Likewise.
1102 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1103 (GLIBC_2.30): Likewise.
1104 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1105 (GLIBC_2.30): Likewise.
1106 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1107 Likewise.
1108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1109 (GLIBC_2.30): Likewise.
1110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1111 (GLIBC_2.30): Likewise.
1112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1113 (GLIBC_2.30): Likewise.
1114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1115 (GLIBC_2.30): Likewise.
1116 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1117 Likewise.
1118 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1119 Likewise.
1120 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1121 Likewise.
1122 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1123 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1124 Likewise.
1125 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1126 Likewise.
1127 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1128 Likewise.
1129 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1130 Likewise.
1131 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1132
1133 2019-02-07 Florian Weimer <fweimer@redhat.com>
1134
1135 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1136 compatibility symbols.
1137
1138 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1139
1140 [BZ #24180]
1141 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1142 Add compiler barriers and comments.
1143
1144 2019-02-07 Florian Weimer <fweimer@redhat.com>
1145
1146 * include/array_length.h (array_length): Do not use a statement
1147 expression and _Static_assert, so that array_length can be used at
1148 file scope and as a constant expression.
1149
1150 2019-02-07 Florian Weimer <fweimer@redhat.com>
1151
1152 * support/xdlfcn.h (xdlmopen): Declare.
1153 * support/xdlmopen.c: New file.
1154 * support/Makefile (libsupport-routines): Add xdlmopen.
1155
1156 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1157
1158 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1159 before return type, without separate inline.
1160 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1161 * elf/dl-tunables.h (tunable_is_name): Likewise.
1162 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1163 (do_set_top_pad): Likewise.
1164 (do_set_mmap_threshold): Likewise.
1165 (do_set_mmaps_max): Likewise.
1166 (do_set_mallopt_check): Likewise.
1167 (do_set_perturb_byte): Likewise.
1168 (do_set_arena_test): Likewise.
1169 (do_set_arena_max): Likewise.
1170 (do_set_tcache_max): Likewise.
1171 (do_set_tcache_count): Likewise.
1172 (do_set_tcache_unsorted_limit): Likewise.
1173 * nis/nis_subr.c (count_dots): Likewise.
1174 * nptl/allocatestack.c (advise_stack_range): Likewise.
1175 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1176 (do_sin): Likewise.
1177 (reduce_sincos): Likewise.
1178 (do_sincos): Likewise.
1179 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1180 (do_set_elision_enable): Likewise.
1181 (TUNABLE_CALLBACK_FNDECL): Likewise.
1182
1183 2019-02-06 Florian Weimer <fweimer@redhat.com>
1184
1185 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1186 (xdlsym): Use dlerror to detect a NULL symbol.
1187
1188 2019-02-06 Florian Weimer <fweimer@redhat.com>
1189
1190 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1191 <stap-probe.h>.
1192 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1193
1194 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1195
1196 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1197
1198 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1199
1200 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1201 __wmemcmp and weak alias to wmemcmp.
1202
1203 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1204
1205 [BZ #23403]
1206 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1207 TLS_TCB_AT_TP tls variant.
1208 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1209 Add alignment checks.
1210 * support/Makefile (libsupport-routines): Add xposix_memalign and
1211 xpthread_setstack.
1212 * support/support.h: Add xposix_memalign.
1213 * support/xthread.h: Add xpthread_attr_setstack.
1214 * support/xposix_memalign.c: New File.
1215 * support/xpthread_attr_setstack.c: Likewise.
1216
1217 2019-02-05 Florian Weimer <fweimer@redhat.com>
1218
1219 [BZ #24164]
1220 arm: Use "nr" constraint for Systemtap probes, to avoid the
1221 compiler using memory operands for constants, due to the "o"
1222 alternative in the default "nor" constraint.
1223 * include/stap-probe.h [USE_STAP_PROBE]: Include
1224 <stap-probe-machine.h>
1225 * sysdeps/generic/stap-probe-machine.h: New file.
1226 * sysdeps/arm/stap-probe-machine.h: Likewise.
1227
1228 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1229
1230 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1231 with 0, not tcache->entries[tc_idx].
1232
1233 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1234 once.
1235
1236 2019-02-04 Andreas Schwab <schwab@suse.de>
1237
1238 [BZ #16976]
1239 [BZ #17396]
1240 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1241 looking up collating elements match against (wide) character
1242 sequence instead of name. Correct alignment adjustment.
1243 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1244 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1245 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1246 (LOCALES): Add cs_CZ.ISO-8859-2.
1247 * posix/tst-fnmatch4.c: New file.
1248 * posix/tst-fnmatch5.c: New file.
1249 * include/wchar.h (__wmemcmp): Declare.
1250 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1251 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1252 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1253 * sysdeps/s390/wmemcmp.c: Likewise.
1254
1255 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 [BZ #24155]
1258 CVE-2019-7309
1259 * NEWS: Updated for CVE-2019-7309.
1260 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1261 upper 32 bits of RDX register for x32. Use unsigned Jcc
1262 instructions, instead of signed.
1263 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1264 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1265
1266 2019-02-04 Florian Weimer <fweimer@redhat.com>
1267
1268 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1269 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1270 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1271 Likewise.
1272 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1273 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1274 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1275 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1276 Likewise.
1277 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1278 Likewise.
1279 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1280 Likewise.
1281 (posix_spawn_file_actions_addopen): Likewise.
1282 (posix_spawn_file_actions_addclose): Likewise.
1283 (posix_spawn_file_actions_adddup2): Likewise.
1284 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1285 qualifiers.
1286 (posix_spawn_file_actions_addfchdir_np): Likewise.
1287
1288 2019-02-04 David Newall <glibc@davidnewall.com>
1289
1290 elf: Implement --preload option for the dynamic linker.
1291 * elf/rtld.c (preloadarg): New variable.
1292 (handle_preload_list): Pass through “where” argument to
1293 do_preload.
1294 (dl_main): Handle "--preload" and add second call to
1295 handle_preload_list.
1296 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1297 (tst-rtld-preload-OBJS): Set variable.
1298 (tst-rtld-preload.out): New target.
1299 * elf/tst-rtld-preload.sh: New file.
1300
1301 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1302
1303 * Makefile (testrun.sh): Exit in case of incorrect argument.
1304
1305 2019-02-04 Florian Weimer <fweimer@redhat.com>
1306
1307 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1308 alignment gaps.
1309
1310 2019-02-03 Florian Weimer <fweimer@redhat.com>
1311
1312 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1313 implicit overflow checks.
1314
1315 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1316
1317 * stdlib/isomac.c: Include <unistd.h>.
1318
1319 2019-02-03 Florian Weimer <fweimer@redhat.com>
1320
1321 * include/time.h (__tzfile_default): Use int, not long int, for
1322 the GMT offsets.
1323 * time/tzfile.c (struct ttinfo): Change type of the offset member
1324 to int.
1325 (__tzfile_read): Remove useless cast.
1326 (__tzfile_default): Adjust prototype.
1327 * time/tzset.c (tz_rule): Change type of the offset member to int.
1328 (parse_offset): Change the type of the sign variable to int.
1329
1330 2019-02-03 Florian Weimer <fweimer@redhat.com>
1331
1332 [BZ #24153]
1333 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1334 * libio/getchar.c (getchar): Likewise.
1335 * libio/getchar_u.c (getchar_unlocked): Likewise.
1336 * libio/getwchar.c (getwchar): Likewise.
1337 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1338 * libio/iogets.c (_IO_gets): Likewise.
1339 * libio/vscanf.c (_IO_vscanf): Likewise.
1340 * libio/vwscanf.c (__vwscanf): Likewise.
1341 * libio/tst-bz24153.c: New file.
1342 * libio/Makefile (tests): Add it.
1343
1344 2019-02-02 Florian Weimer <fweimer@redhat.com>
1345
1346 [BZ #14829]
1347 * manual/resource.texi (Basic Scheduling Functions): Add
1348 portability note. Change process to task throughout the section.
1349 Remove incorrect comment about sched_yield as it affects
1350 tasks/threads, not entire processes.
1351 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1352 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1353
1354 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1355
1356 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1357 * configure: Regenerated.
1358 * manual/install.texi (Tools for Compilation): Update minimum GCC
1359 version.
1360 * INSTALL: Regenerated.
1361
1362 2019-02-01 Florian Weimer <fweimer@redhat.com>
1363
1364 * support/support_test_compare_string.c
1365 (support_test_compare_string): Use "string" in error message.
1366 * support/tst-test_compare_string.c (do_test): Adjust.
1367
1368 2019-02-01 Florian Weimer <fweimer@redhat.com>
1369
1370 * support/support_format_address_family.c
1371 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1372
1373 2019-02-01 Florian Weimer <fweimer@redhat.com>
1374
1375 * manual/socket.texi (Internet Address Formats): Clarify the byte
1376 order of struct sockaddr_in, struct sockaddr_in6. Document
1377 sin6_flowinfo and sin6_scope_id.
1378
1379 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1380
1381 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1382 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1383 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1384 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1385 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1386 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1387
1388 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1389
1390 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1391 [!MEMCHR](MEMCHR): Set to __memchr.
1392 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1393 Add memchr_generic and memchr_nosimd.
1394 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1395 (__libc_ifunc_impl_list): Add memchr ifuncs.
1396 * sysdeps/aarch64/multiarch/memchr.c: New file.
1397 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1398 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1399
1400 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1401
1402 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1403 Add memset_emag.
1404 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1405 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1406 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1407 Add IS_EMAG check for ifunc dispatch.
1408 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1409 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1410
1411 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1412
1413 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1414 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1415 Add emag.
1416 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1417 New macro.
1418
1419 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1420
1421 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1422
1423 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1424
1425 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1426 syscall-template file.
1427
1428 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1429 Torvald Riegel <triegel@redhat.com>
1430 Rik Prohaska <prohaska7@gmail.com>
1431
1432 [BZ# 23844]
1433 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1434 tst-rwlock-trywrlock-stall.
1435 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1436 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1437 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1438 Set __wrphase_fute to 1 only if we started the write phase.
1439 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1440 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1441 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1442 * support/xpthread_rwlock_destroy.c: New file.
1443 * support/xthread.h: Declare xpthread_rwlock_destroy.
1444
1445 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1446
1447 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1448 version to 4.0.2.
1449
1450 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1451
1452 [BZ #24051]
1453 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1454 * libio/fileops.c (_IO_new_file_underflow): Likewise
1455 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1456 * libio/putchar.c (putchar): Likewise.
1457 * libio/putchar_u.c (putchar_unlocked): Likewise.
1458 * libio/putwchar.c (putchar): Likewise.
1459 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1460 * libio/tst-bz24051.c: New test.
1461 * libio/Makefile (tests): Add tst-bz24051
1462
1463 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1464
1465 regex: fix read overrun [BZ #24114]
1466 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1467 https://debbugs.gnu.org/34140
1468 * posix/regexec.c (proceed_next_node):
1469 Do not read past end of input buffer.
1470
1471 2019-01-31 Florian Weimer <fweimer@redhat.com>
1472
1473 [BZ #24059]
1474 * nss/nss_files/files-alias.c (get_next_alias): Handle
1475 continuation line without newline at the end.
1476 * nss/tst-nss-files-alias-truncated.c: New file.
1477 * nss/Makefile [$(build-shared)] (tests): Add
1478 tst-nss-files-alias-truncated.
1479 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1480 * support/namespace.h (struct support_chroot_configuration): Add
1481 aliases member.
1482 (struct support_chroot): Add path_aliases member.
1483 * support/support_chroot.c (support_chroot_create): Handle
1484 aliases.
1485 (support_chroot_free): Free path_aliases.
1486
1487 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1488
1489 * version.h (RELEASE): Set to "development".
1490 (VERSION): Set to "2.29.9000".
1491 * NEWS: Add section for 2.30.
1492
1493 * version.h (RELEASE): Set to "stable".
1494 (VERSION): Set to "2.29".
1495 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1496
1497 * NEWS: Add the list of bugs fixed in 2.29.
1498 * manual/contrib.texi: Update contributors list with some more
1499 names.
1500 * manual/install.texi: Update latest versions of packages
1501 tested.
1502 * INSTALL: Regenerated.
1503
1504 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1505
1506 * po/be.po: Update translations.
1507 * po/bg.po: Likewise.
1508 * po/ca.po: Likewise.
1509 * po/cs.po: Likewise.
1510 * po/da.po: Likewise.
1511 * po/de.po: Likewise.
1512 * po/el.po: Likewise.
1513 * po/eo.po: Likewise.
1514 * po/es.po: Likewise.
1515 * po/fi.po: Likewise.
1516 * po/fr.po: Likewise.
1517 * po/gl.po: Likewise.
1518 * po/hr.po: Likewise.
1519 * po/hu.po: Likewise.
1520 * po/ia.po: Likewise.
1521 * po/id.po: Likewise.
1522 * po/it.po: Likewise.
1523 * po/ja.po: Likewise.
1524 * po/ko.po: Likewise.
1525 * po/lt.po: Likewise.
1526 * po/nb.po: Likewise.
1527 * po/nl.po: Likewise.
1528 * po/pl.po: Likewise.
1529 * po/pt_BR.po: Likewise.
1530 * po/ru.po: Likewise.
1531 * po/rw.po: Likewise.
1532 * po/sk.po: Likewise.
1533 * po/sl.po: Likewise.
1534 * po/sv.po: Likewise.
1535 * po/tr.po: Likewise.
1536 * po/uk.po: Likewise.
1537 * po/vi.po: Likewise.
1538 * po/zh_CN.po: Likewise.
1539 * po/zh_TW.po: Likewise.
1540
1541 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1542
1543 [BZ #24130]
1544 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1545 of $f3 register on $y_is_neg path.
1546
1547 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1548
1549 [BZ #24110]
1550 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1551 sigaltstack.ss_flags.
1552
1553 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1554
1555 [BZ #23758]
1556 * manual/time.texi (strftime): Document "%Ey".
1557 * time/strftime_l.c (__strftime_internal): Set the default width
1558 padding with zero of "%Ey" to 2.
1559
1560 [BZ #24096]
1561 * manual/time.texi (strftime): Document "%EC" and "%EY".
1562 * time/Makefile (tests): Add tst-strftime2.
1563 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1564 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1565 override padding for "%Ey".
1566 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1567 "%Ey" in the subformat as if decorated with that flag.
1568 * time/tst-strftime2.c: New file.
1569
1570 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1571
1572 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1573 are not defined.
1574
1575 [BZ #24122]
1576 * elf/Makefile (tests): Add tst-audit13.
1577 (modules-names): Add tst-audit13mod1.
1578 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1579 rule.
1580 * elf/rtld.c (dl_main): Handle invalid audit module version.
1581 * elf/tst-audit13.c: New file.
1582 * elf/tst-audit13mod1.c: Likewise.
1583
1584 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1585
1586 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1587 returned by __hurd_at_flags.
1588 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1589 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1590 directly instead of __hurd_file_name_lookup.
1591
1592 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1593
1594 * scripts/build-many-glibcs.py (Context.checkout): Default
1595 binutils version to 2.32 branch.
1596
1597 2019-01-21 Florian Weimer <fweimer@redhat.com>
1598
1599 [BZ #20018]
1600 CVE-2016-10739
1601 resolv: Reject trailing characters in host names
1602 * include/arpa/inet.h (__inet_aton_exact): Declare.
1603 (inet_aton): Remove hidden prototype. No longer used internally.
1604 * nscd/gai.c (__inet_aton): Do not define.
1605 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1606 * nss/digits_dots.c (__inet_aton): Likewise.
1607 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1608 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1609 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1610 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1611 (tst-resolv-trailing): Likewise.
1612 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1613 libc.
1614 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1615 Make static. Add endp parameter.
1616 (__inet_aton_exact): New function.
1617 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1618 (__inet_addr): Call inet_aton_end.
1619 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1620 not just IPv6. Call __inet_aton_exact.
1621 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1622 (tests): Make const. Add additional test cases with trailing
1623 characters.
1624 (do_test): Use array_length.
1625 * resolv/tst-inet_aton_exact.c: New file.
1626 * resolv/tst-resolv-trailing.c: Likewise.
1627 * resolv/tst-resolv-nondecimal.c: Likewise.
1628 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1629
1630 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1631
1632 [BZ# 24097]
1633 CVE-2019-6488
1634 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1635 Clear the upper 32 bits of RSI register.
1636 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1637 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1638 and tst-size_t-wcsnlen.
1639 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1640 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1641
1642 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1643
1644 [BZ# 24097]
1645 CVE-2019-6488
1646 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1647 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1648 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1649 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1650 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1651
1652 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 [BZ# 24097]
1655 CVE-2019-6488
1656 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1657 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1658 * sysdeps/x86_64/strcmp.S: Likewise.
1659 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1660 tst-size_t-strncmp and tst-size_t-wcsncmp.
1661 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1662 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1663 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1664
1665 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 [BZ# 24097]
1668 CVE-2019-6488
1669 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1670 RDX_LP for length. Clear the upper 32 bits of RDX register.
1671 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1672 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1673 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1674 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1675
1676 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1677
1678 [BZ# 24097]
1679 CVE-2019-6488
1680 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1681 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1682 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1683 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1684
1685 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1686
1687 [BZ# 24097]
1688 CVE-2019-6488
1689 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1690 length. Clear the upper 32 bits of RDX register.
1691 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1692 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1693 Likewise.
1694 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1695 Likewise.
1696 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1697 tst-size_t-wmemchr.
1698 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1699
1700 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1701
1702 [BZ# 24097]
1703 CVE-2019-6488
1704 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1705 length. Clear the upper 32 bits of RDX register.
1706 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1707 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1708 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1709 tst-size_t-wmemcmp.
1710 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1711 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1712
1713 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1714
1715 [BZ# 24097]
1716 CVE-2019-6488
1717 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1718 upper 32 bits of RDX register.
1719 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1720 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1721 tst-size_t-wmemchr.
1722 * sysdeps/x86_64/x32/test-size_t.h: New file.
1723 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1724 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1725
1726 2019-01-18 Florian Weimer <fweimer@redhat.com>
1727
1728 [BZ #24112]
1729 resolv: Do not send queries for non-host-names in nss_dns.
1730 * resolv/nss_dns/dns-host.c (check_name): New function.
1731 (_nss_dns_gethostbyname2_r): Use it.
1732 (_nss_dns_gethostbyname_r): Likewise.
1733 (_nss_dns_gethostbyname4_r): Likewise.
1734
1735 2019-01-21 Florian Weimer <fweimer@redhat.com>
1736
1737 * resolv/inet_addr.c: Reformat to GNU style.
1738 (__inet_addr, __inet_aton): Update comment.
1739
1740 2019-01-18 Florian Weimer <fweimer@redhat.com>
1741
1742 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1743 ("malloc: Use current (C11-style) atomics for fastbin access").
1744 This commit introduces a substantial performance regression on
1745 POWER and Aarch64.
1746 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1747 (REMOVE_FB): Define.
1748 (_int_malloc): Use it and reindent.
1749 (_int_free): Use CAS loop with
1750 catomic_compare_and_exchange_val_rel.
1751 (malloc_consolidate): Use atomic_exchange_acq.
1752
1753
1754 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1755
1756 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1757 -Wl,-z,now.
1758 (LDFLAGS-tst-minsigstksz-2): Likewise.
1759 (LDFLAGS-tst-minsigstksz-3): Likewise.
1760 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1761 (LDFLAGS-tst-minsigstksz-4): Likewise.
1762
1763 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1764
1765 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1766 than "alternate".
1767
1768 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1769
1770 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1771
1772 2019-01-16 Zack Weinberg <zackw@panix.com>
1773
1774 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1775 (xget_sigstack_location): New test support functions.
1776 * support/xsigstack.c: New file, implementing them.
1777 * support/tst-xsigstack.c: New test for them.
1778 * support/Makefile: Update.
1779
1780 * signal/tst-minsigstksz-1.c
1781 * signal/tst-minsigstksz-2.c
1782 * signal/tst-minsigstksz-3.c
1783 * signal/tst-minsigstksz-3a.c
1784 * signal/tst-minsigstksz-4.c: New tests.
1785 * signal/Makefile: Run them.
1786
1787 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1788
1789 * po/libc.pot: Regenerate.
1790
1791 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1792
1793 * math/libm-test-fma.inc (fma_test_data): Set
1794 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1795
1796 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1797
1798 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1799 (do_test): Changed __vector __int128_t to __vector unsigned int.
1800
1801 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1802
1803 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1804 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1805 stpcpy-avx2 and stpncpy-avx2.
1806 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1807 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1808 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1809 and __stpncpy_avx2.
1810 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1811 ifunc-strcpy.h}: rename header for a more generic name.
1812 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1813 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1814 AVX unaligned load is fast and vzeroupper is preferred.
1815 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1816 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1817 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1818 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1819 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1820 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1821
1822 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1823
1824 * argp/argp-help.c: Fix typo in comment.
1825 * misc/sys/cdefs.h: Likewise.
1826 * posix/regexec.c (sift_states_iter_mb): Likewise.
1827 * socket/sockatmark.c: Likewise.
1828 * socket/sys/socket.h: Likewise.
1829 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1830 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1831 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1832 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1833 * sysdeps/unix/sockatmark.c: Likewise.
1834 * time/strptime_l.c: Likewise.
1835
1836 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1837
1838 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1839 missing space after the cast of "_NL_CURRENT".
1840
1841 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1842
1843 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1844 ifdef to fix read of VSCR.
1845 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1846 tst-ucontext-ppc64-vscr.c to test list.
1847 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1848
1849 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1850
1851 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1852 fall-through.
1853
1854 2019-01-09 Jim Wilson <jimw@sifive.com>
1855
1856 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1857
1858 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1859
1860 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1861 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1862 __memcpy_falkor for ares.
1863 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1864 Add new define.
1865 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1866 Add ares cpu.
1867
1868 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1869
1870 [BZ #24066]
1871 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1872 4_FP_W_TYPEs are used for IEEE quad precision.
1873 * soft-fp/extendhftf2.c: Likewise.
1874 * soft-fp/extendsftf2.c: Likewise.
1875 * soft-fp/extendxftf2.c: Likewise.
1876 * soft-fp/trunctfdf2.c: Likewise.
1877 * soft-fp/trunctfhf2.c: Likewise.
1878 * soft-fp/trunctfsf2.c: Likewise.
1879 * soft-fp/trunctfxf2.c: Likewise.
1880 * sysdeps/alpha/ots_cvttx.c: Likewise.
1881 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1882 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1883 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1884 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1885 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1886 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1887 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1888 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1889 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1890 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1891 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1892 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1893 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1894 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1895 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1896 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1897 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1898
1899 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1900
1901 [BZ #24024]
1902 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1903 code with -fmath-errno.
1904 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1905 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1906 * string/test-strerror-errno.c: New file.
1907
1908 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1909
1910 [BZ #24046]
1911 * localedata/locales/en_US (date_fmt): Add, set to
1912 "%a %d %b %Y %r %Z".
1913
1914 2019-01-07 Florian Weimer <fweimer@redhat.com>
1915
1916 [BZ #24063]
1917 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1918 instead of @var{errno}.
1919 (Parsing of Integers): Likewise.
1920 (Parsing of Floats): Likewise.
1921 * manual/filesys.texi (Working with Directory Trees): Likewise.
1922 (Temporary Files): Likewise.
1923 * manual/job.texi (Terminal Access Functions): Likewise.
1924 * manual/llio.texi (Synchronizing I/O): Likewise.
1925 * manual/math.texi (SVID Random): Likewise.
1926 * manual/message.texi (The catgets Functions): Likewise.
1927 (Translation with gettext): Likewise.
1928 (Locating gettext catalog): Likewise.
1929 (Charset conversion in gettext): Likewise.
1930 * manual/nss.texi (NSS Module Function Internals): Likewise.
1931 * manual/search.texi (Hash Search Function): Likewise.
1932 * manual/setjmp.texi (System V contexts): Likewise.
1933 * manual/time.texi (Sleeping): Likewise.
1934 * manual/users.texi (Lookup User): Likewise.
1935 (Lookup Group): Likewise.
1936
1937 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1938
1939 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1940 fix typo.
1941
1942 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1943
1944 [BZ #19444]
1945 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1946 __builtin_unreachable for default case in switch.
1947 (__ieee754_yn): Likewise.
1948 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1949 (__ieee754_ynl): Likewise.
1950 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1951 (__ieee754_ynl): Likewise.
1952 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1953 (__ieee754_ynl): Likewise.
1954
1955 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1956
1957 * manual/maint.texi: Use @{ and @}.
1958
1959 2019-01-04 Florian Weimer <fweimer@redhat.com>
1960
1961 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1962 function.
1963 (do_in_chroot_1): Call it.
1964 (run_chroot_tests):
1965 Improve error reporting in case it is not possible to create a
1966 collision for the PTY name required by the test.
1967
1968 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1969
1970 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1971 lll_wait_tid with timeout.
1972 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1973 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1974 futex_reltimed_wait_cancelable for cancelabla mode.
1975 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1976 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1977 macros.
1978 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1979 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1980 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1981 SYSCALL_CANCEL_NCS): New macro.
1982 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1983 (lll_timedwait_tid): Remove macro.
1984 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1985 Likewise.
1986 (lll_timedwait_tid): Likewise.
1987 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1988 Likewise.
1989 (lll_timedwait_tid): Likewise.
1990 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1991 Likewise.
1992 (lll_timedwait_tid): Likewise.
1993 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1994 Use INTERNAL_SYSCALL_CANCEL.
1995 * sysdeps/unix/sysv/linux/futex-internal.h
1996 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1997 instead of __pthread_{enable,disable}_asynccancel.
1998 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1999 (lll_futex_wait_cancel): New macro.
2000
2001 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2002 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2003
2004 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2005 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2006
2007 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2008 in backtrace analysis.
2009 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2010 side-effects.
2011 (tf_send): Likewise.
2012
2013 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2014 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2015 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2016 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2017 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2018 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2019 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2020 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2021 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2022 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2023 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2024 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2025 Likewise.
2026 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2027 tst-cancel-wrappers.sh.
2028 (generated): Remove tst-cancel-wrappers.out.
2029 (tst-cancel-wrappers.out): Remove rule.
2030 * nptl/tst-cancel-wrappers.sh: Remove file.
2031
2032 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2033
2034 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2035 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2036 Update.
2037
2038 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2039
2040 [BZ #23640]
2041 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2042 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2043 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2044 close-on-exec reset for adddup2 file action.
2045 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2046
2047 2019-01-03 Zack Weinberg <zackw@panix.com>
2048
2049 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2050 parameter. Only use deprecated scanf when __USE_GNU is defined
2051 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2052 than 201103L, whichever is relevant for the language being compiled.
2053
2054 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2055 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2056 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2057 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2058 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2059
2060 * libio/iovsscanf.c
2061 * libio/fwscanf.c
2062 * libio/iovswscanf.c
2063 * libio/swscanf.c
2064 * libio/vscanf.c
2065 * libio/vwscanf.c
2066 * libio/wscanf.c
2067 * stdio-common/fscanf.c
2068 * stdio-common/scanf.c
2069 * stdio-common/vfscanf.c
2070 * stdio-common/vfwscanf.c
2071 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2072 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2073 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2074 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2075 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2076 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2077 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2078 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2079 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2080 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2081 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2082 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2083 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2084 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2085 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2086
2087 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2088 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2089 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2090 not sscanf.
2091 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2092 with a preprocessor macro.
2093
2094 * stdio-common/bug21.c, stdio-common/scanf14.c:
2095 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2096 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2097 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2098 to xscanf, xfscanf, xsscanf.
2099
2100 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2101 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2102 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2103 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2104 xfscanf, xsscanf.
2105 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2106 override feature selection macros or provide definitions of u_char etc.
2107 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2108 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2109 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2110 with -std=gnu89.
2111
2112 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2113
2114 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2115 bits/termios-misc.h.
2116 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2117 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2118 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2119 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2120 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2121 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2122
2123 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2124 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2125 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2126 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2127 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2128 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2129 termios-misc.h.
2130 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2131 (sysdep_headers): Add termios-misc.h.
2132
2133 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2134 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2135 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2136
2137 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2138 termios-tcflow.h.
2139 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2140 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2141 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2142 TCSAFLUSH): Move to termios-tcflow.h.
2143 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2144 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2145 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2146 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2147
2148 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2149 termios-c_lflag.h.
2150 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2151 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2152 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2153 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2154 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2155 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2156 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2157 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2158 Likewise.
2159 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2160 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2161 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2162 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2163
2164 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2165 termios-c_cflag.h.
2166 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2167 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2168 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2169 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2170 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2171 termios-c_cflag.h.
2172 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2173 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2174 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2175 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2176
2177 [BZ #23783]
2178 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2179 termios-baud.h.
2180 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2181 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2182 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2183 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2184 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2185 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2186 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2187 __MAX_BAUD): Move to termios-baud.h.
2188 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2189 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2190 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2191 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2192 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2193
2194 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2195 termios-c_oflag.h.
2196 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2197 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2198 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2199 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2200 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2201 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2202 termios-c_oflag.h.
2203 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2204 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2205 FFR1): Likewise.
2206 [USE_MISC] (XTABS): Likewise.
2207 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2208 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2209 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2210 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2211
2212 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2213 termios-c_iflag.h.
2214 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2215 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2216 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2217 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2218 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2219 IUTF8): Move to termios-c_iflag.h.
2220 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2221 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2222 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2223 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2224
2225 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2226 termios-cc.h.
2227 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2228 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2229 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2230 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2231 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2232 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2233 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2234 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2235 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2236 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2237 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2238 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2239
2240 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2241 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2242 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2243 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2244 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2245 termios-struct.h.
2246 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2247 termios-struct.h.
2248 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2249 Likewise.
2250 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2251 Likewise.
2252 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2253 Likewise.
2254 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2255 Likewise.
2256 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2257 _HAVE_C_OSPEED): Define.
2258 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2259 _HAVE_C_OSPEED): Likewise.
2260 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2261 _HAVE_C_OSPEED): Likewise.
2262 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2263 (cfsetospeed): Check for define value instead of existence.
2264 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2265 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2266 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2267 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2268 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2269
2270 [BZ #17783]
2271 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2272 Define.
2273 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2274 (TIOCSER_TEMT): Likewise.
2275 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2276 (TEOCSER_TEMT): Likewise.
2277
2278 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2279
2280 [BZ #24011]
2281 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2282
2283 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2284
2285 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2286
2287 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2288
2289 * sysdeps/htl/pt-barrierattr-setpshared.c
2290 (pthread_barrierattr_setpshared): Add stub warning.
2291 * sysdeps/htl/pt-condattr-setpshared.c
2292 (pthread_condattr_setpshared): Likewise.
2293 * sysdeps/htl/pt-mutexattr-setpshared.c
2294 (pthread_mutexattr_setpshared): Likewise.
2295 * sysdeps/htl/pt-rwlockattr-setpshared.c
2296 (pthread_rwlockattr_setpshared): Likewise.
2297 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2298 (pthread_mutexattr_setpshared): Likewise.
2299
2300 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2301
2302 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2303 constants to match with Linux 4.20.
2304
2305 * sysdeps/mips/mips32/libm-test-ulps: Update.
2306 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2307
2308 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2309
2310 [BZ #24034]
2311 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2312 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2313 than __typeof (...) for the a_ptr variable.
2314
2315 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2316
2317 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2318 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2319 * libio/Makefile (tests): Add tst-sprintf-ub and
2320 tst-sprintf-chk-ub.
2321 (CFLAGS-tst-sprintf-ub.c): New variable.
2322 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2323 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2324 destination buffer and check for overflows in fortified mode.
2325 * libio/libioP.h (PRINTF_CHK): New macro.
2326 * libio/tst-sprintf-chk-ub.c: New file.
2327 * libio/tst-sprintf-ub.c: Likewise.
2328
2329 2019-01-02 Florian Weimer <fweimer@redhat.com>
2330
2331 [BZ #24018]
2332 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2333 failure.
2334
2335 2019-01-02 Florian Weimer <fweimer@redhat.com>
2336
2337 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2338
2339 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2340
2341 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2342 macro.
2343
2344 * sysdeps/unix/sysv/linux/netpacket/packet.h
2345 (PACKET_IGNORE_OUTGOING): New macro.
2346
2347 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2348 macro.
2349
2350 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2351 version to 4.20.
2352 (riscv_flush_icache): New syscall.
2353
2354 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2355 trailing whitespace removed.
2356 * scripts/config.guess: Update to version 2019-01-01.
2357 * scripts/config.sub: Update to version 2019-01-01.
2358 * scripts/move-if-change: Update from gnulib.
2359
2360 * NEWS: Update copyright dates.
2361 * catgets/gencat.c (print_version): Likewise.
2362 * csu/version.c (banner): Likewise.
2363 * debug/catchsegv.sh: Likewise.
2364 * debug/pcprofiledump.c (print_version): Likewise.
2365 * debug/xtrace.sh (do_version): Likewise.
2366 * elf/ldconfig.c (print_version): Likewise.
2367 * elf/ldd.bash.in: Likewise.
2368 * elf/pldd.c (print_version): Likewise.
2369 * elf/sotruss.sh: Likewise.
2370 * elf/sprof.c (print_version): Likewise.
2371 * iconv/iconv_prog.c (print_version): Likewise.
2372 * iconv/iconvconfig.c (print_version): Likewise.
2373 * locale/programs/locale.c (print_version): Likewise.
2374 * locale/programs/localedef.c (print_version): Likewise.
2375 * login/programs/pt_chown.c (print_version): Likewise.
2376 * malloc/memusage.sh (do_version): Likewise.
2377 * malloc/memusagestat.c (print_version): Likewise.
2378 * malloc/mtrace.pl: Likewise.
2379 * manual/libc.texinfo: Likewise.
2380 * nptl/version.c (banner): Likewise.
2381 * nscd/nscd.c (print_version): Likewise.
2382 * nss/getent.c (print_version): Likewise.
2383 * nss/makedb.c (print_version): Likewise.
2384 * posix/getconf.c (main): Likewise.
2385 * scripts/test-installation.pl: Likewise.
2386 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2387
2388 * All files with FSF copyright notices: Update copyright dates
2389 using scripts/update-copyrights.
2390 * locale/programs/charmap-kw.h: Regenerated.
2391 * locale/programs/locfile-kw.h: Likewise.
2392
2393 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2394
2395 * timezone/zdump.c: Update from tzcode 2018i.
2396 * timezone/zic.c: Likewise.
2397
2398 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2399
2400 regex: improve Gnulib port to AIX
2401 From the glibc point of view, this removes duplicate macro
2402 definitions and is obviously safe.
2403 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2404 * posix/regex_internal.h:
2405 (__attribute__, __attribute_warn_unused_result__):
2406 Remove; already defined elsewhere.
2407
2408 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2409
2410 [BZ #24027]
2411 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2412 copying operation. (ncopies had the wrong type, resulting in an
2413 integer wraparound and too few elements being copied.)
2414
2415 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2416
2417 [BZ #24022]
2418 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2419 <asm/syscalls.h> exists with __has_include__ before including it.
2420
2421 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2422
2423 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2424 version to 4.20.
2425
2426 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2427
2428 * hurd/lookup-retry: Include <unistd.h>.
2429 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2430 Release it on return. Handle "pid" magical lookup retry.
2431
2432 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2433
2434 [BZ #10496]
2435 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2436 (t_fmt_ampm): Likewise.
2437 * localedata/locales/aa_ER (t_fmt): Likewise.
2438 (t_fmt_ampm): Likewise.
2439 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2440 (t_fmt_ampm): Likewise.
2441 * localedata/locales/aa_ET (t_fmt): Likewise.
2442 (t_fmt_ampm): Likewise.
2443 * localedata/locales/am_ET (t_fmt): Likewise.
2444 (t_fmt_ampm): Likewise.
2445 * localedata/locales/byn_ER (t_fmt): Likewise.
2446 (t_fmt_ampm): Likewise.
2447 * localedata/locales/om_ET (t_fmt): Likewise.
2448 (t_fmt_ampm): Likewise.
2449 * localedata/locales/sid_ET (t_fmt): Likewise.
2450 (t_fmt_ampm): Likewise.
2451 * localedata/locales/so_DJ (t_fmt): Likewise.
2452 (t_fmt_ampm): Likewise.
2453 * localedata/locales/so_ET (t_fmt): Likewise.
2454 (t_fmt_ampm): Likewise.
2455 * localedata/locales/so_SO (t_fmt): Likewise.
2456 (t_fmt_ampm): Likewise.
2457 * localedata/locales/ti_ER (t_fmt): Likewise.
2458 (t_fmt_ampm): Likewise.
2459 * localedata/locales/ti_ET (t_fmt): Likewise.
2460 (t_fmt_ampm): Likewise.
2461 * localedata/locales/tig_ER (t_fmt): Likewise.
2462 (t_fmt_ampm): Likewise.
2463 * localedata/locales/wal_ET (t_fmt): Likewise.
2464 (t_fmt_ampm): Likewise.
2465
2466 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2467 * localedata/locales/ar_IN (t_fmt): Likewise.
2468 * localedata/locales/bhb_IN (t_fmt): Likewise.
2469 * localedata/locales/bho_IN (t_fmt): Likewise.
2470 * localedata/locales/bi_VU (t_fmt): Likewise.
2471 * localedata/locales/bn_BD (t_fmt): Likewise.
2472 * localedata/locales/bn_IN (t_fmt): Likewise.
2473 * localedata/locales/brx_IN (t_fmt): Likewise.
2474 * localedata/locales/doi_IN (t_fmt): Likewise.
2475 * localedata/locales/en_HK (t_fmt): Likewise.
2476 (t_fmt_ampm): Likewise.
2477 * localedata/locales/en_IN (t_fmt): Likewise.
2478 * localedata/locales/en_PH (t_fmt): Likewise.
2479 * localedata/locales/gu_IN (t_fmt): Likewise.
2480 * localedata/locales/hi_IN (t_fmt): Likewise.
2481 * localedata/locales/hif_FJ (t_fmt): Likewise.
2482 * localedata/locales/hne_IN (t_fmt): Likewise.
2483 * localedata/locales/kn_IN (t_fmt): Likewise.
2484 * localedata/locales/kok_IN (t_fmt): Likewise.
2485 * localedata/locales/ks_IN (t_fmt): Likewise.
2486 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2487 * localedata/locales/mag_IN (t_fmt): Likewise.
2488 * localedata/locales/mai_IN (t_fmt): Likewise.
2489 * localedata/locales/mjw_IN (t_fmt): Likewise.
2490 * localedata/locales/ml_IN (t_fmt): Likewise.
2491 * localedata/locales/mni_IN (t_fmt): Likewise.
2492 * localedata/locales/mr_IN (t_fmt): Likewise.
2493 * localedata/locales/ms_MY (t_fmt): Likewise.
2494 * localedata/locales/pa_IN (t_fmt): Likewise.
2495 * localedata/locales/raj_IN (t_fmt): Likewise.
2496 * localedata/locales/sa_IN (t_fmt): Likewise.
2497 * localedata/locales/sat_IN (t_fmt): Likewise.
2498 * localedata/locales/sd_IN (t_fmt): Likewise.
2499 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2500 * localedata/locales/tcy_IN (t_fmt): Likewise.
2501 * localedata/locales/the_NP (t_fmt): Likewise.
2502 * localedata/locales/to_TO (t_fmt): Likewise.
2503 * localedata/locales/ur_IN (t_fmt): Likewise.
2504
2505 * localedata/locales/hif_FJ (d_t_fmt): Set to
2506 "%A %d %b %Y %I:%M:%S %p".
2507 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2508
2509 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2510 * localedata/locales/ar_BH (t_fmt): Likewise.
2511 * localedata/locales/ar_DZ (t_fmt): Likewise.
2512 * localedata/locales/ar_EG (t_fmt): Likewise.
2513 * localedata/locales/ar_IQ (t_fmt): Likewise.
2514 * localedata/locales/ar_JO (t_fmt): Likewise.
2515 * localedata/locales/ar_KW (t_fmt): Likewise.
2516 * localedata/locales/ar_LB (t_fmt): Likewise.
2517 * localedata/locales/ar_LY (t_fmt): Likewise.
2518 * localedata/locales/ar_OM (t_fmt): Likewise.
2519 * localedata/locales/ar_QA (t_fmt): Likewise.
2520 * localedata/locales/ar_SD (t_fmt): Likewise.
2521 * localedata/locales/ar_SS (t_fmt): Likewise.
2522 * localedata/locales/ar_SY (t_fmt): Likewise.
2523 * localedata/locales/ar_TN (t_fmt): Likewise.
2524 * localedata/locales/ar_YE (t_fmt): Likewise.
2525
2526 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2527 (t_fmt_ampm): Likewise.
2528 * localedata/locales/gez_ET (t_fmt): Likewise.
2529 (t_fmt_ampm): Likewise.
2530
2531 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2532 (t_fmt_ampm): Likewise.
2533 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2534
2535 * localedata/locales/zh_HK (t_fmt):
2536 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2537
2538 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2539 because this locale does not use the 12-hour clock.
2540 (t_fmt): Set to "%Z %H:%M:%S".
2541 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2542
2543 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2544 because this locale does not use the 12-hour clock.
2545 (t_fmt): Set to "%H:%M:%S %Z".
2546 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2547
2548 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2549 because this locale does not use the 12-hour clock.
2550 (t_fmt): Set to "%T".
2551 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2552 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2553
2554 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2555 because this locale does not use the 12-hour clock.
2556 (t_fmt): Set to "%H:%M:%S %Z".
2557 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2558
2559 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2560 because this locale does not use the 12-hour clock.
2561 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2562 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2563
2564 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2565
2566 [BZ #10496]
2567 [BZ #23724]
2568 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2569 (t_fmt_ampm): Likewise.
2570 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2571 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2572 (d_fmt): Set to "%-d.%-m.%y".
2573
2574 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2575
2576 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2577 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2578 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2579 Likewise.
2580 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2581 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2582 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2583 function.
2584 * support/blob_repeat.c (check_mul_overflow_size_t,
2585 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2586
2587 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2588
2589 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2590
2591 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2592
2593 regex: simplify Gnulib port
2594 This simplifies the code, by removing stuff intended for porting
2595 to Gnulib but no longer needed there.
2596 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2597 uses of libc_hidden_def, weak_alias.
2598 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2599 _Restrict_ except for public-facing headers.
2600 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2601 Remove; already defined elsewhere.
2602 * posix/regex.c, posix/regex_internal.h:
2603 Use __GNUC_PREREQ instead of rolling our own.
2604 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2605
2606 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2607
2608 * benchtests/bench-strlen.c (generic_strlen): New function.
2609 (memchr_strlen): New function.
2610
2611 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2612
2613 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2614 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2615 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2616
2617 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2618
2619 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2620
2621 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2622
2623 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2624 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2625 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2626 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2627 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2628 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2629 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2630
2631 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2632
2633 [BZ #24023]
2634 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2635 PLT reference in libc.so.
2636 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2637 _Q_lltoq and _Q_qtod PLT references in libc.so.
2638
2639 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2640
2641 * benchtests/bench-memchr.c: Cleanup defines.
2642 * benchtests/bench-memcmp.c: Likewise.
2643 * benchtests/bench-memset.c: Likewise.
2644 * benchtests/bench-memset-large.c: Likewise.
2645 * benchtests/bench-memset-walk.c: Likewise.
2646 * benchtests/bench-stpcpy.c: Likewise.
2647 * benchtests/bench-stpncpy.c: Likewise.
2648 * benchtests/bench-strcat.c: Likewise.
2649 * benchtests/bench-strchr.c: Likewise.
2650 * benchtests/bench-strcmp.c: Likewise.
2651 * benchtests/bench-strcpy.c: Likewise.
2652 * benchtests/bench-strcspn.c: Likewise.
2653 * benchtests/bench-string.h: Likewise.
2654 * benchtests/bench-strlen.c: Likewise.
2655 * benchtests/bench-strncat.c: Likewise.
2656 * benchtests/bench-strncmp.c: Likewise.
2657 * benchtests/bench-strncpy.c: Likewise.
2658 * benchtests/bench-strnlen.c: Likewise.
2659 * benchtests/bench-strpbrk.c: Likewise.
2660 * benchtests/bench-strrchr.c: Likewise.
2661 * benchtests/bench-strspn.c: Likewise.
2662
2663 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2664
2665 * stdlib/longlong.h: Update from GCC.
2666
2667 [BZ #23993]
2668 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2669 * configure: Regenerated.
2670 * manual/install.texi (Tools for Compilation): Update minimum GCC
2671 version.
2672 * INSTALL: Regenerated.
2673
2674 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2675
2676 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2677
2678 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2679
2680 * malloc/malloc.c (mremap_chunk): Additional checks.
2681
2682 2018-12-21 Mao Han <han_mao@c-sky.com>
2683
2684 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2685 * scripts/build-many-glibcs.py: Add C-SKY targets.
2686 * sysdeps/csky/Implies: New file.
2687 * sysdeps/csky/Makefile: Likewise.
2688 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2689 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2690 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2691 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2692 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2693 * sysdeps/csky/abiv2/memmove.S: Likewise.
2694 * sysdeps/csky/abiv2/memset.S: Likewise.
2695 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2696 * sysdeps/csky/abiv2/start.S: Likewise.
2697 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2698 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2699 * sysdeps/csky/abiv2/strlen.S: Likewise.
2700 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2701 * sysdeps/csky/abort-instr.h: Likewise.
2702 * sysdeps/csky/atomic-machine.h: Likewise.
2703 * sysdeps/csky/bits/endian.h: Likewise.
2704 * sysdeps/csky/bits/fenv.h: Likewise.
2705 * sysdeps/csky/bits/link.h: Likewise.
2706 * sysdeps/csky/bits/setjmp.h: Likewise.
2707 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2708 * sysdeps/csky/bsd-setjmp.S: Likewise.
2709 * sysdeps/csky/configure: Likewise.
2710 * sysdeps/csky/configure.ac: Likewise.
2711 * sysdeps/csky/dl-machine.h: Likewise.
2712 * sysdeps/csky/dl-procinfo.c: Likewise.
2713 * sysdeps/csky/dl-procinfo.h: Likewise.
2714 * sysdeps/csky/dl-sysdep.h: Likewise.
2715 * sysdeps/csky/dl-tls.h: Likewise.
2716 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2717 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2718 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2719 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2720 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2721 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2722 * sysdeps/csky/fpu/fegetround.c: Likewise.
2723 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2724 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2725 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2726 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2727 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2728 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2729 * sysdeps/csky/fpu/fesetround.c: Likewise.
2730 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2731 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2732 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2733 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2734 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2735 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2736 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2737 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2738 * sysdeps/csky/fpu_control.h: Likewise.
2739 * sysdeps/csky/gccframe.h: Likewise.
2740 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2741 * sysdeps/csky/ldsodefs.h: Likewise.
2742 * sysdeps/csky/libc-tls.c: Likewise.
2743 * sysdeps/csky/linkmap.h: Likewise.
2744 * sysdeps/csky/machine-gmon.h: Likewise.
2745 * sysdeps/csky/memusage.h: Likewise.
2746 * sysdeps/csky/nofpu/Implies: Likewise.
2747 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2748 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2749 * sysdeps/csky/nptl/Makefile: Likewise.
2750 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2751 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2752 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2753 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2754 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2755 * sysdeps/csky/nptl/tls.h: Likewise.
2756 * sysdeps/csky/preconfigure: Likewise.
2757 * sysdeps/csky/sfp-machine.h: Likewise.
2758 * sysdeps/csky/sotruss-lib.c: Likewise.
2759 * sysdeps/csky/stackinfo.h: Likewise.
2760 * sysdeps/csky/sysdep.h: Likewise.
2761 * sysdeps/csky/tininess.h: Likewise.
2762 * sysdeps/csky/tst-audit.h: Likewise.
2763 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2764 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2765 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2766 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2767 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2768 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2769 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2770 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2771 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2772 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2773 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2774 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2775 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2776 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2777 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2778 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2779 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2780 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2781 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2782 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2783 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2784 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2785 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2786 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2787 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2788 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2789 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2790 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2791 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2792 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2793 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2794 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2795 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2796 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2797 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2798 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2799 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2800 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2801 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2802 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2803 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2804 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2805 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2806 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2807
2808 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2809
2810 * include/time.h (__difftime64): Add.
2811 * time/difftime.c (subtract): convert to 64-bit time.
2812 * time/difftime.c (__difftime64): Add.
2813 * time/difftime.c (__difftime): Wrap around __difftime64.
2814
2815 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2816
2817 * manual/examples/add.c: Remove redundant "if not".
2818 * manual/examples/argp-ex1.c: Likewise.
2819 * manual/examples/argp-ex2.c: Likewise.
2820 * manual/examples/argp-ex3.c: Likewise.
2821 * manual/examples/argp-ex4.c: Likewise.
2822 * manual/examples/atexit.c: Likewise.
2823 * manual/examples/db.c: Likewise.
2824 * manual/examples/dir.c: Likewise.
2825 * manual/examples/dir2.c: Likewise.
2826 * manual/examples/execinfo.c: Likewise.
2827 * manual/examples/filecli.c: Likewise.
2828 * manual/examples/filesrv.c: Likewise.
2829 * manual/examples/fmtmsgexpl.c: Likewise.
2830 * manual/examples/genpass.c: Likewise.
2831 * manual/examples/inetcli.c: Likewise.
2832 * manual/examples/inetsrv.c: Likewise.
2833 * manual/examples/isockad.c: Likewise.
2834 * manual/examples/longopt.c: Likewise.
2835 * manual/examples/memopen.c: Likewise.
2836 * manual/examples/memstrm.c: Likewise.
2837 * manual/examples/mkdirent.c: Likewise.
2838 * manual/examples/mkfsock.c: Likewise.
2839 * manual/examples/mkisock.c: Likewise.
2840 * manual/examples/mygetpass.c: Likewise.
2841 * manual/examples/pipe.c: Likewise.
2842 * manual/examples/popen.c: Likewise.
2843 * manual/examples/rprintf.c: Likewise.
2844 * manual/examples/search.c: Likewise.
2845 * manual/examples/select.c: Likewise.
2846 * manual/examples/setjmp.c: Likewise.
2847 * manual/examples/sigh1.c: Likewise.
2848 * manual/examples/sigusr.c: Likewise.
2849 * manual/examples/stpcpy.c: Likewise.
2850 * manual/examples/strdupa.c: Likewise.
2851 * manual/examples/strftim.c: Likewise.
2852 * manual/examples/subopt.c: Likewise.
2853 * manual/examples/swapcontext.c: Likewise.
2854 * manual/examples/termios.c: Likewise.
2855 * manual/examples/testopt.c: Likewise.
2856 * manual/examples/testpass.c: Likewise.
2857 * manual/examples/timeval_subtract.c: Likewise.
2858
2859 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2860
2861 * sysdeps/x86/fpu/math_private.h: New file.
2862 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2863
2864 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2865 definition.
2866 (cosh): Likewise.
2867 (tanh): Likewise.
2868
2869 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2870
2871 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2872 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2873 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2874 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2875 fields.
2876 (_dl_show_auxv): Give a special treatment to
2877 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2878 and AT_L3_CACHEGEOMETRY.
2879 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2880 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2881 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2882 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2883
2884 2018-12-19 Andreas Schwab <schwab@suse.de>
2885
2886 * nscd/connections.c (check_use): Don't abort on invalid len.
2887
2888 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2889
2890 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2891 values in the 64bit value cases.
2892
2893 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2894
2895 * include/time.h
2896 (__ctime64_r): Add.
2897 * time/ctime_r.c
2898 (__ctime64_r): Add.
2899 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2900
2901 * include/time.h
2902 (__ctime64): Add.
2903 * time/gmtime.c
2904 (__ctime64): Add.
2905 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2906
2907 * include/time.h
2908 (__gmtime64_r): Add.
2909 * time/gmtime.c
2910 (__gmtime64_r): Add.
2911 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2912
2913 * include/time.h
2914 (__gmtime64): Add.
2915 * time/gmtime.c
2916 (__gmtime64): Add.
2917 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2918
2919 * include/time.h
2920 (__localtime64_r): Add.
2921 * time/localtime.c
2922 (__localtime64_r): Add.
2923 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2924
2925 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2926
2927 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2928 kernel_sigction definition.
2929
2930 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2931
2932 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2933
2934 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2935 __syscall_rt_sigaction.
2936 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2937 (kernel_sigaction): Use Linux generic defintion.
2938 (STUB): Define.
2939 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2940 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2941 (__syscall_rt_sigaction): Remove implementation.
2942 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2943 hidden.
2944 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2945 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2946 INTERNAL_SYSCALL): Remove definitions.
2947 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2948 action and signal set size.
2949 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2950 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2951
2952 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2953 James Clarke <jrtc27@jrtc27.com>
2954
2955 [BZ #23967]
2956 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2957 Define if SA_RESTORER is defined.
2958 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2959 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2960 already defined.
2961 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2962 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2963 definitions.
2964 (HAS_SA_RESTORER): Define.
2965 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2966 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2967 (HAS_SA_RESTORER): Define.
2968 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2969 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2970 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2971 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2972 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2973
2974 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2975
2976 * sysdeps/unix/sysv/linux/kernel-features.h
2977 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2978 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2979 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2980 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2981 (__ASSUME_ST_INO_64_BIT): Likewise.
2982 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2983 <kernel-features.h>.
2984 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2985 Remove conditional code.
2986 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2987 <kernel-features.h>.
2988 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2989 Remove conditional code.
2990 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2991 <kernel-features.h>.
2992 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2993 Remove conditional code.
2994 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2995 <kernel-features.h>.
2996 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2997 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2998
2999 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3000
3001 * sysdeps/s390/multiarch/ifunc-resolve.h
3002 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3003 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3004 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3005 Delete macro definition.
3006 (s390_libc_ifunc_init): Rename to
3007 s390_libc_ifunc_expr_stfle_init.
3008 * sysdeps/s390/bzero: Use
3009 s390_libc_ifunc_expr_stfle_init instead of
3010 s390_libc_ifunc_init.
3011 * sysdeps/s390/memcmp.c: Likewise.
3012 * sysdeps/s390/memcpy.c: Likewise.
3013 * sysdeps/s390/mempcpy.c: Likewise.
3014 * sysdeps/s390/memset.c: Likewise.
3015
3016 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3017
3018 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3019 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3020
3021 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3022
3023 * sysdeps/s390/multiarch/Makefile
3024 (sysdep_routines): Remove wmemcmp variants.
3025 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3026 * sysdeps/s390/multiarch/ifunc-impl-list.c
3027 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3028 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3029 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3030 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3031 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3032 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3033 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3034 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3035
3036 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3037
3038 * sysdeps/s390/multiarch/Makefile
3039 (sysdep_routines): Remove wmemset variants.
3040 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3041 * sysdeps/s390/multiarch/ifunc-impl-list.c
3042 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3043 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3044 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3045 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3046 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3047 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3048 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3049 * sysdeps/s390/ifunc-wmemset.h: New file.
3050
3051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3052
3053 * sysdeps/s390/multiarch/Makefile
3054 (sysdep_routines): Remove wmemchr variants.
3055 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3056 * sysdeps/s390/multiarch/ifunc-impl-list.c
3057 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3058 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3059 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3060 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3061 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3062 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3063 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3064 * sysdeps/s390/ifunc-wmemchr.h: New file.
3065
3066 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3067
3068 * sysdeps/s390/multiarch/Makefile
3069 (sysdep_routines): Remove wcscspn variants.
3070 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3071 * sysdeps/s390/multiarch/ifunc-impl-list.c
3072 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3073 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3074 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3075 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3076 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3077 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3078 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3079 * sysdeps/s390/ifunc-wcscspn.h: New file.
3080
3081 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3082
3083 * sysdeps/s390/multiarch/Makefile
3084 (sysdep_routines): Remove wcspbrk variants.
3085 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3086 * sysdeps/s390/multiarch/ifunc-impl-list.c
3087 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3088 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3089 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3090 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3091 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3092 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3093 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3094 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3095
3096 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3097
3098 * sysdeps/s390/multiarch/Makefile
3099 (sysdep_routines): Remove wcsspn variants.
3100 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3101 * sysdeps/s390/multiarch/ifunc-impl-list.c
3102 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3103 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3104 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3105 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3106 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3107 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3108 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3109 * sysdeps/s390/ifunc-wcsspn.h: New file.
3110
3111 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3112
3113 * sysdeps/s390/multiarch/Makefile
3114 (sysdep_routines): Remove wcsrchr variants.
3115 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3116 * sysdeps/s390/multiarch/ifunc-impl-list.c
3117 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3118 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3119 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3120 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3121 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3122 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3123 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3124 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3125
3126 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3127
3128 * sysdeps/s390/multiarch/Makefile
3129 (sysdep_routines): Remove wcschrnul variants.
3130 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3131 * sysdeps/s390/multiarch/ifunc-impl-list.c
3132 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3133 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3134 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3135 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3136 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3137 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3138 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3139 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3140
3141 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3142
3143 * sysdeps/s390/multiarch/Makefile
3144 (sysdep_routines): Remove wcschr variants.
3145 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3146 * sysdeps/s390/multiarch/ifunc-impl-list.c
3147 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3148 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3149 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3150 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3151 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3152 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3153 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3154 * sysdeps/s390/ifunc-wcschr.h: New file.
3155
3156 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3157
3158 * sysdeps/s390/multiarch/Makefile
3159 (sysdep_routines): Remove wcsncmp variants.
3160 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3161 * sysdeps/s390/multiarch/ifunc-impl-list.c
3162 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3163 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3164 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3165 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3166 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3167 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3168 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3169 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3170
3171 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3172
3173 * sysdeps/s390/multiarch/Makefile
3174 (sysdep_routines): Remove wcscmp variants.
3175 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3176 * sysdeps/s390/multiarch/ifunc-impl-list.c
3177 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3178 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3179 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3181 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3182 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3183 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3184 * sysdeps/s390/ifunc-wcscmp.h: New file.
3185
3186 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3187
3188 * sysdeps/s390/multiarch/Makefile
3189 (sysdep_routines): Remove wcsncat variants.
3190 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3191 * sysdeps/s390/multiarch/ifunc-impl-list.c
3192 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3193 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3194 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3196 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3197 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3198 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3199 * sysdeps/s390/ifunc-wcsncat.h: New file.
3200
3201 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3202
3203 * sysdeps/s390/multiarch/Makefile
3204 (sysdep_routines): Remove wcscat variants.
3205 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3206 * sysdeps/s390/multiarch/ifunc-impl-list.c
3207 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3208 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3209 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3211 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3212 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3213 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3214 * sysdeps/s390/ifunc-wcscat.h: New file.
3215
3216 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3217
3218 * sysdeps/s390/multiarch/Makefile
3219 (sysdep_routines): Remove wcpncpy variants.
3220 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3221 * sysdeps/s390/multiarch/ifunc-impl-list.c
3222 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3223 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3224 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3225 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3226 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3227 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3228 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3229 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3230
3231 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3232
3233 * sysdeps/s390/multiarch/Makefile
3234 (sysdep_routines): Remove wcsncpy variants.
3235 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3236 * sysdeps/s390/multiarch/ifunc-impl-list.c
3237 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3238 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3239 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3240 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3241 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3242 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3243 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3244 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3245
3246 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3247
3248 * sysdeps/s390/multiarch/Makefile
3249 (sysdep_routines): Remove wcpcpy variants.
3250 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3251 * sysdeps/s390/multiarch/ifunc-impl-list.c
3252 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3253 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3254 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3255 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3256 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3257 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3258 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3259 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3260
3261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * sysdeps/s390/multiarch/Makefile
3264 (sysdep_routines): Remove wcscpy variants.
3265 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3266 * sysdeps/s390/multiarch/ifunc-impl-list.c
3267 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3268 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3269 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3271 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3272 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3273 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3274 * sysdeps/s390/ifunc-wcscpy.h: New file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/multiarch/Makefile
3279 (sysdep_routines): Remove wcsnlen variants.
3280 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3281 * sysdeps/s390/multiarch/ifunc-impl-list.c
3282 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3283 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3284 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3285 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3286 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3287 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3288 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3290
3291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/multiarch/Makefile
3294 (sysdep_routines): Remove wcslen variants.
3295 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3296 * sysdeps/s390/multiarch/ifunc-impl-list.c
3297 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3298 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3299 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3300 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3301 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3302 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3303 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3304 * sysdeps/s390/ifunc-wcslen.h: New file.
3305
3306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3307
3308 * sysdeps/s390/multiarch/Makefile
3309 (sysdep_routines): Remove memrchr variants.
3310 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3311 * sysdeps/s390/multiarch/ifunc-impl-list.c
3312 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3313 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3314 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3315 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3316 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3317 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3318 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3319 * sysdeps/s390/ifunc-memrchr.h: New file.
3320
3321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3322
3323 * sysdeps/s390/multiarch/Makefile
3324 (sysdep_routines): Remove memccpy variants.
3325 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3326 * sysdeps/s390/multiarch/ifunc-impl-list.c
3327 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3328 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3329 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3330 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3331 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3332 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3333 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3334 * sysdeps/s390/ifunc-memccpy.h: New file.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/Makefile
3339 (sysdep_routines): Remove rawmemchr variants.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3341 * sysdeps/s390/multiarch/ifunc-impl-list.c
3342 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3343 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3344 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3346 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3347 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3348 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3349 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3350
3351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3352
3353 * sysdeps/s390/multiarch/Makefile
3354 (sysdep_routines): Remove memchr variants.
3355 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3358 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3359 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3360 * sysdeps/s390/multiarch/memchr.c: Move to ...
3361 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3362 * sysdeps/s390/ifunc-memchr.h: New file.
3363 * sysdeps/s390/s390-64/memchr.S: Move to ...
3364 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3365 for 31/64bit and ifunc handling.
3366 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3367 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3368 * sysdeps/s390/s390-32/memchr.S: Likewise.
3369
3370 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3371
3372 * sysdeps/s390/multiarch/Makefile
3373 (sysdep_routines): Remove strcspn variants.
3374 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3375 * sysdeps/s390/multiarch/ifunc-impl-list.c
3376 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3377 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3378 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3379 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3380 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3381 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3382 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3383 * sysdeps/s390/ifunc-strcspn.h: New file.
3384
3385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3386
3387 * sysdeps/s390/multiarch/Makefile
3388 (sysdep_routines): Remove strpbrk variants.
3389 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3390 * sysdeps/s390/multiarch/ifunc-impl-list.c
3391 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3392 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3393 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3394 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3395 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3396 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3397 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3398 * sysdeps/s390/ifunc-strpbrk.h: New file.
3399
3400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3401
3402 * sysdeps/s390/multiarch/Makefile
3403 (sysdep_routines): Remove strspn variants.
3404 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3405 * sysdeps/s390/multiarch/ifunc-impl-list.c
3406 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3407 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3408 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3409 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3410 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3411 * sysdeps/s390/multiarch/strspn.c: Move to ...
3412 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3413 * sysdeps/s390/ifunc-strspn.h: New file.
3414
3415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3416
3417 * sysdeps/s390/multiarch/Makefile
3418 (sysdep_routines): Remove strrchr variants.
3419 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3420 * sysdeps/s390/multiarch/ifunc-impl-list.c
3421 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3422 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3423 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3424 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3425 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3426 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3427 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3428 * sysdeps/s390/ifunc-strrchr.h: New file.
3429
3430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3431
3432 * sysdeps/s390/multiarch/Makefile
3433 (sysdep_routines): Remove strchrnul variants.
3434 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3435 * sysdeps/s390/multiarch/ifunc-impl-list.c
3436 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3437 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3438 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3439 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3440 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3441 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3442 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3443 * sysdeps/s390/ifunc-strchrnul.h: New file.
3444
3445 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3446
3447 * sysdeps/s390/multiarch/Makefile
3448 (sysdep_routines): Remove strchr variants.
3449 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3450 * sysdeps/s390/multiarch/ifunc-impl-list.c
3451 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3452 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3453 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3454 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3455 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3456 * sysdeps/s390/multiarch/strchr.c: Move to ...
3457 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3458 * sysdeps/s390/ifunc-strchr.h: New file.
3459
3460 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3461
3462 * sysdeps/s390/multiarch/Makefile
3463 (sysdep_routines): Remove strncmp variants.
3464 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3465 * sysdeps/s390/multiarch/ifunc-impl-list.c
3466 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3467 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3468 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3469 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3470 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3471 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3472 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3473 * sysdeps/s390/ifunc-strncmp.h: New file.
3474
3475 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3476
3477 * sysdeps/s390/multiarch/Makefile
3478 (sysdep_routines): Remove strcmp variants.
3479 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3480 * sysdeps/s390/multiarch/ifunc-impl-list.c
3481 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3482 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3483 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3484 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3485 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3486 * sysdeps/s390/ifunc-strcmp.h: New file.
3487 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3488 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3489 for 31/64bit and ifunc handling.
3490 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3491 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3492 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3493
3494 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3495
3496 * sysdeps/s390/multiarch/Makefile
3497 (sysdep_routines): Remove strncat variants.
3498 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3499 * sysdeps/s390/multiarch/ifunc-impl-list.c
3500 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3501 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3502 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3503 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3504 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3505 * sysdeps/s390/multiarch/strncat.c: Move to ...
3506 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3507 * sysdeps/s390/ifunc-strncat.h: New file.
3508
3509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3510
3511 * sysdeps/s390/multiarch/Makefile
3512 (sysdep_routines): Remove strcat variants.
3513 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3514 * sysdeps/s390/multiarch/ifunc-impl-list.c
3515 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3516 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3517 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3518 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3519 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3520 * sysdeps/s390/multiarch/strcat.c: Move to ...
3521 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3522 * sysdeps/s390/ifunc-strcat.h: New file.
3523
3524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3525
3526 * sysdeps/s390/multiarch/Makefile
3527 (sysdep_routines): Remove stpncpy variants.
3528 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3529 * sysdeps/s390/multiarch/ifunc-impl-list.c
3530 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3531 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3532 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3533 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3534 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3535 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3536 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3537 * sysdeps/s390/ifunc-stpncpy.h: New file.
3538
3539 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3540
3541 * sysdeps/s390/multiarch/Makefile
3542 (sysdep_routines): Remove strncpy variants.
3543 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3544 * sysdeps/s390/multiarch/ifunc-impl-list.c
3545 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3546 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3547 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3548 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3549 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3550 * sysdeps/s390/ifunc-strncpy.h: New file.
3551 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3552 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3553 and adjust ifunc handling.
3554 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3555 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3556 and adjust ifunc handling.
3557 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3558 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3559
3560 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3561
3562 * sysdeps/s390/multiarch/Makefile
3563 (sysdep_routines): Remove stpcpy variants.
3564 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3565 * sysdeps/s390/multiarch/ifunc-impl-list.c
3566 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3567 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3568 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3569 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3570 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3571 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3572 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3573 * sysdeps/s390/ifunc-stpcpy.h: New file.
3574
3575 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3576
3577 * sysdeps/s390/multiarch/Makefile
3578 (sysdep_routines): Remove strcpy variants.
3579 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3580 * sysdeps/s390/multiarch/ifunc-impl-list.c
3581 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3582 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3583 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3584 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3585 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3586 * sysdeps/s390/ifunc-strcpy.h: New file.
3587 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3588 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3589 for 31/64bit and ifunc handling.
3590 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3591 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3592 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3593
3594 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3595
3596 * sysdeps/s390/multiarch/Makefile
3597 (sysdep_routines): Remove strnlen variants.
3598 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3599 * sysdeps/s390/multiarch/ifunc-impl-list.c
3600 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3601 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3602 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3603 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3604 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3605 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3606 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3607 * sysdeps/s390/ifunc-strnlen.h: New file.
3608
3609 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3610
3611 * sysdeps/s390/multiarch/Makefile
3612 (sysdep_routines): Remove strlen variants.
3613 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3614 * sysdeps/s390/multiarch/ifunc-impl-list.c
3615 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3616 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3617 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3618 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3619 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3620 * sysdeps/s390/multiarch/strlen.c: Move to ...
3621 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3622 * sysdeps/s390/ifunc-strlen.h: New file.
3623
3624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3625
3626 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3627 * sysdeps/s390/multiarch/ifunc-impl-list.c
3628 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3629 * sysdeps/s390/ifunc-memmem.h: New file.
3630 * sysdeps/s390/memmem.c: Likewise.
3631 * sysdeps/s390/memmem-c.c: Likewise.
3632 * sysdeps/s390/memmem-vx.c: Likewise.
3633
3634 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3635
3636 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3637 * sysdeps/s390/multiarch/ifunc-impl-list.c
3638 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3639 * sysdeps/s390/ifunc-strstr.h: New file.
3640 * sysdeps/s390/strstr.c: Likewise.
3641 * sysdeps/s390/strstr-c.c: Likewise.
3642 * sysdeps/s390/strstr-vx.c: Likewise.
3643
3644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3645
3646 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3647 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3648 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3649 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3650 New defines.
3651 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3652 * sysdeps/s390/memmove-c.c: New file.
3653 * sysdeps/s390/memmove.c: Likewise.
3654 * sysdeps/s390/multiarch/ifunc-impl-list.c
3655 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3656
3657 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3658
3659 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3660 * sysdeps/s390/configure.ac: Add check for z13 support.
3661 * sysdeps/s390/configure: Regenerated.
3662
3663 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3664
3665 * sysdeps/s390/memcopy.h: New file.
3666
3667 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3668
3669 * sysdeps/s390/s390-32/bcopy.S: Remove.
3670 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3671
3672 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3673
3674 * sysdeps/s390/ifunc-memcpy.h: New File.
3675 * sysdeps/s390/memcpy.S: Move to ...
3676 * sysdeps/s390/memcpy-z900.S ... here.
3677 Move implementations from memcpy-s390x.s to here.
3678 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3679 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3680 Remove memcpy/mempcpy variants.
3681 * sysdeps/s390/Makefile (sysdep_routines):
3682 Add memcpy/mempcpy variants.
3683 * sysdeps/s390/multiarch/ifunc-impl-list.c
3684 (__libc_ifunc_impl_list): Adjust ifunc variants for
3685 memcpy and mempcpy.
3686 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3687 to ...
3688 * sysdeps/s390/memcpy.c: ... here.
3689 Adjust ifunc variants for memcpy.
3690 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3691 * sysdeps/s390/mempcpy.c: ... here.
3692 Adjust ifunc variants for mempcpy.
3693 * sysdeps/s390/mempcpy.S: Delete file.
3694
3695 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3696
3697 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3698 * sysdeps/s390/memcpy.S: ... here.
3699 Adjust to be usable for 31/64bit.
3700 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3701 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3702 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3703 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3704 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3705 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3706 Adjust to be usable for 31/64bit.
3707 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3708 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3709 * sysdeps/s390/multiarch/memcpy.c: ... here.
3710 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3711
3712 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3713
3714 * sysdeps/s390/ifunc-memcmp.h: New File.
3715 * sysdeps/s390/memcmp.S: Move to ...
3716 * sysdeps/s390/memcmp-z900.S ... here.
3717 Move implementations from memcmp-s390x.s to here.
3718 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3719 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3720 Remove memcmp variants.
3721 * sysdeps/s390/Makefile (sysdep_routines):
3722 Add memcmp variants.
3723 * sysdeps/s390/multiarch/ifunc-impl-list.c
3724 (__libc_ifunc_impl_list): Adjust ifunc variants for
3725 memcmp.
3726 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3727 to ...
3728 * sysdeps/s390/memcmp.c: ... here.
3729 Adjust ifunc variants for memcmp.
3730
3731 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3732
3733 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3734 * sysdeps/s390/memcmp.S: ... here.
3735 Adjust to be usable for 31/64bit.
3736 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3737 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3738 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3739 Remove memcmp.
3740 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3741 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3742 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3743 Adjust to be usable for 31/64bit.
3744 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3745 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3746 * sysdeps/s390/multiarch/memcmp.c: ... here.
3747 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3748
3749 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3750
3751 * sysdeps/s390/s390-32/bzero.S: Delete file.
3752 * sysdeps/s390/s390-64/bzero.S: Likewise.
3753 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3754 * sysdeps/s390/bzero.c: New file.
3755 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3756 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3757 * sysdeps/s390/multiarch/ifunc-impl-list.c
3758 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3759
3760 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3761
3762 * sysdeps/s390/ifunc-memset.h: New File.
3763 * sysdeps/s390/memset.S: Move to ...
3764 * sysdeps/s390/memset-z900.S ... here.
3765 Move implementations from memset-s390x.s to here.
3766 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3767 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3768 Remove memset variants.
3769 * sysdeps/s390/Makefile (sysdep_routines):
3770 Add memset variants.
3771 * sysdeps/s390/multiarch/ifunc-impl-list.c
3772 (__libc_ifunc_impl_list): Adjust ifunc variants for
3773 memset.
3774 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3775 to ...
3776 * sysdeps/s390/memset.c: ... here.
3777 Adjust ifunc variants for memset.
3778
3779 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3780
3781 * sysdeps/s390/s390-64/memset.S: Move to ...
3782 * sysdeps/s390/memset.S: ... here.
3783 Adjust to be usable for 31/64bit.
3784 * sysdeps/s390/s390-32/memset.S: Delete File.
3785 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3786 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3787 Remove memset.
3788 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3789 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3790 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3791 Adjust to be usable for 31/64bit.
3792 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3793 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3794 * sysdeps/s390/multiarch/memset.c: ... here.
3795 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3796
3797 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3798
3799 * sysdeps/s390/multiarch/ifunc-resolve.h
3800 (s390_libc_ifunc_init, s390_libc_ifunc,
3801 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3802
3803 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3804
3805 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3806 * sysdeps/s390/configure.ac: Add check for z10 support.
3807 * sysdeps/s390/configure: Regenerated.
3808
3809 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3810
3811 * sysdeps/i386/atomic-machine.h: Merged with ...
3812 * sysdeps/x86_64/atomic-machine.h: To ...
3813 * sysdeps/x86/atomic-machine.h: This. New file.
3814
3815 2018-12-18 Florian Weimer <fweimer@redhat.com>
3816
3817 Rewrite locale/gen-translit.pl in Python.
3818 * locale/Makefile (generated): Add C-translit.h.
3819 (before-compile): Add $(objpfx)C-translit.h.
3820 (C-translit.h): Move to $(objpfx). Create target directory.
3821 Build using Python script.
3822 * locale/gen-translit.py: New file.
3823 * locale/gen-translit.pl: Remove file.
3824 * locale/C-translit.h.in: Change comment character to '#' for
3825 easier parsing without a C preprocessor.
3826 * locale/C-translit.h: Remove generated file.
3827 * manual/install.texi (Tools for Compilation): Do not mention
3828 C-translit.h.
3829 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3830 Remove locale/C-translit.h.
3831 * scripts/update-copyrights: Likewise.
3832 * INSTALL: Regenerate.
3833
3834 2018-12-18 Florian Weimer <fweimer@redhat.com>
3835
3836 [BZ #23995]
3837 * localedata/locales/bi_VU: Remove executable bit from file.
3838
3839 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3840
3841 * include/time.h
3842 (__localtime64): Add.
3843 * manual/maint.texi: Document Y2038 symbol handling.
3844 * time/localtime.c
3845 (__localtime64): Add.
3846 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3847
3848 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3849
3850 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3851 Do not clobber r12.
3852
3853 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3854 to allow extra macros from first or second sources.
3855 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3856 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3857 (tests-special): Add $(objpfx)tst-mman-consts.out.
3858 ($(objpfx)tst-mman-consts.out): New makefile target.
3859
3860 2018-12-17 Mao Han <han_mao@c-sky.com>
3861
3862 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3863 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3864 without stat64 system call support.
3865 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3866 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3867 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3868 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3869 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3870 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3871 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3872 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3873 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3874 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3875 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3876
3877 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3878
3879 regex: fix storage-exhaustion error
3880 [BZ #18040]
3881 * posix/regexec.c (get_subexp):
3882 Do not continue if storage is exhausted.
3883
3884 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3885
3886 regex: fix heap-use-after-free error
3887 [BZ #18040]
3888 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3889 https://debbugs.gnu.org/32592
3890 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3891 call extend_buffers which reallocates the re_string_t internal buffer.
3892 Local variable 'buf' was not updated in such case, resulting in
3893 use-after-free.
3894 * posix/regexec.c (get_subexp): Update 'buf' after call to
3895 get_subexp_sub.
3896
3897 2018-12-15 Florian Weimer <fweimer@redhat.com>
3898
3899 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3900 (minimum_stride_size): Use it.
3901 (support_blob_repeat_allocate): Likewise.
3902
3903 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3904
3905 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3906 definition.
3907 (acosh): Likewise.
3908 (atanh): Likewise.
3909
3910 2018-12-14 Florian Weimer <fweimer@redhat.com>
3911
3912 * manual/process.texi (Process Creation Concepts): Remove
3913 documentation of process (ID) lifetime. List more process
3914 creation functions. Reference Process Identification section.
3915 (Process Identification): Add information about process ID
3916 lifetime. Describe Linux thread/task IDs.
3917 * manual/signal.texi (Signaling Another Process): Mention that the
3918 signal is always sent to the process.
3919
3920 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3921
3922 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3923 and tst-ldbl-efgcvt.
3924 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3925 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3926 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3927 (fcvt_tests, output_error, output_r_error, do_test): Use the
3928 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3929 select the type of floating-point variables and arguments; to
3930 produce extra tests for double and conversion specifiers for
3931 printf; and to set the names of called functions.
3932 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3933 in tst-efgcvt-template.c.
3934 * misc/tst-ldbl-efgcvt.c: Likewise.
3935
3936 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3937
3938 * nss/Makefile (tst-nss-test3.out): New rule.
3939
3940 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3941
3942 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3943 clobber sp.
3944
3945 2018-12-13 fanjinke <fanjinke@hygon.cn>
3946
3947 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3948 "HygonGenuine".
3949
3950 2018-12-13 Andreas Schwab <schwab@suse.de>
3951
3952 [BZ #23861]
3953 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3954 (__pthread_rwlock_rdlock_full): Update expected value for
3955 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3956 * nptl/tst-rwlock-pwn.c: New file.
3957 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3958
3959 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3960
3961 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3962 definition.
3963
3964 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3965
3966 * benchtests/scripts/compare_bench.py (do_compare): write to
3967 stderr in casestat is not present.
3968 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3969 stderr in case timings field is not present. Also string showing
3970 the output filename goes into the stderr.
3971
3972 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3973
3974 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3975 and ZeroDivisorError exceptions.
3976 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3977 argument to loop through user provided statistics.
3978 * benchtests/scripts/compare_bench.py (main): Include the --stats
3979 argument.
3980
3981 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3982
3983 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3984 instead of return.
3985
3986 2018-12-12 Florian Weimer <fweimer@redhat.com>
3987
3988 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3989 clause to copyright header.
3990
3991 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3992
3993 [BZ #23614]
3994 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3995 registers saved in the stack frame.
3996 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3997 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3998
3999 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4000
4001 * include/bits/monetary-ldbl.h: New file.
4002 * include/bits/printf-ldbl.h: Likewise.
4003 * include/bits/stdio-ldbl.h: Likewise.
4004 * include/bits/stdlib-ldbl.h: Likewise.
4005 * include/bits/syslog-ldbl.h: Likewise.
4006 * include/bits/wchar-ldbl.h: Likewise.
4007
4008 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4009
4010 * libio/libio.h: Remove redirection for _IO_vfprintf.
4011
4012 2018-12-11 Andreas Schwab <schwab@suse.de>
4013
4014 * Makerules: Remove all references to abilist-pattern.
4015 (update-all-abi): Simplify find expression.
4016
4017 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4018
4019 [BZ #23961]
4020 * math/auto-libm-test-in: Add new test case.
4021 * math/auto-libm-test-out-pow: Regenerated.
4022 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4023
4024 2018-12-10 DJ Delorie <dj@redhat.com>
4025
4026 [BZ #23948]
4027 * support/test-container.c: Move postclean step to before we
4028 change namespaces.
4029
4030 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4031
4032 * scripts/gen-as-const.py (main): Handle --python option.
4033 * scripts/gen-py-const.awk: Remove.
4034 * Makerules (py-const-script): Use gen-as-const.py.
4035 ($(py-const)): Likewise.
4036 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4037 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4038 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4039 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4040 ~PTHREAD_MUTEX_NO_ELISION_NP.
4041 * manual/README.pretty-printers: Update reference to
4042 gen-py-const.awk.
4043
4044 * scripts/glibcextract.py: New file.
4045 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4046 or tempfile. Import glibcexctract.
4047 (compute_c_consts): Remove. Moved to glibcextract.py.
4048 (gen_test): Update reference to compute_c_consts.
4049 (main): Likewise.
4050 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4051 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4052 * sysdeps/unix/sysv/linux/Makefile
4053 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4054 Redirect stderr as well as stdout.
4055
4056 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4057
4058 [BZ #19767]
4059 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4060 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4061 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4062 ALWAYS_USE_VSYSCALL.
4063 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4064 ALWAYS_USE_VSYSCALL.
4065 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4066 ALWAYS_USE_VSYSCALL.
4067
4068 2018-12-10 Florian Weimer <fweimer@redhat.com>
4069
4070 [BZ #23972]
4071 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4072 offset instead of count for clarity. Fix typo in comment.
4073 (__old_getdents64): Keep track of previous offset. Use it to call
4074 handle_overflow.
4075 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4076 that d_off is never zero.
4077
4078 2018-12-10 Andreas Schwab <schwab@suse.de>
4079
4080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4081 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4083 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4084 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4085
4086 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4087
4088 * timezone/private.h: Update from tzcode 2018g.
4089 * timezone/tzfile.h: Likewise.
4090 * timezone/tzselect.ksh: Likewise.
4091 * timezone/zdump.c: Likewise.
4092 * timezone/zic.c: Likewise.
4093
4094 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4095
4096 [BZ #23490]
4097 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4098 (do_test): Adjust buffer size and fix format.
4099
4100 2018-12-07 DJ Delorie <dj@redhat.com>
4101
4102 [BZ #23907]
4103 * malloc/tst-tcfree3.c: New.
4104 * malloc/Makefile: Add it.
4105
4106 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4107
4108 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4109
4110 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4111
4112 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4113 used as a mask for the mode argument of __vfscanf_internal and
4114 __vfwscanf_internal.
4115 * stdio-common/vfscanf-internal.c
4116 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4117 (__strtof128_internal): Define to __wcstof128_internal.
4118 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4119 __strtof128_internal or __wcstof128_internal when the format of
4120 long double is the same as _Float128.
4121
4122 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4123
4124 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4125 * posix/confstr.c (confstr): Rename to __confstr.
4126 (__confstr): Add hidden def.
4127 (confstr): Add weak alias for __confstr.
4128 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4129 confstr.
4130
4131 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4132
4133 * NEWS: Mention getcpu.
4134 * include/sched.h (__getcpu): New libc_hidden_proto.
4135 * manual/resource.texi: Document getcpu.
4136 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4137 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4138 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4139 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4140 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4141 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4142 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4143 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4144 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4145 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4146 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4147 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4148 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4149 Likewise.
4150 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4151 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4152 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4153 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4154 Likewise.
4155 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4156 Likewise.
4157 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4158 Likewise.
4159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4160 Likewise.
4161 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4162 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4163 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4164 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4165 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4166 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4167 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4168 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4169 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4170 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4171 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4172 Also check getcpu.
4173
4174 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4175
4176 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4177 functions.
4178 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4179
4180 2018-12-07 Florian Weimer <fweimer@redhat.com>
4181
4182 [BZ #17405]
4183 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4184 * posix/Versions (GLIBC_2.29): Export
4185 posix_spawn_file_actions_addfchdir_np.
4186 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4187 * posix/spawn_faction_destroy.c
4188 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4189 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4190 and the field action.fchdir_action.
4191 * posix/tst-spawn-chdir.c (add_chdir): New function.
4192 (do_test): Add do_fchdir loop. Call add_chdir.
4193 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4194 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4195 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4196 posix_spawn_file_actions_addfchdir_np.
4197 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4198 Likewise.
4199 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4200 Likewise.
4201 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4202 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4203 Likewise.
4204 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4205 Likewise.
4206 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4207 Likewise.
4208 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4209 Likewise.
4210 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4211 Likewise.
4212 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4213 Likewise.
4214 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4215 (GLIBC_2.29): Likewise.
4216 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4217 (GLIBC_2.29): Likewise.
4218 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4219 (GLIBC_2.29): Likewise.
4220 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4221 (GLIBC_2.29): Likewise.
4222 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4223 Likewise.
4224 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4225 (GLIBC_2.29): Likewise.
4226 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4227 (GLIBC_2.29): Likewise.
4228 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4229 (GLIBC_2.29): Likewise.
4230 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4231 (GLIBC_2.29): Likewise.
4232 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4233 Likewise.
4234 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4235 Likewise.
4236 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4237 Likewise.
4238 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4239 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4240 Likewise.
4241 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4242 Likewise.
4243 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4244 Likewise.
4245 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4246 Likewise.
4247
4248 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4249
4250 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4251 trailing whitespace removed.
4252 * scripts/config.guess: Update to version 2018-11-28.
4253 * scripts/config.sub: Update to version 2018-11-28.
4254 * scripts/install-sh: Update to version 2018-03-11.20.
4255 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4256 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4257
4258 2018-12-07 Florian Weimer <fweimer@redhat.com>
4259
4260 [BZ #23927]
4261 CVE-2018-19591
4262 * inet/tst-if_index-long.c: New file.
4263 * inet/Makefile (tests): Add tst-if_index-long.
4264
4265 2018-12-07 Florian Weimer <fweimer@redhat.com>
4266
4267 * support/check.h (support_record_failure_is_failed): Declare.
4268 * support/descriptors.h: New file.
4269 * support/support_descriptors.c: Likewise.
4270 * support/tst-support_descriptors.c: Likewise.
4271 * support/support_record_failure.c
4272 (support_record_failure_is_failed): New function.
4273 * support/Makefile (libsupport-routines): Add support_descriptors.
4274 (tests): Add tst-support_descriptors.
4275
4276 2018-12-05 Zack Weinberg <zackw@panix.com>
4277 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4278
4279 * stdio-common/vfprintf-internal.c
4280 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4281 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4282 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4283 and __no_long_double.
4284 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4285 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4286 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4287 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4288 and __nldbl_*syslog* functions.
4289 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4290 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4291 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4292 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4293 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4294 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4295 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4296 (__nldbl_vwprintf, __nldbl_wprintf):
4297 Directly call the appropriate __v*printf_internal routine, passing
4298 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4299 variable names.
4300 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4301 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4302 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4303 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4304 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4305 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4306 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4307 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4308 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4309 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4310 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4311 (__nldbl_syslog, __nldbl_vsyslog):
4312 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4313 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4314 appropriate.
4315 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4316 appropriate.
4317
4318 2018-12-05 Zack Weinberg <zackw@panix.com>
4319 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4320
4321 [BZ #11319]
4322 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4323 Moved here from debug/vsprintf_chk.c.
4324 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4325 and completion logic for the strfile to match exactly what
4326 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4327 _IO_str_init_static_internal instead of maxlen-1.
4328 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4329 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4330 __vsprintf_internal.
4331
4332 * debug/vsprintf_chk.c (__vsprintf_chk)
4333 * debug/sprintf_chk.c (__sprintf_chk):
4334 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4335 'flags' argument is positive, and slen as maxlen. No need to lock
4336 the FILE and/or construct a temporary FILE. Minimize and normalize
4337 header inclusions and variable names. Do not libc_hidden_def anything.
4338
4339 * debug/asprintf_chk.c (__asprintf_chk)
4340 * debug/dprintf_chk.c (__dprintf_chk)
4341 * debug/fprintf_chk.c (__fprintf_chk)
4342 * debug/fwprintf_chk.c (__fwprintf_chk)
4343 * debug/printf_chk.c (__printf_chk)
4344 * debug/snprintf_chk.c (__snprintf_chk)
4345 * debug/swprintf_chk.c (__swprintf_chk)
4346 * debug/vasprintf_chk.c (__vasprintf_chk)
4347 * debug/vdprintf_chk.c (__vdprintf_chk)
4348 * debug/vfprintf_chk.c (__vfprintf_chk)
4349 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4350 * debug/vprintf_chk.c (__vprintf_chk)
4351 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4352 * debug/vswprintf_chk.c (__vswprintf_chk)
4353 * debug/vwprintf_chk.c (__vwprintf_chk)
4354 * debug/wprintf_chk.c (__wprintf_chk):
4355 Directly call the corresponding vxxprintf_internal function, passing
4356 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4357 the FILE and/or construct a temporary FILE. Minimize and normalize
4358 header inclusions and variable names. Do not libc_hidden_def anything.
4359
4360 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4361 __obstack_vprintf_internal.
4362 (__obstack_vprintf_chk): Convert into a wrapper that calls
4363 __obstack_vprintf_internal (these two functions already had the
4364 same code) and move to new file...
4365 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4366 file.
4367 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4368 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4369 * debug/Makefile (routines): Add vobprintf_chk.
4370
4371 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4372 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4373 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4374 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4375 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4376 (__nldbl___obstack_vfprintf_chk):
4377 Directly call the corresponding vxxprintf_internal function,
4378 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4379 duplicate comparison of slen with 0 or maxlen from the corresponding
4380 non-__nldbl function.
4381
4382 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4383 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4384 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4385 Remove libc_hidden_proto.
4386
4387 * stdio-common/vfprintf-internal.c
4388 (__vfprintf_internal, __vfwprintf_internal):
4389 Do not check _IO_FLAGS2_FORTIFY.
4390 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4391 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4392 a comment explaining why it has the maxlen argument.
4393 (_IO_acquire_lock_clear_flags2_fct): Remove.
4394 (_IO_acquire_lock_clear_flags2): Remove.
4395 (_IO_release_lock): Remove conditional statement which will
4396 now never execute.
4397 (_IO_acquire_lock): Remove variable which is now unused.
4398 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4399 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4400
4401 * stdio-common/Makefile (tests): Add tst-bz11319 and
4402 tst-bz11319-fortify2.
4403 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4404 * stdio-common/tst-bz11319-fortify2.c: New file.
4405 * stdio-common/tst-bz11319.c: Likewise.
4406
4407 2018-12-05 Zack Weinberg <zackw@panix.com>
4408 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4409
4410 * misc/syslog.c: Include libioP.h, not iolibio.h.
4411 (__vsyslog_internal): New function with the former body of
4412 __vsyslog_chk; takes mode_flags argument same as
4413 __v*printf_internal. Call __vfprintf_internal directly.
4414
4415 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4416 Remove libc_hidden_def.
4417 (__syslog, __syslog_chk): Use __vsyslog_internal.
4418 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4419
4420 * include/sys/syslog.h: Add multiple inclusion guard.
4421 Add prototype for __vsyslog_internal.
4422 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4423
4424 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4425 Use __vsyslog_internal.
4426
4427 2018-12-05 Zack Weinberg <zackw@panix.com>
4428 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4429
4430 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4431 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4432 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4433 New functions.
4434 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4435 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4436
4437 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4438 Include wctype.h here if COMPILE_WPRINTF is defined.
4439 Define __vfprintf_internal or __vfwprintf_internal, depending
4440 on COMPILE_WPRINTF.
4441 Temporarily, on entry to this function, update mode_flags
4442 according to the environmental settings corresponding to
4443 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4444 Throughout, check mode_flags instead of __ldbl_is_dbl and
4445 _IO_FLAGS2_FORTIFY on the destination FILE.
4446 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4447 Include vfprintf-internal.c. Don't include wctype.h.
4448 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4449 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4450 and vfprintf.
4451 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4452 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4453 and vfwprintf.
4454 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4455
4456 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4457 and add mode_flags argument; use __vfprintf_internal.
4458 (__vdprintf): New function. Alias vdprintf to this.
4459 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4460 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4461 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4462 (__obstack_printf): Use __obstack_printf_internal.
4463 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4464 public aliases __vsnprintf and vsnprintf.
4465 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4466 called internally.
4467 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4468 public aliases _IO_vsprintf and vsprintf.
4469 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4470 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4471 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4472 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4473 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4474
4475 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4476 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4477 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4478 * stdio-common/printf.c: Use __vfprintf_internal.
4479
4480 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4481 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4482 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4483
4484 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4485 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4486 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4487 __vfwprintf_internal.
4488
4489 * libio/libio.h: Remove libc_hidden_proto and declaration for
4490 _IO_vfprintf.
4491 Remove declaration of _IO_vfwprintf.
4492 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4493 _IO_vsprintf.
4494 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4495 _IO_obstack_printf.
4496 * include/stdio.h: Add prototype for __vasprintf.
4497 (__vsnprintf): Remove declaration, because there are no more
4498 internal calls.
4499 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4500 declaration, because there are no more internal calls.
4501
4502 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4503 __vsnprintf_internal, instead of _IO_vsnprintf.
4504 * argp/argp-help.c (__argp_error, __argp_failure): Use
4505 __vasprintf_internal, instead of _IO_vasprintf.
4506 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4507 redefine, because there are no more internal calls.
4508
4509 2018-12-05 Zack Weinberg <zackw@panix.com>
4510 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4511
4512 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4513 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4514 Include libio/strfile.h instead of libioP.h.
4515 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4516 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4517 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4518 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4519 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4520 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4521 necessary. Do not set __no_long_double. Normalize variable names.
4522 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4523 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4524 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4525 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4526 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4527 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4528 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4529 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4530 Do not set __no_long_double. Normalize variable names.
4531
4532 2018-12-05 Zack Weinberg <zackw@panix.com>
4533 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4534
4535 * stdio-common/isoc99_scanf.c
4536 * stdio-common/isoc99_fscanf.c
4537 * stdio-common/isoc99_sscanf.c
4538 * stdio-common/isoc99_vscanf.c
4539 * stdio-common/isoc99_vfscanf.c
4540 * stdio-common/isoc99_vsscanf.c
4541 * wcsmbs/isoc99_wscanf.c
4542 * wcsmbs/isoc99_fwscanf.c
4543 * wcsmbs/isoc99_swscanf.c
4544 * wcsmbs/isoc99_vwscanf.c
4545 * wcsmbs/isoc99_vfwscanf.c
4546 * wcsmbs/isoc99_vswscanf.c:
4547 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4548 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4549 No need to lock and unlock the FILE passed to that function.
4550
4551 * stdio-common/vfscanf-internal.c
4552 (__vfscanf_internal, __vfwscanf_internal):
4553 Don't look at _IO_FLAGS2_SCANF_STD.
4554 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4555 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4556 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4557
4558 2018-12-05 Zack Weinberg <zackw@panix.com>
4559 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4560
4561 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4562 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4563 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4564 * libio/strfile.h: Add multiple inclusion guard.
4565 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4566
4567 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4568 consistency with the other version of this file.
4569 (ldbl_compat_symbol): New macro.
4570 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4571 New macro.
4572
4573 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4574 Define __vfscanf_internal or __vfwscanf_internal, depending on
4575 COMPILE_WSCANF; don't define any other public symbols.
4576 Remove errval and code to set errp.
4577 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4578 as the mode_flags argument.
4579 (encode_error, conv_error, input_error): Don't set errval.
4580 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4581 Include vfscanf-internal.c.
4582 * stdio-common/vfscanf.c: New file defining the public entry
4583 point vfscanf, which calls __vfscanf_internal.
4584 * stdio-common/vfwscanf.c: New file defining the public entry
4585 point vfwscanf, which calls __vfwscanf_internal.
4586
4587 * stdio-common/iovfscanf.c: New file.
4588 * stdio-common/iovfwscanf.c: Likewise.
4589
4590 * stdio-common/Makefile (routines): Add vfscanf-internal,
4591 vfwscanf-internal, iovfscanf, iovfwscanf.
4592 * stdio-common/Versions: Mention GLIBC_2.29, so that
4593 it can be used in SHLIB_COMPAT expressions.
4594 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4595 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4596 Call __vfscanf_internal, instead of _IO_vfscanf.
4597 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4598 _IO_vfscanf.
4599 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4600 _IO_vfwscanf.
4601
4602 * libio/iovsscanf.c: Clean up includes, when possible. Use
4603 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4604 __vfscanf_internal or __vfwscanf_internal directly.
4605 * libio/iovswscanf.c: Likewise.
4606 * libio/swscanf.c: Likewise.
4607 * libio/vscanf.c: Likewise.
4608 * libio/vwscanf.c: Likewise.
4609 * libio/wscanf.c: Likewise.
4610 * stdio-common/isoc99_fscanf.c: Likewise.
4611 * stdio-common/isoc99_scanf.c: Likewise.
4612 * stdio-common/isoc99_sscanf.c: Likewise.
4613 * stdio-common/isoc99_vfscanf.c: Likewise.
4614 * stdio-common/isoc99_vscanf.c: Likewise.
4615 * stdio-common/isoc99_vsscanf.c: Likewise.
4616 * stdio-common/scanf.c: Likewise.
4617 * stdio-common/sscanf.c: Likewise.
4618 * wcsmbs/isoc99_fwscanf.c: Likewise.
4619 * wcsmbs/isoc99_swscanf.c: Likewise.
4620 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4621 * wcsmbs/isoc99_vswscanf.c: Likewise.
4622 * wcsmbs/isoc99_vwscanf.c: Likewise.
4623 * wcsmbs/isoc99_wscanf.c: Likewise.
4624
4625 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4626
4627 * include/time.h
4628 (__tz_compute): Replace time_t with __time64_t.
4629 (__tz_convert): Replace time_t* with __time64_t.
4630 (__offtime): Replace time_t* with __time64_t.
4631 * time/gmtime.c
4632 (__gmtime_r): Adjust call to __tz_convert.
4633 (gmtime): Likewise.
4634 * time/localtime.c
4635 (__localtime_r): Likewise.
4636 (localtime): Likewise.
4637 * time/offtime.c: Replace time_t with __time64_t.
4638 * time/tzset.c: Likewise.
4639
4640 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4641
4642 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4643 dynamic linker unless [$(run-built-tests) = yes].
4644
4645 2018-12-03 DJ Delorie <dj@delorie.com>
4646
4647 * support/test-container.c (check_for_unshare_hints): New.
4648 (main): Call it if unshare fails. Add support for "su" scriptlet
4649 command.
4650
4651 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4652
4653 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4654 'START' to indicate that start text should be output.
4655 (gen_test): Likewise.
4656 (main): Generate 'START' for first symbol or '--' line, or at end
4657 of input if not previously generated.
4658
4659 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4660
4661 [BZ #19767]
4662 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4663 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4664 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4665 ALWAYS_USE_VSYSCALL.
4666
4667 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4668
4669 [BZ #23913]
4670 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4671 new_argv by one.
4672
4673 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4674
4675 [BZ #23923]
4676 * locale/programs/localedef.c: Declare boolean hard_links default true.
4677 (options): Add --no-hard-links option.
4678 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4679 * locale/programs/localedef.h: Declare prototype for hard_links.
4680 * locale/programs/locfile.c (write_locale_data): Don't use hard
4681 links if hard_links is false.
4682
4683 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4684
4685 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4686 cpu_features_basic.
4687 (__cache_sysconf): Likewise.
4688 (init_cacheinfo): Likewise.
4689 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4690 populate COMMON_CPUID_INDEX_80000007 and
4691 COMMON_CPUID_INDEX_80000008.
4692 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4693 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4694 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4695 (init_cpu_features): Use _Static_assert on
4696 index_arch_Fast_Unaligned_Load.
4697 __get_cpuid_registers and __get_arch_feature. Updated for
4698 cpu_features_basic. Set stepping in cpu_features.
4699 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4700 (FEATURE_INDEX_2): New.
4701 (FEATURE_INDEX_MAX): Changed to enum.
4702 (COMMON_CPUID_INDEX_D_ECX_1): New.
4703 (COMMON_CPUID_INDEX_80000007): Likewise.
4704 (COMMON_CPUID_INDEX_80000008): Likewise.
4705 (cpuid_registers): Likewise.
4706 (cpu_features_basic): Likewise.
4707 (CPU_FEATURE_USABLE): Likewise.
4708 (bit_arch_XXX_Usable): Likewise.
4709 (cpu_features): Use cpuid_registers and cpu_features_basic.
4710 (bit_arch_XXX): Reweritten.
4711 (bit_cpu_XXX): Likewise.
4712 (index_cpu_XXX): Likewise.
4713 (reg_XXX): Likewise.
4714 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4715 <support/check.h>.
4716 (CHECK_CPU_FEATURE): New.
4717 (CHECK_CPU_FEATURE_USABLE): Likewise.
4718 (cpu_kinds): Likewise.
4719 (do_test): Print vendor, family, model and stepping. Check
4720 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4721 (TEST_FUNCTION): Removed.
4722 Include <support/test-driver.c> instead of
4723 "../../test-skeleton.c".
4724 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4725 Check POPCNT instead of POPCOUNT.
4726 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4727
4728 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4729
4730 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4731 there is no element in `consts'.
4732
4733 2018-12-01 Florian Weimer <fweimer@redhat.com>
4734
4735 * support/support_capture_subprocess.c
4736 (support_capture_subprocess): Check that pipe descriptors have
4737 expected values. Close original pipe descriptors in subprocess.
4738
4739 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4740
4741 [BZ #23032]
4742 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4743 attr with __pthread_default_barrierattr.
4744 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4745 attr with __pthread_default_condattr.
4746 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4747 attr with __pthread_default_mutexattr.
4748 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4749 attr with __pthread_default_rwlockattr.
4750
4751 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4752
4753 * manual/tunables.texi (POSIX Thread Tunables): New node.
4754 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4755 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4756 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4757 __pthread_tunables_init.
4758 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4759 (max_adaptive_count): Define.
4760 * nptl/pthread_mutex_conf.c: New file.
4761 * nptl/pthread_mutex_conf.h: New file.
4762 * sysdeps/generic/adaptive_spin_count.h: New file.
4763 * sysdeps/nptl/dl-tunables.list: New file.
4764 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4765 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4766 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4767 Likewise.
4768
4769 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4770
4771 [BZ #20544]
4772 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4773 * stdlib/on_exit.c (__on_exit): Likewise.
4774 * stdlib/Makefile (tests): Add tst-bz20544.
4775 * stdlib/tst-bz20544.c: New test.
4776
4777 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4778
4779 [BZ #19767]
4780 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4781 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4782 New.
4783
4784 2018-11-30 Florian Weimer <fweimer@redhat.com>
4785
4786 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4787 Extend error logging.
4788 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4789 symbol.
4790
4791 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4792
4793 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4794 __sigismember instead of sigismember.
4795 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4796 cancel_handler): New definitions.
4797 (do_system): Use posix_spawn instead of fork and execl and remove
4798 reentracy code.
4799 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4800 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4801 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4802 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4803 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4804 * sysdeps/unix/sysv/linux/system.c: Likewise.
4805
4806 [BZ #22834]
4807 [BZ #17490]
4808 * NEWS: Add new semantic for atfork with popen and system.
4809 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4810 fork and execl.
4811
4812 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4813
4814 [BZ #23690]
4815 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4816 modification order when accessing reloc_result->addr.
4817 * include/link.h (reloc_result): Add field init.
4818 * nptl/Makefile (tests): Add tst-audit-threads.
4819 (modules-names): Add tst-audit-threads-mod1 and
4820 tst-audit-threads-mod2.
4821 Add rules to build tst-audit-threads.
4822 * nptl/tst-audit-threads-mod1.c: New file.
4823 * nptl/tst-audit-threads-mod2.c: Likewise.
4824 * nptl/tst-audit-threads.c: Likewise.
4825 * nptl/tst-audit-threads.h: Likewise.
4826
4827 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4828
4829 * scripts/gen-as-const.py: New file.
4830 * scripts/gen-as-const.awk: Remove.
4831 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4832 gen-as-const.py.
4833 ($(objpfx)test-as-const-%.c): Likewise.
4834
4835 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4836
4837 * elf/dl-exception.c: Include <_itoa.h>.
4838
4839 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4840
4841 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4842 returned by __f_setlk.
4843
4844 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4845 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4846
4847 * elf/Makefile (tests-internal): Add tst-create_format1.
4848 * elf/dl-exception.c (_dl_exception_create_format): Support
4849 %x, %lx and %zx.
4850 * elf/tst-create_format1.c: New file.
4851
4852 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4853
4854 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4855 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4856 gnulib.)
4857 * argp/argp-help.c (__argp_failure): Likewise.
4858
4859 2018-11-29 Mao Han <han_mao@c-sky.com>
4860
4861 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4862 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4863 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4864 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4865 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4866 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4867 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4868 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4869 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4870 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4871 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4872 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4873 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4874 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4875 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4876 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4877 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4878 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4879 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4880 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4881 (R_CKCORE_TLS_TPOFF32): New defines.
4882
4883 2018-11-29 Florian Weimer <fweimer@redhat.com>
4884
4885 * posix/Makefile (before-compile): Remove testcases.h and
4886 ptestcases.h.
4887 (generated): Add testcases.h and ptestcases.h.
4888 (testcases.h, ptestcases.h): Move to $(objpfx).
4889 (runtests.o): Add dependency on testcases.h.
4890 (runptests.o): Add dependency on ptestcases.h.
4891 * posix/testcases.h, posix/ptestcases.h: Remove files.
4892 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4893 not touch posix/testcases.h and posix/ptestcases.h.
4894
4895 2018-11-28 Florian Weimer <fweimer@redhat.com>
4896
4897 support: Add signal support to support_capture_subprocess_check.
4898 * support/capture_subprocess.h (support_capture_subprocess_check):
4899 Adjust comment and rename parameter.
4900 * support/support_capture_subprocess_check.c
4901 (print_actual_status): New function.
4902 (support_capture_subprocess_check): Support negative
4903 status_or_signal. Call print_actual_status.
4904 * support/tst-support_capture_subprocess.c (do_test): Call
4905 support_capture_subprocess_check.
4906 * libio/tst-vtables-common.c (termination_status)
4907 (init_termination_status): Remove.
4908 (check_for_termination): Adjust support_capture_subprocess_check
4909 call.
4910 (do_test): Remove call to init_termination_status.
4911
4912 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4913
4914 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4915 source directory instead of a copy.
4916 (CommandList.create_copy_dir): Remove.
4917
4918 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4919
4920 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4921
4922 2018-11-28 Florian Weimer <fweimer@redhat.com>
4923
4924 * support/support.h (support_quote_string): Do not use str
4925 parameter name.
4926
4927 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4928
4929 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4930 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4931
4932 2018-11-27 Florian Weimer <fweimer@redhat.com>
4933
4934 * support/support.h (support_quote_string): Declare.
4935 * support/support_quote_string.c: New file.
4936 * support/tst-support_quote_string.c: Likewise.
4937 * support/Makefile (libsupport-routines): Add
4938 support_quote_string.
4939 (tests): Add tst-support_quote_string.
4940
4941 2018-11-27 Florian Weimer <fweimer@redhat.com>
4942
4943 [BZ #23927]
4944 CVE-2018-19591
4945 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4946 descriptor leak in case of ENODEV error.
4947
4948 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4949
4950 [BZ #19767]
4951 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4952 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4953 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4954
4955 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4956
4957 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4958 Error for unknown lines.
4959
4960 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4961
4962 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4963 Touch additional files.
4964
4965 2018-11-26 Florian Weimer <fweimer@redhat.com>
4966
4967 [BZ #23907]
4968 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4969 double-frees.
4970
4971 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4972
4973 [BZ #19767]
4974 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4975 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4976 SHARED. Include sysdep.h.
4977 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4978 ALWAYS_USE_VSYSCALL.
4979 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4980 ALWAYS_USE_VSYSCALL.
4981
4982 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4983
4984 [BZ #19767]
4985 * nptl/Makefile (tests-static): Add tst-cond11-static.
4986 (tests): Likewise.
4987 * nptl/tst-cond11-static.c: New File.
4988 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4989 tst-affinity-static.
4990 (tests): Likewise.
4991 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4992 instead of SHARED.
4993 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4994 (USE_VSYSCALL): Likewise.
4995 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4996 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4997 instead of SHARED.
4998 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4999 SHARED.
5000 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5001 New.
5002
5003 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5004
5005 [BZ #23915]
5006 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5007 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5008 Undefine.
5009
5010 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5011
5012 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5013 (tst-cet-legacy-1a-ARGS): New.
5014 ($(objpfx)tst-cet-legacy-1a): New target.
5015 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5016
5017 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5018
5019 * conform/conformtest.py (CompileSubTest.__init__): Set
5020 self.run_early to False.
5021 (ExecuteSubTest.__init__): Likewise.
5022 (HeaderTests.run): Try running all non-optional, non-XFAILed
5023 compilation tests in a single execution of the compiler.
5024
5025 * conform/conformtest.py (CompileSubTest): New class.
5026 (ExecuteSubTest): Likewise.
5027 (ElementTest.run): Rename to gen_subtests. Append tests to
5028 self.subtests instead of running them.
5029 (ConstantTest.run): Likewise.
5030 (SymbolTest.run): Likewise.
5031 (TypeTest.run): Likewise.
5032 (TagTest.run): Likewise.
5033 (FunctionTest.run): Likewise.
5034 (VariableTest.run): Likewise.
5035 (MacroFunctionTest.run): Likewise.
5036 (MacroStrTest.run): Likewise.
5037 (HeaderTests.handle_test_line): Generate subtests for tests.
5038 (HeaderTests.run): Run subtests for tests.
5039
5040 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5041
5042 * math/Versions (GLIBC_2.29): Add pow.
5043 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5044 symbol.
5045 * math/w_pow.c: New file.
5046 * sysdeps/i386/fpu/w_pow.c: New file.
5047 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5048 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5049 and add necessary aliases.
5050 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5051 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5052 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5053 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5054 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5055 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5056 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5057 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5058 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5059 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5060 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5061 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5062 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5063 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5064 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5066 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5068 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5069 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5070 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5071 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5072 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5073 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5074 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5075 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5076 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5077 __pow.
5078 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5079 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5080 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5081
5082 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5083
5084 * math/Versions (GLIBC_2.29): Add log2.
5085 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5086 symbol.
5087 * math/w_log2.c: New file.
5088 * sysdeps/i386/fpu/w_log2.c: New file.
5089 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5090 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5091 and add necessary aliases.
5092 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5093 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5094 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5095 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5096 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5097 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5098 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5099 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5100 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5101 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5102 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5103 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5104 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5105 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5106 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5107 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5109 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5111 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5112 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5113 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5114 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5115 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5116 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5117 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5118
5119 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5120
5121 * math/Versions (GLIBC_2.29): Add log.
5122 * math/w_log_compat.c (__log_compat): Change to versioned compat
5123 symbol.
5124 * math/w_log.c: New file.
5125 * sysdeps/i386/fpu/w_log.c: New file.
5126 * sysdeps/ia64/fpu/e_log.S: Update.
5127 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5128 and add necessary aliases.
5129 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5130 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5131 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5132 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5133 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5134 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5135 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5136 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5137 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5138 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5139 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5140 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5141 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5142 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5143 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5146 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5148 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5149 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5150 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5151 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5152 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5153 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5154 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5155 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5156 __log.
5157 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5158 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5159 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5160 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5161
5162 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5163
5164 * math/Versions (GLIBC_2.29): Add exp and exp2.
5165 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5166 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5167 * math/w_exp_compat.c (__exp_compat): Likewise.
5168 * math/w_exp.c: New file.
5169 * math/w_exp2.c: New file.
5170 * sysdeps/i386/fpu/w_exp.c: New file.
5171 * sysdeps/i386/fpu/w_exp2.c: New file.
5172 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5173 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5174 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5175 and add necessary aliases.
5176 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5177 and add necessary aliases.
5178 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5179 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5180 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5181 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5182 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5183 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5184 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5185 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5186 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5187 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5188 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5189 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5190 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5191 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5192 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5193 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5194 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5195 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5196 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5197 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5198 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5199 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5200 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5201 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5202 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5203 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5204 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5205 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5206 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5207 (__ieee754_exp): Rename to __exp.
5208 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5209 (__ieee754_exp): Rename to __exp.
5210 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5211 (__ieee754_exp): Rename to __exp.
5212 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5213 __exp.
5214 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5215
5216 2018-11-20 DJ Delorie <dj@redhat.com>
5217
5218 * malloc/malloc.c (tcache_entry): Add key field.
5219 (tcache_put): Set it.
5220 (tcache_get): Likewise.
5221 (_int_free): Check for double free in tcache.
5222 * malloc/tst-tcfree1.c: New.
5223 * malloc/tst-tcfree2.c: New.
5224 * malloc/Makefile: Run the new tests.
5225 * manual/probes.texi: Document memory_tcache_double_free probe.
5226
5227 * dlfcn/dlerror.c (check_free): Prevent double frees.
5228
5229 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5230
5231 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5232
5233 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5234
5235 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5236 in tests. Use names for format arguments.
5237 (ConstantTest.run): Likewise.
5238 (SymbolTest.run): Likewise.
5239 (TypeTest.run): Likewise.
5240 (TagTest.run): Likewise.
5241 (FunctionTest.run): Likewise.
5242 (VariableTest.run): Likewise.
5243 (MacroFunctionTest.run): Likewise.
5244 (MacroStrTest.run): Likewise.
5245 (HeaderTests.__init__): Set self.num_tests.
5246 (HeaderTests.handle_test_line): Set test.num. Increment
5247 self.num_tests.
5248
5249 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5250
5251 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5252 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5253 SEEK_SET.
5254
5255 2018-11-19 Mao Han <han_mao@c-sky.com>
5256
5257 * scripts/config.guess: Update to version 2018-08-29.
5258 * scripts/config.sub: Update to version 2018-08-29.
5259
5260 2018-11-19 Florian Weimer <fweimer@redhat.com>
5261
5262 support: Print timestamps in timeout handler.
5263 * support/support_test_main.c (print_timestamp): New function.
5264 (signal_handler): Use it to print the termination time and the
5265 time of the last write to standard output.
5266
5267 2018-11-16 Zack Weinberg <zackw@panix.com>
5268 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5269
5270 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5271 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5272 argument.
5273 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5274 and add flags argument. Check flags instead of __ldbl_is_dbl when
5275 deciding whether to set is_long_double.
5276 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5277 passing zero for flags argument.
5278 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5279
5280 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5281 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5282 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5283 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5284 variable names. Remove libc_hidden_def/libc_hidden_proto from
5285 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5286 longer called from within the library.
5287 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5288 for __nldbl___vstrfmon_l, declare it explicitly.
5289
5290 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5291
5292 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5293
5294 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5295 macros
5296 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5297 F_SETLK64, F_SETLKW64, respectively.
5298 * sysdeps/mach/hurd/f_setlk.c: New file.
5299 * sysdeps/mach/hurd/f_setlk.h: New file.
5300 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5301 f_setlk.
5302 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5303 (__libc_fcntl): Move non-flock operations to...
5304 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5305 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5306
5307 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5308
5309 mktime: DEBUG_MKTIME cleanup
5310 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5311 And it’s no longer needed now that glibc and Gnulib both have
5312 their own testing mechanisms for mktime.
5313 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5314
5315 mktime: fix non-EOVERFLOW errno handling
5316 [BZ#23789]
5317 mktime was not properly reporting failures when the underlying
5318 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5319 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5320 The problem could happen on non-glibc platforms, with Gnulib.
5321 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5322 (tm_diff): ... this simpler function, which does not change errno.
5323 All callers changed to deal with errno themselves.
5324 (ranged_convert, __mktime_internal): Return failure immediately if
5325 the underlying function reports any failure other than EOVERFLOW.
5326 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5327 gap code fails.
5328
5329 mktime: fix bug with Y2038 DST transition
5330 [BZ#23789]
5331 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5332 mishandle a DST transition that jumps over the Y2038 boundary.
5333 No such DST transitions are known so this is only a theoretical
5334 bug, but we might as well do things right.
5335
5336 mktime: make more room for overflow
5337 [BZ#23789]
5338 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5339 This is so that we can add tm_diff results to a previous guess,
5340 which will be useful in a later patch.
5341
5342 mktime: simplify offset guess
5343 [BZ#23789]
5344 * time/mktime.c (__mktime_internal): Omit excess precision.
5345
5346 mktime: new test for mktime failure
5347 [BZ#23789]
5348 Based on a test suggested by Albert Aribaud in:
5349 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5350 * time/Makefile (tests): Add bug-mktime4.
5351 * time/bug-mktime4.c: New file.
5352
5353 mktime: fix EOVERFLOW bug
5354 [BZ#23789]
5355 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5356 Include libc-config.h, not config.h, for __set_errno.
5357 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5358
5359 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5360
5361 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5362 __attribute_copy__ to copy attributes from name. Drop static qualifier
5363 to avoid warnings about leaf attribute not having effect on static
5364 functions.
5365
5366 2018-11-13 Florian Weimer <fweimer@redhat.com>
5367
5368 * malloc/malloc.c (fastbin_push_entry): New function.
5369 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5370 (REMOVE_FB): Remove macro.
5371 (_int_malloc): Use fastbin_pop_entry and reindent.
5372 (_int_free): Use fastbin_push_entry.
5373 (malloc_consolidate): Use atomic_exchange_acquire.
5374
5375 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5376
5377 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5378 alias attribute, not with strong_alias.
5379
5380 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5381 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5382 with additional parameter thread.
5383 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5384 in terms of __hidden_ver2.
5385 (hidden_tls_def): New macro.
5386 (libc_hidden_tls_def): Likewise.
5387 (rtld_hidden_tls_def): Likewise.
5388 (libm_hidden_tls_def): Likewise.
5389 (libmvec_hidden_tls_def): Likewise.
5390 (libresolv_hidden_tls_def): Likewise.
5391 (librt_hidden_tls_def): Likewise.
5392 (libdl_hidden_tls_def): Likewise.
5393 (libnss_files_hidden_tls_def): Likewise.
5394 (libnsl_hidden_tls_def): Likewise.
5395 (libnss_nisplus_hidden_tls_def): Likewise.
5396 (libutil_hidden_tls_def): Likewise.
5397 (libutil_hidden_tls_def): Likweise.
5398 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5399 libc_hidden_tls_def.
5400 (__sim_disabled_exceptions_thread): Likewise.
5401 (__sim_round_mode_thread): Likewise.
5402
5403 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5404 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5405 copy attributes from name.
5406
5407 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5408
5409 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5410 Use __attribute_copy__ to copy attributes from name.
5411
5412 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5413 with __hidden_ver1 call.
5414 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5415 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5416 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5417 (__cosf): Do not declare here.
5418 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5419 (__sincosf): Do not declare here.
5420 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5421 (__sinf): Do not declare here.
5422
5423 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5424 (__BIG_ENDIAN): Likewise.
5425 (__BYTE_ORDER): Likewise.
5426 (strong_alias): Likewise.
5427 (_strong_alias): Likewise.
5428
5429 2018-11-12 Florian Weimer <fweimer@redhat.com>
5430
5431 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5432 function. Move after the definition of in_smallbin_range. Do not
5433 use __builtin_expect for paths that lead to a noreturn function.
5434 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5435 because it is unclear whether this is in fact an unlikely
5436 condition.
5437 (_int_malloc, _int_free): Adjust.
5438 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5439 variables.
5440 * malloc/arena.c (heap_trim): Likewise.
5441
5442 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5443
5444 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5445 it, free it if needed.
5446 (reauthenticate): Test and use ccwdir.
5447 (child_init_port): In non-resetids case, test and use ccwdir.
5448 (child_chdir): New nested function to set ccwdir.
5449 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5450 * hurd/hurd/port.h (_hurd_port_move): New function.
5451 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5452 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5453 * hurd/Versions (_hurd_port_move): Export function.
5454 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5455 symbol.
5456 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5457 of dtablesize for allocating dtable_cloexec.
5458
5459 2018-11-09 Martin Sebor <msebor@redhat.com>
5460
5461 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5462 it's already defined.
5463 (_strong_alias): Use __attribute_copy__.
5464 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5465 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5466 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5467 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5468 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5469 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5470 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5471 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5472 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5473 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5474 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5475 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5476 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5477 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5478 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5479 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5480 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5481 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5482 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5483
5484 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5485
5486 * misc/tst-efgcvt.c: Include support/check.h and
5487 support/test-driver.c. Do not include test-skeleton.c.
5488 (error_count): Remove.
5489 (output_error): Replace increments to error_count with calls to
5490 support_record_failure.
5491 (output_r_error): Likewise.
5492 (special): Likewise.
5493 (do_test): Unconditionally return zero.
5494 (TEST_FUNCTION): Remove.
5495
5496 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5497
5498 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5499 not $(@D)/scratch.
5500 ($(linknamespace-header-tests)): Likewise.
5501
5502 * conform/conformtest.py: New file.
5503 * conform/conformtest.pl: Remove.
5504 * conform/GlibcConform.pm: Likewise.
5505 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5506 (KEYWORDS_C99): Likewise.
5507 (KEYWORDS): Likewise.
5508 * conform/Makefile ($(conformtest-header-tests)): Use
5509 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5510 option. Use --header instead of --headers.
5511 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5512 function entries.
5513 * conform/data/spawn.h-data: Likewise.
5514 * conform/data/fcntl.h-data (openat): Add space after function
5515 name.
5516 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5517 (wcscasecmp_l): Likewise.
5518 * conform/data/termios.h-data (c_cc): Add space after element
5519 name.
5520
5521 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5522
5523 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5524 instead of manually comparing and reporting mismatching strings.
5525 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5526 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5527
5528 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5529
5530 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5531 __ASSUME_SOCKETCALL.
5532 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5533 (__ASSUME_SOCKETCALL): Remove.
5534 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5535 (__ASSUME_SOCKETCALL): Likewise.
5536 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5537 (__ASSUME_SOCKETCALL): Likewise.
5538 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5539 (__ASSUME_SOCKETCALL): Likewise.
5540 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5541 (__ASSUME_SOCKETCALL): Likewise.
5542 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5543 (__ASSUME_SOCKETCALL): Likewise.
5544 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5545 (__ASSUME_SOCKETCALL): Likewise.
5546
5547 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5548
5549 [BZ #23509]
5550 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5551 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5552 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5553 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5554 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5555 lc_unknown.
5556
5557 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5558
5559 [BZ #17630]
5560 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5561
5562 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5563
5564 [BZ #23867]
5565 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5566 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5567 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5568 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5569
5570 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5571
5572 * support/support_test_compare_string.c
5573 (support_test_compare_string): Fix printf format.
5574
5575 2018-11-07 Florian Weimer <fweimer@redhat.com>
5576
5577 Implement TEST_COMPARE_STRING.
5578 * support/check.h (TEST_COMPARE_STRING): Define.
5579 (support_test_compare_string): Declare.
5580 * support/Makefile (libsupport-routines): Add
5581 support_test_compare_string.
5582 (tests): Add tst-test_compare_string.
5583 * support/support_test_compare_string.c: New file.
5584 * support/tst-test_compare_string.c: Likewise.
5585
5586 2018-11-07 Andreas Schwab <schwab@suse.de>
5587
5588 [BZ #23864]
5589 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5590 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5591 Undef.
5592
5593 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5594
5595 [BZ #23862]
5596 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5597 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5598 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5599 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5600 Likewise.
5601
5602 2018-11-06 Florian Weimer <fweimer@redhat.com>
5603
5604 [BZ #17405]
5605 * posix/Makefile (routines): Add spawn_faction_addchdir.
5606 (tests): Add tst-spawn-chdir.
5607 * posix/Versions (GLIBC_2.29): Add
5608 posix_spawn_file_actions_addchdir_np.
5609 * posix/spawn_faction_addchdir.c: New file.
5610 * posix/spawn_faction_destroy.c
5611 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5612 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5613 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5614 chdir_action.
5615 * posix/tst-spawn-chdir.c: New file.
5616 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5617 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5618 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5619 posix_spawn_file_actions_addchdir_np.
5620 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5621 Likewise.
5622 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5623 Likewise.
5624 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5625 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5626 Likewise.
5627 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5628 Likewise.
5629 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5630 Likewise.
5631 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5632 Likewise.
5633 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5634 Likewise.
5635 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5636 Likewise.
5637 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5638 (GLIBC_2.29): Likewise.
5639 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5640 (GLIBC_2.29): Likewise.
5641 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5642 (GLIBC_2.29): Likewise.
5643 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5644 (GLIBC_2.29): Likewise.
5645 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5646 Likewise.
5647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5648 (GLIBC_2.29): Likewise.
5649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5650 (GLIBC_2.29): Likewise.
5651 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5652 (GLIBC_2.29): Likewise.
5653 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5654 (GLIBC_2.29): Likewise.
5655 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5656 Likewise.
5657 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5658 Likewise.
5659 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5660 Likewise.
5661 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5662 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5663 Likewise.
5664 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5665 Likewise.
5666 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5667 Likewise.
5668 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5669 Likewise.
5670
5671 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5672
5673 * misc/Makefile (tests): Add tst-ldbl-error.
5674 * misc/tst-ldbl-error.c: New file.
5675
5676 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5677
5678 * misc/Makefile (tests): Add tst-ldbl-warn.
5679 * misc/tst-ldbl-warn.c: New file.
5680
5681 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5682
5683 * argp/Makefile (tests): Add tst-ldbl-argp.
5684 * argp/tst-ldbl-argp.c: New file.
5685
5686 2018-11-05 Arjun Shankar <arjun@redhat.com>
5687
5688 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5689 __gconv_path_elem and call __gconv_get_path unconditionally.
5690
5691 2018-11-05 Andreas Schwab <schwab@suse.de>
5692
5693 [BZ #22927]
5694 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5695 creating the first helper thread failed.
5696
5697 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5698
5699 * sysdeps/mach/hurd/msync.c: New file.
5700
5701 2018-11-02 Florian Weimer <fweimer@redhat.com>
5702
5703 * support/shell-container.c (copy_func): Call
5704 support_copy_file_range instead of copy_file_range to support
5705 cross-device copies.
5706
5707 2018-11-02 Florian Weimer <fweimer@redhat.com>
5708
5709 * support/test-container.c: Include <libc-pointer-arith.h> for
5710 ALIGN_UP.
5711
5712 2018-11-01 Zong Li <zong@andestech.com>
5713
5714 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5715 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5716 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5717 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5718
5719 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5720 variable to avoid overlap arguments.
5721
5722 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5723
5724 * posix/bug-regex22.c (main): Use puts with distinct error
5725 messages for unexpected success of re_compile_pattern, not printf
5726 with NULL argument to %s.
5727
5728 * stdio-common/bug22.c: Include <libc-diag.h>.
5729 (do_test): Disable -Wformat-overflow= warnings around fprintf
5730 calls outputting more than INT_MAX characters.
5731 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5732 around printf call with NULL %s argument.
5733
5734 [BZ #23848]
5735 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5736 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5737 Undefine.
5738 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5739 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5740 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5741 (__ASSUME_SENDTO_SYSCALL): Likewise.
5742 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5743 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5744 [!__arch64__].
5745 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5746 (__ASSUME_CONNECT_SYSCALL): Likewise.
5747 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5748 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5749 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5750 Define.
5751 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5752 Likewise.
5753 [__LINUX_KERNEL_VERSION >= 0x040400]
5754 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5755 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5756 Remove.
5757 (listen): Likewise.
5758 (setsockopt): Likewise.
5759
5760 2018-11-01 Fredrik Noring <noring@nocrew.org>
5761
5762 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5763 with the ISA override.
5764
5765 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5766
5767 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5768 #endif.
5769
5770 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5771
5772 * manual/errno.texi (EIEIO): Document how translators should
5773 translate the error message.
5774 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5775 printing trailing whitespaces refused by git.
5776 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5777 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5778 * hurd/Makefile (user-interfaces): Add pci.
5779
5780 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5781
5782 * conform/linknamespace.py: New file.
5783 * conform/linknamespace.pl: Remove file.
5784 * conform/Makefile ($(linknamespace-header-tests)): Use
5785 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5786 option.
5787
5788 2018-10-30 Florian Weimer <fweimer@redhat.com>
5789
5790 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5791 memory leaks.
5792
5793 2018-10-30 Florian Weimer <fweimer@redhat.com>
5794
5795 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5796
5797 2018-10-30 Florian Weimer <fweimer@redhat.com>
5798
5799 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5800 support_blob_repeat.
5801
5802 2018-10-30 Florian Weimer <fweimer@redhat.com>
5803
5804 Avoid spurious test failures in stdlib/test-bz22786.
5805 * support/Makefile (libsupport-routines): Add blob_repeat.
5806 (tests): Add tst-support_blob_repeat.
5807 * support/blob_repeat.h: New file.
5808 * support/blob_repeat.c: Likewise.
5809 * support/tst-support_blob_repeat.c: Likewise.
5810 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5811 support_blob_repeat_allocate.
5812
5813 2018-10-30 Andreas Schwab <schwab@suse.de>
5814
5815 [BZ #23125]
5816 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5817 Don't use tail call.
5818 * elf/tst-unwind-main.c: New file.
5819 * elf/Makefile (tests): Add tst-unwind-main.
5820 (CFLAGS-tst-unwind-main.c): Define.
5821
5822 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5823
5824 [BZ #23791]
5825 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5826 n_cs_precedes to 0.
5827 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5828
5829 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5830
5831 * conform/glibcconform.py: Do not import shutil.
5832 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5833 of mkdtemp.
5834
5835 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5836 critic_missing for versions before 3.4.
5837 * configure: Regenerated.
5838 * manual/install.texi (Tools for Compilation): Document
5839 requirement for Python to build glibc.
5840 * INSTALL: Regenerated.
5841 * Rules [PYTHON]: Make code unconditional.
5842 * benchtests/Makefile [PYTHON]: Likewise.
5843 * conform/Makefile [PYTHON]: Likewise.
5844 * manual/Makefile [PYTHON]: Likewise.
5845 * math/Makefile [PYTHON]: Likewise.
5846
5847 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5848
5849 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5850 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5851 answer to interrupt_operation, return EIEIO instead of EINTR.
5852 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5853 _hurd_intr_rpc_msg_about_to global point to start of controlled
5854 assembly snippet. Make it check canceled flag.
5855 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5856 the _hurd_intr_rpc_msg_about_to point.
5857 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5858 issue, remove cancel flag check.
5859
5860 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5861
5862 * scripts/build-many-glibcs.py: Remove compatibility for missing
5863 os.cpu_count and re.fullmatch.
5864
5865 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5866
5867 [BZ #23822]
5868 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5869 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5870 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5871
5872 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5873
5874 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5875 macro.
5876
5877 2018-10-25 Florian Weimer <fweimer@redhat.com>
5878
5879 [BZ #23562]
5880 [BZ #23821]
5881 XFAIL siginfo_t si_band conform test on sparc64.
5882 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5883 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5884 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5885 (conformtest-xfail-conds): Add sparc64-linux.
5886 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5887 sparc64.
5888 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5889
5890 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5891
5892 * elf/elf.h (NT_MIPS_DSP): New macro.
5893 (NT_MIPS_FP_MODE): Likewise.
5894
5895 2018-10-25 Zong Li <zong@andestech.com>
5896
5897 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5898 name by adding the file extension (.so).
5899
5900 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5901
5902 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5903 (test-xfail-ISO11/threads.h/linknamespace,
5904 test-xfail-ISO11/threads.h/conform): Add.
5905
5906 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5907
5908 * math/gen-libm-test.py: Import os.
5909 (ALL_FLOATS_MANUAL): New constant.
5910 (ALL_FLOATS_SUFFIX): Likewise.
5911 (Ulps.all_functions): New function.
5912 (real_all_ulps): Likewise.
5913 (generate_err_table_sub): Likewise.
5914 (generate_err_table): Likewise.
5915 (main): Handle -s and -m options.
5916 * manual/libm-err-tab.pl: Remove.
5917 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5918 instead of libm-err-tab.pl.
5919 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5920 != no].
5921 * manual/install.texi (Tools for Compilation): Document
5922 requirement for Python to build manual.
5923 * INSTALL: Regenerated.
5924
5925 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5926
5927 * bits/time64.h: New file.
5928 * include/time.h: Replace internal_time_t with __time64_t.
5929 * posix/bits/types (__time64_t): Add.
5930 * stdlib/Makefile: Add bits/time64.h to includes.
5931 * time/tzfile.c: Replace internal_time_t with __time64_t.
5932
5933 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5934
5935 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5936 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5937 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5938 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5939 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5940 prototype.
5941 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5942 * posix/spawn_faction_addclose.c
5943 (__posix_spawn_file_actions_addclose): Add hidden definition.
5944 * posix/spawn_faction_adddup2.c
5945 (__posix_spawn_file_actions_adddup2): Likewise.
5946 * posix/spawn_faction_destroy.c
5947 (__posix_spawn_file_actions_destroy): Likewise.
5948 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5949 Likewise.
5950 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5951 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5952 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5953 Likewise.
5954 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5955 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5956 Likewise.
5957
5958 2018-10-24 Andreas Schwab <schwab@suse.de>
5959
5960 [BZ #18093]
5961 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5962 format cache.
5963 * elf/cache.c (print_cache): Likewise.
5964
5965 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5966
5967 * bits/timesize.h: New file.
5968 * stdlib/Makefile (headers): Add bits/timesize.h.
5969 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5970 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5971 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5972 (__SEM_PAD_AFTER_TIME): Likewise.
5973 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5974 (__SHM_PAD_AFTER_TIME): Likewise.
5975 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5976 (__MSQ_PAD_BEFORE_TIME): Likewise.
5977 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5978 (__SEM_PAD_BEFORE_TIME): Likewise.
5979 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5980 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5981 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5982 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5983 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5984 (__MSQ_PAD_BEFORE_TIME): Likewise.
5985 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5986 (__SEM_PAD_BEFORE_TIME): Likewise.
5987 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5988 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5989 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5990 (__MSQ_PAD_BEFORE_TIME): Likewise.
5991 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5992 (__SEM_PAD_BEFORE_TIME): Likewise.
5993 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5994 (__SHM_PAD_BEFORE_TIME): Likewise.
5995 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5996 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5997 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5998
5999 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6000
6001 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6002 USE_RDTSCP is defined.
6003 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6004 USE_RDTSCP is defined.
6005
6006 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6007
6008 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6009 defined.
6010
6011 [BZ #23709]
6012 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6013 independently of other flags.
6014
6015 2018-10-23 Florian Weimer <fweimer@redhat.com>
6016
6017 * time/tst-mktime2.c (N_STRINGS): Remove.
6018 (set_timezone): New function.
6019 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6020 (mktime_test1): Report localtime failure and check errno value.
6021 Use TEST_COMPARE.
6022 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6023 (do_test): Remove alarm call. Use set_timezone and array_length.
6024
6025 2018-10-23 Andreas Schwab <schwab@suse.de>
6026
6027 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6028 (__start_context): Use END instead of PSEUDO_END.
6029
6030 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6031
6032 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6033 version to 4.19.
6034
6035 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6036 version to 4.19.
6037
6038 [BZ #23793]
6039 * wcsmbs/c32rtomb.c: New file.
6040 * wcsmbs/mbrtoc32.c: Likewise.
6041 * wcsmbs/tst-c32-state.c: Likewise.
6042 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6043 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6044 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6045 (tests): Add tst-c32-state.
6046 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6047 $(gen-locales).
6048
6049 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6050
6051 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6052 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6053
6054 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6055
6056 [BZ #23794]
6057 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6058 pair and return 0 in that case, and use saved character to
6059 interpret following character.
6060 * wcsmbs/tst-c16-surrogate.c: New file.
6061 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6062 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6063 Depend on $(gen-locales)
6064
6065 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6066
6067 [BZ #23562]
6068 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6069 (struct siginfo_t): Use correct type for si_band.
6070
6071 2018-10-19 Florian Weimer <fweimer@redhat.com>
6072
6073 [BZ #23689]
6074 * resource/bits/types/struct_rusage.h (struct rusage): Update
6075 comment on struct. Remove extraneous field comment.
6076
6077 2018-10-18 David S. Miller <davem@davemloft.net>
6078
6079 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6080 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6081 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6082 sysdep_routines in subdir elf.
6083 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6084 version for __vdso_clock_gettime.
6085 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6086 Define.
6087 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6088 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6089
6090 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6091
6092 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6093
6094 * sysdeps/i386/init-arch.h: Removed.
6095 * sysdeps/i386/i586/init-arch.h: Likewise.
6096 * sysdeps/i386/i686/init-arch.h: Likewise.
6097 * sysdeps/i386/i686/hp-timing.h: Likewise.
6098 * sysdeps/x86_64/hp-timing.h: Likewise.
6099 * sysdeps/i386/isa.h: New file.
6100 * sysdeps/i386/i586/isa.h: Likewise.
6101 * sysdeps/i386/i686/isa.h: Likewise.
6102 * sysdeps/x86_64/isa.h: Likewise.
6103 * sysdeps/x86/hp-timing.h: New file.
6104 * sysdeps/x86/init-arch.h: Include <isa.h>.
6105
6106 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6107
6108 * math/libm-test-pow.inc (pow_test_data): Do not allow
6109 divide-by-zero exception for pow(+/- 0, -Inf).
6110
6111 2018-10-17 Zack Weinberg <zackw@panix.com>
6112
6113 * manual/job.texi (Job Control is Optional): Remove node, as
6114 job control has not been optional in quite some time.
6115 (Job Control): Mention briefly that systems older than
6116 POSIX.1-2001 might not support job control.
6117 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6118 defined on systems conforming to POSIX.1-2001.
6119
6120 2018-10-17 Arjun Shankar <arjun@redhat.com>
6121
6122 [BZ #22062]
6123 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6124 indentation.
6125 * (__gconv_read_conf): Mark function static.
6126 * (once): New static variable.
6127 * (__gconv_load_conf): New function.
6128 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6129 * iconv/gconv_db.c (once): Remove static variable.
6130 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6131 __gconv_read_conf.
6132 * (__gconv_find_transform): Likewise.
6133 * iconv/tst-iconv-mt.c: New test.
6134 * iconv/Makefile: Add tst-iconv_mt.
6135
6136 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6137
6138 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6139 bits/shm-pad.h.
6140 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6141 (shmatt_t): Define as __syscall_ulong_t.
6142 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6143 and [__SHM_PAD_AFTER_TIME].
6144 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6145 Define shm_segsz and associated padding based on
6146 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6147 Use __syscall_ulong_t instead of unsigned long int.
6148 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6149 unsigned long int.
6150 [__USE_MISC] (struct shm_info): Likewise.
6151 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6152 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6153 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6154 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6155 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6156 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6157 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6158 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6159 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6160 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6161 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6162
6163 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6164 bits/shmlba.h.
6165 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6166 (SHMLBA): Remove macro.
6167 (__getpagesize): Remove function declaration.
6168 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6169 <bits/shmlba.h>.
6170 (SHMLBA): Remove macro.
6171 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6172 <bits/shmlba.h>.
6173 (SHMLBA): Remove macro.
6174 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6175 <bits/shmlba.h>.
6176 (SHMLBA): Remove macro.
6177 (__getpagesize): Remove function declaration.
6178 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6179 <bits/shmlba.h>.
6180 (SHMLBA): Remove macro.
6181 (__getshmlba): Remove function declaration.
6182 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6183 (SHMLBA): Remove macro.
6184 (__getpagesize): Remove function declaration.
6185 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6186 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6187 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6188 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6189 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6190 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6191 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6192 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6193 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6194 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6195
6196 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6197
6198 [BZ #23275]
6199 * nptl/tst-mutex10.c: New File.
6200 * nptl/Makefile (tests): Add tst-mutex10.
6201 (tst-mutex10-ENV): New variable.
6202 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6203 Ensure that elision path is used if elision is available.
6204 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6205 Likewise.
6206 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6207 Likewise.
6208 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6209 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6210 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6211 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6212 Likewise.
6213 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6214 (__pthread_mutex_cond_lock_adjust): Likewise.
6215 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6216 Likewise.
6217 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6218 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6219 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6220 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6221 Add comments.
6222 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6223 Use atomic_load_relaxed and atomic_store_relaxed.
6224 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6225 Use atomic_store_relaxed.
6226
6227 2018-10-17 Andreas Schwab <schwab@suse.de>
6228
6229 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6230 * crypt/badsalttest.c (TIMEOUT): Likewise.
6231 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6232 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6233 * io/test-lfs.c (TIMEOUT): Likewise.
6234 * libio/tst-atime.c (TIMEOUT): Likewise.
6235 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6236 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6237 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6238 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6239 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6240 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6241 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6242 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6243 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6244 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6245 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6246 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6247 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6248 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6249 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6250 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6251 * nptl/tst-once2.c (TIMEOUT): Likewise.
6252 * nptl/tst-once3.c (TIMEOUT): Likewise.
6253 * nptl/tst-once4.c (TIMEOUT): Likewise.
6254 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6255 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6256 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6257 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6258 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6259 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6260 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6261 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6262 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6263 * posix/tst-chmod.c (TIMEOUT): Likewise.
6264 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6265 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6266 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6267 * posix/tst-regex2.c (TIMEOUT): Likewise.
6268 * posix/tst-waitid.c (TIMEOUT): Likewise.
6269 * rt/tst-aio.c (TIMEOUT): Likewise.
6270 * rt/tst-aio10.c (TIMEOUT): Likewise.
6271 * rt/tst-aio4.c (TIMEOUT): Likewise.
6272 * rt/tst-aio5.c (TIMEOUT): Likewise.
6273 * rt/tst-aio6.c (TIMEOUT): Likewise.
6274 * rt/tst-aio64.c (TIMEOUT): Likewise.
6275 * rt/tst-aio7.c (TIMEOUT): Likewise.
6276 * rt/tst-aio9.c (TIMEOUT): Likewise.
6277 * rt/tst-clock.c (TIMEOUT): Likewise.
6278 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6279 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6280 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6281 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6282 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6283 * rt/tst-timer4.c (TIMEOUT): Likewise.
6284 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6285 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6286 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6287 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6288 * time/tst-ftime.c (TIMEOUT): Likewise.
6289 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6290
6291 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6292
6293 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6294 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6295 for thunderX2.
6296
6297 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6298
6299 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6300 bits/sem-pad.h.
6301 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6302 instead of <bits/wordsize.h>.
6303 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6304 and [__SEM_PAD_AFTER_TIME].
6305 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6306 __syscall_ulong_t instead of unsigned long int.
6307 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6308 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6309 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6310 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6311 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6312 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6313 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6314 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6315 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6316 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6317 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6318
6319 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6320
6321 regex: simplify by using intprops.h
6322 [BZ#23744]
6323 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6324 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6325 intprops.h defines them.
6326
6327 regex: __builtin_expect → __glibc_unlikely
6328 [BZ#23744]
6329 This refactoring was prompted by a problem when the regex code is
6330 used as part of Gnulib and when the builder’s compiler does not grok
6331 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6332 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6333 Although this refactoring does not fix the problem directly,
6334 we might as well have Gawk use the now-preferred glibc style for when
6335 __builtin_expect is unavailable.
6336 * posix/regex_internal.h (BE): Remove.
6337 All uses replaced by __glibc_unlikely or __glibc_likely.
6338
6339 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6340
6341 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6342 bits/msq-pad.h.
6343 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6344 instead of <bits/wordsize.h>.
6345 (msgqnum_t): Define as __syscall_ulong_t.
6346 (msglen_t): Likewise.
6347 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6348 and [__MSQ_PAD_AFTER_TIME].
6349 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6350 __syscall_ulong_t instead of unsigned long int.
6351 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6352 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6353 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6354 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6355 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6356 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6357 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6358 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6359 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6360 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6361 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6362
6363 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6364
6365 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6366 (struct shmid_ds): Condition padding after time fields on
6367 [__WORDSIZE == 32].
6368 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6369 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6370 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6371
6372 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6373 (struct semid_ds): Condition padding after time fields on
6374 [__WORDSIZE == 32].
6375 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6376 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6377 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6378 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6379
6380 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6381 (struct msqid_ds): Condition padding after time fields on
6382 [__WORDSIZE == 32].
6383 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6384 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6385 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6386 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6387
6388 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6389
6390 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6391
6392 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6393
6394 * libio/tst-readline.c (TIMEOUT): Define.
6395
6396 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6397
6398 mktime fix for Gnulib + coreutils
6399 [BZ#23745]
6400 This fix affects only Gnulib. Problem discovered when
6401 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6402 * time/mktime.c:
6403 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6404 Do not define since it is not used. Defining an unused static
6405 function prompts a warning from GCC when Coreutils is configured
6406 with --enable-gcc-warnings.
6407
6408 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6409
6410 * benchtests/scripts/compare_bench.py (main): set float type on
6411 threshold argument.
6412
6413 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6414
6415 [BZ #23740]
6416 * localedata/locales/kl_GL (mon): Update, the relative case.
6417 (alt_mon): Add, fill with month names in the nominative case.
6418 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6419 (d_fmt): Set to "%b %d %Y".
6420
6421 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6422
6423 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6424 <bits/mman-linux.h>.
6425 (PROT_READ): Don't define here.
6426 (PROT_WRITE): Likewise.
6427 (PROT_EXEC): Likewise.
6428 (PROT_NONE): Likewise.
6429 (PROT_GROWSDOWN): Likewise.
6430 (PROT_GROWSUP): Likewise.
6431 (MAP_SHARED): Likewise.
6432 (MAP_PRIVATE): Likewise.
6433 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6434 [__USE_MISC] (MAP_FILE): Likewise.
6435 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6436 [__USE_MISC] (MAP_ANON): Likewise.
6437 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6438 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6439 (MCL_CURRENT): Likewise.
6440 (MCL_FUTURE): Likewise.
6441 (MCL_ONFAULT): Likewise.
6442 [__USE_MISC] (MADV_NORMAL): Likewise.
6443 [__USE_MISC] (MADV_RANDOM): Likewise.
6444 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6445 [__USE_MISC] (MADV_WILLNEED): Likewise.
6446 [__USE_MISC] (MADV_DONTNEED): Likewise.
6447 [__USE_MISC] (MADV_FREE): Likewise.
6448 [__USE_MISC] (MADV_REMOVE): Likewise.
6449 [__USE_MISC] (MADV_DONTFORK): Likewise.
6450 [__USE_MISC] (MADV_DOFORK): Likewise.
6451 [__USE_MISC] (MADV_HWPOISON): Likewise.
6452 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6453 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6454 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6455 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6456 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6457 (__MAP_ANONYMOUS): New macro.
6458 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6459 <bits/mman-linux.h> inclusion.
6460 (MAP_FIXED): Likewise.
6461 (MS_SYNC): Likewise.
6462 (MS_ASYNC): Likewise.
6463 (MS_INVALIDATE): Likewise.
6464 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6465 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6466 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6467 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6468 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6469 [__USE_MISC] (MADV_DODUMP): Likewise.
6470 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6471 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6472
6473 [BZ #23735]
6474 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6475 Define.
6476 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6477 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6478 Add test-nldbl-redirect.
6479 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6480 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6481 $(objpfx)libnldbl_nonshared.a.
6482
6483 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6484
6485 * support/support.h (support_objdir_elf_ldso): New variable.
6486 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6487 * support/Makefile (CFLAGS-support_paths.c): Add definition
6488 for OBJDIR_ELF_LDSO_PATH.
6489 * support/test-container.c (main): Search for the ld.so
6490 which is also used by the testsuite.
6491
6492 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6493
6494 [BZ #20209]
6495 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6496 should be "sap" rather than "sab".
6497 (day): Fix spelling of Sunday, should be "sapaat" rather than
6498 "sabaat".
6499
6500 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6501
6502 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6503
6504 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6505
6506 [BZ #19444]
6507 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6508 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6509 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6510
6511 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6512
6513 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6514
6515 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6516
6517 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6518 Add -mrtm.
6519 (CFLAGS-elision-unlock.c): Likewise.
6520 (CFLAGS-elision-timed.c): Likewise.
6521 (CFLAGS-elision-trylock.c): Likewise.
6522 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6523
6524 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6525
6526 [BZ #21037]
6527 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6528 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6529 new fd_to_filename interface.
6530 * libio/freopen64.c (freopen64): Likewise.
6531 * libio/tst-memstream.h: New file.
6532 * libio/tst-memstream4.c: Likewise.
6533 * libio/tst-wmemstream4.c: Likewise.
6534 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6535 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6536 and remove internal dynamic allocation.
6537
6538 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6539
6540 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6541 (MREMAP_MAYMOVE): Do not define here.
6542 [__USE_GNU] (MREMAP_FIXED): Likewise.
6543 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6544 (MREMAP_MAYMOVE): Define here instead.
6545 [__USE_GNU] (MREMAP_FIXED): Likewise.
6546 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6547 (MREMAP_MAYMOVE): Remove.
6548 [__USE_GNU] (MREMAP_FIXED): Likewise.
6549
6550 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6551
6552 * math/fromfp.h: Do not include <math_private.h>.
6553 * math/s_cacosh_template.c: Likewise.
6554 * math/s_casin_template.c: Likewise.
6555 * math/s_casinh_template.c: Likewise.
6556 * math/s_ccos_template.c: Likewise.
6557 * math/s_cproj_template.c: Likewise.
6558 * math/s_fdim_template.c: Likewise.
6559 * math/s_fmaxmag_template.c: Likewise.
6560 * math/s_fminmag_template.c: Likewise.
6561 * math/s_iseqsig_template.c: Likewise.
6562 * math/s_ldexp_template.c: Likewise.
6563 * math/s_nextdown_template.c: Likewise.
6564 * math/w_log1p_template.c: Likewise.
6565 * math/w_scalbln_template.c: Likewise.
6566 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6567 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6568 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6569 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6570 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6571 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6572 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6573 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6574 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6575 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6576 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6577 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6578 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6579 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6580 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6581 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6582 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6583 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6584 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6585 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6586 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6587 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6588 * sysdeps/ieee754/k_standardf.c: Likewise.
6589 * sysdeps/ieee754/k_standardl.c: Likewise.
6590 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6591 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6592 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6593 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6594 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6595 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6596 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6597 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6598 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6599 * sysdeps/ieee754/s_signgam.c: Likewise.
6600 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6601 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6602 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6603 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6604 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6605 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6606 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6607 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6608 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6609 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6610 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6611 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6612 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6613 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6614 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6615 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6616 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6617 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6618 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6619 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6620 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6621 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6622 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6623 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6624 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6625 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6626 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6627 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6628 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6629 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6630 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6631 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6632 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6633 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6634 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6635 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6636 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6637 <math_private.h>.
6638 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6639
6640 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6641
6642 [BZ #23716]
6643 * sysdeps/i386/dl-cet.c: Removed.
6644 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6645 prototype.
6646 (_dl_runtime_profile_shstk): Likewise.
6647 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6648 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6649
6650 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6651
6652 [BZ #23579]
6653 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6654 do_test_with_invalid_iov): New tests.
6655 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6656 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6657 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6658 errno is ENOSYS.
6659 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6660 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6661 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6662
6663 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6664
6665 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6666 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6667 (MATH_REDIRECT_BINARY_ARGS): New macro.
6668 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6669 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6670 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6671 header inclusion.
6672 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6673 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6674 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6675 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6676 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6677 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6678 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6679 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6680 Likewise.
6681 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6682 Likewise.
6683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6685 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6686 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6687 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6688 Likewise.
6689 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6690 Likewise.
6691 * sysdeps/generic/math_private_calls.h
6692 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6693 Do not declare and define as an inline function.
6694 * math/divtc3.c (__divtc3): Use copysign functions instead of
6695 __copysign variants.
6696 * math/multc3.c (__multc3): Likewise.
6697 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6698 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6699 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6700 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6701 Likewise.
6702 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6703 (__ieee754_yn): Likewise.
6704 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6705 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6706 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6707 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6708 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6709 (__sin): Likewise.
6710 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6711 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6712 Likewise.
6713 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6714 Likewise.
6715 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6716 Likewise.
6717 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6718 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6719 Likewise.
6720 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6721 (__ieee754_ynf): Likewise.
6722 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6723 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6724 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6725 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6726 Likewise.
6727 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6728 (__ieee754_ynl): Likewise.
6729 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6730 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6731 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6732 Likewise.
6733 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6734 (__ieee754_ynl): Likewise.
6735 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6736 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6737 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6738 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6739 Likewise.
6740 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6741 (__ieee754_ynl)
6742 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6743 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6744 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6745 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6746 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6747
6748 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6749 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6750 using MATH_REDIRECT.
6751 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6752 header inclusion.
6753 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6754 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6755 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6756 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6757 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6758 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6759 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6760 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6761 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6764 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6765 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6766 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6767 (round): Redirect to __round.
6768 (__roundl): Call round instead of __round.
6769 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6770 Remove macro.
6771 [_ARCH_PWR5X] (__roundf): Likewise.
6772 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6773 functions instead of __round variants.
6774 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6775 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6776 Likewise.
6777 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6778 Likewise.
6779 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6780 Likewise.
6781 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6782 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6783 __lroundl.
6784 (__ieee754_expl): Call roundl instead of __roundl.
6785
6786 2018-09-27 Andreas Schwab <schwab@suse.de>
6787
6788 [BZ #23717]
6789 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6790 (do_test): Make st1 static.
6791
6792 2018-09-26 Andreas Schwab <schwab@suse.de>
6793
6794 [BZ #23707]
6795 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6796 * elf/Makefile (tests): Add tst-unwind-ctor.
6797 (modules-names): Add tst-unwind-ctor-lib.
6798 ($(objpfx)tst-unwind-ctor): Depend on
6799 $(objpfx)tst-unwind-ctor-lib.so.
6800
6801 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6802
6803 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6804 file. Most contents moved from ....
6805 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6806 and include <bits/mman-map-flags-generic.h>.
6807 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6808 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6809 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6810 <bits/mman-map-flags-generic.h>.
6811 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6812 macros defined in <bits/mman-map-flags-generic.h>.
6813 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6814 <bits/mman-map-flags-generic.h>.
6815 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6816 defined in <bits/mman-map-flags-generic.h>.
6817
6818 2018-09-26 Andreas Schwab <schwab@suse.de>
6819
6820 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6821 output.
6822
6823 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6824 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6825 Fangrui Song <maskray@google.com>
6826
6827 [BZ #20480]
6828 * config.make.in (have-textrel_ifunc): New define.
6829 * configure.ac: Add check if linker supports textrel relocation with
6830 ifunc.
6831 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6832 tst-ifunc-textrel.
6833 (CFLAGS-tst-ifunc-textrel.c): New rule.
6834 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6835 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6836 * elf/tst-ifunc-textrel.c: New file.
6837
6838 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6839
6840 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6841 <bits/procfs-prregset.h>.
6842 (prgregset_t): Define using __prgregset_t.
6843 (prfpregset_t): Define using __prfpregset_t.
6844 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6845 (sysdep_headers): Add bits/procfs-prregset.h.
6846 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6847 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6848 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6849 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6850
6851 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6852 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6853 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6854 pr_uid and pr_gid.
6855 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6856 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6857 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6858 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6859 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6860 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6861 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6862 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6863 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6864 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6865 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6866 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6867 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6868 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6869 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6870 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6871 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6872 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6873 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6874 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6875 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6876 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6877 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6878 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6879
6880 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6881 AArch64 version. Include <bits/procfs.h>.
6882 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6883 (sysdep_headers): Add bits/procfs.h.
6884 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6885 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6886 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6887 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6888 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6889 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6890 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6891 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6892 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6893 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6894 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6895 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6896 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6897 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6898 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6899 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6900 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6901
6902 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6903
6904 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6905 Use libsupport.
6906
6907 2018-09-25 Arjun Shankar <arjun@redhat.com>
6908
6909 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6910 (__gconv_max_path_elem_len): Likewise.
6911 (__gconv_nmodules): Likewise.
6912 (__gconv_get_path): Likewise.
6913 (path_elem): Move to ...
6914 * iconv/gconv_conf.c: ... here.
6915 (__gconv_get_path): Mark function static.
6916 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6917 * iconv/gconv_open.c: ... here.
6918
6919 2018-09-24 Andreas Schwab <schwab@suse.de>
6920
6921 * scripts/haveversions.awk: New file.
6922 * Makerules ($(common-objpfx)Versions.def)
6923 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6924 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6925 Move rules ...
6926 * Makeconfig ($(common-objpfx)Versions.def)
6927 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6928 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6929 ... here.
6930 ($(common-objpfx)Versions.mk): New rule. Include it.
6931 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6932 Emit error if build-obsolete-nsl = yes.
6933 * manual/install.texi (Configuring and compiling): Describe
6934 --enable-obsolete-nsl as unavaiable after version 2.28.
6935 * INSTALL: Regenerate.
6936
6937 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6938
6939 * NEWS: Add note about new TLE support on powerpc64le.
6940 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6941 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6942 __ununsed1.
6943 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6944 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6945 * sysdeps/powerpc/powerpc32/sysdep.h,
6946 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6947 ABORT_TRANSACTION): Remove macros.
6948 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6949 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6950 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6951 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6952 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6953 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6954 usage.
6955 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6956
6957 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6958
6959 [BZ #10425]
6960 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6961 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6962 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6963 which is the same as in it_IT.
6964 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6965 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6966
6967 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6968
6969 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6970 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6971 using MATH_REDIRECT.
6972 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6973 header inclusion.
6974 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6975 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6976 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6977 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6978 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6979 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6980 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6981 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6982 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6983 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6984 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6985 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6986 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6987 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6988 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6989 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6990 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6991 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6992 (ceil): Redirect to __ceil.
6993 (floor): Redirect to __floor.
6994 (trunc): Redirect to __trunc.
6995 (__truncl): Call trunc instead of __trunc.
6996 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6997 Remove macro.
6998 [_ARCH_PWR5X] (__truncf): Likewise.
6999 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7000 trunc functions instead of __trunc variants.
7001 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7002 Likewise.
7003 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7004 Likewise.
7005 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7006 Likewise.
7007 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7008 Likewise.
7009
7010 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7011 [__i586__ || __pentium__].
7012 [__i486__]: Handle explicitly.
7013 (HAS_CPUID): Define to 1 if above macros are undefined.
7014 (HAS_I586): Likewise.
7015 (HAS_I686): Likewise.
7016
7017 2018-09-20 Florian Weimer <fweimer@redhat.com>
7018
7019 * misc/tst-gethostid.c: New file.
7020 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7021 (tst-gethostid): Link with -ldl.
7022
7023 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7024
7025 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7026 value from gethostbyname_r.
7027
7028 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7029
7030 * stdlib/tst-setcontext9.c (f1): Rename to...
7031 (f1a): ... this.
7032 (f1b): New function implementing lower half of f1 in alternate stack.
7033
7034 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7035
7036 Fix mktime localtime offset confusion
7037 [BZ #23603]
7038 * include/time.h (__mktime_internal): The localtime offset is now
7039 of type long int instead of time_t. This is the longstanding type
7040 in glibc, and it is more than enough to represent difference
7041 between localtime and gmtime even if it is 32 bits and time_t is
7042 64. Changing it now will let us avoid an unnecessary change when
7043 time_t is widened to 64 bits on 32-bit platforms.
7044 * time/mktime-internal.h (mktime_offset_t): Now long int.
7045
7046 Merge mktime, timegm from upstream Gnulib
7047 [BZ #23603][BZ #16346]
7048 This fixes some obscure problems with integer overflow.
7049 Although it looks scary, it is almost all a byte-for-byte copy
7050 from Gnulib, and the Gnulib code has been tested reasonably well.
7051 * include/intprops.h: New file, copied from Gnulib.
7052 * include/verify.h, time/mktime-internal.h:
7053 New tiny files, simplified from Gnulib.
7054 * time/mktime.c: Copy from Gnulib. This has the following changes:
7055 Do not include config.h if DEBUG_MKTIME is nonzero.
7056 Include stdbool.h, intprops.h, verify.h.
7057 Include string.h only if needed.
7058 Include stdlib.h on MS-Windows.
7059 Include mktime-internal.h.
7060 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7061 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7062 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7063 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7064 simplify later conditionals; default the others to zero. Use
7065 these conditionals to express only the code needed on the current
7066 platform. In uses of these conditionals, explicitly spell out how
7067 _LIBC affects things, so it’s easier to review from a glibc
7068 viewpoint.
7069 (WRAPV): Remove; no longer needed now that we have
7070 systematic overflow checking.
7071 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7072 compartmentalize tzset issues. Move system-dependent tzsettish
7073 code here from mktime.
7074 (verify): Remove; now done by verify.h. All uses changed.
7075 (long_int): Use a more-conservative definition, to avoid
7076 integer overflow.
7077 (SHR): Remove, replacing with ...
7078 (shr): New function, which means we needn’t worry about side
7079 effects in args, and conversion analysis is simpler.
7080 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7081 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7082 (time_t_avg, time_t_add_ok): Remove.
7083 (mktime_min, mktime_max): New constants.
7084 (leapyear, isdst_differ): Use bool for booleans.
7085 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7086 Use long_int, not time_t, for mktime differences.
7087 (long_int_avg): New function, replacing time_t_avg.
7088 INT_ADD_WRAPV replaces time_t_add_ok.
7089 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7090 All uses changed.
7091 (convert_time): New function.
7092 (ranged_convert): Use it.
7093 (__mktime_internal): Last arg now points to mktime_offset_t, not
7094 time_t. All uses changed. This is a no-op on glibc, where
7095 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7096 offset guess. Directly check for integer overflow instead of
7097 using a heuristic that works only 99.9...% of the time.
7098 Access *OFFSET only once, to avoid an unlikely race if the
7099 compiler delays a load and if this cascades into a signed integer
7100 overflow.
7101 (mktime): Move tzsettish code to my_tzset, and move
7102 localtime_offset to within mktime so that it doesn’t
7103 need a separate ifdef.
7104 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7105 instead of localtime.
7106 * time/timegm.c: Copy from Gnulib. This has the following changes:
7107 Include mktime-internal.h.
7108 [!_LIBC]: Include config.h and time.h. Do not include
7109 timegm.h or time_r.h. Make __mktime_internal a macro,
7110 and include mktime-internal.h to get its declaration.
7111 (timegm): Temporary is now mktime_offset_t, not time_t.
7112 This affects only Gnulib.
7113
7114 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7115
7116 [BZ #23637]
7117 * string/test-strstr.c (pr23637): New function.
7118 (test_main): Add tests with longer needles.
7119 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7120 * string/strstr.c (AVAILABLE): Likewise.
7121
7122 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7123
7124 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7125
7126 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7127
7128 * NEWS: Mention pow improvements.
7129 * math/Makefile (type-double-routines): Add e_pow_log_data.
7130 * sysdeps/generic/math_private.h (__exp1): Remove.
7131 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7132 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7133 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7134 contraction.
7135 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7136 (exp_inline): Remove.
7137 (__ieee754_exp): Only single double input is handled.
7138 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7139 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7140 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7141 (__pow_log_data): Define.
7142 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7143 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7144 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7145 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7146 contraction.
7147 (CFLAGS-e_pow-fma4.c): Likewise.
7148
7149 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7150
7151 Simplify tzfile fstat failure code
7152 [BZ #21716]
7153 * time/tzfile.c (__tzfile_read): Simplify slightly.
7154
7155 Fix tzfile low-memory assertion failure
7156 [BZ #21716]
7157 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7158 when registering time zone abbreviations.
7159
7160 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7161
7162 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7163 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7164 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7165 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7166 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7167 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7168 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7169 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7170 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7171
7172 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7173 __ceil.
7174 (__ceill): Call ceil instead of __ceil.
7175 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7176 __floor.
7177 (__floorl): Call floor instead of __floor.
7178
7179 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7180
7181 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7182 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7183 using MATH_REDIRECT.
7184 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7185 header inclusion.
7186 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7187 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7188 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7189 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7190 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7191 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7192 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7193 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7194 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7195 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7196 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7197 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7198 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7199 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7200 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7201 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7202 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7203 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7204 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7205 Remove macro.
7206 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7207 functions instead of __ceil variants.
7208 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7209 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7210 Likewise.
7211 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7212 Likewise.
7213 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7214 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7215 Likewise.
7216 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7217 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7218
7219 [BZ #21286]
7220 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7221 constant.
7222 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7223 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7224 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7225 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7226 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7227 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7228 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7229 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7230 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7231 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7232 (ILL_BADIADDR): Remove constant.
7233 (TRAP_BRANCH): Likewise.
7234 (TRAP_HWBKPT): Likewise.
7235
7236 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7237
7238 [BZ #23656]
7239 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7240 Remove [_MIPS_SIM = _ABIN32] conditional case.
7241 (struct elf_prpsinfo): Likewise.
7242
7243 [BZ #23649]
7244 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7245 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7246 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7247 Likewise.
7248 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7249 elf_prpsinfo): Likewise.
7250 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7251 elf_prpsinfo): Likewise.
7252 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7253 Likewise.
7254
7255 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7256 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7257 using MATH_REDIRECT.
7258 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7259 header inclusion.
7260 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7261 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7262 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7263 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7264 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7265 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7266 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7267 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7268 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7269 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7270 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7271 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7272 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7273 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7274 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7275 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7276 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7277 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7278 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7279 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7280 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7281 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7282 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7283 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7284 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7285 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7286 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7287 __rint variants.
7288 * math/e_scalbf.c (invalid_fn): Likewise.
7289 * math/e_scalbl.c (invalid_fn): Likewise.
7290 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7291 Likewise.
7292 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7293 Likewise.
7294 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7295 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7296 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7297 Likewise.
7298 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7299 Likewise.
7300 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7301 Likewise.
7302 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7303 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7304
7305 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7306 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7307 New macro.
7308 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7309 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7310 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7311 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7312 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7313 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7314 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7315 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7316 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7317 && !NO_MATH_REDIRECT] (floor): Likewise.
7318 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7319 header inclusion.
7320 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7321 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7322 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7323 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7324 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7325 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7326 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7327 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7328 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7330 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7331 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7332 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7333 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7334 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7335 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7336 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7337 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7338 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7339 Remove macro.
7340 [_ARCH_PWR5X] (__floorf): Likewise.
7341 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7342 inline function.
7343 [__SSE4_1__] (__floorf): Likewise.
7344 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7345 instead of __floor variants.
7346 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7347 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7348 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7349 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7350 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7351 * math/w_tgamma_compat.c (__tgamma): Likewise.
7352 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7353 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7354 * math/w_tgammal_compat.c (__tgammal): Likewise.
7355 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7356 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7357 Likewise.
7358 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7359 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7360 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7361 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7362 Likewise.
7363 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7364 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7365 Likewise.
7366 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7367 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7368 Likewise.
7369 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7370 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7371 Likewise.
7372 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7373 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7374 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7375 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7376 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7377 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7378
7379 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7380
7381 * elf/Makefile (modules-names-tests): New variable.
7382
7383 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7384
7385 * NEWS: Mention log2 improvements.
7386 * math/Makefile (type-double-routines): Add e_log2_data.
7387 * sysdeps/i386/fpu/e_log2_data.c: New file.
7388 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7389 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7390 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7391 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7392 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7393 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7394
7395 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7396
7397 * NEWS: Mention log improvement.
7398 * math/Makefile (type-double-routines): Add e_log_data.
7399 * sysdeps/i386/fpu/e_log_data.c: New file.
7400 * sysdeps/ia64/fpu/e_log_data.c: New file.
7401 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7402 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7403 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7404 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7405 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7406 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7407
7408 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7409 Xuepeng Guo <xuepeng.guo@intel.com>
7410
7411 [BZ #23606]
7412 * sysdeps/i386/start.S: Include <sysdep.h>
7413 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7414 enabled. Add cfi_undefined (eip).
7415
7416 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7417
7418 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7419 (MOVQ): Likewise.
7420 (EXTRACT_WORDS64): Likewise.
7421 (INSERT_WORDS64): Likewise.
7422 (GET_FLOAT_WORD): Likewise.
7423 (SET_FLOAT_WORD): Likewise.
7424
7425 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7426 argument.
7427 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7428 build, but not for second build if --full-gcc. Use
7429 --enable-languages=all for second build if --full-gcc.
7430 (get_parser): Add --full-gcc option.
7431 (main): Update call to Context.
7432
7433 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7434
7435 [BZ #10797]
7436 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7437 Single Quotation Mark).
7438 (thousands_sep): Likewise.
7439 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7440 * localedata/locales/it_IT (thousands_sep): Use ".".
7441 (grouping): Use "3;3".
7442
7443 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7444
7445 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7446 x86_64 and i686 configs using --enable-obsolete-rpc
7447 --enable-obsolete-nsl.
7448
7449 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7450
7451 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7452
7453 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7454
7455 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7456 Increment size of new_argv by one.
7457
7458 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7459
7460 [BZ #17426]
7461 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7462 * localedata/locales/ar_IN (d_fmt): Likewise.
7463 * localedata/locales/bhb_IN (d_fmt): Likewise.
7464 * localedata/locales/bho_IN (d_fmt): Likewise.
7465 * localedata/locales/bn_BD (d_fmt): Likewise.
7466 * localedata/locales/bn_IN (d_fmt): Likewise.
7467 * localedata/locales/doi_IN (d_fmt): Likewise.
7468 * localedata/locales/gu_IN (d_fmt): Likewise.
7469 * localedata/locales/hi_IN (d_fmt): Likewise.
7470 * localedata/locales/hne_IN (d_fmt): Likewise.
7471 * localedata/locales/kn_IN (d_fmt): Likewise.
7472 * localedata/locales/mag_IN (d_fmt): Likewise.
7473 * localedata/locales/mai_IN (d_fmt): Likewise.
7474 * localedata/locales/mjw_IN (d_fmt): Likewise.
7475 * localedata/locales/ml_IN (d_fmt): Likewise.
7476 * localedata/locales/mni_IN (d_fmt): Likewise.
7477 * localedata/locales/mr_IN (d_fmt): Likewise.
7478 * localedata/locales/pa_IN (d_fmt): Likewise.
7479 * localedata/locales/raj_IN (d_fmt): Likewise.
7480 * localedata/locales/sat_IN (d_fmt): Likewise.
7481 * localedata/locales/sd_IN (d_fmt): Likewise.
7482 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7483 * localedata/locales/ta_IN (d_fmt): Likewise.
7484 * localedata/locales/ta_LK (d_fmt): Likewise.
7485 * localedata/locales/tcy_IN (d_fmt): Likewise.
7486 * localedata/locales/ur_IN (d_fmt): Likewise.
7487
7488 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7489 * localedata/locales/ks_IN (d_fmt): Likewise.
7490 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7491
7492 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7493 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7494 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7495 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7496
7497 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7498
7499 * NEWS: Mention exp and exp2 improvements.
7500 * math/Makefile (libm-support): Remove t_exp.
7501 (type-double-routines): Add math_err and e_exp_data.
7502 * sysdeps/aarch64/libm-test-ulps: Update.
7503 * sysdeps/arm/libm-test-ulps: Update.
7504 * sysdeps/i386/fpu/e_exp_data.c: New file.
7505 * sysdeps/i386/fpu/math_err.c: New file.
7506 * sysdeps/i386/fpu/t_exp.c: Remove.
7507 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7508 * sysdeps/ia64/fpu/math_err.c: New file.
7509 * sysdeps/ia64/fpu/t_exp.c: Remove.
7510 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7511 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7512 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7513 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7514 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7515 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7516 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7517 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7518 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7519 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7520 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7521 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7522 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7523 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7524 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7525 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7526
7527 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7528
7529 * sysdeps/alpha/fpu/math_private.h: Remove.
7530
7531 * sysdeps/generic/math_private.h
7532 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7533 Move this inline function ....
7534 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7535 * include/math.h [!_ISOMAC]: To here....
7536
7537 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7538
7539 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7540 code ....
7541 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7542 * include/fenv.h [!_ISOMAC]: ... to here.
7543 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7544 (feraiseexcept): Likewise.
7545 * math/fromfp.h: Do not include <fenv_private.h>.
7546 * math/s_cexp_template.c: Likewise.
7547 * math/s_csin_template.c: Likewise.
7548 * math/s_csinh_template.c: Likewise.
7549 * math/s_ctan_template.c: Likewise.
7550 * math/s_ctanh_template.c: Likewise.
7551 * math/s_iseqsig_template.c: Likewise.
7552 * math/w_acos_compat.c: Likewise.
7553 * math/w_acosf_compat.c: Likewise.
7554 * math/w_acosl_compat.c: Likewise.
7555 * math/w_asin_compat.c: Likewise.
7556 * math/w_asinf_compat.c: Likewise.
7557 * math/w_asinl_compat.c: Likewise.
7558 * math/w_j0_compat.c: Likewise.
7559 * math/w_j0f_compat.c: Likewise.
7560 * math/w_j0l_compat.c: Likewise.
7561 * math/w_j1_compat.c: Likewise.
7562 * math/w_j1f_compat.c: Likewise.
7563 * math/w_j1l_compat.c: Likewise.
7564 * math/w_jn_compat.c: Likewise.
7565 * math/w_jnf_compat.c: Likewise.
7566 * math/w_log10_compat.c: Likewise.
7567 * math/w_log10f_compat.c: Likewise.
7568 * math/w_log10l_compat.c: Likewise.
7569 * math/w_log2_compat.c: Likewise.
7570 * math/w_log2f_compat.c: Likewise.
7571 * math/w_log2l_compat.c: Likewise.
7572 * math/w_log_compat.c: Likewise.
7573 * math/w_logf_compat.c: Likewise.
7574 * math/w_logl_compat.c: Likewise.
7575 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7576 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7577 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7578 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7579 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7580 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7581 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7582 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7583 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7584 * sysdeps/ieee754/k_standardl.c: Likewise.
7585 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7586 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7587 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7588 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7589 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7590 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7591 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7592 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7593 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7594 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7595 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7596 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7597 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7598 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7599 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7600 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7601 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7602 * math/w_ilogb_template.c: Include <fenv.h> instead of
7603 <fenv_private.h>.
7604 * math/w_llogb_template.c: Likewise.
7605 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7606 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7607
7608 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7609
7610 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7611 * math/fromfp.h: Include <fenv_private.h>.
7612 * math/math-narrow.h: Likewise.
7613 * math/s_cexp_template.c: Likewise.
7614 * math/s_csin_template.c: Likewise.
7615 * math/s_csinh_template.c: Likewise.
7616 * math/s_ctan_template.c: Likewise.
7617 * math/s_ctanh_template.c: Likewise.
7618 * math/s_iseqsig_template.c: Likewise.
7619 * math/w_acos_compat.c: Likewise.
7620 * math/w_acosf_compat.c: Likewise.
7621 * math/w_acosl_compat.c: Likewise.
7622 * math/w_asin_compat.c: Likewise.
7623 * math/w_asinf_compat.c: Likewise.
7624 * math/w_asinl_compat.c: Likewise.
7625 * math/w_ilogb_template.c: Likewise.
7626 * math/w_j0_compat.c: Likewise.
7627 * math/w_j0f_compat.c: Likewise.
7628 * math/w_j0l_compat.c: Likewise.
7629 * math/w_j1_compat.c: Likewise.
7630 * math/w_j1f_compat.c: Likewise.
7631 * math/w_j1l_compat.c: Likewise.
7632 * math/w_jn_compat.c: Likewise.
7633 * math/w_jnf_compat.c: Likewise.
7634 * math/w_llogb_template.c: Likewise.
7635 * math/w_log10_compat.c: Likewise.
7636 * math/w_log10f_compat.c: Likewise.
7637 * math/w_log10l_compat.c: Likewise.
7638 * math/w_log2_compat.c: Likewise.
7639 * math/w_log2f_compat.c: Likewise.
7640 * math/w_log2l_compat.c: Likewise.
7641 * math/w_log_compat.c: Likewise.
7642 * math/w_logf_compat.c: Likewise.
7643 * math/w_logl_compat.c: Likewise.
7644 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7645 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7646 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7647 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7648 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7649 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7650 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7651 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7652 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7653 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7654 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7655 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7656 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7657 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7658 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7659 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7660 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7661 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7662 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7663 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7664 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7665 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7666 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7667 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7668 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7669 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7670 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7671 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7672 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7673 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7674 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7675 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7676 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7677 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7678 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7679 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7680 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7681 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7682 * sysdeps/ieee754/k_standardl.c: Likewise.
7683 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7684 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7685 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7686 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7687 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7688 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7689 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7690 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7691 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7692 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7693 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7694 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7695 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7696 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7697 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7698 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7699 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7700 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7701 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7702 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7703 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7704 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7705 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7706 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7707 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7708 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7709 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7710 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7711 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7712 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7713 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7714 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7715 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7716 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7717 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7718 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7719 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7720 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7721 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7722 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7723 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7724 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7725 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7726 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7727 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7728 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7729 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7730 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7731 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7732 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7733 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7734 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7735 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7736 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7737 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7738 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7739 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7740 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7741 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7742 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7743 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7744 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7745 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7746 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7747 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7748 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7749 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7750 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7751 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7752 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7753 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7754
7755 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7756
7757 [BZ #20271]
7758 * include/stdio.h (__libc_fatal): Mention newline in comment.
7759 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7760 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7761 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7762 * nss/nsswitch.c (__nss_next2): Likewise.
7763 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7764 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7765 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7766 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7767 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7768 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7769 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7770 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7771 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7772 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7773 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7774 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7775 (__netlink_assert_response): Likewise.
7776
7777 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7778
7779 * conform/glibcconform.py: New file.
7780 * conform/list-header-symbols.py: Likewise.
7781 * conform/list-header-symbols.pl: Remove.
7782 * conform/Makefile (tests-special): Only add linknamespace tests
7783 if [PYTHON].
7784 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7785
7786 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7787
7788 [BZ #23597]
7789 * support/Makefile (libsupport-routines): Add
7790 support_copy_file_range and xcopy_file_range.
7791 * support/support.h: Include <sys/types.h>.
7792 (support_copy_file_range): New prototype.
7793 * support/support_copy_file_range.c: New file. Copied and
7794 modified from io/copy_file_range-compat.c.
7795 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7796 instead of copy_file_range.
7797 * support/xcopy_file_range.c: New file.
7798 * support/xunistd.h (xcopy_file_range): New prototype.
7799
7800 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7801
7802 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7803 xpthread_create and xpthread_join.
7804
7805 2018-08-30 Florian Weimer <fweimer@redhat.com>
7806
7807 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7808
7809 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7810
7811 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7812 if malloc fails.
7813
7814 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7815
7816 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7817 and minus_oflow as non-finite.
7818
7819 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7820
7821 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7822 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7823 moved to fenv_private.h except for ...
7824 (TOINT_INTRINSICS): Kept in math_private.h.
7825 (roundtoint): Likewise.
7826 (converttoint): Likewise.
7827 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7828 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7829 * sysdeps/arm/math_private.h: Remove.
7830 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7831 ....
7832 * sysdeps/generic/math_private.h: ... this file. Include
7833 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7834 Include <fenv_private.h>. Remove functions and macros moved to
7835 fenv_private.h.
7836 * sysdeps/i386/fpu/math_private.h: Remove.
7837 * sysdeps/mips/math_private.h: Move to ....
7838 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7839 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7840 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7841 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7842 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7843 * sysdeps/powerpc/fpu/math_private.h: Do not include
7844 <fenv_private.h>.
7845 * sysdeps/riscv/rvf/math_private.h: Move to ....
7846 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7847 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7848 <fenv_private.h>.
7849 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7850 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7851 * sysdeps/sparc/fpu/math_private.h: Remove.
7852 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7853 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7854 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7855 <fenv_private.h>.
7856 * sysdeps/x86_64/fpu/math_private.h: Do not include
7857 <sysdeps/i386/fpu/fenv_private.h>.
7858
7859 2018-08-28 Florian Weimer <fweimer@redhat.com>
7860
7861 [BZ #23578]
7862 * posix/tst-regcomp-truncated.c: New file.
7863 * posix/Makefile (tests): Add it.
7864 (tst-regcomp-truncated.out): Depend on generated locales.
7865
7866 2018-08-28 Florian Weimer <fweimer@redhat.com>
7867
7868 * support/test-container.c (main): Treat unshare failure with
7869 EPERM as an unsupported test.
7870
7871 2018-08-28 Florian Weimer <fweimer@redhat.com>
7872
7873 [BZ #23520]
7874 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7875 * nscd/netgroupcache.c
7876 (addgetnetgrentX): Add tofreep parameter. Do not free
7877 heap-allocated buffer.
7878 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7879 (addgetnetgrentX_ignore): New function.
7880 (addgetnetgrent): Call it.
7881 (readdgetnetgrent): Likewise.
7882
7883 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7884
7885 * string/memmem.c: Use memcmp for first match.
7886
7887 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7888
7889 [BZ #17426]
7890 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7891
7892 2018-08-27 DJ Delorie <dj@redhat.com>
7893
7894 * support/Makefile (others): Don't list programs explicitly as a
7895 dependency of "others".
7896
7897 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7898
7899 * sysdeps/generic/math-tests-trap-force.h: New file.
7900 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7901 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7902 * sysdeps/powerpc/math-tests.h: Remove file.
7903 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7904
7905 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7906 Torvald Riegel <triegel@redhat.com>
7907
7908 [BZ #23538]
7909 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7910 Update r to include the set wake-request flag if waiters are
7911 remaining after spinning.
7912
7913 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7914
7915 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7916
7917 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7918
7919 [BZ #23578]
7920 regex: fix uninitialized memory access
7921 I introduced this bug into gnulib in commit
7922 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7923 eventually it was merged into glibc. The bug was found by
7924 project-repo <bugs@feusi.co> and reported here:
7925 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7926 Diagnosis and draft fix reported by Assaf Gordon here:
7927 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7928 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7929 * posix/regex_internal.c (build_wcs_upper_buffer):
7930 Fix bug when mbrtowc returns 0.
7931
7932 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7933
7934 * po/be.po: Update translation.
7935
7936 2018-08-24 DJ Delorie <dj@delorie.com>
7937
7938 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7939 $(libunwind).
7940
7941 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7942
7943 [BZ #23400]
7944 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7945 create temporary files in source tree.
7946
7947 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7948
7949 * sysdeps/generic/math-tests-trap.h: New file.
7950 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7951 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7952 * sysdeps/aarch64/math-tests.h: Remove file.
7953 * sysdeps/arm/math-tests.h: Likewise.
7954 * sysdeps/riscv/math-tests.h: Likewise.
7955 * sysdeps/aarch64/math-tests-trap.h: New file.
7956 * sysdeps/arm/math-tests-trap.h: Likewise.
7957 * sysdeps/riscv/math-tests-trap.h: Likewise.
7958
7959 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7960
7961 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7962 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7963 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7964 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7965 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7966 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7967 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7968 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7969 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7970 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7971 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7972 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7973 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7974 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7975 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7976 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7977 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7978 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7979
7980 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7981
7982 * sysdeps/generic/math-tests-exceptions.h: New file.
7983 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7984 (EXCEPTION_TESTS_float): Do not define here.
7985 (EXCEPTION_TESTS_double): Likewise.
7986 (EXCEPTION_TESTS_long_double): Likewise.
7987 (EXCEPTION_TESTS_float128): Likewise.
7988 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7989 Likewise.
7990 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7991 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7992 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7993 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7994 * sysdeps/mips/math-tests.h: Likewise.
7995 * sysdeps/nios2/math-tests.h: Likewise.
7996 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7997 (EXCEPTION_TESTS_float): Do not define here.
7998 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7999 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8000 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8001
8002 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8003
8004 * NEWS: Move optimized sinf entry to 2.29.
8005
8006 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8007
8008 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8009
8010 2018-08-22 DJ Delorie <dj@redhat.com>
8011
8012 * Makefile (testroot.pristine): New rules to initialize the
8013 test-in-container "testroot".
8014 * Makerules (all-testsuite): Add tests-container.
8015 * Rules (tests-expected): Add tests-container.
8016 (binaries-all-tests): Likewise.
8017 (tests-container): New, run these tests in the testroot container.
8018 * support/Makefile (others): Add *-container, support_paths.c,
8019 xmkdirp, and links-dso-program.
8020 * support/links-dso-program-c.c: New.
8021 * support/links-dso-program.cc: New.
8022 * support/test-container.c: New.
8023 * support/shell-container.c: New.
8024 * support/echo-container.c: New.
8025 * support/true-container.c: New.
8026 * support/xmkdirp.c: New.
8027 * support/xsymlink.c: New.
8028 * support/support_paths.c: New.
8029 * support/support.h: Add support paths prototypes.
8030 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8031
8032 * nss/tst-nss-test3.c: Convert to test-in-container.
8033 * nss/tst-nss-test3.root/: New.
8034
8035 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8036
8037 regex: port Gnulib code to z/OS POSIX environment
8038 Problem reported by Arnold Robbins in:
8039 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8040 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8041 Undef.
8042
8043 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8044
8045 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8046 (ROUNDING_TESTS_double): Remove.
8047 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8048 (ROUNDING_TESTS_double): Remove.
8049 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8050 (ROUNDING_TESTS_double): Remove.
8051 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8052 (ROUNDING_TESTS_float): Remove.
8053 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8054 (ROUNDING_TESTS_float): Remove.
8055 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8056 (ROUNDING_TESTS_float): Remove.
8057 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8058 !TEST_MATHVEC here.
8059 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8060 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8061
8062 * sysdeps/generic/math-tests-rounding.h: New file.
8063 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8064 (ROUNDING_TESTS_float): Do not define here.
8065 (ROUNDING_TESTS_double): Likewise.
8066 (ROUNDING_TESTS_long_double): Likewise.
8067 (ROUNDING_TESTS_float128): Likewise.
8068 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8069 (ROUNDING_TESTS_double): Undefine before defining.
8070 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8071 (ROUNDING_TESTS_double): Undefine before defining.
8072 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8073 (ROUNDING_TESTS_double): Undefine before defining.
8074 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8075 (ROUNDING_TESTS_float): Undefine before defining.
8076 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8077 (ROUNDING_TESTS_float): Undefine before defining.
8078 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8079 (ROUNDING_TESTS_float): Undefine before defining.
8080 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8081 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8082 not define here.
8083 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8084 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8085 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8086 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8087 (ROUNDING_TESTS_float): Do not define here.
8088 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8089 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8090 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8091 (ROUNDING_TESTS_float): Likewise.
8092 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8093 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8094 * sysdeps/mips/math-tests.h [__mips_soft_float]
8095 (ROUNDING_TESTS_float): Likewise.
8096 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8097 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8098 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8099 (ROUNDING_TESTS_double): Likewise.
8100 (ROUNDING_TESTS_long_double): Likewise.
8101
8102 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8103
8104 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8105 (PF_XDP): New macro.
8106 (AF_XDP): New macro.
8107 (SOL_XDP): New macro.
8108
8109 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8110
8111 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8112 (TCP_INQ): Likewise.
8113 (TCP_CM_INQ): Likewise.
8114 (TCP_REPAIR_ON): Likewise.
8115 (TCP_REPAIR_OFF): Likewise.
8116 (TCP_REPAIR_OFF_NO_WP): Likewise.
8117 (struct tcp_zerocopy_receive): New type.
8118
8119 2018-08-21 Florian Weimer <fweimer@redhat.com>
8120
8121 * support/support.h (support_descriptor_supports_holes): Declare.
8122 * support/Makefile (libsupport-routines): Add
8123 support_descriptor_supports_holes.
8124 * support/support_descriptor_supports_holes.c: New file.
8125 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8126 and stop testing if holes are not supported.
8127 * io/test-lfs.c (do_prepare): Likewise.
8128 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8129 Likewise.
8130 * timezone/tst-tzset.c (create_tz_file): Likewise.
8131 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8132 variable.
8133 (do_prepare): Set it.
8134 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8135
8136 2018-08-21 Florian Weimer <fweimer@redhat.com>
8137
8138 [BZ #17248]
8139 * Makeconfig (+cflags): Do not sort (and deduplicate).
8140
8141 2018-08-21 Florian Weimer <fweimer@redhat.com>
8142
8143 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8144 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8145
8146 2018-08-20 Florian Weimer <fweimer@redhat.com>
8147
8148 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8149 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8150
8151 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8152
8153 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8154 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8155 and ssi_arch members.
8156
8157 * elf/elf.c (NT_VMCOREDD): New macro.
8158 (AT_MINSIGSTKSZ): Likewise.
8159
8160 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8161
8162 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8163 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8164 s_cosf-ppc64 and s_cosf-power8.
8165 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8166 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8167 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8168 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8169 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8171 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8172 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8174 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8175 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8176 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8177
8178 2018-08-17 Florian Weimer <fweimer@redhat.com>
8179
8180 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8181
8182 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8183
8184 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8185
8186 2018-08-16 Florian Weimer <fweimer@redhat.com>
8187
8188 * configure.ac: Add --with-nonshared-cflags option.
8189 * config.make.in (extra-nonshared-cflags): Set variable.
8190 * Makeconfig (CFLAGS-.oS): Use it.
8191 * manual/install.texi (Configuring and compiling): Document
8192 --with-nonshared-cflags.
8193 * configure: Regenerate.
8194 * INSTALL: Likewise.
8195
8196 2018-08-16 Florian Weimer <fweimer@redhat.com>
8197
8198 * Makeconfig (ASFLAGS): Always append required assembler flags.
8199
8200 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8201
8202 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8203 (malloc_consolidate): Likewise.
8204
8205 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8206
8207 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8208
8209 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8210
8211 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8212 every strlen call.
8213
8214 * benchtests/bench-strlen.c: Print performance numbers in json.
8215
8216 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8217
8218 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8219 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8220 only for little endian.
8221 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8222 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8223 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8224 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8225 Add check for little endian.
8226 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8227 (__strcmp_power9): Add check for little endian.
8228 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8229 Add check for little endian.
8230 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8231 (__strncmp_power9): Add check for little endian.
8232 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8233 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8234 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8235 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8236 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8237
8238 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8239
8240 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8241 [!STRLEN](STRLEN): Set to __strlen.
8242 * sysdeps/aarch64/multiarch/strlen.c: New file.
8243 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8244 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8245 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8246 (__libc_ifunc_impl_list): Add strlen.
8247 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8248 strlen_generic and strlen_asimd.
8249
8250 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8251
8252 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8253 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8254 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8255
8256 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8257
8258 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8259
8260 2018-08-14 Florian Weimer <fweimer@redhat.com>
8261
8262 [BZ #23519]
8263 * include/stdio.h (__vfxprintf): Declare.
8264 * stdio-common/fxprintf.c (__vfxprintf): New function.
8265 (__fxprintf): Call it.
8266 * misc/err.c (convert_and_print): Remove function.
8267 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8268 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8269 * misc/Makefile (tests): Add tst-warn-wide.
8270 * misc/tst-warn-wide.c: New file.
8271
8272 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8273 Szabolcs Nagy <szabolcs.nagy@arm.com>
8274
8275 * NEWS: Mention sinf, cosf, sincosf.
8276 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8277 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8278 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8279 constants rather than including generic sincosf.h.
8280 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8281 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8282 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8283 (reduced_cos): Remove.
8284 (sinf_poly): New function.
8285 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8286
8287 2018-08-14 Florian Weimer <fweimer@redhat.com>
8288
8289 [BZ #23521]
8290 [BZ #23522]
8291 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8292 processing, bail out if no room, and close the stream before
8293 returning ERANGE.
8294 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8295 (tst-nss-files-alias-leak): Link with libdl.
8296 (tst-nss-files-alias-leak.out): Depend on nss_files.
8297
8298 * nss/tst-nss-files-alias-leak.c: New file.
8299
8300 2018-08-14 Florian Weimer <fweimer@redhat.com>
8301
8302 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8303 server_user, stat_user.
8304
8305 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8306
8307 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8308 version to 4.18.
8309 (io_pgetevents): New syscall.
8310 (rseq): Likewise.
8311
8312 * manual/install.texi (Configuring and compiling): Do not list
8313 tools used for testing pretty printers here.
8314 (Tools for Compilation): List Python, PExpect and GDB here.
8315 Update descriptions of uses of Perl and Python.
8316 * INSTALL: Regenerate.
8317
8318 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8319 version to 4.18.
8320
8321 2018-08-13 Florian Weimer <fweimer@redhat.com>
8322
8323 * misc/error.c (error): Add missing va_end call.
8324 (error_at_line): Likewise.
8325
8326 2018-08-13 Florian Weimer <fweimer@redhat.com>
8327
8328 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8329
8330 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8331
8332 * benchtests/scripts/benchout.schema.json (properties): Add
8333 new properties.
8334
8335 * benchtests/bench-skeleton.c (main): Add duration and
8336 iterations attributes.
8337
8338 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8339
8340 regex: Gnulib unibyte RRI uses bytes not chars
8341 Adjust the non-glibc code to agree with what Gawk needs for
8342 rational range interpretation (RRI) for regular expression ranges.
8343 In unibyte locales, Gawk wants ranges to use the underlying byte
8344 rather than the character code point. This change does not affect
8345 glibc proper.
8346 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8347 In unibyte locales, use the byte value rather than
8348 running it through btowc.
8349
8350 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8351
8352 * sysdeps/generic/math-tests-snan.h: New file.
8353 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8354 (SNAN_TESTS_float): Do not define here.
8355 (SNAN_TESTS_double): Likewise.
8356 (SNAN_TESTS_long_double): Likewise.
8357 (SNAN_TESTS_float128): Likewise.
8358 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8359 * sysdeps/i386/fpu/math-tests.h: Remove file.
8360 * sysdeps/ia64/math-tests-snan.h: New file.
8361 * sysdeps/ia64/math-tests.h: Remove file.
8362 * sysdeps/x86/math-tests.h: Likewise.
8363 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8364
8365 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8366 Szabolcs Nagy <szabolcs.nagy@arm.com>
8367
8368 * math/Makefile: Add s_sincosf_data.c.
8369 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8370 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8371 (sincosf_poly): Likewise.
8372 (reduce_small): Likewise.
8373 (reduce_large): Likewise.
8374 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8375 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8376 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8377 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8378
8379 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8380 Szabolcs Nagy <szabolcs.nagy@arm.com>
8381
8382 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8383 (converttoint): Use lround.
8384 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8385 document the semantics when TOINT_INTRINSICS is set.
8386 (converttoint): Likewise.
8387 (TOINT_RINT): Remove.
8388 (TOINT_SHIFT): Remove.
8389 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8390 path.
8391
8392 2018-08-10 Florian Weimer <fweimer@redhat.com>
8393
8394 [BZ #23497]
8395 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8396 function.
8397 (__old_getdents64): Use getdents64. Convert entries without
8398 moving them.
8399 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8400 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8401 tst-readdir64-compat.
8402
8403 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8404
8405 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8406 Fix unwind.
8407
8408 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8409
8410 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8411 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8412 code to s390x-mcount.h and #include it.
8413 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8414 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8415 (__fentry__): Add.
8416
8417 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8418
8419 * stdlib/Versions: Remove __fentry__.
8420 * sysdeps/i386/Versions: Add __fentry__.
8421 * sysdeps/x86_64/Versions: Add __fentry__.
8422
8423 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8424
8425 * sysdeps/s390/Makefile: Register the new tests.
8426 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8427 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8428 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8429 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8430 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8431 * sysdeps/s390/tst-dl-runtime.c: New file.
8432
8433 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8434
8435 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8436 Do not clobber R0.
8437
8438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8439
8440 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8441 Do not clobber R0.
8442
8443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8444
8445 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8446 Do not clobber R0.
8447
8448 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8449
8450 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8451 Do not clobber R0.
8452
8453 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8454
8455 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8456 Use symbolic offsets for stack variables.
8457
8458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8459
8460 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8461 Use symbolic offsets for stack variables.
8462
8463 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8464
8465 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8466 Use symbolic offsets for stack variables.
8467
8468 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8469
8470 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8471 Use symbolic offsets for stack variables.
8472
8473 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8474
8475 * math/gen-libm-test.py: New file.
8476 * math/gen-libm-test.pl: Remove.
8477 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8478 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8479 gen-libm-test.pl.
8480 ($(libm-test-c-noauto-obj)): Likewise.
8481 ($(libm-test-c-auto-obj)): Likewise.
8482 ($(libm-test-c-narrow-obj)): Likewise.
8483 (regen-ulps): Likewise.
8484 * math/README.libm-test: Update references to gen-libm-test.pl.
8485 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8486 referencing gen-libm-test.pl.
8487 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8488 * math/libm-test-support.c: Likewise.
8489 * math/libm-test-support.h: Likewise.
8490 * sysdeps/generic/libm-test-ulps: Likewise.
8491
8492 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8493
8494 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8495 Fix value.
8496
8497 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8498
8499 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8500 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8501
8502 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8503
8504 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8505 symbols.
8506 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8507 __pthread_setspecific): Add hidden proto.
8508 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8509 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8510
8511 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8512
8513 * benchtests/bench-string.h (buf1_size, buf2_size): New
8514 variables.
8515 (init_sizes): New function.
8516 (test_init): Use it.
8517 (alloc_buf, exit_error): New functions.
8518 (alloc_bufs): Use ALLOC_BUF.
8519 (realloc_bufs): Remove.
8520 * benchtests/bench-memcmp.c (do_test): Adjust.
8521 * benchtests/bench-memset-large.c (do_test): Likewise.
8522 * benchtests/bench-memset-walk.c (do_test): Likewise.
8523 * benchtests/bench-memset.c (do_test): Likewise.
8524 * benchtests/bench-strncmp.c (do_test): Likewise.
8525
8526 2018-08-06 Andreas Schwab <schwab@suse.de>
8527
8528 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8529 of CONST_THREAD_AREA.
8530
8531 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8534 (STATE_SAVE_MASK): Likewise.
8535 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8536 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8537 (STATE_SAVE_MASK): Likewise.
8538 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8539 instead of <cpu-features.h>.
8540
8541 2018-08-03 DJ Delorie <dj@redhat.com>
8542
8543 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8544 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8545
8546 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8547
8548 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8549
8550 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8551 after TEST_* calls.
8552 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8553 * math/libm-test-logb.inc (logb_test_data): Likewise.
8554
8555 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8556
8557 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8558 * string/strstr.c (AVAILABLE): Likewise.
8559
8560 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8561
8562 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8563 <init-arch.h>.
8564 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8565 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8566 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8567
8568 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8569
8570 * po/be.po: Update translation.
8571
8572 * po/be.po: Update translation.
8573
8574 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8575
8576 * sysdeps/x86/cpu-features-offsets.sym
8577 (rtld_global_ro_offsetof): Removed.
8578 (CPU_FEATURES_SIZE): Likewise.
8579 (CPUID_OFFSET): Likewise.
8580 (CPUID_SIZE): Likewise.
8581 (CPUID_EAX_OFFSET): Likewise.
8582 (CPUID_EBX_OFFSET): Likewise.
8583 (CPUID_ECX_OFFSET): Likewise.
8584 (CPUID_EDX_OFFSET): Likewise.
8585 (FAMILY_OFFSET): Likewise.
8586 (MODEL_OFFSET): Likewise.
8587 (FEATURE_OFFSET): Likewise.
8588 (FEATURE_SIZ): Likewise.
8589 (COMMON_CPUID_INDEX_1): Likewise.
8590 (COMMON_CPUID_INDEX_7): Likewise.
8591 (FEATURE_INDEX_1): Likewise.
8592 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8593
8594 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8595
8596 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8597 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8598 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8599 (install-locales): Depend on install-locale-archive.
8600 (install-locale-archive): Define.
8601 (install-locale-files): Define.
8602 (build-one-locale): Define macro.
8603 * manual/install.texi (Running make install): Document.
8604 * manual/INSTALL: Regenerate.
8605
8606 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8607
8608 * benchtests/scripts/compare_strings.py: Import traceback.
8609 (parse_file): Pretty-print error.
8610
8611 * NEWS: Mention the change.
8612 * elf/dl-tunables.list: Rename tune namespace to cpu.
8613 * sysdeps/powerpc/dl-tunables.list: Likewise.
8614 * sysdeps/x86/dl-tunables.list: Likewise.
8615 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8616 cpu.name.
8617 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8618 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8619 * manual/README.tunables: Likewise.
8620 * manual/tunables.texi: Likewise.
8621 * sysdeps/powerpc/cpu-features.c: Likewise.
8622 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8623 (init_cpu_features): Likewise.
8624 * sysdeps/x86/cpu-features.c: Likewise.
8625 * sysdeps/x86/cpu-features.h: Likewise.
8626 * sysdeps/x86/cpu-tunables.c: Likewise.
8627 * sysdeps/x86_64/Makefile: Likewise.
8628 * sysdeps/x86/dl-cet.c: Likewise.
8629
8630 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8631
8632 [BZ #23479]
8633 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8634 [__mips_hard_float].
8635 (FE_UNDERFLOW): Likewise.
8636 (FE_OVERFLOW): Likewise.
8637 (FE_DIVBYZERO): Likewise.
8638 (FE_INVALID): Likewise.
8639 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8640 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8641 (FE_UPWARD): Likewise.
8642 (FE_DOWNWARD): Likewise.
8643 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8644 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8645 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8646 [__mips_hard_float].
8647 (FP_ROUNDMODE): Likewise.
8648 (FP_RND_NEAREST): Likewise.
8649 (FP_RND_ZERO): Likewise.
8650 (FP_RND_PINF): Likewise.
8651 (FP_RND_MINF): Likewise.
8652 (FP_EX_INVALID): Likewise.
8653 (FP_EX_OVERFLOW): Likewise.
8654 (FP_EX_UNDERFLOW): Likewise.
8655 (FP_EX_DIVZERO): Likewise.
8656 (FP_EX_INEXACT): Likewise.
8657 (FP_INIT_ROUNDMODE): Likewise.
8658 * sysdeps/mips/nofpu/fesetenv.c: New file.
8659 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8660
8661 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8662
8663 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8664 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8665 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8666 conditional on [FE_UPWARD].
8667
8668 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8669
8670 regex: fix memory leak in Gnulib
8671 Problem and fix reported by Assaf Gordon in:
8672 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8673 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8674 range_ends members too, as they are defined in 'struct
8675 re_charset_t' even if not _LIBC. This affects only Gnulib.
8676
8677 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8678
8679 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8680 ...
8681 (get_common_indices): This.
8682 (init_cpu_features): Updated.
8683
8684 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8685
8686 * sysdeps/generic/math-tests-snan-payload.h: New file.
8687 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8688 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8689 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8690 * sysdeps/generic/math-tests.h: Include
8691 <math-tests-snan-payload.h>.
8692 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8693 * sysdeps/hppa/math-tests.h: Remove file.
8694 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8695 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8696 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8697 Likewise.
8698
8699 * sysdeps/generic/math-tests-snan-cast.h: New file.
8700 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8701 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8702 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8703 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8704
8705 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8706
8707 * version.h (RELEASE): Set to "development".
8708 (VERSION): Set to "2.28.9000".
8709 * NEWS (2.29): New section.
8710
8711 * version.h (RELEASE): Set to "stable".
8712 (VERSION): Set to "2.28".
8713 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8714 * NEWS: Add the list of bugs fixed in 2.28.
8715
8716 * po/ca.po: Update to latest version.
8717 * po/cs.po: Likewise
8718 * po/da.po: Likewise
8719 * po/el.po: Likewise
8720 * po/eo.po: Likewise
8721 * po/es.po: Likewise
8722 * po/fi.po: Likewise
8723 * po/fr.po: Likewise
8724 * po/gl.po: Likewise
8725 * po/hu.po: Likewise
8726 * po/ia.po: Likewise
8727 * po/id.po: Likewise
8728 * po/it.po: Likewise
8729 * po/ja.po: Likewise
8730 * po/ko.po: Likewise
8731 * po/lt.po: Likewise
8732 * po/nb.po: Likewise
8733 * po/nl.po: Likewise
8734 * po/pt_BR.po: Likewise
8735 * po/ru.po: Likewise
8736 * po/rw.po: Likewise
8737 * po/sk.po: Likewise
8738 * po/sl.po: Likewise
8739 * po/tr.po: Likewise
8740 * po/zh_CN.po: Likewise
8741 * po/zh_TW.po: Likewise
8742
8743 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8744
8745 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8746 initialization...
8747 (init): ... before initializing libpthread.
8748
8749 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8750 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8751 (__mach_setup_tls): ... new function.
8752 (mach_setup_tls): New alias.
8753 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8754 __mach_setup_thread.
8755 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8756 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8757 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8758 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8759
8760 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8761
8762 * manual/install.texi: Update versions.
8763 * INSTALL: Regenerate.
8764
8765 * manual/contrib.texi (Contributors): Update contributions.
8766
8767 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8768
8769 * po/be.po: Update translations.
8770
8771 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8772
8773 * sysdeps/sh/libm-test-ulps: Update.
8774
8775 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8776
8777 * po/bg.po: Update translations.
8778 * po/de.po: Likewise.
8779 * po/hr.po: Likewise.
8780 * po/pt_BR.po: Likewise.
8781 * po/sv.po: Likewise.
8782 * po/vi.po: Likewise.
8783
8784 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8785
8786 [BZ #23467]
8787 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8788 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8789 (CFLAGS-tst-cet-property-1.o): New.
8790 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8791 ($(objpfx)tst-cet-property-2): Likewise.
8792 ($(objpfx)tst-cet-property-2.out): Likewise.
8793 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8794 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8795 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8796 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8797 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8798
8799 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8800
8801 [BZ #23458]
8802 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8803
8804 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8805
8806 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8807 __sbrk): Do not set attribute_hidden.
8808 * sysdeps/mach/hurd/not-errno.h: New file.
8809 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8810 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8811
8812 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8813
8814 * po/uk.po: Update translations.
8815 * po/cs.po: Likewise.
8816 * po/pl.po: Likewise.
8817
8818 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8819
8820 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8821 parse beyond the note end.
8822
8823 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8824
8825 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8826 kernel does not support OFD locks.
8827 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8828
8829 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8830
8831 * sysdeps/mach/hurd/Versions (libc): Make __access and
8832 __access_noerrno external so they can override the ld symbols.
8833 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8834 __writev, __open64, __access_noerrno extern so they can be overrided.
8835 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8836 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8837
8838 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8839
8840 * po/libc.pot: Regenerate.
8841
8842 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8843
8844 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8845
8846 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8847
8848 [BZ #23459]
8849 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8850 function.
8851 (init_cpu_features): Call get_extended_indices for both Intel
8852 and AMD CPUs.
8853 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8854 Remove "for AMD" comment.
8855
8856 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8857
8858 [BZ # 23456]
8859 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8860 COMMON_CPUID_INDEX_80000001.
8861
8862 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8863
8864 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8865 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8866
8867 2018-07-26 Florian Weimer <fweimer@redhat.com>
8868
8869 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8870 aliases for symbols not in the implementation namespace.
8871
8872 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8873
8874 [BZ #23393]
8875 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8876 lowercase in LATIN script.
8877 * localedata/Makefile (test-input): Add en_US.UTF-8.
8878 * localedata/en_US.UTF-8.in: New file.
8879 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8880 and restore old tests.
8881 * posix/tst-regexloc.c (do_test): Add back range expression test.
8882
8883 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8884
8885 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8886
8887 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8888
8889 * nptl/threads.h: Move to ...
8890 * sysdeps/nptl/threads.h: ... here.
8891 * sysdeps/hurd/stdc-predef.h: New file.
8892
8893 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8894
8895 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8896 tst-cet-setcontext-1 if CET is enabled.
8897 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8898 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8899
8900 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8901
8902 * include/threads.h: Move to ...
8903 * sysdeps/nptl/threads.h: ... here.
8904 * sysdeps/htl/threads.h: New file.
8905 * conform/Makefile (linknamespace-libs-ISO11): Use
8906 static-thread-library instead of linking libpthread.
8907 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8908
8909 2018-07-25 Florian Weimer <fweimer@redhat.com>
8910
8911 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8912 nanoseconds into seconds.
8913 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8914 (do_test): Likewise.
8915 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8916 (do_test): Likewise. Avoid nanosecond overflow and spurious
8917 timeouts due to system load.
8918 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8919 (child_wait): Increment it.
8920 (do_test): Wait as long as necessary until all expected threads
8921 have arrived.
8922
8923 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8924 H.J. Lu <hongjiu.lu@intel.com>
8925
8926 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8927 __ssp.
8928 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8929 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8930 (__push___start_context): New.
8931 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8932 <asm/prctl.h>.
8933 (__getcontext): Record the current shadow stack base. Save the
8934 caller's shadow stack pointer and base.
8935 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8936 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8937 (__push___start_context): New prototype.
8938 (__makecontext): Call __push___start_context to allocate a new
8939 shadow stack, push __start_context onto the new stack as well
8940 as the new shadow stack.
8941 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8942 <asm/prctl.h>.
8943 (__setcontext): Restore the target shadow stack.
8944 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8945 <asm/prctl.h>.
8946 (__swapcontext): Record the current shadow stack base. Save
8947 the caller's shadow stack pointer and base. Restore the target
8948 shadow stack.
8949 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8950 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8951 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8952
8953 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8954
8955 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8956 tst-setcontext8 and tst-setcontext9.
8957 * stdlib/tst-setcontext6.c: New file.
8958 * stdlib/tst-setcontext7.c: Likewise.
8959 * stdlib/tst-setcontext8.c: Likewise.
8960 * stdlib/tst-setcontext9.c: Likewise.
8961
8962 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8963
8964 * stdlib/Makefile ((tests): Add tst-setcontext5.
8965 * stdlib/tst-setcontext5.c: New file.
8966
8967 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8968
8969 * stdlib/Makefile (tests): Add tst-setcontext4.
8970 * stdlib/tst-setcontext4.c: New file.
8971
8972 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8973
8974 * stdlib/Makefile (tests): Add tst-swapcontext1.
8975 * stdlib/tst-swapcontext1.c: New test.
8976
8977 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8978
8979 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8980 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8981 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8982 and tst-cet-legacy-4c.
8983 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8984 and tst-cet-legacy-mod-4.
8985 (CFLAGS-tst-cet-legacy-2.c): New.
8986 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8987 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8988 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8989 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8990 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8991 ($(objpfx)tst-cet-legacy-1): Likewise.
8992 ($(objpfx)tst-cet-legacy-2): Likewise.
8993 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8994 ($(objpfx)tst-cet-legacy-2a): Likewise.
8995 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8996 ($(objpfx)tst-cet-legacy-4): Likewise.
8997 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8998 ($(objpfx)tst-cet-legacy-4a): Likewise.
8999 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9000 (tst-cet-legacy-4a-ENV): Likewise.
9001 ($(objpfx)tst-cet-legacy-4b): Likewise.
9002 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9003 (tst-cet-legacy-4b-ENV): Likewise.
9004 ($(objpfx)tst-cet-legacy-4c): Likewise.
9005 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9006 (tst-cet-legacy-4c-ENV): Likewise.
9007 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9008 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9009 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9010 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9011 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9012 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9013 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9014 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9015 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9016 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9017 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9018
9019 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9020
9021 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9022 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9023 with ssp_base.
9024 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9025 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9026 with ssp_base.
9027
9028 2018-07-25 Andreas Schwab <schwab@suse.de>
9029
9030 [BZ #23442]
9031 * locale/weightwc.h (findidx): Handle the case where usrc is a
9032 prefix of cp but one character too short.
9033
9034 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9035
9036 * NEWS: Add ISO C threads addition.
9037
9038 2018-07-24 Florian Weimer <fweimer@redhat.com>
9039
9040 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9041 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9042 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9043 4.13.
9044
9045 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9046
9047 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9048 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9049 <sys/prctl.h> and <asm/prctl.h>.
9050 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9051 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9052 and <asm/prctl.h>.
9053 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9054 ARCH_CET_LEGACY_BITMAP.
9055 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9056 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9057 * sysdeps/x86/libc-start.c: Include <startup.h>.
9058
9059 2018-07-24 Florian Weimer <fweimer@redhat.com>
9060
9061 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9062 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9063
9064 2018-07-24 Rical Jasan <rj@2c3t.io>
9065 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9066 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9067
9068 [BZ #14092]
9069 * manual/debug.texi: Update adjacent chapter name.
9070 * manual/probes.texi: Likewise.
9071 * manual/threads.texi (ISO C Threads): New section.
9072 (POSIX Threads): Convert to a section.
9073
9074 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9075 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9076
9077 [BZ# 14092]
9078 * nptl/Makefile (tests): Add new test files.
9079 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9080 * nptl/tst-cnd-basic.c: Likewise.
9081 * nptl/tst-cnd-broadcast.c: Likewise.
9082 * nptl/tst-cnd-timedwait.c: Likewise.
9083 * nptl/tst-mtx-basic.c: Likewise.
9084 * nptl/tst-mtx-recursive.c: Likewise.
9085 * nptl/tst-mtx-timedlock.c: Likewise.
9086 * nptl/tst-mtx-trylock.c: Likewise.
9087 * nptl/tst-thrd-basic.c: Likewise.
9088 * nptl/tst-thrd-detach.c: Likewise.
9089 * nptl/tst-thrd-sleep.c: Likewise.
9090 * nptl/tst-tss-basic.c: Likewise.
9091
9092 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9093
9094 [BZ #14092]
9095 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9096 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9097 symbols.
9098 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9099 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9100 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9101 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9102 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9103 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9104 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9105 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9106 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9107 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9108 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9109 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9110 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9111 Likewise.
9112 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9113 Likewise.
9114 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9115 Likewise.
9116 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9117 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9118 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9119 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9120 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9121 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9122 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9123 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9124 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9125 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9126 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9127 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9128 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9129 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9130 Likewise.
9131 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9132 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9133 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9134 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9135 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9136 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9137 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9138 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9139 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9140 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9141 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9142 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9143 ikewise.
9144 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9146 Likewise.
9147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9148 Likewise.
9149 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9150 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9151 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9152 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9153 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9154 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9155 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9156 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9157
9158 [BZ #14092]
9159 * conform/data/threads.h-data (thread_local): New macro.
9160 (TSS_DTOR_ITERATIONS): Likewise.
9161 (tss_t): New type.
9162 (tss_dtor_t): Likewise.
9163 (tss_create): New function.
9164 (tss_get): Likewise.
9165 (tss_set): Likewise.
9166 (tss_delete): Likewise.
9167 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9168 tss_get, and tss_set objects.
9169 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9170 * nptl/tss_create.c: New file.
9171 * nptl/tss_delete.c: Likewise.
9172 * nptl/tss_get.c: Likewise.
9173 * nptl/tss_set.c: Likewise.
9174 * sysdeps/nptl/threads.h (thread_local): New define.
9175 (TSS_DTOR_ITERATIONS): Likewise.
9176 (tss_t): New typedef.
9177 (tss_dtor_t): Likewise.
9178 (tss_create): New prototype.
9179 (tss_get): Likewise.
9180 (tss_set): Likewise.
9181 (tss_delete): Likewise.
9182
9183 [BZ #14092]
9184 * conform/data/threads.h-data (cnd_t): New type.
9185 (cnd_init): New function.
9186 (cnd_signal): Likewise.
9187 (cnd_broadcast): Likewise.
9188 (cnd_wait): Likewise.
9189 (cnd_timedwait): Likewise.
9190 (cnd_destroy): Likewise.
9191 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9192 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9193 object.
9194 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9195 * nptl/cnd_broadcast.c: New file.
9196 * nptl/cnd_destroy.c: Likewise.
9197 * nptl/cnd_init.c: Likewise.
9198 * nptl/cnd_signal.c: Likewise.
9199 * nptl/cnd_timedwait.c: Likewise.
9200 * nptl/cnd_wait.c: Likewise.
9201 * sysdeps/nptl/threads.h (cnd_t): New type.
9202 (cnd_init): New prototype.
9203 (cnd_signa): Likewise.
9204 (cnd_broadcast): Likewise.
9205 (cnd_wait): Likewise.
9206 (cnd_timedwait): Likewise.
9207 (cnd_destroy): Likewise.
9208
9209 [BZ #14092]
9210 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9211 (once_flag): New type.
9212 (call_once): New function.
9213 * nptl/Makefile (libpthread-routines): Add call_once object.
9214 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9215 * nptl/call_once.c: New file.
9216 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9217 (once_flag): New type.
9218 (call_once): New prototype.
9219
9220 [BZ #14092]
9221 * conform/data/threads.h-data (mtx_plain): New constant.
9222 (mtx_recursive): Likewise.
9223 (mtx_timed): Likewise.
9224 (mtx_t): New type.
9225 (mtx_init): New function.
9226 (mtx_lock): Likewise.
9227 (mtx_timedlock): Likewise.
9228 (mtx_trylock): Likewise.
9229 (mtx_unlock): Likewise.
9230 (mtx_destroy): Likewise.
9231 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9232 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9233 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9234 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9235 * nptl/mtx_destroy.c: New file.
9236 * nptl/mtx_init.c: Likewise.
9237 * nptl/mtx_lock.c: Likewise.
9238 * nptl/mtx_timedlock.c: Likewise.
9239 * nptl/mtx_trylock.c: Likewise.
9240 * nptl/mtx_unlock.c: Likewise.
9241 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9242 (mtx_recursive): Likewise.
9243 (mtx_timed): Likewise.
9244 (mtx_t): New type.
9245 (mtx_init): New prototype.
9246 (mtx_lock): Likewise.
9247 (mtx_timedlock): Likewise.
9248 (mtx_trylock): Likewise.
9249 (mtx_unlock): Likewise.
9250 (mtx_destroy): Likewise.
9251
9252 [BZ #14092]
9253 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9254 (linknamespace-libs-ISO11): Add libpthread.a.
9255 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9256 functions.
9257 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9258 * nptl/Makefile (headers): Add threads.h.
9259 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9260 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9261 thrd_yield.
9262 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9263 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9264 thrd_join, thrd_sleep, and thrd_yield symbols.
9265 * nptl/descr.h (struct pthread): Add c11 field.
9266 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9267 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9268 routine with expected function prototype.
9269 (__pthread_create_2_1): Add C11 threads check based on attribute
9270 value.
9271 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9272 * nptl/thrd_create.c: New file.
9273 * nptl/thrd_current.c: Likewise.
9274 * nptl/thrd_detach.c: Likewise.
9275 * nptl/thrd_equal.c: Likewise.
9276 * nptl/thrd_exit.c: Likewise.
9277 * nptl/thrd_join.c: Likewise.
9278 * nptl/thrd_priv.h: Likewise.
9279 * nptl/thrd_sleep.c: Likewise.
9280 * nptl/thrd_yield.c: Likewise.
9281 * include/threads.h: Likewise.
9282
9283 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9284
9285 * bits/indirect-return.h: New file.
9286 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9287 * sysdeps/x86/bits/indirect-return.h: Likewise.
9288 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9289 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9290 (swapcontext): Add __INDIRECT_RETURN.
9291 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9292 (prepare_test_buffer): Use it.
9293
9294 2018-07-24 Andreas Schwab <schwab@suse.de>
9295
9296 [BZ #23448]
9297 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9298 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9299
9300 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9301
9302 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9303 Redefine if shadow stack is enabled.
9304 (SYSCALL_ERROR_LABEL): Likewise.
9305 (__vfork): Pop shadow stack and jump back to to caller directly
9306 when shadow stack is in use.
9307 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9308 Redefine if shadow stack is enabled.
9309 (SYSCALL_ERROR_LABEL): Likewise.
9310 (__vfork): Pop shadow stack and jump back to to caller directly
9311 when shadow stack is in use.
9312
9313 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9314
9315 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9316 enabled.
9317 (foo): Likewise.
9318 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9319 (foo): Likewise.
9320
9321 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9322
9323 * scripts/build-many-glibcs.py (Context.checkout): Default
9324 binutils version to 2.31 branch.
9325
9326 2018-07-20 Zong Li <zong@andestech.com>
9327
9328 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9329 URL of gcc's tarball.
9330
9331 2018-07-20 Florian Weimer <fweimer@redhat.com>
9332
9333 [BZ #23396]
9334 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9335 not compare an extra byte after the end of the weights.
9336
9337 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9338
9339 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9340 to 1.
9341 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9342 hidden prototypes.
9343 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9344 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9345 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9346 list of libraries whose stack executability is expected.
9347 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9348 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9349 variable.
9350 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9351 libc.so libpthread.so.
9352
9353 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9354
9355 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9356 SOCK_NONBLOCK.
9357 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9358 and SOCK_NONBLOCK.
9359 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9360 implement __pipe2.
9361 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9362
9363 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9364
9365 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9366 library to improve command line parsing.
9367 (__main__): make schema file as optional parameter (--schema),
9368 defaulting to benchtests/scripts/benchout.schema.json.
9369 (main): move out of the parsing stuff to __main_  and leave it
9370 only as caller of main comparison functions.
9371
9372 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9373
9374 * NEWS: Add a note for Intel CET status.
9375 * manual/install.texi: Likewise.
9376 * INSTALL: Regenerated.
9377
9378 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9379
9380 [BZ #23140]
9381 * localedata/locales/oc_FR (mon): Rename to...
9382 (alt_mon): This, then update October (typo fix).
9383 (mon): New content (genitive case, month names preceded by
9384 "de" or "d’").
9385
9386 [BZ #23422]
9387 * localedata/locales/oc_FR (abday): Update all items.
9388 (day): Update Wednesday and Saturday (typo fixes).
9389 (abmon): Update all items, except May.
9390 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9391 (LC_IDENTIFICATION): Bump the revision number and date.
9392 Keep the "category" entries in alphabetic order.
9393 (LC_ADDRESS): Remove no longer needed comment.
9394 (LC_COLLATE): Use “copy "ca_ES"”.
9395 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9396 "name_mrs".
9397
9398 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9399
9400 * grp/tst_fgetgrent.c: Include <unistd.h>.
9401 (main): Use mkstemp instead of tmpnam.
9402 * io/test-utime.c (main): Likewise.
9403 * posix/annexc.c (macrofile): Change to modifiable array.
9404 (main): Remove macrofile here.
9405 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9406 macrofile here.
9407 (check_header): Do not remove macrofile here.
9408 * posix/bug-getopt1.c: Include <stdlib.h>.
9409 (do_test): Use mkstemp instead of tmpnam.
9410 * posix/bug-getopt2.c: Include <stdlib.h>.
9411 (do_test): Use mkstemp instead of tmpnam.
9412 * posix/bug-getopt3.c: Include <stdlib.h>.
9413 (do_test): Use mkstemp instead of tmpnam.
9414 * posix/bug-getopt4.c: Include <stdlib.h>.
9415 (do_test): Use mkstemp instead of tmpnam.
9416 * posix/bug-getopt5.c: Include <stdlib.h>.
9417 (do_test): Use mkstemp instead of tmpnam.
9418 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9419 (main): Use mkstemp instead of tmpnam.
9420 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9421 (main): Use mkstemp instead of tmpnam.
9422 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9423 (main): use mkstemp instead of tmpnam.
9424 * stdlib/isomac.c (macrofile): Change to modifiable array.
9425 (main): Remove macrofile here.
9426 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9427 macrofile here.
9428 (check_header): Do not remove macrofile here.
9429
9430 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9431
9432 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9433 glibc.tune.x86_shstk.
9434
9435 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9436
9437 * NEWS: Mention --enable-cet.
9438 * manual/install.texi: Document --enable-cet.
9439 * INSTALL: Regenerated.
9440
9441 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9442
9443 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9444 Add _CET_NOTRACK before indirect jump to jump table.
9445
9446 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9447
9448 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9449 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9450 to jump table.
9451
9452 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9453
9454 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9455 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9456 to jump table.
9457
9458 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9459
9460 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9461 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9462 to jump table.
9463
9464 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9465
9466 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9467 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9468 to jump table.
9469
9470 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9471
9472 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9473 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9474 to jump table.
9475 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9476
9477 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9478
9479 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9480 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9481 to jump table.
9482
9483 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9484
9485 * sysdeps/i386/i686/multiarch/memset-sse2.S
9486 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9487 to jump table.
9488
9489 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9490
9491 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9492 indirect jump to jump table.
9493
9494 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9495
9496 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9497 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9498 to jump table.
9499 (MEMCPY): Likewise.
9500
9501 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9502
9503 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9504 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9505 to jump table.
9506 (MEMCPY): Likewise.
9507
9508 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9509
9510 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9511 _CET_NOTRACK before indirect jump to jump table.
9512
9513 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9514
9515 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9516 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9517 to jump table.
9518
9519 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9520
9521 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9522 indirect jump to jump table.
9523
9524 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9525
9526 [BZ #22241]
9527 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9528 (LOCALES): Likewise.
9529 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9530 * localedata/locales/sah_RU: New file.
9531 * localedata/sah_RU.UTF-8.in: New file.
9532
9533 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9534
9535 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9536 "sysdep.h".
9537 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9538 _CET_ENDBR to indirect jump targets and adjust jump destination
9539 for _CET_ENDBR.
9540 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9541 "sysdep.h".
9542 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9543 _CET_ENDBR to indirect jump targets and adjust jump destination
9544 for _CET_ENDBR.
9545 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9546 "sysdep.h".
9547 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9548 _CET_ENDBR to indirect jump targets and adjust jump destination
9549 for _CET_ENDBR.
9550
9551 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9552
9553 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9554 _CET_ENDBR.
9555
9556 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9557
9558 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9559 _CET_ENDBR.
9560 (_dl_tlsdesc_undefweak): Likewise.
9561 (_dl_tlsdesc_dynamic): Likewise.
9562 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9563 (_dl_tlsdesc_resolve_rel): Likewise.
9564 (_dl_tlsdesc_resolve_rela): Likewise.
9565 (_dl_tlsdesc_resolve_hold): Likewise.
9566 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9567 (_dl_tlsdesc_undefweak): Likewise.
9568 (_dl_tlsdesc_dynamic): Likewise.
9569 (_dl_tlsdesc_resolve_rela): Likewise.
9570 (_dl_tlsdesc_resolve_hold): Likewise.
9571
9572 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9573
9574 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9575 (_fini): Likewise.
9576 * sysdeps/x86_64/crti.S (_init): Likewise.
9577 (_fini): Likewise.
9578
9579 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9580
9581 [BZ #23140]
9582 * localedata/locales/os_RU (mon): Rename to...
9583 (alt_mon): This.
9584 (mon): Import from CLDR (genitive case).
9585
9586 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9587
9588 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9589 cet-tunables.h> when CET is enabled.
9590
9591 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 [BZ #21598]
9594 * configure.ac: Add --enable-cet.
9595 * configure: Regenerated.
9596 * elf/Makefille (all-built-dso): Add a comment.
9597 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9598 Include <dl-prop.h>.
9599 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9600 segment.
9601 * elf/dl-open.c: Include <dl-prop.h>.
9602 (dl_open_worker): Call _dl_open_check.
9603 * elf/rtld.c: Include <dl-prop.h>.
9604 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9605 _rtld_main_check.
9606 * sysdeps/generic/dl-prop.h: New file.
9607 * sysdeps/i386/dl-cet.c: Likewise.
9608 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9609 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9610 * sysdeps/x86/cet-tunables.h: Likewise.
9611 * sysdeps/x86/check-cet.awk: Likewise.
9612 * sysdeps/x86/configure: Likewise.
9613 * sysdeps/x86/configure.ac: Likewise.
9614 * sysdeps/x86/dl-cet.c: Likewise.
9615 * sysdeps/x86/dl-procruntime.c: Likewise.
9616 * sysdeps/x86/dl-prop.h: Likewise.
9617 * sysdeps/x86/libc-start.h: Likewise.
9618 * sysdeps/x86/link_map.h: Likewise.
9619 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9620 _CET_ENDBR.
9621 (_dl_runtime_profile): Likewise.
9622 (_dl_runtime_resolve_shstk): New.
9623 (_dl_runtime_profile_shstk): Likewise.
9624 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9625 if CET is enabled.
9626 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9627 (CFLAGS-.os): Likewise.
9628 (CFLAGS-.op): Likewise.
9629 (CFLAGS-.oS): Likewise.
9630 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9631 is enabled.
9632 (tests-special): Add $(objpfx)check-cet.out.
9633 (cet-built-dso): New.
9634 (+$(cet-built-dso:=.note)): Likewise.
9635 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9636 ($(objpfx)check-cet.out): New.
9637 (generated): Add check-cet.out.
9638 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9639 <cet-tunables.h>.
9640 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9641 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9642 (init_cpu_features): Call get_cet_status to check CET status
9643 and update dl_x86_feature_1 with CET status. Call
9644 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9645 (set_x86_shstk). Disable and lock CET in libc.a.
9646 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9647 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9648 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9649 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9650 (_CET_ENDBR): Define if not defined.
9651 (ENTRY): Add _CET_ENDBR.
9652 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9653 x86_shstk.
9654 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9655 _CET_ENDBR.
9656 (_dl_runtime_profile): Likewise.
9657
9658 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9659
9660 [BZ #21895]
9661 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9662 restore r2 on longjmp.
9663 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9664 test list.
9665 Added rules to build test tst-setjmp-bug21895-static.
9666 Added module setjmp-bug21895 and rules to build a shared object from it.
9667 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9668 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9669
9670 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9671
9672 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9673 * benchtests/bench-strstr.c: Likewise.
9674 * string/memmem.c (FASTSEARCH): Define.
9675 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9676 Add support for FASTSEARCH.
9677 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9678 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9679 (FASTSEARCH): Define.
9680 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9681 * string/test-strstr.c: Likewise.
9682
9683 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9684
9685 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9686 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9687
9688 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9689 H.J. Lu <hongjiu.lu@intel.com>
9690
9691 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9692 (__longjmp): Restore shadow stack pointer if shadow stack is
9693 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9694 isn't defined for __longjmp_cancel.
9695 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9696 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9697 and SHADOW_STACK_POINTER_OFFSET is defined.
9698 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9699 (setjmp): Save shadow stack pointer if shadow stack is enabled
9700 and SHADOW_STACK_POINTER_OFFSET is defined.
9701 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9702 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9703 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9704 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9705 <jmp_buf-ssp.h>.
9706 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9707 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9708 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9709 Remove jmp_buf-ssp.sym.
9710 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9711 <jmp_buf-ssp.h>.
9712 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9713 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9714 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9715 jmp_buf-ssp.sym.
9716 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9717 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9718 (__longjmp): Restore shadow stack pointer if shadow stack is
9719 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9720 isn't defined for __longjmp_cancel.
9721 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9722 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9723 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9724
9725 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9726
9727 [BZ #22563]
9728 * nptl/pthread_create.c: Include <tls-setup.h>.
9729 (__pthread_create_2_1): Call tls_setup_tcbhead.
9730 * sysdeps/generic/tls-setup.h: New file.
9731 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9732 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9733 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9734 Likewise.
9735 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9736 to feature_1.
9737 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9738 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9739 (X86_FEATURE_1_SHSTK): Likewise.
9740 (CET_ENABLED): Likewise.
9741 (IBT_ENABLED): Likewise.
9742 (SHSTK_ENABLED): Likewise.
9743
9744 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9745
9746 [BZ #23208]
9747 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9748 (LOCALES): Likewise.
9749 * localedata/dsb_DE.UTF-8.in: New file.
9750 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9751
9752 2018-07-12 Florian Weimer <fweimer@redhat.com>
9753
9754 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9755 __mprotect, not mprotect.
9756
9757 2018-07-11 Florian Weimer <fweimer@redhat.com>
9758
9759 * io/Makefile (headers): Add bits/statx.h.
9760
9761 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9762
9763 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9764 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9765 and headers.
9766 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9767 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9768 for utf8_gen.py
9769
9770 2018-07-10 Florian Weimer <fweimer@redhat.com>
9771
9772 * io/Makefile (routines): Add statx.
9773 (tests-internal): Add tst-statx.
9774 * io/Versions (GLIBC_2.28): Export statx.
9775 * io/bits/statx.h: New file.
9776 * io/sys/stat.h [__USE_GNU]: Include it.
9777 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9778 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9779 Define.
9780 * io/statx.c: New file.
9781 * io/statx_generic.: Likewise.
9782 * io/tst-statx.: Likewise.
9783 * include/bits/statx.h: Likewise.
9784 * sysdeps/unix/sysv/linux/kernel-features.h
9785 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9786 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9787 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9788 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9789 Undefine.
9790 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9791 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9792 * sysdeps/unix/sysv/linux/statx.c: New file.
9793 * manual/filesys.texi: Note that statx is undocumented.
9794 * sysdeps/**/libc*.abilist: Update.
9795
9796 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9797
9798 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9799 a kernel issue which lead to test failure in some cases.
9800
9801 2018-07-10 Florian Weimer <fweimer@redhat.com>
9802
9803 [BZ #23036]
9804 * posix/regexec.c (check_node_accept_bytes): When comparing
9805 weights, do not compare an extra byte after the end of the
9806 weights.
9807
9808 2018-07-10 Florian Weimer <fweimer@redhat.com>
9809
9810 * libio/readline.c: Fix copyright year.
9811 * libio/tst-readline.c Likewise.
9812 * nss/tst-nss-files-hosts-getent.c: Likewise.
9813
9814 2018-07-06 Florian Weimer <fweimer@redhat.com>
9815
9816 [BZ #18991]
9817 * nss/nss_files/files-XXX.c (internal_getent): Use
9818 __libc_readline_unlocked. Seek back to the start of the line if
9819 parsing failes with ERANGE.
9820 (get_contents_ret, get_contents): Remove.
9821 * nss/tst-nss-files-hosts-getent.c: New file.
9822 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9823 (tst-nss-files-hosts-getent): Link with -ldl.
9824
9825 2018-07-06 Florian Weimer <fweimer@redhat.com>
9826
9827 * include/stdio.h (__libc_readline_unlocked): Declare.
9828 (__ftello64, __fseeko64): Declare aliases.
9829 * libio/readline.c: New file.
9830 * libio/tst-readline.c: Likewise.
9831 (routines): Add readline.
9832 (tests-internal): Add tst-readlime.
9833 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9834 __libc_readline_unlocked.
9835 * libio/fseeko.c (__fseeko): Rename from fseeko.
9836 (fseeko): Add alias.
9837 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9838 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9839 (fseeko64): Add alias.
9840 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9841 * libio/ftello64.c (__ftello64): Rename from ftello64.
9842 (ftello64): Add alias.
9843
9844 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9845
9846 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9847 HWCAP_ATOMICS.
9848
9849 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9850
9851 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9852 Use dl_hwcap without masking.
9853 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9854 Remove HWCAP_CPUID.
9855
9856 2018-07-06 Florian Weimer <fweimer@redhat.com>
9857
9858 * conform/conformtest.pl (checknamespace): Escape literal braces
9859 in regular expressions.
9860
9861 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9862
9863 * sysdeps/x86/cpu-features.c (get_common_indeces):
9864 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9865 * sysdeps/x86/cpu-features.c (init_cpu_features):
9866 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9867
9868 2018-07-05 Florian Weimer <fweimer@redhat.com>
9869
9870 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9871 protector.
9872 (CFLAGS-elf-init.oS): Likewise.
9873
9874 2018-07-05 Florian Weimer <fweimer@redhat.com>
9875 Carlos O'Donell <carlos@redhat.com>
9876
9877 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9878 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9879 with stack protector enabled because there is no risk of infinite
9880 recursion.
9881
9882 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9883
9884 [BZ #19818]
9885 [BZ #23307]
9886 * libc-abis (ABSOLUTE): New ABI.
9887 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9888 * NEWS: Mention the new ABI.
9889
9890 2018-07-05 Florian Weimer <fweimer@redhat.com>
9891
9892 [BZ # 17662]
9893 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9894 (RENAME_WHITEOUT): Define.
9895 [__USE_GNU] (renameat2): Declare.
9896 * stdio-common/Makefile (routines): Add renameat2.
9897 (tests): Add tst-renameat2.
9898 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9899 * stdio-common/renameat2.c: New file.
9900 * stdio-common/tst-renameat2.c: Likewise.
9901 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9902 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9903 undocumented.
9904 * sysdeps/unix/sysv/linux/kernel-features.h
9905 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9906 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9907 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9908 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9909 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9910 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9911 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9912 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9913 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9914 * include/stdio.h (__renameat): Add alias for renameat.
9915 * stdio-common/renameat.c (__renameat): Rename from renameat.
9916 Add hidden definition and alias.
9917 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9918 * sysdeps/mach/hurd/renameat.c: Likewise.
9919 * sysdeps/**/libc*.abilist: Add renameat2.
9920
9921 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9922
9923 * posix/bug-regex33.c: Fix build after regex sync.
9924
9925 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9926
9927 [BZ #23164]
9928 * localedata/tst-langinfo-setlocale.c: New file.
9929 * localedata/tst-langinfo-setlocale-static.c: New file.
9930 * localedata/tst-langinfo-newlocale.c: New file.
9931 * localedata/tst-langinfo-newlocale-static.c: New file.
9932 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9933 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9934 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9935 (tests-static): Remove tst-langinfo-static. Add
9936 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9937 (tests-special): Remove $(objpfx)tst-langinfo.out,
9938 $(objpfx)tst-langinfo-static.out. Add
9939 $(objpfx)tst-langinfo-setlocale.out,
9940 $(objpfx)tst-langinfo-newlocale.out,
9941 $(objpfx)tst-langinfo-setlocale-static.out,
9942 $(objpfx)tst-langinfo-newlocale-static.out.
9943 ($(objpfx)tst-langinfo.out): Remove.
9944 ($(objpfx)tst-langinfo-static.out): Remove.
9945 ($(objpfx)tst-langinfo-newlocale.out): New target.
9946 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9947 (test-xfail-tst-langinfo-newlocale-static): Add.
9948 ($(objpfx)tst-langinfo-setlocale.out): New target.
9949 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9950 * localedata/tst-langinfo.c: Call test_locale.
9951 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9952 data.
9953
9954 2018-07-04 Florian Weimer <fweimer@redhat.com>
9955
9956 testrun.sh: Implement --tool=strace, --tool=valgrind
9957 * Makefile (testrun-script): Define variable.
9958 (testrun.sh): Use variable.
9959 * manual/install.texi (Tools for Compilation): make 4.0 or later
9960 is required.
9961 * configure.ac: Check for make 4.0 or later.
9962 * INSTALL: Regenerate.
9963 * configure: Likewise.
9964
9965 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9966
9967 [BZ #23233]
9968 [BZ #21163]
9969 [BZ #18986]
9970 [BZ #13762]
9971 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9972 * posix/PCRE.tests: Remove invalid test.
9973 * posix/bug-regex28.c: Fix expected values for used syntax.
9974 * posix/bug-regex37.c: New file.
9975 * posix/bug-regex38.c: Likewise.
9976 * posix/regcomp.c: Sync with gnulib.
9977 * posix/regex.c: Likewise.
9978 * posix/regex.h: Likewise.
9979 * posix/regex_internal.c: Likewise.
9980 * posix/regex_internal.h: Likewise.
9981 * posix/regexec.c: Likewise.
9982
9983 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9984
9985 [BZ #23308]
9986 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9987 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9988 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9989 * localedata/unicode-gen/PropList.txt: likewise.
9990 * localedata/unicode-gen/UnicodeData.txt: likewise.
9991 * localedata/charmaps/UTF-8: Regenerate.
9992 * localedata/locales/i18n_ctype: likewise.
9993 * localedata/locales/tr_TR: likewise.
9994 * localedata/locales/translit_circle: likewise.
9995 * localedata/locales/translit_cjk_compat: likewise.
9996 * localedata/locales/translit_combining: likewise.
9997 * localedata/locales/translit_compat: likewise.
9998 * localedata/locales/translit_font: likewise.
9999 * localedata/locales/translit_fraction: likewise.
10000
10001 2018-07-03 Florian Weimer <fweimer@redhat.com>
10002
10003 [BZ #23363]
10004 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10005 * stdio-common/tst-printf.sh: Adjust expected output.
10006 * LICENSES: Update.
10007
10008 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10009
10010 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10011 symbol.
10012
10013 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10014
10015 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10016 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10017 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10018 * stdio-common/tst-printfsz-islongdouble.c: New file.
10019 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10020 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10021 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10022 [subdir == stdio-common] (tests-internal): Add
10023 test-printf-size-ieee128, and test-printf-size-ibm128.
10024 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10025 (CFLAGS-test-printf-size-ibm128.c): New variables.
10026 [subdir == stdio-common] (tests-special): Add
10027 $(objpfx)test-printf-size-ieee128.out and
10028 $(objpfx)test-printf-size-ibm128.out.
10029 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10030 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10031 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10032 __printf_sizeieee128.
10033 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10034 New file.
10035 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10036 Likewise.
10037 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10038 Likewise.
10039
10040 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10041
10042 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10043 (exp2f_inline): Likewise.
10044 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10045 (__math_uflowf): Likewise.
10046 (__math_may_uflowf): Likewise.
10047 (__math_divzerof): Likewise.
10048 (__math_invalidf): Likewise.
10049 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10050 (__math_oflowf): Likewise.
10051 (__math_uflowf): Likewise.
10052 (__math_may_uflowf): Likewise.
10053 (__math_divzerof): Likewise.
10054 (__math_invalidf): Likewise.
10055
10056 2018-06-29 DJ Delorie <dj@redhat.com>
10057 Carlos O'Donell <carlos@redhat.com>
10058
10059 [BZ #23329]
10060 * include/libc-symbols.h: Comment the freeres framework.
10061 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10062 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10063 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10064 * dlfcn/dlerror.c: Include libc-symbols.h
10065 (__dlerror_main_freeres): New function.
10066 * dlfcn/dlfreeres.c: New file.
10067 * dlfcn/sdlfreeres.c: New file.
10068 * include/dlfcn.h: Declare __dlerror_main_freeres.
10069 * malloc/set-freeres.c: Declare __libdl_freeres, and
10070 __libpthread_freeres.
10071 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10072 the releavant libraries are loaded.
10073 * malloc/thread-freeres.c: Add comments.
10074 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10075 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10076 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10077 (__free_stacks): Rename to...
10078 (free_stacks): ...this. Mark static.
10079 (queue_stack): Call free_stacks.
10080 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10081 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10082 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10083 ptr_freeres element from struct.
10084 (pthread_functions): Remove .ptr_freeres from struct initializer.
10085 [SHARED] (nptl_freeres): Remove.
10086 * nptl/nptlfreeres.c: New file.
10087 * nptl/pthreadP.h
10088 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10089 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10090 attribute_hidden.
10091 (__free_stacks): Rename to...
10092 (__nptl_stacks_freeres): ...this.
10093 (__shm_directory_freeres): Declare.
10094 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10095 (__nptl_unwind_freeres): ...this.
10096 * resolv/res-close.c: Add comment.
10097 * resolv/resolv_conf.c: Include libc-symbols.h.
10098 * string/strerror_l.c: Include libc-symbols.h.
10099 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10100 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10101 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10102 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10103
10104 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10105
10106 * stdlib/tst-strfmon_l.c: Add tests for long double.
10107
10108 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10109
10110 [BZ #23208]
10111 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10112 * localedata/locales/dsb_DE: New file.
10113
10114 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10115
10116 [BZ #23140]
10117 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10118 genitive case).
10119 (alt_mon): New entry, import from CLDR (nominative case).
10120
10121 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10122
10123 [BZ #22996]
10124 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10125
10126 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10127
10128 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10129 Use vector registers.
10130
10131 * sysdeps/aarch64/multiarch/memmove_falkor.S
10132 (__memcpy_falkor): Use vector registers.
10133
10134 2018-06-29 Martin Sebor <msebor@redhat.com>
10135
10136 * manual/stdio.texi (Customizing Printf): Mention interaction
10137 with GCC built-ins.
10138
10139 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10140
10141 [BZ #23307]
10142 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10143 `st_value' is 0 if `st_shndx' is SHN_ABS.
10144 * elf/tst-absolute-zero.c: New file.
10145 * elf/tst-absolute-zero-lib.c: New file.
10146 * elf/tst-absolute-zero-lib.lds: New file.
10147 * elf/Makefile (tests): Add `tst-absolute-zero'.
10148 (modules-names): Add `tst-absolute-zero-lib'.
10149 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10150 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10151 ($(objpfx)tst-absolute-zero: New dependency.
10152
10153 2018-06-29 Zack Weinberg <zackw@panix.com>
10154
10155 * configure.ac: New command-line option --disable-crypt.
10156 Force --disable-nss-crypt when --disable-crypt is given, with a
10157 warning if it was explicitly enabled.
10158 * configure: Regenerate.
10159 * config.make.in: New boolean substitution variable $(build-crypt).
10160 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10161 when $(build-crypt).
10162 * manual/install.texi: Document --disable-crypt.
10163 * INSTALL: Regenerate.
10164
10165 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10166 which is never set.
10167 * conform/Makefile: Only include libcrypt.a in
10168 linknamespace-libs-xsi and linknamespace-libs-XPG4
10169 when $(build-crypt).
10170 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10171 USE_CRYPT to 1 when $(build-crypt).
10172 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10173 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10174 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10175
10176 2018-06-29 Zack Weinberg <zackw@panix.com>
10177
10178 * crypt/crypt.h, posix/unistd.h: Update comments and
10179 prototypes for crypt and crypt_r.
10180
10181 * manual/crypt.texi (Cryptographic Functions): New initial
10182 exposition.
10183 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10184 (Unpredictable Bytes): Improve initial exposition. Clarify error
10185 behavior of getentropy and getrandom.
10186 * manual/examples/genpass.c: Generate a salt using getentropy
10187 instead of the current time. Use hash $5$ (SHA-2-256).
10188 * manual/examples/testpass.c: Demonstrate validation against
10189 hashes generated with three different one-way functions.
10190
10191 * manual/intro.texi: crypt.texi does not need an overview
10192 anymore.
10193
10194 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10195 * manual/terminal.texi: Consistently refer to "passphrases"
10196 * instead of "passwords", and to the "user database" instead
10197 * of the "password database".
10198 * manual/users.texi: Similarly. Add notes about how actual
10199 passphrase hashes are now stored in the shadow database.
10200 Remove 20-year-old junk todo note.
10201
10202 2018-06-29 Zack Weinberg <zackw@panix.com>
10203
10204 * manual/crypt.texi: Use a normal top-level @node declaration.
10205 Move most of the introductory text to the 'crypt' section.
10206 Move the example programs below the @deftypefun for 'crypt_r'.
10207 Move the 'getpass' section...
10208 * manual/terminal.texi: ...here.
10209
10210 2018-06-29 Zack Weinberg <zackw@panix.com>
10211 Florian Weimer <fweimer@redhat.com>
10212
10213 * posix/unistd.h: Do not declare encrypt.
10214 (_XOPEN_CRYPT): Remove macro definition.
10215 (crypt): Declare only for _USE_MISC.
10216 * stdlib/stdlib.h: Do not declare setkey.
10217 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10218 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10219
10220 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10221 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10222 into compat symbols. Don't define initial_perm if it's not
10223 going to be used.
10224 * crypt/cert.c: Link explicitly with the expected versions for
10225 setkey and encrypt. If they are not available at all, mark
10226 the test as unsupported.
10227
10228 * sunrpc/des_crypt.c: Unconditionally block linkage with
10229 cbc_crypt and ecb_crypt for new binaries.
10230 * sunrpc/des_soft.c: Unconditionally block linkage with
10231 des_setparity for new binaries.
10232
10233 * manual/crypt.texi: Remove the entire "DES Encryption"
10234 section. Also remove the paragraph talking about FIPS 140-2
10235 from the introduction.
10236 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10237 of libgcrypt for "real" encryption, not DES.
10238 * manual/conf.texi (Constants for Sysconf): Mention that
10239 _XOPEN_CRYPT is no longer impelemented.
10240
10241 * conform/data/unistd.h-data: Remove crypt function declaration.
10242
10243 2018-06-29 Florian Weimer <fweimer@redhat.com>
10244
10245 [BZ #23351]
10246 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10247 (disallow_malloc_check): Remove variable.
10248 (__malloc_check_init): Adjust.
10249 (malloc_set_state): Update comment.
10250 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10251 declarations.
10252
10253 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10254
10255 [BZ #23140]
10256 * localedata/locales/ast_ES (mon): Rename to...
10257 (alt_mon): This.
10258 (mon): Import from CLDR (genitive case).
10259
10260 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10261 Jakub Sitnicki <jkbs@redhat.com>
10262
10263 [BZ #21812]
10264 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10265 on NLM_F_DUMP_INTR.
10266
10267 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10268
10269 * manual/llio.texi: Remove spurious space.
10270
10271 2018-06-28 Florian Weimer <fweimer@redhat.com>
10272
10273 [BZ #23349]
10274 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10275 _STRUCT_TIMESPEC.
10276
10277 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10278
10279 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10280 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10281 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10282 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10283 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10284 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10285 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10286
10287 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10288
10289 [BZ #23266]
10290 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10291 Copy and null-terminate entries that are not terminated, in
10292 addition to empty ones.
10293
10294 2018-06-27 Florian Weimer <fweimer@redhat.com>
10295
10296 [BZ #18023]
10297 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10298 (extend_alloca_account): Remove.
10299 * manual/stdio.texi (Variable Arguments Output): Update comment.
10300
10301 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10302
10303 * nptl/sockperf.c: Remove file.
10304
10305 2018-06-27 Florian Weimer <fweimer@redhat.com>
10306
10307 [BZ #18023]
10308 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10309 scratch_buffer instead of extend_alloca.
10310
10311 2018-06-27 Florian Weimer <fweimer@redhat.com>
10312
10313 [BZ #18023]
10314 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10315 scratch_buffer instead of extend_alloca. Update comments.
10316
10317 2018-06-27 Florian Weimer <fweimer@redhat.com>
10318
10319 [BZ #18023]
10320 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10321 instead of extend_alloca.
10322
10323 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10324
10325 [BZ #13888]
10326 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10327 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10328 /tmp.
10329 * scripts/test-installation.pl: Put temporary files in build
10330 directory, not /tmp.
10331 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10332 (CFLAGS-bug4.c): Likewise.
10333 (CFLAGS-bug5.c): Likewise.
10334 (CFLAGS-test-fseek.c): Likewise.
10335 (CFLAGS-test-popen.c): Likewise.
10336 (CFLAGS-test_rdwr.c): Likewise.
10337 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10338 /tmp.
10339 * stdio-common/bug4.c (main): Likewise.
10340 * stdio-common/bug5.c (main): Likewise.
10341 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10342 * stdio-common/test-popen.c (do_test): Likewise.
10343 * stdio-common/test_rdwr.c (main): Likewise.
10344
10345 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10346
10347 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10348 (sem_open): Set sem.newsem.pad to zero for valgrind.
10349
10350 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10351
10352 [BZ #20251]
10353 * NEWS: Mention fcntl64 addition.
10354 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10355 * login/utmp_file.c: Likewise.
10356 * sysdeps/posix/fdopendir.c: Likewise.
10357 * sysdeps/posix/opendir.c: Likewise.
10358 * sysdeps/unix/pt-fcntl.c: Likewise.
10359 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10360 __fcntl64_nocancel_adjusted): New prototype.
10361 (__fcntl_nocancel_adjusted): Remove prototype.
10362 * io/Makefile (routines): Add fcntl64.
10363 (CFLAGS-fcntl64.c): New rule.
10364 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10365 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10366 * io/fcntl.h (fcntl64): Add prototype and redirect if
10367 __USE_FILE_OFFSET64 is defined.
10368 * io/fcntl64.c: New file.
10369 * manual/llio.text: Add a note for which commands fcntl acts a
10370 cancellation point.
10371 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10372 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10373 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10374 New symbols.
10375 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10376 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10377 non-LFS case.
10378 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10379 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10380 to __fcntl64_nocancel.
10381 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10382 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10383 to __fcntl64_nocancel.
10384 * sysdeps/generic/not-cancel.h: Likewise.
10385 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10386 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10387 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10388 (fcntl64): New symbol.
10389 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10390 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10391 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10392 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10394 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10395 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10396 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10397 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10398 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10399 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10400 fcntl64): Likewise.
10401 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10402 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10403 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10404 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10405 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10406 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10407 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10408 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10409 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10410 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10411 Likewise.
10412 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10413 Likewise.
10414 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10415 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10416 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10417
10418 2018-06-26 Florian Weimer <fweimer@redhat.com>
10419
10420 Run thread shutdown functions in an explicit order.
10421 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10422 definition.
10423 (__libc_thread_freeres): Call thread shutdown functions
10424 explicitly.
10425 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10426 * include/string.h (__strerror_thread_freeres): Declare.
10427 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10428 arena_thread_freeres. No longer static. Remove thread shutdown
10429 hook registration.
10430 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10431 Declare.
10432 * resolv/res-close.c (__res_thread_freeres): Renamed from
10433 res_thread_freeres. No longer static. Remove thread shutdown
10434 hook registration.
10435 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10436 * resolv/resolv_conf.c (freeres): Remove incorrect section
10437 attribute and use libc_freeres_fn.
10438 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10439 strerror_thread_freeres. No longer static. Remove thread
10440 shutdown hook registration.
10441 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10442 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10443 shutdown hook registration.
10444 * Makerules (shlib.lds): Do not provide section boundary symbols
10445 for __libc_thread_subfreeres.
10446 * manual/memory.texi (Basic Allocation): Update comment.
10447
10448 2018-06-26 Florian Weimer <fweimer@redhat.com>
10449
10450 Remove always-defined _RPC_THREAD_SAFE_ macro.
10451 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10452 Do not define _RPC_THREAD_SAFE_.
10453 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10454 conditional.
10455 * sunrpc/clnt_perr.c: Likewise.
10456 * sunrpc/clnt_raw.c: Likewise.
10457 * sunrpc/clnt_simp.c: Likewise.
10458 * sunrpc/key_call.c: Likewise.
10459 * sunrpc/rpc_common.c: Likewise.
10460 * sunrpc/rpc_main.c: Likewise.
10461 * sunrpc/rpc_thread.c: Likewise.
10462 * sunrpc/svc.c: Likewise.
10463 * sunrpc/svc_raw.c: Likewise.
10464 * sunrpc/svc_simple.c: Likewise.
10465 * sumrpc/svcauth_des.c: Likewise.
10466
10467 2018-06-26 Florian Weimer <fweimer@redhat.com>
10468
10469 * libio/Makefile (tests-internal): Add tst-vtables,
10470 tst-vtables-interposed.
10471 * libio/tst-vtables.c: New file.
10472 * libio/tst-vtables-common.c: Likewise.
10473 * libio/tst-vtables-interposed.c: Likewise.
10474
10475 2018-06-26 Florian Weimer <fweimer@redhat.com>
10476
10477 * support/support_test_main.c (support_test_main): Only call
10478 setvbuf if not disables.
10479 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10480 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10481
10482 2018-06-26 Florian Weimer <fweimer@redhat.com>
10483
10484 [BZ #23313]
10485 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10486
10487 2018-06-25 Florian Weimer <fweimer@redhat.com>
10488
10489 [BZ #18023]
10490 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10491 Use struct scratch_buffer instead of extend_alloca.
10492
10493 2018-06-25 Florian Weimer <fweimer@redhat.com>
10494
10495 [BZ #18023]
10496 * nss/getent.c (initgroups_keys): Use dynarray instead of
10497 extend_alloca.
10498
10499 2018-06-25 Florian Weimer <fweimer@redhat.com>
10500
10501 [BZ #18023]
10502 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10503 Use struct scratch_buffer instead of extend_alloca.
10504
10505 2018-06-25 Florian Weimer <fweimer@redhat.com>
10506
10507 [BZ #18023]
10508 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10509 back to malloc directly, without stack allocations.
10510
10511 2018-06-25 Florian Weimer <fweimer@redhat.com>
10512
10513 [BZ #18023]
10514 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10515 of extend_alloca.
10516
10517 2018-06-25 Florian Weimer <fweimer@redhat.com>
10518
10519 [BZ #18023]
10520 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10521 of extend_alloca.
10522 * nscd/hstcache.c (addhstbyX): Likewise.
10523 * nscd/pwdcache.c (addpwbyX): Likewise.
10524 * nscd/servicescache.c (addservbyX): Likewise.
10525
10526 2018-06-25 Florian Weimer <fweimer@redhat.com>
10527
10528 [BZ #18023]
10529 * nscd/connections.c (read_cmdline): New function.
10530 (restart): Use it. Update comment.
10531
10532 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10533
10534 [BZ #23140]
10535 * localedata/locales/csb_PL (mon): Rename to...
10536 (alt_mon): This.
10537 (abmon): Rename to...
10538 (ab_alt_mon): This.
10539 (mon): Add with proper genitive forms, copy from Wikipedia.
10540 (abmon): Likewise.
10541
10542 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10543
10544 [BZ #19485]
10545 * localedata/locales/csb_PL (mon): Fix typos:
10546 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10547 (yesstr): Add, value is "jo".
10548 (nostr): Add, value is "nié".
10549
10550 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10551
10552 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10553 all log1p and significand functions on m680x0.
10554 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10555 of s_significand.c..
10556 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10557 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10558 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10559 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10560 s_log1p.c and include it..
10561
10562 2018-06-21 Vincent Chen <vincentc@andestech.com>
10563
10564 * elf/elf.h (R_NDS32_NONE): New define.
10565 (R_NDS32_32_RELA): Likewise.
10566 (R_NDS32_COPY): Likewise.
10567 (R_NDS32_GLOB_DAT): Likewise.
10568 (R_NDS32_JUMP_SLOT): Likewise.
10569 (R_NDS32_RELATIVE): Likewise.
10570 (R_NDS32_TLS_TPOFF): Likewise.
10571 (R_NDS32_TLS_DESC): Likewise.
10572
10573 2018-06-21 Mark Wielaard <mark@klomp.org>
10574
10575 * elf/elf.h (R_BPF_MAP_FD): Removed.
10576 (R_BPF_64_64, R_BPF_64_32): New.
10577
10578 2018-06-21 Florian Weimer <fweimer@redhat.com>
10579
10580 [BZ #23253]
10581 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10582 Renamed from libc_feholdsetround_ctx.
10583 (default_libc_feresetround_ctx): Renamed from
10584 libc_feresetround_ctx.
10585 (default_libc_feholdsetround_noex_ctx): Renamed from
10586 libc_feholdsetround_noex_ctx.
10587 (default_libc_feresetround_noex_ctx): Renamed from
10588 libc_feresetround_noex_ctx.
10589 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10590 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10591 forwardning to the old implementations under the new names.
10592 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10593 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10594 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10595 (libc_feresetround_ctx): Forward to default implements for i386
10596 and MATH_SET_BOTH_ROUNDING_MODES.
10597 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10598 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10599
10600 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10601
10602 * string/tst-cmp.c: Include <libc-diag.h>.
10603 (strncmp_max): Disable -Wstringop-overflow= around call to
10604 strncmp.
10605 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10606 strncasecmp.
10607
10608 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10609 (main): Disable -Wunused-value around call to strpbrk.
10610 * string/bug-strspn1.c: Include <libc-diag.h>.
10611 (main): Disable -Wunused-value around call to strspn.
10612
10613 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10614 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10615
10616 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10617 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10618
10619 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10620
10621 * math/Makefile (libm-calls): Move s_significandF to...
10622 (gen-libm-calls): ... here.
10623 * math/s_significand_template.c: New file.
10624 * math/s_significand.c: Removed.
10625 * math/s_significandf.c: Removed.
10626 * math/s_significandl.c: Removed.
10627 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10628 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10629
10630 * math/e_exp2_template.c (declare_mgen_finite_alias,
10631 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10632 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10633 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10634
10635 2018-06-20 Florian Weimer <fweimer@redhat.com>
10636
10637 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10638
10639 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10640
10641 [BZ #23280]
10642 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10643 floating-point number to strtod functions rather than possibly
10644 negating result of those functions.
10645 * stdio-common/tst-scanf-round.c: New file.
10646 * stdio-common/Makefile (tests): Add tst-scanf-round.
10647 ($(objpfx)tst-scanf-round): Depend on $(libm).
10648
10649 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10650
10651 * sysdeps/mach/hurd/localplt.data: Move to...
10652 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10653 R_386_GLOB_DAT like on Linux i386.
10654
10655 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10656
10657 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10658 (SHM_STAT_ANY): New macro.
10659 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10660 (SHM_STAT_ANY): Likewise.
10661 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10662 (SHM_STAT_ANY): Likewise.
10663 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10664 (SHM_STAT_ANY): Likewise.
10665 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10666 (SHM_STAT_ANY): Likewise.
10667 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10668 (SHM_STAT_ANY): Likewise.
10669 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10670 (SHM_STAT_ANY): Likewise.
10671 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10672 (SHM_STAT_ANY): Likewise.
10673 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10674 (SHM_STAT_ANY): Likewise.
10675 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10676 (SHM_STAT_ANY): Likewise.
10677 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10678 (SHM_STAT_ANY): Likewise.
10679 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10680 (SHM_STAT_ANY): Likewise.
10681
10682 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10683 (SEM_STAT_ANY): New macro.
10684 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10685 (SEM_STAT_ANY): Likewise.
10686 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10687 (SEM_STAT_ANY): Likewise.
10688 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10689 (SEM_STAT_ANY): Likewise.
10690 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10691 (SEM_STAT_ANY): Likewise.
10692 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10693 (SEM_STAT_ANY): Likewise.
10694 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10695 (SEM_STAT_ANY): Likewise.
10696 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10697 (SEM_STAT_ANY): Likewise.
10698 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10699 (SEM_STAT_ANY): Likewise.
10700 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10701 (SEM_STAT_ANY): Likewise.
10702
10703 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10704 (MSG_STAT_ANY): New macro.
10705 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10706 (MSG_STAT_ANY): Likewise.
10707 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10708 (MSG_STAT_ANY): Likewise.
10709 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10710 (MSG_STAT_ANY): Likewise.
10711 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10712 (MSG_STAT_ANY): Likewise.
10713 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10714 (MSG_STAT_ANY): Likewise.
10715 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10716 (MSG_STAT_ANY): Likewise.
10717 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10718 (MSG_STAT_ANY): Likewise.
10719 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10720 (MSG_STAT_ANY): Likewise.
10721 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10722 (MSG_STAT_ANY): Likewise.
10723
10724 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10725 (MAP_TYPE): Change value to 0x2b.
10726
10727 2018-06-18 Florian Weimer <fweimer@redhat.com>
10728
10729 [BZ #15722]
10730 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10731 socket with SOCK_CLOEXEC.
10732
10733 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10734
10735 [BZ #23303]
10736 * sysdeps/powerpc/powerpc64/le/Makefile
10737 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10738 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10739 (gnulib-tests): Also add $(f128-loader-link) for
10740 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10741
10742 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10743
10744 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10745 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10746 of sendfile.
10747 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10748 (sendfile64): New strong alias.
10749 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10750 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10751 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10752 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10753 attribute.
10754 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10755 ___pthread_get_cleanup_stack.
10756 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10757 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10758 * mach/shortcut.awk: Make syscall stubs include
10759 <mach-shortcuts-hidden.h> and add hidden definition.
10760 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10761 (__mach_msg): Add hidden prototype.
10762 * mach/msg.c: Include <mach.h>.
10763 (__mach_msg): Add hidden definition.
10764 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10765 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10766 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10767 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10768 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10769 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10770 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10771 prototype and definition.
10772 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10773 hidden target for _hurd_self_sigstate.
10774
10775 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10776
10777 [BZ #23007]
10778 * stdlib/tst-strtod-nan-sign-main.c: New file.
10779 * stdlib/tst-strtod-nan-sign.c: Likewise.
10780 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10781 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10782 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10783 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10784 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10785
10786 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10787
10788 [BZ #23007]
10789 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10790 appropriate sign.
10791
10792 2018-06-14 Florian Weimer <fweimer@redhat.com>
10793
10794 [BZ #23290]
10795 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10796 that the result stays within the ISO-8859-1 range.
10797 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10798 characters are defined in IBM273.
10799
10800 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10801
10802 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10803 __mach_task_self): Remove attribute_hidden.
10804
10805 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10806
10807 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10808 ignore -Wrestrict for one test.
10809
10810 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10811 Szabolcs Nagy <szabolcs.nagy@arm.com>
10812
10813 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10814
10815 2018-06-14 Florian Weimer <fweimer@redhat.com>
10816
10817 * scripts/update-abilist.sh: Accept empty list of files to patch.
10818
10819 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10820
10821 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10822 test-xfail-check-abi-libmachuser): Add.
10823 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10824 __libc_read and __libc_write to __read and __write.
10825 * sysdeps/hurd/include/hurd/port.h: New file.
10826 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10827 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10828 __thread_switch, __evc_wait): Move declarations to...
10829 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10830 attribute_hidden.
10831 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10832 use PLT to call _hurd_self_sigstate.
10833
10834 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10835
10836 [BZ #23279]
10837 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10838 MAX_EXP as overflowing.
10839 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10840 overflow flag.
10841 (round_str): Output also whether result overflows in each rounding
10842 mode.
10843 * stdlib/tst-strtod-round-data: Add more tests.
10844 * stdlib/tst-strtod-round-data.h: Regenerated.
10845 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10846 (TEST): Handle extra arguments for overflow flags.
10847 (struct test_overflow): New type.
10848 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10849 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10850 (test_in_one_mode): Take argument with overflow information.
10851 (do_test): Update calls to test_in_one_mode.
10852
10853 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10854
10855 * elf/dl-load (_dl_dst_substitute): Correct comment.
10856 (_dl_dst_count): Likewise.
10857
10858 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10859 lll_futex_timed_wait.
10860
10861 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10862
10863 [BZ #23277]
10864 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10865 attribute.
10866 * math/test-nan-const.c: New file.
10867 * math/Makefile (tests): Add test-nan-const.
10868 (CFLAGS-test-nan-const.c): New variable.
10869
10870 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10871
10872 * benchtests/scripts/compare_strings.py (process_results): Add
10873 funcs argument. Compare only functions which are selected.
10874 (main): Check if base function is among selected functions.
10875 Pass selected functions to process_results.
10876 (__main__): Add -f/--functions argument.
10877
10878 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10879 Hongbo Zhang <hongbo.zhang@linaro.org>
10880
10881 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10882 __memcpy_falkor for phecda core.
10883 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10884 __memmove_falkor for phecda core.
10885 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10886 __memset_falkor for phecda core.
10887 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10888 for phecda core.
10889 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10890 macro to identify phecda core.
10891
10892 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10893 Andreas Schwab <schwab@suse.de>
10894 Dmitry V. Levin <ldv@altlinux.org>
10895 Florian Weimer <fweimer@redhat.com>
10896
10897 [BZ #23102]
10898 [BZ #21942]
10899 [BZ #18018]
10900 [BZ #23259]
10901 CVE-2011-0536
10902 * elf/dl-dst.h: Remove DL_DST_COUNT.
10903 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10904 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10905 (is_dst): Comment. Support ELF gABI.
10906 (_dl_dst_count): Comment. Simplify and count DSTs.
10907 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10908 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10909 locals.
10910
10911 2018-06-12 Zack Weinberg <zackw@panix.com>
10912
10913 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10914 * sysdeps/unix/sysv/linux/dl-sysdep.c
10915 Include not-cancel.h. Use __close_nocancel instead of __close,
10916 __open64_nocancel instead of __open, __read_nocancel instead of
10917 __libc_read, and __write_nocancel instead of __libc_write.
10918
10919 * csu/check_fds.c (check_one_fd)
10920 * sysdeps/posix/fdopendir.c (__fdopendir)
10921 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10922 instead of __fcntl and/or __libc_fcntl.
10923
10924 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10925 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10926 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10927 Use __open64_nocancel instead of __open_nocancel.
10928
10929 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10930 hidden_proto declarations to the end and issue them if either
10931 IS_IN(libc) or IS_IN(rtld).
10932 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10933 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10934 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10935 read_nocancel, waitpid_nocancel, write_nocancel.
10936
10937 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10938 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10939 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10940
10941 * nptl/pt-fcntl.c: New file.
10942 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10943 (libpthread-routines): Add pt-fcntl.
10944 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10945 (__libc_fcntl): Remove attribute_hidden.
10946 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10947 __fcntl_nocancel_adjusted, not fcntl_common.
10948 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10949 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10950 to fcntl_nocancel.c.
10951 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10952 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10953 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10954 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10955
10956 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10957 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10958 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10959 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10960 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10961 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10962 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10963 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10964 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10965 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10966 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10967 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10968 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10969 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10970 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10971 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10972 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10973 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10974 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10975 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10976
10977 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10978 libpthread-routines.
10979 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10980 defines nothing.
10981
10982 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10983 __libc_read, and __write instead of __libc_write. Define
10984 __open64 in addition to __open.
10985
10986 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10987
10988 [BZ #23250]
10989 [BZ #10686]
10990 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10991 to _private_tm[3] and add __glibc_reserved2.
10992 Add _Static_assert of offset of __private_ss == 0x30.
10993 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10994 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10995
10996 2018-06-12 Florian Weimer <fweimer@redhat.com>
10997
10998 x86: Make strncmp usable from rtld.
10999 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11000 __strncmp_ia32 if in libc (and not in rtld).
11001 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11002 strncmp if not in libc (and not to __strncmp_sse2).
11003
11004 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11005
11006 [BZ #23140]
11007 * localedata/locales/gd_GB (mon): Rename to...
11008 (alt_mon): This.
11009 (mon): Import from CLDR (genitive case).
11010 * localedata/locales/hsb_DE (mon): Rename to...
11011 (alt_mon): This.
11012 (mon): Import from CLDR (genitive case).
11013 * localedata/locales/wa_BE (mon): Rename to...
11014 (alt_mon): This.
11015 (mon): Add, fill with the proper genitive forms, but CLDR data
11016 is incomplete; completed according to the comments in this file.
11017 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11018
11019 * localedata/locales/wa_BE (country_name): Reword
11020 "Beljike" -> "Beldjike".
11021
11022 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11023
11024 [BZ #23272]
11025 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11026 cases of non-finite arguments.
11027 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11028
11029 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11030
11031 [BZ #23174]
11032 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11033
11034 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11035
11036 [BZ #23264]
11037 * include/unistd.h (__execvpex): New prototype.
11038 * posix/Makefile (tests): Add tst-spawn4.
11039 (tests-internal): Add tst-spawn4-compat.
11040 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11041 * posix/tst-spawn4-compat.c: New file.
11042 * posix/tst-spawn4.c: Likewise.
11043 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11044 binaries as shell scripts.
11045 * sysdeps/posix/spawni.c (__spawni): Likewise.
11046
11047 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11048
11049 [BZ #23145]
11050 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11051 ($(all-built-dso:=.dynsym): New target.
11052 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11053 ($(objpfx)check-initfini.out): New target.
11054 (generated): Add check-initfini.out.
11055 * scripts/check-initfini.awk: New file.
11056 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11057 (_fini): Likewise.
11058 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11059 (_fini): Likewise.
11060 * sysdeps/arm/crti.S (_init): Mark as hidden.
11061 (_fini): Likewise.
11062 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11063 (_fini): Likewise.
11064 * sysdeps/i386/crti.S (_init): Mark as hidden.
11065 (_fini): Likewise.
11066 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11067 (_fini): Likewise.
11068 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11069 (_fini): Likewise.
11070 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11071 (_fini): Likewise.
11072 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11073 (_fini): Likewise.
11074 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11075 (_fini): Likewise.
11076 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11077 (_fini): Likewise.
11078 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11079 (_fini): Likewise.
11080 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11081 (_fini): Likewise.
11082 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11083 (_fini): Likewise.
11084 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11085 (_fini): Likewise.
11086 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11087 (_fini): Likewise.
11088 * sysdeps/sh/crti.S (_init): Mark as hidden.
11089 (_fini): Likewise.
11090 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11091 (_fini): Likewise.
11092 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11093 (_fini): Likewise.
11094
11095 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11096
11097 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11098 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11099 and TF redirection to KFtype and KF only when the default
11100 long double type is not the IEEE 128-bit floating point type.
11101
11102 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11103
11104 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11105 macro.
11106 (HWCAP_USCAT): Likewise.
11107 (HWCAP_ILRCPC): Likewise.
11108 (HWCAP_FLAGM): Likewise.
11109 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11110 Increase to 28.
11111 (_dl_aarch64_cap_flags): Add new flag names.
11112
11113 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11114 (MAP_FIXED_NOREPLACE): New macro.
11115 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11116 (MAP_FIXED_NOREPLACE): Likewise.
11117 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11118 (MAP_FIXED_NOREPLACE): Likewise.
11119 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11120 (MAP_FIXED_NOREPLACE): Likewise.
11121 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11122 (MAP_FIXED_NOREPLACE): Likewise.
11123 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11124 (MAP_FIXED_NOREPLACE): Likewise.
11125 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11126 (MAP_FIXED_NOREPLACE): Likewise.
11127 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11128 (MAP_FIXED_NOREPLACE): Likewise.
11129 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11130 (MAP_FIXED_NOREPLACE): Likewise.
11131 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11132 (MAP_FIXED_NOREPLACE): Likewise.
11133 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11134 (MAP_FIXED_NOREPLACE): Likewise.
11135 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11136 (MAP_FIXED_NOREPLACE): Likewise.
11137 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11138 (MAP_FIXED_NOREPLACE): Likewise.
11139 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11140 (MAP_FIXED_NOREPLACE): Likewise.
11141 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11142 (MAP_FIXED_NOREPLACE): Likewise.
11143
11144 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11145 version to 4.17.
11146
11147 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11148
11149 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11150 version to 4.17
11151
11152 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11153
11154 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11155 int.
11156 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11157
11158 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11159
11160 * benchtests/scripts/compare_string.py: (process_results) Catch
11161 exception in non-existent base_func and catch exception in
11162 non-existent attribute.
11163 (parse_file) Catch exception if input file does not exist.
11164
11165 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11166
11167 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11168 options to avoid diff calculation and omit header, respectively.
11169 (main): process --no-diff and --no-header
11170
11171 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11172 H.J. Lu <hongjiu.lu@intel.com>
11173
11174 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11175 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11176 wcsncmp-sse2.
11177 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11178 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11179 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11180 and __wcsncmp_sse2.
11181 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11182 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11183 AVX unaligned load is fast and vzeroupper is preferred.
11184 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11185 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11186 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11187 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11188 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11189 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11190 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11191 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11192 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11193 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11194 is undefined.
11195
11196 2018-06-01 Florian Weimer <fweimer@redhat.com>
11197
11198 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11199 configuring with --disable-multi-arch, building with
11200 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11201 Haswell-era CPU.
11202
11203 2018-06-01 Florian Weimer <fweimer@redhat.com>
11204
11205 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11206 results from building with “-march=x86-64 -mtune=generic
11207 -mfpmath=sse” and running on a Haswell-era CPU.
11208
11209 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11210
11211 [BZ #18473]
11212 * soft-fp/sqrttf2.c: Remove file.
11213 * soft-fp/sqrtdf2.c: Move to ....
11214 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11215 <shlib-compat.h>.
11216 (__sqrtdf2): Make conditional on
11217 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11218 symbol.
11219 * soft-fp/sqrtsf2.c: Move to ....
11220 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11221 <shlib-compat.h>.
11222 (__sqrtsf2): Make conditional on
11223 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11224 symbol.
11225 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11226 (gcc-double-routines): Remove sqrtdf2.
11227 (gcc-quad-routines): Remove sqrttf2.
11228 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11229 Do not filter out sqrtsf2 and sqrtdf2.
11230 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11231 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11232
11233 2018-06-01 Florian Weimer <fweimer@redhat.com>
11234
11235 * sysdeps/generic/libcidn.abilist: Remove file.
11236
11237 2018-06-01 Florian Weimer <fweimer@redhat.com>
11238
11239 [BZ #23236]
11240 * libio/strfile.h (struct _IO_str_fields): Rename members to
11241 discourage their use and add comment.
11242 (_IO_STR_DYNAMIC): Remove unused macro.
11243 * libio/strops.c (_IO_str_init_static_internal): Do not use
11244 callback pointers. Call malloc and free.
11245 (_IO_str_overflow): Do not use callback pointers. Call malloc
11246 and free.
11247 (enlarge_userbuf): Likewise.
11248 (_IO_str_finish): Call free.
11249 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11250 _allocate_buffer_unused.
11251 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11252 and free.
11253 (enlarge_userbuf): Likewise.
11254 (_IO_wstr_finish): Call free.
11255 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11256 _allocate_buffer_unused, _free_buffer_unused.
11257 * libio/memstream.c (__open_memstream): Likewise.
11258 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11259 * libio/wmemstream.c (open_wmemstream): Likewise.
11260
11261 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11262
11263 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11264 AMD Ryzen 7 1800X.
11265
11266 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11267
11268 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11269 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11270 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11271 New file.
11272 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11273 Likewise.
11274 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11275
11276 2018-05-29 Florian Weimer <fweimer@redhat.com>
11277
11278 * support/Makefile (libsupport-routines): Add
11279 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11280 xpthread_barrierattr_setpshared.
11281 * support/xpthread_barrierattr_destroy.c: New file.
11282 * support/xpthread_barrierattr_init.c: Likewise.
11283 * support/xpthread_barrierattr_setpshared.c: Likewise.
11284
11285 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11286
11287 [BZ #23206]
11288 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11289 _r_debug and update DT_DEBUG for debugger.
11290
11291 2018-05-29 Florian Weimer <fweimer@redhat.com>
11292
11293 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11294 (tst-strtod5i.out): Likewise.
11295
11296 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11297
11298 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11299 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11300 (sparc64-quad-routines): New variable. Moved from ....
11301 [$(subdir) = soft-fp] (sysdep_routines): Add
11302 $(sparc64-quad-routines). Moved from ....
11303 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11304 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11305 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11306 moved from ....
11307 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11308 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11309 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11310 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11311 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11312 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11313 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11314 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11315 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11316 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11317 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11318 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11319 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11320 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11321 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11322 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11323 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11324 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11325 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11326 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11327 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11328 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11329 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11330 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11331 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11332 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11333 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11334 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11335 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11336 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11337 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11338 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11339 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11340 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11341 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11342 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11343 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11344 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11345 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11346 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11347 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11348 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11349 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11350 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11351 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11352 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11353 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11354 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11355 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11356 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11357 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11358 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11359 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11360 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11361 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11362 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11363 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11364 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11365
11366 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11367 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11368 (sparc32-quad-routines): New variable. Moved from ....
11369 [$(subdir) = soft-fp] (sysdep_routines): Add
11370 $(sparc32-quad-routines). Moved from ....
11371 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11372 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11373 moved from ....
11374 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11375 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11376 * sysdeps/sparc/sparc32/q_add.c: ... here.
11377 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11378 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11379 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11380 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11381 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11382 * sysdeps/sparc/sparc32/q_div.c: ... here.
11383 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11384 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11385 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11386 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11387 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11388 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11389 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11390 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11391 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11392 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11393 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11394 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11395 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11396 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11397 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11398 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11399 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11400 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11401 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11402 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11403 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11404 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11405 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11406 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11407 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11408 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11409 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11410 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11411 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11412 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11413 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11414 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11415 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11416 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11417 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11418 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11419 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11420 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11421 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11422 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11423 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11424 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11425 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11426 * sysdeps/sparc/sparc32/q_util.c: ... here.
11427 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11428 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11429 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11430 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11431
11432 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11433 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11434
11435 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11436 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11437 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11438 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11439
11440 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11441
11442 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11443 powerpc/soft-fp.
11444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11445 Likewise.
11446 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11447 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11448
11449 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11450
11451 [BZ #23171]
11452 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11453 double version.
11454
11455 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11456
11457 * sysdeps/sh/Implies: Remove sh/soft-fp.
11458 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11459 * sysdeps/sh/sfp-machine.h: ... here.
11460
11461 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11462
11463 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11464 (__mempcpy_erms): Skip zero length.
11465 (__memmove_erms): Likewise.
11466 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11467 (__memset_erms): Likewise.
11468
11469 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11470
11471 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11472 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11473 Add functions moved from ....
11474 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11475 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11476 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11477 from ....
11478 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11479 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11480 * sysdeps/alpha/e_sqrtl.c: ... here.
11481 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11482 * sysdeps/alpha/local-soft-fp.h: ... here.
11483 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11484 * sysdeps/alpha/ots_add.c: ... here.
11485 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11486 * sysdeps/alpha/ots_cmp.c: ... here.
11487 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11488 * sysdeps/alpha/ots_cmpe.c: ... here.
11489 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11490 * sysdeps/alpha/ots_cvtqux.c: ... here.
11491 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11492 * sysdeps/alpha/ots_cvtqx.c: ... here.
11493 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11494 * sysdeps/alpha/ots_cvttx.c: ... here.
11495 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11496 * sysdeps/alpha/ots_cvtxq.c: ... here.
11497 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11498 * sysdeps/alpha/ots_cvtxt.c: ... here.
11499 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11500 * sysdeps/alpha/ots_div.c: ... here.
11501 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11502 * sysdeps/alpha/ots_mul.c: ... here.
11503 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11504 * sysdeps/alpha/ots_nintxq.c: ... here.
11505 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11506 * sysdeps/alpha/ots_sub.c: ... here.
11507 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11508 * sysdeps/alpha/sfp-machine.h: ... here.
11509
11510 2018-05-23 Florian Weimer <fweimer@redhat.com>
11511
11512 [BZ #19728]
11513 [BZ #19729]
11514 [BZ #22247]
11515 CVE-2016-6261
11516 CVE-2016-6263
11517 CVE-2017-14062
11518 Switch to extern IDNA implementation (libidn2).
11519 * libidn: Remove subdirectory.
11520 * LICENSES: Do not mention licensing conditions for the removed
11521 libidn code.
11522 * config.h.in (HAVE_LIBIDN): Remove.
11523 * include/dlfcn.h (__libc_dlopen): Update comment.
11524 * include/idna.h: Remove file.
11525 * inet/Makefile (routines): Add idna.
11526 (tests-static, tests-internal): Add tst-idna_name_classify.
11527 (LOCALES): Generate locales for tests.
11528 (tst-idna_name_classify.out): Depend on generated locales.
11529 * inet/idna_name_classify.c: New file.
11530 * inet/tst-idna_name_classify.c: Likewise.
11531 * inet/net-internal.h (__idna_to_dns_encoding)
11532 (__idna_from_dns_encoding): Declare.
11533 * inet/net-internal.h (enum idna_name_classification): Define.
11534 (__idna_name_classify): Declare.
11535 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11536 __idna_from_dns_encoding.
11537 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11538 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11539 name as a fallback in case of encoding errors.
11540 (getnameinfo): Use DEPRECATED_NI_IDN.
11541 * inet/idna.c: New file.
11542 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11543 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11544 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11545 (modules-names): Add tst-no-libidn2.
11546 (extra-test-objs): Add tst-no-libidn2.os.
11547 (LDFLAGS-tst-no-libidn2.so): Set soname.
11548 (LOCALES): Set, and generate locales.
11549 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11550 (tst-resolv-ai_idn-latin1): Likewise.
11551 (tst-resolv-ai_idn-nolibidn2): Likewise.
11552 (tst-resolv-ai_idn.out): Depend on locales.
11553 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11554 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11555 tst-no-libidn2.so.
11556 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11557 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11558 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11559 * resolv/tst-resolv-ai_idn.c: New file.
11560 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11561 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11562 * resolv/tst-no-libidn2.c: Likewise.
11563 * support/support_format_addrinfo.c (format_ai_flags): Do not
11564 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11565 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11566 (gaih_inet): Call __idna_to_dns_encoding and
11567 __idna_from_dns_encoding, and use the original (punycode) name if
11568 __idna_from_dns_encoding fails due to an encoding error.
11569 (getaddrinfo): Use DEPRECATED_AI_IDN.
11570 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11571 * sysdeps/unix/inet/configure: Remove file.
11572 * sysdeps/unix/inet/configure.ac: Likewise.
11573
11574 2018-05-23 Florian Weimer <fweimer@redhat.com>
11575
11576 Implement allocate_once.
11577 * include/allocate_once.h: New file.
11578 * misc/allocate_once.c: Likewise.
11579 * misc/tst-allocate_once.c: Likewise.
11580 * misc/Makefile (routines): Add allocate_once.
11581 (tests-internal): Add tst-allocate_once.
11582 (generated): Add tst-allocate_once.mtrace,
11583 tst-allocate_once-mem.out.
11584 (tests-special): Add tst-allocate_once-mem.out.
11585 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11586 (tst-allocate_once-mem.out): Call mtrace.
11587 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11588
11589 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11590
11591 [BZ #23196]
11592 * string/test-memcpy.c (do_test1): New function.
11593 (test_main): Call it.
11594
11595 2018-05-23 Andreas Schwab <schwab@suse.de>
11596
11597 [BZ #23196]
11598 CVE-2018-11237
11599 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11600 (L(preloop_large)): Save initial destination pointer in %r11 and
11601 use it instead of %rax after the loop.
11602 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11603
11604 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11605
11606 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11607 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11608 -I../soft-fp. Moved from ....
11609 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11610 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11611 * sysdeps/aarch64/e_sqrtl.c: ... here.
11612 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11613 * sysdeps/aarch64/sfp-machine.h: ... here.
11614
11615 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11616 -Wmaybe-uninitialized around access to fq[0].
11617 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11618 Likewise.
11619
11620 [BZ #18471]
11621 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11622 aliases for non-libc case of versioned symbols.
11623 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11624 (llseek): Define as compat symbol if
11625 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11626 with link warning.
11627 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11628 Make into a compat symbol, disabled for minimum symbol version
11629 GLIBC_2.28 and later.
11630 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11631
11632 2018-05-22 Florian Weimer <fweimer@redhat.com>
11633
11634 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11635 not add -mpreferred-stack-boundary=4.
11636 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11637 (stack-align-test-flags): Likewise.
11638 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11639 Likewise.
11640 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11641 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11642 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11643 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11644 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11645 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11646 (CFLAGS-tst-align2.c): Likewise.
11647
11648 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11649
11650 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11651 (index_arch_Prefer_FSRM): Likewise.
11652 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11653 Also check Prefer_FSRM.
11654 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11655 Also return OPTIMIZE (erms) for Prefer_FSRM.
11656
11657 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11658
11659 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11660 (index_cpu_FSRM): Likewise.
11661 (reg_FSRM): Likewise.
11662
11663 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11664
11665 * math/gen-tgmath-tests.py: Import sys.
11666 (Tests.__init__): Initialize macros_seen.
11667 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11668 if requested to do so for this macro.
11669 (Tests.add_all_tests): Take argument for macro for which to
11670 generate tests.
11671 (Tests.check_macro_list): New function.
11672 (main): Handle check-list argument and argument specifying macro
11673 for which to generate tests.
11674 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11675 [PYTHON] (tgmath3-macro-tests): Likewise.
11676 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11677 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11678 not test-tgmath3.c.
11679 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11680 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11681 to CFLAGS.
11682 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11683 [PYTHON] ($(foreach
11684 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11685 rule.
11686 [PYTHON] (tests-special): Add
11687 $(objpfx)test-tgmath3-macro-list.out.
11688 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11689
11690 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11691 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11692 later.
11693
11694 [BZ #22639]
11695 * time/tzset.c (SECSPERDAY): Cast to time_t.
11696 * time/tst-y2039.c: New file.
11697 * time/Makefile (tests): Add tst-y2039.
11698
11699 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11700
11701 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11702 (PREFETCH_ONE_SET): Remove duplicate line.
11703
11704 2018-05-17 Florian Weimer <fweimer@redhat.com>
11705
11706 * sysdeps/generic/math-type-macros-double.h: Include
11707 <math-nan-payload-double.h> after <libm-alias-double.h>.
11708 * sysdeps/generic/math-type-macros-float.h: Include
11709 <math-nan-payload-float.h> after <libm-alias-float.h>.
11710 * sysdeps/generic/math-type-macros-float128.h: Include
11711 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11712 * sysdeps/generic/math-type-macros-ldouble.h: Include
11713 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11714
11715 2018-05-17 Andreas Schwab <schwab@suse.de>
11716
11717 * resolv/res_send.c (__res_context_send): Don't set errno when
11718 returing error after malloc failure.
11719
11720 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11721
11722 * nptl/allocatestack.c (allocate_stack): Remove the
11723 !__ASSUME_PRIVATE_FUTEX paths.
11724 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11725 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11726 Likewise.
11727 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11728 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11729 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11730 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11731 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11732 !__ASSUME_PRIVATE_FUTEX path.
11733 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11734 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11735 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11736 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11737 !__ASSUME_PRIVATE_FUTEX macros.
11738 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11739 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11740 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11741 * sysdeps/unix/sysv/linux/kernel-features.h
11742 (__ASSUME_PRIVATE_FUTEX): Removed.
11743
11744 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11745
11746 * math/Makefile (libm-narrow-fns): Add div.
11747 (libm-test-funcs-narrow): Likewise.
11748 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11749 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11750 * math/gen-auto-libm-tests.c (test_functions): Add div.
11751 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11752 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11753 (NARROW_DIV_TRIVIAL): Likewise.
11754 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11755 macro.
11756 (__ddivl): Likewise.
11757 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11758 ddiv.
11759 (CFLAGS-nldbl-ddiv.c): New variable.
11760 (CFLAGS-nldbl-fdiv.c): Likewise.
11761 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11762 __nldbl_ddivl.
11763 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11764 prototype.
11765 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11766 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11767 * math/auto-libm-test-in: Add tests of div.
11768 * math/auto-libm-test-out-narrow-div: New generated file.
11769 * math/libm-test-narrow-div.inc: New file.
11770 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11771 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11772 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11773 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11774 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11775 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11776 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11777 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11778 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11779 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11780 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11781 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11782 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11783 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11784 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11785 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11786 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11787 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11788 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11789 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11790 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11791 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11792 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11793 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11794 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11795 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11796 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11797 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11798 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11799 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11800 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11801 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11802 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11806 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11807 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11808 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11809 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11810 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11811 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11812 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11813 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11814
11815 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11816
11817 [BZ #23178]
11818 * nscd/nscd-client.h (sendfileall): Remove prototype.
11819 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11820 (handle_request): Use writeall instead of sendfileall.
11821 * nscd/aicache.c (addhstaiX): Likewise.
11822 * nscd/grpcache.c (cache_addgr): Likewise.
11823 * nscd/hstcache.c (cache_addhst): Likewise.
11824 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11825 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11826 * nscd/pwdcache.c (cache_addpw): Likewise.
11827 * nscd/servicescache.c (cache_addserv): Likewise.
11828 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11829 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11830 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11831 Remove define.
11832
11833 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11834
11835 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11836 Include <string/strncat.c>.
11837 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11838 alias.
11839 (__GI___strncat): New hidden alias.
11840
11841 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11842
11843 * sysdeps/mips/mips32/libm-test-ulps: Update.
11844 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11845
11846 2018-05-16 Florian Weimer <fweimer@redhat.com>
11847
11848 * support/Makefile (libsupport-routines): Add support_quote_blob,
11849 support_test_compare_blob.
11850 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11851 * support/check.h (TEST_COMPARE_BLOB): Define.
11852 (support_test_compare_blob): Declare.
11853 * support/support.h (support_quote_blob): Declare.
11854 * support/support_quote_blob.c: New file.
11855 * support/support_test_compare_blob.c: Likewise.
11856 * support/tst-support_quote_blob.c: Likewise.
11857 * support/tst-test_compare_blob.c: Likewise.
11858
11859 2018-05-16 Florian Weimer <fweimer@redhat.com>
11860
11861 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11862 of <strtod_nan_double.h>.
11863 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11864 instead of SET_MANTISSA.
11865 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11866 of include <strtod_nan_float.h>.
11867 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11868 instead of <strtod_nan_ldouble.h>.
11869 * stdlib/strtod_nan_double.h: Move to ...
11870 * sysdeps/generic/math-nan-payload-double.h: ... here.
11871 (FLOAT): Remove definition.
11872 (SET_MANTISSA): Rename to ...
11873 (SET_NAN_PAYLOAD): ... this.
11874 * stdlib/strtod_nan_float.h: Move to ...
11875 * sysdeps/generic/math-nan-payload-float.h: ... here.
11876 (FLOAT): Remove definition.
11877 (SET_MANTISSA): Rename to ...
11878 (SET_NAN_PAYLOAD): ... this.
11879 * sysdeps/generic/math-type-macros-double.h: Include
11880 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11881 instead of <math-svid-compat.h>.
11882 * sysdeps/generic/math-type-macros-float.h: Include
11883 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11884 instead of <math-svid-compat.h>.
11885 * sysdeps/generic/math-type-macros-float128.h: Include
11886 <math-nan-payload-float128.h>.
11887 * sysdeps/generic/math-type-macros-ldouble.h: Include
11888 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11889 instead of <math-svid-compat.h>.
11890 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11891 check for definition.
11892 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11893 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11894 Include <ieee754_float128.h>.
11895 (FLOAT): Remove definition.
11896 (SET_MANTISSA): Rename to ...
11897 (SET_NAN_PAYLOAD): ... this.
11898 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11899 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11900 Do not include <float128_private.h>.
11901 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11902 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11903 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11904 (FLOAT): Remove definition.
11905 (SET_MANTISSA): Rename to ...
11906 (SET_NAN_PAYLOAD): ... this.
11907 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11908 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11909 (FLOAT): Remove definition.
11910 (SET_MANTISSA): Rename to ...
11911 (SET_NAN_PAYLOAD): ... this.
11912 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11913 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11914 (FLOAT): Remove definition.
11915 (SET_MANTISSA): Rename to ...
11916 (SET_NAN_PAYLOAD): ... this.
11917 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11918 of "../stdlib/strtod_nan_double.h".
11919 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11920 of "../stdlib/strtod_nan_float.h".
11921 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11922 instead of "../stdlib/strtod_nan_ldouble.h".
11923 * manual/arith.texi (Parsing of Floats): Adjust comment.
11924
11925 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11926
11927 * math/Makefile (libm-narrow-fns): Add mul.
11928 (libm-test-funcs-narrow): Likewise.
11929 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11930 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11931 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11932 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11933 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11934 (NARROW_MUL_TRIVIAL): Likewise.
11935 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11936 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11937 macro.
11938 (__dmull): Likewise.
11939 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11940 dmul.
11941 (CFLAGS-nldbl-dmul.c): New variable.
11942 (CFLAGS-nldbl-fmul.c): Likewise.
11943 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11944 __nldbl_dmull.
11945 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11946 prototype.
11947 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11948 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11949 * math/auto-libm-test-in: Add tests of mul.
11950 * math/auto-libm-test-out-narrow-mul: New generated file.
11951 * math/libm-test-narrow-mul.inc: New file.
11952 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11953 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11954 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11955 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11956 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11957 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11958 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11959 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11960 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11961 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11962 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11963 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11964 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11965 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11966 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11967 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11968 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11969 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11970 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11971 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11972 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11973 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11974 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11975 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11976 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11977 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11978 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11979 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11980 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11981 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11982 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11983 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11984 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11985 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11986 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11988 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11989 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11990 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11991 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11992 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11993 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11994 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11995 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11996
11997 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11998
11999 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12000 with *%eax in call.
12001
12002 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12003
12004 * sysdeps/i386/ldsodefs.h: Removed.
12005 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12006 * sysdeps/x86/ldsodefs.h: This.
12007 (La_i86_regs): New.
12008 (La_i86_retval): Likewise.
12009 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12010 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12011
12012 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12013
12014 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12015 unnecessary testl.
12016
12017 2018-05-13 Alan Modra <amodra@gmail.com>
12018
12019 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12020 R_PARISC_TLS_DTPOFF32 reloc addend.
12021
12022 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12023
12024 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12025 * math/math.h: Restrict the prototype definition for the functions
12026 issignaling(_Float128) and iszero(_Float128); and template
12027 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12028 __HAVE_FLOAT128_UNLIKE_LDBL.
12029 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12030 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12031 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12032 __f128() constants; define the type _Float128 as long double;
12033 and reuse long double in __CFLOAT128.
12034
12035 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12036
12037 * sysdeps/generic/math_private.h: Do not include
12038 <math-barriers.h>.
12039 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12040 <math_private.h>.
12041 * math/fromfp.h: Include <math-barriers.h>.
12042 * math/math-narrow.h: Likewise.
12043 * math/s_nextafter.c: Likewise.
12044 * math/s_nexttowardf.c: Likewise.
12045 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12046 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12047 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12048 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12049 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12050 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12051 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12052 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12053 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12054 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12055 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12056 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12057 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12058 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12059 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12060 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12061 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12062 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12063 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12064 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12065 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12066 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12067 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12068 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12069 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12070 * sysdeps/ieee754/k_standardl.c: Likewise.
12071 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12072 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12073 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12074 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12075 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12076 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12077 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12078 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12079 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12080 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12081 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12082 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12083 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12084 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12087 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12088 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12089 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12090 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12091 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12092 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12093
12094 2018-05-11 Florian Weimer <fweimer@redhat.com>
12095
12096 Use 64-bit epoch values in the time zone file parser.
12097 * include/time.h (internal_time_t): Define.
12098 (__tzfile_compute): Use it.
12099 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12100 member.
12101 (transitions): Switch to internal_time_t.
12102 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12103 types.
12104 (__tzfile_compute): Use internal_time_t for timer argument. Check
12105 for truncation before calling __offtime.
12106
12107 2018-05-11 Florian Weimer <fweimer@redhat.com>
12108
12109 [BZ #23166]
12110 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12111 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12112 Likewise.
12113 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12114 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12115 export without --enable-obsolete-rpc.
12116 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12117 symbol. This should not have been exported, ever.
12118
12119 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12120
12121 [BZ #23152]
12122 * localedata/locales/gd_GB (abmon): Fix typo in May:
12123 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12124
12125 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12126
12127 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12128 Use multiple registers to copy data in loop tail.
12129
12130 * sysdeps/aarch64/multiarch/memmove_falkor.S
12131 (__memmove_falkor): Use multiple registers to move data in
12132 loop tail.
12133
12134 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12135
12136 * math/math-underflow.h: New file.
12137 * sysdeps/generic/math_private.h: Do not include <float.h>.
12138 (fabs_tg): Remove macro. Moved to math-underflow.h.
12139 (min_of_type_f): Likewise.
12140 (min_of_type_): Likewise.
12141 (min_of_type_l): Likewise.
12142 (min_of_type_f128): Likewise.
12143 (min_of_type): Likewise.
12144 (math_check_force_underflow): Likewise.
12145 (math_check_force_underflow_nonneg): Likewise.
12146 (math_check_force_underflow_complex): Likewise.
12147 * math/e_exp2_template.c: Include <math-underflow.h>.
12148 * math/k_casinh_template.c: Likewise.
12149 * math/s_catan_template.c: Likewise.
12150 * math/s_catanh_template.c: Likewise.
12151 * math/s_ccosh_template.c: Likewise.
12152 * math/s_cexp_template.c: Likewise.
12153 * math/s_clog10_template.c: Likewise.
12154 * math/s_clog_template.c: Likewise.
12155 * math/s_csin_template.c: Likewise.
12156 * math/s_csinh_template.c: Likewise.
12157 * math/s_csqrt_template.c: Likewise.
12158 * math/s_ctan_template.c: Likewise.
12159 * math/s_ctanh_template.c: Likewise.
12160 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12161 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12162 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12163 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12164 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12165 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12166 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12167 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12168 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12169 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12170 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12171 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12172 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12173 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12174 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12175 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12176 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12177 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12178 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12179 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12180 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12181 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12182 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12183 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12184 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12185 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12186 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12187 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12188 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12189 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12190 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12191 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12192 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12193 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12194 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12195 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12196 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12197 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12198 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12199 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12200 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12201 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12202 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12203 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12204 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12205 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12206 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12207 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12208 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12209 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12210 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12211 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12212 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12213 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12214 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12215 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12216 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12217 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12218 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12219 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12220 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12221 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12222 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12223 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12224 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12225 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12226 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12227 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12228 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12229 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12230 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12231 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12232 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12233 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12234 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12235 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12236 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12237 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12238 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12239 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12240 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12241 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12242 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12243 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12244
12245 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12246
12247 * sysdeps/generic/math-barriers.h: New file.
12248 * sysdeps/generic/math_private.h [!math_opt_barrier]
12249 (math_opt_barrier): Move to math-barriers.h.
12250 [!math_opt_barrier] (math_force_eval): Likewise.
12251 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12252 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12253 math-barriers.h.
12254 (math_force_eval): Likewise.
12255 * sysdeps/alpha/fpu/math-barriers.h: New file.
12256 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12257 math-barriers.h.
12258 (math_force_eval): Likewise.
12259 * sysdeps/x86/fpu/math-barriers.h: New file.
12260 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12261 math-barriers.h.
12262 (math_force_eval): Likewise.
12263 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12264 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12265 multiple-include guard for rename.
12266 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12267 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12268 math-barriers.h.
12269 (math_force_eval): Likewise.
12270
12271 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12272
12273 [BZ #22786]
12274 CVE-2018-11236
12275 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12276 computation.
12277 * stdlib/Makefile (test-bz22786): New test.
12278 * stdlib/test-bz22786.c: New test.
12279
12280 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12281
12282 * include/math-narrow-eval.h: New file. Contents moved from ....
12283 * sysdeps/generic/math_private.h: ... here.
12284 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12285 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12286 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12287 * stdlib/strtod_l.c: Likewise.
12288 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12289 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12290 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12291 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12292 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12293 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12294 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12295 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12296 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12297 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12298 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12299 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12300 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12301 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12302 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12303 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12304 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12305 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12306 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12307 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12308 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12309 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12310 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12311 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12312 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12313 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12314 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12315 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12316 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12317
12318 2018-05-08 Andreas Schwab <schwab@suse.de>
12319
12320 * sysdeps/nptl/internaltypes.h: Fix comment.
12321
12322 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12323
12324 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12325 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12326 hidden.
12327
12328 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12329
12330 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12331 of I into loop header.
12332 * benchtests/bench-memmove-walk.c
12333 (test_main): Likewise.
12334
12335 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12336
12337 Revert:
12338 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12339 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12340
12341 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12342
12343 [BZ #20419]
12344 * elf/dl-load.c (open_verify): Fix stack overflow.
12345 * elf/Makefile (tst-big-note): New test.
12346 * elf/tst-big-note-lib.S: New.
12347 * elf/tst-big-note.c: New.
12348
12349 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12350
12351 * scripts/abilist.awk: Ignore absolute symbols.
12352 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12353 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12354 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12355 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12356 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12357 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12358 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12359 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12360 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12361 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12362 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12363 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12432 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12444 Likewise.
12445 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12458 Likewise.
12459 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12473 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12486 Likewise.
12487 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12507 Likewise.
12508 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12540 Likewise.
12541 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12546 Likewise.
12547 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12548 Likewise.
12549 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12551 Likewise.
12552 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12554 Likewise.
12555 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12556 Likewise.
12557 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12560 Likewise.
12561 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12562 Likewise.
12563 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12564 Likewise.
12565 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12569 Likewise.
12570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12576 Likewise.
12577 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12579 Likewise.
12580 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12581 Likewise.
12582 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12583 Likewise.
12584 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12585 Likewise.
12586 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12587 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12589 Likewise.
12590 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12591 Likewise.
12592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12593 Likewise.
12594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12595 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12597 Likewise.
12598 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12600 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12601 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12602 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12605 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12609 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12612 Likewise.
12613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12616 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12617 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12619 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12620 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12621 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12622 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12624 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12625 Likewise.
12626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12627 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12629 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12630 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12632 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12633 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12637 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12651 Likewise.
12652 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12665 Likewise.
12666 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12686 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12687 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12700 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12701 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12704
12705 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12706
12707 [BZ #23137]
12708 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12709 Use atomic_load_acquire to load __tid.
12710
12711 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12712
12713 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12714 Restore the pointer into %rdx, after syscall and use %rdx,
12715 instead of %rsi, to restore context.
12716
12717 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12718
12719 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12720 Pop the pointer into %rdx after syscall and use %rdx, instead
12721 of %rsi, to restore context.
12722
12723 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12724
12725 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12726 handlers after setjmp.
12727 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12728 defined.
12729 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12730 <libc-pointer-arith.h>.
12731 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12732 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12733 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12734 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12735 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12736 * sysdeps/x86/__longjmp_cancel.S: New file.
12737 * sysdeps/x86/longjmp.c: Likewise.
12738 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12739
12740 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12741
12742 * NEWS: Add ustat.h deprecation entry.
12743 * bits/ustat.h: Remove file.
12744 * misc/sys/ustat.h: Likewise.
12745 * misc/ustat.h: Likewise.
12746 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12747 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12748 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12749 compatibility mode.
12750 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12751 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12752 generic Linux implementation.
12753
12754 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12755
12756 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12757 * math/w_expl_compat.c: Likewise.
12758 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12759
12760 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12761
12762 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12763
12764 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12765
12766 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12767 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12768 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12769 Remove.
12770 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12771 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12772 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12773 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12774 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12775 and SYSCALL_LL64.
12776
12777 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12778
12779 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12780
12781 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12782 * math/w_asin_template.c: Likewise.
12783 * math/w_atanh_template.c: Likewise.
12784
12785 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12786
12787 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12788 to powerpc/powerpc64/be for big-endian.
12789 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12790 little-endian.
12791
12792 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12793 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12794 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12795 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12796 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12797 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12798 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12799 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12800 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12801 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12802 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12803 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12804 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12805 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12806 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12807 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12808 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12809 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12810 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12811 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12812 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12813 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12814 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12815 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12816 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12817 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12818 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12819 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12820 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12821 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12822 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12823 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12824
12825 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12826 adjusted to imply powerpc64 and older processors on powerpc64/be.
12827 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12828 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12829 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12830 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12831 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12832 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12833 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12834 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12835 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12836 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12837 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12838 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12839 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12840 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12841 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12842 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12843 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12844 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12845 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12846 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12847 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12848 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12849 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12850 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12851 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12852 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12853 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12854 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12855 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12856 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12857 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12858
12859 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12860 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12861 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12862 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12863
12864 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12865 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12866 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12867 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12868
12869 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12870 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12871 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12872 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12873 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12874 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12875 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12876 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12877 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12878 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12879 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12880
12881 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12882 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12883 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12884 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12885 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12886 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12887 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12888 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12889 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12890 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12891 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12892
12893 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12894 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12895 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12896 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12897 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12898 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12899 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12900 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12901 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12902 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12903 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12904 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12905
12906 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12907 and adjusted to imply olders processors.
12908 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12909 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12910 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12911 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12912 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12913 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12914 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12915 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12916 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12917 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12918 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12919
12920 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12921 powerpc64/le.
12922 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12923 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12924
12925 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12926 powerpc64le.
12927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12929
12930 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12931 powerpc64/be.
12932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12933 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12935
12936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12937 powerpc64 and adjusted.
12938 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12939 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12941 Likewise.
12942
12943 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12944
12945 * sysdeps/tile: Remove.
12946 * sysdeps/unix/sysv/linux/tile: Likewise.
12947 * README (tilegx-*-linux-gnu): Remove from list of supported
12948 configurations.
12949 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12950 contribution of support for generic Linux kernel syscall
12951 interface.
12952 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12953 tilegx configurations.
12954 (Config.install_linux_headers): Do not handle tile.
12955 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12956 in comment.
12957 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12958 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12959 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12960 conditional undefine and redefine.
12961 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12962 in comment.
12963 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12964 conditional undefine and redefine.
12965
12966 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12967
12968 * signal/tst-sigaction.c: New file to test BZ #23069.
12969 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12970
12971 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12972
12973 [BZ #22766]
12974 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12975 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12976 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12977 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12978
12979 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12980
12981 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12982 _DIRENT_MATCHES_DIRENT64 is not defined.
12983 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12984 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12985 is defined.
12986 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12987 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12988
12989 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12990
12991 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12992 version to GCC 8 branch.
12993
12994 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12995
12996 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12997 (check_no_hidden): Use type of original function when declaring
12998 alias.
12999
13000 * sysdeps/unix/sysv/linux/sys/ptrace.h
13001 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13002 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13003 (struct __ptrace_seccomp_metadata): New type.
13004 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13005 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13006 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13007 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13008 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13009 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13010 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13011 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13012 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13013 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13014 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13015 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13016 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13017 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13018 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13019 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13020
13021 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13022
13023 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13024 defined.
13025 * dirent/versionsort.c (versionsort): Likewise.
13026 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13027 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13028 * dirent/versionsort64.c (versionsort64): Likewise.
13029 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13030 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13031 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13032 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13033 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13034 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13035 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13036 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13037 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13038 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13040 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13041 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13042 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13043
13044 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13045
13046 * elf/elf.h (NT_PPC_PKEY): New macro.
13047
13048 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13049
13050 [BZ #23094]
13051 * localedata/locales/hr_HR: fix thousands_sep and
13052 mon_thousands_sep
13053
13054 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13055
13056 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13057 (XTABS): Define to TAB3.
13058
13059 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13060
13061 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13062
13063 * dirent/scandir-tail-common.c: New file.
13064 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13065 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13066 * dirent/scandir.c: Use scandir-tail-common.c.
13067 * dirent/scandirat.c: Likewise.
13068 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13069 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13070 if _DIRENT_MATCHES_DIRENT64 is defined.
13071 * dirent/scandirat64.c (scandirat64): Likewise.
13072 * include/dirent.h (__scandir_tail): Only define iff
13073 _DIRENT_MATCHES_DIRENT64 is not defined.
13074 (__scandir64_tail): Define regardless.
13075 (__scandirat, scandirat64): Remove libc_hidden_proto.
13076 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13077 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13079 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13080 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13081 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13082 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13083
13084 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13085
13086 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13087 New macro.
13088 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13089 Increase to 24.
13090 (_dl_aarch64_cap_flags): Add asimdfhm.
13091
13092 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13093
13094 * sysdeps/nios2/libm-test-ulps: Update.
13095
13096 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13097
13098 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13099 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13100
13101 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13102 requirements.
13103 (_DIRENT_MATCHES_DIRENT64): Undef
13104 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13105 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13106 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13107 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13108 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13109 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13110 use getdents64 syscalls as base.
13111 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13112 symbol if required.
13113 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13114 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13115 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13116 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13117 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13118 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13119 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13120 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13121 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13122 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13123 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13124
13125 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13126
13127 * scripts/test_printers_common.py (init_test): Disable lock elision.
13128
13129 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13130
13131 * math/test-tgmath.c (count_double, count_float,
13132 count_ldouble, count_cdouble, count_cfloat,
13133 count_cldouble): Use volatile int.
13134
13135 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13136
13137 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13138 (conformtest-xfail-conds): Add i386-gnu.
13139 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13140 i386-gnu.
13141 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13142 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13143 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13144 msqid_ds.msg_lrpid): Likewise.
13145 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13146 Likewise.
13147 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13148 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13149 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13150 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13151 unsigned int.
13152 (struct statvfs64): Likewise.
13153 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13154 Likewise.
13155 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13156 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13157 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13158 instead of wait_queue.
13159 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13160 instead of vm_area_struct.
13161 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13162 struct sched_param definition to it.
13163 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13164 * bits/types/struct_sched_param.h: New file.
13165 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13166 <bits/types/struct_sched_param.h> instead of <sched.h>.
13167 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13168 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13169 generic version but include <bits/pthreadtypes.h> to make struct
13170 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13171 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13172 non-compliant.
13173 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13174 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13175 [__USE_XOPEN] (OFDEL): New macro.
13176 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13177 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13178 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13179 prototypes.
13180 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13181 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13182 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13183 non-compliant.
13184 * sysdeps/i386/sys/ucontext.h: Likewise.
13185 * sysdeps/m68k/sys/ucontext.h: Likewise.
13186 * sysdeps/mips/sys/ucontext.h: Likewise.
13187 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13188 * sysdeps/mach/hurd/i386/Makefile
13189 (test-xfail-POSIX/fcntl.h/conform): Add.
13190 (test-xfail-POSIX/signal.h/conform): Add.
13191 (test-xfail-POSIX/semaphore.h/conform): Add.
13192 (test-xfail-POSIX/regex.h/conform): Add.
13193 (test-xfail-POSIX/aio.h/conform): Add.
13194 (test-xfail-POSIX/mqueue.h/conform): Add.
13195 (test-xfail-POSIX/sys/types.h/conform): Add.
13196 (test-xfail-UNIX98/fcntl.h/conform): Add.
13197 (test-xfail-UNIX98/netdb.h/conform): Add.
13198 (test-xfail-UNIX98/signal.h/conform): Add.
13199 (test-xfail-UNIX98/semaphore.h/conform): Add.
13200 (test-xfail-UNIX98/regex.h/conform): Add.
13201 (test-xfail-UNIX98/aio.h/conform): Add.
13202 (test-xfail-UNIX98/ftw.h/conform): Add.
13203 (test-xfail-UNIX98/mqueue.h/conform): Add.
13204 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13205 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13206 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13207 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13208 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13209 (test-xfail-UNIX98/sys/types.h/conform): Add.
13210 (test-xfail-UNIX98/stdlib.h/conform): Add.
13211 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13212 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13213 (test-xfail-POSIX2008/netdb.h/conform): Add.
13214 (test-xfail-POSIX2008/signal.h/conform): Add.
13215 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13216 (test-xfail-POSIX2008/regex.h/conform): Add.
13217 (test-xfail-POSIX2008/aio.h/conform): Add.
13218 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13219 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13220 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13221 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13222 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13223 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13224 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13225 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13226 (test-xfail-XOPEN2K/signal.h/conform): Add.
13227 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13228 (test-xfail-XOPEN2K/regex.h/conform): Add.
13229 (test-xfail-XOPEN2K/aio.h/conform): Add.
13230 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13231 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13232 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13233 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13234 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13235 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13236 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13237 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13238 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13239 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13240 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13241 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13242 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13243 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13244 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13245 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13246 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13247 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13248 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13249 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13250 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13251 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13252 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13253 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13254 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13255 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13256 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13257 i386-gnu.
13258 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13259 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13260
13261 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13262
13263 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13264 --enable-obsolete for powerpc-linux-gnuspe.
13265
13266 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13267
13268 * conform/data/sys/un.h-data: Allow sun_ prefix.
13269 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13270 prototypes.
13271 * sysdeps/mach/include/mach.h: Likewise.
13272 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13273 * sysdeps/mach/include/mach_error.h: Likewise.
13274
13275 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13276
13277 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13278 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13279 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13280 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13281
13282 2018-04-16 Andreas Schwab <schwab@suse.de>
13283
13284 [BZ #19527]
13285 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13286
13287 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13288
13289 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13290 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13291
13292 2018-04-12 DJ Delorie <dj@redhat.com>
13293
13294 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13295 version to 4.16.
13296
13297 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13298
13299 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13300 (struct kernel_sigaction): Use the same definition on 31bit as is used
13301 on 64bit.
13302
13303 2018-04-09 Florian Weimer <fweimer@redhat.com>
13304
13305 [BZ #23037]
13306 * resolv/res_send.c (send_dg): Use designated initializers instead
13307 of assignment to zero-initialize other fields of struct mmsghdr.
13308
13309 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13310
13311 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13312 __READDIR_ALIAS): Undefine after usage.
13313 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13314 __READDIR_R_ALIAS): Likewise.
13315 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13316 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13317 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13318 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13319 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13320 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13321 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13322 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13323 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13324 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13325 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13326 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13327 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13328 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13329 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13330 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13331 * sysdeps/unix/sysv/linux/readdir.c: New file.
13332 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13333 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13334 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13335
13336 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13337
13338 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13339
13340 * manual/charset.texi (Converting a Character): Fix typo.
13341
13342 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13343
13344 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13345
13346 * sysdeps/arm/libm-test-ulps: Update.
13347
13348 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13349 as base implementation.
13350 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13351 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13352 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13353 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13354 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13355 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13356 remove unrequired definitions and update comments.
13357 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13358 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13359 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13360 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13361 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13362 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13363 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13364 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13365 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13366 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13367 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13368 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13369 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13370 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13371 and RESET_SA_RESTORER hooks.
13372
13373 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13374
13375 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13376
13377 2018-04-05 Florian Weimer <fweimer@redhat.com>
13378
13379 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13380 integer overflow, memory leak on error, and indeterminate errno
13381 value. Add a null wide character to terminate the result string.
13382 * manual/charset.texi (Converting a Character): Mention embedded
13383 null bytes in the mbrtowc input string. Explain what happens in
13384 the -2 result case. Do not claim that mbrtowc is simple or
13385 obvious to use. Adjust the description of the code example. Use
13386 @code, not @var, for concrete variables.
13387
13388 2018-04-05 Florian Weimer <fweimer@redhat.com>
13389
13390 * manual/examples/mbstouwcs.c: New file.
13391 * manual/charset.texi (Converting a Character): Include it.
13392
13393 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13394
13395 * include/dirent.h (dirfd): Add hidden proto.
13396 * dirent/dirfd.c (dirfd): Add hidden def.
13397 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13398 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13399
13400 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13401
13402 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13403 sin, cos and sincos to 1 ULP.
13404
13405 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13406
13407 [BZ #19818]
13408 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13409 symbols.
13410 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13411 * elf/tst-absolute-sym.c: New file.
13412 * elf/tst-absolute-sym-lib.c: New file.
13413 * elf/tst-absolute-sym-lib.lds: New file.
13414 * elf/Makefile (tests): Add `tst-absolute-sym'.
13415 (modules-names): Add `tst-absolute-sym-lib'.
13416 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13417 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13418 ($(objpfx)tst-absolute-sym): New dependency.
13419
13420 [BZ #19818]
13421 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13422 parameter.
13423 (SYMBOL_ADDRESS): New macro.
13424 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13425 SYMBOL_ADDRESS for symbol address calculation.
13426 * elf/dl-runtime.c (_dl_fixup): Likewise.
13427 (_dl_profile_fixup): Likewise.
13428 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13429 * elf/rtld.c (dl_main): Likewise.
13430 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13431 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13432 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13433 (elf_machine_rela): Likewise.
13434 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13435 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13436 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13437 (elf_machine_rela): Likewise.
13438 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13439 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13440 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13441 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13442 Likewise.
13443 (elf_machine_reloc): Likewise.
13444 (elf_machine_got_rel): Likewise.
13445 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13446 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13447 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13448 Likewise.
13449 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13450 Likewise.
13451 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13452 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13453 Likewise.
13454 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13455 Likewise.
13456 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13457 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13458 Likewise.
13459 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13460 Likewise.
13461 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13462 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13463
13464 2018-04-04 Zack Weinberg <zackw@panix.com>
13465
13466 * sysdeps/generic/internal-signals.h: Include signal.h,
13467 sigsetops.h, and stdbool.h.
13468 (__libc_signal_block_all): Actually block all signals.
13469 (__libc_signal_block_app): Likewise.
13470 (__libc_signal_restore_set): Actually restore the signal mask.
13471
13472 2018-04-04 Florian Weimer <fweimer@redhat.com>
13473
13474 inet: Actually build and run tst-deadline.
13475 * inet/Makefile (tests-internal): Add tst-deadline and do not
13476 overwrite the variable.
13477 (tests-static-internal): Remove variable.
13478
13479 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13480
13481 [BZ #22947]
13482 * bits/uio-ext.h (RWF_APPEND): New.
13483 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13484 * manual/llio.texi: Document RWF_APPEND.
13485 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13486 (RWF_SUPPORTED): Add RWF_APPEND.
13487
13488 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13489
13490 [BZ #22391]
13491 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13492 check for internal nptl signals.
13493 * nptl/sigaction.c (__sigaction): Likewise.
13494 * signal/sigaddset.c (sigaddset): Likewise.
13495 * signal/sigdelset.c (sigdelset): Likewise.
13496 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13497 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13498 value.
13499 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13500 to filter out internal nptl signals.
13501 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13502 also check realtime signals using standard macros.
13503 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13504 __is_internal_signal, __libc_signal_block_all,
13505 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13506 * sysdeps/nptl/sigfillset.c: Remove file.
13507 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13508 Change return to bool.
13509 (__clear_internal_signals): Remove SIGTIMER clean since it is
13510 equal to SIGCANEL on Linux.
13511 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13512 signal set was constructed using standard functions.
13513
13514 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13515
13516 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13517 ifname is too long.
13518 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13519 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13520 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13521 hidden def.
13522 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13523 * signal/sigaddset.c: Include <sigsetopts.h>.
13524 * signal/sigdelset.c: Likewise.
13525
13526 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13527
13528 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13529 (__cos): Likewise.
13530 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13531 logic as sin and cos.
13532
13533 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13534
13535 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13536 inputs. Return correct sign.
13537 (do_sincos): Remove small input check before do_sin, let do_sin set
13538 the sign.
13539 (__sin): Likewise.
13540 (__cos): Likewise.
13541
13542 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13543
13544 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13545 (do_cos_slow): Likewise.
13546 (do_sin_slow): Likewise.
13547 (reduce_and_compute): Likewise.
13548 (slow): Likewise.
13549 (slow1): Likewise.
13550 (slow2): Likewise.
13551 (sloww): Likewise.
13552 (sloww1): Likewise.
13553 (sloww2): Likewise.
13554 (bslow): Likewise.
13555 (bslow1): Likewise.
13556 (bslow2): Likewise.
13557 (cslow2): Likewise.
13558
13559 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13560
13561 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13562 (do_cos): Remove corp parameter and calculations.
13563 (do_sin): Likewise.
13564 (do_sincos): Remove cor variable.
13565 (__sin): Use do_sincos for huge inputs.
13566 (__cos): Likewise.
13567 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13568 (reduce_and_compute_sincos): Remove unused function.
13569
13570 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13571
13572 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13573 reduce_sincos, improve accuracy to 136 bits.
13574 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13575 (__sin): Use improved reduction and simplified do_sincos calculation.
13576 (__cos): Likewise.
13577 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13578
13579 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13580
13581 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13582 (do_sincos_2): Likewise.
13583 (__sin): Remove middle range reduction case.
13584 (__cos): Likewise.
13585 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13586 reduction case.
13587
13588 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13589
13590 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13591 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13592 inputs.
13593 (__cos): Likewise.
13594 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13595
13596 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13597
13598 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13599 version to 4.16
13600
13601 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13602
13603 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13604 Remove definitions.
13605 (opendir_oflags): Use O_DIRECTORY regardless.
13606 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13607 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13608
13609 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13610
13611 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13612 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13613 macros.
13614 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13615 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13616 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13617 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13618 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13619 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13620
13621 * htl/Makefile: Bump licence to LGPL 2.1+.
13622 * htl/alloca_cutoff.c: Likewise.
13623 * htl/cthreads-compat.c: Likewise.
13624 * htl/lockfile.c: Likewise.
13625 * htl/pt-alloc.c: Likewise.
13626 * htl/pt-cancel.c: Likewise.
13627 * htl/pt-cleanup.c: Likewise.
13628 * htl/pt-create.c: Likewise.
13629 * htl/pt-dealloc.c: Likewise.
13630 * htl/pt-detach.c: Likewise.
13631 * htl/pt-exit.c: Likewise.
13632 * htl/pt-getattr.c: Likewise.
13633 * htl/pt-initialize.c: Likewise.
13634 * htl/pt-internal.h: Likewise.
13635 * htl/pt-join.c: Likewise.
13636 * htl/pt-self.c: Likewise.
13637 * htl/pt-setcancelstate.c: Likewise.
13638 * htl/pt-setcanceltype.c: Likewise.
13639 * htl/pt-sigmask.c: Likewise.
13640 * htl/pt-spin-inlines.c: Likewise.
13641 * htl/pt-testcancel.c: Likewise.
13642 * htl/pt-yield.c: Likewise.
13643 * htl/tests/test-1.c: Likewise.
13644 * htl/tests/test-10.c: Likewise.
13645 * htl/tests/test-11.c: Likewise.
13646 * htl/tests/test-12.c: Likewise.
13647 * htl/tests/test-13.c: Likewise.
13648 * htl/tests/test-14.c: Likewise.
13649 * htl/tests/test-15.c: Likewise.
13650 * htl/tests/test-16.c: Likewise.
13651 * htl/tests/test-17.c: Likewise.
13652 * htl/tests/test-2.c: Likewise.
13653 * htl/tests/test-3.c: Likewise.
13654 * htl/tests/test-4.c: Likewise.
13655 * htl/tests/test-5.c: Likewise.
13656 * htl/tests/test-6.c: Likewise.
13657 * htl/tests/test-7.c: Likewise.
13658 * htl/tests/test-8.c: Likewise.
13659 * htl/tests/test-9.c: Likewise.
13660 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13661 * sysdeps/htl/bits/cancelation.h: Likewise.
13662 * sysdeps/htl/bits/pthread-np.h: Likewise.
13663 * sysdeps/htl/bits/pthread.h: Likewise.
13664 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13665 * sysdeps/htl/bits/semaphore.h: Likewise.
13666 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13667 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13668 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13669 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13670 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13671 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13672 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13673 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13674 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13675 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13676 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13677 * sysdeps/htl/old_pt-atfork.c: Likewise.
13678 * sysdeps/htl/pt-atfork.c: Likewise.
13679 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13680 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13681 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13682 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13683 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13684 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13685 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13686 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13687 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13688 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13689 * sysdeps/htl/pt-attr-init.c: Likewise.
13690 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13691 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13692 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13693 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13694 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13695 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13696 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13697 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13698 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13699 * sysdeps/htl/pt-attr.c: Likewise.
13700 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13701 * sysdeps/htl/pt-barrier-init.c: Likewise.
13702 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13703 * sysdeps/htl/pt-barrier.c: Likewise.
13704 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13705 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13706 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13707 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13708 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13709 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13710 * sysdeps/htl/pt-cond-init.c: Likewise.
13711 * sysdeps/htl/pt-cond-signal.c: Likewise.
13712 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13713 * sysdeps/htl/pt-cond-wait.c: Likewise.
13714 * sysdeps/htl/pt-cond.c: Likewise.
13715 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13716 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13717 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13718 * sysdeps/htl/pt-condattr-init.c: Likewise.
13719 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13720 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13721 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13722 * sysdeps/htl/pt-equal.c: Likewise.
13723 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13724 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13725 * sysdeps/htl/pt-getschedparam.c: Likewise.
13726 * sysdeps/htl/pt-getspecific.c: Likewise.
13727 * sysdeps/htl/pt-init-specific.c: Likewise.
13728 * sysdeps/htl/pt-key-create.c: Likewise.
13729 * sysdeps/htl/pt-key-delete.c: Likewise.
13730 * sysdeps/htl/pt-key.h: Likewise.
13731 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13732 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13733 * sysdeps/htl/pt-mutex-init.c: Likewise.
13734 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13735 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13736 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13737 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13738 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13739 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13740 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13741 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13742 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13743 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13744 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13745 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13746 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13747 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13748 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13749 * sysdeps/htl/pt-mutexattr.c: Likewise.
13750 * sysdeps/htl/pt-once.c: Likewise.
13751 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13752 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13753 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13754 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13755 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13756 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13757 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13758 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13759 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13760 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13761 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13762 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13763 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13764 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13765 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13766 * sysdeps/htl/pt-setschedparam.c: Likewise.
13767 * sysdeps/htl/pt-setschedprio.c: Likewise.
13768 * sysdeps/htl/pt-setspecific.c: Likewise.
13769 * sysdeps/htl/pt-spin.c: Likewise.
13770 * sysdeps/htl/pt-startup.c: Likewise.
13771 * sysdeps/htl/pthread.h: Likewise.
13772 * sysdeps/htl/sem-close.c: Likewise.
13773 * sysdeps/htl/sem-destroy.c: Likewise.
13774 * sysdeps/htl/sem-getvalue.c: Likewise.
13775 * sysdeps/htl/sem-init.c: Likewise.
13776 * sysdeps/htl/sem-open.c: Likewise.
13777 * sysdeps/htl/sem-post.c: Likewise.
13778 * sysdeps/htl/sem-timedwait.c: Likewise.
13779 * sysdeps/htl/sem-trywait.c: Likewise.
13780 * sysdeps/htl/sem-unlink.c: Likewise.
13781 * sysdeps/htl/sem-wait.c: Likewise.
13782 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13783 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13784 * sysdeps/mach/htl/pt-block.c: Likewise.
13785 * sysdeps/mach/htl/pt-spin.c: Likewise.
13786 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13787 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13788 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13789 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13790 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13791 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13792 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13793 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13794 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13795 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13796 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13797 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13798 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13799 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13800 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13801 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13802 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13803 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13804 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13805 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13806 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13807 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13808 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13809 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13810 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13811 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13812 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13813 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13814 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13815 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13816 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13817 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13818 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13819 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13820 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13821 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13822 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13823 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13824 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13825 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13826 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13827 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13828 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13829
13830 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13831 * README: Remove the mention of out-of-tree patches needed for
13832 GNU/Hurd.
13833
13834 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13835 (UTIME_NOW, UTIME_OMIT): Define macros.
13836
13837 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13838 instead of pthread_detach.
13839 (__cthread_fork): Call __pthread_create instead of pthread_create.
13840 (__cthread_keycreate): Call __pthread_key_create instead of
13841 pthread_key_create.
13842 (__cthread_getspecific): Call __pthread_getspecific instead of
13843 pthread_getspecific.
13844 (__cthread_setspecific): Call __pthread_setspecific instead of
13845 pthread_setspecific.
13846 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13847 __pthread_mutex_unlock instead of pthread_mutex_lock and
13848 pthread_mutex_unlock.
13849 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13850 ___pthread_get_cleanup_stack.
13851 (__pthread_get_cleanup_stack): New strong alias.
13852 * htl/pt-create.c: Include <pthreadP.h>.
13853 (entry_point): Call __pthread_exit instead of pthread_exit.
13854 (pthread_create): Rename to __pthread_create.
13855 (pthread_create): New strong alias.
13856 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13857 (pthread_detach): New strong alias.
13858 (__pthread_detach): Call __pthread_cond_broadcast instead of
13859 pthread_cond_broadcast.
13860 * htl/pt-exit.c: Include <pthreadP.h>.
13861 (__pthread_exit): Call __pthread_setcancelstate and
13862 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13863 __pthread_get_cleanup_stack.
13864 * htl/pt-testcancel.c: Include <pthreadP.h>.
13865 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13866 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13867 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13868 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13869 pthread_attr_getstacksize.
13870 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13871 Rename to __pthread_attr_getstackaddr.
13872 (pthread_attr_getstackaddr): New strong alias.
13873 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13874 Rename to __pthread_attr_getstacksize.
13875 (pthread_attr_getstacksize): New strong alias.
13876 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13877 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13878 (pthread_attr_setstack): New strong alias.
13879 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13880 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13881 pthread_attr_getstacksize, pthread_attr_setstacksize and
13882 pthread_attr_setstackaddr.
13883 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13884 Rename to __pthread_attr_setstackaddr.
13885 (pthread_attr_setstackaddr): New strong alias.
13886 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13887 Rename to __pthread_attr_setstacksize.
13888 (pthread_attr_setstacksize): New strong alias.
13889 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13890 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13891 pthread_exit.
13892 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13893 (__pthread_key_create): New hidden def.
13894 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13895 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13896 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13897 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13898 __pthread_setspecific, __pthread_setcancelstate,
13899 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13900 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13901 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13902 declarations.
13903 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13904 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13905 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13906 (pthread_attr_setstackaddr): New strong alias.
13907 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13908 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13909 (pthread_attr_setstacksize): New strong alias.
13910 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13911 (call_exit): Call __pthread_exit instead of pthread_exit.
13912 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13913 (_pthread_mutex_init): New hidden definition.
13914 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13915 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13916 instead of pthread_attr_init and pthread_attr_setstack.
13917
13918 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13919 __vm_deallocate instead of vm_allocate and vm_deallocate.
13920 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13921 setenv.
13922 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13923 of geteuid.
13924 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13925 strdup.
13926 * hurd/siginfo.c: Include <libioP.h>.
13927 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13928 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13929 munmap.
13930 * mach/devstream.c: Include <libioP.h>.
13931 (dealloc_ref): Call __mach_port_deallocate instead of
13932 mach_port_deallocate.
13933 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13934 Call __mach_port_deallocate instead of mach_port_deallocate.
13935 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13936 pathconf.
13937 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13938 munmap.
13939 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13940 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13941 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13942 of munmap.
13943 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13944 of close.
13945 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13946 instead of sysconf.
13947 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13948 __clock_gettime instead of clock_gettime.
13949 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13950 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13951 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13952 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13953 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13954 tcgetattr.
13955 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13956 __clock_gettime and __nanosleep instead of clock_gettime and
13957 nanosleep.
13958 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13959 __hurd_catch_signal.
13960 (hurd_catch_signal): New strong alias.
13961 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13962 __hurd_catch_signal instead of hurd_catch_signal.
13963 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13964 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13965 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13966 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13967 (_hurd_thread_sigstate): Add hidden def.
13968 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13969 mutex_unlock.
13970 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13971 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13972 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13973 __hurd_file_name_path_lookup.
13974 (hurd_file_name_path_lookup): New strong alias.
13975 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13976 hurd_file_name_path_lookup.
13977 * mach/errstring.c (mach_error_type): Add hidden def.
13978 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13979 * mach/mutex-init.c (__mutex_init): Add hidden def.
13980 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13981 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13982 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13983 * sysdeps/mach/hurd/getcwd.c
13984 (_hurd_canonicalize_directory_name_internal): Rename to
13985 __hurd_canonicalize_directory_name_internal.
13986 (_hurd_canonicalize_directory_name_internal): New strong alias.
13987 (__canonicalize_directory_name_internal, __getcwd): Call
13988 __hurd_canonicalize_directory_name_internal instead of
13989 _hurd_canonicalize_directory_name_internal.
13990 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13991 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13992 hidden defs.
13993 * sysdeps/hurd/include/hurd.h: New file.
13994 * sysdeps/hurd/include/hurd/fd.h: New file.
13995 * sysdeps/hurd/include/hurd/signal.h: New file.
13996 * sysdeps/mach/include/lock-intern.h: New file.
13997 * sysdeps/mach/include/mach.h: New file.
13998 * sysdeps/mach/include/mach/mig_support.h: New file.
13999 * sysdeps/mach/include/mach_error.h: New file.
14000 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14001 prototype.
14002 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14003 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14004 _HEADER_H_HIDDEN_DEF macro.
14005 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14006 _hurd_fd_error_signal): Add hidden prototype.
14007 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14008 hidden def.
14009 * libio/iolibio.h (_IO_puts): New hidden prototype.
14010 * libio/ioputs.c (_IO_puts): New hidden def.
14011 * sysdeps/mach/hurd/localplt.data: New file.
14012
14013 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14014 Amos Jeffries <squid3@treenet.co.nz>
14015 David Michael <fedora.dm0@gmail.com>
14016 Marco Gerards <marco@gnu.org>
14017 Marcus Brinkmann <marcus@gnu.org>
14018 Neal H. Walfield <neal@gnu.org>
14019 Pino Toscano <toscano.pino@tiscali.it>
14020 Richard Braun <rbraun@sceen.net>
14021 Roland McGrath <roland@gnu.org>
14022 Samuel Thibault <samuel.thibault@ens-lyon.org>
14023 Thomas DiModica <ricinwich@yahoo.com>
14024 Thomas Schwinge <tschwinge@gnu.org>
14025
14026 * htl: New directory.
14027 * sysdeps/htl: New directory.
14028 * sysdeps/hurd/htl: New directory.
14029 * sysdeps/i386/htl: New directory.
14030 * sysdeps/mach/htl: New directory.
14031 * sysdeps/mach/hurd/htl: New directory.
14032 * sysdeps/mach/hurd/i386/htl: New directory.
14033 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14034 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14035 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14036
14037 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14038
14039 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14040 signals in thread created for runing timers.
14041
14042 2018-04-01 Florian Weimer <fweimer@redhat.com>
14043
14044 * support/support_format_addrinfo.c (support_format_addrinfo):
14045 Include unknown error number in formatted result.
14046
14047 2018-03-29 Florian Weimer <fweimer@redhat.com>
14048
14049 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14050 capture SIGBUS.
14051
14052 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14053
14054 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14055 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14056 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14057 (__ASSUME_CLONE_BACKWARDS): Define.
14058
14059 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14060
14061 [BZ #23024]
14062 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14063 early when linux sentinel value is set.
14064
14065 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14066
14067 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14068
14069 2018-03-27 Andreas Schwab <schwab@suse.de>
14070
14071 [BZ #23005]
14072 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14073 allocation of private copy of nsaddr_list fails.
14074
14075 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14076
14077 [BZ #16552]
14078 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14079 * sysdeps/unix/sysv/linux/umount.c: ... here.
14080 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14081 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14082 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14083 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14084 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14085 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14086 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14087
14088 2018-03-26 Andreas Schwab <schwab@suse.de>
14089
14090 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14091 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14092 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14093 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14094 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14095 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14096 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14097 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14098 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14099 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14100 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14101 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14102 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14103 (R_RISCV_NUM): Define.
14104
14105 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14106
14107 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14108 TLS declaration of errno.
14109 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14110 __libc_setup_tls.
14111 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14112 (ARCH_SETUP_TLS): Likewise.
14113 * sysdeps/mach/hurd/libc-start.h: New file copied from
14114 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14115 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14116 instead of __libc_setup_tls.
14117 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14118 __libc_setup_tls before initializing libpthread and running _hurd_init
14119 which starts the signal thread.
14120 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14121 Declare function.
14122 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14123
14124 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14125
14126 [BZ #22998]
14127 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14128 after it is defined.
14129
14130 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14131 Max Horn <max@quendi.de>
14132
14133 [BZ #22644]
14134 CVE-2017-18269
14135 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14136 branch conditions.
14137 * string/test-memmove.c (do_test2): New testcase.
14138
14139 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14140
14141 * sysdeps/generic/frame.h: Remove file.
14142 * sysdeps/arm/frame.h: Likewise.
14143 * sysdeps/hppa/frame.h: Likewise.
14144 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14145 macro.
14146 (GET_FRAME): Likewise.
14147 (GET_STACK): Likewise.
14148 (CALL_SIGHANDLER): Likewise.
14149 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14150 Likewise.
14151 (GET_FRAME): Likewise.
14152 (GET_STACK): Likewise.
14153 (CALL_SIGHANDLER): Likewise.
14154 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14155 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14156 (GET_FRAME): Likewise.
14157 (GET_STACK): Likewise.
14158 (CALL_SIGHANDLER): Likewise.
14159 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14160 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14161 (GET_FRAME): Likewise.
14162 (GET_STACK): Likewise.
14163 (ADVANCE_STACK_FRAME): Likewise.
14164 (CALL_SIGHANDLER): Likewise.
14165 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14166 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14167 (GET_FRAME): Likewise.
14168 (GET_STACK): Likewise.
14169 (CALL_SIGHANDLER): Likewise.
14170 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14171 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14172 (GET_FRAME): Likewise.
14173 (GET_STACK): Likewise.
14174 (CALL_SIGHANDLER): Likewise.
14175 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14176 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14177 (GET_FRAME): Likewise.
14178 (GET_STACK): Likewise.
14179 (CALL_SIGHANDLER): Likewise.
14180 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14181 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14182 (GET_FRAME): Likewise.
14183 (GET_STACK): Likewise.
14184 (CALL_SIGHANDLER): Likewise.
14185 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14186 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14187 (GET_FRAME): Likewise.
14188 (GET_STACK): Likewise.
14189 (CALL_SIGHANDLER): Likewise.
14190 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14191 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14192 (GET_FRAME): Likewise.
14193 (GET_STACK): Likewise.
14194 (CALL_SIGHANDLER): Likewise.
14195 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14196 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14197 (GET_FRAME): Likewise.
14198 (GET_STACK): Likewise.
14199 (CALL_SIGHANDLER): Likewise.
14200 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14202 (GET_FRAME): Likewise.
14203 (GET_STACK): Likewise.
14204 (CALL_SIGHANDLER): Likewise.
14205 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14207 (GET_FRAME): Likewise.
14208 (GET_STACK): Likewise.
14209 (CALL_SIGHANDLER): Likewise.
14210 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14212 (FIRST_FRAME_POINTER): Likewise.
14213 (ADVANCE_STACK_FRAME): Likewise.
14214 (GET_STACK): Likewise.
14215 (GET_FRAME): Likewise.
14216 (CALL_SIGHANDLER): Likewise.
14217 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14218 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14219 (ADVANCE_STACK_FRAME): Likewise.
14220 (GET_STACK): Likewise.
14221 (GET_FRAME): Likewise.
14222 (CALL_SIGHANDLER): Likewise.
14223 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14224 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14225 (GET_FRAME): Likewise.
14226 (GET_STACK): Likewise.
14227 (CALL_SIGHANDLER): Likewise.
14228 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14229 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14230 (GET_FRAME): Likewise.
14231 (GET_STACK): Likewise.
14232 (CALL_SIGHANDLER): Likewise.
14233
14234 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14235
14236 * sysdeps/x86_64/backtrace.c: Move to ....
14237 * debug/backtrace.c: ... here.
14238 * sysdeps/aarch64/backtrace.c: Remove file.
14239 * sysdeps/alpha/backtrace.c: Likewise.
14240 * sysdeps/hppa/backtrace.c: Likewise.
14241 * sysdeps/ia64/backtrace.c: Likewise.
14242 * sysdeps/mips/backtrace.c: Likewise.
14243 * sysdeps/nios2/backtrace.c: Likewise.
14244 * sysdeps/riscv/backtrace.c: Likewise.
14245 * sysdeps/sh/backtrace.c: Likewise.
14246 * sysdeps/tile/backtrace.c: Likewise.
14247
14248 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14249
14250 [BZ #22987]
14251 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14252 function.
14253 (fdimf): Likewise.
14254 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14255
14256 [BZ #17343]
14257 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14258 possibly overflowing computations.
14259
14260 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14261
14262 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14263 values from Linux-specific section now that it is in the GNU section.
14264 * sysdeps/gnu/errlist.c: Regenerate.
14265
14266 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14267
14268 * math/Makefile (libm-narrow-fns): Add sub.
14269 (libm-test-funcs-narrow): Likewise.
14270 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14271 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14272 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14273 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14274 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14275 (NARROW_SUB_TRIVIAL): Likewise.
14276 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14277 macro.
14278 (__dsubl): Likewise.
14279 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14280 dsub.
14281 (CFLAGS-nldbl-dsub.c): New variable.
14282 (CFLAGS-nldbl-fsub.c): Likewise.
14283 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14284 __nldbl_dsubl.
14285 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14286 prototype.
14287 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14288 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14289 * math/auto-libm-test-in: Add tests of sub.
14290 * math/auto-libm-test-out-narrow-sub: New generated file.
14291 * math/libm-test-narrow-sub.inc: New file.
14292 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14293 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14294 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14295 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14296 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14297 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14298 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14299 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14300 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14301 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14302 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14303 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14304 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14305 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14306 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14307 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14308 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14309 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14310 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14311 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14312 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14313 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14314 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14315 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14316 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14317 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14318 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14319 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14320 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14321 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14322 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14323 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14324 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14325 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14327 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14328 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14329 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14330 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14331 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14332 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14333 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14334 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14335 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14336 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14337 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14338
14339 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14340
14341 [BZ #20079]
14342 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14343
14344 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14345
14346 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14347
14348 2018-03-18 Richard Braun <rbraun@sceen.net>
14349
14350 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14351 thread reference.
14352
14353 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14354
14355 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14356 (__libc_cleanup_fct): Define function.
14357 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14358 __libc_cleanup_end): Rewrite implementation using
14359 __attribute__ ((__cleanup__)).
14360 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14361 * hurd/Makefile (routines): Add hurdlock.
14362 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14363 interface.
14364 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14365 * hurd/hurdpid.c: Include <lowlevellock.h>
14366 (_S_msg_proc_newids): Use lll_wait to synchronize.
14367 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14368 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14369 * mach/Makefile (lock-headers): Remove machine-lock.h.
14370 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14371 <machine-lock.h>.
14372 (__spin_lock_t): New type.
14373 (__SPIN_LOCK_INITIALIZER): New macro.
14374 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14375 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14376 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14377 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14378 (__mutex_init): Initialize with lll.
14379 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14380 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14381 needing lll.
14382 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14383 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14384 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14385 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14386 (__setpgid): Use lll for synchronization.
14387 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14388 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14389 instead of <cthreads.h>.
14390 (_IO_lock_inexpensive): New macro
14391 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14392 (__libc_lock_self0): New declaration.
14393 (__libc_lock_owner_self): New macro.
14394 (__libc_key_t): Remove type.
14395 (_LIBC_LOCK_INITIALIZER): New macro.
14396 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14397 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14398 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14399 __libc_lock_define_initialized_recursive,
14400 __rtld_lock_define_initialized_recursive,
14401 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14402 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14403 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14404 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14405 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14406 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14407 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14408 New macros.
14409 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14410 * hurd/hurdlock.c: New file.
14411 * hurd/hurdlock.h: New file.
14412 * mach/lowlevellock.h: New file
14413
14414 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14415
14416 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14417 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14418 when opening a symlink with O_NOFOLLOW.
14419 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14420 path when flags contains O_NOFOLLOW.
14421 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14422 if flags contains O_DIRECTORY and the result is a directory.
14423 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14424 oneself when the pointer given in D is nul (as set by ext2fs).
14425 * sysdeps/mach/hurd/mlockall.c: New file.
14426 * sysdeps/mach/hurd/munlockall.c: New file.
14427
14428 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14429
14430 * hurd/hurdsig.c: Include <pthread.h>.
14431 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14432 get the signal thread stack layout.
14433 * hurd/Makefile (headers): Remove threadvar.h.
14434 (inline-headers): Remove threadvar.h.
14435 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14436 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14437 __hurd_threadvar_max, __hurd_errno_location.
14438 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14439 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14440 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14441 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14442 unless TLS is not initialized yet, in which case we do not need a
14443 critical section yet anyway.
14444 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14445 <machine-sp.h>.
14446 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14447 declarations.
14448 (__hurd_threadvar_index): Remove enum.
14449 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14450 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14451 inlines.
14452 (__hurd_reply_port0): New variable declaration.
14453 (__hurd_local_reply_port): New macro.
14454 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14455 (interrupted_reply_port_location): Add thread_t parameter. Use it
14456 with THREAD_TCB to access thread-local variables.
14457 (_hurdsig_abort_rpcs): Pass ss->thread to
14458 interrupted_reply_port_location.
14459 (_hurd_internal_post_signal): Likewise.
14460 (_hurdsig_init): Use presence of cthread_fork instead of
14461 __hurd_threadvar_stack_mask to start signal thread by hand.
14462 Remove signal thread threadvar initialization.
14463 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14464 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14465 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14466 of threadvar.
14467 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14468 __libc_lock_self0.
14469 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14470 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14471 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14472 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14473 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14474 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14475 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14476 define variables.
14477 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14478 <hurd/threadvar.h>.
14479 [IS_IN(rtld)] (rtld_errno): New variable.
14480 [IS_IN(rtld)] (__errno_location): New weak function.
14481 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14482 * sysdeps/mach/hurd/errno.c: Remove file.
14483 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14484 (__fork): Remove THREADVAR_SPACE macro and its use.
14485 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14486 variable.
14487 (init): Do not initialize threadvar.
14488 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14489 symbol.
14490 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14491 __hurd_local_reply_port instead of threadvar.
14492 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14493 _hurd_sigstate fields.
14494 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14495 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14496 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14497 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14498 instead of threadvar.
14499 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14500 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14501 (use_threadvar, global_reply_port): Remove variables.
14502 (__hurd_reply_port0): New variable.
14503 (__mig_get_reply_port): Use __hurd_local_reply_port and
14504 __hurd_reply_port0 instead of threadvar.
14505 (__mig_dealloc_reply_port): Likewise.
14506 (__mig_init): Do not initialize threadvar.
14507 * sysdeps/mach/hurd/profil.c: Fix comment.
14508 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14509 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14510 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14511 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14512 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14513 __cthread_setspecific.
14514 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14515 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14516 __cthread_t instead of cthread_fork, cthread_detach,
14517 pthread_getattr_np, pthread_attr_getstack.
14518 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14519 __cthread_keycreate.
14520 (cthread_getspecific): Rename to __cthread_getspecific.
14521 (cthread_setspecific): Rename to __cthread_setspecific.
14522 (__libc_getspecific): Use __cthread_getspecific instead of
14523 cthread_getspecific.
14524 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14525 __cthread_keycreate instead of cthread_keycreate.
14526 (__libc_setspecific): Use __cthread_setspecific instead of
14527 cthread_setspecific.
14528 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14529 Likewise.
14530 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14531 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14532 testing whether it is defined.
14533
14534 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14535
14536 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14537 Define macro.
14538 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14539 * sysdeps/mach/i386/thread_state.h
14540 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14541 i386_THREAD_STATE.
14542 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14543 i386_THREAD_STATE.
14544 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14545
14546 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14547 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14548
14549 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14550 macros.
14551 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14552 descriptor instead of creating a new one.
14553 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14554
14555 * mach/setup-thread.c: Include <ldsodefs.h>.
14556 (__mach_setup_thread): Call _dl_allocate_tls, pass
14557 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14558 MACHINE_THREAD_STATE_FLAVOR, before getting
14559 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14560 MACHINE_THREAD_STATE_FLAVOR with the result.
14561 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14562 MACHINE_THREAD_STATE_FIX_NEW.
14563 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14564 too. Add original thread parameter.
14565
14566 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14567
14568 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14569 Remove inline function.
14570
14571 * sysdeps/i386/fpu/libm-test-ulps: Update.
14572 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14573
14574 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14575
14576 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14577 commit.
14578
14579 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14580
14581 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14582 (__sincos_code): Remove define and undefine.
14583 [__FAST_MATH__] (__sincos): Remove inline function.
14584 [__FAST_MATH__] (__sincosf): Remove inline function.
14585 [__FAST_MATH__] (__sincosl): Remove inline function.
14586 (__atan2l): Remove inline functions.
14587 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14588 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14589 function.
14590 (floor): Remove inline function.
14591 (ceil): Likewise.
14592 [__FAST_MATH__] (__ldexp_code): Remove macro.
14593 [__FAST_MATH__] (ldexp): Remove inline function.
14594 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14595 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14596 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14597 [__USE_ISOC99] (__lrint_code): Remove macro.
14598 [__USE_ISOC99] (__llrint_code): Likewise.
14599 [__USE_ISOC99] (lrintf): Remove inline function.
14600 [__USE_ISOC99] (lrint): Likewise.
14601 [__USE_ISOC99] (lrintl): Likewise.
14602 [__USE_ISOC99] (llrint): Likewise.
14603 [__USE_ISOC99] (llrintf): Likewise.
14604 [__USE_ISOC99] (llrintl): Likewise.
14605
14606 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14607
14608 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14609 (__ieee754_sqrtf): Remove.
14610 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14611 (__ieee754_sqrtf): Remove.
14612 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14613 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14614 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14615 (__ieee754_sqrtf): Remove.
14616 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14617 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14618 (sqrtf): Remove.
14619 (sqrtl): Remove.
14620 (__ieee754_sqrt): Remove.
14621 (__ieee754_sqrtf): Remove.
14622 (__ieee754_sqrtl): Remove.
14623 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14624 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14625 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14626 (__ieee754_sqrtf): Remove.
14627 (__ieee754_sqrtl): Remove.
14628
14629 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14630
14631 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14632 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14633 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14634 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14635 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14636 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14637 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14638 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14639 Likewise.
14640 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14641 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14642 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14643 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14644 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14645 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14646 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14647 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14648 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14649 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14650 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14651 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14652 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14653 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14654 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14655 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14656 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14657 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14658 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14659 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14660 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14661 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14662 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14663 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14664 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14665 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14666 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14667 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14668 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14669 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14670 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14671 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14672 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14673 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14674 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14675 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14676 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14677 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14678 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14679 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14680
14681 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14682
14683 * include/math.h (sqrt): Declare with asm redirect.
14684 (sqrtf): Likewise.
14685 (sqrtl): Likewise.
14686 (sqrtf128): Likewise.
14687 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14688 nonlib and libnldbl with -fmath-errno.
14689 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14690 * math/w_sqrt_template.c: Likewise.
14691 * math/w_sqrtf_compat.c: Likewise.
14692 * math/w_sqrtl_compat.c: Likewise.
14693 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14694 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14695 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14696 complex.h.
14697
14698 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14699
14700 * benchtests/Makefile: Define _ISOMAC.
14701 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14702 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14703 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14704 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14705 * benchtests/bench-timing.h: Define attribute_hidden.
14706
14707 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14708
14709 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14710 mov + lsr.
14711
14712 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14713
14714 [BZ #22963]
14715 * localedata/locales/cs_CZ (mon): Rename to...
14716 (alt_mon): This.
14717 (mon): Import from CLDR (genitive case).
14718
14719 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14720
14721 [BZ #22937]
14722 * localedata/locales/el_CY (abmon): Rename to...
14723 (ab_alt_mon): This.
14724 (abmon): Import from CLDR (abbreviated genitive case).
14725 * localedata/locales/el_GR (abmon): Rename to...
14726 (ab_alt_mon): This.
14727 (abmon): Import from CLDR (abbreviated genitive case).
14728
14729 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14730
14731 [BZ #22932]
14732 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14733
14734 2018-03-15 Robert Buj <robert.buj@gmail.com>
14735
14736 [BZ #22848]
14737 * localedata/locales/ca_ES (abmon): Rename to...
14738 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14739 (mon): Rename to...
14740 (alt_mon): This.
14741 (abmon): Import from CLDR (genitive case, month names preceded by
14742 "de" or "d’").
14743 (mon): Likewise.
14744 (abday): Synchronize with CLDR.
14745 (d_t_fmt): Likewise.
14746 (d_fmt): Likewise.
14747 (am_pm): Likewise.
14748
14749 (LC_TIME): Improve indentation.
14750 (LC_TELEPHONE): Likewise.
14751 (LC_NAME): Likewise.
14752 (LC_ADDRESS): Likewise.
14753
14754 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14755
14756 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14757 (lrintf): Remove definitions used only with old GCC.
14758 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14759 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14760 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14761 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14762 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14763 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14764 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14765 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14766 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14767 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14768 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14769 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14770 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14771 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14772 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14773 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14774 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14775 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14776 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14777 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14778 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14779 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14780 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14781 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14782 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14783 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14784 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14785 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14786
14787 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14788
14789 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14790 instruction to unbreak builds with binutils 2.26 and older.
14791
14792 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14793
14794 * sysdeps/aarch64/strncmp.S (count): New macro.
14795 (strncmp): Store misaligned length in SRC1 in COUNT.
14796 (mutual_align): Adjust.
14797 (misaligned8): Load dword at a time when it is safe.
14798
14799 2018-03-12 Zack Weinberg <zackw@panix.com>
14800
14801 [BZ #1190]
14802 [BZ #19476]
14803 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14804 if the _IO_EOF_SEEN bit is already set; update commentary.
14805 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14806 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14807
14808 * support/support_openpty.c, support/tty.h: New files.
14809 * support/Makefile (libsupport-routines): Add support_openpty.
14810
14811 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14812 New test cases.
14813 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14814 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14815
14816 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14817
14818 * po/pt_BR.po: Update translations.
14819
14820 2018-03-12 David Michael <fedora.dm0@gmail.com>
14821
14822 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14823 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14824 get a port to the startup server.
14825
14826 2018-03-11 Zack Weinberg <zackw@panix.com>
14827
14828 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14829 before nldbl-compat.h.
14830
14831 2018-03-10 Zack Weinberg <zackw@panix.com>
14832
14833 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14834 math.h or math_private.h.
14835
14836 * sysdeps/alpha/fpu/s_isnan.c
14837 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14838 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14839 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14840 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14841 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14842 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14843 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14844 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14845 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14846 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14847 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14848 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14849 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14850 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14851 Include math_private.h.
14852
14853 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14854 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14855 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14856 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14857 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14858 * sysdeps/powerpc/power7/fpu/s_logb.c:
14859 Include math.h and math_private.h.
14860
14861 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14862 uses of $at in .set noat / .set at.
14863
14864 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14865
14866 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14867 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14868 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14869 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14870 Likewise.
14871
14872 2018-03-09 Florian Weimer <fweimer@redhat.com>
14873
14874 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14875 in comment.
14876
14877 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14878
14879 [BZ #22919]
14880 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14881 Add nop before __startcontext, add explaining comments.
14882
14883 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14884
14885 [BZ #22926]
14886 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14887 empty for __SPE__.
14888 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14889 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14890 Do not build hardware transactional code for __SPE__.
14891 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14892 (__lll_trylock_elision): Likewise.
14893 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14894 (__lll_unlock_elision): Likewise.
14895
14896 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14897 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14898 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14899 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14900 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14901 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14902 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14903 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14904 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14905 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14906 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14907 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14908 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14909 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14910 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14911 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14912 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14913 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14914 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14915 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14916 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14917 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14918 (__ASSUME_CLONE_BACKWARDS): Define.
14919 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14920 __clone2 if __NR_clone2 is defined.
14921 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14922 (__ASSUME_CLONE_BACKWARDS): Likewise.
14923 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14924 (__ASSUME_CLONE_BACKWARDS): Likewise.
14925 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14926 (__ASSUME_CLONE2): Likewise.
14927 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14928 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14929 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14930 variants and the define architecture can use.
14931 (__ASSUME_CLONE_DEFAULT): Define as default.
14932 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14933 (__ASSUME_CLONE_BACKWARDS): Likewise.
14934 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14935 (__ASSUME_CLONE_BACKWARDS): Likewise.
14936 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14937 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14938
14939 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14940
14941 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14942
14943 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14944 time.
14945
14946 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14947 (do_test_limit): Likewise.
14948
14949 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14950 for every implementation.
14951 (do_test): Likewise.
14952
14953 * benchtests/bench-strncmp.c: Convert output to json.
14954
14955 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14956
14957 * io/futimens.c: Add missing start-of-file descriptive comment.
14958 * io/utime.c: Likewise.
14959 * misc/futimesat.c: Likewise.
14960 * misc/utimes.c: Likewise.
14961 * sysdeps/mach/hurd/futimesat.c: Likewise.
14962 * sysdeps/mach/hurd/utimes.c: Likewise.
14963 * sysdeps/posix/utime.c: Likewise.
14964 * sysdeps/posix/utimes.c: Likewise.
14965 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14966 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14967 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14968 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14969
14970 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14971
14972 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14973 hurd_futimes.
14974 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14975 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14976 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14977 (__futimens): Move implementation to...
14978 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14979 utime_tvalue_from_tspec): ... new helper functions.
14980 (hurd_futimens): New function.
14981 * sysdeps/mach/hurd/futimesat.c: New file.
14982 * sysdeps/mach/hurd/utimensat.c: New file.
14983
14984 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14985
14986 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14987 UTIME_OMIT): New macros.
14988 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14989 before reverting to converting time spec to time value and calling
14990 __file_utimes.
14991 * sysdeps/mach/hurd/utime-helper.c: New file.
14992 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14993 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14994 reverting to utime_tvalue_from_tval and __file_utimes.
14995 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14996 (__lutimes): Just call hurd_futimens after lookup.
14997 * sysdeps/mach/hurd/utimes.c: Likewise.
14998
14999 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15000
15001 * bits/sigaction.h: Add include guard.
15002 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15003 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15004 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15005 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15006 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15007 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15008 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15009 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15010 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15011
15012 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15013
15014 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15015 -Wmaybe-uninitialized for -Os.
15016 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15017 this disabling.
15018
15019 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15020
15021 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15022 __INO_T_MATCHES_INO64_T is defined.
15023 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15024 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15025 of definition.
15026 * dirent/alphasort64.c: Likewise.
15027 * dirent/scandir.c: Likewise.
15028 * dirent/scandir64-tail.c: Likewise.
15029 * dirent/scandir64.c: Likewise.
15030 * dirent/scandirat.c: Likewise.
15031 * dirent/scandirat64.c: Likewise.
15032 * dirent/versionsort.c: Likewise.
15033 * dirent/versionsort64.c: Likewise.
15034 * include/dirent.h: Likewise.
15035
15036 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15037 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15038 for socketpair endpoint.
15039 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15040 WRITE_BUFFER_SIZE as buffer size for sending socket.
15041 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15042 issue on system where send is implemented with sendto syscall.
15043 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15044 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15045 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15046 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15047
15048 [BZ #21269]
15049 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15050 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15051 sa_restorer for vDSO case.
15052 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15053
15054 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15055
15056 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15057 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15058 * hurd/hurd/ioctl.h: Include <mach/port.h>
15059 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15060 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15061 <mach/mach_types.h> and <mach/message.h>.
15062 (headers): Move mach/param.h to bits/mach/param.h.
15063 * sysdeps/mach/i386/mach/param.h: Move file to ...
15064 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15065 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15066 of <mach/param.h>.
15067 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15068 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15069 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15070 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15071 trivial, for C++ conformity.
15072 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15073 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15074 Process mig output through $(migheadersed).
15075 * hurd/Makefile (migheadersed): Define variable.
15076 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15077 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15078 headers.
15079 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15080 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15081 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15082 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15083 <bits/types/sigset_t.h>.
15084 [!defined __USE_GNU]: Do not #error out.
15085 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15086 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15087 Include <stddef.h> and <bits/types/sigset_t.h>
15088 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15089 instead of sighandler_t.
15090 * stdlib/errno.h (error_t): Move definition to...
15091 * bits/types/error_t.h: ... new header.
15092 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15093 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15094 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15095 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15096 * hurd/hurd.h: Include <bits/types/error_t.h>
15097 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15098 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15099 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15100 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15101 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15102 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15103 * sysdeps/mach/hurd/futimens.c: New file.
15104
15105 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15106
15107 [BZ #22918]
15108 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15109 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15110 * nscd/gai.c (__nss_hosts_database): Readd definition.
15111 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15112 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15113 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15114
15115 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15116
15117 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15118 (ifunc_one): Likewise.
15119
15120 2018-03-01 DJ Delorie <dj@delorie.com>
15121
15122 [BZ #22342]
15123 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15124 key value.
15125
15126 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15127
15128 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15129 `match_pid' parameter.
15130 (td_ta_thr_iter): Update accordingly.
15131
15132 2018-03-01 Florian Weimer <fweimer@redhat.com>
15133
15134 * nptl/Makefile (install-lib-ldscripts): Remove.
15135 (install): Remove rule.
15136 ($(inst_libdir)/libpthread.so): Likewise.
15137
15138 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15139
15140 [BZ #22896]
15141 * localedata/locales/an_ES: update month and day names,
15142 improve d_fmt, improve postal_fmt, add country_post,
15143 add country_isbn
15144
15145 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15146
15147 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15148 Ukrainian instead of Bulgarian.
15149
15150 2018-03-01 Florian Weimer <fweimer@redhat.com>
15151
15152 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15153 reference.
15154
15155 2018-03-01 Florian Weimer <fweimer@redhat.com>
15156
15157 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15158 * nptl/Makefile (routines): Add pthread_atfork.
15159 (static-only-routines): Set to pthread_atfork.
15160 (libpthread-routines): Remove pthread_atfork.
15161 (libpthread-static-only-routines): Remove.
15162 (install): Update comment.
15163 (libpthread.so): Do not install libpthread_nonshared.a.
15164 (tests): Do not link with libpthread_nonshared.a.
15165 (generated): Remove libpthread_nonshared.a.
15166 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15167 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15168 with libpthread_nonshared.a.
15169
15170 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15171
15172 [BZ #22902]
15173 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15174 (libc_feholdexcept_setroundf128): New macro.
15175 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15176
15177 [BZ #15105]
15178 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15179 libc_hidden_def.
15180 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15181 * include/inttypes.h: New file.
15182
15183 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15184
15185 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15186 -Os in two more places.
15187
15188 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15189
15190 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15191 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15192 be sorted correctly at the moment because of a bug.
15193
15194 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15195
15196 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15197 treat ñ as a primary different character, sync the collation
15198 for Spanish with CLDR.
15199 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15200 * localedata/Makefile: Add new test files.
15201 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15202 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15203 collation order.
15204 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15205 * localedata/am_ET.UTF-8.in: New test file.
15206 * localedata/az_AZ.UTF-8.in: Likewise.
15207 * localedata/be_BY.UTF-8.in: Likewise.
15208 * localedata/ber_DZ.UTF-8.in: Likewise.
15209 * localedata/ber_MA.UTF-8.in: Likewise.
15210 * localedata/bg_BG.UTF-8.in: Likewise.
15211 * localedata/br_FR.UTF-8.in: Likewise.
15212 * localedata/cmn_TW.UTF-8.in: Likewise.
15213 * localedata/crh_UA.UTF-8.in: Likewise.
15214 * localedata/csb_PL.UTF-8.in: Likewise.
15215 * localedata/cv_RU.UTF-8.in: Likewise.
15216 * localedata/cy_GB.UTF-8.in: Likewise.
15217 * localedata/dz_BT.UTF-8.in: Likewise.
15218 * localedata/eo.UTF-8.in: Likewise.
15219 * localedata/es_ES.UTF-8.in: Likewise.
15220 * localedata/fa_IR.UTF-8.in: Likewise.
15221 * localedata/fi_FI.UTF-8.in: Likewise.
15222 * localedata/fil_PH.UTF-8.in: Likewise.
15223 * localedata/fur_IT.UTF-8.in: Likewise.
15224 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15225 * localedata/ha_NG.UTF-8.in: Likewise.
15226 * localedata/ig_NG.UTF-8.in: Likewise.
15227 * localedata/ik_CA.UTF-8.in: Likewise.
15228 * localedata/kk_KZ.UTF-8.in: Likewise.
15229 * localedata/ku_TR.UTF-8.in: Likewise.
15230 * localedata/ky_KG.UTF-8.in: Likewise.
15231 * localedata/ln_CD.UTF-8.in: Likewise.
15232 * localedata/mi_NZ.UTF-8.in: Likewise.
15233 * localedata/ml_IN.UTF-8.in: Likewise.
15234 * localedata/mn_MN.UTF-8.in: Likewise.
15235 * localedata/mr_IN.UTF-8.in: Likewise.
15236 * localedata/mt_MT.UTF-8.in: Likewise.
15237 * localedata/nb_NO.UTF-8.in: Likewise.
15238 * localedata/om_KE.UTF-8.in: Likewise.
15239 * localedata/os_RU.UTF-8.in: Likewise.
15240 * localedata/ps_AF.UTF-8.in: Likewise.
15241 * localedata/ro_RO.UTF-8.in: Likewise.
15242 * localedata/ru_RU.UTF-8.in: Likewise.
15243 * localedata/sc_IT.UTF-8.in: Likewise.
15244 * localedata/se_NO.UTF-8.in: Likewise.
15245 * localedata/sq_AL.UTF-8.in: Likewise.
15246 * localedata/sv_SE.UTF-8.in: Likewise.
15247 * localedata/szl_PL.UTF-8.in: Likewise.
15248 * localedata/tg_TJ.UTF-8.in: Likewise.
15249 * localedata/tk_TM.UTF-8.in: Likewise.
15250 * localedata/tt_RU.UTF-8.in: Likewise.
15251 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15252 * localedata/ug_CN.UTF-8.in: Likewise.
15253 * localedata/uz_UZ.UTF-8.in: Likewise.
15254 * localedata/vi_VN.UTF-8.in: Likewise.
15255 * localedata/yi_US.UTF-8.in: Likewise.
15256 * localedata/yo_NG.UTF-8.in: Likewise.
15257 * localedata/zh_CN.UTF-8.in: Likewise.
15258 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15259 file and fix bugs in the collation.
15260 * localedata/locales/az_AZ: Likewise.
15261 * localedata/locales/be_BY: Likewise.
15262 * localedata/locales/ber_DZ: Likewise.
15263 * localedata/locales/ber_MA: Likewise.
15264 * localedata/locales/bg_BG: Likewise.
15265 * localedata/locales/br_FR: Likewise.
15266 * localedata/locales/br_FR@euro: Likewise.
15267 * localedata/locales/ca_ES: Likewise.
15268 * localedata/locales/cns11643_stroke: Likewise.
15269 * localedata/locales/crh_UA: Likewise.
15270 * localedata/locales/cs_CZ: Likewise.
15271 * localedata/locales/csb_PL: Likewise.
15272 * localedata/locales/cv_RU: Likewise.
15273 * localedata/locales/cy_GB: Likewise.
15274 * localedata/locales/da_DK: Likewise.
15275 * localedata/locales/dz_BT: Likewise.
15276 * localedata/locales/en_CA: Likewise.
15277 * localedata/locales/eo: Likewise.
15278 * localedata/locales/es_CU: Likewise.
15279 * localedata/locales/es_EC: Likewise.
15280 * localedata/locales/es_ES: Likewise.
15281 * localedata/locales/es_US: Likewise.
15282 * localedata/locales/et_EE: Likewise.
15283 * localedata/locales/fa_IR: Likewise.
15284 * localedata/locales/fi_FI: Likewise.
15285 * localedata/locales/fil_PH: Likewise.
15286 * localedata/locales/fur_IT: Likewise.
15287 * localedata/locales/gez_ER@abegede: Likewise.
15288 * localedata/locales/ha_NG: Likewise.
15289 * localedata/locales/hr_HR: Likewise.
15290 * localedata/locales/hsb_DE: Likewise.
15291 * localedata/locales/hu_HU: Likewise.
15292 * localedata/locales/ig_NG: Likewise.
15293 * localedata/locales/ik_CA: Likewise.
15294 * localedata/locales/is_IS: Likewise.
15295 * localedata/locales/iso14651_t1_pinyin: Likewise.
15296 * localedata/locales/kk_KZ: Likewise.
15297 * localedata/locales/ku_TR: Likewise.
15298 * localedata/locales/ky_KG: Likewise.
15299 * localedata/locales/ln_CD: Likewise.
15300 * localedata/locales/lt_LT: Likewise.
15301 * localedata/locales/lv_LV: Likewise.
15302 * localedata/locales/mi_NZ: Likewise.
15303 * localedata/locales/ml_IN: Likewise.
15304 * localedata/locales/mn_MN: Likewise.
15305 * localedata/locales/mr_IN: Likewise.
15306 * localedata/locales/mt_MT: Likewise.
15307 * localedata/locales/nb_NO: Likewise.
15308 * localedata/locales/om_KE: Likewise.
15309 * localedata/locales/os_RU: Likewise.
15310 * localedata/locales/pl_PL: Likewise.
15311 * localedata/locales/ps_AF: Likewise.
15312 * localedata/locales/ro_RO: Likewise.
15313 * localedata/locales/ru_RU: Likewise.
15314 * localedata/locales/ru_UA: Likewise.
15315 * localedata/locales/sc_IT: Likewise.
15316 * localedata/locales/se_NO: Likewise.
15317 * localedata/locales/si_LK: Likewise.
15318 * localedata/locales/sq_AL: Likewise.
15319 * localedata/locales/sv_FI: Likewise.
15320 * localedata/locales/sv_FI@euro: Likewise.
15321 * localedata/locales/sv_SE: Likewise.
15322 * localedata/locales/szl_PL: Likewise.
15323 * localedata/locales/tg_TJ: Likewise.
15324 * localedata/locales/ti_ER: Likewise.
15325 * localedata/locales/tk_TM: Likewise.
15326 * localedata/locales/tl_PH: Likewise.
15327 * localedata/locales/tr_TR: Likewise.
15328 * localedata/locales/tt_RU: Likewise.
15329 * localedata/locales/tt_RU@iqtelif: Likewise.
15330 * localedata/locales/ug_CN: Likewise.
15331 * localedata/locales/uk_UA: Likewise.
15332 * localedata/locales/uz_UZ: Likewise.
15333 * localedata/locales/uz_UZ@cyrillic: Likewise.
15334 * localedata/locales/vi_VN: Likewise.
15335 * localedata/locales/yi_US: Likewise.
15336 * localedata/locales/yo_NG: Likewise.
15337
15338 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15339
15340 * gen-locales.mk: Make test files which contain @ modifiers in their
15341 name work.
15342 * localedata/gen-locale.sh: Likewise.
15343
15344 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15345
15346 * posix/tst-fnmatch.input: Fix results for range expressions
15347 for non C locales.
15348 * posix/tst-regexloc.c: Do not use a range expression for
15349 de_DE.ISO-8859-1 locale.
15350
15351 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15352
15353 * posix/bug-regex5.c: Fix test case because with the new
15354 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15355 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15356 file.
15357
15358 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15359
15360 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15361 downloaded from ISO, the collation order of @-. and space has changed.
15362 Therefore, this test file needed to be adapted.
15363 * localedata/fr_CA.UTF-8.in: Likewise.
15364 * localedata/fr_FR.UTF-8.in: Likewise.
15365 * localedata/uk_UA.UTF-8.in: Likewise.
15366
15367 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15368
15369 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15370 order of ȥ in the new iso14651_t1_common file.
15371 * localedata/pl_PL.UTF-8.in: Likewise.
15372
15373 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15374
15375 * localedata/locales/iso14651_t1_common: Add sections for various
15376 scripts to the iso14651_t1_common file.
15377
15378 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15379
15380 * localedata/locales/iso14651_t1_common: Use the code point of a
15381 character in the fourth collation level instead of IGNORE for all
15382 entries which have IGNORE on all 4 levels.
15383
15384 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15385
15386 * localedata/locales/iso14651_t1_common: Add some convenient collation
15387 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15388 rules similar to those in CLDR.
15389
15390 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15391
15392 * localedata/locales/iso14651_t1_common: The new version of this
15393 file downloaded from ISO contained several syntax errors which
15394 are fixed by this patch.
15395
15396 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15397
15398 * localedata/locales/iso14651_t1_common: replace all <U.....>
15399 with <U000.....> because glibc understands only 4 digit or 8 digit
15400
15401 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15402
15403 * localedata/locales/iso14651_t1_common: Necessary changes
15404 to make the file downloaded from ISO usable by glibc.
15405
15406 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15407
15408 [BZ #14095]
15409 * localedata/locales/iso14651_t1_common: Update file to
15410 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15411
15412 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15413
15414 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15415 of <nptl/pthreadP.h>
15416 (thread_attr_compare): Move function to...
15417 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15418 * sysdeps/nptl/timer_routines.h: ... new header.
15419 * sysdeps/mach/hurd/gai_misc.h: New file.
15420
15421 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15422
15423 * string/strcoll_l.c: Include <libc-diag.h>.
15424 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15425 declarations of seq1 and seq2.
15426
15427 [BZ #15105]
15428 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15429 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15430
15431 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15432
15433 [BZ #22433]
15434 [BZ #22807]
15435 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15436 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15437 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15438 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15439 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15440 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15441
15442 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15443
15444 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15445 macros used in __ptrace_request.
15446
15447 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15448
15449 [BZ #22792]
15450 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15451 to $(CC).
15452 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15453 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15454 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15455 <tcb-offsets.h>.
15456
15457 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15458
15459 [BZ #15105]
15460 * ctype/ctype.c (tolower): Use libc_hidden_def.
15461 (toupper): Likewise.
15462 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15463 [!_ISOMAC] (toupper): Likewise.
15464
15465 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15466
15467 * localedata/Makefile: Remove --quiet argument when
15468 installing locales
15469
15470 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15471
15472 [BZ #17438]
15473 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15474 in d_fmt.
15475 * localedata/locales/pt_PT (LC_TIME): likewise
15476
15477 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15478
15479 [BZ #22646]
15480 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15481 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15482 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15483
15484 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15485
15486 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15487
15488 * nptl/Makefile (routines): Remove unregister-atfork.
15489 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15490 (fork_handler_alloc): Remove function.
15491 (fork_handlers, fork_handler_init): New variables.
15492 (__fork_lock): Rename to atfork_lock.
15493 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15494 to use a dynamic array to add/remove atfork handlers.
15495 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15496 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15497 Remove declaration.
15498 (fork_handler): Remove next, refcntr, and need_signal member.
15499 (__run_fork_handler_type): New enum.
15500 (__run_fork_handlers): New prototype.
15501 * nptl/register-atfork.c: Remove file.
15502 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15503
15504 * sysdeps/nptl/nptl-signals.h: Move to ...
15505 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15506 comments.
15507 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15508 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15509 unnecessary check for SIGTIMER.
15510 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15511 remove unnecessary removal of SIGTIMER.
15512 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15513 include-signals.h rename.
15514 * nptl/pthreadP.h: Likewise.
15515 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15516 __is_internal_signal instead of __nptl_is_internal_signal.
15517
15518 2018-02-22 Andrew Waterman <andrew@sifive.com>
15519
15520 [BZ # 22884]
15521 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15522 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15523 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15524 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15525
15526 2018-02-22 DJ Delorie <dj@delorie.com>
15527
15528 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15529
15530 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15531
15532 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15533 do_misaligned, not misaligned8.
15534
15535 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15536
15537 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15538 Add memcpy_thunderx2.
15539 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15540 Increment to 4.
15541 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15542 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15543 and IS_THUNDERX2PA checks.
15544 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15545 Use macro to set name appropriately.
15546 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15547 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15548 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15549 New macro.
15550 (IS_THUNDERX2): New macro.
15551
15552 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15553
15554 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15555
15556 2018-02-21 Zack Weinberg <zackw@panix.com>
15557
15558 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15559 Define here, unconditionally.
15560 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15561 * libio/libioP.h: Remove #if 0 blocks.
15562 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15563 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15564 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15565
15566 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15567 Assume weak_alias is always defined.
15568
15569 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15570 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15571 Remove #if 0 and #ifdef TODO blocks.
15572 Assume text_set_element is always defined.
15573
15574 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15575 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15576 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15577
15578 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15579 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15580 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15581 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15582 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15583 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15584 Reformat bit flags for _flags field to make occupancy clearer.
15585 Update commentary.
15586 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15587 Keep definitions consistent with those in libio/libio.h.
15588
15589 * libio/libio.h (_IO_file_flags): Remove macro.
15590 All uses changed to _flags.
15591
15592 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15593 (__HAVE_COLUMN, _IO_BE): Don't define.
15594 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15595 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15596 * libio/libioP.h (EOF): Don't define.
15597 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15598 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15599 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15600 testing _IO_UNIFIED_JUMPTABLES.
15601
15602 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15603 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15604 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15605 (_IO_size_t): Delete; all uses changed to size_t.
15606 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15607 (_IO_off_t): Delete; all uses changed to off_t.
15608 (_IO_off64_t): Delete; all uses changed to off64_t.
15609 (_IO_pid_t): Delete; all uses changed to pid_t.
15610 (_IO_uid_t): Delete; all uses changed to uid_t.
15611 (_IO_wint_t): Delete; all uses changed to wint_t.
15612 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15613 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15614 (_IO_cookie_io_functions_t): Delete; all uses changed to
15615 cookie_io_functions_t.
15616 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15617 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15618 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15619 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15620
15621 * libio/iofopncook.c: Remove unnecessary forward declarations.
15622 * libio/iolibio.h: Correct outdated commentary.
15623 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15624 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15625 Remove unnecessary casts.
15626 * stdio-common/getline.c: Use _IO_getdelim directly.
15627 Don't redefine ssize_t.
15628 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15629 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15630 Remove outdated comments.
15631 * stdio-common/vfscanf.c: Don't redefine va_list.
15632
15633 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15634 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15635 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15636 which are always true, and __cplusplus, which is always false.
15637
15638 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15639
15640 [BZ #15105]
15641 [BZ #19463]
15642 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15643 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15644 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15645 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15646 libc_hidden_proto.
15647 [!_ISOMAC] (putc_unlocked): Likewise.
15648 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15649 define inline if [__USE_EXTERN_INLINES].
15650 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15651 putc_unlocked.
15652
15653 [BZ #15105]
15654 [BZ #19463]
15655 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15656 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15657 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15658 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15659 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15660 getc_unlocked.
15661 * time/tzfile.c (__tzfile_read): Likewise.
15662
15663 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15664
15665 [BZ #22517]
15666 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15667
15668 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15669
15670 * io/fcntl.h: Fix a typo in a comment.
15671
15672 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15673
15674 [BZ #22862]
15675 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15676 define _DEFAULT_SOURCE.
15677 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15678
15679 2018-02-21 Florian Weimer <fweimer@redhat.com>
15680
15681 [BZ #20890]
15682 * elf/cache.c (save_cache): Call fsync on temporary file before
15683 renaming it.
15684 (save_aux_cache): Call fdatasync on temporary file before renaming
15685 it.
15686
15687 2018-02-21 Florian Weimer <fweimer@redhat.com>
15688
15689 [BZ #22787]
15690 * include/caller.h: Remove file.
15691 * elf/dl-caller.c: Likewise.
15692 * elf/Makefile (dl-routines): Remove dl-caller.
15693 (shared-only-routines): Do not add dl-caller.
15694 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15695 __check_caller.
15696 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15697 member.
15698 (dl_open_worker): Do not call __check_caller.
15699 (_dl_open): Do not set caller_dl_open member.
15700 * elf/rtld.c (_rtld_global_ro): Do not initialize
15701 _dl_check_caller member.
15702 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15703 _dl_check_caller member.
15704 (_dl_check_caller): Remove declaration.
15705 * sysdeps/unix/sysv/linux/dl-execstack.c
15706 (_dl_make_stack_executable): Do not call __check_caller.
15707
15708 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15709
15710 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15711 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15712
15713 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15714
15715 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15716 description.
15717
15718 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15719
15720 [BZ #16335]
15721 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15722 of 199606L, 200112L, and 200809L.
15723 (_XOPEN_SOURCE): Document special values of 600 and 700.
15724 (_ISOC11_SOURCE): Document macro.
15725 (_ATFILE_SOURCE): Likewise.
15726 (_FORTIFY_SOURCE): Likewise.
15727
15728 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15729
15730 [BZ #15105]
15731 [BZ #19463]
15732 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15733 and define as weak alias of __ferror_unlocked. Use
15734 libc_hidden_weak.
15735 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15736 libc_hidden_proto.
15737 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15738 function if [__USE_EXTERN_INLINES].
15739 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15740 ferror_unlocked.
15741
15742 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15743
15744 [BZ #6889]
15745 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15746
15747 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15748
15749 [BZ #22818]
15750 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15751 the GLIBC_2.1 version.
15752
15753 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15754
15755 [BZ #21508]
15756 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15757 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15758 intl/tst-gettext-de.po from po/de.po by removing the
15759 POT-Creation-Date line.
15760 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15761 ../po/de.po.
15762 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15763 ../po/de.po.
15764
15765 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15766
15767 * mach/Makefile (headers): Add mach/param.h.
15768 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15769 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15770 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15771 (__ptsname_r): Move implementation to...
15772 (__ptsname_internal): ... new function. Add filling the STP
15773 structure.
15774
15775 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15776
15777 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15778 idouble to 1 ULP.
15779
15780 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15781
15782 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15783 syntax.
15784
15785 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15786
15787 * nptl/Makefile (tst-mutex8-ENV): Delete.
15788 * nptl/tst-mutex8.c (check_type):
15789 Add runtime check if mutex will be elided.
15790
15791 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15792
15793 [BZ #20980]
15794 [BZ #21234]
15795 * manual/install.texi (Configuring and compiling): Describe
15796 passing CC and CFLAGS on configure command line, not as
15797 environment variables. Use @code markup on those variables.
15798 Specify what options go in CC and what go in CFLAGS. Note the
15799 requirement to compile with optimization.
15800 * INSTALL: Regenerated.
15801
15802 [BZ #18124]
15803 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15804 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15805 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15806 __sigprocmask instead of sigprocmask.
15807 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15808 Likewise.
15809 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15810 __sigsetjmp and sigprocmask.
15811
15812 [BZ #15105]
15813 * include/argz.h (argz_next): Use libc_hidden_proto.
15814 (__argz_next): Likewise.
15815 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15816 (argz_next): Use libc_hidden_weak.
15817
15818 [BZ #15105]
15819 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15820 libc_hidden_proto.
15821 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15822 libc_hidden_def.
15823
15824 [BZ #15105]
15825 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15826 libc_hidden_proto.
15827 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15828
15829 [BZ #15105]
15830 [BZ #19463]
15831 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15832 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15833 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15834 (__feof_unlocked): New declaration, and inline function if
15835 [__USE_EXTERN_INLINES].
15836 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15837 instead of feof_unlocked.
15838 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15839 * nss/nsswitch.c (nss_parse_file): Likewise.
15840 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15841 Likewise.
15842 * time/getdate.c (__getdate_r): Likewise.
15843 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15844 Define as macro to call __feof_unlocked.
15845
15846 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15847
15848 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15849
15850 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15851
15852 * math/Makefile: Remove mpexp.c and mplog.c
15853 * sysdeps/i386/fpu/mpexp.c: Delete file.
15854 * sysdeps/i386/fpu/mplog.c: Likewise.
15855 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15856 * sysdeps/ia64/fpu/mplog.c: Likewise.
15857 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15858 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15859 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15860 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15861 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15862 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15863 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15864 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15865 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15866 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15867 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15868 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15869 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15870 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15871 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15872 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15873
15874 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15875
15876 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15877
15878 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15879
15880 * sysdeps/sh/libm-test-ulps: Update.
15881
15882 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15883
15884 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15885 idouble to 1 ULP.
15886
15887 2018-02-12 Zack Weinberg <zackw@panix.com>
15888
15889 [BZ #19239]
15890 * posix/sys/types.h: Don't include sys/sysmacros.h.
15891 * misc/sys/sysmacros.h: Remove the conditional deprecation
15892 warnings for the macros defined by this header.
15893
15894 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15895
15896 * manual/probes.texi: Remove slowexp probes.
15897 * math/Makefile: Remove slowexp.
15898 * sysdeps/generic/math_private.h (__slowexp): Remove.
15899 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15900 document error bounds.
15901 * sysdeps/i386/fpu/slowexp.c: Remove.
15902 * sysdeps/ia64/fpu/slowexp.c: Remove.
15903 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15904 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15905 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15906 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15907 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15908 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15909 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15910 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15911 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15912 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15913 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15914
15915 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15916
15917 [BZ #13932]
15918 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15919 * benchtests/pow-inputs: Update comment for slow path cases.
15920 * manual/probes.texi (slowpow_p10): Delete removed probe.
15921 (slowpow_p10): Likewise.
15922 * math/Makefile: Remove halfulp.c and slowpow.c.
15923 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15924 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15925 (__halfulp): Remove.
15926 (__slowpow): Remove.
15927 * sysdeps/i386/fpu/halfulp.c: Delete file.
15928 * sysdeps/i386/fpu/slowpow.c: Likewise.
15929 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15930 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15931 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15932 improve comments and add error analysis.
15933 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15934 (power1): Remove function:
15935 (log1): Remove error argument, add error analysis.
15936 (my_log2): Remove function.
15937 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15938 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15939 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15940 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15941 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15942 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15943 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15944 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15945 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15946 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15947 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15948 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15949 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15950 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15951
15952 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15953
15954 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15955 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15956
15957 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15958
15959 [BZ #22433]
15960 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15961 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15962 and PTRACE_SETHBPREGS.
15963
15964 2018-02-10 Zack Weinberg <zackw@panix.com>
15965
15966 [BZ #22830]
15967 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15968 correctly.
15969 * malloc/tst-malloc-stats-cancellation.c: New test case.
15970 * malloc/Makefile: Add new test case.
15971
15972 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15973
15974 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15975
15976 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15977
15978 * math/Makefile (libm-narrow-fns): Add add.
15979 (libm-test-funcs-narrow): Likewise.
15980 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15981 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15982 * math/gen-auto-libm-tests.c (test_functions): Add add.
15983 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15984 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15985 (NARROW_ADD_TRIVIAL): Likewise.
15986 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15987 macro.
15988 (__daddl): Likewise.
15989 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15990 dadd.
15991 (CFLAGS-nldbl-dadd.c): New variable.
15992 (CFLAGS-nldbl-fadd.c): Likewise.
15993 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15994 __nldbl_daddl.
15995 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15996 prototype.
15997 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15998 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15999 * math/auto-libm-test-in: Add tests of add.
16000 * math/auto-libm-test-out-narrow-add: New generated file.
16001 * math/libm-test-narrow-add.inc: New file.
16002 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16003 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16004 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16005 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16006 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16007 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16008 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16009 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16010 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16011 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16012 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16013 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16014 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16015 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16016 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16017 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16018 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16019 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16020 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16021 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16022 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16023 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16024 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16025 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16026 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16027 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16028 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16029 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16030 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16031 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16032 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16033 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16034 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16038 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16039 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16040 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16041 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16042 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16043 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16044 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16045 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16046 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16047 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16048
16049 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16050 (f128-pairs): New variable.
16051 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16052 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16053 to CFLAGS.
16054 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16055 Also make tests add $(f128-loader-link) to gnulib-tests.
16056
16057 2018-02-09 DJ Delorie <dj@redhat.com>
16058
16059 [BZ #22827]
16060 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16061 64-bit ELF type for 64-bit ELF objects.
16062
16063 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16064
16065 * math/libm-test-driver.c (snan_tests_arg): New variable.
16066 * math/libm-test-support.h (snan_tests_arg): New declaration.
16067 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16068
16069 * math/Makefile (test-type-pairs): New variable.
16070 (test-type-pairs-f64xf128-yes): Likewise.
16071 (tests): Add test-narrow-macros.
16072 (libm-test-funcs-narrow): New variable.
16073 (libm-test-c-narrow): Likewise.
16074 (generated): Add $(libm-test-c-narrow).
16075 (libm-tests-base-narrow): New variable.
16076 (libm-tests-narrow): Likewise.
16077 (libm-tests): Add $(libm-tests-narrow).
16078 (libm-tests-for-type): Handle $(libm-tests-narrow).
16079 (libm-test-c-narrow-obj): New variable.
16080 ($(libm-test-c-narrow-obj)): New rule.
16081 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16082 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16083 $(o-iterator) to set dependencies and CFLAGS.
16084 * math/gen-auto-libm-tests.c: Document use for narrowing
16085 functions.
16086 (output_for_one_input_case): Take argument NARROW.
16087 (generate_output): Likewise. Update call to
16088 output_for_one_input_case.
16089 (main): Take --narrow option. Update call to generate_output.
16090 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16091 (apply_lit): Update call to _apply_lit.
16092 (apply_arglit): New function.
16093 (parse_args): Handle "a" arguments.
16094 (parse_auto_input): Handle format names using ":".
16095 * math/README.libm-test: Document "a" parameter type.
16096 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16097 (ARG_TYPE_TRUE_MIN): Likewise.
16098 (ARG_TYPE_MAX): Likwise.
16099 (ARG_MIN_EXP): Likewise.
16100 (ARG_MAX_EXP): Likewise.
16101 (ARG_MANT_DIG): Likewise.
16102 (TEST_COND_arg_ibm128): Likewise.
16103 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16104 (TEST_COND_arg_fmt): New macro.
16105 (init_max_error): Update prototype.
16106 * math/libm-test-support.c (test_ibm128): New variable.
16107 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16108 instead of using [TEST_COND_ibm128] conditional.
16109 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16110 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16111 [TEST_NARROW] (TEST_MSG): New definition.
16112 (arg_plus_zero): New macro.
16113 (arg_minus_zero): Likewise.
16114 (arg_plus_infty): Likewise.
16115 (arg_minus_infty): Likewise.
16116 (arg_qnan_value_pl): Likewise.
16117 (arg_qnan_value): Likewise.
16118 (arg_snan_value_pl): Likewise.
16119 (arg_snan_value): Likewise.
16120 (arg_max_value): Likewise.
16121 (arg_min_value): Likewise.
16122 (arg_min_subnorm_value): Likewise.
16123 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16124 (RUN_TEST_LOOP_aa_f): New macro.
16125 (TEST_SUFF): New macro.
16126 (TEST_SUFF_STR): Likewise.
16127 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16128 (TEST_COND_any_ibm128): New macro.
16129 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16130 this_func. Update call to init_max_error.
16131 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16132 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16133 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16134 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16135 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16136 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16137 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16138 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16139 * math/test-math-vector.h (TEST_NARROW): Likewise.
16140 * math/test-arg-double.h: New file.
16141 * math/test-arg-float128.h: Likewise.
16142 * math/test-arg-float32x.h: Likewise.
16143 * math/test-arg-float64.h: Likewise.
16144 * math/test-arg-float64x.h: Likewise.
16145 * math/test-arg-ldouble.h: Likewise.
16146 * math/test-math-narrow.h: Likewise.
16147 * math/test-narrow-macros.c: Likewise.
16148 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16149 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16150 test-narrow-macros-ldbl-64.
16151 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16152
16153 * math/bits/mathcalls-narrow.h: New file.
16154 * include/bits/mathcalls-narrow.h: Likewise.
16155 * math/math-narrow.h: Likewise.
16156 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16157 (__MATHCALL_NARROW_ARGS_2): Likewise.
16158 (__MATHCALL_NARROW_ARGS_3): Likewise.
16159 (__MATHCALL_NARROW_NORMAL): Likewise.
16160 (__MATHCALL_NARROW_REDIR): Likewise.
16161 (__MATHCALL_NARROW): Likewise.
16162 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16163 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16164 defined.
16165 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16166 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16167 (libm-narrow-fns): New variable.
16168 (libm-narrow-types-basic): Likewise.
16169 (libm-narrow-types-ldouble-yes): Likewise.
16170 (libm-narrow-types-float128-yes): Likewise.
16171 (libm-narrow-types-float128-alias-yes): Likewise.
16172 (libm-narrow-types): Likewise.
16173 (libm-routines): Add narrowing functions.
16174 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16175 (libc_feholdexcept_setroundf128): New macro.
16176 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16177 * sysdeps/ieee754/float128/float128_private.h: Include
16178 <math/math-narrow.h>.
16179 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16180 Undefine and redefine.
16181 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16182 (libm_alias_float_ldouble): Undefine and redefine.
16183 (libm_alias_double_ldouble): Likewise.
16184
16185 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16186
16187 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16188
16189 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16190 FPCR/FPSR.
16191
16192 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16193
16194 * manual/creature.texi: Convert references to gcc.info to gcc.
16195 * manual/stdio.texi: Likewise.
16196 * manual/string.texi: Likewise.
16197
16198 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16199
16200 [BZ #17979]
16201 * posix/bits/types.h (__int_least8_t): New typedef.
16202 (__uint_least8_t): Likewise.
16203 (__int_least16_t): Likewise.
16204 (__uint_least16_t): Likewise.
16205 (__int_least32_t): Likewise.
16206 (__uint_least32_t): Likewise.
16207 (__int_least64_t): Likewise.
16208 (__uint_least64_t): Likewise.
16209 * sysdeps/generic/stdint.h (int_least8_t): Define using
16210 __int_least8_t.
16211 (int_least16_t): Define using __int_least16_t.
16212 (int_least32_t): Define using __int_least32_t.
16213 (int_least64_t): Define using __int_least64_t.
16214 (uint_least8_t): Define using __uint_least8_t.
16215 (uint_least16_t): Define using __uint_least16_t.
16216 (uint_least32_t): Define using __uint_least32_t.
16217 (uint_least64_t): Define using __uint_least64_t.
16218 * wcsmbs/uchar.h: Include <bits/types.h>.
16219 (char16_t): Define using __uint_least16_t conditional only on
16220 [!__USE_ISOCXX11].
16221 (char32_t): Define using __uint_least32_t conditional only on
16222 [!__USE_ISOCXX11].
16223 * wcsmbs/test-char-types.c: New file.
16224 * wcsmbs/Makefile (tests): Add test-char-types.
16225
16226 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16227 version to 4.0.1.
16228
16229 2018-02-07 Zack Weinberg <zackw@panix.com>
16230
16231 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16232 Delete all contents except for definitions of _G_HAVE_MMAP and
16233 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16234 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16235 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16236 change as above.
16237
16238 * libio/libio.h: Don't include bits/_G_config.h here.
16239 Include stddef.h with __need_wchar_t defined. Include
16240 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16241 Define _IO_iconv_t here, directly.
16242 Don't define _IO_HAVE_ST_BLKSIZE.
16243 * libio/libioP.h: Include _G_config.h here. Move include of
16244 shlib-compat.h up with rest of includes. Simplify conditionals
16245 controlling definition of _IO_JUMPS_OFFSET.
16246
16247 * csu/init.c: Remove always-true #if around entire file.
16248 Don't include stdio.h. Set _IO_stdin_used to hardwired
16249 constant 0x20001, and update commentary.
16250 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16251 Replace all uses of _G_va_list with __gnuc_va_list.
16252 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16253 instead of #if _IO_HAVE_ST_BLKSIZE.
16254 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16255 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16256 not #ifdef.
16257
16258 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16259 multiple-include guard to match.
16260 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16261 into this file.
16262 Remove preprocessor conditionals that are always true and/or
16263 redundant to other preprocessor conditionals in the same nest.
16264 Include shlib-compat.h unconditionally.
16265 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16266 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16267 defined after including stdio.h.
16268 Use __BEGIN_DECLS/__END_DECLS.
16269
16270 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16271 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16272 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16273
16274 2018-02-07 Zack Weinberg <zackw@panix.com>
16275
16276 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16277 New single-type headers split from _G_config.h.
16278 * libio/bits/types/cookie_io_functions_t.h
16279 * libio/bits/types/struct_FILE.h
16280 New single-type headers split from libio.h.
16281
16282 * libio/Makefile: Install the above new headers. Don't install
16283 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16284 bits/libio-ldbl.h.
16285 * libio/_G_config.h, libio/libio.h: Delete file.
16286
16287 * libio/bits/libio.h: Remove improper-inclusion guard.
16288 Include stdio.h and don't repeat anything that it does.
16289 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16290 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16291 __io_read_fn as cookie_read_function_t,
16292 __io_write_fn as cookie_write_function_t,
16293 __io_seek_fn as cookie_seek_function_t,
16294 __io_close_fn as cookie_close_function_t,
16295 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16296 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16297 here, in the "compatibility defines" section. Remove an #if 0
16298 block. Use the "body" macros from bits/types/struct_FILE.h to
16299 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16300 and _IO_ferror_unlocked.
16301 Move prototypes of __uflow and __overflow...
16302
16303 * libio/stdio.h: ...here. Don't include bits/libio.h.
16304 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16305 directly from stdarg.h. Include bits/types/__fpos_t.h,
16306 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16307 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16308 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16309 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16310 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16311 __ssize_t, not _IO_ssize_t. Unconditionally define
16312 BUFSIZ as 8192 and EOF as (-1).
16313
16314 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16315 macros from bits/types/struct_FILE.h instead of _IO_* macros
16316 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16317 instead of _IO_ssize_t.
16318 * libio/bits/stdio2.h: Similarly.
16319
16320 * libio/iolibio.h: Add multiple-include guard.
16321 Include bits/libio.h after stdio.h.
16322 * libio/libioP.h: Add multiple-include guard.
16323 Include stdio.h and bits/libio.h before iolibio.h.
16324
16325 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16326 * include/bits/types/cookie_io_functions_t.h
16327 * include/bits/types/struct_FILE.h: New wrappers.
16328
16329 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16330 Get definitions of _G_fpos_t and _G_fpos64_t from
16331 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16332 respectively. Remove improper-inclusion guards.
16333
16334 * conform/data/stdio.h-data: Update expectations of va_list.
16335 * scripts/check-installed-headers.sh: Remove special case for
16336 libio.h and _G_config.h.
16337
16338 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16339
16340 [BZ #15105]
16341 [BZ #19463]
16342 * include/sys/sysmacros.h [!_ISOMAC]
16343 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16344 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16345 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16346 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16347 libc_hidden_proto.
16348 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16349 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16350 Likewise.
16351 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16352 Undefine and redefine to add use __gnu_dev_ prefix.
16353 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16354 Likewise.
16355 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16356 and define as hidden inline function.
16357 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16358 Likewise.
16359 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16360 Likewise.
16361 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16362 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16363 (gnu_dev_minor): Likewise.
16364 (gnu_dev_makedev): Likewise.
16365 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16366 makedev.
16367 * posix/wordexp.c (exec_comm_child): Likewise.
16368 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16369 instead of minor and __gnu_dev_major instead of major.
16370 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16371 __gnu_dev_major instead of major.
16372 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16373 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16374 instead of gnu_dev_minor.
16375 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16376 (SLAVE_P): Likewise.
16377 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16378 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16379 instead of major.
16380
16381 [BZ #21313]
16382 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16383 in another place.
16384 * locale/weightwc.h (findidx): Likewise.
16385
16386 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16387
16388 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16389 (slowlog_inexact): Likewise
16390 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16391 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16392
16393 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16394
16395 [BZ #22797]
16396 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16397 missing second underscore to parameter name.
16398
16399 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16400
16401 [BZ #14508]
16402 [BZ #15512]
16403 [BZ #17082]
16404 [BZ #20530]
16405 * bits/byteswap.h: Update file comment. Do not include
16406 <bits/byteswap-16.h>.
16407 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16408 constant.
16409 (__bswap_16): Define as inline function.
16410 (__bswap_constant_32): Reformat definition.
16411 (__bswap_32): Always define as inline function, not macro, using
16412 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16413 otherwise __bswap_constant_32.
16414 (__bswap_constant_64): Reformat definition. Do not use
16415 __extension__ here.
16416 (__bswap_64): Always define as inline function, not macro. Use
16417 __extension__ on function definition. Use __builtin_bswap64 if
16418 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16419 * string/test-endian-file-scope.c: New file.
16420 * string/test-endian-sign-conversion.c: Likewise.
16421 * string/Makefile (headers): Remove bits/byteswap-16.h.
16422 (tests): Add test-endian-file-scope and
16423 test-endian-sign-conversion.
16424 (CFLAGS-test-endian-sign-conversion.c): New variable.
16425 * bits/byteswap-16.h: Remove file.
16426 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16427 * sysdeps/ia64/bits/byteswap.h: Likewise.
16428 * sysdeps/m68k/bits/byteswap.h: Likewise.
16429 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16430 * sysdeps/s390/bits/byteswap.h: Likewise.
16431 * sysdeps/tile/bits/byteswap.h: Likewise.
16432 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16433 * sysdeps/x86/bits/byteswap.h: Likewise.
16434
16435 [BZ #17721]
16436 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16437 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16438 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16439 199901L] (__restrict): Define to restrict.
16440
16441 [BZ #19667]
16442 * string/testcopy.c: Include <support/support.h>. Do not include
16443 <malloc.h>. Use <support/test-driver.c>.
16444 (main): Rename to do_test. Make static. Use xmalloc instead of
16445 malloc.
16446
16447 [BZ #13575]
16448 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16449 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16450 (SSIZE_MAX): Define to INT_MAX.
16451 * posix/test-ssize-max.c: New file.
16452 * posix/Makefile (tests): Add test-ssize-max.
16453
16454 [BZ #19668]
16455 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16456 <support/support.h>. Do not include <malloc.h>.
16457 (query_auxv): Use xmalloc instead of malloc.
16458
16459 [BZ #14553]
16460 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16461 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16462 instead of loff_t.
16463
16464 2018-02-06 Florian Weimer <fweimer@redhat.com>
16465
16466 [BZ #18023]
16467 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16468 Use scratch_buffer instead of extend_alloca.
16469
16470 2018-02-06 Zack Weinberg <zackw@panix.com>
16471
16472 * libio/stdio.h: Don't define getc or putc as macros.
16473 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16474 not _IO_getc and _IO_putc.
16475
16476 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16477 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16478
16479 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16480
16481 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16482 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16483
16484 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16485
16486 [BZ #14890]
16487 * elf/elf.h (NT_PRFPREG): New macro.
16488 (NT_S390_VXRS_LOW): Likewise.
16489 (NT_S390_VXRS_HIGH): Likewise.
16490 (NT_S390_GS_CB): Likewise.
16491 (NT_S390_GS_BC): Likewise.
16492 (NT_S390_RI_CB): Likewise.
16493
16494 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16495 (MAP_SYNC): New macro.
16496 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16497 Likewise.
16498 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16499 (MAP_SYNC): Likewise.
16500 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16501 (MAP_SYNC): Likewise.
16502 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16503 (MAP_SYNC): Likewise.
16504 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16505 (MAP_SYNC): Likewise.
16506 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16507 (MAP_SYNC): Likewise.
16508 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16509 (MAP_SYNC): Likewise.
16510 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16511 Likewise.
16512 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16513 Likewise.
16514
16515 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16516 (MAP_SHARED_VALIDATE): New macro.
16517 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16518 (MAP_SHARED_VALIDATE): Likewise.
16519
16520 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16521
16522 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16523 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16524 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16525
16526 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16527
16528 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16529 (DT_NUM): Updated to 35.
16530
16531 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16532
16533 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16534 __builtin_expect with __glibc_likely and __glibc_unlikely.
16535 (elf_machine_rela): Likewise.
16536 (elf_machine_lazy_rel): Likewise.
16537
16538 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16539
16540 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16541 __builtin_expect with __glibc_likely and __glibc_unlikely.
16542 (elf_machine_lazy_rel): Likewise.
16543
16544 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16545
16546 [BZ #22638]
16547 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16548 SHARED.
16549 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16550
16551 2018-02-05 Andreas Schwab <schwab@suse.de>
16552
16553 [BZ #22761]
16554 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16555 string.
16556
16557 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16558
16559 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16560 not check against PTHREAD_STACK_MIN.
16561
16562 2018-02-02 Sean McKean <smckean83@gmail.com>
16563
16564 [BZ #22735]
16565 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16566
16567 2018-02-02 Florian Weimer <fweimer@redhat.com>
16568
16569 [BZ #22753]
16570 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16571 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16572 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16573 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16574 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16575 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16576 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16577 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16578 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16579 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16580 * misc/tst-preadvwritev2.c (do_test): Call it.
16581 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16582
16583 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16584
16585 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16586
16587 * benchtests/bench-memcmp.c: Print json instead of plain text.
16588
16589 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16590 every test run.
16591
16592 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16593
16594 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16595 version to 4.15.
16596 (s390_sthyi): New syscall.
16597
16598 * sysdeps/generic/ldbl-classify-compat.h: New file.
16599 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16600 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16601 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16602 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16603 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16604 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16605 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16606 <ldbl-classify-compat.h>.
16607 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16608 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16609 <ldbl-classify-compat.h>.
16610 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16611 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16612 <ldbl-classify-compat.h>.
16613 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16614 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16615 <ldbl-classify-compat.h>.
16616 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16617 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16618 <ldbl-classify-compat.h>.
16619 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16620 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16621 <ldbl-classify-compat.h>.
16622 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16623 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16624 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16625 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16626 * sysdeps/microblaze/math_private.h: Likewise.
16627 * sysdeps/nios2/math_private.h: Likewise.
16628 * sysdeps/sh/math_private.h: Likewise.
16629
16630 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16631 * sysdeps/m68k/coldfire/math_private.h: ... here.
16632 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16633 * sysdeps/tile/math_private.h: Likewise.
16634 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16635 Remove macro.
16636 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16637 Likewise.
16638
16639 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16640 Remove macro.
16641 (libc_fetestexcept): Likewise.
16642 (libc_feupdateenv_test): Likewise.
16643 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16644 (libc_fetestexcept): Likewise.
16645 (libc_feupdateenv_test): Likewise.
16646 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16647 (libc_fetestexcept): Likewise.
16648 (libc_feupdateenv_test): Likewise.
16649 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16650 (libc_fetestexcept): Likewise.
16651 (libc_feupdateenv_test): Likewise.
16652
16653 * sysdeps/generic/math_private.h
16654 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16655 New inline function.
16656 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16657 Likewise.
16658
16659 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16660 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16661 * sysdeps/generic/math_private.h
16662 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16663 inline function.
16664 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16665 Likewise.
16666 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16667 Likewise.
16668 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16669 Likewise.
16670 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16671 Likewise.
16672 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16673 Likewise.
16674 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16675 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16676 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16677 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16678 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16679 (__fegetenv): Likewise.
16680 (fesetenv): Likewise.
16681 (__fesetenv): Likewise.
16682 (feupdateenv): Likewise.
16683 (__feupdateenv): Likewise.
16684 (fegetround): Likewise.
16685 (__fegetround): Likewise.
16686 (fesetround): Likewise.
16687 (__fesetround): Likewise.
16688
16689 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16690 (feraiseexcept): New macro.
16691 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16692 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16693 Remove macro.
16694 (__feraiseexcept): Likewise.
16695 (feclearexcept): Likewise.
16696 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16697 (__feraiseexcept): Likewise.
16698 (feclearexcept): Likewise.
16699 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16700 (__feraiseexcept): Likewise.
16701 (feclearexcept): Likewise.
16702 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16703 (__feraiseexcept): Likewise.
16704 (feclearexcept): Likewise.
16705 (fetestexcept): Likewise.
16706
16707 * sysdeps/m68k/coldfire/math-tests.h: New file.
16708
16709 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16710 * sysdeps/m68k/bits/fenv.h: ... here.
16711 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16712 not define.
16713 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16714 Likewise.
16715 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16716 Likewise.
16717 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16718 Likewise.
16719 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16720 Likewise.
16721 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16722 Define to 0.
16723 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16724 (__FE_UNDEFINED): New enum constant.
16725 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16726 Do not define.
16727 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16728 Likewise.
16729 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16730 Likewise.
16731 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16732 to match generic bits/fenv.h.
16733 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16734 Do not define.
16735
16736 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16737 packed on bits.
16738 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16739 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16740 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16741 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16742
16743 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16744 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16745 Joseph Myers <joseph@codesourcery.com>
16746
16747 [BZ #21314]
16748 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16749 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16750 computation using c.
16751 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16752 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16753 computation using c.
16754
16755 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16756
16757 * version.h (RELEASE): Set to "development".
16758 (VERSION): Set to "2.27.9000".
16759 * NEWS (2.28): New section.
16760
16761 * version.h (RELEASE): Set to "stable".
16762 (VERSION): Set to "2.27".
16763 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16764
16765 * NEWS: Add the list of bugs fixed in 2.27.
16766
16767 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16768
16769 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16770 against PTHREAD_STACK_MIN.
16771
16772 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16773
16774 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16775 New entries.
16776 (Rafal Luzynski, Andreas Schwab): Update.
16777
16778 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16779
16780 [BZ #10871]
16781 * NEWS: List the languages which actually use the alternative
16782 months feature in this release. Also explain that "alt_mon" and
16783 "ab_alt_mon" are optional.
16784
16785 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16786
16787 [BZ #22765]
16788 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16789
16790 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16791
16792 * manual/install.texi (Tools for Compilation): Update the newest
16793 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16794 * INSTALL: Regenerated.
16795
16796 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16797
16798 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16799 instead of __builtin_expect.
16800
16801 2018-01-30 Florian Weimer <fweimer@redhat.com>
16802
16803 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16804 data.
16805 * nss/tst-nss-getpwent.c (do_test): Likewise.
16806
16807 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16808
16809 [BZ #10871]
16810 * localedata/locales/hr_HR (mon): Rename to...
16811 (alt_mon): This.
16812 (mon): Import from CLDR (genitive case).
16813 (d_t_fmt): Update the comment.
16814
16815 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16816
16817 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16818 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16819 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16820
16821 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16822
16823 * mach/Versions: Fix version when __mach_host_self_ was added.
16824 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16825 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16826 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16827 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16828 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16829 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16830 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16831 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16832 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16833 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16834 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16835 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16836 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16837 || to respect codestyle.
16838 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16839 (do_test_bz20181): Rename accordingly.
16840 * malloc/malloc.c: Include <assert.h>.
16841 (assert): Do not define.
16842 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16843 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16844 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16845 * sysdeps/mach/hurd/hp-timing.h: New file.
16846 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16847
16848 2018-01-29 Darius Rad <darius@bluespec.com>
16849
16850 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16851
16852 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16853
16854 * sysdeps/init_array/crti.S (.section .init_array): Add
16855 PREINIT_FUNCTION when defined.
16856 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16857 * config.h.in: Regenerate.
16858 * manual/platform.texi: Add RISC-V documenation for
16859 __riscv_flush_icache.
16860 * sysdeps/riscv/__longjmp.S: New file.
16861 * sysdeps/riscv/backtrace.c: Likewise.
16862 * sysdeps/riscv/bits/endian.h: Likewise.
16863 * sysdeps/riscv/bits/setjmp.h: Likewise.
16864 * sysdeps/riscv/bits/wordsize.h: Likewise.
16865 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16866 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16867 * sysdeps/riscv/dl-trampoline.S: Likewise.
16868 * sysdeps/riscv/gccframe.h: Likewise.
16869 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16870 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16871 * sysdeps/riscv/machine-gmon.h: Likewise.
16872 * sysdeps/riscv/memusage.h: Likewise.
16873 * sysdeps/riscv/setjmp.S: Likewise.
16874 * sysdeps/riscv/sys/asm.h: Likewise.
16875 * sysdeps/riscv/tls-macros.h: Likewise.
16876 * sysdeps/riscv/dl-tls.h: New file.
16877 * sysdeps/riscv/libc-tls.c: Likewise.
16878 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16879 * sysdeps/riscv/nptl/tls.h: Likewise.
16880 * sysdeps/riscv/stackinfo.h: Likewise.
16881 * sysdeps/riscv/bits/fenv.h: New file.
16882 * sysdeps/riscv/e_sqrtl.c: Likewise.
16883 * sysdeps/riscv/fpu_control.h: Likewise.
16884 * sysdeps/riscv/math-tests.h: Likewise.
16885 * sysdeps/riscv/nofpu/Implies: Likewise.
16886 * sysdeps/riscv/sfp-machine.h: Likewise.
16887 * sysdeps/riscv/tininess.h: Likewise.
16888 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16889 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16890 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16891 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16892 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16893 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16894 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16895 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16896 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16897 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16898 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16899 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16900 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16901 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16902 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16903 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16904 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16905 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16906 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16907 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16908 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16909 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16910 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16911 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16912 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16913 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16914 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16915 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16916 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16917 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16918 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16919 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16920 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16921 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16922 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16923 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16924 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16925 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16926 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16927 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16928 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16929 * sysdeps/riscv/rvf/math_private.h: Likewise.
16930 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16931 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16932 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16933 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16934 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16935 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16936 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16937 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16938 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16939 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16940 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16941 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16942 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16943 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16944 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16945 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16946 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16947 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16948 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16949 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16950 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16951 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16952 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16953 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16954 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16955 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16956 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16957 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16958 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16959 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16960 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16961 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16962 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16963 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16964 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16965 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16966 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16967 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16968 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16969 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16970 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16971 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16972 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16973 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16974 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16975 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16976 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16977 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16978 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16979 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16980 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16981 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16982 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16983 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16984 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16985 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16986 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16987 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16988 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16989 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16990 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16991 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16992 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16993 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16994 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16995 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16996 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16997 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16998 * sysdeps/riscv/Implies: New file.
16999 * sysdeps/riscv/Makefile: Likewise.
17000 * sysdeps/riscv/configure: Likewise.
17001 * sysdeps/riscv/configure.ac: Likewise.
17002 * sysdeps/riscv/nptl/Makefile: Likewise.
17003 * sysdeps/riscv/preconfigure: Likewise.
17004 * sysdeps/riscv/rv64/Implies-after: Likewise.
17005 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17006 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17007 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17008 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17009 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17010 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17011 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17012 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17013 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17014 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17015 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17016 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17017 (Config): Likewise.
17018
17019 2018-01-29 Florian Weimer <fweimer@redhat.com>
17020
17021 [BZ #22701]
17022 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17023 libnsl_hidden_proto.
17024 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17025 libnsl_hidden_proto.
17026 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17027 * nis/Makefile (libnsl-routines): Add nss-default only for
17028 build-obsolete-nsl.
17029 * nis/nis_defaults.c (__nis_default_ttl): Add
17030 libnsl_hidden_nolink_def.
17031 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17032 declaration.
17033 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17034 * nis/ypclnt.c (yp_maplist): Likewise.
17035
17036 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17037
17038 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17039 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17040
17041 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17042
17043 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17044 clean -dxfq for git updates when replacing sources.
17045
17046 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17047 --disable-libcilkrts unconditionally, not just for the final GCC
17048 build for Hurd.
17049
17050 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17051 version to 4.15.
17052
17053 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17054
17055 [BZ #10871]
17056 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17057 case).
17058
17059 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17060
17061 [BZ #10871]
17062 * localedata/locales/be_BY (mon): Rename to...
17063 (alt_mon): This, then synchronize with CLDR (nominative case).
17064 (abmon): Rename to...
17065 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17066 (mon): Import from CLDR (genitive case).
17067 (abmon): Likewise.
17068 * localedata/locales/be_BY@latin (mon): Rename to...
17069 (alt_mon): This.
17070 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17071
17072 * localedata/locales/be_BY@latin (lang_name): Reworded to
17073 "biełaruskaja mova".
17074
17075 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17076
17077 [BZ #10871]
17078 * localedata/locales/el_CY (mon): Renamed to...
17079 (alt_mon): This.
17080 (mon): Import from CLDR (genitive case).
17081 * localedata/locales/el_GR: Likewise.
17082
17083 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17084
17085 [BZ #10871]
17086 * localedata/locales/ru_RU (mon): Rename to...
17087 (alt_mon): This.
17088 (abmon): Rename to...
17089 (ab_alt_mon): This.
17090 (mon): Import from CLDR (genitive case).
17091 (abmon): Copy from the old content except the 5th month which is
17092 now in the genitive case, even when abbreviated.
17093 * localedata/locales/ru_UA: Likewise.
17094 * time/tst-strptime.c (day_tests): Add an actual example of
17095 a difference between %b and %Ob in Russian.
17096
17097 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17098
17099 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17100 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17101 a `c' variable.
17102 * resolv/res-close.c: Include <stdlib.h>.
17103 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17104 <sys/wait.h>, <time.h>, <sys/uio.h>.
17105 (NOT_CANCEL_H): Add inclusion guard.
17106 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17107 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17108 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17109 return 0.
17110 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17111 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17112 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17113 instead of void *.
17114 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17115 timer_ptr2id to cast struct timer_node * to void *.
17116 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17117 --disable-libcilkrts to gcc configure.
17118 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17119 and make them the default for now.
17120 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17121 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17122 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17123 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17124 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17125 MACH_IPC_COMPAT.
17126 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17127 __task_terminate would ever return successfully.
17128 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17129 to global scope.
17130 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17131 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17132 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17133 critical section to make code simpler and avoid warning.
17134 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17135 critical section to make code simpler and avoid warning.
17136 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17137 const char * instead of char *.
17138 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17139 __hurd_file_name_split, hurd_file_name_split,
17140 __hurd_directory_name_split, hurd_directory_name_split,
17141 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17142 hurd_file_name_path_lookup): Make lookup function parameter take a
17143 const char *name instead of char *name.
17144 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17145 __hurd_directory_name_split): Likewise.
17146 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17147 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17148 * sysdeps/mach/hurd/check_native.c: New file.
17149 * sysdeps/mach/hurd/check_pf.c: New file.
17150 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17151 (__freeifaddrs): Define macro to freeifaddrs.
17152 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17153 * sysdeps/mach/libmachuser.abilist: New file.
17154 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17155 (do_test_bz20181): Rename accordingly.
17156 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17157 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17158 <sys/mount.h>.
17159 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17160 version only if __USE_EXTERN_INLINES is defined.
17161 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17162 __hurd_sockfail): Likewise.
17163 (_hurd_fd_get): Always declare functions, and provide inline versions
17164 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17165 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17166 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17167 _hurd_port_set): Always declare functions, and provide inline versions
17168 only if __USE_EXTERN_INLINES and _LIBC are defined and
17169 IS_IN(libc).
17170 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17171 _hurd_critical_section_unlock): Likewise.
17172 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17173 * __hurd_threadvar_location): Likewise.
17174 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17175 _hurd_userlink_clear): Likewise.
17176 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17177 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17178 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17179 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17180 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17181 __spin_lock_locked): Likewise.
17182 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17183 __spin_lock_locked): Likewise.
17184 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17185 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17186 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17187 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17188 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17189 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17190 _POSIX_NO_TRUNC): Define to 0.
17191 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17192 check size against PTHREAD_STACK_MIN.
17193 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17194 IS_IN(libpthread)]: Include <sigsetops.h>.
17195 * mach/Makefile (user-interfaces): Add mach/gnumach.
17196 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17197 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17198 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17199 instead of invalid -1.
17200 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17201 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17202 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17203 <net/ppp_defs.h>.
17204
17205 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17206
17207 * hurd/fcntl-internal.h: New file.
17208
17209 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17210
17211 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17212
17213 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17214
17215 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17216
17217 [BZ #22701]
17218 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17219 Build only shared objects.
17220
17221 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17222
17223 * README: Update for hppa.
17224
17225 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17226
17227 * sysdeps/sparc/fpu/libm-test-ulps: Update
17228 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17229
17230 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17231
17232 Revert:
17233
17234 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17235
17236 [BZ #22563]
17237 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17238 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17239 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17240 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17241 to feature_1.
17242
17243 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17244
17245 [BZ #22563]
17246 * bits/types/__cancel_jmp_buf_tag.h: New file.
17247 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17248 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17249 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17250 * nptl/Makefile (headers): Add
17251 bits/types/__cancel_jmp_buf_tag.h.
17252 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17253 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17254 * sysdeps/nptl/pthread.h: Include
17255 <bits/types/__cancel_jmp_buf_tag.h>.
17256 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17257 __cancel_jmp_buf.
17258 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17259
17260 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17261
17262 [BZ #10871]
17263 * localedata/locales/uk_UA (mon): Renamed to...
17264 (alt_mon): This.
17265 (alt_digits): "0" removed and then renamed to...
17266 (mon): This.
17267 (date_fmt): Definition changed not to use the alternative
17268 digits hack.
17269
17270 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17271
17272 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17273 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17274 * elf/elf.h (EF_RISCV_RVC): New define.
17275 (EF_RISCV_FLOAT_ABI): Likewise.
17276 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17277 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17278 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17279 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17280 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17281 define.
17282 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17283
17284 2018-01-25 Andreas Schwab <schwab@suse.de>
17285
17286 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17287 single quotes.
17288 * sysdeps/gnu/configure: Regenerate.
17289 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17290 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17292 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17293 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17294 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17295 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17296 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17297
17298 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17299
17300 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17301 URL, and run autoconf, make it the default for now.
17302
17303 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17304
17305 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17306 soft-float ColdFire configuration.
17307
17308 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17309 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17310 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17311
17312 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17313 MicroBlaze file.
17314
17315 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17316 ....
17317 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17318 ... here.
17319 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17320 New file.
17321
17322 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17323 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17324 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17325 file.
17326
17327 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17328
17329 [BZ #22742]
17330 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17331 Rename to __reserved and add comment.
17332 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17333 Rename to __reserved.
17334
17335 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17336
17337 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17338 i686-gnu configurations.
17339 (Context.run_builds): Include mig, gnumach and hurd in components
17340 considered.
17341 (Context.checkout): Add mig, gnumach and hurd to components.
17342 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17343 hurd.
17344 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17345 (Config.build): Install gnumach headers, build mig and install
17346 hurd headers for 'gnu' OS.
17347 (Config.install_gnumach_headers): New function.
17348 (Config.install_hurd_headers): Likewise.
17349 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17350 when building for 'gnu' OS.
17351
17352 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17353
17354 * manual/tunables.texi (Hardware Capability Tunables): Fix
17355 spelling.
17356
17357 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17358
17359 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17360 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17361 (ALTMON_11, ALTMON_12): Improve documentation.
17362 * manual/time.texi (strftime): Likewise.
17363
17364 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17365
17366 [BZ #10871]
17367 * localedata/locales/pl_PL: Alternative month names added,
17368 primary month names are genitive now.
17369 * time/tst-strptime.c (day_tests): Actually use a genitive case
17370 of a month name in Polish language.
17371
17372 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17373
17374 [BZ #10871]
17375 * manual/locale.texi: Document ALTMON_1..12 constants for
17376 nl_langinfo. Specify when to use ALTMON instead of MON.
17377 * manual/time.texi (strftime, strptime): Document GNU extension
17378 permitting O modifier with %B and %b. Specify when to use
17379 %OB instead of %B.
17380
17381 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17382
17383 [BZ #10871]
17384 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17385 names, define them as the same as abbreviated month names explicitly.
17386 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17387 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17388 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17389 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17390 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17391 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17392 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17393 _NL_WABALTMON_12): New enum constants.
17394 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17395 wab_alt_mon, and ab_alt_mon_defined members.
17396 (time_output): Output ab_alt_mon and wab_alt_mon members.
17397 (time_read): Read them, initialize them as copies of abmon and wabmon
17398 respectively if they are missing, initialize ab_alt_mon_defined.
17399 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17400 * locale/programs/locfile-kw.h: Regenerate.
17401 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17402 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17403 and ru_RU.UTF-8.
17404 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17405 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17406 (__strftime_internal): Handle %Ob and %Oh formats.
17407 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17408 (__strptime_internal): Handle %Ob and %Oh formats.
17409 * time/tst-strptime.c (day_tests): Add more tests to parse different
17410 forms of month names including the new %Ob format specifier.
17411
17412 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17413
17414 [BZ #10871]
17415 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17416 define them as the same as primary full month names explicitly.
17417 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17418 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17419 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17420 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17421 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17422 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17423 _NL_WALTMON_12): New enum constants.
17424 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17425 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17426 macros.
17427 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17428 walt_mon, and alt_mon_defined members.
17429 (time_output): Output alt_mon and walt_mon members.
17430 (time_read): Read them, initialize them as copies of mon and wmon
17431 respectively if they are missing, initialize alt_mon_defined.
17432 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17433 * locale/programs/locfile-kw.h: Regenerate.
17434 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17435 * localedata/tst-langinfo.c (map): Add tests for the new constants
17436 ALTMON_1 .. ALTMON_12.
17437 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17438 and pl_PL.UTF-8.
17439 * time/strftime_l.c (f_altmonth): New macro.
17440 (__strftime_internal): Handle %OB format.
17441 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17442 (__strptime_internal): Handle %OB format.
17443 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17444 of month names including the new %OB format specifier.
17445
17446 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17447
17448 [BZ #22685]
17449 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17450 from ABORT_TRANSACTION.
17451 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17452 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17453 ABORT_TRANSACTION_IMPL): Likewise.
17454 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17455 Linux code, but remove the code that aborts transactions.
17456
17457 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17458
17459 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17460
17461 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17462
17463 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17464 in date: "2004-14-09" should be "2004-09-14".
17465 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17466 "2003-15-09" should be "2003-09-15".
17467
17468 2018-01-18 Arjun Shankar <arjun@redhat.com>
17469
17470 [BZ #22343]
17471 [BZ #22774]
17472 CVE-2018-6485
17473 CVE-2018-6551
17474 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17475 after padding.
17476 (_int_memalign): check for integer overflow before calling
17477 _int_malloc.
17478 * malloc/tst-malloc-too-large.c: New test.
17479 * malloc/Makefile: Add tst-malloc-too-large.
17480
17481 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17482
17483 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17484 in date: "2017-24-07" should be "2017-07-24".
17485 * localedata/locales/mai_IN: Likewise.
17486 * localedata/locales/mai_NP: Likewise.
17487
17488 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17489
17490 * po/ru.po: Update translations.
17491
17492 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17493
17494 [BZ #22719]
17495 * sysdeps/hppa/backtrace.c: New file.
17496
17497 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17498
17499 [BZ #22715]
17500 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17501 align La_x86_64_retval to VEC_SIZE.
17502
17503 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17504
17505 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17506 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17507
17508 2018-01-16 Florian Weimer <fweimer@redhat.com>
17509
17510 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17511 Move tst-thread-exit-clobber ...
17512 [$(CXX)] (tests-unsupported): ... to here.
17513
17514 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17515
17516 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17517 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17518 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17519 (_dl_aarch64_cap_flags): Update.
17520 (_DL_HWCAP_COUNT): Update.
17521
17522 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17523
17524 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17525 (_DL_HWCAP_LAST): Remove.
17526 (_DL_HWCAP_COUNT): Move to ...
17527 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17528 (_DL_HWCAP_COUNT): ... here.
17529
17530 2018-01-16 Florian Weimer <fweimer@redhat.com>
17531
17532 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17533 mode with GNU extensions.
17534
17535 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17536
17537 * elf/elf.h (NT_ARM_SVE): Define.
17538
17539 2018-01-15 Florian Weimer <fweimer@redhat.com>
17540
17541 [BZ #22636]
17542 * nptl/tst-minstack-throw.cc: New file.
17543 * nptl/Makefile (tests): Add tst-minstack-throw.
17544 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17545 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17546
17547 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17548
17549 * scripts/build-many-glibcs.py (Context.checkout): Default
17550 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17551 version to 1.1.0.
17552
17553 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17554
17555 [BZ #22707]
17556 * elf/elf.h (DF_1_STUB): Define.
17557 (DF_1_PIE): Define.
17558
17559 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17560
17561 [BZ #22697]
17562 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17563 Do not add 0.5 to integer or out-of-range arguments.
17564
17565 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17566
17567 * po/bg.po: Update translations.
17568 * po/cs.po: Likewise.
17569 * po/de.po: Likewise.
17570 * po/ko.po: Likewise.
17571 * po/pl.po: Likewise.
17572 * po/sv.po: Likewise.
17573 * po/uk.po: Likewise.
17574 * po/vi.po: Likewise.
17575
17576 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17577
17578 * aarch64/start.S (_start): Use __wrap_main.
17579 (__wrap_main): New local symbol.
17580
17581 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17582
17583 [BZ #22679]
17584 CVE-2018-1000001
17585 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17586 generic_getcwd if the path returned by getcwd syscall is not absolute.
17587 * io/tst-getcwd-abspath.c: New test.
17588 * io/Makefile (tests): Add tst-getcwd-abspath.
17589
17590 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17591
17592 * malloc/malloc.c (malloc_consolidate): Add size check.
17593
17594 2018-01-12 Florian Weimer <fweimer@redhat.com>
17595
17596 * support/write_message.c (write_message): Preserve errno.
17597 * support/check.c (print_failure): Likewise.
17598 * support/support_test_verify_impl.c (support_test_verify_impl):
17599 Likewise.
17600 * support/support_test_compare_failure.c
17601 (support_test_compare_failure): Likewise.
17602
17603 2018-01-12 Florian Weimer <fweimer@redhat.com>
17604
17605 [BZ #22701]
17606 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17607 Prevent installation of libnsl.so.
17608 (libnsl-inhibit-o): Do not build (or install) static libraries.
17609
17610 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17611
17612 [BZ #22657]
17613 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17614 before the day number which may produce a double space.
17615 (date_fmt): Likewise.
17616
17617 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17618
17619 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17620 instead of fegetenv.
17621
17622 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17623
17624 [BZ #22702]
17625 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17626 comment to say exceptions are discarded.
17627 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17628 __fegetenv.
17629 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17630 be enabled.
17631
17632 2018-01-11 Florian Weimer <fweimer@redhat.com>
17633
17634 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17635 and error message.
17636
17637 2018-01-11 Florian Weimer <fweimer@redhat.com>
17638
17639 [BZ #22636]
17640 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17641 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17642
17643 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17644
17645 [BZ #22693]
17646 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17647 negative arguments in test for NaN or infinity argument.
17648
17649 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17650
17651 * po/libc.pot: Regenerate.
17652
17653 2018-01-10 Florian Weimer <fweimer@redhat.com>
17654
17655 [BZ #22636]
17656 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17657 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17658
17659 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17660
17661 * hurd/hurd/fd.h: Include <fcntl.h>
17662 (__hurd_at_flags): New function.
17663 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17664 with call to __hurd_at_flags.
17665 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17666 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17667 __faccessat
17668 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17669 (__access_noerrno): Use __faccessat_common instead of access_common.
17670 (__access): Likewise.
17671 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17672 with a call to __faccessat.
17673 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17674 (__faccessat_common): ... this. Move implementation of __access into it when
17675 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17676 reauthenticate_cwdir_at helper to implement AT mechanism.
17677 (__faccessat_noerrno): New function, just calls __faccessat_common.
17678 (__faccessat): New function, just calls __faccessat_common.
17679 (faccessat): Define weak alias.
17680
17681 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17682
17683 [BZ #22691]
17684 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17685 (CFLAGS-s_fmaxmagl.c): New variable.
17686 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17687
17688 [BZ #22690]
17689 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17690 long int for arguments of possibly overflowing addition or
17691 subtraction.
17692 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17693
17694 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17695
17696 [BZ #22688]
17697 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17698 (CFLAGS-e_remainderl.c): New variable.
17699
17700 [BZ #22687]
17701 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17702 variable.
17703 (CFLAGS-s_cacoshl.c): Likewise.
17704 (CFLAGS-s_casinhl.c): Likewise.
17705 (CFLAGS-s_catanl.c): Likewise.
17706 (CFLAGS-s_catanhl.c): Likewise.
17707 (CFLAGS-s_cexpl.c): Likewise.
17708 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17709 (CFLAGS-s_csinhl.c): Likewise.
17710 (CFLAGS-s_clogl.c): Likewise.
17711 (CFLAGS-s_clog10l.c): Likewise.
17712 (CFLAGS-s_csinl.c): Likewise.
17713 (CFLAGS-s_csqrtl.c): Likewise.
17714
17715 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17716 2017-01-09 Svante Signell <svante.signell@gmail.com>
17717
17718 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17719 (_hurd_exec_paths): New function.
17720 * hurd/hurd.h (_hurd_exec): Deprecate function.
17721 (_hurd_exec_paths): Declare function.
17722 * hurd/Versions: Export _hurd_exec_paths.
17723 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17724 (__execve): Use __getcwd to build absolute path, and use
17725 _hurd_exec_paths instead of _hurd_exec.
17726 * sysdeps/mach/hurd/spawni.c: Likewise.
17727 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17728 _hurd_exec.
17729
17730 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17731
17732 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17733 test instead of failing in case of ENOENT returned by posix_openpt.
17734
17735 2018-01-08 Florian Weimer <fweimer@redhat.com>
17736
17737 resolv: Support binary labels in test framework.
17738 * support/resolv_test.c (struct to_be_freed): Remove.
17739 (struct compressed_name): New.
17740 (allocate_compressed_name, ascii_tolower)
17741 (compare_compressed_name): New functions.
17742 (struct resolv_response_builder): Update type of
17743 compression_offsets for use with tsearch. Rempve to_be_freed.
17744 (response_push_pointer_to_free): Remove function.
17745 (resolv_response_add_name): Rewrite using struct compressed_name
17746 and tsearch instead of hsearch_r.
17747 (response_builder_allocate): Remove initialization of
17748 compression_offsets.
17749 (response_builder_free): Update for removal of to_be_freed. Use
17750 tdestroy instead of hdestroy_r.
17751 * resolv/Makefile (tests): Add tst-resolv-binary.
17752 (tst-resolv-binary): Link with -lresolv -lpthread.
17753
17754 2018-01-08 Florian Weimer <fweimer@redhat.com>
17755
17756 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17757 time. Pass positive flag instead of negative flag to
17758 support_test_compare_failure.
17759 (support_test_compare_failure): Change negative parameter to
17760 positive.
17761 * support/support_test_compare_failure.c (report)
17762 (support_test_compare_failure): Likewise.
17763 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17764 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17765
17766 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17767
17768 [BZ #22637]
17769 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17770 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17771 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17772 stacksize.
17773 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17774
17775 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17776
17777 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17778 Add s_sincosf-sse2 and s_sincosf-fma.
17779 (CFLAGS-s_sincosf-fma.c): New.
17780 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17781 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17782 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17783 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17784 __sincosf is defined.
17785
17786 2018-01-08 Florian Weimer <fweimer@redhat.com>
17787
17788 * nptl/tst-thread-exit-clobber.cc: New file.
17789 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17790 C++11 mode.
17791 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17792 (tests): Add tst-thread-exit-clobber.
17793 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17794
17795 2018-01-08 Florian Weimer <fweimer@redhat.com>
17796
17797 * support/check.h (support_static_assert): Define.
17798 (TEST_COMPARE): Use it.
17799
17800 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17801
17802 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17803 [!__RLIM_T_MATCHES_RLIM64_T]
17804 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17805 __getrlimit64. Add libc_hidden_weak.
17806
17807 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17808
17809 * elf/elf.h (R_RISCV_NONE): New define.
17810 (R_RISCV_32): Likewise.
17811 (R_RISCV_64): Likewise.
17812 (R_RISCV_RELATIVE): Likewise.
17813 (R_RISCV_COPY): Likewise.
17814 (R_RISCV_JUMP_SLOT): Likewise.
17815 (R_RISCV_TLS_DTPMOD32): Likewise.
17816 (R_RISCV_TLS_DTPMOD64): Likewise.
17817 (R_RISCV_TLS_DTPREL32): Likewise.
17818 (R_RISCV_TLS_DTPREL64): Likewise.
17819 (R_RISCV_TLS_TPREL32): Likewise.
17820 (R_RISCV_TLS_TPREL64): Likewise.
17821 * Makerules (make-link-multidir): Make directories before linking into
17822 them.
17823 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17824 define.
17825 (VDSO_HASH_LINUX_4_15): Likewise.
17826 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17827 in subdirectories of lib.
17828 * nptl/Makefile (/librt.so): Always depend on
17829 "$(shared-thread-library)".
17830
17831 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17832
17833 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17834 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17835 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17836 (___tls_get_addr).
17837 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17838 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17839 "-O2 -march=i686".
17840 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17841 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17842 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17843 * sysdeps/gnu/glob-lstat-compat.c: New file.
17844 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17845 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17846
17847 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17848
17849 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17850 Reserve 16 chars to reloc_addr before calling _itoa_word.
17851
17852 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17853
17854 [BZ #22678]
17855 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17856 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17857
17858 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17859 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17860
17861 * resource/tst-getrlimit.c: Add copyright header.
17862
17863 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17864 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17865
17866 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17867 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17868 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17869 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17870 instead.
17871 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17872 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17873 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17874 RLIM64_INFINITY): Fix values to match the kernel ones.
17875 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17876 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17877 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17878 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17879 getrlimit64@@GLIBC_2_27.
17880 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17881 and setrlimit64.
17882 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17883 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17884 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17885 setrlimit, getrlimit64 and setrlimit64.
17886
17887 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17888
17889 [BZ #22648]
17890 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17891 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17892
17893 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17894
17895 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17896 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17897 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17898
17899 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17900
17901 [BZ #15479]
17902 [BZ #22666]
17903 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17904 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17905
17906 [BZ #15479]
17907 [BZ #22665]
17908 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17909 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17910 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17911 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17912
17913 2018-01-04 Florian Weimer <fweimer@redhat.com>
17914
17915 [BZ #22667]
17916 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17917 Align the stack before calling exit.
17918 * stdlib/tst-makecontext-align.c: New file.
17919 * stdlib/Makefile (tests): Add tst-makecontext-align.
17920
17921 2018-01-04 Florian Weimer <fweimer@redhat.com>
17922
17923 Add support for calling dlvsym from libc.so.
17924 * include/dlfcn.h (__libc_dlvsym): Declare.
17925 * elf/Makefile (tests-static-internal): Add
17926 tst-libc_dlvsym-static.
17927 (tests-internal): Add tst-libc_dlvsym.
17928 (modules-names): Add tst-libc_dlvsym-dso.
17929 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17930 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17931 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17932 object tst-libc_dlvsym-dso.so needs to be built before running
17933 these tests.
17934 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17935 * elf/Versions: Export __libc_dlvsym.
17936 * elf/dl-libc.c (struct do_dlvsym_args): New.
17937 (do_dlvsym, __libc_dlvsym): New functions.
17938 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17939 (_dl_open_hook2): New variable.
17940 (__libc_register_dl_open_hook): Set it.
17941 * elf/tst-libc_dlvsym-dso.c: New file.
17942 * elf/tst-libc_dlvsym-static.c: Likewise.
17943 * elf/tst-libc_dlvsym.c: Likewise.
17944 * elf/tst-libc_dlvsym.h: Likewise.
17945
17946 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17947
17948 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17949 include <sys/mount.h>.
17950
17951 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17952
17953 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17954 Add __NO_MATH_ERRNO__ check.
17955
17956 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17957
17958 * sysdeps/mips/mips32/libm-test-ulps: Update.
17959 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17960
17961 2018-01-02 Florian Weimer <fweimer@redhat.com>
17962
17963 * misc/tst-pselect.c: Add copyright header.
17964
17965 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17966
17967 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17968 comment.
17969 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17970 comment.
17971 (settrlimit): Rename into setrlimit.
17972 (__sttrlimit): Rename into __setrlimit.
17973
17974 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17975 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17976 never defined in that case.
17977
17978 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17979
17980 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17981
17982 * sysdeps/arm/libm-test-ulps: Update.
17983
17984 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17985 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17986
17987 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17988
17989 * NEWS: Add cosf and sincosf to list of optimized functions.
17990
17991 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17992
17993 [BZ #22660]
17994 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17995 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17996 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17997 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17998
17999 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18000
18001 [BZ #22433]
18002 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18003
18004 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18005 making a copy of it.
18006
18007 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18008
18009 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18010 trailing whitespace removed.
18011 * scripts/config.guess: Update to version 2018-01-01.
18012 * scripts/config.sub: Update to version 2018-01-01.
18013 * scripts/move-if-change: Update from gnulib.
18014
18015 * NEWS: Update copyright dates.
18016 * catgets/gencat.c (print_version): Likewise.
18017 * csu/version.c (banner): Likewise.
18018 * debug/catchsegv.sh: Likewise.
18019 * debug/pcprofiledump.c (print_version): Likewise.
18020 * debug/xtrace.sh (do_version): Likewise.
18021 * elf/ldconfig.c (print_version): Likewise.
18022 * elf/ldd.bash.in: Likewise.
18023 * elf/pldd.c (print_version): Likewise.
18024 * elf/sotruss.sh: Likewise.
18025 * elf/sprof.c (print_version): Likewise.
18026 * iconv/iconv_prog.c (print_version): Likewise.
18027 * iconv/iconvconfig.c (print_version): Likewise.
18028 * locale/programs/locale.c (print_version): Likewise.
18029 * locale/programs/localedef.c (print_version): Likewise.
18030 * login/programs/pt_chown.c (print_version): Likewise.
18031 * malloc/memusage.sh (do_version): Likewise.
18032 * malloc/memusagestat.c (print_version): Likewise.
18033 * malloc/mtrace.pl: Likewise.
18034 * manual/libc.texinfo: Likewise.
18035 * nptl/version.c (banner): Likewise.
18036 * nscd/nscd.c (print_version): Likewise.
18037 * nss/getent.c (print_version): Likewise.
18038 * nss/makedb.c (print_version): Likewise.
18039 * posix/getconf.c (main): Likewise.
18040 * scripts/test-installation.pl: Likewise.
18041 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18042
18043 * All files with FSF copyright notices: Update copyright dates
18044 using scripts/update-copyrights.
18045 * locale/programs/charmap-kw.h: Regenerated.
18046 * locale/programs/locfile-kw.h: Likewise.
18047
18048 2017-12-31 Zack Weinberg <zackw@panix.com>
18049
18050 * libio/bits/libio-ldbl.h: Correct check for improper
18051 inclusion. Add own multiple include guard.
18052
18053 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18054 Dmitry V. Levin <ldv@altlinux.org>
18055
18056 [BZ #22625]
18057 CVE-2017-16997
18058 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18059 string token expansion. Check for NULL pointer or empty string possibly
18060 returned by expand_dynamic_string_token.
18061 (decompose_rpath): Check for empty path after dynamic string
18062 token expansion.
18063
18064 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18065
18066 [BZ #22433]
18067 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18068
18069 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18070 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18071 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18072 and PTRACE_SYSCALL.
18073 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18074 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18075 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18076 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18077 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18078 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18079
18080 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18081 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18082 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18083 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18084 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18085 bits/ptrace-shared.h.
18086 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18087 <bits/ptrace-shared.h>.
18088 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18089 __ptrace_peeksiginfo_flags, ptrace): Remove.
18090 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18091 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18092 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18093 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18094 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18095
18096 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18097
18098 [BZ #17804]
18099 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18100 end of the loop. Improve comments.
18101
18102 2017-12-29 Zack Weinberg <zackw@panix.com>
18103
18104 [BZ #22615]
18105 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18106 might be set on success.
18107
18108 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18109
18110 [BZ #22611]
18111 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18112 is unchanged on success.
18113
18114 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18115
18116 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18117 updated.
18118 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18119 expand_dynamic_string_token): Likewise.
18120 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18121 is_path argument.
18122
18123 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18124 contains ':'.
18125
18126 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18127 is set and name contains ':', and all code depending on these checks.
18128
18129 2017-12-24 Zack Weinberg <zackw@panix.com>
18130
18131 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18132 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18133 respectively.
18134 * libio/libio.h: Rename the original version of this file to
18135 libio/bits/libio.h. Error out if not included by stdio.h or the
18136 stub libio.h.
18137 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18138 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18139 if not included by bits/libio.h or the stub _G_config.h.
18140 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18141 sysdeps/unix/sysv/linux/bits. Error out if not included by
18142 bits/libio.h or the stub _G_config.h.
18143 * libio/stdio.h: Include bits/libio.h, not libio.h.
18144 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18145 well as libio.h and _G_config.h.
18146
18147 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18148 * libio/strfile.h, stdio-common/vfscanf.c
18149 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18150 Include stdio.h, not _G_config.h nor libio.h.
18151 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18152 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18153
18154 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18155
18156 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18157
18158 [BZ #22347]
18159 * stdlib/getrandom.c (getrandom): Fix comment.
18160 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18161
18162 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18163
18164 [BZ #21161]
18165 * manual/arith.texi (strtoul): Fix a typo.
18166
18167 [BZ #22596]
18168 * manual/arith.texi (finite): Fix the description of the return
18169 value.
18170
18171 2017-12-22 Eric Blake <ebb9@byu.net>
18172
18173 Avoid gcc warnings on cygwin
18174 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18175 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18176 Avoid unused variable.
18177
18178 2017-12-22 Florian Weimer <fweimer@redhat.com>
18179
18180 * io/Makefile (routines): Add copy_file_range.
18181 (tests): Add tst-copy_file_range.
18182 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18183 * io/Versions (GLIBC_2.27): Export copy_file_range.
18184 * io/copy_file_range-compat.c: New file.
18185 * io/copy_file_range.c: Likewise.
18186 * io/tst-copy_file_range-compat.c: Likewise.
18187 * io/tst-copy_file_range.c: Likewise.
18188 * manual/llio.texi (Copying File Data): New section.
18189 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18190 * support/Makefile (libsupport-routines): Add support-xfstat,
18191 xftruncate, xlseek.
18192 * support/support-xfstat.c: New file.
18193 * support/xftruncate.c: Likewise.
18194 * support/xlseek.c: Likewise.
18195 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18196 * sysdeps/unix/sysv/linux/**.abilist: Update.
18197 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18198
18199 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18200
18201 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18202 disable-multi-arch variant to aarch64-linux-gnu.
18203
18204 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18205
18206 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18207 trailing whitespace removed.
18208 * scripts/config.guess: Update to version 2017-12-17.
18209 * scripts/config.sub: Update to version 2017-11-23.
18210 * scripts/install-sh: Update to version 2017-09-23.17.
18211 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18212
18213 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18214
18215 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18216 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18217 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18218 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18219 * sysdeps/tile/crtn.S: Likewise.
18220 * sysdeps/tile/dl-start.S (_start): Likewise.
18221 * sysdeps/tile/dl-trampoline.S: Likewise.
18222 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18223 * sysdeps/tile/start.S (_start): Likewise.
18224 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18225 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18226 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18227 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18228 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18229 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18230 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18231
18232 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18233 comment.
18234 * sysdeps/tile/preconfigure: Remove tilegx folder.
18235 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18236 * sysdeps/tile/Implies: ... here.
18237 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18238 * sysdeps/tile/Makefile: ... here.
18239 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18240 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18241 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18242 * sysdeps/tile/bits/wordsize.h: ... here.
18243 * sysdeps/tile/tilegx/*: Move to ...
18244 * sysdeps/tile/*: ... here.
18245 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18246 * sysdeps/tile/tilegx32/Implies: ... here.
18247 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18248 * sysdeps/tile/tilegx64/Implies: ... here.
18249 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18250 to ...
18251 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18252 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18253 * sysdeps/unix/sysv/linux/tile/*: ... here.
18254 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18255 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18256 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18257 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18258
18259 * README: Remove tilepro-*-linux-gnu from supported architecture.
18260 * scripts/build-many-glibcs.py: Likewise.
18261 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18262 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18263 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18264 elf_machine_matches_host, elf_machine_dynamic,
18265 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18266 howto, elf_machine_rela): Likewise.
18267 * sysdeps/tile/dl-start.S (_start): Likewise.
18268 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18269 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18270 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18271 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18272 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18273 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18274 Likewise.
18275 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18276 * sysdeps/tile/preconfigure: Likewise.
18277 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18278 POINTER_CHK_GUARD): Likewise.
18279 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18280 * sysdeps/tile/start.S (_start): Likewise.
18281 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18282 Likewise.
18283 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18284 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18285 CMOVNEZ): Remove.
18286 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18287 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18288 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18289 Likewise.
18290 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18291 * sysdeps/tile/tilepro/Implies: Remove file.
18292 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18293 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18294 * sysdeps/tile/tilepro/memchr.c: Likewise.
18295 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18296 * sysdeps/tile/tilepro/memset.c: Likewise.
18297 * sysdeps/tile/tilepro/memusage.h: Likewise.
18298 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18299 * sysdeps/tile/tilepro/strchr.c: Likewise.
18300 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18301 * sysdeps/tile/tilepro/strlen.c: Likewise.
18302 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18303 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18304 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18305 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18306 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18307 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18308 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18309 Likewise.
18310 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18311 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18312 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18313 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18314 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18315 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18316 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18317 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18318 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18319 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18320 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18321 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18322 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18323 tilepro mention in comment.
18324
18325 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18326 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18327 * nptl/pthread_join_common.c: New file: common function used on
18328 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18329 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18330 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18331 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18332 (cleanup): Move definition to pthread_join_common.c.
18333 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18334 Remove superflous checks.
18335 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18336 Likewise.
18337
18338 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18339
18340 * sysdeps/aarch64/libm-test-ulps: Update.
18341
18342 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18343
18344 * sysdeps/aarch64/memset.S (MEMSET): Define.
18345
18346 2017-12-20 Florian Weimer <fweimer@redhat.com>
18347
18348 [BZ #22635]
18349 nptl: Provide full implementation of pthread_self in libc.so.
18350 * nptl/Makefile (routines): Add pthread_self.
18351 (libpthread-routines): Replace pthread_self with
18352 compat-pthread_self.
18353 * nptl/forward.c (pthread_self): Remove.
18354 * nptl/nptl-init.c (pthread_functions): Do not initialize
18355 ptr_pthread_self.
18356 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18357 * nptl/compat-pthread_self.c: New file.
18358 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18359 Remove ptr_pthread_self.
18360
18361 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18362
18363 * posix/regcomp.c: Fix spelling in comments.
18364 * posix/regex.h: Likewise.
18365 * posix/regex_internal.c: Likewise.
18366 * posix/regexec.c: Likewise.
18367
18368 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18369
18370 [BZ #22377]
18371 * math/Makefile [C++] (tests): Add test for iseqsig.
18372 * math/math.h [C++] (iseqsig): New implementation, which does
18373 not rely on __MATH_TG/__builtin_types_compatible_p.
18374 * math/test-math-iseqsig.cc: New file.
18375 * sysdeps/powerpc/powerpc64le/Makefile
18376 (CFLAGS-test-math-iseqsig.cc): New variable.
18377
18378 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18379
18380 * elf/dl-load.c (is_trusted_path): Remove.
18381 (fillin_rpath): Remove check_trusted argument and its use,
18382 all callers changed.
18383
18384 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18385
18386 [BZ #22630]
18387 * Makeconfig (link-pie-before-libc): Replace -pie with
18388 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18389 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18390 (tst-dlopen-aout-no-pie): New.
18391 (LDFLAGS-tst-prelink): Removed.
18392 (tst-prelink-no-pie): New.
18393 (LDFLAGS-tst-main1): Removed.
18394 (tst-main1-no-pie): New.
18395 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18396 (tst-gmon-no-pie): New.
18397
18398 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18399
18400 * manual/install.texi: Document that --enable-static-pie
18401 implies PIE.
18402 * INSTALL: Regenerated.
18403
18404 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18405
18406 [BZ #21309]
18407 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18408 unsigned.
18409
18410 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18411
18412 Revert:
18413
18414 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18415
18416 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18417
18418 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18419
18420 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18421 <errno.h>. Include "eexp.tbl".
18422 (half): New constant.
18423 (one): Likewise.
18424 (__ieee754_exp): Rewrite.
18425 (__slowexp): Remove prototype.
18426 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18427 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18428 * sysdeps/i386/fpu/slowexp.c: Likewise.
18429 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18430 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18431 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18432 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18433 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18434 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18435 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18436 comment.
18437 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18438 (CPPFLAGS-slowexp.c): Remove variable.
18439 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18440 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18441 (CFLAGS-slowexp-fma.c): Remove variable.
18442 (CFLAGS-slowexp-fma4.c): Likewise.
18443 (CFLAGS-slowexp-avx.c): Likewise.
18444 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18445 define as macro.
18446 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18447 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18448 * math/Makefile (type-double-routines): Remove slowexp.
18449 * manual/probes.texi (slowexp_p6): Remove.
18450 (slowexp_p32): Likewise.
18451
18452 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18453
18454 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18455 arithmetic.
18456
18457 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18458
18459 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18460
18461 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18462
18463 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18464
18465 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18466 <errno.h>. Include "eexp.tbl".
18467 (half): New constant.
18468 (one): Likewise.
18469 (__ieee754_exp): Rewrite.
18470 (__slowexp): Remove prototype.
18471 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18472 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18473 * sysdeps/i386/fpu/slowexp.c: Likewise.
18474 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18475 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18476 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18477 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18478 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18479 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18480 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18481 comment.
18482 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18483 (CPPFLAGS-slowexp.c): Remove variable.
18484 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18485 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18486 (CFLAGS-slowexp-fma.c): Remove variable.
18487 (CFLAGS-slowexp-fma4.c): Likewise.
18488 (CFLAGS-slowexp-avx.c): Likewise.
18489 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18490 define as macro.
18491 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18492 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18493 * math/Makefile (type-double-routines): Remove slowexp.
18494 * manual/probes.texi (slowexp_p6): Remove.
18495 (slowexp_p32): Likewise.
18496
18497 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18498 James Clarke <jrtc27@jrtc27.com>
18499
18500 [BZ #22603]
18501 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18502 addition.
18503
18504 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18505
18506 [BZ #22605]
18507 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18508 code.
18509
18510 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18511
18512 [BZ #22563]
18513 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18514 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18515 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18516 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18517 to feature_1.
18518
18519 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18520
18521 [BZ #22563]
18522 * bits/types/__cancel_jmp_buf_tag.h: New file.
18523 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18524 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18525 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18526 * nptl/Makefile (headers): Add
18527 bits/types/__cancel_jmp_buf_tag.h.
18528 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18529 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18530 * sysdeps/nptl/pthread.h: Include
18531 <bits/types/__cancel_jmp_buf_tag.h>.
18532 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18533 __cancel_jmp_buf.
18534 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18535
18536 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18537
18538 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18539 --enable-static-pie variants to x86_64, x32 and i686.
18540
18541 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18542
18543 [BZ #22631]
18544 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18545 argument for attrubutes. All callers changed.
18546 (__inline_mathop1): Likewise. All callers changed.
18547 (__inline_mathop): Likewise. All callers changed.
18548 [__USE_MISC] (scalbn): Use __inline_forward instead of
18549 __inline_forward_c.
18550 [__USE_ISOC99] (scalbln): Likewise.
18551 [__USE_ISOC99] (nearbyint): Likewise.
18552 [__USE_ISOC99] (lrint): Likewise.
18553 [__USE_MISC] (scalbnf): Likewise.
18554 [__USE_ISOC99] (scalblnf): Likewise.
18555 [__USE_ISOC99] (nearbyintf): Likewise.
18556 [__USE_ISOC99] (lrintf): Likewise.
18557 [__USE_MISC] (scalbnl): Likewise.
18558 [__USE_ISOC99] (scalblnl): Likewise.
18559 [__USE_ISOC99] (nearbyintl): Likewise.
18560 [__USE_ISOC99] (lrintl): Likewise.
18561 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18562 __inline_mathop and __m81_defun changed.
18563
18564 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18565 CPU or FPU for ARM hard-float configurations.
18566
18567 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18568
18569 * nptl/tst-attr3.c: Include <libc-diag.h>.
18570 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18571
18572 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18573
18574 * string/tester.c (test_strncat): Also disable -Warray-bounds
18575 warnings for two tests.
18576
18577 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18578
18579 [BZ #22614]
18580 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18581 $(cc-pie-default) == yes.
18582 * config.make.in (cc-pie-default): New.
18583 * configure.ac (libc_cv_pie_default): Renamed to ...
18584 (libc_cv_cc_pie_default): This.
18585 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18586 * configure: Regenerated.
18587
18588 2017-12-18 Florian Weimer <fweimer@redhat.com>
18589
18590 [BZ #20204]
18591 ld.so: Harden dl-libc/libdl hooks.
18592 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18593 (rtld_active): New function.
18594 * dlfcn/dladdr.c (__dladdr): Call it.
18595 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18596 * dlfcn/dlclose.c (__dlcose): Likewise.
18597 * dlfcn/dlerror.c (__dlerror): Likewise.
18598 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18599 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18600 * dlfcn/dlopen.c (__dlopen): Likewise.
18601 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18602 * dlfcn/dlsym.c (__dlsym): Likewise.
18603 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18604 * libio/vtables.c (_IO_vtable_check): Likewise.
18605 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18606 (__libc_dlclose): Likewise.
18607 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18608 assignment.
18609
18610 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18611
18612 [BZ #22446]
18613 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18614 buffers for readlink input and output.
18615
18616 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18617
18618 [BZ #22624]
18619 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18620 inhibit_stack_protector.
18621
18622 [BZ #22624]
18623 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18624 inhibit_stack_protector.
18625
18626 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18627
18628 [BZ #22627]
18629 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18630 code and invocation.
18631
18632 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18633
18634 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18635
18636 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18637
18638 [BZ #22505]
18639 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18640
18641 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18642
18643 * sysdeps/s390/fpu/libm-test-ulps: Update.
18644
18645 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18646
18647 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18648
18649 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18650
18651 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18652 constants to s_sincosf.h file.
18653 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18654 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18655 implementation.
18656 * sysdeps/ieee754/flt-32/s_sincosf.h:
18657 New file.
18658
18659 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18660
18661 [BZ #14681]
18662 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18663 before mtrace.
18664
18665 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18666
18667 [BZ #19574]
18668 * INSTALL: Regenerated.
18669 * Makeconfig (real-static-start-installed-name): New.
18670 (pic-default): Updated for --enable-static-pie.
18671 (pie-default): New for --enable-static-pie.
18672 (default-pie-ldflag): Likewise.
18673 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18674 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18675 Replace $(static-start-installed-name) with
18676 $(real-static-start-installed-name).
18677 (+prectorT): Updated for --enable-static-pie.
18678 (+postctorT): Likewise.
18679 (CFLAGS-.o): Add $(pie-default).
18680 (CFLAGS-.op): Likewise.
18681 * NEWS: Mention --enable-static-pie.
18682 * config.h.in (ENABLE_STATIC_PIE): New.
18683 * configure.ac (--enable-static-pie): New configure option.
18684 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18685 (have-static-pie): Likewise.
18686 Enable static PIE if linker supports --no-dynamic-linker.
18687 (ENABLE_STATIC_PIE): New AC_DEFINE.
18688 (enable-static-pie): New LIBC_CONFIG_VAR.
18689 * configure: Regenerated.
18690 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18691 gr$(start-installed-name) for --enable-static-pie.
18692 (extra-objs): Likewise.
18693 (install-lib): Likewise.
18694 (extra-objs): Add static-reloc.o and static-reloc.os
18695 ($(objpfx)$(start-installed-name)): Also depend on
18696 $(objpfx)static-reloc.o.
18697 ($(objpfx)r$(start-installed-name)): New.
18698 ($(objpfx)g$(start-installed-name)): Also depend on
18699 $(objpfx)static-reloc.os.
18700 ($(objpfx)gr$(start-installed-name)): New.
18701 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18702 in libc.a.
18703 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18704 initimage.
18705 * csu/static-reloc.c: New file.
18706 * elf/Makefile (routines): Add dl-reloc-static-pie.
18707 (elide-routines.os): Likewise.
18708 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18709 (tst-tls1-static-non-pie-no-pie): New.
18710 * elf/dl-reloc-static-pie.c: New file.
18711 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18712 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18713 STATIC_PIE_BOOTSTRAP.
18714 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18715 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18716 (tests-static): Likewise.
18717 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18718 (tst-gmon-static-no-pie): New.
18719 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18720 (CRT-tst-gmon-static-pie): Likewise.
18721 (tst-gmon-static-pie-ENV): Likewise.
18722 (tests-special): Likewise.
18723 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18724 (clean-tst-gmon-static-pie-data): Likewise.
18725 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18726 * gmon/tst-gmon-static-pie.c: New file.
18727 * manual/install.texi: Document --enable-static-pie.
18728 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18729 (_dl_get_dl_main_map): Likewise.
18730 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18731 * sysdeps/x86_64/configure.ac: Likewise.
18732 * sysdeps/i386/configure: Regenerated.
18733 * sysdeps/x86_64/configure: Likewise.
18734 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18735 (ASFLAGS-.op): Likewise.
18736
18737 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18738
18739 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18740 * posix/tst-mmap-offset.c (fname): Use /tmp.
18741 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18742
18743 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18744
18745 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18746
18747 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18748
18749 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18750 errno.
18751
18752 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18753
18754 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18755 --with-float=hard for arm-linux-gnueabihf configurations.
18756
18757 [BZ #14121]
18758 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18759 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18760 ($(mo-installed)): Use $(objpfx)%.mo.
18761 (realclean): Remove rule.
18762
18763 * po/Makefile (linguas): Remove rule and dependencies.
18764 (linguas.mo): Likewise.
18765 (.PHONY): Do not depend on linguas and linguas.mo.
18766 (podir): Remove variable.
18767 (pofiles): Likewise.
18768 [$(pofiles)] (%.po): Remove rule.
18769
18770 * sysdeps/sparc/sparc32/Makefile
18771 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18772 start-of-line whitespace in argument of echo.
18773 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18774 with whitespace. Generate __wrap_.udiv alias.
18775 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18776 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18777 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18778 * sysdeps/sparc/sparc32/urem.S: Likewise.
18779
18780 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18781
18782 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18783 for aligned inputs.
18784
18785 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18786
18787 * benchtests/bench-strcmp.c: Print output in JSON format.
18788
18789 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18790
18791 2017-12-14 Florian Weimer <fweimer@redhat.com>
18792
18793 [BZ #22607]
18794 CVE-2017-1000409
18795 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18796 the expanded path string.
18797
18798 2017-12-14 Florian Weimer <fweimer@redhat.com>
18799
18800 [BZ #22606]
18801 CVE-2017-1000408
18802 * elf/dl-load.c (system_dirs): Update comment.
18803 (nsystem_dirs_len): Use array_length.
18804 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18805
18806 2017-12-14 Florian Weimer <fweimer@redhat.com>
18807
18808 Simplify compiling most of support/ outside of glibc.
18809 * support/check_addrinfo.c: Include <string.h>.
18810 * support/check_dns_packet.c: Likewise.
18811 * support/check_hostent.c: Likewise.
18812 * support/support_can_chroot.c: Include <support/xunistd.h>.
18813 * support/support_format_addrinfo.c: Include <stdlib.h>
18814 * support/support_format_dns_packet.c: Include <stdbool.h>.
18815 * support/support_format_hostent.c: Include <stdlib.h>.
18816 * support/support_format_netent.c: Likewise.
18817 * support/support_write_string.c: Include <support/xunistd.h>.
18818 * support/xdlfcn.c: Include <stddef.h>.
18819
18820 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18821
18822 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18823
18824 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18825 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18826
18827 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18828 (sysdeps_routines): Add memset-niagara7.
18829 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18830 Likewise.
18831 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18832 file.
18833 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18834 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18835 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18836 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18837 Add niagara7 option.
18838 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18839 memset.
18840
18841 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18842 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18843 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18844 Likewise.
18845 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18846 New file.
18847 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18848 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18849 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18850 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18851 and __memmove_niagara7.
18852 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18853 Add niagara7 option.
18854 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18855 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18856 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18857 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18858 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18859
18860 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18861
18862 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18863 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18864 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18865 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18866
18867 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18868 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18869 _dl_sparc_cap_flags array.
18870 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18871
18872 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18873
18874 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18875 time whenever possible.
18876
18877 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18878
18879 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18880 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18881
18882 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18883
18884 * soft-fp/fmadf4.c: Move to ....
18885 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18886 * soft-fp/fmasf4.c: Move to ....
18887 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18888 * soft-fp/fmatf4.c: Move to ....
18889 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18890 * sysdeps/ieee754/soft-fp/Makefile: New file.
18891 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18892 * sysdeps/arm/preconfigure: Regenerated.
18893 * sysdeps/arm/nofpu/Implies: New file.
18894 * sysdeps/arm/s_fma.c: Remove file.
18895 * sysdeps/arm/s_fmaf.c: Likewise.
18896 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18897 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18898 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18899 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18900 * sysdeps/microblaze/s_fma.c: Remove file.
18901 * sysdeps/microblaze/s_fmaf.c: Likewise.
18902 * sysdeps/mips/mips32/nofpu/Implies: New file.
18903 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18904 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18905 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18906 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18907 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18908 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18909 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18910 implementation.
18911 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18912 * sysdeps/nios2/s_fma.c: Remove file.
18913 * sysdeps/nios2/s_fmaf.c: Likewise.
18914 * sysdeps/sh/nofpu/Implies: New file.
18915 * sysdeps/sh/s_fma.c: Remove file.
18916 * sysdeps/sh/s_fmaf.c: Likewise.
18917 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18918 * sysdeps/tile/s_fma.c: Remove file.
18919 * sysdeps/tile/s_fmaf.c: Likewise.
18920
18921 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18922
18923 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18924 Add s_cosf-sse2 and s_cosf-fma.
18925 (CFLAGS-s_cosf-fma.c): New.
18926 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18927 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18928 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18929
18930 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18931
18932 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18933
18934 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18935
18936 * libio/Makefile (tests): Add tst-bz22415.
18937 (tst-bz22415-ENV): New rule.
18938 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18939 (tests-special): Add tst-bz22415-mem.out.
18940 ($(objpfx)tst-bz22415-mem.out): New rule.
18941 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18942 in case of a successful seek operation.
18943 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18944 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18945 buffer is required.
18946 * libio/tst-bz22415.c: New test.
18947
18948 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18949
18950 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18951
18952 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18953 __IPC_64 to 0 to avoid IPC_64 being set.
18954
18955 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18956
18957 [BZ #22593]
18958 * math/bits/mathcalls.h (nextafter): Remove const.
18959 (nexttoward): Likewise.
18960
18961 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18962
18963 * configure.ac (--with-fp): Remove configure option.
18964 (with_fp_cond): New variable.
18965 (libc_cv_with_fp): New configure test. Use this variable instead
18966 of with_fp.
18967 * configure: Regenerated.
18968 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18969 * manual/install.texi (Configuring and compiling): Remove
18970 --without-fp.
18971 * INSTALL: Regenerated.
18972 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18973 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18974 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18975 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18976 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18977 use --without-fp to configure glibc.
18978
18979 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18980
18981 * manual/locale.texi (nl_langinfo): Fix a typo.
18982
18983 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18984
18985 [BZ #22588]
18986 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18987
18988 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18989
18990 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18991 (CFLAGS-argp-parse.c): Likewise.
18992 (CFLAGS-argp-fmtstream.c): Likewise.
18993 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18994 (CPPFLAGS-sha512-crypt.c): Likewise.
18995 (CPPFLAGS-md5-crypt.c): Likewise.
18996 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18997 (CFLAGS-stack_chk_fail_local.c): Likewise.
18998 (CFLAGS-backtrace.c): Likewise.
18999 (CFLAGS-sprintf_chk.c): Likewise.
19000 (CFLAGS-snprintf_chk.c): Likewise.
19001 (CFLAGS-vsprintf_chk.c): Likewise.
19002 (CFLAGS-vsnprintf_chk.c): Likewise.
19003 (CFLAGS-asprintf_chk.c): Likewise.
19004 (CFLAGS-vasprintf_chk.c): Likewise.
19005 (CFLAGS-obprintf_chk.c): Likewise.
19006 (CFLAGS-dprintf_chk.c): Likewise.
19007 (CFLAGS-vdprintf_chk.c): Likewise.
19008 (CFLAGS-printf_chk.c): Likewise.
19009 (CFLAGS-fprintf_chk.c): Likewise.
19010 (CFLAGS-vprintf_chk.c): Likewise.
19011 (CFLAGS-vfprintf_chk.c): Likewise.
19012 (CFLAGS-gets_chk.c): Likewise.
19013 (CFLAGS-fgets_chk.c): Likewise.
19014 (CFLAGS-fgets_u_chk.c): Likewise.
19015 (CFLAGS-fread_chk.c): Likewise.
19016 (CFLAGS-fread_u_chk.c): Likewise.
19017 (CFLAGS-swprintf_chk.c): Likewise.
19018 (CFLAGS-vswprintf_chk.c): Likewise.
19019 (CFLAGS-wprintf_chk.c): Likewise.
19020 (CFLAGS-fwprintf_chk.c): Likewise.
19021 (CFLAGS-vwprintf_chk.c): Likewise.
19022 (CFLAGS-vfwprintf_chk.c): Likewise.
19023 (CFLAGS-fgetws_chk.c): Likewise.
19024 (CFLAGS-fgetws_u_chk.c): Likewise.
19025 (CFLAGS-read_chk.c): Likewise.
19026 (CFLAGS-pread_chk.c): Likewise.
19027 (CFLAGS-pread64_chk.c): Likewise.
19028 (CFLAGS-recv_chk.c): Likewise.
19029 (CFLAGS-recvfrom_chk.c): Likewise.
19030 (CFLAGS-tst-longjmp_chk.c): Likewise.
19031 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19032 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19033 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19034 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19035 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19036 (CFLAGS-tst-chk1.c): Likewise.
19037 (CFLAGS-tst-chk2.c): Likewise.
19038 (CFLAGS-tst-chk3.c): Likewise.
19039 (CFLAGS-tst-chk4.cc): Likewise.
19040 (CFLAGS-tst-chk5.cc): Likewise.
19041 (CFLAGS-tst-chk6.cc): Likewise.
19042 (CFLAGS-tst-lfschk1.c): Likewise.
19043 (CFLAGS-tst-lfschk2.c): Likewise.
19044 (CFLAGS-tst-lfschk3.c): Likewise.
19045 (CFLAGS-tst-lfschk4.cc): Likewise.
19046 (CFLAGS-tst-lfschk5.cc): Likewise.
19047 (CFLAGS-tst-lfschk6.cc): Likewise.
19048 (CFLAGS-tst-ssp-1.c): Likewise.
19049 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19050 (CFLAGS-scandir64.c): Likewise.
19051 (CFLAGS-scandir-tail.c): Likewise.
19052 (CFLAGS-scandir64-tail.c): Likewise.
19053 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19054 (CFLAGS-dl-tunables.c): Likewise.
19055 (CFLAGS-dl-runtime.c): Likewise.
19056 (CFLAGS-dl-lookup.c): Likewise.
19057 (CFLAGS-dl-iterate-phdr.c): Likewise.
19058 (CFLAGS-vismain.c): Likewise.
19059 (CFLAGS-tst-linkall-static.c): Likewise.
19060 (CFLAGS-tst-linkall-static.c): Likewise.
19061 (CPPFLAGS-dl-load.c): Likewise.
19062 (CFLAGS-ldconfig.c): Likewise.
19063 (CFLAGS-dl-cache.c): Likewise.
19064 (CFLAGS-cache.c): Likewise.
19065 (CFLAGS-rtld.c): Likewise.
19066 (CFLAGS-multiload.c): Likewise.
19067 (CFLAGS-filtmod1.c): Likewise.
19068 (CFLAGS-tst-align.c): Likewise.
19069 (CFLAGS-tst-align2.c): Likewise.
19070 (CFLAGS-tst-alignmod.c): Likewise.
19071 (CFLAGS-tst-alignmod2.c): Likewise.
19072 (CPPFLAGS-tst-execstack.c): Likewise.
19073 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19074 (CFLAGS-tst-latepthreadmod.c): Likewise.
19075 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19076 (CFLAGS-getgrnam_r.c): Likewise.
19077 (CFLAGS-getgrent_r.c): Likewise.
19078 (CFLAGS-getgrent.c): Likewise.
19079 (CFLAGS-fgetgrent.c): Likewise.
19080 (CFLAGS-fgetgrent_r.c): Likewise.
19081 (CFLAGS-putgrent.c): Likewise.
19082 (CFLAGS-initgroups.c): Likewise.
19083 (CFLAGS-getgrgid.c): Likewise.
19084 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19085 (CFLAGS-getsgent.c): Likewise.
19086 (CFLAGS-fgetsgent.c): Likewise.
19087 (CFLAGS-fgetsgent_r.c): Likewise.
19088 (CFLAGS-putsgent.c): Likewise.
19089 (CFLAGS-getsgnam.c): Likewise.
19090 (CFLAGS-getsgnam_r.c): Likewise.
19091 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19092 (CFLAGS-iconv_charmap.c): Likewise.
19093 (CFLAGS-dummy-repertoire.c): Likewise.
19094 (CFLAGS-charmap.c): Likewise.
19095 (CFLAGS-linereader.c): Likewise.
19096 (CFLAGS-simple-hash.c): Likewise.
19097 (CFLAGS-gconv_conf.c): Likewise.
19098 (CFLAGS-iconvconfig.c): Likewise.
19099 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19100 (CFLAGS-gethstbyad.c): Likewise.
19101 (CFLAGS-gethstbynm_r.c): Likewise.
19102 (CFLAGS-gethstbynm.c): Likewise.
19103 (CFLAGS-gethstbynm2_r.c): Likewise.
19104 (CFLAGS-gethstbynm2.c): Likewise.
19105 (CFLAGS-gethstent_r.c): Likewise.
19106 (CFLAGS-gethstent.c): Likewise.
19107 (CFLAGS-rcmd.c): Likewise.
19108 (CFLAGS-getnetbynm_r.c): Likewise.
19109 (CFLAGS-getnetbynm.c): Likewise.
19110 (CFLAGS-getnetbyad_r.c): Likewise.
19111 (CFLAGS-getnetbyad.c): Likewise.
19112 (CFLAGS-getnetent_r.c): Likewise.
19113 (CFLAGS-getnetent.c): Likewise.
19114 (CFLAGS-getaliasent_r.c): Likewise.
19115 (CFLAGS-getaliasent.c): Likewise.
19116 (CFLAGS-getrpcent_r.c): Likewise.
19117 (CFLAGS-getrpcent.c): Likewise.
19118 (CFLAGS-getservent_r.c): Likewise.
19119 (CFLAGS-getservent.c): Likewise.
19120 (CFLAGS-getprtent_r.c): Likewise.
19121 (CFLAGS-getprtent.c): Likewise.
19122 (CFLAGS-either_ntoh.c): Likewise.
19123 (CFLAGS-either_hton.c): Likewise.
19124 (CFLAGS-getnetgrent.c): Likewise.
19125 (CFLAGS-getnetgrent_r.c): Likewise.
19126 (CFLAGS-tst-checks-posix.c): Likewise.
19127 (CFLAGS-tst-sockaddr.c): Likewise.
19128 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19129 (CFLAGS-tst-translit.c): Likewise.
19130 (CFLAGS-tst-gettext2.c): Likewise.
19131 (CFLAGS-tst-codeset.c): Likewise.
19132 (CFLAGS-tst-gettext3.c): Likewise.
19133 (CFLAGS-tst-gettext4.c): Likewise.
19134 (CFLAGS-tst-gettext5.c): Likewise.
19135 (CFLAGS-tst-gettext6.c): Likewise.
19136 * io/Makefile (CFLAGS-open.c): Likewise.
19137 (CFLAGS-open64.c): Likewise.
19138 (CFLAGS-creat.c): Likewise.
19139 (CFLAGS-creat64.c): Likewise.
19140 (CFLAGS-fcntl.c): Likewise.
19141 (CFLAGS-poll.c): Likewise.
19142 (CFLAGS-ppoll.c): Likewise.
19143 (CFLAGS-lockf.c): Likewise.
19144 (CFLAGS-statfs.c): Likewise.
19145 (CFLAGS-fstatfs.c): Likewise.
19146 (CFLAGS-statvfs.c): Likewise.
19147 (CFLAGS-fstatvfs.c): Likewise.
19148 (CFLAGS-fts.c): Likewise.
19149 (CFLAGS-fts64.c): Likewise.
19150 (CFLAGS-ftw.c): Likewise.
19151 (CFLAGS-ftw64.c): Likewise.
19152 (CFLAGS-lockf.c): Likewise.
19153 (CFLAGS-posix_fallocate.c): Likewise.
19154 (CFLAGS-posix_fallocate64.c): Likewise.
19155 (CFLAGS-fallocate.c): Likewise.
19156 (CFLAGS-fallocate64.c): Likewise.
19157 (CFLAGS-read.c): Likewise.
19158 (CFLAGS-write.c): Likewise.
19159 (CFLAGS-test-stat.c): Likewise.
19160 (CFLAGS-test-lfs.c): Likewise.
19161 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19162 (CFLAGS-fputc.c): Likewise.
19163 (CFLAGS-fputwc.c): Likewise.
19164 (CFLAGS-freopen64.c): Likewise.
19165 (CFLAGS-freopen.c): Likewise.
19166 (CFLAGS-fseek.c): Likewise.
19167 (CFLAGS-fseeko64.c): Likewise.
19168 (CFLAGS-fseeko.c): Likewise.
19169 (CFLAGS-ftello64.c): Likewise.
19170 (CFLAGS-ftello.c): Likewise.
19171 (CFLAGS-fwide.c): Likewise.
19172 (CFLAGS-genops.c): Likewise.
19173 (CFLAGS-getc.c): Likewise.
19174 (CFLAGS-getchar.c): Likewise.
19175 (CFLAGS-getwc.c): Likewise.
19176 (CFLAGS-getwchar.c): Likewise.
19177 (CFLAGS-iofclose.c): Likewise.
19178 (CFLAGS-iofflush.c): Likewise.
19179 (CFLAGS-iofgetpos64.c): Likewise.
19180 (CFLAGS-iofgetpos.c): Likewise.
19181 (CFLAGS-iofgets.c): Likewise.
19182 (CFLAGS-iofgetws.c): Likewise.
19183 (CFLAGS-iofputs.c): Likewise.
19184 (CFLAGS-iofputws.c): Likewise.
19185 (CFLAGS-iofread.c): Likewise.
19186 (CFLAGS-iofsetpos64.c): Likewise.
19187 (CFLAGS-iofsetpos.c): Likewise.
19188 (CFLAGS-ioftell.c): Likewise.
19189 (CFLAGS-iofwrite.c): Likewise.
19190 (CFLAGS-iogetdelim.c): Likewise.
19191 (CFLAGS-iogetline.c): Likewise.
19192 (CFLAGS-iogets.c): Likewise.
19193 (CFLAGS-iogetwline.c): Likewise.
19194 (CFLAGS-ioputs.c): Likewise.
19195 (CFLAGS-ioseekoff.c): Likewise.
19196 (CFLAGS-ioseekpos.c): Likewise.
19197 (CFLAGS-iosetbuffer.c): Likewise.
19198 (CFLAGS-iosetvbuf.c): Likewise.
19199 (CFLAGS-ioungetc.c): Likewise.
19200 (CFLAGS-ioungetwc.c): Likewise.
19201 (CFLAGS-oldfileops.c): Likewise.
19202 (CFLAGS-oldiofclose.c): Likewise.
19203 (CFLAGS-oldiofgetpos64.c): Likewise.
19204 (CFLAGS-oldiofgetpos.c): Likewise.
19205 (CFLAGS-oldiofsetpos64.c): Likewise.
19206 (CFLAGS-oldiofsetpos.c): Likewise.
19207 (CFLAGS-peekc.c): Likewise.
19208 (CFLAGS-putc.c): Likewise.
19209 (CFLAGS-putchar.c): Likewise.
19210 (CFLAGS-putwc.c): Likewise.
19211 (CFLAGS-putwchar.c): Likewise.
19212 (CFLAGS-rewind.c): Likewise.
19213 (CFLAGS-wfileops.c): Likewise.
19214 (CFLAGS-wgenops.c): Likewise.
19215 (CFLAGS-oldiofopen.c): Likewise.
19216 (CFLAGS-iofopen.c): Likewise.
19217 (CFLAGS-iofopen64.c): Likewise.
19218 (CFLAGS-oldtmpfile.c): Likewise.
19219 (CFLAGS-tst_putwc.c): Likewise.
19220 * locale/Makefile (CFLAGS-md5.c): Likewise.
19221 (CFLAGS-charmap.c): Likewise.
19222 (CFLAGS-locfile.c): Likewise.
19223 (CFLAGS-charmap-dir.c): Likewise.
19224 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19225 (CFLAGS-getpt.c): Likewise.
19226 (CFLAGS-pt_chown.c): Likewise.
19227 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19228 (CFLAGS-obstack.c): Likewise.
19229 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19230 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19231 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19232 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19233 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19234 (CFLAGS-test-tgmath.c): Likewise.
19235 (CFLAGS-test-tgmath2.c): Likewise.
19236 (CFLAGS-test-tgmath-ret.c): Likewise.
19237 (CFLAGS-test-powl.c): Likewise.
19238 (CFLAGS-test-snan.c): Likewise.
19239 (CFLAGS-test-signgam-finite.c): Likewise.
19240 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19241 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19242 (CFLAGS-test-signgam-uchar.c): Likewise.
19243 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19244 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19245 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19246 (CFLAGS-test-signgam-uint.c): Likewise.
19247 (CFLAGS-test-signgam-uint-init.c): Likewise.
19248 (CFLAGS-test-signgam-uint-static.c): Likewise.
19249 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19250 (CFLAGS-test-signgam-ullong.c): Likewise.
19251 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19252 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19253 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19254 (CFLAGS-test-math-cxx11.cc): Likewise.
19255 (CFLAGS-test-math-isinff.cc): Likewise.
19256 (CFLAGS-test-math-iszero.cc): Likewise.
19257 (CFLAGS-test-math-issignaling.cc): Likewise.
19258 (CFLAGS-test-math-iscanonical.cc): Likewise.
19259 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19260 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19261 (CFLAGS-test-flt-eval-method.c): Likewise.
19262 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19263 (CFLAGS-test-finite-macros.c): Likewise.
19264 * misc/Makefile (CFLAGS-select.c): Likewise.
19265 (CFLAGS-tsearch.c): Likewise.
19266 (CFLAGS-lsearch.c): Likewise.
19267 (CFLAGS-pselect.c): Likewise.
19268 (CFLAGS-readv.c): Likewise.
19269 (CFLAGS-writev.c): Likewise.
19270 (CFLAGS-preadv.c): Likewise.
19271 (CFLAGS-preadv64.c): Likewise.
19272 (CFLAGS-pwritev.c): Likewise.
19273 (CFLAGS-pwritev64.c): Likewise.
19274 (CFLAGS-preadv2.c): Likewise.
19275 (CFLAGS-preadv64v2.c): Likewise.
19276 (CFLAGS-pwritev2.c): Likewise.
19277 (CFLAGS-pwritev64v2.c): Likewise.
19278 (CFLAGS-usleep.c): Likewise.
19279 (CFLAGS-syslog.c): Likewise.
19280 (CFLAGS-error.c): Likewise.
19281 (CFLAGS-getpass.c): Likewise.
19282 (CFLAGS-mkstemp.c): Likewise.
19283 (CFLAGS-mkstemp64.c): Likewise.
19284 (CFLAGS-getsysstats.c): Likewise.
19285 (CFLAGS-getusershell.c): Likewise.
19286 (CFLAGS-err.c): Likewise.
19287 (CFLAGS-tst-tsearch.c): Likewise.
19288 (CFLAGS-msync.c): Likewise.
19289 (CFLAGS-fdatasync.c): Likewise.
19290 (CFLAGS-fsync.c): Likewise.
19291 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19292 (CFLAGS-unwind.c): Likewise.
19293 (CFLAGS-unwind-forcedunwind.c): Likewise.
19294 (CFLAGS-pthread_cancel.c): Likewise.
19295 (CFLAGS-pthread_setcancelstate.c): Likewise.
19296 (CFLAGS-pthread_setcanceltype.c): Likewise.
19297 (CFLAGS-cancellation.c): Likewise.
19298 (CFLAGS-libc-cancellation.c): Likewise.
19299 (CFLAGS-pthread_exit.c): Likewise.
19300 (CFLAGS-forward.c): Likewise.
19301 (CFLAGS-pthread_testcancel.c): Likewise.
19302 (CFLAGS-pthread_join.c): Likewise.
19303 (CFLAGS-pthread_timedjoin.c): Likewise.
19304 (CFLAGS-pthread_once.c): Likewise.
19305 (CFLAGS-pthread_cond_wait.c): Likewise.
19306 (CFLAGS-sem_wait.c): Likewise.
19307 (CFLAGS-sem_timedwait.c): Likewise.
19308 (CFLAGS-fcntl.c): Likewise.
19309 (CFLAGS-lockf.c): Likewise.
19310 (CFLAGS-pread.c): Likewise.
19311 (CFLAGS-pread64.c): Likewise.
19312 (CFLAGS-pwrite.c): Likewise.
19313 (CFLAGS-pwrite64.c): Likewise.
19314 (CFLAGS-wait.c): Likewise.
19315 (CFLAGS-waitpid.c): Likewise.
19316 (CFLAGS-sigwait.c): Likewise.
19317 (CFLAGS-msgrcv.c): Likewise.
19318 (CFLAGS-msgsnd.c): Likewise.
19319 (CFLAGS-tcdrain.c): Likewise.
19320 (CFLAGS-open.c): Likewise.
19321 (CFLAGS-open64.c): Likewise.
19322 (CFLAGS-pause.c): Likewise.
19323 (CFLAGS-recv.c): Likewise.
19324 (CFLAGS-send.c): Likewise.
19325 (CFLAGS-accept.c): Likewise.
19326 (CFLAGS-sendto.c): Likewise.
19327 (CFLAGS-connect.c): Likewise.
19328 (CFLAGS-recvfrom.c): Likewise.
19329 (CFLAGS-recvmsg.c): Likewise.
19330 (CFLAGS-sendmsg.c): Likewise.
19331 (CFLAGS-close.c): Likewise.
19332 (CFLAGS-read.c): Likewise.
19333 (CFLAGS-write.c): Likewise.
19334 (CFLAGS-nanosleep.c): Likewise.
19335 (CFLAGS-sigsuspend.c): Likewise.
19336 (CFLAGS-msync.c): Likewise.
19337 (CFLAGS-fdatasync.c): Likewise.
19338 (CFLAGS-fsync.c): Likewise.
19339 (CFLAGS-pt-system.c): Likewise.
19340 (CFLAGS-tst-cleanup2.c): Likewise.
19341 (CFLAGS-tst-cleanupx2.c): Likewise.
19342 (CFLAGS-flockfile.c): Likewise.
19343 (CFLAGS-ftrylockfile.c): Likewise.
19344 (CFLAGS-funlockfile.c): Likewise.
19345 (CFLAGS-tst-initializers1.c): Likewise.
19346 (CFLAGS-tst-initializers1-c89.c): Likewise.
19347 (CFLAGS-tst-initializers1-c99.c): Likewise.
19348 (CFLAGS-tst-initializers1-c11.c): Likewise.
19349 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19350 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19351 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19352 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19353 (CFLAGS-nscd_getgr_r.c): Likewise.
19354 (CFLAGS-nscd_gethst_r.c): Likewise.
19355 (CFLAGS-nscd_getai.c): Likewise.
19356 (CFLAGS-nscd_initgroups.c): Likewise.
19357 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19358 (CFLAGS-pause.c): Likewise.
19359 (CFLAGS-pread.c): Likewise.
19360 (CFLAGS-pread64.c): Likewise.
19361 (CFLAGS-pwrite.c): Likewise.
19362 (CFLAGS-pwrite64.c): Likewise.
19363 (CFLAGS-sleep.c): Likewise.
19364 (CFLAGS-wait.c): Likewise.
19365 (CFLAGS-waitid.c): Likewise.
19366 (CFLAGS-waitpid.c): Likewise.
19367 (CFLAGS-getopt.c): Likewise.
19368 (CFLAGS-wordexp.c): Likewise.
19369 (CFLAGS-sysconf.c): Likewise.
19370 (CFLAGS-pathconf.c): Likewise.
19371 (CFLAGS-fpathconf.c): Likewise.
19372 (CFLAGS-spawn.c): Likewise.
19373 (CFLAGS-spawnp.c): Likewise.
19374 (CFLAGS-spawni.c): Likewise.
19375 (CFLAGS-glob.c): Likewise.
19376 (CFLAGS-glob64.c): Likewise.
19377 (CFLAGS-getconf.c): Likewise.
19378 (CFLAGS-nanosleep.c): Likewise.
19379 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19380 (CFLAGS-getpwent.c): Likewise.
19381 (CFLAGS-getpw.c): Likewise.
19382 (CFLAGS-fgetpwent_r.c): Likewise.
19383 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19384 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19385 (CFLAGS-mq_timedreceive.c): Likewise.
19386 (CFLAGS-mq_timedsend.c): Likewise.
19387 (CFLAGS-clock_nanosleep.c): Likewise.
19388 (CFLAGS-librt-cancellation.c): Likewise.
19389 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19390 (CFLAGS-getspent.c): Likewise.
19391 (CFLAGS-fgetspent.c): Likewise.
19392 (CFLAGS-fgetspent_r.c): Likewise.
19393 (CFLAGS-putspent.c): Likewise.
19394 (CFLAGS-getspnam.c): Likewise.
19395 (CFLAGS-getspnam_r.c): Likewise.
19396 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19397 (CFLAGS-sigsuspend.c): Likewise.
19398 (CFLAGS-sigtimedwait.c): Likewise.
19399 (CFLAGS-sigwait.c): Likewise.
19400 (CFLAGS-sigwaitinfo.c): Likewise.
19401 (CFLAGS-sigreturn.c): Likewise.
19402 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19403 (CFLAGS-vfwprintf.c): Likewise.
19404 (CFLAGS-tmpfile.c): Likewise.
19405 (CFLAGS-tmpfile64.c): Likewise.
19406 (CFLAGS-tempname.c): Likewise.
19407 (CFLAGS-psignal.c): Likewise.
19408 (CFLAGS-vprintf.c): Likewise.
19409 (CFLAGS-cuserid.c): Likewise.
19410 (CFLAGS-errlist.c): Likewise.
19411 (CFLAGS-siglist.c): Likewise.
19412 (CFLAGS-scanf15.c): Likewise.
19413 (CFLAGS-scanf17.c): Likewise.
19414 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19415 (CFLAGS-msort.c): Likewise.
19416 (CFLAGS-qsort.c): Likewise.
19417 (CFLAGS-system.c): Likewise.
19418 (CFLAGS-fmtmsg.c): Likewise.
19419 (CFLAGS-strfmon.c): Likewise.
19420 (CFLAGS-strfmon_l.c): Likewise.
19421 (CFLAGS-strfromd.c): Likewise.
19422 (CFLAGS-strfromf.c): Likewise.
19423 (CFLAGS-strfroml.c): Likewise.
19424 (CFLAGS-tst-bsearch.c): Likewise.
19425 (CFLAGS-tst-qsort.c): Likewise.
19426 (CFLAGS-tst-makecontext2.c): Likewise.
19427 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19428 (CFLAGS-xnlm_prot.c): Likewise.
19429 (CFLAGS-xrstat.c): Likewise.
19430 (CFLAGS-xyppasswd.c): Likewise.
19431 (CFLAGS-xklm_prot.c): Likewise.
19432 (CFLAGS-xrex.c): Likewise.
19433 (CFLAGS-xsm_inter.c): Likewise.
19434 (CFLAGS-xmount.c): Likewise.
19435 (CFLAGS-xrusers.c): Likewise.
19436 (CFLAGS-xspray.c): Likewise.
19437 (CFLAGS-xnfs_prot.c): Likewise.
19438 (CFLAGS-xrquota.c): Likewise.
19439 (CFLAGS-xkey_prot.c): Likewise.
19440 (CFLAGS-auth_unix.c): Likewise.
19441 (CFLAGS-key_call.c): Likewise.
19442 (CFLAGS-pmap_rmt.c): Likewise.
19443 (CFLAGS-clnt_perr.c): Likewise.
19444 (CFLAGS-openchild.c): Likewise.
19445 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19446 (CFLAGS-msgsnd.c): Likewise.
19447 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19448 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19449 (CFLAGS-tzset.c): Likewise.
19450 (CFLAGS-getdate.c): Likewise.
19451 (CFLAGS-test_time.c): Likewise.
19452 (CPPFLAGS-tst-tzname.c): Likewise.
19453 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19454 (CFLAGS-zic.c): Likewise.
19455 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19456 (CFLAGS-wcswidth.c): Likewise.
19457 (CFLAGS-wcstol.c): Likewise.
19458 (CFLAGS-wcstoul.c): Likewise.
19459 (CFLAGS-wcstoll.c): Likewise.
19460 (CFLAGS-wcstoull.c): Likewise.
19461 (CFLAGS-wcstod.c): Likewise.
19462 (CFLAGS-wcstold.c): Likewise.
19463 (CFLAGS-wcstof128.c): Likewise.
19464 (CFLAGS-wcstof.c): Likewise.
19465 (CFLAGS-wcstol_l.c): Likewise.
19466 (CFLAGS-wcstoul_l.c): Likewise.
19467 (CFLAGS-wcstoll_l.c): Likewise.
19468 (CFLAGS-wcstoull_l.c): Likewise.
19469 (CFLAGS-wcstod_l.c): Likewise.
19470 (CFLAGS-wcstold_l.c): Likewise.
19471 (CFLAGS-wcstof128_l.c): Likewise.
19472 (CFLAGS-wcstof_l.c): Likewise.
19473 (CPPFLAGS-tst-wchar-h.c): Likewise.
19474 (CPPFLAGS-wcstold_l.c): Likewise.
19475
19476 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19477
19478 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19479
19480 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19481 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19482
19483 * manual/tunables.texi (Hardware Capability Tunables): Document
19484 glibc.tune.cached_memopt.
19485 * sysdeps/powerpc/cpu-features.c: New file.
19486 * sysdeps/powerpc/cpu-features.h: New file.
19487 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19488 _dl_powerpc_cpu_features.
19489 * sysdeps/powerpc/dl-tunables.list: New file.
19490 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19491 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19492 (INIT_ARCH): Initialize use_aligned_memopt.
19493 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19494 IS_IN(rtld))]: Restrict dl_platform_init availability and
19495 initialize CPU features used by tunables.
19496 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19497 Add memcpy-power8-cached.
19498 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19499 __memcpy_power8_cached.
19500 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19501 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19502 New file.
19503
19504 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19505
19506 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19507 (CFLAGS-noinl-tester.c): Likewise.
19508 (CFLAGS-tst-strlen.c): Likewise.
19509 (CFLAGS-stratcliff.c): Likewise.
19510 (CFLAGS-test-ffs.c): Likewise.
19511 (CFLAGS-tst-inlcall.c): Likewise.
19512 (CFLAGS-tst-xbzero-opt.c): Likewise.
19513 (CFLAGS-memcpy.c): Likewise.
19514 (CFLAGS-wordcopy.c): Likewise.
19515
19516 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19517
19518 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19519 Store r15 on stack and add cfi rule.
19520 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19521 Likewise.
19522
19523 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19524
19525 [BZ #22577]
19526 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19527 call.
19528
19529 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19530
19531 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19532 Add s_sinf-sse2 and s_sinf-fma.
19533 (CFLAGS-s_sinf-fma.c): New.
19534 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19535 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19536 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19537
19538 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19539
19540 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19541
19542 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19543
19544 [BZ #22568]
19545 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19546 part of result to imaginary part of argument if it is zero and the
19547 real part of the argument is not finite.
19548 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19549 of result to real part of argument if it is zero and the imaginary
19550 part of the argument is not finite.
19551
19552 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19553
19554 [BZ #22524]
19555 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19556 and to the list of locales to be built for testing.
19557 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19558 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19559 and build the collation rules upon that.
19560
19561 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19562
19563 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19564 * manual/math.texi (Mathematics): Document support for _Float32.
19565 * math/Makefile (test-types): Add float32.
19566 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19567 * stdlib/Versions (GLIBC_2.27): Likewise.
19568 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19569 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19570 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19571 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19572 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19573 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19574 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19575 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19576 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19577 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19578 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19579 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19580 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19581 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19582 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19583 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19584 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19585 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19586 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19587 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19588 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19589 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19590 Likewise.
19591 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19592 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19593 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19594 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19595 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19597 Likewise.
19598 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19599 Likewise.
19600 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19601 Likewise.
19602 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19603 Likewise.
19604
19605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19606 Likewise.
19607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19608 Likewise.
19609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19610 Likewise.
19611 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19612 Likewise.
19613 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19614 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19615 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19616 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19617 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19618 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19619 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19620 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19621 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19622 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19623 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19624 Likewise.
19625 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19626 Likewise.
19627 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19628 Likewise.
19629 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19630 Likewise.
19631 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19632 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19633 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19634 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19635 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19636 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19637 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19638 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19639
19640 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19641
19642 * stdlib/strtof.c: Include <bits/floatn.h>
19643 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19644 and later undefine as macro. Define as weak alias if
19645 [!USE_WIDE_CHAR].
19646 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19647 and later undefine as macro. Define as weak alias if
19648 [USE_WIDE_CHAR].
19649 * stdlib/strtof_l.c: Include <bits/floatn.h>
19650 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19651 and later undefine as macro. Define as weak alias if
19652 [!USE_WIDE_CHAR].
19653 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19654 and later undefine as macro. Define as weak alias if
19655 [USE_WIDE_CHAR].
19656
19657 * stdlib/strfromf.c: Include <bits/floatn.h>.
19658 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19659 and later undefine as macro and define as weak alias.
19660
19661 * math/test-float32.h: New file.
19662
19663 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19664 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19665 (libm_alias_float_other_r): Create f32 alias.
19666 (libm_alias_float_r): Use semicolon before call to
19667 libm_alias_float_other_r.
19668
19669 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19670 second argument to libm_alias_float_other.
19671 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19672 second argument to libm_alias_float_other.
19673 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19674 argument to libm_alias_float_other.
19675
19676 [BZ #22561]
19677 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19678 real part of result for argument 0 + i * NaN.
19679 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19680 results for tests of 0 + i * NaN.
19681
19682 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19683
19684 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19685
19686 2017-12-06 David S. Miller <davem@davemloft.net>
19687
19688 * sysdeps/sparc/fpu/libm-test-ulps: Update
19689 exp_{downward,towardzero,upward} ulps.
19690
19691 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19692
19693 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19694 variables static.
19695
19696 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19697 (Y0_2D): Likewise.
19698 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19699 (Y0_2D): Likewise.
19700 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19701 (Y0_2D): Likewise.
19702 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19703 (Y0_2D): Likewise.
19704
19705 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19706
19707 [BZ #22515]
19708 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19709 and to the list of locales to be built for testing.
19710 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19711 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19712 and build the collation rules upon that.
19713
19714 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19715
19716 * NEWS: Add sinf to list of optimized functions.
19717
19718 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19719
19720 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19721 (__HAVE_FLOAT32X): Likewise.
19722 * manual/math.texi (Mathematics): Document support for _Float64
19723 and _Float32x.
19724 * math/Makefile (test-types): Add float64 and float32x.
19725 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19726 functions.
19727 * stdlib/Versions (GLIBC_2.27): Likewise.
19728 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19729 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19730 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19731 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19732 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19733 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19734 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19738 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19739 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19740 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19741 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19742 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19743 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19744 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19745 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19746 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19747 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19748 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19749 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19750 Likewise.
19751 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19752 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19753 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19754 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19755 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19756 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19757 Likewise.
19758 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19759 Likewise.
19760 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19761 Likewise.
19762 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19763 Likewise.
19764 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19765 Likewise.
19766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19767 Likewise.
19768 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19769 Likewise.
19770 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19771 Likewise.
19772 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19774 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19780 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19781 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19782 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19783 Likewise.
19784 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19785 Likewise.
19786 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19787 Likewise.
19788 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19789 Likewise.
19790 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19791 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19792 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19793 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19794 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19795 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19796 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19797 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19798
19799 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19800
19801 * bits/floatn-common.h: Include <bits/long-double.h>.
19802 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19803 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19804 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19805 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19806 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19807 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19808 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19809 (__builtin_huge_valf64): Use __builtin_huge_vall.
19810 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19811 (__builtin_inff64): Use __builtin_infl.
19812 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19813 (__builtin_nanf64): Use __builtin_nanl.
19814 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19815 (__builtin_nansf64): Use __builtin_nansl.
19816
19817 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19818 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19819 Carlos O'Donnell <carlos@redhat.com>
19820
19821 * elf/dl-tunables.list: Add elision parameters.
19822 * manual/tunables.texi: Add entries about elision tunable.
19823 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19824 Add callback functions to dynamically enable/disable elision.
19825 Add multiple callbacks functions to set elision parameters.
19826 Deleted __libc_enable_secure check.
19827 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19828 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19829 * configure: Regenerated.
19830 * configure.ac: Option enable_lock_elision was deleted.
19831 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19832 * config.make.in: Remove references to enable_lock_elision.
19833 * manual/install.texi: Elision configure option was removed.
19834 * INSTALL: Regenerated to remove enable_lock_elision.
19835 * nptl/Makefile:
19836 Disable elision so it can verify error case for destroying a mutex.
19837 * sysdeps/powerpc/nptl/elide.h:
19838 Cleanup ENABLE_LOCK_ELISION check.
19839 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19840 * sysdeps/s390/configure: Regenerated.
19841 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19842 * nptl/tst-mutex8.c:
19843 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19844 * sysdeps/powerpc/powerpc32/sysdep.h:
19845 Deleted all ENABLE_LOCK_ELISION checks.
19846 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19847 * sysdeps/powerpc/sysdep.h: Likewise.
19848 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19849 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19850 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19851 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19852 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19853 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19854 enable-lock-elision.
19855
19856 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19857
19858 * stdlib/strtod.c: Include <bits/floatn.h>.
19859 (BUILD_DOUBLE): New macro.
19860 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19861 (strtof64): Define and later undefine as macro. Define as weak
19862 alias if [!USE_WIDE_CHAR].
19863 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19864 (wcstof64): Define and later undefine as macro. Define as weak
19865 alias if [USE_WIDE_CHAR].
19866 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19867 (strtof32x): Define and later undefine as macro. Define as weak
19868 alias if [!USE_WIDE_CHAR].
19869 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19870 (wcstof32x): Define and later undefine as macro. Define as weak
19871 alias if [USE_WIDE_CHAR].
19872 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19873 (BUILD_DOUBLE): New macro.
19874 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19875 (strtof64_l): Define and later undefine as macro. Define as weak
19876 alias if [!USE_WIDE_CHAR].
19877 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19878 (wcstof64_l): Define and later undefine as macro. Define as weak
19879 alias if [USE_WIDE_CHAR].
19880 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19881 (strtof32x_l): Define and later undefine as macro. Define as weak
19882 alias if [!USE_WIDE_CHAR].
19883 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19884 (wcstof32x_l): Define and later undefine as macro. Define as weak
19885 alias if [USE_WIDE_CHAR].
19886
19887 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19888
19889 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19890 (reduced): Use ones as double instead of integer.
19891
19892 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19893
19894 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19895
19896 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19897
19898 * stdlib/strfromd.c: Include <bits/floatn.h>.
19899 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19900 and later undefine as macro and define as weak alias.
19901 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19902 Likewise.
19903
19904 * math/test-float32x.h: New file.
19905 * math/test-float64.h: Likewise.
19906
19907 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19908 (libm_alias_double_other_r_f64): New macro.
19909 (libm_alias_double_other_r_f32x): Likewise.
19910 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19911 libm_alias_double_other_r_f32x.
19912 (libm_alias_double_r): Use semicolon before call to
19913 libm_alias_double_other_r.
19914 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19915 <bits/floatn.h>.
19916 (libm_alias_double_other_r_f64): New macro.
19917 (libm_alias_double_other_r_f32x): Likewise.
19918 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19919 libm_alias_double_other_r_f32x.
19920
19921 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19922
19923 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19924 int.
19925 (SINF_FUNC): Likewise. Replace floor with simple casts.
19926
19927 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19928
19929 [BZ #22517]
19930 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19931 and to the list of locales to be built for testing.
19932 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19933 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19934 and build the collation rules upon that.
19935
19936 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19937
19938 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19939 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19940 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19941 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19942 instead of __insn__xxx.
19943 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19944 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19945 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19946 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19947 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19948 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19949
19950 2017-12-05 Florian Weimer <fweimer@redhat.com>
19951
19952 Linux: Implement interfaces for memory protection keys
19953 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19954 xsignal, xsysconf.
19955 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19956 * support/xunistd.h (xsysconf): Declare.
19957 * support/xraise.c: New file.
19958 * support/xsigaction.c: Likewise.
19959 * support/xsignal.c: Likewise.
19960 * support/xsysconf.c: Likewise.
19961 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19962 pkey_set, pkey_get, pkey_mprotect.
19963 [misc] (tests): Add tst-pkey.
19964 (tst-pkey): Link with -lpthread.
19965 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19966 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19967 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19968 (PKEY_DISABLE_WRITE): Define.
19969 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19970 Declare.
19971 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19972 (SEGV_PKUERR): Add.
19973 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19974 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19975 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19976 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19977 Add.
19978 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19979 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19980 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19981 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19982 * sysdeps/unix/sysv/linux/**.abilist: Update.
19983
19984 2017-12-05 Florian Weimer <fweimer@redhat.com>
19985
19986 * support/tst-test_compare.c (subprocess): Use long long instead
19987 of long argument for consistent type width across 32-bit and
19988 64-bit architectures.
19989 (do_test): Adjust expected output.
19990
19991 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19992
19993 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19994 (cosf): Define using libm_alias_float.
19995 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19996 (fabsf): Define using libm_alias_float.
19997 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19998 (fmaf): Define using libm_alias_float.
19999 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20000 (rintf): Define using libm_alias_float.
20001 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20002 (sinf): Define using libm_alias_float.
20003 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20004 <libm-alias-float.h>.
20005 (modff): Define using libm_alias_float.
20006 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20007 <libm-alias-float.h>.
20008 (logbf): Define using libm_alias_float.
20009 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20010 <libm-alias-float.h>.
20011 (ceilf): Define using libm_alias_float.
20012 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20013 <libm-alias-float.h>.
20014 (copysignf): Define using libm_alias_float.
20015 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20016 <libm-alias-float.h>.
20017 (floorf): Define using libm_alias_float.
20018 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20019 <libm-alias-float.h>.
20020 (llrintf): Define using libm_alias_float.
20021 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20022 <libm-alias-float.h>.
20023 (llroundf): Define using libm_alias_float.
20024 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20025 <libm-alias-float.h>.
20026 (lrintf): Define using libm_alias_float.
20027 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20028 <libm-alias-float.h>.
20029 (lroundf): Define using libm_alias_float.
20030 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20031 <libm-alias-float.h>.
20032 (nearbyintf): Define using libm_alias_float.
20033 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20034 <libm-alias-float.h>.
20035 (rintf): Define using libm_alias_float.
20036 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20037 <libm-alias-float.h>.
20038 (roundf): Define using libm_alias_float.
20039 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20040 <libm-alias-float.h>.
20041 (truncf): Define using libm_alias_float.
20042 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20043 Include <libm-alias-float.h>.
20044 (ceilf): Define using libm_alias_float.
20045 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20046 Include <libm-alias-float.h>.
20047 (copysignf): Define using libm_alias_float.
20048 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20049 Include <libm-alias-float.h>.
20050 (floorf): Define using libm_alias_float.
20051 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20052 Include <libm-alias-float.h>.
20053 (llrintf): Define using libm_alias_float.
20054 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20055 Include <libm-alias-float.h>.
20056 (llroundf): Define using libm_alias_float.
20057 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20058 Include <libm-alias-float.h>.
20059 (logbf): Define using libm_alias_float.
20060 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20061 Include <libm-alias-float.h>.
20062 (lrintf): Define using libm_alias_float.
20063 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20064 Include <libm-alias-float.h>.
20065 (lroundf): Define using libm_alias_float.
20066 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20067 Include <libm-alias-float.h>.
20068 (modff): Define using libm_alias_float.
20069 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20070 Include <libm-alias-float.h>.
20071 (roundf): Define using libm_alias_float.
20072 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20073 Include <libm-alias-float.h>.
20074 (truncf): Define using libm_alias_float.
20075 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20076 <libm-alias-float.h>.
20077 (llrintf): Define using libm_alias_float.
20078 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20079 <libm-alias-float.h>.
20080 (llroundf): Define using libm_alias_float.
20081 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20082 <libm-alias-float.h>.
20083 (ceilf): Define using libm_alias_float.
20084 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20085 <libm-alias-float.h>.
20086 (floorf): Define using libm_alias_float.
20087 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20088 <libm-alias-float.h>.
20089 (llroundf): Define using libm_alias_float.
20090 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20091 <libm-alias-float.h>.
20092 (lroundf): Define using libm_alias_float.
20093 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20094 <libm-alias-float.h>.
20095 (roundf): Define using libm_alias_float.
20096 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20097 <libm-alias-float.h>.
20098 (truncf): Define using libm_alias_float.
20099 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20100 <libm-alias-float.h>.
20101 (copysignf): Define using libm_alias_float.
20102 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20103 <libm-alias-float.h>.
20104 (llrintf): Define using libm_alias_float.
20105 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20106 <libm-alias-float.h>.
20107 (llroundf): Define using libm_alias_float.
20108 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20109 <libm-alias-float.h>.
20110 (lrintf): Define using libm_alias_float.
20111 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20112 <libm-alias-float.h>.
20113 (lroundf): Define using libm_alias_float.
20114 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20115 <libm-alias-float.h>.
20116 (ceilf): Define using libm_alias_float.
20117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20118 <libm-alias-float.h>.
20119 (copysignf): Define using libm_alias_float.
20120 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20121 <libm-alias-float.h>.
20122 (cosf): Define using libm_alias_float.
20123 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20124 <libm-alias-float.h>.
20125 (floorf): Define using libm_alias_float.
20126 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20127 <libm-alias-float.h>.
20128 (llrintf): Define using libm_alias_float.
20129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20130 <libm-alias-float.h>.
20131 (llroundf): Define using libm_alias_float.
20132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20133 <libm-alias-float.h>.
20134 (logbf): Define using libm_alias_float.
20135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20136 <libm-alias-float.h>.
20137 (modff): Define using libm_alias_float.
20138 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20139 <libm-alias-float.h>.
20140 (roundf): Define using libm_alias_float.
20141 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20142 <libm-alias-float.h>.
20143 (sinf): Define using libm_alias_float.
20144 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20145 <libm-alias-float.h>.
20146 (truncf): Define using libm_alias_float.
20147 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20148 <libm-alias-float.h>.
20149 (ceilf): Define using libm_alias_float.
20150 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20151 <libm-alias-float.h>.
20152 (copysignf): Define using libm_alias_float.
20153 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20154 <libm-alias-float.h>.
20155 (floorf): Define using libm_alias_float.
20156 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20157 <libm-alias-float.h>.
20158 (llrintf): Define using libm_alias_float.
20159 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20160 <libm-alias-float.h>.
20161 (llroundf): Define using libm_alias_float.
20162 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20163 <libm-alias-float.h>.
20164 (nearbyintf): Define using libm_alias_float.
20165 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20166 <libm-alias-float.h>.
20167 (rintf): Define using libm_alias_float.
20168 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20169 <libm-alias-float.h>.
20170 (roundf): Define using libm_alias_float.
20171 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20172 <libm-alias-float.h>.
20173 (truncf): Define using libm_alias_float.
20174 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20175 <libm-alias-float.h>.
20176 (ceilf): Define using libm_alias_float.
20177 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20178 <libm-alias-float.h>.
20179 (floorf): Define using libm_alias_float.
20180 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20181 <libm-alias-float.h>.
20182 (llroundf): Define using libm_alias_float.
20183 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20184 <libm-alias-float.h>.
20185 (roundf): Define using libm_alias_float.
20186 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20187 <libm-alias-float.h>.
20188 (truncf): Define using libm_alias_float.
20189 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20190 <libm-alias-float.h>.
20191 (copysignf): Define using libm_alias_float.
20192 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20193 <libm-alias-float.h>.
20194 (llrintf): Define using libm_alias_float.
20195 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20196 <libm-alias-float.h>.
20197 (llroundf): Define using libm_alias_float.
20198 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20199 <libm-alias-float.h>.
20200 (cosf): Define using libm_alias_float.
20201 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20202 <libm-alias-float.h>.
20203 (llrintf): Define using libm_alias_float.
20204 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20205 <libm-alias-float.h>.
20206 (llroundf): Define using libm_alias_float.
20207 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20208 <libm-alias-float.h>.
20209 (sinf): Define using libm_alias_float.
20210
20211 2017-12-04 Florian Weimer <fweimer@redhat.com>
20212
20213 * support/check.h (TEST_COMPARE): Define.
20214 (support_test_compare_failure): Declare.
20215 * support/Makefile (libsupport-routines): Add
20216 support_test_compare_failure.
20217 (tests): Add tst-test_compare.
20218 * support /support_test_compare_failure.c: New file.
20219 * support/tst-test_compare.c: Likewise.
20220
20221 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20222
20223 [BZ #22527]
20224 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20225 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20226 available, this rewrite of the collation rules does reproduce
20227 the test file in the same order.
20228
20229 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20230
20231 [BZ #10580]
20232 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20233 digraphs in the month and day names. Using single code points for
20234 digraphs is deprecated. While there are dedicated Unicode
20235 codepoints, for the digraphs, these are included for backwards
20236 compatibility and modern texts use a sequence of Basic Latin
20237 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20238 This makes the month and day names agree exactly with CLDR now,
20239 CLDR does not use the single code points for the digraphs either.
20240
20241 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20242
20243 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20244
20245 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20246
20247 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20248 of floor.
20249
20250 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20251
20252 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20253 Define only for libc.so.
20254
20255 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20256
20257 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20258 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20259 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20260 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20261 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20262
20263 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20264
20265 [BZ #5997]
20266 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20267
20268 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20269
20270 [BZ libc/19170]
20271 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20272 PREINIT_FUNCTION_WEAK is nonzero.
20273 (gmon_initializer): New function. Put procedure label for it in
20274 .init_array section.
20275 (_init): Don't call PREINIT_FUNCTION.
20276 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20277 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20278 value when map argument is null.
20279
20280 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20281 depi instruction from PIC pc-relative sequence.
20282 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20283 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20284 (elf_machine_load_address): Likewise.
20285 (elf_machine_runtime_setup): Likewise.
20286
20287 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20288
20289 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20290 <libm-alias-double.h>.
20291 (logb): Define using libm_alias_double.
20292 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20293 <libm-alias-double.h>.
20294 (copysign): Define using libm_alias_double.
20295 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20296 <libm-alias-double.h>.
20297 (llrint): Define using libm_alias_double.
20298 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20299 <libm-alias-double.h>.
20300 (llround): Define using libm_alias_double.
20301 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20302 <libm-alias-double.h>.
20303 (lrint): Define using libm_alias_double.
20304 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20305 <libm-alias-double.h>.
20306 (lround): Define using libm_alias_double.
20307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20308 Include <libm-alias-double.h>.
20309 (copysign): Define using libm_alias_double.
20310 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20311 Include <libm-alias-double.h>.
20312 (llrint): Define using libm_alias_double.
20313 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20314 Include <libm-alias-double.h>.
20315 (llround): Define using libm_alias_double.
20316 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20317 <libm-alias-double.h>.
20318 (logb): Define using libm_alias_double.
20319 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20320 Include <libm-alias-double.h>.
20321 (lrint): Define using libm_alias_double.
20322 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20323 Include <libm-alias-double.h>.
20324 (lround): Define using libm_alias_double.
20325 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20326 <libm-alias-double.h>.
20327 (llrint): Define using libm_alias_double.
20328 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20329 <libm-alias-double.h>.
20330 (llround): Define using libm_alias_double.
20331 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20332 <libm-alias-double.h>.
20333 (llround): Define using libm_alias_double.
20334 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20335 <libm-alias-double.h>.
20336 (lround): Define using libm_alias_double.
20337 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20338 <libm-alias-double.h>.
20339 (copysign): Define using libm_alias_double.
20340 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20341 <libm-alias-double.h>.
20342 (llrint): Define using libm_alias_double.
20343 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20344 <libm-alias-double.h>.
20345 (llround): Define using libm_alias_double.
20346 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20347 <libm-alias-double.h>.
20348 (lrint): Define using libm_alias_double.
20349 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20350 <libm-alias-double.h>.
20351 (lround): Define using libm_alias_double.
20352 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20353 <libm-alias-double.h>.
20354 (copysign): Define using libm_alias_double.
20355 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20356 <libm-alias-double.h>.
20357 (llrint): Define using libm_alias_double.
20358 (lrint): Likewise.
20359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20360 <libm-alias-double.h>.
20361 (llround): Define using libm_alias_double.
20362 (lround): Likewise.
20363 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20364 <libm-alias-double.h>.
20365 (logb): Define using libm_alias_double.
20366 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20367 <libm-alias-double.h>.
20368 (copysign): Define using libm_alias_double.
20369 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20370 <libm-alias-double.h>.
20371 (llrint): Define using libm_alias_double.
20372 (lrint): Likewise.
20373 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20374 <libm-alias-double.h>.
20375 (llround): Define using libm_alias_double.
20376 (lround): Likewise.
20377 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20378 <libm-alias-double.h>.
20379 (llround): Define using libm_alias_double.
20380 (lround): Likewise.
20381 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20382 <libm-alias-double.h>.
20383 (copysign): Define using libm_alias_double.
20384 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20385 <libm-alias-double.h>.
20386 (llrint): Define using libm_alias_double.
20387 (lrint): Likewise.
20388 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20389 <libm-alias-double.h>.
20390 (llround): Define using libm_alias_double.
20391 (lround): Likewise.
20392 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20393 <libm-alias-double.h>.
20394 (llrint): Define using libm_alias_double.
20395 (lrint): Likewise.
20396 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20397 <libm-alias-double.h>.
20398 (llround): Define using libm_alias_double.
20399 (lround): Likewise.
20400
20401 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20402
20403 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20404 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20405 compat symbol based on llround.
20406
20407 * sysdeps/powerpc/power7/fpu/s_logb.c
20408 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20409 symbol based on __logb, not on logb.
20410 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20411 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20412 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20413 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20414
20415 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20416 (rint): Define using libm_alias_double.
20417 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20418 <libm-alias-double.h>.
20419 (modf): Define using libm_alias_double.
20420 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20421 <libm-alias-double.h>.
20422 (ceil): Define using libm_alias_double.
20423 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20424 <libm-alias-double.h>.
20425 (floor): Define using libm_alias_double.
20426 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20427 <libm-alias-double.h>.
20428 (nearbyint): Define using libm_alias_double.
20429 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20430 <libm-alias-double.h>.
20431 (rint): Define using libm_alias_double.
20432 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20433 <libm-alias-double.h>.
20434 (round): Define using libm_alias_double.
20435 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20436 <libm-alias-double.h>.
20437 (trunc): Define using libm_alias_double.
20438 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20439 <libm-alias-double.h>.
20440 (ceil): Define using libm_alias_double.
20441 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20442 Include <libm-alias-double.h>.
20443 (floor): Define using libm_alias_double.
20444 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20445 <libm-alias-double.h>.
20446 (modf): Define using libm_alias_double.
20447 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20448 Include <libm-alias-double.h>.
20449 (round): Define using libm_alias_double.
20450 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20451 Include <libm-alias-double.h>.
20452 (trunc): Define using libm_alias_double.
20453 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20454 <libm-alias-double.h>.
20455 (ceil): Define using libm_alias_double.
20456 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20457 <libm-alias-double.h>.
20458 (floor): Define using libm_alias_double.
20459 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20460 <libm-alias-double.h>.
20461 (round): Define using libm_alias_double.
20462 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20463 <libm-alias-double.h>.
20464 (trunc): Define using libm_alias_double.
20465 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20466 <libm-alias-double.h>.
20467 (ceil): Define using libm_alias_double.
20468 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20469 <libm-alias-double.h>.
20470 (floor): Define using libm_alias_double.
20471 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20472 <libm-alias-double.h>.
20473 (modf): Define using libm_alias_double.
20474 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20475 <libm-alias-double.h>.
20476 (round): Define using libm_alias_double.
20477 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20478 <libm-alias-double.h>.
20479 (trunc): Define using libm_alias_double.
20480 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20481 <libm-alias-double.h>.
20482 (ceil): Define using libm_alias_double.
20483 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20484 <libm-alias-double.h>.
20485 (floor): Define using libm_alias_double.
20486 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20487 <libm-alias-double.h>.
20488 (nearbyint): Define using libm_alias_double.
20489 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20490 <libm-alias-double.h>.
20491 (rint): Define using libm_alias_double.
20492 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20493 <libm-alias-double.h>.
20494 (round): Define using libm_alias_double.
20495 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20496 <libm-alias-double.h>.
20497 (trunc): Define using libm_alias_double.
20498 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20499 <libm-alias-double.h>.
20500 (ceil): Define using libm_alias_double.
20501 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20502 <libm-alias-double.h>.
20503 (floor): Define using libm_alias_double.
20504 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20505 <libm-alias-double.h>.
20506 (round): Define using libm_alias_double.
20507 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20508 <libm-alias-double.h>.
20509 (trunc): Define using libm_alias_double.
20510
20511 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20512 (fabs): Define using libm_alias_double.
20513 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20514 (fma): Define using libm_alias_double.
20515 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20516 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20517 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20518 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20519
20520 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20521
20522 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20523
20524 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20525 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20526 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20527
20528 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20529 due redirect macro.
20530
20531 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20532
20533 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20534
20535 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20536
20537 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20538 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20539 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20540 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20541
20542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20543 (libm-sysdep_routines): Add s_nearbyintf-generic and
20544 s_nearbyint-generic.
20545 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20546 New file.
20547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20548 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20549 Likewise.
20550 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20551 Likewise.
20552 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20553 file.
20554 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20555 Likewise.
20556
20557 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20558 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20560 file.
20561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20563 Likewise.
20564 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20565 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20566 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20567
20568 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20569 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20570 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20571 file.
20572 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20573 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20574 Likewise.
20575 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20576 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20578
20579 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20580 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20581 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20582 file.
20583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20584 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20585 Likewise.
20586 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20588 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20589
20590 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20591 (sysdep_calls): New rule.
20592 (sysdep_routines): Use sysdep_calls as base.
20593 (libm-sysdep_routines): Add generic rule for symbols shared with
20594 libc. Add s_copysign-generic and s_copysign-generic objects.
20595 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20596 New file.
20597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20598 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20599 Likewise.
20600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20602 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20603
20604 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20605
20606 [BZ #22519]
20607 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20608 the list of locales to be built for testing.
20609 * localedata/is_IS.UTF-8.in: New file.
20610 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20611 on iso14651_t1.
20612
20613 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20614
20615 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20616 <libm-alias-float.h>.
20617 (fabsf): Define using libm_alias_float.
20618
20619 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20620
20621 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20622
20623 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20624
20625 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20626 <libm-alias-float.h>.
20627 (fabsf): Define using libm_alias_float.
20628 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20629 <libm-alias-float.h>.
20630 (lrintf): Define using libm_alias_float.
20631 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20632 <libm-alias-float.h>.
20633 (rintf): Define using libm_alias_float.
20634
20635 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20636 <libm-alias-double.h>.
20637 (fabs): Define using libm_alias_double.
20638 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20639 <libm-alias-double.h>.
20640 (lrint): Define using libm_alias_double.
20641 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20642 <libm-alias-double.h>.
20643 (rint): Define using libm_alias_double.
20644
20645 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20646 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20647 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20648 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20649 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20650 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20651 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20652 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20653 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20654 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20655 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20656 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20657 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20658 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20659 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20660 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20661 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20662 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20663 s_atan_template.c.
20664 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20665 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20666 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20667 s_ceil_template.c.
20668 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20669 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20670 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20671 s_cos_template.c.
20672 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20673 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20674 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20675 s_expm1_template.c.
20676 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20677 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20678 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20679 s_fabs_template.c.
20680 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20681 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20682 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20683 s_floor_template.c.
20684 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20685 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20686 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20687 s_frexp_template.c.
20688 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20689 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20690 s_lrint_template.c.
20691 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20692 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20693 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20694 s_modf_template.c.
20695 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20696 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20697 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20698 s_nearbyint_template.c.
20699 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20700 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20701 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20702 s_remquo_template.c.
20703 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20704 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20705 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20706 s_rint_template.c.
20707 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20708 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20709 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20710 s_sin_template.c.
20711 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20712 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20713 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20714 s_sincos_template.c.
20715 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20716 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20717 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20718 s_tan_template.c.
20719 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20720 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20721 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20722 s_tanh_template.c.
20723 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20724 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20725 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20726 s_trunc_template.c.
20727 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20728 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20729 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20730 s_atan.c instead of including s_atan.c.
20731 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20732 s_atanf.c instead of including s_atanf.c.
20733 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20734 s_atanl.c instead of including s_atanl.c.
20735 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20736 instead of s_atan.c.
20737 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20738 instead of s_atanf.c.
20739 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20740 instead of s_atanl.c.
20741
20742 * scripts/update-copyrights: Do not handle intl/plural.c
20743 specially.
20744
20745 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20746
20747 [BZ #22432]
20748 * configure.ac (BISON): Require to be present.
20749 * configure: Regenerated.
20750 * intl/Makefile (generated): Add plural.c.
20751 [$(BISON) != no]: Make code unconditional.
20752 (plural.c): Change rule to $(objpfx)plural.c.
20753 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20754 * intl/plural.c: Remove.
20755 * manual/install.texi (Tools for Compilation): Document bison as
20756 required.
20757 * INSTALL: Regenerated.
20758
20759 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20760
20761 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20762 <libm-alias-double.h>.
20763 (llrint): Define using libm_alias_double.
20764 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20765 <libm-alias-float.h>.
20766 (llrintf): Define using libm_alias_float.
20767 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20768 <libm-alias-ldouble.h>.
20769 (llrintl): Define using libm_alias_ldouble.
20770
20771 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20772 declare_mgen_alias instead of weak_alias.
20773 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20774 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20775 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20776
20777 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20778
20779 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20780 Add add_n-generic.
20781 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20782 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20783 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20784
20785 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20786 Add submul_1-generic.
20787 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20788 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20789 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20790
20791 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20792 Add addmul_1-generic.
20793 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20794 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20795 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20796
20797 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20798 Add sub_n-generic.
20799 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20800 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20801 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20802
20803 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20804 Add mul_1-generic.
20805 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20806 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20807 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20808
20809 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20810
20811 According to CLDR, collation rules for Serbian and Bosnian
20812 should be the same as for Croatian.
20813
20814 [BZ #22534]
20815 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20816 and to the list of locales to be built for testing.
20817 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20818 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20819 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20820 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20821
20822 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20823
20824 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20825 to make test case pass.
20826 * localedata/hr_HR.UTF-8.in: Add more test strings.
20827
20828 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20829
20830 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20831
20832 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20833
20834 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20835 the list of locales to built for testing.
20836 * localedata/hr_HR.UTF-8.in: New file.
20837
20838 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20839
20840 [BZ #10580]
20841 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20842 iso14651_t1.
20843 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20844 CLDR (except use ligatures for the digraphs, CLDR does not use
20845 the ligatures), add first_workday, some fixes in the date and time
20846 formats.
20847 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20848 for Đ and đ.
20849 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20850 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20851 Add int_p_cs_precedes and int_n_cs_precedes.
20852 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20853 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20854 LC_MONETARY now).
20855 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20856 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20857 name_miss.
20858 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20859 and lang_lib. Change postal_fmt.
20860
20861 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20862
20863 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20864 <setjmp.h>.
20865 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20866 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20867 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20868 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20869 * sysdeps/generic/setjmpP.h: New file.
20870 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20871 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20872 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20873 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20874 Add jmp_buf-ssp.sym.
20875 (tests): Add tst-saved_mask-1.
20876
20877 2017-11-30 Arjun Shankar <arjun@redhat.com>
20878
20879 [BZ #22375]
20880 CVE-2017-17426
20881 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20882 instead of request2size.
20883
20884 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20885
20886 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20887 (__lllrint): Remove alias.
20888 (lllrint): Likewise.
20889 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20890 (__lllrintf): Likewise.
20891 (lllrintf): Likewise.
20892
20893 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20894 <libm-alias-float.h>.
20895 (copysignf): Define using libm_alias_float.
20896 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20897 <libm-alias-float.h>.
20898 (fabsf): Define using libm_alias_float.
20899 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20900 Include <libm-alias-float.h>.
20901 (copysignf): Define using libm_alias_float.
20902 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20903 <libm-alias-float.h>.
20904 (fabsf): Define using libm_alias_float.
20905 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20906 <libm-alias-float.h>.
20907 (fdimf): Define using libm_alias_float.
20908 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20909 <libm-alias-float.h>.
20910 (fmaf): Define using libm_alias_float.
20911 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20912 <libm-alias-float.h>.
20913 (llrintf): Define using libm_alias_float.
20914 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20915 Include <libm-alias-float.h>.
20916 (nearbyintf): Define using libm_alias_float.
20917 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20918 <libm-alias-float.h>.
20919 (rintf): Define using libm_alias_float.
20920 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20921 <libm-alias-float.h>.
20922 (llrintf): Define using libm_alias_float.
20923 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20924 <libm-alias-float.h>.
20925 (lrintf): Define using libm_alias_float.
20926 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20927 <libm-alias-float.h>.
20928 (nearbyintf): Define using libm_alias_float.
20929 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20930 <libm-alias-float.h>.
20931 (rintf): Define using libm_alias_float.
20932 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20933 <libm-alias-float.h>.
20934 (ceilf): Define using libm_alias_float.
20935 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20936 <libm-alias-float.h>.
20937 (floorf): Define using libm_alias_float.
20938 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20939 <libm-alias-float.h>.
20940 (fmaf): Define using libm_alias_float.
20941 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20942 <libm-alias-float.h>.
20943 (lrintf): Define using libm_alias_float.
20944 (llrintf): Likewise.
20945 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20946 <libm-alias-float.h>.
20947 (nearbyintf): Define using libm_alias_float.
20948 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20949 <libm-alias-float.h>.
20950 (rintf): Define using libm_alias_float.
20951 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20952 <libm-alias-float.h>.
20953 (truncf): Define using libm_alias_float.
20954 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20955 <libm-alias-float.h>.
20956 (copysignf): Define using libm_alias_float.
20957 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20958 <libm-alias-float.h>.
20959 (fabsf): Define using libm_alias_float.
20960 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20961 <libm-alias-float.h>.
20962 (lrintf): Define using libm_alias_float.
20963 (llrintf): Likewise.
20964 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20965 <libm-alias-float.h>.
20966 (nearbyintf): Define using libm_alias_float.
20967 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20968 <libm-alias-float.h>.
20969 (rintf): Define using libm_alias_float.
20970
20971 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20972
20973 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20974 <libm-alias-double.h>.
20975 (copysign): Define using libm_alias_double.
20976 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20977 <libm-alias-double.h>.
20978 (fabs): Define using libm_alias_double.
20979 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20980 Include <libm-alias-double.h>.
20981 (copysign): Define using libm_alias_double.
20982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20983 <libm-alias-double.h>.
20984 (fabs): Define using libm_alias_double.
20985 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20986 <libm-alias-double.h>.
20987 (fdim): Define using libm_alias_double.
20988 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20989 <libm-alias-double.h>.
20990 (fma): Define using libm_alias_double.
20991 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20992 <libm-alias-double.h>.
20993 (llrint): Define using libm_alias_double.
20994 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20995 Include <libm-alias-double.h>.
20996 (nearbyint): Define using libm_alias_double.
20997 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20998 <libm-alias-double.h>.
20999 (rint): Define using libm_alias_double.
21000 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21001 <libm-alias-double.h>.
21002 (fabs): Define using libm_alias_double.
21003 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21004 <libm-alias-double.h>.
21005 (llrint): Define using libm_alias_double.
21006 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21007 <libm-alias-double.h>.
21008 (nearbyint): Define using libm_alias_double.
21009 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21010 <libm-alias-double.h>.
21011 (rint): Define using libm_alias_double.
21012 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21013 <libm-alias-double.h>.
21014 (ceil): Define using libm_alias_double.
21015 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21016 <libm-alias-double.h>.
21017 (floor): Define using libm_alias_double.
21018 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21019 <libm-alias-double.h>.
21020 (fma): Define using libm_alias_double.
21021 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21022 <libm-alias-double.h>.
21023 (lrint): Define using libm_alias_double.
21024 (llrint): Likewise.
21025 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21026 <libm-alias-double.h>.
21027 (nearbyint): Define using libm_alias_double.
21028 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21029 <libm-alias-double.h>.
21030 (rint): Define using libm_alias_double.
21031 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21032 <libm-alias-double.h>.
21033 (trunc): Define using libm_alias_double.
21034 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21035 <libm-alias-double.h>.
21036 (copysign): Define using libm_alias_double.
21037 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21038 <libm-alias-double.h>.
21039 (fabs): Define using libm_alias_double.
21040 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21041 <libm-alias-double.h>.
21042 (lrint): Define using libm_alias_double.
21043 (llrint): Likewise.
21044 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21045 <libm-alias-double.h>.
21046 (nearbyint): Define using libm_alias_double.
21047 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21048 <libm-alias-double.h>.
21049 (rint): Define using libm_alias_double.
21050
21051 [BZ #22229]
21052 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21053 <math_ldbl_opt.h>.
21054 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21055
21056 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21057 SPARC --disable-multi-arch glibc variants.
21058
21059 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21060 <libm-alias-float.h>.
21061 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21062 if [SHARED].
21063 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21064 <libm-alias-float.h>.
21065 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21066 if [SHARED].
21067 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21068 <libm-alias-float.h>.
21069 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21070 if [SHARED].
21071 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21072 <libm-alias-float.h>.
21073 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21074 if [SHARED].
21075 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21076 <libm-alias-float.h>.
21077 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21078 if [SHARED].
21079 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21080 <libm-alias-float.h>.
21081 (ceilf): Define using libm_alias_float.
21082 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21083 <libm-alias-float.h>.
21084 (floorf): Define using libm_alias_float.
21085 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21086 <libm-alias-float.h>.
21087 (fmaf): Define using libm_alias_float.
21088 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21089 <libm-alias-float.h>.
21090 (nearbyintf): Define using libm_alias_float.
21091 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21092 <libm-alias-float.h>.
21093 (rintf): Define using libm_alias_float.
21094 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21095 <libm-alias-float.h>.
21096 (truncf): Define using libm_alias_float.
21097 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21098 (copysignf): Define using libm_alias_float.
21099 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21100 (cosf): Define using libm_alias_float.
21101 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21102 (fabsf): Define using libm_alias_float.
21103 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21104 (fmaxf): Define using libm_alias_float.
21105 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21106 (fminf): Define using libm_alias_float.
21107 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21108 (llrintf): Define using libm_alias_float.
21109 [!__ILP32__] (lrintf): Likewise.
21110 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21111 (sincosf): Define using libm_alias_float.
21112 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21113 (sinf): Define using libm_alias_float.
21114 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21115 (lrintf): Define using libm_alias_float.
21116
21117 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21118 <libm-alias-double.h>.
21119 (atan): Define using libm_alias_double.
21120 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21121 <libm-alias-double.h>.
21122 (ceil): Define using libm_alias_double.
21123 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21124 <libm-alias-double.h>.
21125 (floor): Define using libm_alias_double.
21126 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21127 <libm-alias-double.h>.
21128 (fma): Define using libm_alias_double.
21129 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21130 <libm-alias-double.h>.
21131 (nearbyint): Define using libm_alias_double.
21132 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21133 <libm-alias-double.h>.
21134 (rint): Define using libm_alias_double.
21135 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21136 <libm-alias-double.h>.
21137 (sin): Define using libm_alias_double.
21138 (cos): Likewise.
21139 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21140 <libm-alias-double.h>.
21141 (tan): Define using libm_alias_double.
21142 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21143 <libm-alias-double.h>.
21144 (trunc): Define using libm_alias_double.
21145 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21146 (copysign): Define using libm_alias_double.
21147 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21148 (fabs): Define using libm_alias_double.
21149 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21150 (fmax): Define using libm_alias_double.
21151 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21152 (fmin): Define using libm_alias_double.
21153 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21154 (llrint): Define using libm_alias_double.
21155 [!__ILP32__] (lrint): Likewise.
21156 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21157 (lrint): Define using libm_alias_double.
21158
21159 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21160
21161 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21162 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21163 objects.
21164 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21165 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21166 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21167 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21168 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21169 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21170
21171 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21172 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21173 objects.
21174 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21175 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21176 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21177 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21178 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21179 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21180
21181 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21182 (libm-sysdep_routines): Add s_nearbyint-generic and
21183 s_nearbyintf-generic objects.
21184 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21185 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21186 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21187 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21188 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21189 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21190
21191 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21192 Add s_finitef-generic and s_finite-generic objects.
21193 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21194 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21195 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21196 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21197 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21198 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21199
21200 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21201 Add s_isinff-generic and s_isinf-generic objects.
21202 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21203 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21204 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21205 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21206 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21207 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21208
21209 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21210 Add s_isnanf-generic and s_isnan-generic objects.
21211 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21212 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21213 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21214 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21215 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21216 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21217
21218 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21219 macro.
21220 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21221 rule.
21222 (sysdep_routines): Use sysdep_calls as base.
21223 (libm-sysdep_routines): Add generic rule for symbols shared with
21224 libc. Add s_signbit-generic and s_signbitf-generic objects.
21225 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21226 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21227 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21228 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21229 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21230 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21231
21232 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21233
21234 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21235 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21236 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21237 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21238 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21239 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21240 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21241 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21242 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21243 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21244 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21245 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21246 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21247 libm_alias_float_r.
21248 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21249 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21250 (logf): Likewise.
21251 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21252 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21253 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21254 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21255 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21256 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21257 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21258 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21259 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21260 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21261 libm_alias_float.
21262 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21263 (cosf): Likewise.
21264 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21265 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21266 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21267 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21268 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21269 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21270 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21271 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21272 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21273 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21274 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21275 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21276 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21277 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21278 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21279 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21280 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21281 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21282 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21283 libm_alias_float.
21284 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21285 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21286 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21287 * sysdeps/ia64/fpu/w_lgammaf_main.c
21288 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21289 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21290
21291 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21292 Alexandre Oliva <aoliva@redhat.com>
21293
21294 [BZ #17750]
21295 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21296 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21297 accents sorting.
21298 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21299 sorting.
21300 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21301 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21302 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21303 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21304 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21305 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21306 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21307 instead of “ifdef DIACRIT_BACKWARD”.
21308
21309 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21310
21311 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21312 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21313 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21314 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21315 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21316 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21317 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21318 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21319 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21320 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21321 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21322 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21323 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21324 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21325 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21326 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21327 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21328 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21330 ($(have-as-vis3) == yes): Remove conditional.
21331 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21332 Likewise.
21333 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21334 file.
21335 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21336 file.
21337 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21338 file.
21339 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21340 file.
21341 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21342 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21343 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21344 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21345 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21346 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21347 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21348 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21349
21350 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21351
21352 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21353 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21354 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21355 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21356 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21357 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21358 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21359 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21360 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21361 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21362 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21363 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21364 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21365 libm_alias_double_r.
21366 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21367 (log): Likewise.
21368 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21369 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21370 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21371 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21372 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21373 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21374 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21375 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21376 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21377 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21378 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21379 libm_alias_double.
21380 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21381 (cos): Likewise.
21382 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21383 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21384 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21385 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21386 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21387 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21388 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21389 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21390 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21391 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21392 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21393 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21394 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21395 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21396 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21397 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21398 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21399 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21400 libm_alias_double.
21401 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21402 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21403 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21404 * sysdeps/ia64/fpu/w_lgamma_main.c
21405 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21406 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21407
21408 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21409
21410 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21411 address of $global$ into %dp register earlier. Use pc-relative
21412 instruction sequence for PIC case.
21413
21414 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21415
21416 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21417 (asinhf): Define using libm_alias_float.
21418 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21419 (atanf): Define using libm_alias_float.
21420 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21421 (cbrtf): Define using libm_alias_float.
21422 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21423 (ceilf): Define using libm_alias_float.
21424 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21425 (copysignf): Define using libm_alias_float.
21426 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21427 (expm1f): Define using libm_alias_float.
21428 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21429 (fabsf): Define using libm_alias_float.
21430 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21431 (floorf): Define using libm_alias_float.
21432 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21433 (fmaxf): Define using libm_alias_float.
21434 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21435 (fminf): Define using libm_alias_float.
21436 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21437 (frexpf): Define using libm_alias_float.
21438 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21439 (llrintf): Define using libm_alias_float.
21440 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21441 (logbf): Define using libm_alias_float.
21442 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21443 (lrintf): Define using libm_alias_float.
21444 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21445 (nearbyintf): Define using libm_alias_float.
21446 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21447 (remquof): Define using libm_alias_float.
21448 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21449 (rintf): Define using libm_alias_float.
21450 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21451 (truncf): Define using libm_alias_float.
21452 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21453 <libm-alias-float.h>.
21454 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21455 if [SHARED].
21456 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21457 <libm-alias-float.h>.
21458 (expf): Define using libm_alias_float, or libm_alias_float_other
21459 if [SHARED].
21460 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21461 <libm-alias-float.h>.
21462 (log2f): Define using libm_alias_float, or libm_alias_float_other
21463 if [SHARED].
21464 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21465 <libm-alias-float.h>.
21466 (logf): Define using libm_alias_float, or libm_alias_float_other
21467 if [SHARED].
21468 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21469 <libm-alias-float.h>.
21470 (powf): Define using libm_alias_float, or libm_alias_float_other
21471 if [SHARED].
21472 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21473 <libm-alias-float.h>.
21474 (cosf): Define using libm_alias_float.
21475 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21476 <libm-alias-float.h>.
21477 (sincosf): Define using libm_alias_float.
21478 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21479 <libm-alias-float.h>.
21480 (sinf): Define using libm_alias_float.
21481 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21482 (fmaxf): Define using libm_alias_float.
21483 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21484 (fminf): Define using libm_alias_float.
21485 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21486 <libm-alias-float.h>.
21487 (fmaf): Define using libm_alias_float.
21488
21489 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21490 (asinh): Define using libm_alias_double.
21491 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21492 (atan): Define using libm_alias_double.
21493 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21494 (cbrt): Define using libm_alias_double.
21495 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21496 (ceil): Define using libm_alias_double.
21497 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21498 (copysign): Define using libm_alias_double.
21499 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21500 (expm1): Define using libm_alias_double.
21501 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21502 (fabs): Define using libm_alias_double.
21503 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21504 (fdim): Define using libm_alias_double.
21505 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21506 (floor): Define using libm_alias_double.
21507 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21508 (fmax): Define using libm_alias_double.
21509 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21510 (fmin): Define using libm_alias_double.
21511 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21512 (frexp): Define using libm_alias_double.
21513 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21514 (llrint): Define using libm_alias_double.
21515 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21516 (logb): Define using libm_alias_double.
21517 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21518 (lrint): Define using libm_alias_double.
21519 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21520 (nearbyint): Define using libm_alias_double.
21521 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21522 (remquo): Define using libm_alias_double.
21523 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21524 (rint): Define using libm_alias_double.
21525 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21526 (trunc): Define using libm_alias_double.
21527 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21528 (fmax): Define using libm_alias_double.
21529 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21530 (fmin): Define using libm_alias_double.
21531 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21532 (fma): Define using libm_alias_double.
21533
21534 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21535
21536 [BZ #22370]
21537 * elf/dl-hwcaps.c (ROUND): Removed.
21538 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21539 and ELF_NOTE_NEXT_OFFSET.
21540 * elf/dl-load.c (ROUND): Removed.
21541 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21542 * elf/readelflib.c (ROUND): Removed.
21543 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21544 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21545 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21546 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21547
21548 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21549
21550 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21551 [!__fmaf] (fmaf): Define using libm_alias_float.
21552
21553 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21554 [!__fma] (fma): Define using libm_alias_double.
21555 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21556
21557 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21558
21559 [BZ #22336]
21560 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21561 and implement the collation rules for cs from CLDR on top of that.
21562 * Makefile: Add cs_CZ.UTF-8 to test-input.
21563 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21564
21565 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21566
21567 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21568
21569 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21570 Icarus Sparry <icarus.w.sparry@intel.com>
21571
21572 * benchtests/Makefile:Add BENCHSET to allow subsets of
21573 benchmarks to be run.
21574 * benchtests/README: Add documentation for: Running subsets of
21575 benchmarks.
21576
21577 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21578
21579 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21580 range of tests names.
21581
21582 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21583 result from property and remove "max", min" and "mean" from
21584 required properties based on benchtests/bench-skeleton.c.
21585
21586 2017-11-28 Florian Weimer <fweimer@redhat.com>
21587
21588 [BZ #20826]
21589 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21590 due to Internet requirement.
21591 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21592 tst-getaddrinfo5.
21593 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21594
21595 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21596
21597 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21598 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21599 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21600 (sysdep_routines): Add memset-ultra1.
21601 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21602 file.
21603 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21604 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21605 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21606 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21607 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21608 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21609 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21610 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21611
21612 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21613 file.
21614 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21615 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21616 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21617 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21618 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21619 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21620 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21621 macro.
21622 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21623 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21624 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21625 (sysdep_routines): Add memcpy-ultra1.
21626 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21627 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21628
21629 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21630
21631 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21632 (cfloat_versions): Take function argument without trailing 'f'.
21633 Call libm_alias_float_other.
21634 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21635 * sysdeps/alpha/fpu/cargf.c: Likewise.
21636 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21637 * sysdeps/alpha/fpu/conjf.c: Likewise.
21638 * sysdeps/alpha/fpu/crealf.c: Likewise.
21639 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21640 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21641 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21642 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21643 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21644 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21645 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21646 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21647 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21648 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21649 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21650 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21651 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21652 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21653 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21654 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21655 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21656 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21657 (clog10f): Use libm_alias_float_other.
21658 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21659 (ceilf): Define using libm_alias_float.
21660 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21661 (copysignf): Define using libm_alias_float.
21662 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21663 (fabsf): Define using libm_alias_float.
21664 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21665 (floorf): Define using libm_alias_float.
21666 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21667 (fmaxf): Define using libm_alias_float.
21668 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21669 (fminf): Define using libm_alias_float.
21670 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21671 (lrintf): Define using libm_alias_float.
21672 (llrintf): Likewise.
21673 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21674 (lroundf): Define using libm_alias_float.
21675 (llroundf): Likewise.
21676 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21677 (rintf): Define using libm_alias_float.
21678 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21679 (truncf): Define using libm_alias_float.
21680
21681 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21682 (ceilf): Define using libm_alias_float.
21683 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21684 (floorf): Define using libm_alias_float.
21685 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21686 (fmaf): Define using libm_alias_float.
21687 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21688 (fmaxf): Define using libm_alias_float.
21689 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21690 (fminf): Define using libm_alias_float.
21691 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21692 (llrintf): Define using libm_alias_float.
21693 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21694 (llroundf): Define using libm_alias_float.
21695 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21696 (lrintf): Define using libm_alias_float.
21697 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21698 (lroundf): Define using libm_alias_float.
21699 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21700 <libm-alias-float.h>.
21701 (nearbyintf): Define using libm_alias_float.
21702 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21703 (rintf): Define using libm_alias_float.
21704 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21705 (roundf): Define using libm_alias_float.
21706 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21707 (truncf): Define using libm_alias_float.
21708
21709 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21710 (ceil): Define using libm_alias_double.
21711 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21712 (copysign): Define using libm_alias_double.
21713 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21714 (fabs): Define using libm_alias_double.
21715 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21716 (floor): Define using libm_alias_double.
21717 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21718 (fmax): Define using libm_alias_double.
21719 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21720 (fmin): Define using libm_alias_double.
21721 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21722 (lrint): Define using libm_alias_double.
21723 (llrint): Likewise.
21724 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21725 (lround): Define using libm_alias_double.
21726 (llround): Likewise.
21727 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21728 (rint): Define using libm_alias_double.
21729 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21730 (trunc): Define using libm_alias_double.
21731
21732 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21733 (libm_alias_double_r): Add semicolon after weak_alias call.
21734
21735 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21736
21737 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21738 (ceil): Define using libm_alias_double.
21739 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21740 (floor): Define using libm_alias_double.
21741 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21742 (fma): Define using libm_alias_double.
21743 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21744 (fmax): Define using libm_alias_double.
21745 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21746 (fmin): Define using libm_alias_double.
21747 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21748 (llrint): Define using libm_alias_double.
21749 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21750 (llround): Define using libm_alias_double.
21751 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21752 (lrint): Define using libm_alias_double.
21753 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21754 (lround): Define using libm_alias_double.
21755 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21756 (nearbyint): Define using libm_alias_double.
21757 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21758 (rint): Define using libm_alias_double.
21759 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21760 (round): Define using libm_alias_double.
21761 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21762 (trunc): Define using libm_alias_double.
21763
21764 2017-11-27 Florian Weimer <fweimer@redhat.com>
21765
21766 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21767 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21768 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21769 (tests): Add tst-mlock2.
21770 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21771 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21772 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21773 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21774 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21775 for mlock. Document mlock2.
21776
21777 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21778
21779 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21780 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21781 Likewise.
21782 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21783 Likewise.
21784 * sysdeps/x86/Makeconfig: New file.
21785 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21786 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21787 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21788 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21789 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21790 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21791 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21792 Likewise.
21793 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21794 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21795 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21796 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21797 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21798 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21799 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21800 * manual/math.texi (Mathematics): Document support for _Float64x.
21801 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21802 * stdlib/Versions (GLIBC_2.27): Likewise.
21803 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21804 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21805 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21806 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21807 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21808 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21809 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21810 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21811 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21812 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21813 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21814 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21815 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21816 Likewise.
21817 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21818 Likewise.
21819 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21820 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21821 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21822 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21823 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21824 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21825 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21826 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21827 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21828 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21829 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21830 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21831 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21833
21834 2017-11-27 Andreas Schwab <schwab@suse.de>
21835
21836 * elf/Makefile (dl-routines): Add dl-sort-maps.
21837 * elf/dl-sort-maps.c: New file.
21838 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21839 (_dl_sort_maps): Declare.
21840 * elf/dl-fini.c (_dl_sort_fini): Remove.
21841 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21842 * elf/dl-close.c (_dl_close_worker): Likewise.
21843 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21844 open-coding it.
21845 * elf/dl-open.c (dl_open_worker): Likewise.
21846
21847 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21848
21849 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21850 using libm_alias_float128.
21851 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21852 Likewise.
21853 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21854 Likewise.
21855 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21856 (setpayloadsigf128): Likewise.
21857 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21858 Likewise.
21859 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21860 Likewise.
21861
21862 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21863 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21864 -mfloat128 to CFLAGS.
21865 ($(foreach
21866 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21867 Likewise.
21868 (CFLAGS-libm-test-support-float64x.c): New variable.
21869 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21870 $(f128-loader-link) to gnulib-tests.
21871
21872 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21873 (libm_alias_float128_other_r): If
21874 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21875 alias.
21876 (libm_alias_float128_r): Add semicolon after weak_alias call.
21877 * sysdeps/generic/libm-alias-ldouble.h
21878 (libm_alias_ldouble_other_r_f128): New macro.
21879 (libm_alias_ldouble_other_r_f64x): Likewise.
21880 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21881 and libm_alias_ldouble_other_r_f64x.
21882 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21883 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21884 (libm_alias_ldouble_other_r_f128): New macro.
21885 (libm_alias_ldouble_other_r_f64x): Likewise.
21886 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21887 and libm_alias_ldouble_other_r_f64x.
21888
21889 * stdlib/strfroml.c: Always include <stdlib.h>.
21890 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21891 undefine as macro and define as weak alias.
21892 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21893 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21894 <stdlib.h>.
21895 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21896 Define and later undefine as macro and define as weak alias.
21897
21898 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21899 Define and later undefine as macro. Define as weak alias if
21900 [!USE_WIDE_CHAR].
21901 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21902 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21903 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21904 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21905 Define and later undefine as macro. Define as weak alias if
21906 [!USE_WIDE_CHAR].
21907 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21908 Define and later undefine as macro. Define as weak alias if
21909 [USE_WIDE_CHAR].
21910 * sysdeps/ieee754/float128/strtof128_l.c
21911 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21912 Define and later undefine as macro. Define as weak alias if
21913 [!USE_WIDE_CHAR].
21914 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21915 Define and later undefine as macro. Define as weak alias if
21916 [USE_WIDE_CHAR].
21917 * sysdeps/ieee754/ldbl-128/strtold_l.c
21918 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21919 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21920 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21921 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21922 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21923 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21924 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21925 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21926 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21927 * sysdeps/ieee754/ldbl-96/strtold_l.c
21928 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21929 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21930 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21931 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21932
21933 * math/test-float64x.h: New file.
21934 * math/Makefile (type-float64x-yes): New variable.
21935 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21936
21937 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21938 function-like macro.
21939 (min_of_type_): Likewise.
21940 (min_of_type_l): Likewise.
21941 (min_of_type_f128): Likewise.
21942 (min_of_type): Pass () as last argument of __MATH_TG.
21943
21944 * stdlib/tst-strtod-round-skeleton.c
21945 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21946 headers.
21947
21948 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21949 for combinations of long double with _Float64 and _Float64x.
21950
21951 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21952 (__DECL_SIMD_cosf32): Likewise.
21953 (__DECL_SIMD_cosf64): Likewise.
21954 (__DECL_SIMD_cosf32x): Likewise.
21955 (__DECL_SIMD_cosf64x): Likewise.
21956 (__DECL_SIMD_cosf128x): Likewise.
21957 (__DECL_SIMD_sinf16): Likewise.
21958 (__DECL_SIMD_sinf32): Likewise.
21959 (__DECL_SIMD_sinf64): Likewise.
21960 (__DECL_SIMD_sinf32x): Likewise.
21961 (__DECL_SIMD_sinf64x): Likewise.
21962 (__DECL_SIMD_sinf128x): Likewise.
21963 (__DECL_SIMD_sincosf16): Likewise.
21964 (__DECL_SIMD_sincosf32): Likewise.
21965 (__DECL_SIMD_sincosf64): Likewise.
21966 (__DECL_SIMD_sincosf32x): Likewise.
21967 (__DECL_SIMD_sincosf64x): Likewise.
21968 (__DECL_SIMD_sincosf128x): Likewise.
21969 (__DECL_SIMD_logf16): Likewise.
21970 (__DECL_SIMD_logf32): Likewise.
21971 (__DECL_SIMD_logf64): Likewise.
21972 (__DECL_SIMD_logf32x): Likewise.
21973 (__DECL_SIMD_logf64x): Likewise.
21974 (__DECL_SIMD_logf128x): Likewise.
21975 (__DECL_SIMD_expf16): Likewise.
21976 (__DECL_SIMD_expf32): Likewise.
21977 (__DECL_SIMD_expf64): Likewise.
21978 (__DECL_SIMD_expf32x): Likewise.
21979 (__DECL_SIMD_expf64x): Likewise.
21980 (__DECL_SIMD_expf128x): Likewise.
21981 (__DECL_SIMD_powf16): Likewise.
21982 (__DECL_SIMD_powf32): Likewise.
21983 (__DECL_SIMD_powf64): Likewise.
21984 (__DECL_SIMD_powf32x): Likewise.
21985 (__DECL_SIMD_powf64x): Likewise.
21986 (__DECL_SIMD_powf128x): Likewise.
21987
21988 * stdlib/Versions (libc): Move entries for wcstof128 and
21989 wcstof128_l to ....
21990 * wcsmbs/Versions (libc): ... here.
21991 Include <float128-abi.h>.
21992
21993 2017-11-24 Florian Weimer <fweimer@redhat.com>
21994
21995 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21996 bits/mman-shared.h.
21997 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21998 <bits/mman-shared.h>.
21999 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22000 to ...
22001 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22002 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22003 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22004 <bits/mman-shared.h>.
22005
22006 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22007
22008 [BZ #22457]
22009 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22010 posix_memalign/free.
22011 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22012
22013 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22014
22015 [BZ #22469]
22016 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22017 and implement the collation rules for pl from CLDR on top of that.
22018 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22019 of locales to be built for testing.
22020 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22021
22022 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22023
22024 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22025 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22026 libm_alias_ldouble_other.
22027 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22028 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22029 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22030 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22031 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22032 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22033 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22034 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22035 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22036 libm_alias_ldouble_r.
22037 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22038 libm_alias_ldouble_other.
22039 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22040 (log10l): Likewise.
22041 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22042 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22043 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22044 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22045 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22046 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22047 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22048 (atan2l): Likewise.
22049 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22050 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22051 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22052 libm_alias_ldouble.
22053 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22054 (cosl): Likewise.
22055 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22056 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22057 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22058 (expl): Likewise.
22059 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22060 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22061 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22062 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22063 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22064 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22065 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22066 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22067 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22068 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22069 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22070 libm_alias_ldouble.
22071 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22072 libm_alias_ldouble_other.
22073 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22074 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22075 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22076 libm_alias_ldouble.
22077 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22078 libm_alias_ldouble_other.
22079 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22080 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22081 * sysdeps/ia64/fpu/w_lgammal_main.c
22082 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22083 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22084
22085 2017-11-23 Florian Weimer <fweimer@redhat.com>
22086
22087 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22088 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22089 alike. Remove freeres marker.
22090 * malloc/arena.c (arena_thread_freeres): Call
22091 tcache_thread_shutdown.
22092
22093 2017-11-23 Florian Weimer <fweimer@redhat.com>
22094
22095 [BZ #22459]
22096 Export nscd hash function as __nss_hash.
22097 * include/nss.h (__nss_hash): Declare.
22098 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22099 symbol.
22100 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22101 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22102 of __nscd_hash.
22103 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22104 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22105 * nss/Makefiles (routines): Add nss_hash.
22106 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22107 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22108 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22109 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22110
22111 2017-11-23 Florian Weimer <fweimer@redhat.com>
22112
22113 [BZ #22478]
22114 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22115 Return error code, not -1.
22116 * signal/tst-sigwait-eintr.c: New file.
22117 * signal/Makefile (tests): Add tst-sigwait-eintr.
22118
22119 2017-11-23 Florian Weimer <fweimer@redhat.com>
22120
22121 Linux: Add memfd_create system call wrapper
22122 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22123 tst-memfd_create.
22124 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22125 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22126 [__USE_GNU] (memfd_create): Declare.
22127 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22128 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22129 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22130 * sysdeps/unix/sysv/linux/**.abilist: Update.
22131 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22132
22133 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22134
22135 * localedata/gen-locale.sh: Fix typo in variable name.
22136
22137 * resolv/res_debug.c (p_secstodate): Condition definition on
22138 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22139 directly as __p_secstodate, and as a compat symbol. Do not use
22140 libresolv_hidden_def.
22141 * resolv/resolv.h (p_secstodate): Remove macro and function
22142 declaration.
22143 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22144 using p_secstodate.
22145 * include/resolv.h (__p_secstodate): Do not use
22146 libresolv_hidden_proto.
22147 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22148 (tests-internal): ... here.
22149 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22150 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22151 and declare and use __p_secstodate and use compat_symbol_reference
22152 in that case.
22153 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22154 implementation returning 77.
22155
22156 [BZ #22463]
22157 * resolv/res_debug.c: Include <libc-diag.h>.
22158 (p_secstodate): Assert time_t at least as wide as u_long. On
22159 overflow, use integer seconds since the epoch as output, or use
22160 "<overflow>" as output and set errno to EOVERFLOW if integer
22161 seconds since the epoch would be 14 or more characters.
22162 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22163 for sprintf call.
22164 * resolv/tst-p_secstodate.c: New file.
22165 * resolv/Makefile (tests): Add tst-p_secstodate.
22166 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22167
22168 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22169 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22170 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22171
22172 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22173
22174 * posix/regcomp.c (init_word_char): Add comments.
22175
22176 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22177
22178 [BZ #22447]
22179 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22180 strlen to compute length of ut_user and set trailing NUL byte of
22181 result explicitly.
22182
22183 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22184
22185 [BZ #15537]
22186 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22187 using “copy "iso14651_t1"” and then implementing the
22188 collation rules for lv from CLDR on top of that.
22189 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22190 of locales to be built for testing.
22191 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22192 sorting.
22193
22194 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22195
22196 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22197 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22198 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22199 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22200 [__USE_MISC] (MADV_HWPOISON): New macro.
22201 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22202
22203 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22204
22205 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22206 -Wmissing-braces on GCC 4.9.
22207
22208 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22209
22210 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22211 * sysdeps/s390/s390-32/start.S (_start): Likewise
22212 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22213 (thread_start): Likewise.
22214 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22215 (thread_start): Likewise.
22216 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22217 (__makecontext_ret): Likewise.
22218 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22219 (__makecontext_ret): Likewise.
22220
22221 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22222
22223 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22224 __wcschrnul): Remove attribute_hidden.
22225
22226 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22227
22228 regex: don't assume uint64_t or uint32_t
22229 This avoids -Werror=overflow errors for 32-bit systems in
22230 the 64-bit case. Problem reported by Joseph Myers in:
22231 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22232 Also, when this code is used in Gnulib it ports to platforms
22233 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22234 them, and on some 32-bit compilers there is no uint64_t.
22235 Problem reported by Gianluigi Tiesi in:
22236 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22237 * posix/regcomp.c (init_word_char): Don't assume that the types
22238 uint64_t and uint32_t exist. Adapted from Gnulib patch
22239 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22240 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22241
22242 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22243
22244 * sysdeps/aarch64/memset-reg.h: New file.
22245 * sysdeps/aarch64/memset.S: Use it.
22246 (__memset): Rename to MEMSET macro.
22247 [ZVA_MACRO]: Use zva_macro.
22248 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22249 Add memset_generic and memset_falkor.
22250 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22251 (__libc_ifunc_impl_list): Add memset ifuncs.
22252 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22253 local variable zva_size.
22254 * sysdeps/aarch64/multiarch/memset.c: New file.
22255 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22256 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22257 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22258 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22259 (DCZID_DZP_MASK): New macro.
22260 (DCZID_BS_MASK): Likewise.
22261 (init_cpu_features): Read and set zva_size.
22262 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22263 (struct cpu_features): New member zva_size.
22264
22265 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22266 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22267 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22268
22269 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22270 backwards. Fix timing computation.
22271 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22272 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22273 on memset by N at a time. Fix timing computation.
22274
22275 2017-11-20 Florian Weimer <fweimer@redhat.com>
22276
22277 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22278 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22279
22280 2017-11-19 Florian Weimer <fweimer@redhat.com>
22281
22282 manual: Document mprotect
22283 * manual/memory.texi (Memory Protection): New section.
22284 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22285 documentation of PROT_* flags and reference the Memory Protection
22286 section instead.
22287
22288 2017-11-19 Florian Weimer <fweimer@redhat.com>
22289
22290 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22291 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22292 (Scatter-Gather): ... to here. Remove misleading comment.
22293
22294 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22295
22296 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22297 style.
22298
22299 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22300 when /proc/<pid>/setgroups does not exist.
22301
22302 2017-11-18 Florian Weimer <fweimer@redhat.com>
22303
22304 * sysdeps/unix/sysv/linux/tst-ttyname.c
22305 (become_root_in_mount_ns): Remove.
22306 (do_in_chroot_1): Call support_enter_mount_namespace.
22307 (do_in_chroot_2): Likewise.
22308 (do_test): Call support_become_root early.
22309
22310 2017-11-18 Florian Weimer <fweimer@redhat.com>
22311
22312 * support/namespace.h (support_enter_mount_namespace): Declare.
22313 * support/support_enter_mount_namespace.c: New file.
22314 * support/Makefile (libsupport-routines): Add
22315 support_enter_mount_namespace.
22316
22317 2017-11-18 Florian Weimer <fweimer@redhat.com>
22318
22319 * support/temp_file.c (support_create_temp_directory): Use
22320 test_dir and do not rely on the presence of the XXXXXX suffix.
22321 * support/temp_file.h (support_create_temp_directory): Update
22322 comment.
22323 * support/tst-xreadlink.c (do_test): Adjust.
22324 * support/support_chroot.c (support_chroot_create): Likewise.
22325
22326 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22327
22328 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22329 macro.
22330 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22331 htm-no-suspend.
22332
22333 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22334
22335 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22336 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22337 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22338 (ceill): Define using libm_alias_ldouble.
22339 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22340 <libm-alias-ldouble.h>.
22341 (copysignl): Define using libm_alias_ldouble.
22342 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22343 (fabsl): Define using libm_alias_ldouble.
22344 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22345 (floorl): Define using libm_alias_ldouble.
22346 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22347 (fmaxl): Define using libm_alias_ldouble.
22348 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22349 (fminl): Define using libm_alias_ldouble.
22350 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22351 (llrintl): Define using libm_alias_ldouble.
22352 (lrintl): Likewise.
22353 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22354 <libm-alias-ldouble.h>.
22355 (nearbyintl): Define using libm_alias_ldouble.
22356 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22357 (truncl): Define using libm_alias_ldouble.
22358 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22359 <libm-alias-ldouble.h>.
22360 (lrintl): Define using libm_alias_ldouble.
22361
22362 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22363 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22364 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22365 (asinhl): Define using libm_alias_ldouble.
22366 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22367 (atanl): Define using libm_alias_ldouble.
22368 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22369 (cbrtl): Define using libm_alias_ldouble.
22370 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22371 (ceill): Define using libm_alias_ldouble.
22372 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22373 (copysignl): Define using libm_alias_ldouble.
22374 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22375 (fabsl): Define using libm_alias_ldouble.
22376 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22377 (floorl): Define using libm_alias_ldouble.
22378 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22379 (fmaxl): Define using libm_alias_ldouble.
22380 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22381 (fminl): Define using libm_alias_ldouble.
22382 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22383 (frexpl): Define using libm_alias_ldouble.
22384 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22385 (llrintl): Define using libm_alias_ldouble.
22386 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22387 (logbl): Define using libm_alias_ldouble.
22388 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22389 (lrintl): Define using libm_alias_ldouble.
22390 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22391 (nearbyintl): Define using libm_alias_ldouble.
22392 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22393 (nextafterl): Define using libm_alias_ldouble.
22394 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22395 (remquol): Define using libm_alias_ldouble.
22396 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22397 (rintl): Define using libm_alias_ldouble.
22398 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22399 (truncl): Define using libm_alias_ldouble.
22400 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22401 (fmaxl): Define using libm_alias_ldouble.
22402 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22403 (fminl): Define using libm_alias_ldouble.
22404
22405 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22406 to C syntax instead of availability and properties of types.
22407 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22408 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22409 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22410 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22411 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22412 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22413
22414 2017-11-17 Florian Weimer <fweimer@redhat.com>
22415
22416 support_become_root: Enable file creation in namespaces.
22417 * support/support_become_root.c (setup_mapping): New function.
22418 (support_become_root): Call it.
22419
22420 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22421
22422 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22423 macro.
22424
22425 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22426
22427 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22428 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22429
22430 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22431
22432 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22433
22434 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22435 version to 4.14.
22436
22437 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22438
22439 * INSTALL: Fix botched up regeneration.
22440
22441 * NEWS: Update sourceare link to https.
22442 * configure.ac: Likewise.
22443 * crypt/md5test-giant.c: Likewise.
22444 * dlfcn/bug-atexit1.c: Likewise.
22445 * dlfcn/bug-atexit2.c: Likewise.
22446 * localedata/README: Likewise.
22447 * malloc/tst-mallocfork.c: Likewise.
22448 * manual/install.texi: Likewise.
22449 * nptl/tst-pthread-getattr.c: Likewise.
22450 * stdio-common/tst-fgets.c: Likewise.
22451 * stdio-common/tst-fwrite.c: Likewise.
22452 * sunrpc/Makefile: Likewise.
22453 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22454 * wcsmbs/tst-mbrtowc2.c: Likewise.
22455 * configure: Regenerate.
22456 * INSTALL: Regenerate.
22457
22458 2017-11-15 Martin Sebor <msebor@redhat.com>
22459
22460 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22461 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22462 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22463
22464 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22465
22466 [BZ #22145]
22467 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22468 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22469
22470 [BZ #22145]
22471 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22472 Defer is_pty check until end of the function.
22473 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22474
22475 [BZ #22145]
22476 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22477 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22478 (ttyname): Likewise.
22479 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22480 (__ttyname_r): Likewise.
22481
22482 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22483 int to bool.
22484
22485 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22486
22487 * manual/terminal.texi (Is It a Terminal):
22488 Mention ENODEV for ttyname and ttyname_r.
22489
22490 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22491
22492 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22493 constant and macro.
22494
22495 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22496 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22497 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22498 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22499 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22500 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22501
22502 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22503
22504 * signal/sigrelse.c (sigrelse): Optimize implementation.
22505
22506 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22507 (__sigpause): Rely on __sigsuspend to implement single thread
22508 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22509
22510 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22511
22512 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22513 kernel version to 4.14.
22514
22515 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22516
22517 [BZ #22442]
22518 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22519 Check if ifname is too long.
22520
22521 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22522
22523 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22524
22525 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22526
22527 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22528 was accidentally lost.
22529
22530 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22531
22532 * localedata/locales/az_IR: Add standard copyright header.
22533
22534 2017-11-15 Florian Weimer <fweimer@redhat.com>
22535
22536 [BZ #22439]
22537 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22538 not just the top one. Output a new "subheaps" statistic.
22539
22540 2017-11-15 Florian Weimer <fweimer@redhat.com>
22541
22542 [BZ #22408]
22543 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22544 under the per-arena lock.
22545 * malloc/Makefile (tests): Add tst-malloc_info.
22546 (tst-malloc_info): Link with libpthread.
22547 * malloc/tst-malloc_info.c: New file.
22548
22549 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22550
22551 [BZ #21660]
22552 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22553 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22554 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22555 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22556 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22557 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22558 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22559 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22560 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22561 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22562 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22563 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22564 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22565 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22566 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22567 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22568 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22569 (__floating_type): Likewise.
22570 (__real_integer_type): Likewise.
22571 (__complex_integer_type): Likewise.
22572 (__expr_is_real): Likewise.
22573 (__tgmath_real_type_sub): Likewise.
22574 (__tgmath_real_type): Likewise.
22575 (__tgmath_complex_type_sub): Likewise.
22576 (__tgmath_complex_type): Likewise.
22577 (__TGMATH_F128): Likewise.
22578 (__TGMATH_CF128): Likewise.
22579 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22580 new macros.
22581 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22582 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22583 Likewise.
22584 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22585 Likewise.
22586 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22587 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22588 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22589 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22590 Likewise.
22591 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22592 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22593 Likewise.
22594 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22595 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22596 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22597 Likewise.
22598 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22599 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22600 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22601 (cimag): Likewise.
22602 (creal): Likewise.
22603
22604 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22605
22606 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22607 for stpncpy calls for GCC 8.
22608 (test_strncat): Disable -Wstringop-truncation warning for strncat
22609 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22610 strncat call for GCC 7.
22611 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22612 calls for GCC 8.
22613 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22614 trailing NUL.
22615
22616 * string/bug-strncat1.c: Include <libc-diag.h>.
22617 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22618
22619 2017-11-13 Claude Paroz <claude@2xlibre.net>
22620
22621 [BZ #22387]
22622 * localedata/locales/aa_DJ: Improved readibility by replacing
22623 <Uxxxx> sequences in the ASCII printable range by their ASCII
22624 character equivalents.
22625 * localedata/locales/aa_ER: Likewise.
22626 * localedata/locales/aa_ER@saaho: Likewise.
22627 * localedata/locales/aa_ET: Likewise.
22628 * localedata/locales/af_ZA: Likewise.
22629 * localedata/locales/agr_PE: Likewise.
22630 * localedata/locales/ak_GH: Likewise.
22631 * localedata/locales/am_ET: Likewise.
22632 * localedata/locales/anp_IN: Likewise.
22633 * localedata/locales/ar_AE: Likewise.
22634 * localedata/locales/ar_BH: Likewise.
22635 * localedata/locales/ar_DZ: Likewise.
22636 * localedata/locales/ar_EG: Likewise.
22637 * localedata/locales/ar_IN: Likewise.
22638 * localedata/locales/ar_IQ: Likewise.
22639 * localedata/locales/ar_JO: Likewise.
22640 * localedata/locales/ar_KW: Likewise.
22641 * localedata/locales/ar_LB: Likewise.
22642 * localedata/locales/ar_LY: Likewise.
22643 * localedata/locales/ar_MA: Likewise.
22644 * localedata/locales/ar_OM: Likewise.
22645 * localedata/locales/ar_QA: Likewise.
22646 * localedata/locales/ar_SA: Likewise.
22647 * localedata/locales/ar_SD: Likewise.
22648 * localedata/locales/ar_SS: Likewise.
22649 * localedata/locales/ar_SY: Likewise.
22650 * localedata/locales/ar_TN: Likewise.
22651 * localedata/locales/ar_YE: Likewise.
22652 * localedata/locales/as_IN: Likewise.
22653 * localedata/locales/ast_ES: Likewise.
22654 * localedata/locales/ayc_PE: Likewise.
22655 * localedata/locales/az_AZ: Likewise.
22656 * localedata/locales/az_IR: Likewise.
22657 * localedata/locales/be_BY: Likewise.
22658 * localedata/locales/be_BY@latin: Likewise.
22659 * localedata/locales/bem_ZM: Likewise.
22660 * localedata/locales/ber_DZ: Likewise.
22661 * localedata/locales/ber_MA: Likewise.
22662 * localedata/locales/bg_BG: Likewise.
22663 * localedata/locales/bhb_IN: Likewise.
22664 * localedata/locales/bho_IN: Likewise.
22665 * localedata/locales/bi_VU: Likewise.
22666 * localedata/locales/bn_BD: Likewise.
22667 * localedata/locales/bn_IN: Likewise.
22668 * localedata/locales/bo_CN: Likewise.
22669 * localedata/locales/bo_IN: Likewise.
22670 * localedata/locales/br_FR: Likewise.
22671 * localedata/locales/brx_IN: Likewise.
22672 * localedata/locales/bs_BA: Likewise.
22673 * localedata/locales/byn_ER: Likewise.
22674 * localedata/locales/ca_AD: Likewise.
22675 * localedata/locales/ca_ES: Likewise.
22676 * localedata/locales/ca_FR: Likewise.
22677 * localedata/locales/ca_IT: Likewise.
22678 * localedata/locales/ce_RU: Likewise.
22679 * localedata/locales/chr_US: Likewise.
22680 * localedata/locales/cmn_TW: Likewise.
22681 * localedata/locales/crh_UA: Likewise.
22682 * localedata/locales/cs_CZ: Likewise.
22683 * localedata/locales/csb_PL: Likewise.
22684 * localedata/locales/cv_RU: Likewise.
22685 * localedata/locales/cy_GB: Likewise.
22686 * localedata/locales/da_DK: Likewise.
22687 * localedata/locales/de_AT: Likewise.
22688 * localedata/locales/de_BE: Likewise.
22689 * localedata/locales/de_CH: Likewise.
22690 * localedata/locales/de_DE: Likewise.
22691 * localedata/locales/de_IT: Likewise.
22692 * localedata/locales/de_LI: Likewise.
22693 * localedata/locales/de_LU: Likewise.
22694 * localedata/locales/doi_IN: Likewise.
22695 * localedata/locales/dv_MV: Likewise.
22696 * localedata/locales/dz_BT: Likewise.
22697 * localedata/locales/el_CY: Likewise.
22698 * localedata/locales/el_GR: Likewise.
22699 * localedata/locales/en_AG: Likewise.
22700 * localedata/locales/en_AU: Likewise.
22701 * localedata/locales/en_BW: Likewise.
22702 * localedata/locales/en_CA: Likewise.
22703 * localedata/locales/en_DK: Likewise.
22704 * localedata/locales/en_GB: Likewise.
22705 * localedata/locales/en_HK: Likewise.
22706 * localedata/locales/en_IE: Likewise.
22707 * localedata/locales/en_IL: Likewise.
22708 * localedata/locales/en_IN: Likewise.
22709 * localedata/locales/en_NG: Likewise.
22710 * localedata/locales/en_NZ: Likewise.
22711 * localedata/locales/en_PH: Likewise.
22712 * localedata/locales/en_SG: Likewise.
22713 * localedata/locales/en_US: Likewise.
22714 * localedata/locales/en_ZA: Likewise.
22715 * localedata/locales/en_ZM: Likewise.
22716 * localedata/locales/en_ZW: Likewise.
22717 * localedata/locales/eo: Likewise.
22718 * localedata/locales/es_AR: Likewise.
22719 * localedata/locales/es_BO: Likewise.
22720 * localedata/locales/es_CL: Likewise.
22721 * localedata/locales/es_CO: Likewise.
22722 * localedata/locales/es_CR: Likewise.
22723 * localedata/locales/es_CU: Likewise.
22724 * localedata/locales/es_DO: Likewise.
22725 * localedata/locales/es_EC: Likewise.
22726 * localedata/locales/es_ES: Likewise.
22727 * localedata/locales/es_GT: Likewise.
22728 * localedata/locales/es_HN: Likewise.
22729 * localedata/locales/es_MX: Likewise.
22730 * localedata/locales/es_NI: Likewise.
22731 * localedata/locales/es_PA: Likewise.
22732 * localedata/locales/es_PE: Likewise.
22733 * localedata/locales/es_PR: Likewise.
22734 * localedata/locales/es_PY: Likewise.
22735 * localedata/locales/es_SV: Likewise.
22736 * localedata/locales/es_US: Likewise.
22737 * localedata/locales/es_UY: Likewise.
22738 * localedata/locales/es_VE: Likewise.
22739 * localedata/locales/et_EE: Likewise.
22740 * localedata/locales/eu_ES: Likewise.
22741 * localedata/locales/eu_ES@euro: Likewise.
22742 * localedata/locales/fa_IR: Likewise.
22743 * localedata/locales/ff_SN: Likewise.
22744 * localedata/locales/fi_FI: Likewise.
22745 * localedata/locales/fil_PH: Likewise.
22746 * localedata/locales/fo_FO: Likewise.
22747 * localedata/locales/fr_BE: Likewise.
22748 * localedata/locales/fr_CA: Likewise.
22749 * localedata/locales/fr_CH: Likewise.
22750 * localedata/locales/fr_FR: Likewise.
22751 * localedata/locales/fr_LU: Likewise.
22752 * localedata/locales/fur_IT: Likewise.
22753 * localedata/locales/fy_DE: Likewise.
22754 * localedata/locales/fy_NL: Likewise.
22755 * localedata/locales/ga_IE: Likewise.
22756 * localedata/locales/gd_GB: Likewise.
22757 * localedata/locales/gez_ER: Likewise.
22758 * localedata/locales/gez_ET: Likewise.
22759 * localedata/locales/gl_ES: Likewise.
22760 * localedata/locales/gu_IN: Likewise.
22761 * localedata/locales/gv_GB: Likewise.
22762 * localedata/locales/ha_NG: Likewise.
22763 * localedata/locales/hak_TW: Likewise.
22764 * localedata/locales/he_IL: Likewise.
22765 * localedata/locales/hi_IN: Likewise.
22766 * localedata/locales/hif_FJ: Likewise.
22767 * localedata/locales/hne_IN: Likewise.
22768 * localedata/locales/hr_HR: Likewise.
22769 * localedata/locales/hsb_DE: Likewise.
22770 * localedata/locales/ht_HT: Likewise.
22771 * localedata/locales/hu_HU: Likewise.
22772 * localedata/locales/hy_AM: Likewise.
22773 * localedata/locales/i18n: Likewise.
22774 * localedata/locales/ia_FR: Likewise.
22775 * localedata/locales/id_ID: Likewise.
22776 * localedata/locales/ig_NG: Likewise.
22777 * localedata/locales/ik_CA: Likewise.
22778 * localedata/locales/is_IS: Likewise.
22779 * localedata/locales/it_CH: Likewise.
22780 * localedata/locales/it_IT: Likewise.
22781 * localedata/locales/iu_CA: Likewise.
22782 * localedata/locales/ja_JP: Likewise.
22783 * localedata/locales/ka_GE: Likewise.
22784 * localedata/locales/kk_KZ: Likewise.
22785 * localedata/locales/kl_GL: Likewise.
22786 * localedata/locales/kn_IN: Likewise.
22787 * localedata/locales/ko_KR: Likewise.
22788 * localedata/locales/kok_IN: Likewise.
22789 * localedata/locales/ks_IN: Likewise.
22790 * localedata/locales/ks_IN@devanagari: Likewise.
22791 * localedata/locales/ku_TR: Likewise.
22792 * localedata/locales/kw_GB: Likewise.
22793 * localedata/locales/ky_KG: Likewise.
22794 * localedata/locales/lb_LU: Likewise.
22795 * localedata/locales/lg_UG: Likewise.
22796 * localedata/locales/li_BE: Likewise.
22797 * localedata/locales/li_NL: Likewise.
22798 * localedata/locales/lij_IT: Likewise.
22799 * localedata/locales/ln_CD: Likewise.
22800 * localedata/locales/lo_LA: Likewise.
22801 * localedata/locales/lt_LT: Likewise.
22802 * localedata/locales/lv_LV: Likewise.
22803 * localedata/locales/lzh_TW: Likewise.
22804 * localedata/locales/mag_IN: Likewise.
22805 * localedata/locales/mai_IN: Likewise.
22806 * localedata/locales/mg_MG: Likewise.
22807 * localedata/locales/mhr_RU: Likewise.
22808 * localedata/locales/mi_NZ: Likewise.
22809 * localedata/locales/mk_MK: Likewise.
22810 * localedata/locales/ml_IN: Likewise.
22811 * localedata/locales/mn_MN: Likewise.
22812 * localedata/locales/mni_IN: Likewise.
22813 * localedata/locales/mr_IN: Likewise.
22814 * localedata/locales/ms_MY: Likewise.
22815 * localedata/locales/mt_MT: Likewise.
22816 * localedata/locales/my_MM: Likewise.
22817 * localedata/locales/nan_TW: Likewise.
22818 * localedata/locales/nan_TW@latin: Likewise.
22819 * localedata/locales/nb_NO: Likewise.
22820 * localedata/locales/nds_DE: Likewise.
22821 * localedata/locales/nds_NL: Likewise.
22822 * localedata/locales/ne_NP: Likewise.
22823 * localedata/locales/nhn_MX: Likewise.
22824 * localedata/locales/niu_NU: Likewise.
22825 * localedata/locales/niu_NZ: Likewise.
22826 * localedata/locales/nl_AW: Likewise.
22827 * localedata/locales/nl_BE: Likewise.
22828 * localedata/locales/nl_NL: Likewise.
22829 * localedata/locales/nn_NO: Likewise.
22830 * localedata/locales/nr_ZA: Likewise.
22831 * localedata/locales/nso_ZA: Likewise.
22832 * localedata/locales/oc_FR: Likewise.
22833 * localedata/locales/om_ET: Likewise.
22834 * localedata/locales/om_KE: Likewise.
22835 * localedata/locales/or_IN: Likewise.
22836 * localedata/locales/os_RU: Likewise.
22837 * localedata/locales/pa_IN: Likewise.
22838 * localedata/locales/pa_PK: Likewise.
22839 * localedata/locales/pap_AW: Likewise.
22840 * localedata/locales/pap_CW: Likewise.
22841 * localedata/locales/pl_PL: Likewise.
22842 * localedata/locales/ps_AF: Likewise.
22843 * localedata/locales/pt_BR: Likewise.
22844 * localedata/locales/pt_PT: Likewise.
22845 * localedata/locales/quz_PE: Likewise.
22846 * localedata/locales/raj_IN: Likewise.
22847 * localedata/locales/ro_RO: Likewise.
22848 * localedata/locales/ru_RU: Likewise.
22849 * localedata/locales/ru_UA: Likewise.
22850 * localedata/locales/rw_RW: Likewise.
22851 * localedata/locales/sa_IN: Likewise.
22852 * localedata/locales/sat_IN: Likewise.
22853 * localedata/locales/sc_IT: Likewise.
22854 * localedata/locales/sd_IN: Likewise.
22855 * localedata/locales/sd_IN@devanagari: Likewise.
22856 * localedata/locales/se_NO: Likewise.
22857 * localedata/locales/sgs_LT: Likewise.
22858 * localedata/locales/shs_CA: Likewise.
22859 * localedata/locales/si_LK: Likewise.
22860 * localedata/locales/sid_ET: Likewise.
22861 * localedata/locales/sk_SK: Likewise.
22862 * localedata/locales/sl_SI: Likewise.
22863 * localedata/locales/sm_WS: Likewise.
22864 * localedata/locales/so_DJ: Likewise.
22865 * localedata/locales/so_ET: Likewise.
22866 * localedata/locales/so_KE: Likewise.
22867 * localedata/locales/so_SO: Likewise.
22868 * localedata/locales/sq_AL: Likewise.
22869 * localedata/locales/sq_MK: Likewise.
22870 * localedata/locales/sr_ME: Likewise.
22871 * localedata/locales/sr_RS: Likewise.
22872 * localedata/locales/sr_RS@latin: Likewise.
22873 * localedata/locales/ss_ZA: Likewise.
22874 * localedata/locales/st_ZA: Likewise.
22875 * localedata/locales/sv_FI: Likewise.
22876 * localedata/locales/sv_SE: Likewise.
22877 * localedata/locales/sw_KE: Likewise.
22878 * localedata/locales/sw_TZ: Likewise.
22879 * localedata/locales/szl_PL: Likewise.
22880 * localedata/locales/ta_IN: Likewise.
22881 * localedata/locales/ta_LK: Likewise.
22882 * localedata/locales/tcy_IN: Likewise.
22883 * localedata/locales/te_IN: Likewise.
22884 * localedata/locales/tg_TJ: Likewise.
22885 * localedata/locales/th_TH: Likewise.
22886 * localedata/locales/the_NP: Likewise.
22887 * localedata/locales/ti_ER: Likewise.
22888 * localedata/locales/ti_ET: Likewise.
22889 * localedata/locales/tig_ER: Likewise.
22890 * localedata/locales/tk_TM: Likewise.
22891 * localedata/locales/tl_PH: Likewise.
22892 * localedata/locales/tn_ZA: Likewise.
22893 * localedata/locales/to_TO: Likewise.
22894 * localedata/locales/tpi_PG: Likewise.
22895 * localedata/locales/tr_CY: Likewise.
22896 * localedata/locales/tr_TR: Likewise.
22897 * localedata/locales/ts_ZA: Likewise.
22898 * localedata/locales/tt_RU: Likewise.
22899 * localedata/locales/tt_RU@iqtelif: Likewise.
22900 * localedata/locales/ug_CN: Likewise.
22901 * localedata/locales/uk_UA: Likewise.
22902 * localedata/locales/unm_US: Likewise.
22903 * localedata/locales/ur_IN: Likewise.
22904 * localedata/locales/ur_PK: Likewise.
22905 * localedata/locales/uz_UZ: Likewise.
22906 * localedata/locales/uz_UZ@cyrillic: Likewise.
22907 * localedata/locales/ve_ZA: Likewise.
22908 * localedata/locales/vi_VN: Likewise.
22909 * localedata/locales/wa_BE: Likewise.
22910 * localedata/locales/wae_CH: Likewise.
22911 * localedata/locales/wal_ET: Likewise.
22912 * localedata/locales/wo_SN: Likewise.
22913 * localedata/locales/xh_ZA: Likewise.
22914 * localedata/locales/yi_US: Likewise.
22915 * localedata/locales/yo_NG: Likewise.
22916 * localedata/locales/yue_HK: Likewise.
22917 * localedata/locales/yuw_PG: Likewise.
22918 * localedata/locales/zh_CN: Likewise.
22919 * localedata/locales/zh_HK: Likewise.
22920 * localedata/locales/zh_SG: Likewise.
22921 * localedata/locales/zh_TW: Likewise.
22922 * localedata/locales/zu_ZA: Likewise.
22923
22924 2017-11-13 Florian Weimer <fweimer@redhat.com>
22925
22926 * support/next_to_fault.h, support/next_to_fault.c: New files.
22927 * support/Makefile (libsupport-routines): Add next_to_fault.
22928 * resolv/tst-inet_pton.c (struct next_to_fault)
22929 (next_to_fault_allocate, next_to_fault_free): Remove.
22930 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22931
22932 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22933
22934 * elf/dl-support.c: Include <dl-procruntime.c>.
22935 * include/link.h: Include <link_map.h>.
22936 * sysdeps/generic/dl-procruntime.c: New file.
22937 * sysdeps/generic/link_map.h: Likewise.
22938 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22939 the writable ld.so namespace.
22940
22941 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22942
22943 timezone: pacify GCC -Wstringop-truncation
22944 Problem reported by Martin Sebor in:
22945 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22946 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22947
22948 2017-11-12 Florian Weimer <fweimer@redhat.com>
22949
22950 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22951 tst-xreadlink.
22952 (tests): Add tst-xreadlink.
22953 * support/support.h (xstrndup): Declare.
22954 * support/xunistd.h (xunlink, xreadlink): Declare.
22955 * support/temp_file.h (support_create_temp_directory): Declare.
22956 * support/temp_file.c (support_create_temp_directory): New function.
22957 * support/support_chroot.c (support_chroot_create): Use it.
22958 * support/xreadlink.c: New file.
22959 * support/xstrndup.c: Likewise.
22960 * support/xunlink.c: Likewise.
22961 * support/tst-xreadlink.c: Likewise.
22962
22963 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22964
22965 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22966
22967 2017-11-11 Florian Weimer <fweimer@redhat.com>
22968
22969 [BZ #22409]
22970 [BZ #22412]
22971 * resolv/res_comp.c (printable_string, binary_hnok)
22972 (binary_leading_dash): New functions.
22973 (res_hnok): Reimplement using these functions and ns_name_pton.
22974 (res_ownok): Likewise.
22975 (res_mailok): Reimplement using printable_string, ns_name_pton and
22976 binary_hnok.
22977 (res_dnok): Reimplement using printable_string and ns_name_pton.
22978 * resolv/tst-res_hnok.c (tests): Add additional tests.
22979 (LETTERDIGITS, PRINTABLE): Define.
22980 (do_test): Adjust one_char results.
22981
22982 2017-11-11 Florian Weimer <fweimer@redhat.com>
22983
22984 [BZ #22413]
22985 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22986 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22987
22988 2017-11-11 Florian Weimer <fweimer@redhat.com>
22989
22990 * resolv/tst-ns_name_pton.c: New file.
22991 * resolv/Makefile (tests): Add tst-ns_name_pton.
22992 (tst-ns_name_pton): Link against libresolv.
22993
22994 2017-11-11 Florian Weimer <fweimer@redhat.com>
22995
22996 * resolv/tst-res_hnok.c: New file.
22997 * resolv/Makefile (tests): Add tst-res_hnok.
22998 (tst-res_hnok): Link against libresolv.
22999
23000 2017-11-11 Florian Weimer <fweimer@redhat.com>
23001
23002 * resolv/tst-resolv-network.c: Use test framework instead explicit
23003 main function.
23004
23005 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23006
23007 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23008 <jmp_buf-macros.h>.
23009 [!_ISOMAC] (STR_HELPER): New.
23010 [!_ISOMAC] (STR): Likewise.
23011 [!_ISOMAC] (TEST_SIZE): Likewise.
23012 [!_ISOMAC] (TEST_ALIGN): Likewise.
23013 [!_ISOMAC] (TEST_OFFSET): Likewise.
23014 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23015 field offsets of jmp_buf as well as sigjmp_buf.
23016 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23017 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23018 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23019 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23020 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23021 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23022 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23023 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23024 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23025 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23026 Likewise.
23027 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23028 Likewise.
23029 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23030 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23031 Likewise.
23032 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23033 Likewise.
23034 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23035 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23036 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23037 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23038 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23039 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23040 Likewise.
23041 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23042 Likewise.
23043 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23044 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23045 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23046
23047 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23048
23049 * include/float.h
23050 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23051 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23052 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23053 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23054 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23055 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23056 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23057 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23058 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23059 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23060 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23061 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23062 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23063 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23064 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23065 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23066 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23067 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23068 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23069 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23070 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23071 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23072 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23073 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23074 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23075 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23076 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23077 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23078 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23079 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23080 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23081 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23082 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23083 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23084 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23085 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23086 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23087 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23088 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23089 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23090 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23091 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23092 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23093 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23094 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23095 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23096 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23097 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23098 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23099 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23100 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23101 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23102 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23103 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23104 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23105 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23106 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23107 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23108 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23109 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23110 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23111 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23112 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23113 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23114 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23115 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23116 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23117 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23118 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23119 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23120 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23121 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23122 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23123 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23124 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23125 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23126 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23127 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23128 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23129 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23130 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23131 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23132 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23133 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23134 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23135 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23136 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23137 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23138
23139 * stdlib/tst-strtod.h (F16): New macro.
23140 (F32): Likewise.
23141 (F64): Likewise.
23142 (F32X): Likewise.
23143 (F64X): Likewise.
23144 (F128X): Likewise.
23145 (IF_FLOAT16): Likewise.
23146 (IF_FLOAT32): Likewise.
23147 (IF_FLOAT64): Likewise.
23148 (IF_FLOAT32X): Likewise.
23149 (IF_FLOAT64X): Likewise.
23150 (IF_FLOAT128X): Likewise.
23151 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23152 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23153 (STRTOD_TEST_FOREACH): Likewise.
23154 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23155 (CHOOSE_f64): Likewise.
23156 (CHOOSE_f32x): Likewise.
23157 (CHOOSE_f64x): Likewise.
23158
23159 2017-11-07 Andreas Schwab <schwab@suse.de>
23160
23161 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23162
23163 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23164
23165 [BZ #22403]
23166 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23167 to be escaped.
23168 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23169 to be escaped.
23170
23171 2017-11-07 Claude Paroz <claude@2xlibre.net>
23172
23173 [BZ #22403]
23174 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23175 to be escaped.
23176 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23177 to be escaped.
23178 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23179 to be escaped.
23180
23181 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23182
23183 [BZ #22298]
23184 * nptl/allocatestack.c (allocate_stack): Check if
23185 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23186 __PTHREAD_MUTEX_HAVE_PREV is defined.
23187 * nptl/descr.h (pthread): Likewise.
23188 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23189 Likewise.
23190 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23191 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23192 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23193 * sysdeps/nptl/bits/thread-shared-types.h
23194 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23195 defines.
23196 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23197 of __WORDSIZE for internal layout.
23198 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23199 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23200 instead of __WORDSIZE whether to use an union for __spins and __list
23201 fields.
23202 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23203 case.
23204 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23205 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23206 defines.
23207 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23208 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23209 Likewise.
23210 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23211 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23212 Likewise.
23213 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23214 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23215 Likewise.
23216 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23217 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23218 Likewise.
23219 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23220 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23221 Likewise.
23222 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23223 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23224 Likewise.
23225 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23226 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23227 Likewise.
23228 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23229 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23230 Likewise.
23231 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23232 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23233 Likewise.
23234 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23235 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23236 Likewise.
23237 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23238 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23239 Likewise.
23240 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23241 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23242 Likewise.
23243 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23244 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23245 Likewise.
23246 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23247 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23248 Likewise.
23249
23250 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23251 New macros.
23252 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23253 checks for expected input type size.
23254 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23255 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23256 Likewise.
23257 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23258 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23259 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23260 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23261 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23262 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23263 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23264 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23265 superflous runtime assert check.
23266 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23267 Likewise.
23268 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23269 Likewise.
23270 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23271 Likewise.
23272 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23273 Likewise.
23274 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23275 Likewise.
23276 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23277 Likewise.
23278 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23279 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23280 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23281 Likewise.
23282 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23283 Likewise.
23284 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23285 Likewise.
23286 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23287 Likewise.
23288 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23289 Likewise.
23290 * nptl/pthread_attr_setinheritsched.c
23291 (__pthread_attr_setinheritsched): Likewise.
23292 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23293 Likewise.
23294 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23295 Likewise.
23296 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23297 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23298 __old_pthread_attr_setstack): Likewise.
23299 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23300 Likewise.
23301 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23302 Likewise.
23303 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23304 Likewise.
23305 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23306 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23307 Likewise.
23308 * nptl/tst-typesizes.c: Remove file.
23309
23310 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23311 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23312 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23313 checks for internal pthread_mutex_t offsets.
23314 * sysdeps/aarch64/nptl/pthread-offsets.h
23315 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23316 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23317 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23318 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23319 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23320 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23321 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23322 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23323 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23324 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23325 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23326 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23327 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23328 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23329 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23330 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23331 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23332 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23333
23334 2017-11-07 Florian Weimer <fweimer@redhat.com>
23335
23336 * bits/mman-linux.h: Move ...
23337 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23338 comment.
23339 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23340 outdated comment.
23341
23342 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23343
23344 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23345 Redefine STRNLEN as __strnlen_power8.
23346
23347 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23348
23349 * signal/sighold.c (sighold): Optimize implementation.
23350
23351 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23352 __NR_rt_sigqueueinfo.
23353
23354 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23355 __sigtimedwait.
23356 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23357 assume __NR_rt_sigtimedwait.
23358 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23359 and add LIBC_CANCEL_HANDLED for cancellation marking.
23360 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23361
23362 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23363 (sysdeps_routines): Add memchr_noneon.
23364 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23365 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23366 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23367 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23368 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23369 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23370 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23371
23372 * sysdeps/arm/arm-ifunc.h: New file.
23373 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23374 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23375 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23376 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23377 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23378 (__memcpy_neon): Avoid create hidden alias.
23379 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23380 (__memcpy_vfp): Likewise.
23381 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23382 (sysdep_routines): Add memcpy_arm.
23383 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23384
23385 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23386
23387 [BZ #22362]
23388 * Makerules (make-link-multidir): New.
23389 * config.make.in (multidir): New.
23390 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23391 * configure: Regenerated.
23392 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23393 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23394 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23395 New target.
23396
23397 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23398
23399 [BZ #22402]
23400 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23401 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23402
23403 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23404
23405 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23406 to be escaped.
23407
23408 2017-11-04 Florian Weimer <fweimer@redhat.com>
23409
23410 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23411
23412 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23413
23414 * math/math.h [__HAVE_DISTINCT_FLOAT16
23415 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23416 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23417 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23418 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23419 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23420 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23421 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23422 (__MATH_TG_F32): New macro.
23423 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23424 (__MATH_TG_F64X): Likewise.
23425 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23426 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23427
23428 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23429
23430 * po/de.po: Update translations.
23431 * po/ru.po: Likewise.
23432
23433 2017-11-03 Florian Weimer <fweimer@redhat.com>
23434
23435 * manual/filesys.texi (Hard Links): Document linkat.
23436
23437 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23438
23439 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23440 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23441 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23442 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23443 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23444 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23445 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23446 the same as _Float128.
23447 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23448 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23449 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23450
23451 * stdlib/stdlib.h
23452 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23453 Declare.
23454 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23455 Likewise.
23456 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23457 Likewise.
23458 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23459 (strtof32x): Likewise.
23460 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23461 (strtof64x): Likewise.
23462 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23463 (strtof128x): Likewise.
23464 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23465 (strfromf16): Likewise.
23466 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23467 (strfromf32): Likewise.
23468 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23469 (strfromf64): Likewise.
23470 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23471 (strfromf32x): Likewise.
23472 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23473 (strfromf64x): Likewise.
23474 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23475 (strfromf128x): Likewise.
23476 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23477 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23478 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23479 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23480 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23481 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23482
23483 2017-11-03 Richard Henderson <rth@twiddle.net>
23484
23485 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23486
23487 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23488
23489 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23490
23491 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23492
23493 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23494 DT_TLSDESC_GOT initialization.
23495 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23496 (_dl_tlsdesc_resolve_hold): Likewise.
23497 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23498 (_dl_tlsdesc_resolve_hold): Likewise.
23499 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23500 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23501
23502 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23503
23504 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23505
23506 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23507
23508 [BZ #18572]
23509 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23510 non-lazily for R_ARM_TLS_DESC.
23511
23512 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23513
23514 [BZ #17078]
23515 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23516 R_ARM_TLS_DESC case.
23517 (elf_machine_lazy_rel): Remove the prelink check.
23518
23519 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23520
23521 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23522 DT_TLSDESC_GOT initialization.
23523 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23524 (_dl_tlsdesc_resolve_rela): Likewise.
23525 (_dl_tlsdesc_resolve_hold): Likewise.
23526 (_dl_tlsdesc_undefweak): Remove ldar.
23527 (_dl_tlsdesc_dynamic): Likewise.
23528 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23529 (_dl_tlsdesc_resolve_rela): Likewise.
23530 (_dl_tlsdesc_resolve_hold): Likewise.
23531 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23532 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23533 (_dl_tlsdesc_resolve_rela): Likewise.
23534 (_dl_tlsdesc_resolve_hold): Likewise.
23535
23536 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23537
23538 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23539 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23540
23541 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23542
23543 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23544 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23545
23546 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23547
23548 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23549 Declare.
23550 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23551 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23552 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23553 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23554 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23555 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23556 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23557 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23558 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23559 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23560 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23561
23562 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23563
23564 [BZ #22382]
23565 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23566 * localedata/locales/tpi_PG: Add standard header.
23567
23568 2017-11-02 Florian Weimer <fweimer@redhat.com>
23569
23570 test-errno-linux: quotactl can fail with EPERM in containers.
23571 * sysdeps/unix/sysv/linux/test-errno-linux.c
23572 (LIST, LIST_FORWARD): New macros.
23573 (check_error_in_list): New function.
23574 (test_wrp_rv): Accept list of permitted error codes.
23575 (test_wrp_rv2): Remove.
23576 (test_wrp): Call test_wrp_rv with list of error codes.
23577 (test_wrp2): Accept list of error codes.
23578 (do_test): Adjust. Allow EPERM for quotactl.
23579
23580 2017-11-02 Florian Weimer <fweimer@redhat.com>
23581
23582 * stdio-common/bug16.c (do_test): Use array_length.
23583 * stdio-common/errlist.c (_sys_nerr): Likewise.
23584 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23585 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23586 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23587 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23588 (do_test): Use array_length.
23589 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23590 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23591 * stdio-common/tst-printf-round.c (do_test): Likewise.
23592 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23593 (CHECK): Use array_length.
23594 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23595 * stdio-common/tstscanf.c (main): Likewise.
23596 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23597
23598 2017-11-02 Florian Weimer <fweimer@redhat.com>
23599
23600 Add array_length and array_end macros.
23601 * include/array_length.h: New file.
23602
23603 2017-11-02 Florian Weimer <fweimer@redhat.com>
23604
23605 [BZ #22332]
23606 * posix/tst-glob-tilde.c (do_noescape): New variable.
23607 (one_test): Process it.
23608 (do_test): Set do_noescape. Add unescaping test case.
23609
23610 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23611
23612 * math/complex.h
23613 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23614 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23615 with appropriate macros defined and undefined.
23616 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23617 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23618 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23619 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23620 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23621 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23622 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23623 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23624 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23625 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23626
23627 * math/complex.h
23628 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23629 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23630 that for long double. Do not condition define and undefine of
23631 _Mdouble_complex_ on [__CFLOAT128].
23632
23633 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23634
23635 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23636 of <sysdeps/generic/sysdep.h>.
23637 (ALIGNARG): Removed.
23638 (ASM_SIZE_DIRECTIVE): Likewise.
23639 (ENTRY): Likewise.
23640 (END): Likewise.
23641 (ENTRY_CHK): Likewise.
23642 (END_CHK): Likewise.
23643 (syscall_error): Likewise.
23644 (mcount): Likewise.
23645 (PSEUDO_END): Likewise.
23646 (L): Likewise.
23647 (atom_text_section): Likewise.
23648 * sysdeps/x86/sysdep.h: New file.
23649 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23650 of <sysdeps/generic/sysdep.h>.
23651 (ALIGNARG): Removed.
23652 (ASM_SIZE_DIRECTIVE): Likewise.
23653 (ENTRY): Likewise.
23654 (END): Likewise.
23655 (ENTRY_CHK): Likewise.
23656 (END_CHK): Likewise.
23657 (syscall_error): Likewise.
23658 (mcount): Likewise.
23659 (PSEUDO_END): Likewise.
23660 (L): Likewise.
23661 (atom_text_section): Likewise.
23662
23663 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23664
23665 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23666 category of LC_CTYPE set to "i18n:2012".
23667 * localedata/locales/i18n_ctype: Regenerate.
23668
23669 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23670
23671 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23672 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23673 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23674 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23675
23676 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23677 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23678 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23679 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23680
23681 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23682
23683 * math/complex.h
23684 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23685 New macro.
23686 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23687 Likewise.
23688 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23689 Likewise.
23690 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23691 (CMPLXF32X): Likewise.
23692 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23693 (CMPLXF64X): Likewise.
23694 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23695 (CMPLXF128X): Likewise.
23696
23697 * math/math.h
23698 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23699 (__MATH_EVAL_FMT2): Define to add 0.0f.
23700
23701 2017-10-31 Alan Modra <amodra@gmail.com>
23702
23703 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23704 include sysdep.h.
23705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23706 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23708 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23709 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23710 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23711 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23712 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23713 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23714 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23715 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23716 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23717 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23719 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23720 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23721 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23722 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23723 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23724 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23725 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23726 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23727 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23728 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23729 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23730 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23731 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23732 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23733 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23734 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23735 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23736 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23737 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23738 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23739 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23740 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23741 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23742 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23743 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23744 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23745 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23746 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23747 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23748 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23749 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23750 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23751 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23752 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23753 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23754 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23755 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23756 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23757 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23758 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23759 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23760 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23761 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23762 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23763 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23764 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23765 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23766 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23767 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23768 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23769 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23770 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23771 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23772 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23773 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23774
23775 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23776 include sysdep.h and math_ldbl_opt.h.
23777
23778 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23779 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23780 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23781 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23782 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23783 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23784 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23785 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23786 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23787 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23788 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23789 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23790 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23791 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23792 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23793 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23795 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23796 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23799 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23800 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23801 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23802 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23803 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23804
23805 2017-10-31 Alan Modra <amodra@gmail.com>
23806
23807 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23808 string/strncase_l.c, not string/strncase.c.
23809 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23810 (libc_hidden_def): Redefine.
23811
23812 2017-10-31 Alan Modra <amodra@gmail.com>
23813
23814 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23815 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23816 (__strcasecmp): Don't define.
23817
23818 2017-10-31 Alan Modra <amodra@gmail.com>
23819
23820 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23821 IS_IN (libc).
23822 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23823 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23824 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23825
23826 2017-10-31 Alan Modra <amodra@gmail.com>
23827
23828 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23829 USE_AS_STPNCPY.
23830
23831 2017-10-31 Alan Modra <amodra@gmail.com>
23832
23833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23834 Redefine only when SHARED.
23835
23836 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23837
23838 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23839 Include <bits/math-finite.h> with appropriate macros defined and
23840 undefined.
23841 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23842 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23843 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23844 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23845 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23846
23847 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23848 [!_Mlong_double_] (_Mlong_double_): Likewise.
23849 [!_Mfloat16_] (_Mfloat16_): Likewise.
23850 [!_Mfloat32_] (_Mfloat32_): Likewise.
23851 [!_Mfloat64_] (_Mfloat64_): Likewise.
23852 [!_Mfloat128_] (_Mfloat128_): Likewise.
23853 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23854 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23855 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23856 (_Mdouble_): Define without indirection through those macros.
23857 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23858 [!_Mfloat128_] (_Mfloat128_): Likewise.
23859 [_Mlong_double_] (_Mlong_double_): Likewise.
23860 (_Mdouble_): Define without indirection through those macros.
23861 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23862 not add -D_Mlong_double_=double.
23863 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23864 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23865
23866 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23867
23868 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23869
23870 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23871
23872 * sysdeps/x86/libc-start.c: Reformat.
23873
23874 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23875
23876 [BZ #22353]
23877 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23878 (1): Renamed to ...
23879 (L(Src0)): This.
23880 (L(Src1)): New.
23881 (L(Src2)): Likewise.
23882 (L(1)): Renamed to ...
23883 (L(Src3)): This.
23884
23885 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23886
23887 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23888 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23889 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23890 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23891 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23892 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23893 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23894 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23895 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23896 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23897 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23898 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23899 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23900 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23901 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23902 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23903 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23904 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23905 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23906 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23907 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23908 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23909 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23910 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23911 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23912 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23913 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23914 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23915 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23916 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23917 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23918 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23919 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23920 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23921 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23922 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23923 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23924 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23925 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23926 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23927 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23928 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23929 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23930 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23931 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23932 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23933 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23934 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23935 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23936 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23937 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23938 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23939 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23940 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23941 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23942 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23943 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23944 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23945 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23946 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23947 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23948 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23949 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23950 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23951 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23952 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23953
23954 2017-10-30 Florian Weimer <fweimer@redhat.com>
23955
23956 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23957 always defined.
23958 * io/tst-mkdirat.c (do_test): Likewise.
23959 * io/tst-mkfifoat.c (do_test): Likewise.
23960 * io/tst-mknodat.c (do_test): Likewise.
23961 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23962 * locale/programs/locale.c (select_dirs): Likewise.
23963 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23964 * posix/bug-glob2.c (my_readdir): Likewise.
23965 * posix/tst-dir.c (main): Likewise.
23966 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23967 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23968
23969 2017-10-30 Florian Weimer <fweimer@redhat.com>
23970
23971 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23972 just __USE_GNU.
23973
23974 2017-10-30 Florian Weimer <fweimer@redhat.com>
23975
23976 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23977 Convert to support/test-driver.c.
23978 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23979 New macro parameters.
23980 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23981 * posix/tst-gnuglob.c: New file.
23982 * posix/tst-gnuglob64.c: Likewise.
23983 * posix/Makefile (tests): Add tst-gnuglob64.
23984
23985 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23986
23987 [BZ #19485]
23988 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23989 and use a better translation for March in “mon”.
23990 * localedata/locales/csb_PL: Use more ASCII to improve the
23991 readability of the source.
23992
23993 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23994
23995 [BZ #13953]
23996 * localedata/locales/km_KH: Use ASCII as much
23997 as possible for better readability of the source and
23998 remove useless comments.
23999 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24000 was commented out and apparently wrong anyway because it was
24001 using Lao characters. If Buddhist era should be used
24002 for km_KH, a native speaker should write the correct formaat
24003 for Khmer.
24004 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24005 (According to CLDR, the first weekday for Cambodia is Sunday).
24006 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24007 (These were using Lao characters which must be wrong. If we get
24008 the correct data from a native speaker, we could add it back, until
24009 then it is better not to have name_mr and name_mrs at all than
24010 having it wrong).
24011
24012 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24013
24014 * locale/loadlocale.c: Correct size of
24015 _nl_value_type_LC_<category> arrays.
24016
24017 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24018
24019 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24020 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24021 with appropriate macros defined and undefined.
24022 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24023 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24024 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24025 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24026 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24027
24028 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24029
24030 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24031 "-O2 -march=i586".
24032
24033 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24034
24035 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24036 with lowercase letters to make it agree with CLDR.
24037
24038 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24039
24040 [BZ #15260]
24041 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24042 first letters of yesstr and nostr in yesexpr and noexpr,
24043 not for the full words.
24044 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24045 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24046 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24047 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24048 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24049 first letters of yesstr and nostr in yesexpr and noexpr,
24050 until now only English was matched in yesexpr and noexpr.
24051 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24052 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24053 fil but not for tl. As tl and fil are very similar, using fil
24054 is probably better than using English.
24055
24056 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24057
24058 [BZ #21706]
24059 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24060 in yesstr and nostr.
24061
24062 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24063
24064 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24065 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24066 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24067 Likewise.
24068 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24069 Likewise.
24070 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24071 Likewise.
24072 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24073 Likewise.
24074 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24075 (SNANF128X): Likewise.
24076
24077 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24078 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24079 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24080 (HUGE_VAL_F32): Likewise.
24081 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24082 (HUGE_VAL_F64): Likewise.
24083 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24084 (HUGE_VAL_F32X): Likewise.
24085 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24086 (HUGE_VAL_F64X): Likewise.
24087 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24088 (HUGE_VAL_F128X): Likewise.
24089
24090 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24091
24092 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24093 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24094 for the br_FR locale.
24095
24096 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24097
24098 [BZ #21706]
24099 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24100
24101 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24102
24103 * locale/programs/record-status.h: Define globals, and function
24104 prototypes. Move function bodies...
24105 * locale/programs/record-status.c: ... to here. New file.
24106 * iconv/Makefile (iconv_prog-modules): Add record-status.
24107 * locale/Makefile (lib-modules): Likewise.
24108 * iconv/iconv_prog.c: Remove verbose.
24109 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24110 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24111 record a warning about ASCII compatibility.
24112 * locale/programs/ld-monetary.c (monetary_finish): If
24113 warn_int_curr_symbol is true then record a warning about the symbol
24114 not being in our ISO 4217 list.
24115 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24116 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24117 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24118 (OPT_NO_WARN): Define.
24119 (OPT_WARN): Define.
24120 (options): Add entry for --no-warnings, and --warnings.
24121 (set_warnings): New function to enable/disable warnings.
24122 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24123 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24124 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24125 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24126 Pass flags to generate_locale.
24127 (generate_locale): Accept new flag argument and pass it to localedef
24128 invocation.
24129 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24130 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24131
24132 * localedata/Makefile (test-input-data): Use full file name.
24133 * localedata/da_DK.in: Rename to...
24134 * localedata/da_DK.ISO-8859-1.in: ...this.
24135 * localedata/de_DE.in: Rename to...
24136 * localedata/de_DE.ISO-8859-1.in: ...this.
24137 * localedata/en_US.in: Rename to...
24138 * localedata/en_US.ISO-8859-1.in: ...this.
24139 * localedata/fr_FR.in: Rename to...
24140 * localedata/fr_FR.UTF-8.in: ... this.
24141 * localedata/hr_HR.in: Rename to...
24142 * localedata/hr_HR.ISO-8859-2.in: ...this.
24143 * localedata/hu_HU.in: Rename to...
24144 * localedata/hu_HU.UTF-8.in: ...this.
24145 * localedata/si_LK.in: Rename to...
24146 * localedata/si_LK.UTF-8.in: ...this.
24147 * localedata/sv_SE.in: Rename to...
24148 * localedata/sv_SE.ISO-8859-1.in: ...this.
24149 * localedata/tr_TR.in: Rename to...
24150 * localedata/tr_TR.UTF-8.in: ...this.
24151 * localedata/uk_UA.in: Rename to...
24152 * localedata/uk_UA.UTF-8.in: ...this.
24153 * localedata/sort-test.sh: Test file is locale name with the
24154 suffix.
24155
24156 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24157 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24158 file.
24159 * localedata/locales/i18n_ctype: Regenerate.
24160 * localedata/locales/tr_TR: Likewise.
24161 * localedata/locales/translit_circle: Likewise.
24162 * localedata/locales/translit_cjk_compat: Likewise.
24163 * localedata/locales/translit_combining: Likewise.
24164 * localedata/locales/translit_compat: Likewise.
24165 * localedata/locales/translit_font: Likewise.
24166 * localedata/locales/translit_fraction: Likewise.
24167
24168 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24169
24170 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24171 lxvd2x/stxvd2x with lvx/stvx.
24172 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24173
24174 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24175
24176 * include/alloc_buffer.h: Replace "if if " with "if " in
24177 comments.
24178 * sysdeps/mips/memcpy.S: Likkewise.
24179 * sysdeps/mips/memset.S: Likewise.
24180 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24181 Likewise.
24182 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24183 Likewise.
24184 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24185 Likewise.
24186
24187 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24188
24189 [BZ #15261]
24190 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24191 yesexpr and noexpr.
24192 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24193 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24194 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24195 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24196 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24197 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24198 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24199
24200 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24201
24202 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24203 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24204 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24205 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24206 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24207 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24208 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24209 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24210 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24211 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24212 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24213 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24214
24215 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24216
24217 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24218 as possible for better readability of the source.
24219 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24220 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24221 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24222 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24223 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24224 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24225 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24226 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24227 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24228 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24229 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24230 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24231 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24232 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24233 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24234 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24235 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24236 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24237 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24238 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24239 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24240 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24241 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24242 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24243 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24244 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24245 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24246 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24247 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24248 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24249 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24250 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24251 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24252 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24253 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24254 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24255 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24256 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24257 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24258 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24259 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24260 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24261 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24262 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24263 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24264 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24265 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24266 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24267 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24268 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24269 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24270 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24271 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24272 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24273 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24274 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24275 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24276 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24277 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24278 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24279 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24280 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24281 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24282 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24283 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24284 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24285 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24286 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24287 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24288 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24289 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24290 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24291 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24292 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24293 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24294 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24295 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24296 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24297 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24298 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24299 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24300 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24301 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24302 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24303 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24304 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24305 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24306 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24307 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24308 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24309 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24310 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24311 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24312 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24313 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24314 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24315 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24316 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24317 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24318 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24319 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24320 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24321 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24322 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24323 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24324 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24325 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24326 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24327 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24328 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24329 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24330 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24331 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24332 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24333 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24334 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24335 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24336 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24337 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24338 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24339 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24340 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24341 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24342 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24343 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24344 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24345 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24346 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24347 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24348 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24349 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24350 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24351 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24352 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24353 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24354 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24355 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24356 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24357 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24358 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24359 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24360 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24361 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24362 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24363 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24364 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24365 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24366 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24367 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24368 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24369 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24370 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24371 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24372 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24373 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24374 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24375 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24376 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24377 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24378 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24379 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24380 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24381 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24382 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24383 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24384 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24385 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24386 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24387 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24388 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24389 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24390 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24391 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24392 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24393
24394 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24395
24396 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24397 (Use first letters of yesstr and nostr correctly instead of using
24398 full words).
24399
24400 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24401
24402 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24403 (Use first letters of yesstr and nostr correctly).
24404
24405 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24406
24407 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24408 also check for the first characters of yesstr and nostr.
24409 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24410 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24411
24412 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24413
24414 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24415 also check for Chinese characters.
24416
24417 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24418
24419 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24420 match also for the contents of yesstr and nostr. As the first letter
24421 of yesstr and nostr is equal, checking only for the first letter
24422 is not enough.
24423
24424 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24425
24426 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24427 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24428
24429 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24430
24431 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24432 of main contributor.
24433
24434 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24435
24436 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24437 instead of using English.
24438
24439 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24440
24441 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24442 by including the first letters of nostr and yesexpr in the regexp.
24443 Also make it more readable by using ASCII where possible.
24444
24445 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24446
24447 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24448 the first letter of nostr in the regexp. It agrees with CLDR now.
24449 Also make it more readable by using ASCII where possible.
24450
24451 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24452
24453 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24454 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24455 these strings contain a U+17D6 (which somewhat looks like a colon)
24456 instead of a real colon to separate the full words for “yes”
24457 and “no” from the single letter responses.
24458
24459 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24460
24461 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24462 it agree with CLDR (include the first letter of yesstr).
24463 Also make it more readable by using ASCII where possible.
24464
24465 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24466
24467 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24468 and improve yesexpr and noexpr. The yesstr and nostr apparently
24469 came from CLDR. And CLDR has a bug there: these strings contain
24470 a U+0903 (which looks like a colon) instead of a real colon
24471 to separate the full words for “yes” and “no” from the single
24472 letter responses.
24473
24474 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24475
24476 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24477 letters of the full yesstr and nostr in yesexpr and noexpr.
24478
24479 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24480
24481 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24482 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24483 * localedata/locales/an_ES: Make source more readable by using ASCII
24484 where possible.
24485
24486 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24487
24488 [BZ #20952]
24489 * localedata/locales/yuw_PG: New file.
24490 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24491 * locale/iso-639.def: Add Yau (Uruwa).
24492
24493 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24494
24495 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24496
24497 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24498
24499 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24500 (__libc_realloc): Likewise.
24501 (_mid_memalign): Likewise.
24502 (__libc_calloc): Likewise.
24503
24504 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24505
24506 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24507 by adding the generic +1 and -0 as in all other locales.
24508 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24509 day names and make it more readable by using ASCII where possible.
24510
24511 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24512
24513 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24514 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24515
24516 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24517
24518 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24519 WNOHANG in waitpid call.
24520
24521 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24522
24523 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24524 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24525
24526 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24527 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24528 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24529 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24530 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24531 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24532 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24533 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24534 variables.
24535
24536 2017-10-23 Michael Collison <michael.collison@arm.com>
24537
24538 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24539 with __builtin_sqrt.
24540 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24541 with __builtin_sqrtf.
24542 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24543 with __builtin_ceil.
24544 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24545 with __builtin_ceilf.
24546 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24547 with __builtin_floor.
24548 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24549 with __builtin_floorf.
24550 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24551 with __builtin_fma.
24552 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24553 with __builtin_fmaf.
24554 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24555 with __builtin_fmax.
24556 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24557 with __builtin_fmaxf.
24558 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24559 with __builtin_fmin.
24560 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24561 with __builtin_fminf.
24562 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24563 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24564 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24565 with builtin_rint and conversion to int.
24566 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24567 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24568 with builtin_llround.
24569 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24570 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24571 with builtin_rint and conversion to long int.
24572 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24573 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24574 with builtin_lround.
24575 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24576 with builtin_lroundf.
24577 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24578 statements with __builtin_nearbyint.
24579 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24580 statements with __builtin_nearbyintf.
24581 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24582 with __builtin_rint.
24583 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24584 with __builtin_rintf.
24585 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24586 with __builtin_round.
24587 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24588 with __builtin_roundf.
24589 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24590 with __builtin_trunc.
24591 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24592 with __builtin_truncf.
24593 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24594 and s_l[l]round[f].c too.
24595
24596 2017-10-23 Alan Modra <amodra@gmail.com>
24597
24598 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24599 Adjust stack after restoring regs. Add missing LR cfi_restore.
24600
24601 2017-10-23 Alan Modra <amodra@gmail.com>
24602
24603 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24604 Move LR save and frame setup/teardown and LR restore to
24605 immediately around memset call. Provide cfi.
24606
24607 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24608
24609 * sysdeps/i386/fpu/e_powf.S: Removed.
24610 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24611 * sysdeps/i386/fpu/w_powf.c: Likewise.
24612 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24613 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24614 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24615 Add e_powf-sse2.
24616 (CFLAGS-e_powf-sse2.c): New.
24617 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24618 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24619
24620 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24621
24622 * sysdeps/i386/fpu/e_log2f.S: Removed.
24623 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24624 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24625 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24626 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24627 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24628 Add e_log2f-sse2.
24629 (CFLAGS-e_log2f-sse2.c): New.
24630 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24631 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24632
24633 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24634
24635 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24636 Add e_powf-fma.
24637 (CFLAGS-e_powf-fma.c): New.
24638 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24639 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24640
24641 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24642
24643 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24644 Add e_log2f-fma.
24645 (CFLAGS-e_log2f-fma.c): New.
24646 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24647 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24648
24649 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24650
24651 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24652 Add e_logf-fma.
24653 (CFLAGS-e_logf-fma.c): New.
24654 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24655 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24656
24657 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24658
24659 * sysdeps/i386/fpu/e_logf.S: Removed.
24660 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24661 * sysdeps/i386/fpu/w_logf.c: Likewise.
24662 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24663 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24664 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24665 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24666 Add e_logf-sse2.
24667 (CFLAGS-e_logf-sse2.c): New.
24668 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24669 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24670
24671 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24672
24673 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24674 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24675 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24676 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24677 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24678 Add e_exp2f-sse2.
24679 (CFLAGS-e_exp2f-sse2.c): New.
24680 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24681 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24682
24683 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24684
24685 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24686 Add e_exp2f-fma.
24687 (CFLAGS-e_exp2f-fma.c): New.
24688 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24689 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24690
24691 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24692
24693 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24694 * sysdeps/i386/fpu/e_expf.S: Likewise.
24695 * sysdeps/i386/fpu/math_errf.c: Likewise.
24696 * sysdeps/i386/fpu/w_expf.c: Likewise.
24697 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24698 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24699 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24700 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24701 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24702 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24703 Remove e_expf-ia32.
24704 (CFLAGS-e_expf-sse2.c): New.
24705 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24706 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24707
24708 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24709
24710 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24711 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24712 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24713 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24714 e_expf.c.
24715 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24716 New.
24717 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24718 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24719 Renamed to ...
24720 (__redirect_expf): This.
24721 (SYMBOL_NAME): Changed to expf.
24722 (__ieee754_expf): Renamed to ...
24723 (__expf): This.
24724 (__GI___expf): This.
24725 (__ieee754_expf): Add strong_alias.
24726 (__expf_finite): Likewise.
24727 (__expf): New.
24728 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24729
24730 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24731
24732 [BZ #22332]
24733 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24734 unescaping.
24735
24736 2017-10-21 Florian Weimer <fweimer@redhat.com>
24737
24738 * posix/Makefile (tests): Add tst-glob-tilde.
24739 (tests-special): Add tst-glob-tilde-mem.out
24740 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24741 (tst-glob-tilde-mem.out): Add mtrace check.
24742 * posix/tst-glob-tilde.c: New file.
24743
24744 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24745
24746 * bits/floatn-common.h: New file.
24747 * math/Makefile (headers): Add bits/floatn-common.h.
24748 * bits/floatn.h: Include <bits/floatn-common.h>.
24749 * sysdeps/ia64/bits/floatn.h: Likewise.
24750 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24751 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24752 * sysdeps/powerpc/bits/floatn.h: Likewise.
24753 * sysdeps/x86/bits/floatn.h: Likewise.
24754
24755 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24756
24757 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24758 indicates whether compiler emits an warning for alias for
24759 functions with incompatible types.
24760
24761 [BZ #22273]
24762 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24763 the auxiliary process is terminated by a signal before calling _exit
24764 or execve.
24765
24766 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24767
24768 [BZ #21265]
24769 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24770 New.
24771 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24772 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24773 and bit_arch_XSAVEC_Usable if needed.
24774 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24775 and bit_arch_Use_dl_runtime_resolve_opt.
24776 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24777 Removed.
24778 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24779 (bit_arch_Prefer_No_AVX512): Updated.
24780 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24781 (bit_arch_XSAVEC_Usable): New.
24782 (STATE_SAVE_OFFSET): Likewise.
24783 (STATE_SAVE_MASK): Likewise.
24784 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24785 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24786 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24787 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24788 (index_arch_XSAVEC_Usable): New.
24789 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24790 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24791 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24792 is enabled.
24793 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24794 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24795 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24796 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24797 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24798 _dl_runtime_resolve_xsavec.
24799 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24800 Removed.
24801 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24802 instead of VEC_SIZE.
24803 (REGISTER_SAVE_BND0): Removed.
24804 (REGISTER_SAVE_BND1): Likewise.
24805 (REGISTER_SAVE_BND3): Likewise.
24806 (REGISTER_SAVE_RAX): Always defined to 0.
24807 (VMOV): Removed.
24808 (_dl_runtime_resolve_avx): Likewise.
24809 (_dl_runtime_resolve_avx_slow): Likewise.
24810 (_dl_runtime_resolve_avx_opt): Likewise.
24811 (_dl_runtime_resolve_avx512): Likewise.
24812 (_dl_runtime_resolve_avx512_opt): Likewise.
24813 (_dl_runtime_resolve_sse): Likewise.
24814 (_dl_runtime_resolve_sse_vex): Likewise.
24815 (USE_FXSAVE): New.
24816 (_dl_runtime_resolve_fxsave): Likewise.
24817 (USE_XSAVE): Likewise.
24818 (_dl_runtime_resolve_xsave): Likewise.
24819 (USE_XSAVEC): Likewise.
24820 (_dl_runtime_resolve_xsavec): Likewise.
24821 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24822 Removed.
24823 (_dl_runtime_resolve_avx512_opt): Likewise.
24824 (_dl_runtime_resolve_avx): Likewise.
24825 (_dl_runtime_resolve_avx_opt): Likewise.
24826 (_dl_runtime_resolve_sse): Likewise.
24827 (_dl_runtime_resolve_sse_vex): Likewise.
24828 (_dl_runtime_resolve_fxsave): New.
24829 (_dl_runtime_resolve_xsave): Likewise.
24830 (_dl_runtime_resolve_xsavec): Likewise.
24831
24832 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24833
24834 [BZ #22320]
24835 CVE-2017-15670
24836 * posix/glob.c (__glob): Fix one-byte overflow.
24837
24838 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24839
24840 * malloc/malloc.c (sysdep-cancel.h): Add include.
24841
24842 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24843
24844 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24845
24846 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24847
24848 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24849 (tests): Remove $(objpfx)ga_test depdendency.
24850 * resolv/ga_test.c: Remove file.
24851
24852 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24853
24854 [BZ #18812]
24855 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24856 * localedata/locales/kab_DZ: New file.
24857
24858 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24859
24860 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24861 _dl_relocate_static_pie instead of _dl_start to compute load
24862 address in static PIE.
24863
24864 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24865
24866 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24867
24868 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24869
24870 [BZ #13605]
24871 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24872 * localedata/locales/shn_MM: New file.
24873
24874 2017-10-20 Florian Weimer <fweimer@redhat.com>
24875
24876 [BZ #22321]
24877 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24878 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24879 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24880 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24881 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24882 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24883
24884 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24885
24886 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24887
24888 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24889
24890 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24891
24892 [BZ #22322]
24893 * sysdeps/mips/bits/long-double.h: Move to ....
24894 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24895
24896 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24897
24898 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24899
24900 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24901 H.J. Lu <hongjiu.lu@intel.com>
24902
24903 [BZ #22299]
24904 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24905 GLRO(dl_platform) to NULL.
24906 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24907 (modules-names): Add tst-platformmod-1 and
24908 x86_64/tst-platformmod-2.
24909 (CFLAGS-tst-platform-1.c): New.
24910 (CFLAGS-tst-platformmod-1.c): Likewise.
24911 (CFLAGS-tst-platformmod-2.c): Likewise.
24912 (LDFLAGS-tst-platformmod-2.so): Likewise.
24913 ($(objpfx)tst-platform-1): Likewise.
24914 ($(objpfx)tst-platform-1.out): Likewise.
24915 (tst-platform-1-ENV): Likewise.
24916 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24917 * sysdeps/x86_64/tst-platform-1.c: New file.
24918 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24919 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24920
24921 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24922
24923 [BZ #13994]
24924 * locale/iso-639.def: Add Karbi.
24925 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24926 * localedata/locales/mjw_IN: New file.
24927
24928 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24929
24930 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24931 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24932 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24933 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24934 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24935 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24936 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24937 <bits/floatn.h>.
24938 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24939 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24940 * manual/math.texi (Mathematics): Document additional architecture
24941 support for _Float128.
24942 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24943 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24944 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24945 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24946 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24947 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24948 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24949 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24951 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24952 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24953 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24954 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24955 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24956 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24957
24958 2017-10-18 Renlin Li <renlin.li@arm.com>
24959
24960 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24961 _DYNAMIC symbol to calculate load address.
24962
24963 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24964
24965 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24966 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24967 summary bits.
24968 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24969 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24970
24971 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24972
24973 [BZ #16777]
24974 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24975 and improve readability by using more ASCII.
24976 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24977 and improve readability by using more ASCII.
24978
24979 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24980
24981 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24982 not all targets support atomics on bool.
24983
24984 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24985
24986 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24987 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24988 __f128.
24989 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24990 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24991 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24992 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24993 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24994 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24995
24996 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24997
24998 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24999 defines.
25000
25001 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25002
25003 [BZ #22159]
25004 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25005 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25006 (do_check_remalloced_chunk): Fix build bug.
25007 (do_check_malloc_state): Add assert that checks arena->top.
25008 (malloc_consolidate): Remove initialization.
25009 (int_mallinfo): Remove call to malloc_consolidate.
25010 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25011
25012 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25013
25014 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25015 (have_fastchunks): Remove.
25016 (clear_fastchunks): Remove.
25017 (set_fastchunks): Remove.
25018 (malloc_state): Add have_fastchunks.
25019 (malloc_init_state): Use have_fastchunks.
25020 (do_check_malloc_state): Remove incorrect invariant checks.
25021 (_int_malloc): Use have_fastchunks.
25022 (_int_free): Likewise.
25023 (malloc_consolidate): Likewise.
25024
25025 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25026
25027 * malloc/malloc.c (tcache_put): Inline.
25028 (tcache_get): Inline.
25029
25030 2017-10-17 Jordi Mallach <jordi@gnu.org>
25031
25032 Aurelien Jarno <aurelien@aurel32.net>
25033 [BZ #2522]
25034 * localedata/locales/ca_ES@valencia: New file.
25035 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25036
25037 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25038
25039 [BZ #22296]
25040 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25041 < 6.x
25042
25043 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25044
25045 * scripts/build-many-glibcs.py (Context.add_all_configs):
25046 Add arm-linux-gnueabihf multiarch extra_glibcs.
25047
25048 * sysdeps/generic/ifunc-init.h: New file.
25049 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25050
25051 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25052
25053 [BZ #22019]
25054 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25055 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25056 * stdlib/tst-strfmon_l.c: adapt test case.
25057
25058 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25059
25060 * sysdeps/generic/float128-abi.h: New file.
25061 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25062 non-__prefixed symbols to ....
25063 * math/Versions: ... here. Include <float128-abi.h>.
25064 * stdlib/Versions ... and here. Include <float128-abi.h>
25065
25066 2017-10-16 Florian Weimer <fweimer@redhat.com>
25067
25068 * version.h (VERSION): Switch to ".9000" as the development
25069 version suffix.
25070
25071 2017-10-16 Florian Weimer <fweimer@redhat.com>
25072
25073 [BZ #22050]
25074 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25075 compat_symbol_reference to access non-default version.
25076
25077 2017-10-16 Florian Weimer <fweimer@redhat.com>
25078
25079 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25080
25081 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25082
25083 * include/shlib-compat.h (compat_symbol_reference): Update
25084 comment.
25085
25086 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25087
25088 * math/Makefile (test-types): Add
25089 $(type-float128-$(float128-alias-fcts)).
25090 * math/test-float128.h (TYPE_STR): Define conditional on
25091 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25092 (ULP_IDX): Likewise.
25093 (ULP_I_IDX): Likewise.
25094
25095 * stdlib/strtold.c: Include <bits/floatn.h>
25096 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25097 and later undefine as macro. Define as weak alias if
25098 [!USE_WIDE_CHAR].
25099 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25100 and later undefine as macro. Define as weak alias if
25101 [USE_WIDE_CHAR].
25102 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25103 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25104 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25105 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25106 Define and later undefine as macro. Define as weak alias if
25107 [USE_WIDE_CHAR].
25108 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25109 <bits/floatn.h>.
25110 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25111 Define and later undefine as macro. Define as weak alias if
25112 [!USE_WIDE_CHAR].
25113 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25114 Define and later undefine as macro. Define as weak alias if
25115 [USE_WIDE_CHAR].
25116
25117 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25118
25119 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25120 record_verbose messages.
25121
25122 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25123
25124 [BZ #22052]
25125 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25126 to silence -O3 -Wall warning with GCC 7.
25127
25128 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25129
25130 * Makeconfig (+link-static-before-libc): Use the first of
25131 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25132 * gmon/Makefile (tests): Add tst-gmon-static.
25133 (tests-static): Likewise.
25134 (CFLAGS-tst-gmon-static.c): New.
25135 (CRT-tst-gmon-static): Likewise.
25136 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25137 (tst-gmon-static-ENV): Likewise.
25138 (tests-special): Likewise.
25139 ($(objpfx)tst-gmon-static.out): Likewise.
25140 (clean-tst-gmon-static-data): Likewise.
25141 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25142 * gmon/tst-gmon-static-gprof.sh: New file.
25143 * gmon/tst-gmon-static.c: Likewise.
25144
25145 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25146
25147 [BZ #22295]
25148 * locale/programs/linereader.c (get_string): Don't warn on
25149 non-symbolic character.
25150
25151 [BZ #22294]
25152 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25153 int_curr_symbol.
25154
25155 [BZ #22292]
25156 * locale/programs/record-status.h: New file
25157 * locale/programs/locale.c: Add comment.
25158 * locale/programs/charmap-dir.c: Don't include error.h.
25159 (charmap_opendir): Use record_error.
25160 * locale/programs/charmap.c: Don't include error.h.
25161 (charmap_read): Use record_error, and record_warning.
25162 (parse_charmap): Likewise.
25163 * locale/programs/ld-address.c: Don't include error.h.
25164 (address_finish): Use record_error, and record_warning.
25165 * locale/programs/ld-collate.c: Don't include error.h.
25166 (collate_finish): Use record_error, and record_error_at_line.
25167 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25168 (ctype_class_new): Likewise.
25169 (ctype_map_new): Likewise.
25170 (set_one_default): Likewise.
25171 (set_class_defaults): Likewise.
25172 (translit_flatten): Likewise.
25173 (allocate_arrays): Use record_error, and record_verbose.
25174 * locale/programs/ld-identification.c: Don't include error.h.
25175 (indentation_finish): Use record_error and record_warning.
25176 * locale/programs/ld-measurement.c: Don't include error.h.
25177 (measurement_finish): Use record_error.
25178 * locale/programs/ld-messages.c
25179 (message_finish): Likewise.
25180 * locale/programs/ld-monetary.c
25181 (monetary_finish): Likewise.
25182 * locale/programs/ld-name.c (name_finish): Use record_error
25183 and record_warning.
25184 * locale/programs/ld-numeric.c
25185 (numeric_finish): Use record_error.
25186 * locale/programs/ld-paper.c: Don't include error.h.
25187 (paper_finish): Use record_error.
25188 * locale/programs/ld-telephone.c: Don't include error.h.
25189 (telephone_finish): Use record_error.
25190 * locale/programs/ld-time.c (time_finish): Likewise.
25191 * locale/programs/linereader.h (lr_error): Make inline func.
25192 * locale/programs/localedef.c: Define recorded_warning_count,
25193 and recorded_error_count.
25194 (main): Use record_error. Use recorded_error_count and
25195 recorded_warning_count to issue correct error returns.
25196 (add_to_readlist): Use record_error.
25197 (find_locale): Likewise.
25198 (load_locale): Likewise.
25199 * locale/programs/localedef.h: Remove be_quiet
25200 and WITH_CUR_LOCALE.
25201 * locale/programs/locarchive.c (compare_from_file): Use
25202 record_error.
25203 * locale/programs/locfile.c (write_locale_data): Use
25204 record_error.
25205 * locale/programs/repertoire.c: Dont include error.h.
25206 (repertoire_complain): Use record_error.
25207 * localedata/tst-fmon.sh: Expect failures from localedef.
25208 * localedata/tst-locale.sh: Likewise.
25209 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25210
25211 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25212 (REPORTS): Likewise.
25213 (check): Likewise.
25214 (i18n): Rename to...
25215 (i18n_ctype): ...this.
25216 (i18n-report): Rename to...
25217 (i18n_ctype-report): ...this.
25218 * localedata/locales/i18n_ctype: Regenerate.
25219 * localedata/locales/i18n: copy i18n_ctype.
25220
25221 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25222
25223 * stdlib/strfroml.c: Include <bits/floatn.h>.
25224 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25225 Define before include of <stdlib.h> and undefine afterwards, then
25226 define as weak alias.
25227
25228 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25229 Undefine and restore default definition. Use
25230 libm_alias_ldouble_other.
25231
25232 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25233
25234 [BZ #22153]
25235 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25236 in coredumps.
25237
25238 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25239
25240 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25241 Assign sym_map to be map for local symbols, as TLS relocations
25242 use sym_map to determine whether the symbol is defined and to
25243 extract the TLS information.
25244 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25245 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25246
25247 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25248
25249 [BZ #22189]
25250 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25251 (math_force_eval): Add powerpc version.
25252
25253 [BZ #22142]
25254 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25255 -DBL_MAX.
25256 (do_test): Likewise.
25257 * stdio-common/tst-printf.sh: Likewise.
25258 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25259 ifdef clause in order to set the carry bit right. Replace r0 by
25260 0 without changing the behavior.
25261
25262 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25263
25264 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25265 <libm-alias-ldouble.h>.
25266 (fabsl): Define using libm_alias_ldouble.
25267 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25268 <libm-alias-ldouble.h>.
25269 (fabsl): Define using libm_alias_ldouble.
25270
25271 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25272 Remove conditional code.
25273
25274 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25275 Rename to __clog10_internal_l.
25276 (__clog10_internal_l): Define aliases using
25277 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25278 with __clog10.
25279
25280 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25281
25282 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25283 * benchtests/sincosf-inputs: New file.
25284 * benchtests/cosf-inputs: New file.
25285 * benchtests/sinf-inputs: New file.
25286
25287 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25288
25289 * posix/tst-spawn.c (do_test): Wait for both children.
25290
25291 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25292
25293 [BZ #22284]
25294 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25295 tests-pie): Add tst-gmon-pie.
25296 (CFLAGS-tst-gmon-pie.c): New.
25297 (CRT-tst-gmon-pie): Likewise.
25298 (tst-gmon-pie-ENV): Likewise.
25299 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25300 ($(objpfx)tst-gmon-pie.out): Likewise.
25301 (clean-tst-gmon-pie-data): Likewise.
25302 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25303 * gmon/gmon.c [PIC]: Include <link.h>.
25304 [PIC] (callback): New function.
25305 (write_hist): Add an argument for load address. Subtract load
25306 address from PCs.
25307 (write_call_graph): Likewise.
25308 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25309 it to write_hist and write_call_graph.
25310 * gmon/tst-gmon-pie.c: New file.
25311
25312 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25313
25314 * math/Makefile (test-types-basic): New variable.
25315 (test-types): Likewise.
25316 (libm-test-support): Use $(test-types) instead of $(types).
25317 (libm-tests-base-normal): Likewise.
25318 (libm-tests-base-finite): Likewise.
25319 (libm-tests-base-inline): Likewise.
25320 (generated): Likewise.
25321 ($(objpfx)libm-test-support-$(t).c): Likewise.
25322 (libm-tests-for-type iterator): Likewise.
25323 (libm-test-support iterator): Likewise.
25324 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25325 (ulp_idx): Use ULP_IDX.
25326 * math/test-ldouble.h: Include <float.h>.
25327 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25328 (ULP_IDX): New macro.
25329 (ULP_I_IDX): Likewise.
25330 * math/test-double.h (ULP_IDX): Likewise.
25331 (ULP_I_IDX): Likewise.
25332 * math/test-float.h (ULP_IDX): Likewise.
25333 (ULP_I_IDX): Likewise.
25334 * math/test-float128.h (ULP_IDX): Likewise.
25335 (ULP_I_IDX): Likewise.
25336
25337 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25338
25339 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25340 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25341 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25342 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25343 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25344 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25345 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25346 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25347 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25348 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25349 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25350 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25351 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25352 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25353 (SINGLE_THREAD_BY_GLOBAL): Define.
25354 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25355 Likewise.
25356 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25357 Likewise.
25358 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25359 Likewise.
25360 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25361 Likewise.
25362 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25363 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25364 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25365 Likewise.
25366
25367 2017-10-11 Andreas Schwab <schwab@suse.de>
25368
25369 * nis/Makefile (aux): Remove.
25370 * nscd/Makefile (aux): Add nscd_hash.
25371 (nscd-modules): Likewise.
25372 ($(objpfx)nscd): Don't depend on libnsl.
25373 * nscd/nscd_hash.c: New file.
25374 * nscd/nscd_hash.h: Likewise.
25375 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25376 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25377 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25378 instead of <nis/rpcsvc/nis.h>.
25379 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25380
25381 2017-10-11 Florian Weimer <fweimer@redhat.com>
25382
25383 [BZ #22078]
25384 Avoid large NSS buffers with many addresses, aliases.
25385 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25386 using dynarrays and struct alloc_buffer.
25387 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25388 (tst-nss-files-hosts-multi): Link with -ldl.
25389 * nss/tst-nss-files-hosts-multi.c: New file.
25390
25391 2017-10-11 Florian Weimer <fweimer@redhat.com>
25392
25393 [BZ #18023]
25394 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25395 scratch_buffer. Eliminate gotos.
25396
25397 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25398
25399 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25400 libm_alias_ldouble_other.
25401 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25402 undefine and redefine.
25403 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25404 (exp10l): Do not define here.
25405 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25406 (weak_alias): Undefine and redefine.
25407 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25408 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25409 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25410 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25411
25412 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25413 [!__fma] (fma): Define using libm_alias_double.
25414 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25415 [!__fmaf] (fmaf): Define using libm_alias_float.
25416 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25417 (fmal): Define using libm_alias_ldouble.
25418
25419 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25420
25421 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25422 New macro.
25423 (libm_alias_double_other): Likewise.
25424 (libm_alias_double_r): Use libm_alias_double_other_r.
25425 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25426 New macro.
25427 (libm_alias_float_other): Likewise.
25428 (libm_alias_float_r): Use libm_alias_float_other_r.
25429 * sysdeps/generic/libm-alias-float128.h
25430 (libm_alias_float128_other_r): New macro.
25431 (libm_alias_float128_other): Likewise.
25432 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25433 * sysdeps/generic/libm-alias-ldouble.h
25434 (libm_alias_ldouble_other_r): New macro.
25435 (libm_alias_ldouble_other): Likewise.
25436 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25437 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25438 (libm_alias_double_other_r): New macro.
25439 (libm_alias_double_other): Likewise.
25440 (libm_alias_double_r): Use libm_alias_double_other_r.
25441 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25442 (libm_alias_ldouble_other_r): New macro.
25443 (libm_alias_ldouble_other): Likewise.
25444 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25445 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25446 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25447 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25448 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25449 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25450 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25451 * math/w_exp2f.c: Use libm_alias_float_other.
25452 * math/w_expf.c: Likewise.
25453 * math/w_log2f.c: Likewise.
25454 * math/w_logf.c: Likewise.
25455 * math/w_powf.c: Likewise.
25456 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25457 [!__exp2f]: Use libm_alias_float_other.
25458 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25459 [!__expf]: Use libm_alias_float_other.
25460 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25461 [!__log2f]: Use libm_alias_float_other.
25462 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25463 [!__logf]: Use libm_alias_float_other.
25464 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25465 [!__powf]: Use libm_alias_float_other.
25466
25467 2017-10-10 Florian Weimer <fweimer@redhat.com>
25468
25469 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25470 function.
25471 (_nss_files_gethostbyname3_r): Call it.
25472
25473 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25474
25475 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25476 error. Remove default definition of declare_mgen_alias.
25477 [!declare_mgen_alias_r]: Likewise.
25478 * sysdeps/generic/math-type-macros-double.h
25479 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25480 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25481 (declare_mgen_alias_r): Likewise.
25482 * sysdeps/generic/math-type-macros-float128.h
25483 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25484 * sysdeps/generic/math-type-macros-ldouble.h
25485 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25486 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25487 macro.
25488 (declare_mgen_alias_r_s): Likewise.
25489 (declare_mgen_alias_r): Likewise.
25490 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25491 (lgamma_r): Define using libm_alias_double_r.
25492 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25493 (lgammaf_r): Define using libm_alias_float_r.
25494 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25495 (lgammal_r): Define using libm_alias_ldouble_r.
25496 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25497 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25498
25499 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25500
25501 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25502 extern declaration.
25503
25504 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25505
25506 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25507
25508 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25509
25510 [BZ #21326]
25511 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25512 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25513 * math/Makefile (test-math-cxx11): New test.
25514 * math/test-math-cxx11.cc: New file.
25515
25516 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25517
25518 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25519
25520 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25521 call to allocate the slave pty file descriptor.
25522
25523 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25524
25525 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25526 [!__fma] (fma): Define using libm_alias_double.
25527 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25528 [!__fma] (fma): Define using libm_alias_double.
25529
25530 * sysdeps/ieee754/float128/float128_private.h: Include
25531 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25532 (libm_alias_ldouble_r): Undefine and redefine.
25533 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25534 <libm-alias-ldouble.h>.
25535 (asinhl): Define using libm_alias_ldouble.
25536 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25537 <libm-alias-ldouble.h>.
25538 (atanl): Define using libm_alias_ldouble.
25539 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25540 <libm-alias-ldouble.h>.
25541 (cbrtl): Define using libm_alias_ldouble.
25542 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25543 <libm-alias-ldouble.h>.
25544 (ceill): Define using libm_alias_ldouble.
25545 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25546 <libm-alias-ldouble.h>.
25547 (copysignl): Define using libm_alias_ldouble.
25548 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25549 <libm-alias-ldouble.h>.
25550 (cosl): Define using libm_alias_ldouble.
25551 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25552 <libm-alias-ldouble.h>.
25553 (erfl): Define using libm_alias_ldouble.
25554 (erfcl): Likewise.
25555 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25556 <libm-alias-ldouble.h>.
25557 (expm1l): Define using libm_alias_ldouble.
25558 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25559 <libm-alias-ldouble.h>.
25560 (fabsl): Define using libm_alias_ldouble.
25561 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25562 <libm-alias-ldouble.h>.
25563 (floorl): Define using libm_alias_ldouble.
25564 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25565 <libm-alias-ldouble.h>.
25566 (fmal): Define using libm_alias_ldouble.
25567 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25568 <libm-alias-ldouble.h>.
25569 (frexpl): Define using libm_alias_ldouble.
25570 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25571 libm_alias_ldouble.
25572 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25573 <libm-alias-ldouble.h>.
25574 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25575 libm_alias_ldouble.
25576 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25577 <libm-alias-ldouble.h>.
25578 (getpayloadl): Define using libm_alias_ldouble.
25579 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25580 <libm-alias-ldouble.h>.
25581 (llrintl): Define using libm_alias_ldouble.
25582 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25583 <libm-alias-ldouble.h>.
25584 (llroundl): Define using libm_alias_ldouble.
25585 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25586 <libm-alias-ldouble.h>.
25587 (logbl): Define using libm_alias_ldouble.
25588 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25589 <libm-alias-ldouble.h>.
25590 (lrintl): Define using libm_alias_ldouble.
25591 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25592 <libm-alias-ldouble.h>.
25593 (lroundl): Define using libm_alias_ldouble.
25594 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25595 <libm-alias-ldouble.h>.
25596 (modfl): Define using libm_alias_ldouble.
25597 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25598 <libm-alias-ldouble.h>.
25599 (nearbyintl): Define using libm_alias_ldouble.
25600 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25601 <libm-alias-ldouble.h>.
25602 (nextafterl): Define using libm_alias_ldouble.
25603 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25604 <libm-alias-ldouble.h>.
25605 (nextupl): Define using libm_alias_ldouble.
25606 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25607 <libm-alias-ldouble.h>.
25608 (remquol): Define using libm_alias_ldouble.
25609 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25610 <libm-alias-ldouble.h>.
25611 (rintl): Define using libm_alias_ldouble.
25612 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25613 <libm-alias-ldouble.h>.
25614 (roundevenl): Define using libm_alias_ldouble.
25615 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25616 <libm-alias-ldouble.h>.
25617 (roundl): Define using libm_alias_ldouble.
25618 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25619 using libm_alias_ldouble.
25620 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25621 <libm-alias-ldouble.h>.
25622 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25623 Define using libm_alias_ldouble.
25624 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25625 <libm-alias-ldouble.h>.
25626 (sincosl): Define using libm_alias_ldouble.
25627 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25628 <libm-alias-ldouble.h>.
25629 (sinl): Define using libm_alias_ldouble.
25630 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25631 <libm-alias-ldouble.h>.
25632 (tanhl): Define using libm_alias_ldouble.
25633 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25634 <libm-alias-ldouble.h>.
25635 (tanl): Define using libm_alias_ldouble.
25636 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25637 <libm-alias-ldouble.h>.
25638 (totalorderl): Define using libm_alias_ldouble.
25639 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25640 <libm-alias-ldouble.h>.
25641 (totalordermagl): Define using libm_alias_ldouble.
25642 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25643 <libm-alias-ldouble.h>.
25644 (truncl): Define using libm_alias_ldouble.
25645 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25646 libm_alias_ldouble.
25647 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25648 libm_alias_ldouble.
25649 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25650 <libm-alias-ldouble.h>.
25651 (weak_alias): Do not undefine and redefine.
25652 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25653 (copysignl): Define with long_double_symbol only if [IS_IN
25654 (libc)].
25655 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25656 <libm-alias-ldouble.h>.
25657 (weak_alias): Do not undefine and redefine.
25658 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25659 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25660 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25661 <libm-alias-ldouble.h>.
25662 (weak_alias): Do not undefine and redefine.
25663 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25664 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25665 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25666 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25667 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25668 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25669 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25670 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25671 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25672 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25673 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25674 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25675 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25676 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25677 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25678 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25679 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25680 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25681 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25682 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25683 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25684 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25685 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25686 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25687 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25688 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25689
25690 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25691
25692 [BZ #22111]
25693 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25694 (tcache_thread_freeres): Set tcache_shutting_down before
25695 freeing the tcache.
25696 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25697 * malloc/tst-malloc-tcache-leak.c: New file.
25698
25699 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25700
25701 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25702 back to powerpc32 file.
25703 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25704 (memrchr): Add __memrchr_power8 to ifunc list.
25705 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25706 extra bytes for unaligned inputs.
25707
25708 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25709
25710 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25711 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25712 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25713 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25714 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25715
25716 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25717
25718 * sysdeps/arm/libm-test-ulps: Update.
25719
25720 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25721 <libm-alias-ldouble.h>.
25722 (asinhl): Define using libm_alias_ldouble.
25723 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25724 <libm-alias-ldouble.h>.
25725 (cbrtl): Define using libm_alias_ldouble.
25726 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25727 <libm-alias-ldouble.h>.
25728 (copysignl): Define using libm_alias_ldouble.
25729 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25730 <libm-alias-ldouble.h>.
25731 (cosl): Define using libm_alias_ldouble.
25732 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25733 <libm-alias-ldouble.h>.
25734 (erfl): Define using libm_alias_ldouble.
25735 (erfcl): Likewise.
25736 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25737 <libm-alias-ldouble.h>.
25738 (fmal): Define using libm_alias_ldouble.
25739 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25740 <libm-alias-ldouble.h>.
25741 (frexpl): Define using libm_alias_ldouble.
25742 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25743 libm_alias_ldouble.
25744 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25745 <libm-alias-ldouble.h>.
25746 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25747 libm_alias_ldouble.
25748 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25749 <libm-alias-ldouble.h>.
25750 (getpayloadl): Define using libm_alias_ldouble.
25751 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25752 <libm-alias-ldouble.h>.
25753 (llrintl): Define using libm_alias_ldouble.
25754 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25755 <libm-alias-ldouble.h>.
25756 (llroundl): Define using libm_alias_ldouble.
25757 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25758 <libm-alias-ldouble.h>.
25759 (lrintl): Define using libm_alias_ldouble.
25760 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25761 <libm-alias-ldouble.h>.
25762 (lroundl): Define using libm_alias_ldouble.
25763 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25764 <libm-alias-ldouble.h>.
25765 (modfl): Define using libm_alias_ldouble.
25766 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25767 <libm-alias-ldouble.h>.
25768 (nextupl): Define using libm_alias_ldouble.
25769 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25770 <libm-alias-ldouble.h>.
25771 (remquol): Define using libm_alias_ldouble.
25772 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25773 <libm-alias-ldouble.h>.
25774 (roundevenl): Define using libm_alias_ldouble.
25775 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25776 <libm-alias-ldouble.h>.
25777 (roundl): Define using libm_alias_ldouble.
25778 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25779 using libm_alias_ldouble.
25780 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25781 <libm-alias-ldouble.h>.
25782 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25783 <libm-alias-ldouble.h>.
25784 (setpayloadsigl): Define using libm_alias_ldouble.
25785 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25786 <libm-alias-ldouble.h>.
25787 (sincosl): Define using libm_alias_ldouble.
25788 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25789 <libm-alias-ldouble.h>.
25790 (sinl): Define using libm_alias_ldouble.
25791 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25792 <libm-alias-ldouble.h>.
25793 (tanhl): Define using libm_alias_ldouble.
25794 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25795 <libm-alias-ldouble.h>.
25796 (tanl): Define using libm_alias_ldouble.
25797 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25798 <libm-alias-ldouble.h>.
25799 (totalorderl): Define using libm_alias_ldouble.
25800 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25801 <libm-alias-ldouble.h>.
25802 (totalordermagl): Define using libm_alias_ldouble.
25803 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25804 libm_alias_ldouble.
25805 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25806 libm_alias_ldouble.
25807
25808 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25809
25810 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25811 memmove_falkor.
25812 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25813 (__libc_ifunc_impl_list): Likewise.
25814 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25815 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25816
25817 * benchtests/bench-memmove-walk.c: New file.
25818 * benchtests/Makefile (string-benchset): Add it.
25819
25820 * benchtests/bench-memset-walk.c: New file.
25821 * benchtests/Makefile (string-benchset): Add it.
25822
25823 * benchtests/bench-memcpy-walk.c: New file.
25824 * benchtests/Makefile (string-benchset): Add it.
25825
25826 2017-10-05 Florian Weimer <fweimer@redhat.com>
25827
25828 nscd: Eliminate compilation time dependency in the build output.
25829 * nscd/nscd_stat.c (STATDATA_VERSION)
25830 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25831 (STATDATA_VERSION_FULL): New macro definitions.
25832 (compilation): Remove.
25833 (struct statdata): Adjust version member.
25834 (send_stats): Set version from STATDATA_VERSION_FULL.
25835 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25836
25837 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25838
25839 * configure.ac (--enable-add-ons): Remove option.
25840 (machine): Do not mention add-ons in comment.
25841 (LIBC_PRECONFIGURE): Likewise.
25842 (add_ons): Remove variable and sanity checks and logic to locate
25843 add-ons.
25844 (add_ons_automatic): Remove variable.
25845 (configured_add_ons): Likewise.
25846 (add_ons_sfx): Likewise.
25847 (add_ons_pfx): Likewise.
25848 (add_on_subdirs): Likewise.
25849 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25850 consideration of add-ons in Implies handling.
25851 (sysdeps_add_ons): Likewise.
25852 * configure: Regenerated.
25853 * libidn/configure.ac: Remove.
25854 * libidn/configure: Likewise.
25855 * sysdeps/unix/inet/configure.ac: New file.
25856 * sysdeps/unix/inet/configure: New generated file.
25857 * sysdeps/unix/inet/Subdirs: Add libidn.
25858 * Makeconfig (sysdeps-srcdirs): Remove variable.
25859 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25860 ($(common-objpfx)config.status): Do not depend on add-on files.
25861 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25862 comment.
25863 (all-subdirs): Do not include $(add-on-subdirs).
25864 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25865 * config.make.in (add-ons): Remove variable.
25866 (add-on-subdirs): Likewise.
25867 (sysdeps-add-ons): Likewise.
25868 * manual/Makefile (add-chapters): Remove.
25869 ($(objpfx)texis): Do not depend on $(add-chapters).
25870 (nonexamples): Do not handle $(add-chapters).
25871 (examples): Do not handle $(add-ons).
25872 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25873 libc-texinfo.sh.
25874 * manual/install.texi (Installation): Do not mention add-ons.
25875 (--enable-add-ons): Do not document configure option.
25876 * INSTALL: Regenerated.
25877 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25878 * manual/maint.texi (Hierarchy Conventions): Do not mention
25879 add-ons.
25880 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25881 --enable-add-ons.
25882 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25883 add-ons.
25884 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25885 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25886
25887 2017-10-05 Andreas Schwab <schwab@suse.de>
25888
25889 [BZ #15142]
25890 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25891 (_IO_flush_all_lockp): Always lock list_all_lock.
25892 (_IO_flush_all_linebuffered): Likewise.
25893 (_IO_unbuffer_all): Likewise.
25894
25895 2017-10-05 Florian Weimer <fweimer@redhat.com>
25896
25897 [BZ #15436]
25898 Do not flush stdio streams on abort.
25899 * stdlib/abort.c (fflush): Remove macro definition.
25900 (abort): Remove stages related to stdio flushing.
25901
25902 2017-10-05 Florian Weimer <fweimer@redhat.com>
25903
25904 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25905
25906 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25907
25908 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25909
25910 2017-10-05 Florian Weimer <fweimer@redhat.com>
25911
25912 * support/support_format_hostent.c (support_format_hostent): Add
25913 more error information for NETDB_INTERNAL.
25914
25915 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25916
25917 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25918 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25919 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25920 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25921 AC_DEFINE if multi-arch is enabled.
25922 * sysdeps/i386/configure: Regenerated.
25923
25924 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25925
25926 * Makeconfig (+link-static-before-libc): Use
25927 $(DEFAULT-LDFLAGS-$(@F)).
25928 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25929 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25930 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25931
25932 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25933
25934 * elf/Makefile (tests): Add tst-main1.
25935 (modules-names): Add tst-main1mod.
25936 ($(objpfx)tst-main1): New.
25937 (CRT-tst-main1): Likewise.
25938 (LDFLAGS-tst-main1): Likewise.
25939 (LDLIBS-tst-main1): Likewise.
25940 (tst-main1mod.so-no-z-defs): Likewise.
25941 * elf/tst-main1.c: New file.
25942 * elf/tst-main1mod.c: Likewise.
25943
25944 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25945
25946 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25947
25948 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25949
25950 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25951 (fma): Define using libm_alias_double.
25952 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25953 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25954 <math_ldbl_opt.h>.
25955 (fmal): Do not define as compat symbol here.
25956 * sysdeps/alpha/fpu/s_fma.c: New file.
25957
25958 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25959
25960 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25961
25962 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25963
25964 [BZ #22229]
25965 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25966 <math_ldbl_opt.h>
25967 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25968 and libc.
25969 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25970 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25971 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25972 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25973 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25974 Include <math_ldbl_opt.h>
25975 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25976 and libc.
25977 (compat_symbol): Undefine and redefine.
25978 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25979 <math_ldbl_opt.h>
25980 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25981 (compat_symbol): Undefine and redefine.
25982 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25983 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25984 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25985 GLIBC_2_1 for libm.
25986 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25987 GLIBC_2.0 copysignl symbol.
25988 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25989 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25990
25991 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25992
25993 2017-10-04 Florian Weimer <fweimer@redhat.com>
25994
25995 * scripts/check-local-headers.sh: Ignore nspr4 header file
25996 directory in addition to nspr.
25997
25998 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25999
26000 [BZ #17956]
26001 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26002 * configure: Regenerate.
26003 * crypt/Makefile (nss-cpp-flags): New variable.
26004 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26005 (CPPFLAGS-md5-crypt.c): Use it.
26006 * scripts/check-local-headers.sh: Ignore nspr header file
26007 directory.
26008
26009 2017-10-04 Andreas Schwab <schwab@suse.de>
26010
26011 * nis/Makefile (services): Remove compat.
26012 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26013 ($(objpfx)libnss_compat.so): Remove rule.
26014 * nis/Versions (libnss_compat): Remove.
26015 * nss/Makefile (services): Add compat.
26016 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26017 * nss/Versions (libnss_compat): Define.
26018 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26019 Don't include <rpc/types.h>. Replace bool_t by bool.
26020 * nss/nss_compat/compat-initgroups.c: Likewise.
26021 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26022 instead of <rpcsrv/ypclnt.h>.
26023 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26024 yp_get_default_domain.
26025 * nss/nss_compat/compat-pwd.c: Likewise.
26026 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26027 yp_get_default_domain.
26028 * nss/nss_compat/nisdomain.c: New file.
26029 * nss/nss_compat/nisdomain.h: Likewise.
26030
26031 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26032
26033 [BZ #22244]
26034 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26035 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26036
26037 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26038
26039 [BZ #22243]
26040 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26041 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26042
26043 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26044
26045 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26046 "movl main@GOTOFF(%ebx), %eax".
26047
26048 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26049
26050 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26051 allow undefined _DYNAMIC in PIE libc.a.
26052 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26053 Likewse.
26054
26055 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26056
26057 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26058 check _DYNAMIC.
26059
26060 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26061
26062 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26063 check _DYNAMIC.
26064
26065 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26066
26067 * math/test-math-iscanonical.cc (error): Replace bool with int.
26068
26069 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26070
26071 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26072 (modf): Define using libm_alias_double, only if [!__modf].
26073 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26074 <libm-alias-double.h>.
26075 (modf): Define using libm_alias_double, only if [!__modf].
26076 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26077 compat symbol here.
26078 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26079 (weak_alias): Do not undefine and redefine.
26080 (strong_alias): Likewise.
26081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26082 (weak_alias): Likewise.
26083 (strong_alias): Likewise.
26084
26085 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26086 (logb): Define using libm_alias_double, only if [!__logb].
26087 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26088 <libm-alias-double.h>.
26089 (logb): Define using libm_alias_double, only if [!__logb].
26090 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26091 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26092 (weak_alias): Do not undefine and redefine.
26093 (strong_alias): Likewise.
26094 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26095 (weak_alias): Likewise.
26096 (strong_alias): Likewise.
26097
26098 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26099
26100 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26101 Check SHARED instead PIC.
26102
26103 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26104
26105 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26106 [!__fmaf] (fmaf): Define using libm_alias_float.
26107
26108 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26109 (frexp): Define using libm_alias_double.
26110 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26111 <libm-alias-double.h>.
26112 (frexp): Define using libm_alias_double.
26113 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26114 compat symbol here.
26115
26116 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26117
26118 [BZ #22235]
26119 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26120 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26121 (CFLAGS-test-math-iscanonical.cc): New variable.
26122 * math/test-math-iscanonical.cc: New file.
26123 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26124 Provide a C++ implementation based on function overloading,
26125 rather than using __MATH_TG, which uses C-only builtins.
26126 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26127 Likewise.
26128 * sysdeps/powerpc/powerpc64le/Makefile
26129 (CFLAGS-test-math-iscanonical.cc): New variable.
26130
26131 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26132
26133 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26134 (ceil): Define using libm_alias_double.
26135 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26136 (floor): Define using libm_alias_double.
26137 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26138 <libm-alias-double.h>.
26139 (llround): Define using libm_alias_double.
26140 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26141 <libm-alias-double.h>.
26142 (lround): Define using libm_alias_double.
26143 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26144 <libm-alias-double.h>.
26145 (nearbyint): Define using libm_alias_double.
26146 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26147 <libm-alias-double.h>.
26148 (remquo): Define using libm_alias_double.
26149 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26150 (rint): Define using libm_alias_double.
26151 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26152 (round): Define using libm_alias_double.
26153 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26154 (trunc): Define using libm_alias_double.
26155 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26156 <libm-alias-double.h>.
26157 (ceil): Define using libm_alias_double.
26158 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26159 <libm-alias-double.h>.
26160 (floor): Define using libm_alias_double.
26161 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26162 <libm-alias-double.h>.
26163 (llround): Define using libm_alias_double.
26164 [_LP64] (lround): Likewise.
26165 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26166 <libm-alias-double.h>.
26167 [!_LP64] (lround): Define using libm_alias_double.
26168 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26169 <libm-alias-double.h>.
26170 (nearbyint): Define using libm_alias_double.
26171 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26172 <libm-alias-double.h>.
26173 (remquo): Define using libm_alias_double.
26174 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26175 <libm-alias-double.h>.
26176 (rint): Define using libm_alias_double.
26177 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26178 <libm-alias-double.h>.
26179 (round): Define using libm_alias_double.
26180 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26181 <libm-alias-double.h>.
26182 (trunc): Define using libm_alias_double.
26183 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26184 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26185 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26186 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26187 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26188 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26189 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26190 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26191 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26192
26193 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26194
26195 * math/w_remainder.c: New file.
26196 * math/w_remainderf.c: New file.
26197 * math/w_remainderl.c: New file.
26198
26199 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26200
26201 * elf/rtld.c (BOOTSTRAP_MAP): New.
26202 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26203 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26204 Likewise.
26205 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26206 Likewise.
26207 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26208 Likewise.
26209
26210 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26211
26212 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26213 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26214 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26215 rtld_hidden_data_ver): Define to empty.
26216 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26217 __assert_perror_fail): Likewise.
26218 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26219 (__rewinddir): Likewise.
26220 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26221 (__profile_frequency): Likewise.
26222 * include/setjmp.h (__sigsetjmp): Likewise.
26223 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26224 __libc_sigaction): Likewise.
26225 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26226 not set hidden attribute.
26227 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26228 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26229 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26230 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26231 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26232 __fxstatat64): Likewise.
26233 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26234 (__uname): Likewise.
26235 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26236 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26237 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26238 (NO_RTLD_HIDDEN): Set.
26239 * sysdeps/mach/hurd/configure: Refresh.
26240 * config.h.in: Refresh.
26241
26242 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26243
26244 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26245 (atan): Define using libm_alias_double.
26246 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26247 (tan): Define using libm_alias_double.
26248 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26249 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26250
26251 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26252 define as weak alias of __atan. Do not define any aliases if
26253 [__atan].
26254 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26255 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26256 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26257 as weak alias of __tan. Do not define any aliases if [__tan].
26258 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26259 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26260 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26261 __atan.
26262 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26263 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26264 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26265 and define as weak alias of __atan.
26266 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26267 __atan.
26268 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26269 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26270 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26271 define as weak alias of __tan.
26272
26273 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26274
26275 * math/w_lgamma.c: New file.
26276 * math/w_lgammaf.c: New file.
26277 * math/w_lgammal.c: New file.
26278
26279 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26280
26281 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26282 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26283 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26284 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26285 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26286 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26287 * sysdeps/i386/fpu/w_log2f.c: New file.
26288 * sysdeps/i386/fpu/w_logf.c: New file.
26289 * sysdeps/i386/fpu/w_powf.c: New file.
26290 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26291 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26292 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26293
26294 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26295 H.J. Lu <hongjiu.lu@intel.com>
26296
26297 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26298 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26299 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26300 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26301 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26302 the new expf code.
26303 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26304 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26305 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26306 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26307 * sysdeps/i386/fpu/w_exp2f.c: New file.
26308 * sysdeps/i386/fpu/w_expf.c: New file.
26309 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26310 * sysdeps/x86_64/fpu/w_expf.c: New file.
26311
26312 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26313
26314 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26315 (log2f): Likewise.
26316 (powf): Likewise.
26317 * math/w_log2f.c: New file.
26318 * math/w_logf.c: New file.
26319 * math/w_powf.c: New file.
26320 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26321 * math/w_logf_compat.c (__logf_compat): Likewise.
26322 * math/w_powf_compat.c (__powf_compat): Likewise.
26323 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26324 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26325 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26326 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26327 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26328 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26329 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26330 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26331 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26332 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26333 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26334 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26335 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26336 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26337 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26338 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26339 Likewise.
26340 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26341 Likewise.
26342 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26343 Likewise.
26344 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26345 Likewise.
26346 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26347 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26348 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26349 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26350 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26351 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26352 Likewise.
26353 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26354 Likewise.
26355 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26356 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26357 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26358
26359 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26360
26361 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26362 (sysdep_routines): Add memrchr_power8.
26363 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26364 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26365 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26366 New file.
26367 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26368 (memrchr): Add __memrchr_power8 to ifunc list.
26369 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26370
26371 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26372
26373 [BZ #18822]
26374 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26375 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26376 libc_hidden_def.
26377 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26378 (__posix_fallocate64_l64): Likewise.
26379
26380 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26381
26382 [BZ #18822]
26383 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26384 (__sched_setaffinity_new): Add libc_hidden_proto and
26385 libc_hidden_def.
26386
26387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26388
26389 [BZ #18822]
26390 * include/glob.h (__glob64): Add libc_hidden_proto.
26391 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26392 libc_hidden_def.
26393
26394 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26395
26396 [BZ #18822]
26397 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26398 attribute_hidden.
26399
26400 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26401
26402 [BZ #18822]
26403 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26404
26405 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26406
26407 [BZ #18822]
26408 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26409 libc_hidden_def.
26410
26411 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26412
26413 [BZ #18822]
26414 * csu/version.c (__libc_print_version): Add attribute_hidden.
26415
26416 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26417
26418 [BZ #18822]
26419 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26420
26421 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26422
26423 [BZ #18822]
26424 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26425
26426 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26427
26428 [BZ #18822]
26429 * nscd/nscd_helper.c (__nis_hash): New prototype.
26430
26431 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26432
26433 [BZ #18822]
26434 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26435 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26436 libc_hidden_def.
26437 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26438 * termios/tcgetattr.c (__tcgetattr): Likewise.
26439
26440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 [BZ #18822]
26443 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26444 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26445 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26446 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26447 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26448
26449 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26450
26451 [BZ #18822]
26452 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26453
26454 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26455
26456 [BZ #18822]
26457 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26458 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26459
26460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26461
26462 [BZ #18822]
26463 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26464
26465 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26466
26467 [BZ #18822]
26468 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26469 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26470
26471 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26472
26473 [BZ #18822]
26474 * include/ifreq.h: New file.
26475 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26476 (__ifreq): Likewise.
26477 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26478 (__ifreq): Likewise.
26479
26480 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26481
26482 [BZ #18822]
26483 * include/idna.h: New file.
26484 * inet/getnameinfo.c: Include <idna.h> instead of
26485 <libidn/idna.h>.
26486 (__idna_to_unicode_lzlz): Removed.
26487 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26488 <libidn/idna.h>.
26489 (__idna_to_ascii_lz): Removed.
26490 (__idna_to_unicode_lzlz): Likewise.
26491
26492 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26493
26494 [BZ #18822]
26495 * include/plural-exp.h: New file.
26496 * intl/plural-exp.c: Include <plural-exp.h> instead of
26497 "plural-exp.h".
26498
26499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26500
26501 [BZ #18822]
26502 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26503 "getsourcefilter.h".
26504 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26505 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26506 "getsourcefilter.h".
26507 (__get_sol): Removed.
26508
26509 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26510
26511 [BZ #18822]
26512 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26513 to ...
26514 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26515
26516 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26517
26518 [BZ #18822]
26519 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26520 attribute_hidden.
26521
26522 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26523
26524 [BZ #18822]
26525 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26526
26527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26528
26529 [BZ #18822]
26530 * include/search.h (__tdestroy): Add libc_hidden_proto.
26531 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26532
26533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26534
26535 [BZ #18822]
26536 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26537
26538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26539
26540 [BZ #18822]
26541 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26542 attribute_hidden.
26543
26544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 [BZ #18822]
26547 * include/signal.h (__kill): Add libc_hidden_proto.
26548 (__sigblock): Likewise.
26549 (__sigprocmask): Likewise.
26550 (__sigaltstack): Likewise.
26551 * signal/kill.c (__kill): Add libc_hidden_def.
26552 * signal/sigblock.c (__sigblock): Likewise.
26553 * signal/sigprocmask.c (__sigprocmask): Likewise.
26554 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26555 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26556 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26557 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26558 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26559 Likewise.
26560 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26561 Likewise.
26562 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26563 (__sigprocmask): Likewise.
26564 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26565 Likewise.
26566 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26567 (__sigprocmask): Likewise.
26568 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26569 Likewise.
26570
26571 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26572
26573 [BZ #18822]
26574 * include/string.h (__strsep): Add libc_hidden_proto.
26575 * string/strsep.c (__strsep): Add libc_hidden_def.
26576
26577 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26578
26579 [BZ #18822]
26580 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26581 attribute_hidden.
26582 (__spawni): Likewise.
26583
26584 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26585
26586 [BZ #18822]
26587 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26588 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26589 libc_hidden_def.
26590
26591 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26592
26593 [BZ #18822]
26594 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26595
26596 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26597
26598 [BZ #18822]
26599 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26600 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26601 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26602 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26603 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26604 Likewise.
26605 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26606 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26607
26608 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26609
26610 [BZ #18822]
26611 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26612 (__dcigettext): Likewise.
26613
26614 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26615
26616 [BZ #18822]
26617 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26618 libc_hidden_proto.
26619 (__get_nprocs): Likewise.
26620 (__get_phys_pages): Likewise.
26621 (__get_avphys_pages): Likewise.
26622 (__get_child_max): Add attribute_hidden.
26623 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26624 (__get_nprocs): Likewise.
26625 (__get_phys_pages): Likewise.
26626 (__get_avphys_pages): Likewise.
26627 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26628 libc_hidden_def.
26629 (__get_nprocs): Likewise.
26630 (__get_phys_pages): Likewise.
26631 (__get_avphys_pages): Likewise.
26632 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26633 libc_hidden_def.
26634 (__get_nprocs_conf): Likewise.
26635 (__get_phys_pages): Likewise.
26636 (__get_avphys_pages): Likewise.
26637
26638 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26639
26640 [BZ #18822]
26641 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26642 attribute_hidden.
26643 (__netlink_close): Likewise.
26644 (__netlink_free_handle): Likewise.
26645 (__netlink_request): Likewise.
26646
26647 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26648
26649 [BZ #18822]
26650 * include/rpc/rpc.h (__rpc_thread_variables): Add
26651 attribute_hidden.
26652 (__rpc_thread_svc_cleanup): Likewise.
26653 (__rpc_thread_clnt_cleanup): Likewise.
26654 (__rpc_thread_key_cleanup): Likewise.
26655
26656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 [BZ #18822]
26659 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26660 (__writev): Likewise.
26661 * misc/readv.c (__readv): Add libc_hidden_def.
26662 * misc/writev.c (__writev): Likewise.
26663 * sysdeps/posix/readv.c (__readv): Likewise.
26664 * sysdeps/posix/writev.c (__writev): Likewise.
26665 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26666 (__readv): Likewise.
26667 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26668 (__writev): Likewise.
26669
26670 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26671
26672 [BZ #18822]
26673 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26674 (__regcomp): Add libc_hidden_proto.
26675 (__regexec): Likewise.
26676 (__regfree): Likewise.
26677 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26678 (__regfree): Likewise.
26679 * posix/regexec.c (__regexec): Likewise.
26680
26681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26682
26683 [BZ #18822]
26684 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26685 (__getutent): Likewise.
26686 (__getutid): Likewise.
26687 (__getutline): Likewise.
26688 (__pututline): Likewise.
26689 (__getutent_r): Likewise.
26690 (__getutid_r): Likewise.
26691 (__getutline_r): Likewise.
26692 (__utmpname): Add attribute_hidden.
26693 (__setutent): Likewise.
26694 (__endutent): Likewise.
26695 * login/getutent.c (__getutent): Add libc_hidden_def.
26696 * login/getutent_r.c (__getutent_r): Likewise.
26697 (__pututline): Likewise.
26698 * login/getutid.c (__getutid): Likewise.
26699 * login/getutid_r.c (__getutid_r): Likewise.
26700 * login/getutline.c (__getutline): Likewise.
26701 * login/getutline_r.c (__getutline_r): Likewise.
26702 * login/updwtmp.c (__updwtmp): Likewise.
26703
26704 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26705
26706 [BZ #18822]
26707 * include/dirent.h (__opendir): Always add attribute_hidden.
26708 (__fdopendir): Likewise.
26709 (__closedir): Likewise.
26710 (__readdir): Likewise.
26711 (__readdir64): Add libc_hidden_proto.
26712 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26713 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26714 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26715 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26716 New alias.
26717
26718 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26719
26720 [BZ #18822]
26721 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26722 * include/netdb.h (__gethostbyaddr_r): Likewise.
26723 (__gethostbyname_r): Likewise.
26724 (__gethostbyname2_r): Likewise.
26725 (__getnetbyaddr_r): Likewise.
26726 (__getnetbyname_r): Likewise.
26727 (__getservbyname_r): Likewise.
26728 (__getservbyport_r): Likewise.
26729 (__getprotobyname_r): Likewise.
26730 (__getprotobynumber_r): Likewise.
26731 (__getnetgrent_r): Likewise.
26732 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26733 (__getrpcbynumber_r): Likewise.
26734 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26735
26736 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26737
26738 [BZ #18822]
26739 * include/stdio.h (__fcloseall): Add attribute_hidden.
26740 (__getline): Likewise.
26741 (__path_search): Likewise.
26742 (__gen_tempname): Likewise.
26743 (__libc_message): Likewise.
26744 (__flockfile): Likewise.
26745 (__funlockfile): Likewise.
26746 (__fxprintf): Likewise.
26747 (__fxprintf_nocancel): Likewise.
26748
26749 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26750
26751 [BZ #18822]
26752 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26753 (__sgetsgent_r): Likewise.
26754
26755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26756
26757 [BZ #18822]
26758 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26759 (__statfs64): Likewise.
26760 (__fstatfs64): Likewise.
26761 * include/sys/statvfs.h (__statvfs64): Likewise.
26762 (__fstatvfs64): Likewise.
26763 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26764 (__statfs_filesize_max): Likewise.
26765 (__statfs_symlinks): Likewise.
26766 (__statfs_chown_restricted): Likewise.
26767
26768 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26769
26770 [BZ #18822]
26771 * include/time.h (__tzstring): Add attribute_hidden.
26772 (__tzfile_read): Likewise.
26773 (__tzfile_compute): Likewise.
26774 (__tzfile_default): Likewise.
26775 (__tzset_parse_tz): Likewise.
26776 (__offtime): Likewise.
26777 (__asctime_r): Likewise.
26778 (__tzset): Likewise.
26779 (__tz_convert): Likewise.
26780 (__getdate_r): Likewise.
26781 (__getclktck): Likewise.
26782
26783 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26784
26785 [BZ #18822]
26786 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26787 (__nscd_unmap): Likewise.
26788 (__nscd_cache_search): Likewise.
26789 (__nscd_get_nl_timestamp): Likewise.
26790 (__nscd_getpwnam_r): Likewise.
26791 (__nscd_getpwuid_r): Likewise.
26792 (__nscd_getgrnam_r): Likewise.
26793 (__nscd_getgrgid_r): Likewise.
26794 (__nscd_gethostbyname_r): Likewise.
26795 (__nscd_gethostbyname2_r): Likewise.
26796 (__nscd_gethostbyaddr_r): Likewise.
26797 (__nscd_getai): Likewise.
26798 (__nscd_getgrouplist): Likewise.
26799 (__nscd_getservbyname_r): Likewise.
26800 (__nscd_getservbyport_r): Likewise.
26801 (__nscd_innetgr): Likewise.
26802 (__nscd_setnetgrent): Likewise.
26803
26804 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26805
26806 [BZ #18822]
26807 * include/gmp.h: Declare internal functions only if _ISOMAC is
26808 undefined.
26809 (__mpn_extract_double): Add attribute_hidden.
26810 (__mpn_extract_long_double): Likewise.
26811 (__mpn_extract_float128): Likewise.
26812 (__mpn_construct_float): Likewise.
26813 (__mpn_construct_double): Likewise.
26814 (__mpn_construct_long_double): Likewise.
26815 (__mpn_construct_float128): Likewise.
26816 (mpn_add_1): Likewise.
26817 (mpn_addmul_1): Likewise.
26818 (mpn_add_n): Likewise.
26819 (mpn_cmp): Likewise.
26820 (mpn_divrem): Likewise.
26821 (mpn_lshift): Likewise.
26822 (mpn_mul): Likewise.
26823 (mpn_mul_1): Likewise.
26824 (mpn_rshift): Likewise.
26825 (mpn_sub_1): Likewise.
26826 (mpn_submul_1): Likewise.
26827 (mpn_sub_n): Likewise.
26828
26829 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26830
26831 [BZ #18822]
26832 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26833 (__wcscat): Likewise.
26834 (__btowc): Likewise.
26835 (__wcrtomb): Likewise.
26836 (__mbsrtowcs): Likewise.
26837 (__wcsrtombs): Likewise.
26838 (__mbsnrtowcs): Likewise.
26839 (__wcsnrtombs): Likewise.
26840 (__wcsncpy): Likewise.
26841 (__wcpncpy): Likewise.
26842 (__wmemcpy): Likewise.
26843 (__wmempcpy): Likewise.
26844 (__wmemmove): Likewise.
26845 (__wcschrnul): Likewise.
26846 (__vfwscanf): Likewise.
26847 (__vswprintf): Likewise.
26848 (__fwprintf): Likewise.
26849 (__vfwprintf): Likewise.
26850
26851 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26852
26853 [BZ #18822]
26854 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26855 (__getgrgid_r): Likewise.
26856 (__getgrnam_r): Likewise.
26857 * include/pwd.h (__getpwuid_r): Likewise.
26858 (__getpwnam_r): Likewise.
26859 (__fgetpwent_r): Likewise.
26860 * include/shadow.h (__getspnam_r): Likewise.
26861 (__sgetspent_r): Likewise.
26862 (__fgetspent_r): Likewise.
26863
26864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 [BZ #18822]
26867 * include/unistd.h (__access): Add attribute_hidden.
26868 (__lseek64): Likewise.
26869 (__libc_pread64): Likewise.
26870 (__pipe2): Likewise.
26871 (__sleep): Likewise.
26872 (__chdir): Likewise.
26873 (__fchdir): Likewise.
26874 (__getcwd): Likewise.
26875 (__rmdir): Likewise.
26876 (__execvpe): Likewise.
26877 (__execve): Likewise.
26878 (__setsid): Likewise.
26879 (__getuid): Likewise.
26880 (__geteuid): Likewise.
26881 (__getgid): Likewise.
26882 (__getegid): Likewise.
26883 (__getgroups): Likewise.
26884 (__group_member): Likewise.
26885 (__ttyname_r): Likewise.
26886 (__isatty): Likewise.
26887 (__readlink): Likewise.
26888 (__unlink): Likewise.
26889 (__gethostname): Likewise.
26890 (__profil): Likewise.
26891 (__getdtablesize): Likewise.
26892 (__brk): Likewise.
26893 (__ftruncate): Likewise.
26894 (__ftruncate64): Likewise.
26895
26896 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26897
26898 [BZ #18822]
26899 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26900 * argp/argp-fs-xinl.c: Likewise.
26901 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26902 * argp/argp-parse.c: Include <argp.h>.
26903 * argp/argp-xinl.c: Likewise.
26904 * include/argp-fmtstream.h: New file.
26905 * include/argp.h (__argp_error): Add attribute_hidden.
26906 (__argp_failure): Likewise.
26907 (__argp_input): Likewise.
26908 (__argp_state_help): Likewise.
26909
26910 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26911
26912 [BZ #18822]
26913 * include/wchar.h (____wcstof_l_internal): New prototype.
26914 (____wcstod_l_internal): Likewise.
26915 (____wcstold_l_internal): Likewise.
26916 (____wcstol_l_internal): Likewise.
26917 (____wcstoul_l_internal): Likewise.
26918 (____wcstoll_l_internal): Likewise.
26919 (____wcstoull_l_internal): Likewise.
26920 (____wcstof128_l_internal): Likewise.
26921 * sysdeps/ieee754/float128/wcstof128.c
26922 (____wcstof128_l_internal): Removed.
26923 * sysdeps/ieee754/float128/wcstof128_l.c
26924 (____wcstof128_l_internal): Likewise.
26925 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26926 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26927 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26928 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26929 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26930 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26931 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26932 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26933 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26934 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26935
26936 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26937
26938 [BZ #18822]
26939 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26940 instead of <sys/statvfs.h>.
26941 (__internal_statvfs): Removed.
26942 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26943 instead of <sys/statvfs.h>.
26944 (__internal_statvfs64): Removed.
26945 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26946 "internal_statvfs.h" instead of <sys/statvfs.h>.
26947 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26948 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26949 instead of <sys/statvfs.h>.
26950 (__internal_statvfs): Removed.
26951 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26952 instead of <sys/statvfs.h>.
26953 (__internal_statvfs64): Removed.
26954
26955 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26956
26957 [BZ #18822]
26958 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26959 (__gconv_close): Likewise.
26960 (__gconv): Likewise.
26961 (__gconv_find_transform): Likewise.
26962 (__gconv_lookup_cache): Likewise.
26963 (__gconv_compare_alias_cache): Likewise.
26964 (__gconv_load_cache): Likewise.
26965 (__gconv_get_path): Likewise.
26966 (__gconv_close_transform): Likewise.
26967 (__gconv_release_cache): Likewise.
26968 (__gconv_find_shlib): Likewise.
26969 (__gconv_release_shlib): Likewise.
26970 (__gconv_get_builtin_trans): Likewise.
26971 (__gconv_compare_alias): Likewise.
26972 * include/dlfcn.h (_dlerror_run): Likewise.
26973 * include/stdio.h (__fortify_fail_abort): Likewise.
26974 * include/time.h (__tz_compute): Likewise.
26975 (__strptime_internal): Likewise.
26976 * intl/gettextP.h (_nl_find_domain): Likewise.
26977 (_nl_load_domain): Likewise.
26978 (_nl_find_msg): Likewise.
26979 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26980 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26981 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26982 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26983 (__gai_find_request): Likewise.
26984 (__gai_remove_request): Likewise.
26985 (__gai_notify): Likewise.
26986 (__gai_notify_only): Likewise.
26987 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26988 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26989 (_dl_non_dynamic_init): Likewise.
26990 (_dl_aux_init): Likewise.
26991 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26992 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26993 Likewise.
26994 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26995 (__wcsmbs_clone_conv): Likewise.
26996 (__wcsmbs_named_conv): Likewise.
26997
26998 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26999
27000 [BZ #18822]
27001 * include/stdlib.h (__random): Add attribute_hidden.
27002 (__random_r): Likewise.
27003 (__srandom_r): Likewise.
27004 (__initstate_r): Likewise.
27005 (__setstate_r): Likewise.
27006 (__erand48_r): Likewise.
27007 (__nrand48_r): Likewise.
27008 (__jrand48_r): Likewise.
27009 (__srand48_r): Likewise.
27010 (__seed48_r): Likewise.
27011 (__lcong48_r): Likewise.
27012 (__drand48_iterate): Likewise.
27013 (__setenv): Likewise.
27014 (__unsetenv): Likewise.
27015 (__clearenv): Likewise.
27016 (__ptsname_r): Likewise.
27017 (__posix_openpt): Likewise.
27018 (__add_to_environ): Likewise.
27019 (__realpath): Add libc_hidden_proto.
27020 (__ecvt_r): Likewise.
27021 (__fcvt_r): Likewise.
27022 (__qecvt_r): Likewise.
27023 (__qfcvt_r): Likewise.
27024 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27025 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27026
27027 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27028
27029 [BZ #18822]
27030 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27031 * include/time.h (__mktime_internal): Likewise.
27032 * libio/iolibio.h (__fopen_internal): Likewise.
27033
27034 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27035
27036 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27037 pointer in frame.
27038 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27039 Correct offset used to restore PIC register.
27040
27041 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27042
27043 [BZ libc/22165]
27044 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27045 code to load address of __getcontext_ret when generating PIC code.
27046
27047 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27048
27049 * elf/Makefile (tests-static-internal): Add
27050 tst-tls1-static-non-pie.
27051 (LDFLAGS-tst-tls1-static-non-pie): New.
27052 * elf/tst-tls1-static-non-pie.c: New file.
27053
27054 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27055
27056 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27057 (asinh): Define using libm_alias_double.
27058 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27059 (cbrt): Define using libm_alias_double.
27060 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27061 <libm-alias-double.h>.
27062 (copysign): Define using libm_alias_double.
27063 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27064 (erf): Define using libm_alias_double.
27065 (erfc): Likewise.
27066 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27067 (expm1): Define using libm_alias_double.
27068 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27069 (fabs): Define using libm_alias_double.
27070 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27071 libm_alias_double.
27072 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27073 <libm-alias-double.h>.
27074 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27075 libm_alias_double.
27076 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27077 <libm-alias-double.h>.
27078 (getpayload): Define using libm_alias_double.
27079 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27080 <libm-alias-double.h>.
27081 (llrint): Define using libm_alias_double.
27082 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27083 (lrint): Define using libm_alias_double.
27084 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27085 <libm-alias-double.h>.
27086 (nextup): Define using libm_alias_double.
27087 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27088 <libm-alias-double.h>.
27089 (roundeven): Define using libm_alias_double.
27090 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27091 libm_alias_double.
27092 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27093 <libm-alias-double.h>.
27094 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27095 using libm_alias_double.
27096 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27097 (cos): Define using libm_alias_double.
27098 (sin): Likewise.
27099 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27100 <libm-alias-double.h>.
27101 (sincos): Define using libm_alias_double.
27102 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27103 (tanh): Define using libm_alias_double.
27104 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27105 <libm-alias-double.h>.
27106 (totalorder): Define using libm_alias_double.
27107 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27108 <libm-alias-double.h>.
27109 (totalordermag): Define using libm_alias_double.
27110 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27111 libm_alias_double.
27112 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27113 libm_alias_double.
27114 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27115 <libm-alias-double.h>.
27116 (getpayload): Define using libm_alias_double.
27117 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27118 <libm-alias-double.h>.
27119 (roundeven): Define using libm_alias_double.
27120 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27121 <libm-alias-double.h>.
27122 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27123 <libm-alias-double.h>.
27124 (totalorder): Define using libm_alias_double.
27125 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27126 <libm-alias-double.h>.
27127 (totalordermag): Define using libm_alias_double.
27128 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27129 libc compat symbol here.
27130 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27131 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27132 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27133 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27134 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27135 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27136 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27137 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27138 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27139 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27140
27141 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27142
27143 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27144 _dl_relocate_static_pie instead of _dl_start to compute load
27145 address in static PIE. Return 0 if _DYNAMIC is undefined for
27146 static executable.
27147
27148 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27149
27150 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27151 _DYNAMIC is undefined for static executable.
27152
27153 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27154
27155 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27156
27157 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27158
27159 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27160
27161 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27162
27163 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27164 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27165 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27166 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27167 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27168 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27169 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27170 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27171 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27172 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27173 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27174 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27175 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27176 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27177 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27178 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27179 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27180
27181 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27182
27183 * math/bits/cmathcalls.h (cimag): Remove inline.
27184 (creal): Remove inline.
27185 (conj): Remove inline.
27186
27187 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27188
27189 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27190 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27191 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27192 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27193 (issignalingf_inline): Likewise.
27194 (POWF_LOG2_TABLE_BITS): Likewise.
27195 (POWF_LOG2_POLY_ORDER): Likewise.
27196 (POWF_SCALE_BITS): Likewise.
27197 (POWF_SCALE): Likewise.
27198 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27199 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27200 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27201
27202 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27203
27204 * math/Makefile (type-float-routines): Add e_log2f_data.
27205 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27206 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27207 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27208 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27209 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27210 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27211 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27212
27213 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27214
27215 * math/Makefile (type-float-routines): Add e_logf_data.
27216 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27217 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27218 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27219 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27220 * sysdeps/i386/fpu/e_logf_data.c: New file.
27221 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27222 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27223
27224 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27225
27226 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27227 undefined _DYNAMIC in PIE libc.a.
27228 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27229 Likewse.
27230
27231 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27232
27233 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27234 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27235 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27236 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27237 (__signbit): Remove.
27238 (__signbitl): Remove.
27239 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27240 (__signbit): Remove.
27241 (__signbitl): Remove.
27242 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27243 (__signbit): Remove.
27244 (__signbitl): Remove.
27245 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27246 (__signbit): Remove.
27247 (__signbitl): Remove.
27248 * sysdeps/tile/bits/mathinline.h: Delete file.
27249 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27250 (__signbit): Remove.
27251 (__signbitl): Remove.
27252
27253 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27254
27255 * math/math.h: Improve handling of C99 isgreater macros.
27256 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27257 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27258 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27259 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27260 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27261
27262 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27263
27264 * sysdeps/aarch64/libm-test-ulps: Update.
27265
27266 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27267
27268 [BZ #22225]
27269 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27270 math_opt_barrier on argument when doing arithmetic on it.
27271 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27272 Likewise. Use math_force_eval not math_opt_barrier after
27273 arithmetic.
27274 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27275 math_opt_barrier on argument when doing arithmetic on it.
27276 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27277 Likewise.
27278
27279 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27280
27281 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27282 libc_hidden_def.
27283 (__freeifaddrs): Likewise.
27284
27285 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27286
27287 * include/dirent.h (__dirfd): New declaration.
27288 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27289 alias.
27290 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27291 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27292 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27293 * include/unistd.h (__revoke): New declaration.
27294 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27295 alias.
27296 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27297 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27298 revoke.
27299 * include/dirent.h (__seekdir): New declaration.
27300 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27301 redefine as weak alias.
27302 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27303 of seekdir.
27304 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27305 and use libc_hidden_def on them.
27306 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27307 them.
27308 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27309 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27310 instead of getifaddrs and freeifaddrs.
27311
27312 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27313
27314 [BZ #18822]
27315 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27316 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27317 (__dso_handle): Remove declaration.
27318 * dlfcn/tstatexit.c (__dso_handle): Removed.
27319 (main): Don't check __dso_handle.
27320 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27321 (main): Don't check __dso_handle.
27322 * include/dso_handle.h: New file.
27323 * malloc/mtrace.c: Include <dso_handle.h>.
27324 (mtrace): Pass __dso_handle directly.
27325 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27326 (__dso_handle): Remove declaration.
27327 (__pthread_atfork): Pass __dso_handle directly.
27328 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27329 (__dso_handle): Removed.
27330 * posix/wordexp-test.c: Include <dso_handle.h>.
27331 (__dso_handle): Remove declaration.
27332 (__app_register_atfork): Pass __dso_handle directly.
27333 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27334 (__dso_handle): Remove declaration.
27335 (at_quick_exit): Pass __dso_handle directly.
27336 * stdlib/atexit.c: Include <dso_handle.h>.
27337 (__dso_handle): Remove declaration.
27338 (atexit): Pass __dso_handle directly.
27339 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27340 (__dso_handle): Removed.
27341
27342 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27343
27344 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27345 using VDSO.
27346
27347 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27348
27349 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27350 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27351 values to correct default value for given type.
27352
27353 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27354
27355 [BZ #22101]
27356 * elf/Makefile (tests): Add tst-debug1.
27357 ($(objpfx)tst-debug1): New.
27358 ($(objpfx)tst-debug1.out): Likewise.
27359 ($(objpfx)tst-debug1mod1.so): Likewise.
27360 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27361 with p_filesz == 0.
27362 * elf/tst-debug1.c: New file.
27363
27364 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27365
27366 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27367 Define using __ifunc.
27368
27369 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27370
27371 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27372 exp2f() values.
27373
27374 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27375
27376 [BZ #22156]
27377 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27378
27379 2017-09-26 Florian Weimer <fweimer@redhat.com>
27380
27381 * resolv/Makefile (tests-internal): Fix typo in comment.
27382
27383 2017-09-26 Florian Weimer <fweimer@redhat.com>
27384
27385 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27386
27387 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27388
27389 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27390 Use an union instead of a max_align_t array for __space,
27391 so that __space is the same size on all platforms.
27392 * malloc/scratch_buffer_grow_preserve.c
27393 (__libc_scratch_buffer_grow_preserve): Likewise.
27394
27395 [BZ #22183]
27396 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27397 version to 2.
27398 * posix/Makefile (routines): Add glob-lstat-compat and
27399 glob64-lstat-compat.
27400 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27401 * posix/glob-lstat-compat.c: New file.
27402 * posix/glob64-lstat-compat.c: Likewise.
27403 * posix/tst-glob_lstat_compat.c: Likewise.
27404 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27405 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27406 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27407 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27408 Likewise.
27409 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27410 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27411 * posix/glob.c (glob_lstat): New function.
27412 (glob): Rename to __glob and add versioned symbol to 2.27.
27413 (glob_in_dir): Use glob_lstat.
27414 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27415 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27416 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27417 2.27.
27418 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27419 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27420 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27421 gl_lstat on glob call.
27422 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27423 and glob64 symbols.
27424 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27425 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27426 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27427 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27428 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27429 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27430 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27431 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27432 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27433 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27434 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27435 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27437 Likewise.
27438 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27440 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27441 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27442 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27443 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27444 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27445 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27446 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27447 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27448 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27449 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27450
27451 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27452
27453 * configure.ac (AS): Require binutils 2.25 or later.
27454 * configure: Regenerated.
27455
27456 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27457
27458 [BZ #22207]
27459 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27460 VM size.
27461
27462 2017-09-25 DJ Delorie <dj@redhat.com>
27463
27464 [BZ #22161]
27465 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27466 resetting timeout.
27467
27468 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27469
27470 * sysdeps/ieee754/dbl-64/sincos32.h
27471 [SINCCOS32_H]: Remove define.
27472 [SINCOS32_H]: Define.
27473
27474 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27475
27476 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27477 (exp2f): Likewise.
27478 * math/w_exp2f.c: New file.
27479 * math/w_expf.c: New file.
27480 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27481 * math/w_expf_compat.c (__expf_compat): Likewise.
27482 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27483 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27484 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27485 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27486 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27487 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27488 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27489 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27490 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27491 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27492 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27493 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27494 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27495 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27496 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27497 Likewise.
27498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27499 Likewise.
27500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27501 Likewise.
27502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27503 Likewise.
27504 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27505 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27506 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27507 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27508 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27509 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27510 Likewise.
27511 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27512 Likewise.
27513 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27514 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27515 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27516
27517 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27518
27519 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27520 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27521 (roundtoint, converttoint): Likewise.
27522 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27523 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27524 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27525 * sysdeps/ieee754/flt-32/math_config.h: New file.
27526 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27527 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27528 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27529 * sysdeps/i386/fpu/math_errf.c: New file.
27530 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27531 * sysdeps/ia64/fpu/math_errf.c: New file.
27532 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27533 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27534
27535 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27536
27537 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27538 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27539 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27540 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27541 to make sure that these symbols are defined.
27542 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27543 of <limits.h>
27544 (__need_NULL): Do not define.
27545 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27546 alignment.
27547 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27548 CMGROUP_MAX, cmsgcred): Do not define.
27549 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27550 NULL.
27551 * bits/socket.h: Likewise.
27552 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27553 __gettimeofday instead of gettimeofday.
27554 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27555 instead of settimeofday.
27556
27557 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27558
27559 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27560 (asinhf): Define using libm_alias_float.
27561 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27562 (atanf): Define using libm_alias_float.
27563 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27564 (cbrtf): Define using libm_alias_float.
27565 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27566 (ceilf): Define using libm_alias_float.
27567 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27568 <libm-alias-float.h>.
27569 (copysignf): Define using libm_alias_float.
27570 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27571 (cosf): Define using libm_alias_float.
27572 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27573 (erff): Define using libm_alias_float.
27574 (erfcf): Likewise.
27575 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27576 (expm1f): Define using libm_alias_float.
27577 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27578 (fabsf): Define using libm_alias_float.
27579 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27580 (floorf): Define using libm_alias_float.
27581 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27582 (frexpf): Define using libm_alias_float.
27583 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27584 libm_alias_float.
27585 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27586 <libm-alias-float.h>.
27587 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27588 libm_alias_float.
27589 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27590 <libm-alias-float.h>.
27591 (getpayloadf): Define using libm_alias_float.
27592 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27593 <libm-alias-float.h>.
27594 (llrintf): Define using libm_alias_float.
27595 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27596 <libm-alias-float.h>.
27597 (llroundf): Define using libm_alias_float.
27598 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27599 (logbf): Define using libm_alias_float.
27600 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27601 (lrintf): Define using libm_alias_float.
27602 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27603 (lroundf): Define using libm_alias_float.
27604 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27605 (modff): Define using libm_alias_float.
27606 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27607 <libm-alias-float.h>.
27608 (nearbyintf): Define using libm_alias_float.
27609 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27610 <libm-alias-float.h>.
27611 (nextafterf): Define using libm_alias_float.
27612 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27613 <libm-alias-float.h>.
27614 (nextupf): Define using libm_alias_float.
27615 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27616 <libm-alias-float.h>.
27617 (remquof): Define using libm_alias_float.
27618 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27619 (rintf): Define using libm_alias_float.
27620 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27621 <libm-alias-float.h>.
27622 (roundevenf): Define using libm_alias_float.
27623 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27624 (roundf): Define using libm_alias_float.
27625 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27626 using libm_alias_float.
27627 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27628 <libm-alias-float.h>.
27629 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27630 Define using libm_alias_float.
27631 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27632 <libm-alias-float.h>.
27633 (sincosf): Define using libm_alias_float.
27634 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27635 (sinf): Define using libm_alias_float.
27636 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27637 (tanf): Define using libm_alias_float.
27638 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27639 (tanhf): Define using libm_alias_float.
27640 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27641 <libm-alias-float.h>.
27642 (totalorderf): Define using libm_alias_float.
27643 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27644 <libm-alias-float.h>.
27645 (totalordermagf): Define using libm_alias_float.
27646 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27647 (truncf): Define using libm_alias_float.
27648 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27649 libm_alias_float.
27650 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27651 libm_alias_float.
27652
27653 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27654
27655 [BZ #22146]
27656 math/math.h: Let fpclassify use the builtin in C++ mode, even
27657 when optimazing for size.
27658
27659 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27660
27661 * csu/Makefile (generated): Do not add version-info.h.
27662 (before-compile): Likewise.
27663 (all-Banner-files): Remove variable.
27664 ($(objpfx)version-info.h): Remove rule.
27665 * csu/version.c (banner): Do not include "version-info.h".
27666 * libidn/Banner: Remove.
27667 * manual/contrib.texi (Simon Josefsson): New entry.
27668
27669 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27670
27671 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27672 Remove conditionals on LDBL_MANT_DIG.
27673 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27674 (__ieee754_lgammal_r): Likewise.
27675
27676 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27677
27678 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27679 _Float128 and L().
27680 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27681 _Float128 and L(). Replace _Float128 with long double and L(x)
27682 with xL, throughout the file.
27683 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27684 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27685 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27686 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27687
27688 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27689
27690 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27691 sysdeps/ieee754/ldbl-128ibm.
27692 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27693 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27694 of including it. Keep _Float128 and L() intact. These will be
27695 reviewed by a separate patch.
27696 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27697 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27698 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27699 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27700
27701 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27702
27703 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27704 (__finitef128): Define to __redirect___finitef128.
27705 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27706 (__isinff128): Define to __redirect___isinff128.
27707 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27708 (__isnanf128): Define to __redirect___isnanf128.
27709
27710 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27711
27712 * sysdeps/powerpc/powerpc64le/Makefile
27713 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27714 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27715
27716 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27717 Carlos O'Donell <carlos@redhat.com>
27718
27719 [BZ #22180]
27720 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27721 * stdlib/test-dlclose-exit-race.c: New file.
27722 * stdlib/test-dlclose-exit-race-helper.c: New file.
27723 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27724
27725 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27726
27727 * crypt/Banner: Remove file.
27728 * nptl/Banner: Likewise.
27729 * resolv/Banner: Likewise.
27730 * soft-fp/Banner: Likewise.
27731 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27732 ($(objpfx)version.d): Remove dependency on banner.h.
27733 ($(objpfx)version.os): Likewise.
27734 * nptl/version.c (banner): Do not include banner.h.
27735 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27736 Jelinek and BIND code.
27737
27738 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27739 Carlos O'Donell <carlos@redhat.com>
27740
27741 * support/xdlfcn.h: New file.
27742 * support/xdlfcn.c: New file.
27743 * support/Makefile (libsupport-routines): Add xdlfcn.
27744 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27745
27746 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27747
27748 [BZ #20142]
27749 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27750 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27751 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27752 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27753 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27754 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27755 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27756 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27757
27758 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27759 Ricky Zhou <rickyz@google.com>
27760 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27761
27762 [BZ #14333]
27763 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27764 Remove atomics.
27765 (__new_exitfn): Fail registration when we finished at_exit processing.
27766 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27767 * stdlib/on_exit.c (__on_exit): Likewise.
27768 * stdlib/exit.c (__exit_funcs_done): New variable.
27769 (__run_exit_handlers): Use __exit_funcs_lock.
27770 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27771 declarations.
27772 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27773 (test-cxa_atexit-race, test-on_exit-race): New tests.
27774 * stdlib/test-atexit-race-common.c: New file.
27775 * stdlib/test-atexit-race.c: New file.
27776 * stdlib/test-at_quick_exit-race.c: New file.
27777 * stdlib/test-cxa_atexit-race.c: New file.
27778 * stdlib/test-on_exit-race.c: New file.
27779
27780 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27781
27782 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27783 * benchtests/exp2f-inputs: Copy of expf-inputs.
27784 * benchtests/log2f-inputs: Copy of logf-inputs.
27785
27786 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27787
27788 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27789 Explicitly take address of first element of array arguments in
27790 call to INLINE_SYSCALL.
27791
27792 2017-09-19 Andreas Schwab <schwab@suse.de>
27793
27794 [BZ #22134]
27795 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27796 execveat first.
27797 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27798 unimplemented.
27799 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27800 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27801 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27802 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27803 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27804 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27805 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27806 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27807 * posix/Makefile (tests): Add tst-fexecve.
27808 * posix/tst-fexecve.c: New file.
27809
27810 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27811
27812 * benchtests/Makefile: Add logf benchmark.
27813 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27814
27815 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27816
27817 * benchtests/Makefile: Add expf benchmark.
27818 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27819
27820 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27821
27822 * csu/Makefile: Add -funwind-tables to libc-start.c.
27823 * debug/Makefile: Add -funwind-tables to backtrace.c.
27824 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27825 * sysdeps/arm/Makefile: Likewise.
27826 * sysdeps/i386/Makefile: Likewise.
27827 * sysdeps/m68k/Makefile: Likewise.
27828 * sysdeps/mips/Makefile: Likewise.
27829 * sysdeps/nios2/Makefile: Likewise.
27830 * sysdeps/sh/Makefile: Likewise.
27831 * sysdeps/sparc/Makefile: Likewise.
27832
27833 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27834
27835 * benchtests/Makefile (bench-math): Add trunc and truncf.
27836 (CFLAGS-bench-trunc.c): New variable.
27837 (CFLAGS-bench-truncf.c): Likewise.
27838 * benchtests/trunc-inputs: New file.
27839 * benchtests/truncf-inputs: Likewise.
27840
27841 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27842
27843 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27844
27845 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27846
27847 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27848 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27849 redefine.
27850 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27851 (exp10l): Define as weak alias.
27852 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27853 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27854 and redefine.
27855 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27856 (remainderl): Define as weak alias.
27857
27858 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27859 (fmal): Define using libm_alias_ldouble.
27860 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27861 (acoshl): Define using libm_alias_ldouble.
27862 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27863 (acosl): Define using libm_alias_ldouble.
27864 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27865 (asinl): Define using libm_alias_ldouble.
27866 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27867 (atan2l): Define using libm_alias_ldouble.
27868 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27869 (atanhl): Define using libm_alias_ldouble.
27870 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27871 (coshl): Define using libm_alias_ldouble.
27872 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27873 (exp10l): Define using libm_alias_ldouble.
27874 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27875 (exp2l): Define using libm_alias_ldouble.
27876 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27877 (expl): Define using libm_alias_ldouble.
27878 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27879 (fmodl): Define using libm_alias_ldouble.
27880 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27881 (hypotl): Define using libm_alias_ldouble.
27882 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27883 (j0l): Define using libm_alias_ldouble.
27884 (y0l): Likewise.
27885 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27886 (j1l): Define using libm_alias_ldouble.
27887 (y1l): Likewise.
27888 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27889 (jnl): Define using libm_alias_ldouble.
27890 (ynl): Likewise.
27891 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27892 (log10l): Define using libm_alias_ldouble.
27893 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27894 (log2l): Define using libm_alias_ldouble.
27895 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27896 (logl): Define using libm_alias_ldouble.
27897 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27898 (powl): Define using libm_alias_ldouble.
27899 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27900 (remainderl): Define using libm_alias_ldouble.
27901 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27902 (sinhl): Define using libm_alias_ldouble.
27903 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27904 (sqrtl): Define using libm_alias_ldouble.
27905 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27906 (tgammal): Define using libm_alias_ldouble.
27907 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27908 (exp10l): Do not use long_double_symbol here.
27909 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27910 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27911 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27912 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27913 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27914 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27915 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27916 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27917 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27918 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27919 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27920 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27921 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27922 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27923 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27924 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27925 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27926 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27927 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27928 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27929 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27930 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27931
27932 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27933
27934 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27935 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27936
27937 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27938
27939 * io/read.c (read): Add libc_hidden_weak.
27940 * sysdeps/mach/hurd/read.c (read): Likewise.
27941 * io/write.c (write): Likewise.
27942 * sysdeps/mach/hurd/write.c (write): Likewise.
27943 * io/pread64.c (__pread64): Likewise.
27944 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27945 * posix/pread64.c (__pread64): Add libc_hidden_def.
27946
27947 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27948
27949 * benchtests/scripts/compare_strings.py: New option -g.
27950 (draw_graph): Print a message that a graph is being generated.
27951 (process_results): Generate graph only if -g is passed.
27952 (main): Process option -g.
27953
27954 * benchtests/scripts/compare_strings.py (process_results):
27955 Better spacing for output.
27956
27957 * benchtests/scripts/compare_strings.py: Use argparse.
27958 * benchtests/README: Document existence of compare_strings.py.
27959
27960 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27961
27962 * math/s_fma.c: Include <libm-alias-double.h>.
27963 (fma): Define using libm_alias_double.
27964 * math/s_nextafter.c: Include <libm-alias-double.h>.
27965 (nextafter): Define using libm_alias_double.
27966 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27967 (acos): Define using libm_alias_double.
27968 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27969 (aocsh): Define using libm_alias_double.
27970 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27971 (asin): Define using libm_alias_double.
27972 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27973 (atan2): Define using libm_alias_double.
27974 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27975 (atanh): Define using libm_alias_double.
27976 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27977 (cosh): Define using libm_alias_double.
27978 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27979 (exp10): Define using libm_alias_double.
27980 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27981 (exp2): Define using libm_alias_double.
27982 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27983 (exp): Define using libm_alias_double.
27984 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27985 (fmod): Define using libm_alias_double.
27986 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27987 (hypot): Define using libm_alias_double.
27988 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27989 (j0): Define using libm_alias_double.
27990 (y0): Likewise.
27991 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27992 (j1): Define using libm_alias_double.
27993 (y1): Likewise.
27994 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27995 (jn): Define using libm_alias_double.
27996 (yn): Likewise.
27997 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27998 (log10): Define using libm_alias_double.
27999 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28000 (log2): Define using libm_alias_double.
28001 * math/w_log_compat.c: Include <libm-alias-double.h>.
28002 (log): Define using libm_alias_double.
28003 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28004 (pow): Define using libm_alias_double.
28005 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28006 (remainder): Define using libm_alias_double.
28007 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28008 (sinh): Define using libm_alias_double.
28009 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28010 (sqrt): Define using libm_alias_double.
28011 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28012 (tgamma): Define using libm_alias_double.
28013 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28014 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28015 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28016 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28017 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28018 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28019 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28020 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28021 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28022 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28023 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28024 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28025 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28026 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28027 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28028 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28029 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28030 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28031 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28032 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28033 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28034 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28035 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28036 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28037 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28038
28039 * math/e_acoshl.c: Remove.
28040 * math/e_acosl.c: Likewise.
28041 * math/e_asinl.c: Likewise.
28042 * math/e_atan2l.c: Likewise.
28043 * math/e_atanhl.c: Likewise.
28044 * math/e_coshl.c: Likewise.
28045 * math/e_expl.c: Likewise.
28046 * math/e_fmodl.c: Likewise.
28047 * math/e_gammal_r.c: Likewise.
28048 * math/e_hypotl.c: Likewise.
28049 * math/e_j0l.c: Likewise.
28050 * math/e_j1l.c: Likewise.
28051 * math/e_jnl.c: Likewise.
28052 * math/e_lgammal_r.c: Likewise.
28053 * math/e_log10l.c: Likewise.
28054 * math/e_log2l.c: Likewise.
28055 * math/e_logl.c: Likewise.
28056 * math/e_powl.c: Likewise.
28057 * math/e_rem_pio2l.c: Likewise.
28058 * math/e_sinhl.c: Likewise.
28059 * math/e_sqrtf128.c: Likewise.
28060 * math/e_sqrtl.c: Likewise.
28061 * math/k_cosl.c: Likewise.
28062 * math/k_sinl.c: Likewise.
28063 * math/k_tanl.c: Likewise.
28064 * math/s_asinhl.c: Likewise.
28065 * math/s_atanl.c: Likewise.
28066 * math/s_cbrtl.c: Likewise.
28067 * math/s_erfl.c: Likewise.
28068 * math/s_expm1l.c: Likewise.
28069 * math/s_log1pl.c: Likewise.
28070 * math/s_tanhl.c: Likewise.
28071
28072 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28073
28074 [BZ #21745]
28075 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28076 [$(subdir) = math] (sysdep_calls): New variable. Has the
28077 previous contents of sysdep_routines, but re-sorted..
28078 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28079 sysdep_calls.
28080 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28081 defined in sysdep_calls and replace by the respective m_* names.
28082 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28083 (compat_symbol): Undefine to avoid duplicated compat symbols in
28084 libc.
28085
28086 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28087
28088 * math/s_fmaf.c: Include <libm-alias-float.h>.
28089 (fmaf): Define using libm_alias_float.
28090 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28091 (acosf): Define using libm_alias_float.
28092 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28093 (acoshf): Define using libm_alias_float.
28094 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28095 (asinf): Define using libm_alias_float.
28096 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28097 (atan2f): Define using libm_alias_float.
28098 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28099 (atanhf): Define using libm_alias_float.
28100 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28101 (coshf): Define using libm_alias_float.
28102 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28103 (exp10f): Define using libm_alias_float.
28104 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28105 (fmodf): Define using libm_alias_float.
28106 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28107 (hypotf): Define using libm_alias_float.
28108 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28109 (j0f): Define using libm_alias_float.
28110 (y0f): Likewise.
28111 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28112 (j1f): Define using libm_alias_float.
28113 (y1f): Likewise.
28114 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28115 (jnf): Define using libm_alias_float.
28116 (ynf): Likewise.
28117 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28118 (log10f): Define using libm_alias_float.
28119 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28120 (log2f): Define using libm_alias_float.
28121 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28122 (logf): Define using libm_alias_float.
28123 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28124 (powf): Define using libm_alias_float.
28125 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28126 (remainderf): Define using libm_alias_float.
28127 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28128 (sinhf): Define using libm_alias_float.
28129 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28130 (sqrtf): Define using libm_alias_float.
28131 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28132 (tgammaf): Define using libm_alias_float.
28133
28134 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28135
28136 * include/math.h (roundeven): Change hidden_proto call to
28137 __roundeven.
28138 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28139 alias.
28140 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28141 (y0): Rename to __y0 and define as weak alias.
28142 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28143 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28144 alias.
28145 (y0f): Rename to __y0f and define as weak alias.
28146 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28147 alias.
28148 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28149 (y1): Rename to __y1 and define as weak alias.
28150 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28151 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28152 alias.
28153 (y1f): Rename to __y1f and define as weak alias.
28154 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28155 alias.
28156 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28157 (yn): Rename to __yn and define as weak alias.
28158 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28159 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28160 alias.
28161 (ynf): Rename to __ynf and define as weak alias.
28162 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28163 (fromfp): Define as weak alias.
28164 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28165 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28166 (fromfpx): Define as weak alias.
28167 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28168 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28169 __getpayload and define as weak alias.
28170 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28171 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28172 __roundeven and define as weak alias.
28173 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28174 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28175 __setpayload.
28176 (setpayload): Define as weak alias.
28177 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28178 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28179 __setpayloadsig.
28180 (setpayloadsig): Define as weak alias.
28181 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28182 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28183 __totalorder and define as weak alias.
28184 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28185 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28186 to __totalordermag and define as weak alias.
28187 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28188 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28189 (ufromfp): Define as weak alias.
28190 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28191 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28192 __ufromfpx.
28193 (ufromfpx): Define as weak alias.
28194 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28195 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28196 Rename to __getpayload and define as weak alias.
28197 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28198 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28199 Rename to __roundeven and define as weak alias.
28200 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28201 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28202 Rename to __totalorder and define as weak alias.
28203 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28204 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28205 (totalordermag): Rename to __totalordermag and define as weak
28206 alias.
28207 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28208 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28209 macro.
28210 (__roundevenl): Likewise.
28211 (__totalorderl): Likewise.
28212 (__totalordermagl): Likewise
28213 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28214 __fromfpf128.
28215 (fromfpf128): Define as weak alias.
28216 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28217 __fromfpxf128.
28218 (fromfpxf128): Define as weak alias.
28219 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28220 __setpayloadf128.
28221 (setpayloadf128): Define as weak alias.
28222 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28223 __setpayloadsigf128.
28224 (setpayloadsigf128): Define as weak alias.
28225 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28226 __ufromfpf128.
28227 (ufromfpf128): Define as weak alias.
28228 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28229 __ufromfpxf128.
28230 (ufromfpxf128): Define as weak alias.
28231 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28232 (fromfpf): Define as weak alias.
28233 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28234 __fromfpxf.
28235 (fromfpxf): Define as weak alias.
28236 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28237 __getpayloadf and define as weak alias.
28238 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28239 __roundevenf and define as weak alias.
28240 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28241 __setpayloadf.
28242 (setpayloadf): Define as weak alias.
28243 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28244 __setpayloadsigf.
28245 (setpayloadsigf): Define as weak alias.
28246 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28247 __totalorderf and define as weak alias.
28248 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28249 Rename to __totalordermagf and define as weak alias.
28250 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28251 __ufromfpf.
28252 (ufromfpf): Define as weak alias.
28253 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28254 __ufromfpxf.
28255 (ufromfpxf): Define as weak alias.
28256 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28257 __fromfpl.
28258 (fromfpl): Define as weak alias.
28259 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28260 __fromfpxl.
28261 (fromfpxl): Define as weak alias.
28262 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28263 to __getpayloadl and define as weak alias.
28264 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28265 __roundevenl and define as weak alias.
28266 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28267 __setpayloadl.
28268 (setpayloadl): Define as weak alias.
28269 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28270 __setpayloadsigl.
28271 (setpayloadsigl): Define as weak alias.
28272 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28273 to __totalorderl and define as weak alias.
28274 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28275 Rename to __totalordermagl and define as weak alias.
28276 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28277 __ufromfpl.
28278 (ufromfpl): Define as weak alias.
28279 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28280 __ufromfpxl.
28281 (ufromfpxl): Define as weak alias.
28282 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28283 __fromfpl.
28284 (fromfpl): Define as weak alias.
28285 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28286 __fromfpxl.
28287 (fromfpxl): Define as weak alias.
28288 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28289 Rename to __getpayloadl and define as weak alias.
28290 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28291 to __roundevenl and define as weak alias. Call __roundeven
28292 instead of roundeven.
28293 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28294 __setpayloadl.
28295 (setpayloadl): Define as weak alias.
28296 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28297 __setpayloadsigl.
28298 (setpayloadsigl): Define as weak alias.
28299 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28300 Rename to __totalorderl and define as weak alias.
28301 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28302 Rename to __totalordermagl and define as weak alias.
28303 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28304 __ufromfpl.
28305 (ufromfpl): Define as weak alias.
28306 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28307 __ufromfpxl.
28308 (ufromfpxl): Define as weak alias.
28309 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28310 __fromfpl.
28311 (fromfpl): Define as weak alias.
28312 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28313 __fromfpxl.
28314 (fromfpxl): Define as weak alias.
28315 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28316 __getpayloadl and define as weak alias.
28317 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28318 __roundevenl and define as weak alias.
28319 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28320 __setpayloadl.
28321 (setpayloadl): Define as weak alias.
28322 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28323 __setpayloadsigl.
28324 (setpayloadsigl): Define as weak alias.
28325 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28326 __totalorderl and define as weak alias.
28327 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28328 Rename to __totalordermagl and define as weak alias.
28329 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28330 __ufromfpl.
28331 (ufromfpl): Define as weak alias.
28332 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28333 __ufromfpxl.
28334 (ufromfpxl): Define as weak alias.
28335
28336 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28337
28338 * benchtests/bench-string.h (realloc_bufs): New function.
28339 (test_init): Call it.
28340 * benchtests/bench-memset-large.c (do_test): Likewise.
28341 * benchtests/bench-memset.c (do_test): Likewise.
28342
28343 * benchtests/bench-memset-large.c: Print output in JSON
28344 format.
28345 * benchtests/bench-memset.c: Likewise.
28346
28347 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28348
28349 [BZ #21084]
28350 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28351 * iconvdata/Makefile: Add IBM858.
28352 * iconvdata/gconv-modules: Likewise.
28353 * iconvdata/tst-tables.sh: Likewise.
28354 * iconvdata/ibm858.c: New file.
28355 * localedata/charmaps/IBM858: Likewise.
28356
28357 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28358
28359 [BZ #22023]
28360 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28361 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28362
28363 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28364
28365 [BZ #22112]
28366 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28367 and add tel_int_fmt.
28368
28369 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28370
28371 * sysdeps/generic/libm-alias-float128.h: New file.
28372 * sysdeps/generic/math-type-macros-float128.h: Include
28373 <libm-alias-float128.h>.
28374 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28375
28376 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28377
28378 * sysdeps/generic/libm-alias-ldouble.h: New file.
28379 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28380 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28381 * sysdeps/generic/math-type-macros-ldouble.h: Include
28382 <libm-alias-ldouble.h>.
28383 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28384 libm_alias_ldouble.
28385
28386 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28387
28388 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28389 * math/w_exp_compat.c: ... here.
28390 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28391 * math/w_expf_compat.c: ... here.
28392 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28393 * math/w_expl_compat.c: ... here.
28394 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28395 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28396 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28397 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28398
28399 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28400
28401 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28402 redefine.
28403 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28404 macro.
28405 (ldexpl): Only define as compat symbol for libc, not libm.
28406 (scalbnl): Define as compat symbol for libc here.
28407 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28408 define for [IS_IN (libc)].
28409 (__ldexpl_2): Remove alias.
28410 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28411 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28412 name in long_double_symbol call.
28413 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28414 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28415 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28416 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28417 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28418 Remove macro.
28419 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28420 Define as compat symbol.
28421
28422 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28423
28424 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28425 * sysdeps/unix/sysv/linux/alpha/Makefile
28426 [$(subdir) = csu] (sysdep_routines): Remove rule.
28427
28428 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28429
28430 * sysdeps/generic/libm-alias-double.h: New file.
28431 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28432 * sysdeps/generic/math-type-macros-double.h: Include
28433 <libm-alias-double.h>.
28434 [declare_mgen_alias] (declare_mgen_alias): Define to use
28435 libm_alias_double.
28436 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28437 (M_LIBM_NEED_COMPAT): Remove macro.
28438 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28439 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28440 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28441 code.
28442 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28443 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28444 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28445 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28446 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28447 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28448 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28449 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28450 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28451 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28452 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28453 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28454 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28455 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28456 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28457 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28458 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28459 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28460 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28461 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28462 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28463 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28464 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28465 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28466 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28467 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28468 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28469 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28470 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28471 macro.
28472 (declare_mgen_alias): New macro.
28473 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28474 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28476 (M_LIBM_NEED_COMPAT): Remove macro.
28477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28478 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28479 <first-versions.h>.
28480 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28481 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28482
28483 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28484
28485 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28486 (declare_mgen_alias_2): Remove.
28487 * sysdeps/generic/math-type-macros-double.h
28488 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28489 Likewise.
28490 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28491 alias.
28492 (ldexp): Define with declare_mgen_alias.
28493 (scalbn): Likewise.
28494
28495 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28496
28497 * grp/initgroups.c: Include config.h.
28498 (DEFAULT_CONFIG): New macro.
28499 (internal_getgrouplist): Use DEFAULT_CONFIG.
28500 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28501 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28502 (DEFAULT_DEFCONFIG): New macro.
28503 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28504 * nss/grp-lookup.c: Include config.h
28505 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28506 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28507 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28508 * manual/nss.texi: Update default values section.
28509
28510 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28511
28512 [BZ #21967]
28513 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28514 New.
28515 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28516 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28517 Handle MathVec_Prefer_No_AVX512.
28518 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28519 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28520 is set.
28521
28522 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28523
28524 * posix/sched_primax.c (__sched_get_priority_max): Add
28525 libc_hidden_def.
28526 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28527 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28528 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28529 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28530 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28531 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28532 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28533 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28534 Add aliases.
28535
28536 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28537
28538 * sysdeps/generic/libm-alias-float.h: New file.
28539 * sysdeps/generic/math-type-macros-float.h: Include
28540 <libm-alias-float.h>.
28541 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28542
28543 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28544
28545 [BZ #22093]
28546 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28547 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28548 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28549 (HWCAP_IMPORTANT): Likewise.
28550 (HWCAP_X86_64): New enum.
28551 (HWCAP_X86_AVX512_1): Updated.
28552 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28553 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28554 (modules-names): Add x86_64/tst-x86_64mod-1.
28555 (LDFLAGS-tst-x86_64mod-1.so): New.
28556 ($(objpfx)tst-x86_64-1): Likewise.
28557 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28558 (tst-x86_64-1-clean): Likewise.
28559 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28560 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28561
28562 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28563
28564 * po/sv.po: Update translations.
28565 * po/fr.po: Likewise.
28566
28567 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28568
28569 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28570 seconds.
28571 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28572 seconds.
28573 * elf/rtld-Rules: Fix $(error) use.
28574
28575 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28576
28577 [BZ #14925]
28578 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28579 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28580 * localedata/locales/bn_BD: “Bengali” was still used in some
28581 comments. Change it to “Bangla”.
28582
28583 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28584
28585 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28586
28587 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28588
28589 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28590 thunderx2t99p1 to list of cpu names.
28591 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28592 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28593
28594 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28595
28596 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28597 Use strcmp instead of tunable_is_name.
28598
28599 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28600
28601 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28602 (F_GET_RW_HINT): New macro.
28603 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28604 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28605 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28606 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28607 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28608 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28609 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28610 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28611 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28612
28613 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28614 (F_ADD_SEALS): New macro.
28615 [__USE_GNU] (F_GET_SEALS): Likewise.
28616 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28617 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28618 [__USE_GNU] (F_SEAL_GROW): Likewise.
28619 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28620
28621 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28622
28623 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28624 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28625 * posix/glob_internal.h (__glob_pattern_type):
28626 * posix/glob.c (glob):
28627 * posix/glob_pattern_p.c (__glob_pattern_p):
28628 Use them.
28629
28630 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28631 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28632 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28633 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28634 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28636 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28637 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28638 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28639 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28640 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28641 * sysdeps/wordsize-64/glob.c: Likewise.
28642 * sysdeps/wordsize-64/glob64.c: Likewise.
28643 * sysdeps/wordsize-64/globfree.c: Likewise.
28644 * sysdeps/wordsize-64/globfree64.c: Likewise.
28645 * sysdeps/unix/sysv/linux/glob.c: New file.
28646 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28647 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28648 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28649 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28650 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28651 adds !GLOB_NO_OLD_VERSION as an extra condition.
28652 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28653 using relative path instead of absolute one.
28654 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28655 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28656 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28657 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28658 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28659 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28660
28661 [BZ #1062]
28662 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28663 (glob): Use the same scratch buffer for both getlogin_r and
28664 getpwnam_r. Don’t require preallocation of the login name. This
28665 simplifies storage allocation, and corrects the handling of
28666 long login names.
28667
28668 [BZ #1062]
28669 * posix/glob.c (glob): Port recent patches to platforms
28670 lacking getpwnam_r.
28671 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28672 returns an error number rather than setting errno.
28673
28674 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28675 instead of GCC extension.
28676 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28677 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28678 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28679
28680 [BZ #866]
28681 [BZ #1062]
28682 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28683 * posix/bug-glob1.c: Remove file.
28684 * posix/tst-glob_symlinks.c: New file.
28685 * posix/glob.c (__lstat64): New macro.
28686 (is_dir): New function.
28687 (glob, glob_in_dir): Match symlinks even if they are dangling.
28688 (link_stat, link_exists_p): Remove. All uses removed.
28689
28690 [BZ #1062]
28691 [BZ #19971]
28692 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28693 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28694 All uses removed.
28695
28696 [BZ #1062]
28697 CVE-2017-15671
28698 * posix/Makefile (routines): Add globfree, globfree64, and
28699 glob_pattern_p.
28700 * posix/flexmember.h: New file.
28701 * posix/glob_internal.h: Likewise.
28702 * posix/glob_pattern_p.c: Likewise.
28703 * posix/globfree.c: Likewise.
28704 * posix/globfree64.c: Likewise.
28705 * sysdeps/gnu/globfree64.c: Likewise.
28706 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28707 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28708 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28709 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28710 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28711 * sysdeps/wordsize-64/globfree.c: Likewise.
28712 * sysdeps/wordsize-64/globfree64.c: Likewise.
28713 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28714 [NDEBUG): Remove comments.
28715 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28716 (dirent_type): New type. Use uint_fast8_t not
28717 uint8_t, as C99 does not require uint8_t.
28718 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28719 (struct readdir_result): Use dirent_type. Do not define skip_entry
28720 unless it is needed; this saves a byte on platforms lacking d_ino.
28721 (readdir_result_type, readdir_result_skip_entry):
28722 New functions, replacing ...
28723 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28724 these functions, which were removed. This makes the callers
28725 easier to read. All callers changed.
28726 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28727 (size_add_wrapv, glob_use_alloca): New static functions.
28728 (glob, glob_in_dir): Check for size_t overflow in several places,
28729 and fix some size_t checks that were not quite right.
28730 Remove old code using SHELL since Bash no longer
28731 uses this.
28732 (glob, prefix_array): Separate MS code better.
28733 (glob_in_dir): Remove old Amiga and VMS code.
28734 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28735 separate files.
28736 (glob_in_dir): Do not rely on undefined behavior in accessing
28737 struct members beyond their bounds. Use a flexible array member
28738 instead
28739 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28740 0/1. Caller changed.
28741 (glob): Fix memory leaks.
28742 * posix/glob64 (globfree64): Move to separate file.
28743 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28744 (globfree64): Remove hidden alias.
28745 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28746 oldglob.
28747 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28748 separate file.
28749 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28750 define.
28751 Move compat code to separate file.
28752 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28753 separate file.
28754
28755 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28756
28757 * resolv/tst-resolv-qtypes.c (domain): Changed to
28758 "const char domain[] =".
28759
28760 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28761
28762 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28763 version to 3.1.6.
28764
28765 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28766 (TCP_MD5SIG_EXT): Likewise.
28767 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28768 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28769 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28770
28771 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28772
28773 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28774
28775 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28776
28777 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28778
28779 [BZ #22100]
28780 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28781
28782 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28783
28784 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28785 before assuming that the file is empty. Avoid testing buffer content
28786 when nread == 0.
28787
28788 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28789
28790 [BZ #18858]
28791 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28792 Remove define.
28793 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28794 Likewise.
28795 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28796 Likewise.
28797 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28798 Likewise.
28799 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28800 Likewise.
28801 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28802 Likewise.
28803 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28804 Likewise.
28805
28806 2017-09-06 Florian Weimer <fweimer@redhat.com>
28807
28808 * malloc/dynarray_emplace_enlarge.c
28809 (__libc_dynarray_emplace_enlarge): Add missing else.
28810
28811 2017-09-06 Florian Weimer <fweimer@redhat.com>
28812
28813 [BZ #22096]
28814 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28815 case of failure to obtain the global conf object.
28816
28817 2017-09-06 Florian Weimer <fweimer@redhat.com>
28818
28819 [BZ #22095]
28820 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28821 dynarray allocation failure.
28822
28823 2017-09-06 Florian Weimer <fweimer@redhat.com>
28824
28825 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28826 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28827 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28828 New functions.
28829 (response): Call them. Add 'p', '6' flag processing.
28830 (test_reverse): New function.
28831 (test_get2_any): Call it.
28832 (test_no_inet6): Add 'p' test.
28833 (test_inet6): Likewise.
28834
28835 2017-09-06 Florian Weimer <fweimer@redhat.com>
28836
28837 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28838 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28839 the QNAME.
28840 (test_gai): Adjust query names. Add additional tests.
28841 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28842 test_get2. Adjust query names. Add additional tests.
28843 (test_no_inet6): New function, extracted from threadfunc.
28844 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28845 Add additional tests.
28846
28847 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28848
28849 [BZ #22070]
28850 * localedata/unicode-gen/utf8_gen.py: Set the width for
28851 characters with Prepended_Concatenation_Mark property to 1
28852 * localedata/charmaps/UTF-8: Updated using the improved script.
28853
28854 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28855
28856 [BZ #21750]
28857 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28858 use the range notation for all ranges of neighbouring characters
28859 with the same width.
28860
28861 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28862
28863 * sysdeps/generic/math-type-macros-double.h: Include
28864 <math-svid-compat.h>.
28865 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28866 * sysdeps/generic/math-type-macros-float.h: Include
28867 <math-svid-compat.h>.
28868 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28869 * sysdeps/generic/math-type-macros-ldouble.h: Include
28870 <math-svid-compat.h>.
28871 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28872 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28873 condition.
28874 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28875 * math/w_acosf_compat.c: Likewise.
28876 * math/w_acosh_compat.c: Likewise.
28877 * math/w_acoshf_compat.c: Likewise.
28878 * math/w_acoshl_compat.c: Likewise.
28879 * math/w_acosl_compat.c: Likewise.
28880 * math/w_asin_compat.c: Likewise.
28881 * math/w_asinf_compat.c: Likewise.
28882 * math/w_asinl_compat.c: Likewise.
28883 * math/w_atan2_compat.c: Likewise.
28884 * math/w_atan2f_compat.c: Likewise.
28885 * math/w_atan2l_compat.c: Likewise.
28886 * math/w_atanh_compat.c: Likewise.
28887 * math/w_atanhf_compat.c: Likewise.
28888 * math/w_atanhl_compat.c: Likewise.
28889 * math/w_cosh_compat.c: Likewise.
28890 * math/w_coshf_compat.c: Likewise.
28891 * math/w_coshl_compat.c: Likewise.
28892 * math/w_exp10_compat.c: Likewise.
28893 * math/w_exp10f_compat.c: Likewise.
28894 * math/w_exp10l_compat.c: Likewise.
28895 * math/w_exp2_compat.c: Likewise.
28896 * math/w_exp2f_compat.c: Likewise.
28897 * math/w_exp2l_compat.c: Likewise.
28898 * math/w_fmod_compat.c: Likewise.
28899 * math/w_fmodf_compat.c: Likewise.
28900 * math/w_fmodl_compat.c: Likewise.
28901 * math/w_hypot_compat.c: Likewise.
28902 * math/w_hypotf_compat.c: Likewise.
28903 * math/w_hypotl_compat.c: Likewise.
28904 * math/w_j0_compat.c: Likewise.
28905 * math/w_j0f_compat.c: Likewise.
28906 * math/w_j0l_compat.c: Likewise.
28907 * math/w_j1_compat.c: Likewise.
28908 * math/w_j1f_compat.c: Likewise.
28909 * math/w_j1l_compat.c: Likewise.
28910 * math/w_jn_compat.c: Likewise.
28911 * math/w_jnf_compat.c: Likewise.
28912 * math/w_jnl_compat.c: Likewise.
28913 * math/w_lgamma_r_compat.c: Likewise.
28914 * math/w_lgammaf_r_compat.c: Likewise.
28915 * math/w_lgammal_r_compat.c: Likewise.
28916 * math/w_log10_compat.c: Likewise.
28917 * math/w_log10f_compat.c: Likewise.
28918 * math/w_log10l_compat.c: Likewise.
28919 * math/w_log2_compat.c: Likewise.
28920 * math/w_log2f_compat.c: Likewise.
28921 * math/w_log2l_compat.c: Likewise.
28922 * math/w_log_compat.c: Likewise.
28923 * math/w_logf_compat.c: Likewise.
28924 * math/w_logl_compat.c: Likewise.
28925 * math/w_pow_compat.c: Likewise.
28926 * math/w_powf_compat.c: Likewise.
28927 * math/w_powl_compat.c: Likewise.
28928 * math/w_remainder_compat.c: Likewise.
28929 * math/w_remainderf_compat.c: Likewise.
28930 * math/w_remainderl_compat.c: Likewise.
28931 * math/w_sinh_compat.c: Likewise.
28932 * math/w_sinhf_compat.c: Likewise.
28933 * math/w_sinhl_compat.c: Likewise.
28934 * math/w_sqrt_compat.c: Likewise.
28935 * math/w_sqrtf_compat.c: Likewise.
28936 * math/w_sqrtl_compat.c: Likewise.
28937 * math/w_tgamma_compat.c: Likewise.
28938 * math/w_tgammaf_compat.c: Likewise.
28939 * math/w_tgammal_compat.c: Likewise.
28940 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28941 [LIBM_SVID_COMPAT].
28942 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28943 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28944 [LIBM_SVID_COMPAT].
28945 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28946 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28947 [LIBM_SVID_COMPAT].
28948 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28949 * sysdeps/i386/fpu/w_sqrt.c: New file.
28950 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28951 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28952 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28953 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28954 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28955 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28956 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28957 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28958 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28959 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28960 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28961 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28962 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28963 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28964 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28965 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28966 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28967 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28968 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28969 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28970 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28971 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28972 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28973 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28974 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28975 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28976 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28977 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28978 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28979 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28980 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28981 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28982 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28983 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28984 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28985 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28986 * sysdeps/ia64/fpu/w_log.c: Likewise.
28987 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28988 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28989 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28990 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28991 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28992 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28993 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28994 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28995 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28996 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28997 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28998 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28999 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29000 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29001 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29002 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29003 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29004 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29005 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29006 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29007 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29008 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29009 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29010 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29011 [LIBM_SVID_COMPAT].
29012 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29013 * sysdeps/ieee754/k_standard.c: Likewise.
29014 * sysdeps/ieee754/k_standardf.c: Likewise.
29015 * sysdeps/ieee754/k_standardl.c: Likewise.
29016 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29017 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29018 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29019 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29020 long_double_symbol call on [LIBM_SVID_COMPAT].
29021 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29022 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29023 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29024 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29025 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29026 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29027 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29028 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29029 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29030 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29031 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29032 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29033 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29034 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29035 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29036 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29037 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29038 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29039 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29040 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29041 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29042 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29043
29044 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29045
29046 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29047 * malloc/tst-mallocstate.c: Convert from test-skeleton
29048 to test-driver. Ifdef code using TEST_COMPAT macro.
29049 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29050 * math/test-matherr.c: Likewise.
29051
29052 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29053
29054 [BZ #22086]
29055 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29056 comparing word with byte-swapped constant.
29057
29058 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29059
29060 [BZ #20498]
29061 * locale/iso-639.def: add Miskito.
29062 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29063 * localedata/locales/miq_NI: New file.
29064
29065 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29066
29067 [BZ #18822]
29068 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29069 (__mkdir): Likewise.
29070 * io/chmod.c (__chmod): Add libc_hidden_def.
29071 * io/mkdir.c (__mkdir): Likewise.
29072 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29073 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29074 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29075 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29076
29077 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29078
29079 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29080 version to 4.13.
29081
29082 [BZ #22082]
29083 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29084 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29085
29086 2017-09-04 Florian Weimer <fweimer@redhat.com>
29087
29088 * math/math.h: Issue warning if log is defined.
29089
29090 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29091
29092 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29093 kernel version to 4.13.
29094
29095 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29096
29097 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29098 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29099 parameter.
29100 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29101 just <bits/types.h>.
29102 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29103 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29104 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29105 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29106 * misc/preadv2.c: Include <errno.h>.
29107 * misc/preadv64v2.c: Include <errno.h>.
29108 * misc/pwritev2.c: Include <errno.h>.
29109 * misc/pwritev64v2.c: Include <errno.h>.
29110 * sysdeps/posix/preadv2.c: Include <errno.h>.
29111 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29112 Fix <unistd.h> inclusion.
29113 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29114 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29115 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29116 __strtoul_internal): New functions.
29117 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29118 * sysdeps/posix/system.c: Include <sigsetops.h>.
29119 * sysdeps/mach/hurd/i386/Makefile
29120 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29121 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29122 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29123 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29124 __feraiseexcept_renamed to feraiseexcept instead of
29125 __GI_feraiseexcept.
29126 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29127 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29128 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29129 RWF_NOWAIT): Define to 0 if undefined already.
29130 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29131 boils down to 0.
29132 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29133 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29134
29135 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29136
29137 * manual/math.texi (pow10): Do not document.
29138 (pow10f): Likewise.
29139 (pow10l): Likewise.
29140 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29141 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29142 * math/libm-test-exp10.inc (pow10_test): Remove.
29143 (do_test): Do not call pow10.
29144 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29145 [NO_LONG_DOUBLE] (pow10l): Likewise.
29146 * math/w_exp10f_compat.c (pow10f): Likewise.
29147 * math/w_exp10l_compat.c (pow10l): Likewise.
29148 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29149 (pow10): Make into compat symbol.
29150 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29151 (pow10f): Make into compat symbol.
29152 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29153 (pow10l): Make into compat symbol.
29154 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29155 pow10.
29156 (CFLAGS-nldbl-pow10.c): Remove variable..
29157 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29158 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29159 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29160 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29161 Undefine and redefine.
29162 (pow10l): Make into compat symbol.
29163 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29164 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29165 * sysdeps/arm/libm-test-ulps: Likewise.
29166 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29167 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29168 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29169 * sysdeps/microblaze/libm-test-ulps: Likewise.
29170 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29171 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29172 * sysdeps/nios2/libm-test-ulps: Likewise.
29173 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29174 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29175 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29176 * sysdeps/sh/libm-test-ulps: Likewise.
29177 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29178 * sysdeps/tile/libm-test-ulps: Likewise.
29179 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29180
29181 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29182
29183 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29184
29185 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29186
29187 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29188 "../ChangeLog.old/ChangeLog.8".
29189 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29190 "../ChangeLog.old/ChangeLog.14".
29191
29192 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29193
29194 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29195 Threads Library.
29196
29197 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29198
29199 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29200
29201 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29202
29203 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29204 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29205
29206 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29207
29208 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29209 32 atexit handlers.
29210
29211 2017-09-01 Zack Weinberg <zackw@panix.com>
29212
29213 * math/math.h (HUGE_VAL): Improve commentary.
29214
29215 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29216 Andreas Schwab <schwab@suse.de>
29217
29218 [BZ #21530]
29219 * include/stdio.h (__gen_tempfd): New function.
29220 * stdio-common/Makefile (routines): Add gentempfd.
29221 * stdio-common/gentempfd.c: New file.
29222 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29223 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29224 unnamed file first.
29225
29226 2017-09-01 Florian Weimer <fweimer@redhat.com>
29227
29228 [BZ #21915]
29229 [BZ #21922]
29230 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29231 result to determine success or failure, not the errno value.
29232 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29233 (tst-nss-files-hosts-erange): Link with -ldl.
29234 * nss/tst-nss-files-hosts-erange.c: New file.
29235 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29236 (do_test): Add NO_DATA tests.
29237 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29238 (do_test): Call it.
29239
29240 2017-09-01 Florian Weimer <fweimer@redhat.com>
29241
29242 [BZ #21922]
29243 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29244 coming from gethostbyname2_r.
29245
29246 2017-09-01 Florian Weimer <fweimer@redhat.com>
29247
29248 * support/namespace.h (struct support_chroot_configuration): Add
29249 hosts, host_conf.
29250 (struct support_chroot): Add path_hosts, path_host_conf.
29251 * support/support_chroot.c (write_file): New function.
29252 (support_chroot_create): Call it to process /etc/resolv.conf,
29253 /etc/hosts, /etc/host.conf.
29254 (support_chroot_free): Update.
29255
29256 2017-09-01 Florian Weimer <fweimer@redhat.com>
29257
29258 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29259 status indicates it is set.
29260
29261 2017-09-01 Florian Weimer <fweimer@redhat.com>
29262
29263 [BZ #20532]
29264 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29265 function lookup failures more reliable.
29266
29267 2017-09-01 Florian Weimer <fweimer@redhat.com>
29268
29269 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29270 (getcanonname): Likewise.
29271 (gaih_inet): Likewise.
29272
29273 2017-09-01 Florian Weimer <fweimer@redhat.com>
29274
29275 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29276 (getcanonname): Likewise.
29277 (gaih_inet): Likewise.
29278
29279 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29280 Richard Henderson <rth@twiddle.net>
29281
29282 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29283 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29284 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29285 (IREG_SIZE, OREG_SIZE): New macros.
29286 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29287 (IREG_SIZE, OREG_SIZE): New macros.
29288 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29289 (IREG_SIZE): New macro.
29290 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29291 (IREG_SIZE): New macro.
29292 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29293 New includes.
29294 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29295 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29296 (__CONCATX): Handle exceptions correctly on large values that may
29297 set FE_INVALID.
29298 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29299 Initialize if not already set.
29300 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29301
29302 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29303
29304 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29305 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29306 Likewise.
29307 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29308 Likewise.
29309 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29310 Likewise.
29311 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29312 Likewise.
29313 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29314 Likewise.
29315 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29316 Likewise.
29317 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29318 Likewise.
29319 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29320 (NO_CANCELLATION): Likewise.
29321 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29322 Likewise.
29323 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29324 Likewise.
29325 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29326 Likewise.
29327 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29328 (NO_CANCELLATION): Likewise.
29329 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29330 (NO_CANCELLATION): Likewise.
29331 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29332 Likewise
29333 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29334 Likewise.
29335 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29336 Likewise.
29337 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29338 Likewise.
29339 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29340 hidden prototype.
29341 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29342 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29343
29344 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29345
29346 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29347 in resolver call.
29348
29349 2017-08-31 Florian Weimer <fweimer@redhat.com>
29350
29351 * include/libc-symbols.h (internal_function): Remove.
29352
29353 2017-08-31 Florian Weimer <fweimer@redhat.com>
29354
29355 * stdlib/fmtmsg.c (internal_addseverity): Remove
29356 internal_function.
29357
29358 2017-08-31 Florian Weimer <fweimer@redhat.com>
29359
29360 * stdio-common/printf_fp.c (group_number): Remove
29361 internal_function.
29362 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29363
29364 2017-08-31 Florian Weimer <fweimer@redhat.com>
29365
29366 * posix/fnmatch.c (internal_function): Remove definition.
29367 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29368 * posix/regcomp.c (peek_token, init_word_char)
29369 (duplicate_node_closure, fetch_token, peek_token)
29370 (peek_token_bracket, build_range_exp, build_collating_symbol):
29371 Likewise.
29372 * posix/regex_internal.c (re_string_construct_common)
29373 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29374 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29375 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29376 (re_string_translate_buffer, re_string_reconstruct)
29377 (re_string_peek_byte_case, re_string_fetch_byte_case)
29378 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29379 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29380 (re_node_set_add_intersect, re_node_set_init_union)
29381 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29382 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29383 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29384 (re_acquire_state_context): Likewise.
29385 * posix/regex_internal.h (internal_function): Remove definition.
29386 (re_string_realloc_buffers, build_wcs_buffer)
29387 (build_wcs_upper_buffer, build_upper_buffer)
29388 (re_string_translate_buffer, re_string_context_at)
29389 (re_string_char_size_at, re_string_wchar_at)
29390 (re_string_elem_size_at): Likewise.
29391 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29392 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29393 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29394 (re_search_internal, re_search_2_stub, re_search_stub)
29395 (re_copy_regs, prune_impossible_nodes, check_matching)
29396 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29397 (free_fail_stack_return, sift_states_iter_mb)
29398 (sift_states_backward, build_sifted_states)
29399 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29400 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29401 (check_subexp_limits, sift_states_bkref, merge_state_array)
29402 (find_recover_state, transit_state, merge_state_with_log)
29403 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29404 (transit_state_mb, transit_state_bkref, get_subexp)
29405 (get_subexp_sub, find_subexp_node, check_arrival)
29406 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29407 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29408 (check_node_accept_bytes, find_collation_sequence_value)
29409 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29410 (acquire_init_state_context, check_halt_node_context)
29411 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29412 (sub_epsilon_src_nodes): Likewise.
29413 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29414 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29415 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29416 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29417 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29418 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29419 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29420 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29421 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29422 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29423 (PREADV): Likewise.
29424 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29425 (PREADV): Likewise.
29426 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29427 (PWRITEV): Likewise.
29428 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29429 (PWRITEV): Likewise.
29430 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29431 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29432
29433 2017-08-31 Florian Weimer <fweimer@redhat.com>
29434
29435 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29436 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29437 Remove internal_function.
29438 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29439 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29440 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29441 (__deallocate_stack, __libc_pthread_init)
29442 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29443 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29444 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29445 Likewise.
29446 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29447 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29448 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29449 Likewise.
29450 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29451 (__pthread_mutex_unlock_usercnt): Likewise.
29452
29453 2017-08-31 Florian Weimer <fweimer@redhat.com>
29454
29455 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29456 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29457 (fts_safe_changedir): Remove internal_function.
29458 * io/ftw.c (internal_function): Remove definition.
29459 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29460
29461 2017-08-31 Florian Weimer <fweimer@redhat.com>
29462
29463 * inet/deadline.c (__deadline_current_time)
29464 (__deadline_from_timeval, __deadline_to_ms): Remove
29465 internal_function.
29466 * inet/getnameinfo.c (nrl_domainname): Likewise.
29467 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29468 * inet/inet6_option.c (add_pad): Likewise.
29469 * inet/net-internal.h (__deadline_current_time)
29470 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29471 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29472 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29473 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29474
29475 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29476
29477 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29478 include <bits/nan.h>.
29479 * math/Makefile (headers): Remove bits/nan.h.
29480 * bits/nan.h: Remove.
29481 * sysdeps/ieee754/bits/nan.h: Likewise.
29482 * sysdeps/mips/bits/nan.h: Likewise.
29483
29484 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29485 not include <bits/inf.h>.
29486 * math/Makefile (headers): Remove bits/inf.h.
29487 * bits/inf.h: Remove.
29488 * sysdeps/ieee754/bits/inf.h: Likewise.
29489
29490 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29491 bits/huge_vall.h or bits/huge_val_flt128.h.
29492 (HUGE_VAL): Define directly here.
29493 [__USE_ISOC99] (HUGE_VALF): Likewise.
29494 [__USE_ISOC99] (HUGE_VALL): Likewise.
29495 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29496 (HUGE_VAL_F128): Likewise.
29497 * math/Makefile (headers): Remove bits/huge_val.h,
29498 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29499 * bits/huge_val.h: Remove.
29500 * bits/huge_val_flt128.h: Likewise.
29501 * bits/huge_valf.h: Likewise.
29502 * bits/huge_vall.h: Likewise.
29503 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29504 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29505 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29506 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29507 * sysdeps/sh/bits/huge_val.h: Likewise.
29508 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29509 * sysdeps/x86/bits/huge_vall.h: Likewise.
29510
29511 2017-08-31 Florian Weimer <fweimer@redhat.com>
29512
29513 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29514 internal_function.
29515 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29516 Likewise.
29517 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29518 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29519 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29520 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29521 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29522 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29523 * elf/dl-libc.c (dlerror_run): Likewise.
29524 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29525 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29526 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29527 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29528 Likewise.
29529 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29530 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29531 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29532 * elf/dl-profile.c (_dl_start_profile): Likewise.
29533 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29534 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29535 Likewise.
29536 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29537 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29538 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29539 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29540 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29541 (_dl_allocate_tls_storage): Likewise.
29542 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29543 (_dl_check_all_versions): Likewise.
29544 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29545 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29546 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29547 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29548 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29549 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29550 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29551 internal_function from __dl_start.
29552 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29553 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29554 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29555 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29556 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29557 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29558 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29559 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29560 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29561 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29562 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29563 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29564 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29565 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29566 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29567 Likewise.
29568 (struct rtld_global_ro): Remove internal_function from the
29569 _dl_lookup_symbol_x member.
29570 (_dl_symbol_value): Remove. No longer defined anywhere.
29571 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29572 internal_function.
29573 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29574 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29575 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29576 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29577 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29578 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29579 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29580 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29581 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29582 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29583 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29584 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29585
29586 2017-08-31 Florian Weimer <fweimer@redhat.com>
29587
29588 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29589 Remove internal_function.
29590 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29591 Likewise.
29592 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29593 Likewise.
29594
29595 2017-08-31 Florian Weimer <fweimer@redhat.com>
29596
29597 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29598 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29599 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29600
29601 2017-08-31 Florian Weimer <fweimer@redhat.com>
29602
29603 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29604 (__gai_enqueue_request): Remove internal_function.
29605 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29606 (__gai_remove_request, __gai_notify, __gai_notify_only)
29607 (__gai_sigqueue): Likewise.
29608 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29609 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29610 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29611 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29612 Likewise.
29613
29614 2017-08-31 Florian Weimer <fweimer@redhat.com>
29615
29616 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29617 * include/dirent.h (__opendirat, __getdents, __getdents64)
29618 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29619 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29620 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29621 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29622 Likewise.
29623 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29624
29625 2017-08-31 Florian Weimer <fweimer@redhat.com>
29626
29627 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29628 internal_function.
29629 (GETCWD_RETURN_TYPE): Likewise.
29630
29631 2017-08-31 Florian Weimer <fweimer@redhat.com>
29632
29633 * include/time.h (__tz_compute, __strptime_internal): Remove
29634 internal_function.
29635 * time/strptime_l.c (__strptime_internal): Likewise.
29636 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29637
29638 2017-08-31 Florian Weimer <fweimer@redhat.com>
29639
29640 * iconv/gconv.c (__gconv): Remove internal_function.
29641 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29642 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29643 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29644 (__gconv_release_cache): Likewise.
29645 * iconv/gconv_close.c (__gconv_close): Likewise.
29646 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29647 (read_conf_file, __gconv_get_path): Likewise.
29648 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29649 (__gconv_release_step, gen_steps, increment_counter)
29650 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29651 (__gconv_close_transform, free_modules_db): Likewise.
29652 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29653 Likewise.
29654 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29655 (__gconv_find_transform, __gconv_lookup_cache)
29656 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29657 (__gconv_close_transform, __gconv_release_cache)
29658 (__gconv_loaded_object, __gconv_release_shlib)
29659 (__gconv_compare_alias): Likewise.
29660 * iconv/gconv_open.c (__gconv_open): Likewise.
29661 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29662 * iconv/iconvconfig.c (add_module): Likewise.
29663 * intl/dcigettext.c (plural_lookup, guess_category_value)
29664 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29665 * intl/eval-plural.h (plural_eval): Likewise.
29666 * intl/finddomain.c (_nl_find_domain): Likewise.
29667 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29668 (_nl_load_domain, _nl_find_msg): Likewise.
29669 (internal_function): Remove definition.
29670 * intl/loadinfo.h (internal_function): Likewise.
29671 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29672 internal_function.
29673 * intl/localealias.c (internal_function): Remove definition.
29674 (read_alias_file): Remove internal_function.
29675 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29676 * intl/plural-exp.h (internal_function): Remove definition.
29677 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29678 internal_function.
29679 * intl/plural.c: Regenerate.
29680 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29681 * locale/coll-lookup.c (__collidx_table_lookup)
29682 (__collseq_table_lookup): Likewise.
29683 * locale/coll-lookup.h (__collidx_table_lookup)
29684 (__collseq_table_lookup): Likewise.
29685 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29686 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29687 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29688 (_nl_unload_locale): Likewise.
29689 * locale/localeinfo.h (struct __locale_data): Remove
29690 internal_function from cleanup member.
29691 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29692 (_nl_remove_locale, _nl_load_locale_from_archive)
29693 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29694 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29695 (_nl_cleanup_time): Remove internal_function.
29696 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29697 (_nl_parse_alt_digit): Likewise.
29698 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29699 (_nl_select_era_entry): Likewise.
29700 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29701 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29702 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29703 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29704 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29705
29706 2017-08-31 Florian Weimer <fweimer@redhat.com>
29707
29708 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29709 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29710 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29711 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29712 Likewise.
29713 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29714 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29715 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29716 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29717 Likewise.
29718 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29719
29720 2017-08-31 Florian Weimer <fweimer@redhat.com>
29721
29722 * misc/getttyent.c (skip, value): Remove internal_function.
29723 * misc/syslog.c (openlog_internal): Likewise.
29724 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29725
29726 2017-08-31 Florian Weimer <fweimer@redhat.com>
29727
29728 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29729 (__nss_rewrite_field): Remove internal_function.
29730 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29731 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29732 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29733 * nss/nsswitch.c (nss_parse_file, nss_getline)
29734 (nss_parse_service_list, nss_new_service): Likewise.
29735 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29736 * nss/valid_field.c (__nss_valid_field): Likewise.
29737 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29738
29739 2017-08-31 Florian Weimer <fweimer@redhat.com>
29740
29741 * malloc/arena.c (__malloc_fork_lock_parent)
29742 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29743 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29744 internal_function from defintions.
29745 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29746 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29747 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29748 internal_function from declarations.
29749 * malloc/malloc.c (internal_function): Do not define.
29750 (mem2mem_check): Remove internal_function from declaration.
29751 (munmap_chunk, mremap_chunk): Remove internal_function.
29752 * malloc/mtrace.c (tr_where): Likewise.
29753
29754 2017-08-31 Florian Weimer <fweimer@redhat.com>
29755
29756 * include/rpc/pmap_clnt.h (__get_socket): Remove
29757 internal_function.
29758 * sunrpc/auth_des.c (synchronize): Likewise.
29759 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29760 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29761 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29762 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29763 (key_call): Likewise.
29764 * sunrpc/pm_getport.c (__get_socket): Likewise.
29765 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29766 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29767 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29768 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29769 (invalidate): Likewise.
29770 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29771 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29772 (set_input_fragment, get_input_bytes): Likewise.
29773
29774 2017-08-31 Florian Weimer <fweimer@redhat.com>
29775
29776 * malloc/malloc.c (_int_free): Remove locked variable and related
29777 asserts.
29778
29779 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29780
29781 [BZ #22051]
29782 * Makerules (build-module-helper-objlist): Filter out
29783 $(elf-objpfx)sofini.os.
29784 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29785 needed.
29786
29787 2017-08-31 Florian Weimer <fweimer@redhat.com>
29788
29789 * libio/fcloseall.c: Assume weak_alias is defined.
29790 * libio/feof.c: Likewise.
29791 * libio/fileno.c: Likewise.
29792 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29793 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29794 definitions.
29795 (_IO_file_open): Call __open directly.
29796 (_IO_new_file_sync): Assume ESPIPE is defined.
29797 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29798 (_IO_new_file_write): Call __write directly.
29799 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29800 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29801 * libio/genops.c: Assume _LIBC is defined.
29802 (save_for_backup): Remove internal_function.
29803 * libio/getc.c: Assume weak_alias is defined.
29804 * libio/getwc.c: Likewise.
29805 * libio/iofclose.c: Assume _LIBC is defined.
29806 * libio/iofdopen.c: Likewise.
29807 (_IO_fcntl): Remove macro definition.
29808 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29809 Call __fcntl directly.
29810 * libio/iofflush.c: Assume weak_alias is defined.
29811 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29812 defined.
29813 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29814 * libio/iofgets.c: Likewise.
29815 * libio/iofopen.c: Assume _LIBC is defined.
29816 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29817 * libio/iofputs.c: Assume weak_alias is defined.
29818 * libio/iofread.c: Likewise.
29819 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29820 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29821 * libio/ioftell.c: Assume weak_alias is defined.
29822 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29823 * libio/iofwide.c: Assume _LIBC is defined.
29824 (_IO_fwide): Drop SHARED conditional because it is implied by
29825 SHLIB_COMPAT.
29826 * libio/iofwrite.c: Assume weak_alias is defined.
29827 * libio/iogetdelim.c: Likewise.
29828 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29829 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29830 (_IO_getwline): Call __wmemcpy directly.
29831 * libio/iopopen.c: Assume _LIBC is defined.
29832 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29833 (_IO_close): Remove macro definitions.
29834 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29835 _exit directly.
29836 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29837 directly.
29838 * libio/ioputs.c: Assume weak_alias is defined.
29839 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29840 * libio/iosetbuffer.c: Assume weak_alias is defined.
29841 * libio/iosetvbuf.c: Likewise.
29842 * libio/ioungetc.c: Likewise.
29843 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29844 libc_hidden_def, libc_hidden_weak, NULL are defined.
29845 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29846 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29847 defined.
29848 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29849 definitions.
29850 (_IO_old_file_init_internal): Drop SHARED conditional because it
29851 is implied by SHLIB_COMPAT.
29852 (_IO_old_file_fopen): Call __open directly.
29853 (_IO_old_file_sync): Assume ESPIPE is defined.
29854 (_IO_old_file_write): Call __write directly.
29855 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29856 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29857 Call __fcntl directly.
29858 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29859 (_IO_old_fgetpos): Assume EIO is defined.
29860 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29861 (_IO_old_fgetpos64): Assume EIO is defined.
29862 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29863 (_IO_old_fsetpos): Assume EIO is defined.
29864 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29865 (_IO_old_fsetpos64): Assume EIO is defined.
29866 * libio/oldiopopen.c: Assume _LIBC is defined.
29867 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29868 (_IO_close): Remove macro definitions.
29869 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29870 directly.
29871 (_IO_old_proc_close): Call __close, __waitpid directly.
29872 * libio/put.c: Assume weak_alias is defined.
29873 * libio/stdfiles.c: Assume _LIBC is defined.
29874 * libio/stdio.c: Likewise.
29875 * libio/wfileops.c: Likewise.
29876 (_IO_wfile_sync): Assume ESPIPE is defined.
29877 * libio/wgenops.c: Assume _LIBC is defined.
29878 (save_for_wbackup): Remove internal_function.
29879
29880 2017-08-31 Florian Weimer <fweimer@redhat.com>
29881
29882 * malloc/malloc.c (top_check): Change return type to void. Remove
29883 internal_function.
29884 * malloc/hooks.c (top_check): Likewise.
29885 (malloc_check, realloc_check, memalign_check): Adjust.
29886
29887 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29888
29889 [BZ #21457]
29890 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29891 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29892 sigcontext and namespace requirements.
29893 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29894 * sysdeps/m68k/sys/ucontext.h: Likewise.
29895 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29896 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29897 <bits/sigcontext.h>.
29898 (__ctx): Define earlier.
29899 (mcontext_t): Define structure contents rather than using struct
29900 sigcontext.
29901 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29902 __glibc_reserved1 instead of __reserved.
29903 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29904 <bits/sigcontext.h>.
29905 (__ctx): Define earlier.
29906 (mcontext_t): Define structure contents rather than using struct
29907 sigcontext.
29908 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29909 mcontext_t instead of struct sigcontext.
29910 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29911 <bits/sigcontext.h>.
29912 (__ctx): Define earlier.
29913 (mcontext_t): Define structure contents rather than using struct
29914 sigcontext.
29915 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29916 <bits/sigcontext.h>.
29917 (__ctx): Define earlier.
29918 (mcontext_t): Define structure contents rather than using struct
29919 sigcontext.
29920 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29921 mcontext_t instead of struct sigcontext.
29922 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29923 mcontext_t instead of struct sigcontext.
29924 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29925 <bits/sigcontext.h>.
29926 (__ctx): New macro.
29927 (struct __ia64_fpreg_mcontext): New type.
29928 (mcontext_t): Define structure contents rather than using struct
29929 sigcontext.
29930 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29931 (uc_sigmask): Define using __ctx.
29932 (uc_stack): Likewise.
29933 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29934 <bits/sigcontext.h>.
29935 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29936 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29937 <bits/sigcontext.h>.
29938 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29939 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29940 <bits/sigcontext.h>.
29941 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29942 <bits/sigcontext.h>.
29943 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29944 <bits/sigcontext.h>.
29945 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29946 <bits/sigcontext.h>.
29947 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29948 <bits/sigcontext.h>.
29949 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29950 <bits/sigcontext.h>.
29951 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29952 <bits/sigcontext.h>.
29953 (__ctx): Define earlier.
29954 (mcontext_t): Define structure contents rather than using struct
29955 sigcontext.
29956 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29957 <bits/sigcontext.h>. Include <bits/types.h>.
29958 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29959 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29960 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29961 (test-xfail-UNIX98/signal.h/conform): Likewise.
29962 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29963 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29964 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29965 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29966 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29967 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29968 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29969 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29970 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29971
29972 2017-08-30 Florian Weimer <fweimer@redhat.com>
29973
29974 * malloc/dynarray_emplace_enlarge.c
29975 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29976 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29977 * malloc/tst-dynarray.c (test_long_overflow): New function.
29978 (do_test): Call it.
29979
29980 2017-08-30 Florian Weimer <fweimer@redhat.com>
29981
29982 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29983 (set_arena_corrupt): Remove definitions.
29984 (mtrim): Do not check for corrupt arena.
29985 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29986 Likewise.
29987
29988 2017-08-30 Florian Weimer <fweimer@redhat.com>
29989
29990 [BZ #21754]
29991 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29992 check_action.
29993 (ptmalloc_init): Do not set or use check_action.
29994 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29995 call to malloc_printerr. Remove return statement.
29996 (free_check): Likewise. Remove arena unlock.
29997 (top_check): Update comment. Adjust call to malloc_printerr.
29998 Remove heap repair code.
29999 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30000 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30001 (sysmalloc): Adjust call to malloc_printerr.
30002 (munmap_chunk, __libc_realloc): Likewise. Remove return
30003 statement.
30004 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30005 Remove errout label and corresponding gotos.
30006 (_int_free): Likewise. Remove arena unlock.
30007 (do_set_mallopt_check): Do not set check_action.
30008 (malloc_printerr): Adjust parameter list. Do not mark arena as
30009 corrupt.
30010 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30011 comment.
30012 * manual/probes.texi (Memory Allocation Probes): Remove
30013 memory_mallopt_check_action.
30014
30015 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30016
30017 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30018 Use pointer to uint64_t instead of long int for sp.
30019
30020 2017-08-30 Florian Weimer <fweimer@redhat.com>
30021
30022 [BZ #21754]
30023 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30024 without printing a backtrace. Do not leak any information in the
30025 error message.
30026 * manual/memory.texi (Heap Consistency Checking): Update.
30027 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30028
30029 2017-08-30 Florian Weimer <fweimer@redhat.com>
30030
30031 Do not scale NPTL tests with available number of CPUs.
30032 * nptl/tst-cond16.c (count): Set to constant value of 8.
30033 * nptl/tst-cond18.c (count): Likewise.
30034
30035 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30036
30037 [BZ #22035]
30038 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30039 Define to take a second argument that is a macro that
30040 concatentates a suffix, not the suffix itself.
30041 (__CONCAT_d): New macro.
30042 (__CONCAT_f): Likewise.
30043 (__CONCAT_l): Likewise.
30044
30045 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30046
30047 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30048 by child.
30049
30050 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30051 Aurelien Jarno <aurelien@aurel32.net>
30052 Maciej W. Rozycki <macro@imgtec.com>
30053
30054 [BZ #21956]
30055 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30056 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30057 `mips16-syscall6' and `mips16-syscall7'.
30058 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30059 (CFLAGS-mips16-syscall7.c): Remove.
30060 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30061 Remove `__mips16_syscall5', `__mips16_syscall6' and
30062 `__mips16_syscall7'.
30063 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30064 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30065 `__mips_syscall_return'.
30066 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30067 (__mips16_syscall1): Likewise.
30068 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30069 (__mips16_syscall2): Likewise.
30070 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30071 (__mips16_syscall3): Likewise.
30072 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30073 (__mips16_syscall4): Likewise.
30074 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30075 Remove.
30076 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30077 Remove.
30078 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30079 Remove.
30080 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30081 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30082 `__mips16_syscall5'. Remove prototype.
30083 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30084 `__mips16_syscall6'. Remove prototype.
30085 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30086 `__mips16_syscall7'. Remove prototype.
30087 (__nomips16, __mips16_syscall_return): Move to...
30088 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30089 (__nomips16, __mips_syscall_return): ... here.
30090 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30091 `__mips16_syscall_return' to `__mips_syscall_return'.
30092 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30093 `internal_syscall##nr'.
30094 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30095 `internal_syscall##nr'.
30096 (FORCE_FRAME_POINTER): Remove.
30097 (__mips_syscall5): New prototype.
30098 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30099 (__mips_syscall6): New prototype.
30100 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30101 (__mips_syscall7): New prototype.
30102 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30103 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30104 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30105 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30106 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30107 (sysdep_routines): Add libc-do-syscall.
30108 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30109 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30110
30111 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30112
30113 [BZ #21672]
30114 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30115 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30116 (advise_stack_range): New function.
30117 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30118 stack non required to advise_stack_range at allocatestack.c
30119
30120 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30121
30122 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30123
30124 2017-08-29 Florian Weimer <fweimer@redhat.com>
30125
30126 [BZ #22026]
30127 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30128 __end_fct. Mangle __end_fct after setting it to NULL.
30129 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30130 (modules-names, modules-names-tests): Add
30131 tst-gconv-init-failure-mod.
30132 (gconv-modules): New target.
30133 (tst-gconv-init-failure-mod.so): Link against libsupport.
30134 (tst-gconv-init-failure): Depend on gconv-modules,
30135 tst-gconv-init-failure-mod.so.
30136 * iconv/tst-gconv-init-failure-mod.c: New file.
30137 * iconv/tst-gconv-init-failure.c: Likewise.
30138 * iconv/test-gconv-modules: Likewise.
30139
30140 2017-08-29 Florian Weimer <fweimer@redhat.com>
30141
30142 [BZ #22025]
30143 * iconv/gconv_db.c (free_derivation): Remove redundant
30144 parentheses.
30145 (gen_steps): Unconditionally mangle __btowc_fct after
30146 initialization.
30147 (increment_counter): Likewise. Do not call init_fct for internal
30148 modules.
30149
30150 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30151
30152 [BZ #22028]
30153 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30154 (_MSUF_): Remove macro.
30155 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30156 Likewise.
30157 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30158 (__REDIRFROM_X): New macro.
30159 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30160 Likewise.
30161 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30162 (__REDIRTO_X): Likewise.
30163 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30164 arguments.
30165 (__MATH_REDIRCALL_2): Likewise.
30166 (__MATH_REDIRCALL_INTERNAL): Likewise.
30167 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30168 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30169 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30170 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30171 * math/test-finite-macros.c: New file.
30172 * math/Makefile (tests): Add test-finite-macros.
30173 (CFLAGS-test-finite-macros.c): New variable.
30174
30175 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30176 Jeff Law <law@redhat.com>
30177
30178 [BZ #22025]
30179 Mangle NULL pointers in iconv/gconv.
30180 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30181 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30182 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30183 is non-NULL before demangling the end_fct. Check for NULL
30184 end_fct after demangling.
30185 (__gconv_release_step): Demangle the end_fct before checking
30186 it for NULL. Remove assert on __shlibc_handle != NULL.
30187 (gen_steps): Don't check btowc_fct for NULL before mangling.
30188 Demangle init_fct before checking for NULL.
30189 (increment_counter): Likewise.
30190 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30191 end_fct for NULL before mangling.
30192 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30193 for NULL.
30194
30195 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30196
30197 [BZ #21971]
30198 * locale/iso-639.def: add Morisyen.
30199
30200 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30201
30202 [BZ #21930]
30203 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30204 (iszero): New C++ implementation that does not use
30205 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30206 signaling nans are enabled, since __builtin_types_compatible_p
30207 is a C-only feature.
30208 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30209 defined, include ieee754_float128.h for access to the union and
30210 member ieee854_float128.ieee.
30211 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30212 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30213 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30214 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30215 options of test-math-zero on powerpc64le.
30216
30217 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30218
30219 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30220 Change double to float.
30221
30222 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30223
30224 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30225 unconditional.
30226 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30227 conditional code; define contents only for [LIBM_SVID_COMPAT].
30228
30229 2017-08-28 Florian Weimer <fweimer@redhat.com>
30230
30231 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30232 (abi-lp64_be-options): Remove.
30233 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30234 (abi-hard-options): Likewise.
30235 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30236 (abi-o32_hard-options, abi-o32_soft_2008-options)
30237 (abi-o32_hard_2008-options, abi-n32_soft-options)
30238 (abi-n32_hard-options, abi-n32_soft_2008-options)
30239 (abi-n32_hard_2008-options, abi-n64_soft-options)
30240 (abi-n64_hard-options, abi-n64_soft_2008-options)
30241 (abi-n64_hard_2008-options): Likewise.
30242 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30243 (abi-64-v1-options, abi-64-v2-options): Likewise.
30244 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30245 (abi-64-options): Likewise.
30246 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30247 (abi-64-options): Likewise.
30248 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30249 (abi-64-options): Likewise.
30250 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30251 (abi-64-options, abi-x32-options): Likewise.
30252
30253 2017-08-28 Florian Weimer <fweimer@redhat.com>
30254
30255 Store supported list of SYS_* system calls in the source tree.
30256 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30257 (bits/syscall.h): Generate from list file.
30258 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30259 [$(subdir) = misc] (tests): Add tst-syscall-list.
30260 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30261 [$(subdir) = misc] (tst-syscall-list-macros.list)
30262 [$(subdir) = misc] (tst-syscall-list-nr.list)
30263 (tst-syscall-list-sys.list): Helper targets for new
30264 tst-syscall-list test.
30265 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30266 tst-syscall-list.sh.
30267 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30268 target. Do not include bits/syscall.d.
30269 [$(subdir) = misc] (generated): Do not update.
30270 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30271 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30272 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30273 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30274
30275 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30276
30277 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30278 (tst-cxa_atexit, tst-on_exit): Likewise.
30279 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30280 tst-cxa_atexit, and tst-on_exit.
30281 * stdlib/tst-atexit-common.c: New file.
30282 * stdlib/tst-atexit.c: New file.
30283 * stdlib/tst-at_quick_exit.c: New file.
30284 * stdlib/tst-cxa_atexit.c: New file.
30285 * stdlib/tst-on_exit.c: New file.
30286
30287 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30288
30289 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30290 * mach/stack_chk_fail_local.c: New file.
30291 * hurd/stack_chk_fail_local.c: New file.
30292 * mach/Machrules ($(interface-library)-routines): Add
30293 stack_chk_fail_local.
30294 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30295 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30296 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30297 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30298 * hurd/Makefile (CFLAGS-hurdstartup.o,
30299 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30300
30301 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30302
30303 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30304 (index_cpu_*, index_arch_*): Removed.
30305
30306 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30307
30308 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30309 Use uint64_t instead of unsigned long.
30310
30311 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30312
30313 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30314 [__HAVE_DISTINCT_FLOAT128].
30315
30316 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30317 of <bits/math-finite.h>.
30318 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30319 inclusion of <bits/math-finite.h>.
30320 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30321 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30322 __NO_LONG_DOUBLE_MATH].
30323 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30324 (__MATH_REDIRCALL_2): Likewise.
30325 (__MATH_REDIRCALL_INTERNAL): Likewise.
30326 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30327 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30328 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30329
30330 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30331 Remove file.
30332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30333 Likewise.
30334 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30335 Likewise.
30336 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30337 Likewise.
30338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30339 Likewise.
30340 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30341 Likewise.
30342 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30343 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30344 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30345 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30346 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30347 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30348 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30349 w_sqrtf_compat-ppc32.
30350
30351 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30352
30353 * math/math.h [defined __cplusplus] (issignaling): In the long
30354 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30355 is not defined. Call __issignaling, otherwise.
30356
30357 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30358
30359 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30360 syscall definitions and replace __builtin_expect with __glibc_likely.
30361 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30362 syscall.
30363 (SYSCALL_CANCELLABLE): Removedefinition
30364 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30365 definition.
30366 (PSEUDO_END): Likewise.
30367 [IS_IN (libpthread)] (CENABLE): Likewise.
30368 [IS_IN (libpthread)] (CDISABLE): Likewise.
30369 [IS_IN (libc)] (CENABLE): Likewise.
30370 [IS_IN (libc)] (CENABLE): Likewise.
30371 [IS_IN (librt)] (CDISABLE): Likewise.
30372 [IS_IN (librt)] (CDISABLE): Likewise.
30373 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30374 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30375 definition.
30376 (PSEUDO_END): Likewise.
30377 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30378 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30379 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30380 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30381 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30382 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30383 (CENABLE): Likewise.
30384 (CDISABLE): Likewise.
30385 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30386 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30387 defintion.
30388 (PSEUDO_END): Likewise.
30389 [IS_IN (libpthread)] (CENABLE): Likewise.
30390 [IS_IN (libpthread)] (CDISABLE): Likewise.
30391 [IS_IN (libc)] (CENABLE): Likewise.
30392 [IS_IN (libc)] (CENABLE): Likewise.
30393 [IS_IN (librt)] (CDISABLE): Likewise.
30394 [IS_IN (librt)] (CDISABLE): Likewise.
30395 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30396 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30397 definition.
30398 (PSEUDO_END): Likewise.
30399 [IS_IN (libpthread)] (CENABLE): Likewise.
30400 [IS_IN (libpthread)] (CDISABLE): Likewise.
30401 [IS_IN (libc)] (CENABLE): Likewise.
30402 [IS_IN (libc)] (CENABLE): Likewise.
30403 [IS_IN (librt)] (CDISABLE): Likewise.
30404 [IS_IN (librt)] (CDISABLE): Likewise.
30405 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30406 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30407 definition.
30408 (PSEUDO_END): Likewise.
30409 [IS_IN (libpthread)] (CENABLE): Likewise.
30410 [IS_IN (libpthread)] (CDISABLE): Likewise.
30411 [IS_IN (libc)] (CENABLE): Likewise.
30412 [IS_IN (libc)] (CENABLE): Likewise.
30413 [IS_IN (librt)] (CDISABLE): Likewise.
30414 [IS_IN (librt)] (CDISABLE): Likewise.
30415 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30416 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30417 definition.
30418 (PSEUDO_END): Likewise.
30419 [IS_IN (libpthread)] (CENABLE): Likewise.
30420 [IS_IN (libpthread)] (CDISABLE): Likewise.
30421 [IS_IN (libc)] (CENABLE): Likewise.
30422 [IS_IN (libc)] (CENABLE): Likewise.
30423 [IS_IN (librt)] (CDISABLE): Likewise.
30424 [IS_IN (librt)] (CDISABLE): Likewise.
30425 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30426 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30427 definition.
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/microblaze/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/mips/mips64/sysdep-cancel.h (PSEUDO):
30447 Remove 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 (SINGLE_THREAD_P): Likewise.
30456 * sysdeps/unix/sysv/linux/mips/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/nios2/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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30477 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30478 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30479 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30480 definition.
30481 (PSEUDO_END): Likewise.
30482 [IS_IN (libpthread)] (CENABLE): Likewise.
30483 [IS_IN (libpthread)] (CDISABLE): Likewise.
30484 [IS_IN (libc)] (CENABLE): Likewise.
30485 [IS_IN (libc)] (CENABLE): Likewise.
30486 [IS_IN (librt)] (CDISABLE): Likewise.
30487 [IS_IN (librt)] (CDISABLE): Likewise.
30488 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30489 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30490 definition.
30491 (PSEUDO_END): Likewise.
30492 [IS_IN (libpthread)] (CENABLE): Likewise.
30493 [IS_IN (libpthread)] (CDISABLE): Likewise.
30494 [IS_IN (libc)] (CENABLE): Likewise.
30495 [IS_IN (libc)] (CENABLE): Likewise.
30496 [IS_IN (librt)] (CDISABLE): Likewise.
30497 [IS_IN (librt)] (CDISABLE): Likewise.
30498 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30499 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30500 definition.
30501 (PSEUDO_END): Likewise.
30502 [IS_IN (libpthread)] (CENABLE): Likewise.
30503 [IS_IN (libpthread)] (CDISABLE): Likewise.
30504 [IS_IN (libc)] (CENABLE): Likewise.
30505 [IS_IN (libc)] (CENABLE): Likewise.
30506 [IS_IN (librt)] (CDISABLE): Likewise.
30507 [IS_IN (librt)] (CDISABLE): Likewise.
30508 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30509 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30510 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30511 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30512 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30513 definition.
30514 (PSEUDO_END): Likewise.
30515 [IS_IN (libpthread)] (CENABLE): Likewise.
30516 [IS_IN (libpthread)] (CDISABLE): Likewise.
30517 [IS_IN (libc)] (CENABLE): Likewise.
30518 [IS_IN (libc)] (CENABLE): Likewise.
30519 [IS_IN (librt)] (CDISABLE): Likewise.
30520 [IS_IN (librt)] (CDISABLE): Likewise.
30521 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30522 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30523 definition.
30524 (PSEUDO_END): Likewise.
30525 [IS_IN (libpthread)] (CENABLE): Likewise.
30526 [IS_IN (libpthread)] (CDISABLE): Likewise.
30527 [IS_IN (libc)] (CENABLE): Likewise.
30528 [IS_IN (libc)] (CENABLE): Likewise.
30529 [IS_IN (librt)] (CDISABLE): Likewise.
30530 [IS_IN (librt)] (CDISABLE): Likewise.
30531 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30532
30533 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30534
30535 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30536
30537 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30538
30539 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30540
30541 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30542
30543 [BZ #21982]
30544 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30545 middle and outer with size_t instead of int. Repleace %d and
30546 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30547 "MAX (outer, nchars - 64)" to support unsigned outer and
30548 nchars. Also exit loop when outer == 0.
30549
30550 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30551
30552 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30553 * include/signal.h (__sigsuspend_nocancel): Likewise.
30554 * include/time.h (__nanosleep_nocancel): Likewise.
30555 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30556 * login/utmp_file.c: Include non cancellable syscall header.
30557 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30558 prototype.
30559
30560 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30561
30562 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30563 .byte sequences with AVX512F instructions.
30564 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30565 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30566 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30567 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30568 Likewise.
30569 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30570 Likewise.
30571
30572 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30573 Steve Ellcey <sellcey@cavium.com>
30574
30575 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30576 Use PTR_REG macro in cmp instruction.
30577
30578 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30579
30580 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30581 Change the return type of the ifunc resolver to match the return
30582 type of the target function.
30583
30584 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30585
30586 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30587 (preadv64): Likewise.
30588 (pwrite64(: Likewise.
30589 (pwritev64): Likewise.
30590
30591 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30592 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30593 (LOAD_ARGS_0): Likewise.
30594 (LOAD_ARGS_1): Likewise.
30595 (LOAD_ARGS_2): Likewise.
30596 (LOAD_ARGS_3): Likewise.
30597 (LOAD_ARGS_4): Likewise.
30598 (LOAD_ARGS_5): Likewise.
30599 (LOAD_ARGS_6): Likewise.
30600 (LOAD_REGS_0): Likewise.
30601 (LOAD_REGS_1): Likewise.
30602 (LOAD_REGS_2): Likewise.
30603 (LOAD_REGS_3): Likewise.
30604 (LOAD_REGS_4): Likewise.
30605 (LOAD_REGS_5): Likewise.
30606 (LOAD_REGS_6): Likewise.
30607 (ASM_ARGS_0): Likewise.
30608 (ASM_ARGS_1): Likewise.
30609 (ASM_ARGS_2): Likewise.
30610 (ASM_ARGS_3): Likewise.
30611 (ASM_ARGS_4): Likewise.
30612 (ASM_ARGS_5): Likewise.
30613 (ASM_ARGS_6): Likewise.
30614 (LOAD_ARGS_TYPES_1): Likewise.
30615 (LOAD_ARGS_TYPES_2): Likewise.
30616 (LOAD_ARGS_TYPES_3): Likewise.
30617 (LOAD_ARGS_TYPES_4): Likewise.
30618 (LOAD_ARGS_TYPES_5): Likewise.
30619 (LOAD_ARGS_TYPES_6): Likewise.
30620 (LOAD_REGS_TYPES_1): Likewise.
30621 (LOAD_REGS_TYPES_2): Likewise.
30622 (LOAD_REGS_TYPES_3): Likewise.
30623 (LOAD_REGS_TYPES_4): Likewise.
30624 (LOAD_REGS_TYPES_5): Likewise.
30625 (LOAD_REGS_TYPES_6): Likewise.
30626 (TYPEFY): New define.
30627 (ARGIFY): Likewise.
30628 (internal_syscall0): Likewise.
30629 (internal_syscall1): Likewise.
30630 (internal_syscall2): Likewise.
30631 (internal_syscall3): Likewise.
30632 (internal_syscall4): Likewise.
30633 (internal_syscall5): Likewise.
30634 (internal_syscall6): Likewise.
30635 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30636 (INTERNAL_SYSCALL_NCS): Remove define.
30637 (internal_syscall1): Add define.
30638
30639 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30640
30641 * math/w_remainder_compat.c: Remove duplicate inclusion of
30642 math-svid-compat.h.
30643 * math/w_remainderf_compat.c: Likewise.
30644 * math/w_remainderl_compat.c: Likewise.
30645
30646 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30647
30648 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30649
30650 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30651
30652 [BZ #21684]
30653 * math/tgmath.h (__floating_type): Simplify definitions.
30654 (__real_integer_type): New macro.
30655 (__complex_integer_type): Likewise.
30656 (__expr_is_real): Likewise.
30657 (__tgmath_real_type_sub): Update comment to describe handling of
30658 complex types.
30659 (__tgmath_complex_type_sub): New macro.
30660 (__tgmath_complex_type): Likewise.
30661 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30662 (__TGMATH_CF128): Use __expr_is_real.
30663 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30664 __expr_is_real.
30665 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30666 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30667 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30668 integer types.
30669
30670 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30671
30672 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30673 macro.
30674 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30675 alias.
30676 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30677 Likewise.
30678
30679 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30680 nanosleep_not_cancel with __nanosleep_nocancel.
30681 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30682 (__nanosleep_nocancel): New macro.
30683 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30684 function.
30685 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30686 macro.
30687 (__nanosleep_nocancel): New prototype.
30688
30689 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30690 pause_not_cancel with __pause_nocancel.
30691 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30692 (__pause_nocancel): New macro.
30693 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30694 macro.
30695 (__pause_nocancel): New prototype.
30696 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30697
30698 2017-08-22 Martin Sebor <msebor@redhat.com>
30699
30700 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30701 to return a pointer to the same type as the target function.
30702
30703 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30704
30705 [BZ #18822]
30706 [BZ #21986]
30707 * include/printf.h (__printf_fphex): Add attribute_hidden.
30708 (__guess_grouping): New prototype.
30709 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30710 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30711 libc_hidden_proto and libc_hidden_def.
30712 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30713 (__vstrfmon_l): Remove the third argument passed to
30714 __guess_grouping.
30715
30716 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30717
30718 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30719 definition for issignaling that does not rely on __MATH_TG,
30720 since __MATH_TG uses __builtin_types_compatible_p, which is only
30721 available in C mode.
30722 (CFLAGS-test-math-issignaling.cc): New variable.
30723 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30724 * math/test-math-issignaling.cc: New test for C++ implementation
30725 of type-generic issignaling.
30726 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30727 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30728 options of test-math-issignaling on powerpc64le.
30729
30730 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30731
30732 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30733 building libc.a.
30734 (hidden_proto): Likewise.
30735 (hidden_tls_proto): Likewise.
30736 (__hidden_proto): Likewise.
30737
30738 2017-08-22 Florian Weimer <fweimer@redhat.com>
30739
30740 math: Statically link tests of internal functionality.
30741 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30742 atest-exp2.
30743 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30744 (gmp-objs): Remove assignment.
30745 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30746
30747 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30748
30749 [BZ #21987]
30750 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30751 and copy to ...
30752 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30753 ... here.
30754 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30755 ... and here.
30756
30757 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30758 variable definitions above inclusion of ../Rules.
30759
30760 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30761
30762 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30763 case calling __builtin_unreachable.
30764
30765 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30766
30767 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30768 __waitpid_nocancel.
30769 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30770 (__waitpid_nocancel): New macro.
30771 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30772 macro.
30773 (__waitpid_nocancel): Replace macro with a function.
30774 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30775 function.
30776
30777 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30778 __fcntl_nocancel.
30779 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30780 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30781
30782 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30783 __writev_nocancel_nostatus.
30784 (write_call_graph): Likewise.
30785 (write_bb_counts): Likewise.
30786 * resolv/herror.c (herror): Likewise.
30787 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30788 macro.
30789 (__writev_nocancel_nostatus): New macro.
30790 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30791 Remove macro.
30792 (__writev_nocancel_nostatus): New function.
30793
30794 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30795
30796 Revert:
30797 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30798
30799 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30800 building libc.a.
30801 (hidden_proto): Likewise.
30802 (hidden_tls_proto): Likewise.
30803 (__hidden_proto): Likewise.
30804
30805 [BZ #21973]
30806 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30807 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30809 Likewise.
30810 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30811 Likewise.
30812 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30813 Likewise.
30814 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30815 Likewise.
30816 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30817 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30818 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30819 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30820 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30821 GLIBC_2.0 sqrtl symbol.
30822
30823 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30824 [__USE_MISC] (_LIB_VERSION): Likewise.
30825 [__USE_MISC] (struct exception): Likewise.
30826 [__USE_MISC] (matherr): Likewise.
30827 [__USE_MISC] (DOMAIN): Likewise.
30828 [__USE_MISC] (SING): Likewise.
30829 [__USE_MISC] (OVERFLOW): Likewise.
30830 [__USE_MISC] (UNDERFLOW): Likewise.
30831 [__USE_MISC] (TLOSS): Likewise.
30832 [__USE_MISC] (PLOSS): Likewise.
30833 [__USE_MISC] (HUGE): Likewise.
30834 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30835 * math/math-svid-compat.h: New file.
30836 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30837 and matherrl.
30838 * include/math.h [!_ISOMAC] (__matherr): Remove.
30839 * manual/arith.texi (FP Exceptions): Do not document matherr.
30840 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30841 (tests-internal): New variable.
30842 (install-lib): Do not add libieee.a.
30843 (non-lib.a): Likewise.
30844 (extra-objs): Do not add libieee.a and ieee-math.o.
30845 (CPPFLAGS-s_lib_version.c): Remove variable.
30846 ($(objpfx)libieee.a): Remove rule.
30847 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30848 * math/ieee-math.c: Remove.
30849 * math/libm-test-support.c (matherr): Remove.
30850 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30851 and license notices. Include <math-svid-compat.h> and
30852 <shlib-compat.h>.
30853 (matherr): Undefine as macro. Use compat_symbol_reference.
30854 (_LIB_VERSION): Likewise.
30855 * math/test-matherr-2.c: New file.
30856 * math/test-matherr-3.c: Likewise.
30857 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30858 declaration.
30859 (__kernel_standard_f): Likewise.
30860 (__kernel_standard_l): Likewise.
30861 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30862 <math_private.h>. Include <math-svid-compat.h>.
30863 (_LIB_VERSION): Undefine as macro.
30864 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30865 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30866 [LIBM_SVID_COMPAT], use compat_symbol.
30867 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30868 <math_private.h>. Include <math-svid-compat.h>.
30869 (matherr): Undefine as macro.
30870 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30871 compat_symbol.
30872 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30873 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30874 compat_symbol_reference.
30875 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30876 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30877 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30878 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30879 (MATHERR_D): Remove declaration.
30880 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30881 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30882 [LIBM_BUILD] (pmatherrf): Likewise.
30883 [LIBM_BUILD] (pmatherr): Likewise.
30884 [LIBM_BUILD] (pmatherrl): Likewise.
30885 (DOMAIN): Likewise.
30886 (SING): Likewise.
30887 (OVERFLOW): Likewise.
30888 (UNDERFLOW): Likewise.
30889 (TLOSS): Likewise.
30890 (PLOSS): Likewise.
30891 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30892 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30893 compat_symbol.
30894 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30895 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30896 compat_symbol.
30897 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30898 * math/w_acos_compat.c: Likewise.
30899 * math/w_acosf_compat.c: Likewise.
30900 * math/w_acosh_compat.c: Likewise.
30901 * math/w_acoshf_compat.c: Likewise.
30902 * math/w_acoshl_compat.c: Likewise.
30903 * math/w_acosl_compat.c: Likewise.
30904 * math/w_asin_compat.c: Likewise.
30905 * math/w_asinf_compat.c: Likewise.
30906 * math/w_asinl_compat.c: Likewise.
30907 * math/w_atan2_compat.c: Likewise.
30908 * math/w_atan2f_compat.c: Likewise.
30909 * math/w_atan2l_compat.c: Likewise.
30910 * math/w_atanh_compat.c: Likewise.
30911 * math/w_atanhf_compat.c: Likewise.
30912 * math/w_atanhl_compat.c: Likewise.
30913 * math/w_cosh_compat.c: Likewise.
30914 * math/w_coshf_compat.c: Likewise.
30915 * math/w_coshl_compat.c: Likewise.
30916 * math/w_exp10_compat.c: Likewise.
30917 * math/w_exp10f_compat.c: Likewise.
30918 * math/w_exp10l_compat.c: Likewise.
30919 * math/w_exp2_compat.c: Likewise.
30920 * math/w_exp2f_compat.c: Likewise.
30921 * math/w_exp2l_compat.c: Likewise.
30922 * math/w_fmod_compat.c: Likewise.
30923 * math/w_fmodf_compat.c: Likewise.
30924 * math/w_fmodl_compat.c: Likewise.
30925 * math/w_hypot_compat.c: Likewise.
30926 * math/w_hypotf_compat.c: Likewise.
30927 * math/w_hypotl_compat.c: Likewise.
30928 * math/w_j0_compat.c: Likewise.
30929 * math/w_j0f_compat.c: Likewise.
30930 * math/w_j0l_compat.c: Likewise.
30931 * math/w_j1_compat.c: Likewise.
30932 * math/w_j1f_compat.c: Likewise.
30933 * math/w_j1l_compat.c: Likewise.
30934 * math/w_jn_compat.c: Likewise.
30935 * math/w_jnf_compat.c: Likewise.
30936 * math/w_jnl_compat.c: Likewise.
30937 * math/w_lgamma_main.c: Likewise.
30938 * math/w_lgamma_r_compat.c: Likewise.
30939 * math/w_lgammaf_main.c: Likewise.
30940 * math/w_lgammaf_r_compat.c: Likewise.
30941 * math/w_lgammal_main.c: Likewise.
30942 * math/w_lgammal_r_compat.c: Likewise.
30943 * math/w_log10_compat.c: Likewise.
30944 * math/w_log10f_compat.c: Likewise.
30945 * math/w_log10l_compat.c: Likewise.
30946 * math/w_log2_compat.c: Likewise.
30947 * math/w_log2f_compat.c: Likewise.
30948 * math/w_log2l_compat.c: Likewise.
30949 * math/w_log_compat.c: Likewise.
30950 * math/w_logf_compat.c: Likewise.
30951 * math/w_logl_compat.c: Likewise.
30952 * math/w_pow_compat.c: Likewise.
30953 * math/w_powf_compat.c: Likewise.
30954 * math/w_powl_compat.c: Likewise.
30955 * math/w_remainder_compat.c: Likewise.
30956 * math/w_remainderf_compat.c: Likewise.
30957 * math/w_remainderl_compat.c: Likewise.
30958 * math/w_scalb_compat.c: Likewise.
30959 * math/w_scalbf_compat.c: Likewise.
30960 * math/w_scalbl_compat.c: Likewise.
30961 * math/w_sinh_compat.c: Likewise.
30962 * math/w_sinhf_compat.c: Likewise.
30963 * math/w_sinhl_compat.c: Likewise.
30964 * math/w_sqrt_compat.c: Likewise.
30965 * math/w_sqrtf_compat.c: Likewise.
30966 * math/w_sqrtl_compat.c: Likewise.
30967 * math/w_tgamma_compat.c: Likewise.
30968 * math/w_tgammaf_compat.c: Likewise.
30969 * math/w_tgammal_compat.c: Likewise.
30970 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30971 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30972 * sysdeps/ieee754/k_standard.c: Likewise.
30973 * sysdeps/ieee754/k_standardf.c: Likewise.
30974 * sysdeps/ieee754/k_standardl.c: Likewise.
30975 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30976 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30977 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30978 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30979 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30980 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30981 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30982 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30983 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30984 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30985 Likewise.
30986 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30987 Likewise.
30988 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30989 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30990 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30991 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30992
30993 2017-08-21 Florian Weimer <fweimer@redhat.com>
30994
30995 [BZ #21864]
30996 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30997 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30998 Move before inclusion of ../Rules.
30999
31000 2017-08-21 Florian Weimer <fweimer@redhat.com>
31001
31002 [BZ #21972]
31003 * assert/assert.h (assert): Use static_cast (bool) for C++.
31004 Use the ternary operator in the warning branch for GNU C.
31005 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31006 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31007 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31008 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31009 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31010
31011 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31012
31013 [BZ #18822]
31014 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31015 (__syscall_clock_gettime): Add attribute_hidden.
31016 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31017 (__start_context): Likewise.
31018
31019 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31020
31021 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31022 building libc.a.
31023 (hidden_proto): Likewise.
31024 (hidden_tls_proto): Likewise.
31025 (__hidden_proto): Likewise.
31026
31027 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31028
31029 * include/libc-symbols.h (attribute_hidden): Enable hidden
31030 visibility in libc.a compiled with PIE.
31031
31032 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31033
31034 [BZ #18822]
31035 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31036 Add attribute_hidden.
31037
31038 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31039
31040 [BZ #21864]
31041 * Makerules (all-nonlib): Add $(others-extras).
31042 * catgets/Makefile (others-extras): New.
31043 * elf/Makefile (others-extras): Likewise.
31044 * nss/Makefile (others-extras): Likewise.
31045
31046 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31047
31048 [BZ #18822]
31049 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31050 * elf/dl-open.c: Include <libc-internal.h>.
31051 (__libc_multiple_libcs): Removed.
31052 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31053 <hp-timing.h>.
31054 * include/libc-internal.h (__libc_multiple_libcs): New.
31055 * misc/sbrk.c: Include <libc-internal.h>.
31056 (__libc_multiple_libcs): Removed.
31057
31058 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31059
31060 [BZ #18822]
31061 * grp/initgroups.c (__nss_group_database): Removed.
31062 (__nss_initgroups_database): Likewise.
31063 * nscd/gai.c (__nss_hosts_database): Likewise.
31064 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31065 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31066 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31067 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31068 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31069 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31070 attribute_hidden.
31071 * nss/nsswitch.c (__nss_database_custom): Define only if
31072 USE_NSCD is defined.
31073 (__nss_configure_lookup): Use __nss_database_custom only if
31074 USE_NSCD is defined.
31075 * nss/nsswitch.h (__nss_database_custom): Declare only if
31076 USE_NSCD is defined. Add attribute_hidden.
31077 (__nss_setent): Add attribute_hidden.
31078 (__nss_endent): Likewise.
31079 (__nss_getent_r): Likewise.
31080 (__nss_getent): Likewise.
31081 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31082
31083 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31084
31085 [BZ #18822]
31086 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31087 libc_hidden_proto and libc_hidden_def.
31088
31089 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31090
31091 [BZ #18822]
31092 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31093 Add libc_hidden_proto.
31094 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31095 Add libc_hidden_def.
31096
31097 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31098
31099 [BZ #21974]
31100 * gmon/Makefile (routines): Remove bb_init_func and
31101 bb_exit_func.
31102 (elide-routines.os): Removed.
31103 * gmon/bb_exit_func.c: Likewise.
31104 * gmon/bb_init_func.c: Likewise.
31105 * include/sys/gmon.h (__bb): Likewise.
31106 (__bb_init_func): Likewise.
31107 (__bb_exit_func): Likewise.
31108 * sysdeps/alpha/bb_init_func.S: Likewise.
31109
31110 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31111
31112 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31113 * include/setjmp.h (____longjmp_chk): Here. Add
31114 attribute_hidden.
31115
31116 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31117
31118 [BZ #18822]
31119 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31120 attribute_hidden.
31121 (__strspn_sse2): Likewise.
31122
31123 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31124
31125 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31126 (close_not_cancel_no_status): Likewise.
31127 (__close_nocancel): New macro.
31128 (__close_nocancel_nostatus): Likewise.
31129 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31130 macro.
31131 (close_not_cancel): Likewise.
31132 (close_not_cancel_no_status): Likewise.
31133 (__close_nocancel): New prototype.
31134 (__close_nocancel_nostatus): New function.
31135 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31136 * catgets/open_catalog.c (__open_catalog): Replace
31137 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31138 * gmon/gmon.c (write_gmon): Likewise.
31139 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31140 * intl/loadmsgcat.c (close): Likewise.
31141 * io/ftw.c (open_dir_stream): Likewise.
31142 (ftw_startup): Likewise.
31143 * libio/fileops.c (_IO_file_open): Likewise.
31144 (_IO_file_close_mmap): Likewise.
31145 (_IO_file_close): Likewise.
31146 * libio/iopopen.c (_IO_dup2): Likewise.
31147 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31148 * locale/loadlocale.c (_nl_load_locale): Likewise.
31149 * login/utmp_file.c (pututline_file): Likewise.
31150 (endutent_file): Likewise.
31151 * misc/daemon.c (daemon): Likewise.
31152 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31153 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31154 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31155 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31156 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31157 * nscd/nscd_helper.c (open_socket): Likewise.
31158 (__nscd_open_socket): Likewise.
31159 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31160 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31161 (__nscd_innetgr): Likewise.
31162 * nss/nss_db/db-open.c (internal_setent): Likewise.
31163 * resolv/res-close.c (__res_iclose): Likewise.
31164 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31165 * sysdeps/posix/closedir.c (__closedir): Likewise.
31166 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31167 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31168 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31169 (opendir_tail): Likewise.
31170 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31171 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31172 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31173 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31174 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31175 (gethostid): Likewise.
31176 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31177 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31178 Likewise.
31179 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31180 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31181 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31182 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31183 Likewise.
31184 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31185 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31186 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31187 Likewise.
31188 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31189 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31190 Likewise.
31191 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31192 Likewise.
31193 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31194 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31195 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31196 __close_nocancel.
31197
31198 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31199 (openat_not_cancel_3): Likewise.
31200 (openat64_not_cancel_3): Likewise).
31201 (openat_not_cancel_3): Likewise).
31202 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31203 macro.
31204 (openat_not_cancel_3): Likewise.
31205 (openat64_not_cancel): Likewise.
31206 (openat64_not_cancel_3): Likewise.
31207 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31208 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31209 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31210 __open{64}_nocancel.
31211 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31212 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31213 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31214
31215 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31216
31217 [BZ #18822]
31218 * include/argz.h (__argz_create_sep): New function prototype.
31219 (__argz_append): Likewise.
31220 (__argz_add): Likewise.
31221 (__argz_add_sep): Likewise.
31222 (__argz_delete): Likewise.
31223 (__argz_insert): Likewise.
31224 (__argz_replace): Likewise.
31225 * string/argz.h (__argz_create_sep): Removed.
31226 (__argz_append): Likewise.
31227 (__argz_add): Likewise.
31228 (__argz_add_sep): Likewise.
31229 (__argz_delete): Likewise.
31230 (__argz_insert): Likewise.
31231 (__argz_replace): Likewise.
31232
31233 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31234
31235 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31236 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31237 (GNU_PROPERTY_STACK_SIZE): Likewie.
31238 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31239 (GNU_PROPERTY_LOPROC): Likewise.
31240 (GNU_PROPERTY_HIPROC): Likewise.
31241 (GNU_PROPERTY_LOUSER): Likewise.
31242 (GNU_PROPERTY_HIUSER): Likewise.
31243 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31244 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31245 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31246 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31247 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31248 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31249 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31250 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31251 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31252 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31253 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31254 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31255 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31256 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31257 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31258 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31259 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31260 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31261 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31262 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31263 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31264 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31265 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31266
31267 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31268
31269 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31270 in C++ mode.
31271
31272 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31273
31274 [BZ #21930]
31275 * math/math.h (isinf): Check if in C or C++ mode before using
31276 __builtin_types_compatible_p, since this is a C mode feature.
31277
31278 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31279
31280 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31281 (__write_nocancel): New macro.
31282 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31283 Rewrite as a function prototype.
31284 (write_not_cancel): Remove macro.
31285 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31286 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31287 (write_gmon): Likewise.
31288 * libio/fileops.c (_IO_new_file_write): Likewise.
31289 * login/utmp_file.c (pututline_file): Likewise.
31290 (updwtmp_file): Likewise.
31291 * stdio-common/psiginfo.c (psiginfo): Likewise.
31292 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31293 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31294 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31295 Likewise.
31296 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31297 Likewise.
31298
31299 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31300 (__read_nocancel): New macro.
31301 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31302 __read_nocancel.
31303 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31304 macro.
31305 (__read_nocancel): New prototype.
31306 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31307 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31308 with __read_nocancel.
31309 * intl/loadmsgcat.c (read): Likewise.
31310 * libio/fileops.c (_IO_file_read): Likewise.
31311 * locale/loadlocale.c (_nl_load_locale): Likewise.
31312 * login/utmp_file.c (getutent_r_file): Likewise.
31313 (internal_getut_r): Likewise.
31314 (getutline_r_file): Likewise.
31315 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31316 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31317 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31318 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31319 Likewise.
31320 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31321 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31322 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31323 Likewise.
31324 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31325 Likewise.
31326 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31327 Likewise.
31328 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31329 Likewise.
31330 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31331
31332 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31333
31334 [BZ #21966]
31335 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31336 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31337 usable.
31338
31339 2017-08-17 DJ Delorie <dj@redhat.com>
31340
31341 * bug17079.c: Update to new test harness.
31342 * test-digits-dots.c: Likewise.
31343 * test-netdb.c: Likewise.
31344 * tst-field.c: Likewise.
31345 * tst-nss-getpwent.c: Likewise.
31346 * tst-nss-static.c: Likewise.
31347 * tst-nss-test1.c: Likewise.
31348 * tst-nss-test2.c: Likewise.
31349 * tst-nss-test3.c: Likewise.
31350 * tst-nss-test4.c: Likewise.
31351 * tst-nss-test5.c: Likewise.
31352
31353 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31354
31355 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31356 (open_not_cancel_2): Likewise.
31357 (open_nocancel): New macro.
31358 (open64_nocancel): Likewise.
31359 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31360 (open_not_cancel_2): Likewise.
31361 (__open_nocancel): New prototype.
31362 (__open64_nocancel): Likewise.
31363 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31364 __open_nocancel.
31365 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31366 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31367 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31368 with __open_nocancel.
31369 * csu/check_fds.c (check_one_fd): Likewise.
31370 * gmon/gmon.c (write_gmon): Likewise.
31371 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31372 * intl/loadmsgcat.c (open): Likewise.
31373 * libio/fileops.c (_IO_file_open): Likewise.
31374 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31375 * locale/loadlocale.c (_nl_load_locale): Likewise.
31376 * login/utmp_file.c (setutent_file): Likewise.
31377 * misc/daemon.c (daemon): Likewise.
31378 * nss/nss_db/db-open.c (internal_setent): Likewise.
31379 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31380 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31381 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31382 (__opendir): Likewise.
31383 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31384 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31385 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31386 (gethostid): Likewise.
31387 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31388 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31389 Likewise.
31390 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31391 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31392 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31393 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31394 Likewise.
31395 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31396 Likewise.
31397 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31398 Likewise.
31399 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31400 Likewise.
31401 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31402 Likewise.
31403 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31404 Likewise.
31405 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31406 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31407
31408 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31409
31410 * benchtests/bench-skeleton.c (main): Add support for
31411 latency benchmarking.
31412 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31413
31414 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31415
31416 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31417 the startup object.
31418
31419 2017-08-17 Florian Weimer <fweimer@redhat.com>
31420
31421 * include/sys/socket.h (__opensock): Remove internal_function.
31422 * socket/opensock.c (__opensock): Likewise.
31423 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31424
31425 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31426
31427 [BZ #21944]
31428 * signal/bits/types/__sigval_t.h: New file.
31429 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31430 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31431 and define sigval_t using __sigval_t.
31432 * include/bits/types/__sigval_t.h: New file.
31433 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31434 instead of <bits/types/__sigval_t.h>.
31435 (struct sigevent): Use __sigval_t instead of sigval_t.
31436 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31437 instead of <bits/types/__sigval_t.h>.
31438 (siginfo_t): Use __sigval_t instead of sigval_t.
31439 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31440 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31441 (struct sigevent): Use __sigval_t instead of sigval_t.
31442 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31443 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31444 (siginfo_t): Use __sigval_t instead of sigval_t.
31445 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31446
31447 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31448
31449 * NEWS: Remove "[Add new features here]" for 2.27.
31450
31451 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31452
31453 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31454 libc.so.
31455
31456 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31457
31458 * NEWS: Mention x86-64 FMA optimization.
31459
31460 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31461
31462 [BZ #21912]
31463 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31464 Add e_expf-fma.
31465 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31466 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31467 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31468
31469 2017-08-16 Andreas Schwab <schwab@suse.de>
31470
31471 [BZ #16750]
31472 CVE-2009-5064
31473 * elf/ldd.bash.in: Never run file directly.
31474
31475 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31476
31477 [BZ #21955]
31478 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31479 (L(SP_INF_0)): Likewise.
31480
31481 2017-08-15 Florian Weimer <fweimer@redhat.com>
31482
31483 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31484 run-built-tests.
31485
31486 2017-08-15 Florian Weimer <fweimer@redhat.com>
31487
31488 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31489 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31490 BROKEN_THREAD_SIGNALS code.
31491 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31492 request_list): Remove caller_pid member used for
31493 BROKEN_THREAD_SIGNALS.
31494 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31495 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31496 Remove BROKEN_THREAD_SIGNALS support.
31497 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31498 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31499
31500 2017-08-15 Florian Weimer <fweimer@redhat.com>
31501
31502 * gmon/Makefile (tests): Add tst-gmon.
31503 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31504 Set.
31505 (tests-special): Add tst-gmon-prof.out.
31506 (tst-gmon.out): Depend on clean-tst-gmon-data.
31507 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31508 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31509 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31510 startup object.
31511 * aclocal.m4 (GPROF): Set and substitute.
31512 * config.amke.in (GPROF): Set.
31513 * configure: Regenerate.
31514
31515 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31516
31517 * elf/elf.h A (NT_PPC_TAR): New macro.
31518 (NT_PPC_PPR): Likewise.
31519 (NT_PPC_DSCR): Likewise.
31520 (NT_PPC_EBB): Likewise.
31521 (NT_PPC_PMU): Likewise.
31522 (NT_PPC_TM_CGPR): Likewise.
31523 (NT_PPC_TM_CFPR): Likewise.
31524 (NT_PPC_TM_CVMX): Likewise.
31525 (NT_PPC_TM_CVSX): Likewise.
31526 (NT_PPC_TM_SPR): Likewise.
31527 (NT_PPC_TM_CTAR): Likewise.
31528 (NT_PPC_TM_CPPR): Likewise.
31529 (NT_PPC_TM_CDSCR): Likewise.
31530
31531 2017-08-15 Florian Weimer <fweimer@redhat.com>
31532
31533 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31534 regparm (2) instead of internal_function.
31535 (_MCOUNT_DECL): Adjust.
31536
31537 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31538
31539 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31540 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31541
31542 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31543
31544 * conform/data/sys/wait.h-data (si_value): Do not expect for
31545 XPG42.
31546
31547 2017-08-14 Florian Weimer <fweimer@redhat.com>
31548
31549 [BZ #21962]
31550 NSS: Create stubs for accidentally exported lookup functions.
31551 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31552 Remove declaration.
31553 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31554 (ether_hostton): Call __nss_ethers_lookup2 instead.
31555 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31556 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31557 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31558 (setup): Call __nss_netgroup_lookup2 instead.
31559 * nss/Makefile (routines): Add compat-lookup.
31560 * nss/Versions (GLIBC_2.27): Add symbol version.
31561 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31562 (DB_COMPAT_FCT): Remove.
31563 * nss/compat-lookup.c: New file.
31564 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31565 from databases.def.
31566 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31567 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31568 (netname2user): Call __nss_publickey_lookup2 instead.
31569 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31570 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31571 instead.
31572
31573 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31574 Sergei Trofimovich <slyfox@inbox.ru>
31575
31576 [BZ #21908]
31577 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31578 Rename to MMAP2_PAGE_UNIT.
31579 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31580 __OFF_T_MATCHES_OFF64_T is not defined.
31581 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31582 uint64_t.
31583 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31584 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31585
31586 2017-08-14 Florian Weimer <fweimer@redhat.com>
31587
31588 i386: Do not set internal_function.
31589 * config.h.in (USE_REGPARMS, internal_function): Remove.
31590 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31591 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31592
31593 2017-08-14 Florian Weimer <fweimer@redhat.com>
31594
31595 * elf/dl-init.c (_dl_init): Remove internal_function.
31596 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31597 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31598
31599 2017-08-14 Florian Weimer <fweimer@redhat.com>
31600
31601 * elf/rtld.c (_dl_start): Remove internal_function.
31602 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31603 _dl_start.
31604
31605 2017-08-14 Florian Weimer <fweimer@redhat.com>
31606
31607 * elf/dl-fini.c (_dl_fini): Remove internal_function
31608 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31609
31610 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31611
31612 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31613 (bit_cpu_SHSTK): Likewise.
31614 (index_cpu_IBT): Likewise.
31615 (index_cpu_SHSTK): Likewise.
31616 (reg_IBT): Likewise.
31617 (reg_SHSTK): Likewise.
31618 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31619 Handle index_cpu_IBT and index_cpu_SHSTK.
31620
31621 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31622
31623 [BZ #19982]
31624 * po/fr.po: Fix spelling mistake.
31625
31626 2017-08-13 Florian Weimer <fweimer@redhat.com>
31627
31628 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31629 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31630 (_dl_catch_error, _dl_receive_error): Likewise.
31631 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31632 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31633 (_dl_deallocate_tls): Likewise.
31634 * include/dlfcn.h (_dl_addr): Likewise.
31635 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31636 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31637 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31638 Likewise.
31639
31640 2017-08-13 Florian Weimer <fweimer@redhat.com>
31641
31642 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31643 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31644 internal_function.
31645 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31646
31647 2017-08-13 Florian Weimer <fweimer@redhat.com>
31648
31649 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31650 internal_function.
31651 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31652 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31653 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31654 internal_function from _dl_make_stack_executable_hook member.
31655 (_dl_make_stack_executable): Remove internal_function.
31656 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31657 Likewise.
31658 * sysdeps/unix/sysv/linux/dl-execstack.c
31659 (_dl_make_stack_executable): Likewise.
31660
31661 2017-08-13 Florian Weimer <fweimer@redhat.com>
31662
31663 * sysdeps/unix/sysv/linux/netlinkaccess.h
31664 (__netlink_assert_response): Remove internal_function.
31665 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31666 (__netlink_assert_response): Likewise.
31667
31668 2017-08-13 Florian Weimer <fweimer@redhat.com>
31669
31670 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31671 internal_function.
31672 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31673
31674 2017-08-13 Florian Weimer <fweimer@redhat.com>
31675
31676 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31677 internal_function.
31678 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31679 * inet/netgroup.h (__internal_setnetgrent)
31680 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31681 * inet/getnetgrent_r.c (__internal_setnetgrent)
31682 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31683 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31684 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31685 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31686 * nss/nsswitch.h (db_lookup_function): Likewise.
31687
31688 2017-08-13 Florian Weimer <fweimer@redhat.com>
31689
31690 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31691 Remove internal_function.
31692 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31693 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31694 message argument on the stack.
31695 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31696 Likeweise.
31697
31698 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31699
31700 Adapt test case data to the changes in the thousands
31701 separators.
31702
31703 [BZ #20756]
31704 * localedata/tst-langinfo.sh: Adapt test case data.
31705 * stdlib/tst-strfmon_l.c: Likewise.
31706 * stdlib/tst-strtod4.c: Likewise.
31707 * stdlib/tst-strtod5i.c: Likewise.
31708
31709 2017-08-11 Florian Weimer <fweimer@redhat.com>
31710
31711 [BZ #21242]
31712 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31713 Suppress pedantic warning resulting from statement expression.
31714 (__ASSERT_FUNCTION): Add missing __extension__.
31715
31716 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31717
31718 * benchtests/bench-memmove-large.c: Print output in JSON
31719 format.
31720 * benchtests/bench-memmove.c: Likewise.
31721
31722 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31723 * benchtests/bench-memchr.c (do_one_test): Likewise.
31724 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31725 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31726 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31727 * benchtests/bench-memmove.c (do_one_test): Likewise.
31728 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31729 * benchtests/bench-memset.c (do_one_test): Likewise.
31730 * benchtests/bench-string.h (test_init): Remove memsets.
31731
31732 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31733
31734 * manual/lang.texi
31735 (Computing the Width of an Integer Data Type): Rename section to
31736 "Width of an Integer Type". Remove inaccurate statement regarding
31737 lack of C language facilities for determining width of integer
31738 types, and reorder content to improve flow and context of
31739 discussion.
31740
31741 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31742
31743 * lang.texi (va_copy): Change standard from ISO to C99.
31744 (__va_copy): Add standard and header annotation.
31745 Update description for clarity of origins and current use.
31746
31747 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31748
31749 [BZ #21941]
31750 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31751 xssqrtqp requires operands to be in Vector Registers
31752 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31753 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31754 (__ieee754_sqrtf128): Likewise.
31755
31756 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31757
31758 * sysdeps/aarch64/memcmp.S (memcmp):
31759 Rewrite of optimized memcmp.
31760
31761 2017-08-10 Florian Weimer <fweimer@redhat.com>
31762
31763 Introduce ld.so exceptions.
31764 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31765 (_dl_exception_create, _dl_exception_create_format)
31766 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31767 (_dl_catch_exception): Declare.
31768 (_dl_catch_error): Update comment.
31769 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31770 errstring, malloced members with exception member.
31771 (_dl_out_of_memory): Remove.
31772 (fatal_error): New function, extracted from _dl_signal_error.
31773 (_dl_signal_exception, _dl_signal_cexception): New functions.
31774 (_dl_signal_error): Call _dl_exception_create to allocate an
31775 exception object.
31776 (_dl_catch_exception): New function, based on _dl_catch_error.
31777 (_dl_catch_error): Implement using _dl_catch_exception.
31778 * elf/dl-exception.c: New file.
31779 * elf/Makefile (dl-routines): Add dl-exception.
31780 (elide-routines.os): Likewise.
31781 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31782 _dl_exception_create_format, _dl_exception_free.
31783 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31784 _dl_signal_exception.
31785 * elf/dl-lookup.c (make_string): Remove.
31786 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31787 _dl_signal_cexception, _dl_exception_free.
31788 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31789 _dl_signal_exception.
31790 * elf/dl-sym.c (do_sym): Likewise.
31791 * elf/dl-version.c (make_string): Remove.
31792 (match_symbol): Use _dl_exception_create_format,
31793 _dl_signal_cexception, _dl_exception_free.
31794 (_dl_check_map_versions): Likewise.
31795 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31796 _dl_catch_exception.
31797 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31798 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31799 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31800 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31801 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31802 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31803 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31804 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31805 Likewise.
31806 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31807 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31808 (ld.so): Likewise.
31809 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31810 (ld.so): Likewise.
31811 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31812 Likewise.
31813 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31814 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31815 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31816 Likewise.
31817 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31818 Likewise.
31819 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31820
31821 2017-08-10 Florian Weimer <fweimer@redhat.com>
31822
31823 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31824 attribute_hidden, internal_function.
31825 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31826 internal_function.
31827
31828 2017-08-10 Florian Weimer <fweimer@redhat.com>
31829
31830 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31831 function which calls __builtin_unreachable.
31832
31833 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31834
31835 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31836 Indian monetary formatting
31837 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31838 test cases.
31839
31840 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31841
31842 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31843 Fix typo in comment.
31844
31845 [BZ #21928]
31846 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31847 PTRACE_SEIZE_DEVEL): Remove.
31848 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31849 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31850 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31851 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31852 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31853
31854 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31855
31856 * posix/bits/types.h (__qaddr_t): Remove.
31857
31858 [BZ #21457]
31859 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31860 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31861 __glibc_reserved1.
31862 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31863 (ucontext_t): Use __ctx with uc_flags.
31864 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31865 (__ctxt): Likewise.
31866 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31867 __glibc_reserved1.
31868 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31869 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31870 __glibc_reserved1.
31871 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31872 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31873 __glibc_reserved1.
31874 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31875 macro.
31876 (ucontext_t): Use __ctx with uc_flags.
31877 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31878 (ucontext_t): Use __ctx with uc_flags.
31879 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31880 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31881 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31882 (ucontext_t): Use __ctx with uc_flags.
31883 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31884 undefine further down.
31885 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31886 __glibc_reserved1.
31887 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31888 undefine further down.
31889 (ucontext_t): Use __ctx with uc_flags.
31890 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31891 undefine further down.
31892 (ucontext_t): Use __ctx with uc_flags.
31893 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31894 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31895 Rename uc_pad to __glibc_reserved1.
31896 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31897 undefine further down.
31898 (ucontext_t): Use __ctx with uc_flags.
31899 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31900 further down.
31901 (ucontext_t): Use __ctx with uc_flags.
31902 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31903 __ctx with uc_flags.
31904 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31905 (ucontext_t): Use __ctx with uc_flags.
31906 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31907 __ctx with uc_flags.
31908
31909 2017-08-09 Florian Weimer <fweimer@redhat.com>
31910
31911 [BZ #21932]
31912 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31913 before early return.
31914
31915 2017-08-09 Andreas Schwab <schwab@suse.de>
31916
31917 [BZ #21041]
31918 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31919 renamed alias.
31920
31921 [BZ #21041]
31922 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31923 tst-compat-forwarder.
31924 (modules-names): Add tst-compat-forwarder-mod.
31925 ($(objpfx)tst-compat-forwarder): Depend on
31926 $(objpfx)tst-compat-forwarder-mod.so.
31927 * nptl/tst-compat-forwarder.c: New file.
31928 * nptl/tst-compat-forwarder-mod.c: New file.
31929
31930 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31931
31932 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31933 comments.
31934
31935 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31936 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31937 memcpy_falkor.
31938 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31939 Bump.
31940 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31941 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31942 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31943 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31944 Add falkor.
31945 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31946 New macro.
31947
31948 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31949
31950 [BZ #759]
31951 * manual/setjmp.texi (getcontex): Document uc_stack value
31952 compatibility differences.
31953
31954 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31955
31956 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31957 (old_malloc_hook): Likewise.
31958 (old_memalign_hook): Likewise.
31959 (old_realloc_hook): Likewise.
31960 (struct hdr): Likewise.
31961 (flood): Likewise.
31962 (freehook): Likewise.
31963 (mallochook): Likewise.
31964 (memalignhook): Likewise.
31965 (reallochook): Likewise.
31966 (mprobe): Likewise.
31967 * malloc/mtrace.c (mallwatch): Likewise.
31968 (tr_old_free_hook): Likewise.
31969 (tr_old_malloc_hook): Likewise.
31970 (tr_old_realloc_hook): Likewise.
31971 (tr_old_memalign_hook): Likewise.
31972 (tr_where): Likewise.
31973 (lock_and_info): Likewise.
31974 (tr_freehook): Likewise.
31975 (tr_mallochook): Likewise.
31976 (tr_reallochook): Likewise.
31977 (tr_memalignhook): Likewise.
31978 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31979 * misc/mmap.c (__mmap): Likewise.
31980 * misc/mmap64.c (__mmap64): Likewise.
31981 * misc/mprotect.c (__mprotect): Likewise.
31982 * misc/msync.c (msync): Likewise.
31983 * misc/munmap.c (__munmap): Likewise.
31984 * posix/posix_madvise.c (posix_madvise): Likewise.
31985 * socket/send.c (__send): Likewise.
31986 * socket/sendto.c (__sendto): Likewise.
31987 * socket/setsockopt.c (__setsockopt): Likewise.
31988 * string/memcmp.c (__ptr_t): Remove macro.
31989 (MEMCMP): Use void * instead of ptr_t.
31990 * string/memrchr.c (__ptr_t): Remove macro.
31991 (__memrchr): Use void * instead of ptr_t.
31992 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31993 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31994 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31995 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31996 * sysdeps/mach/msync.c (msync): Likewise.
31997 * sysdeps/mach/munmap.c (__munmap): Likewise.
31998 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31999 Likewise.
32000 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32001 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32002 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32003 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32004 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32005 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32006 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32007 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32008 Likewise.
32009 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32010 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32011 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32012 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32013 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32014 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32015 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32016 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32017 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32018 Likewise.
32019 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32020 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32021 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32022 (MEMCMP): Use void * instead of ptr_t.
32023 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32024 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32025
32026 2017-08-08 Florian Weimer <fweimer@redhat.com>
32027
32028 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32029 return statement.
32030
32031 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32032
32033 [BZ #21913]
32034 * csu/libc-tls.c: Include <startup.h> first.
32035 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32036 * elf/dl-tunables.c: Include <startup.h> first.
32037 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32038 * sysdeps/generic/startup.h: New file.
32039 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32040 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32041 (I386_USE_SYSENTER): New. Defined to 0.
32042
32043 2017-08-08 Andreas Schwab <schwab@suse.de>
32044
32045 [BZ #21041]
32046 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32047 * nptl/pt-system.c (system): Likewise.
32048
32049 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32050
32051 [BZ #21780]
32052 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32053 EOPNOTSUPP.
32054 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32055 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32056 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32057 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32058 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32059 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32060 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32061
32062 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32063
32064 [BZ #21899]
32065 * bits/sigaction.h (struct sigaction): Define sa_handler and
32066 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32067 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32068 [__USE_XOPEN_EXTENDED].
32069 (SA_RESTART): Likewise.
32070 (SA_NODEFER): Likewise.
32071 (SA_RESETHAND): Likewise.
32072 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32073 (struct sigaction): Define sa_handler and sa_sigaction using union
32074 also for [__USE_XOPEN_EXTENDED].
32075 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32076 [__USE_XOPEN_EXTENDED].
32077 (SA_RESTART): Likewise.
32078 (SA_NODEFER): Likewise.
32079 (SA_RESETHAND): Likewise.
32080 * sysdeps/unix/sysv/linux/bits/sigaction.h
32081 (struct sigaction): Define sa_handler and sa_sigaction using union
32082 also for [__USE_XOPEN_EXTENDED].
32083 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32084 [__USE_XOPEN_EXTENDED].
32085 (SA_RESTART): Likewise.
32086 (SA_NODEFER): Likewise.
32087 (SA_RESETHAND): Likewise.
32088 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32089 (struct sigaction): Define sa_handler and sa_sigaction using union
32090 also for [__USE_XOPEN_EXTENDED].
32091 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32092 [__USE_XOPEN_EXTENDED].
32093 (SA_RESTART): Likewise.
32094 (SA_NODEFER): Likewise.
32095 (SA_RESETHAND): Likewise.
32096 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32097 (struct sigaction): Define sa_handler and sa_sigaction using union
32098 also for [__USE_XOPEN_EXTENDED].
32099 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32100 [__USE_XOPEN_EXTENDED].
32101 (SA_RESTART): Likewise.
32102 (SA_NODEFER): Likewise.
32103 (SA_RESETHAND): Likewise.
32104 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32105 (struct sigaction): Define sa_handler and sa_sigaction using union
32106 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/s390/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/sparc/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. Define directly rather than as alias.
32127 (SA_RESETHAND): Likewise.
32128 (SA_INTERRUPT): Define only for [__USE_MISC].
32129 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32130 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32131 [__USE_MISC].
32132 (SA_STACK): Define only for [__USE_MISC].
32133 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32134 (struct sigaction): Define sa_handler and sa_sigaction using union
32135 also for [__USE_XOPEN_EXTENDED].
32136 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32137 [__USE_XOPEN_EXTENDED].
32138 (SA_RESTART): Likewise.
32139 (SA_NODEFER): Likewise.
32140 (SA_RESETHAND): Likewise.
32141 (SA_NOPTRACE): Define only for [__USE_MISC].
32142
32143 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32144 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32145 (struct catalog_info): Likewise.
32146 * inet/htontest.c (lo): Likewise.
32147 (foo): Likewise.
32148 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32149 * inet/inet_net.c (inet_network): Likewise.
32150 * inet/inet_netof.c (inet_netof): Likewise.
32151 * inet/rcmd.c (__ivaliduser): Likewise.
32152 (iruserok): Likewise.
32153 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32154 * locale/programs/locale-spec.c (locale_special): Likewise.
32155 * nis/nis_findserv.c (struct findserv_req): Likewise.
32156 (__nis_findfastest_with_timeout): Likewise.
32157 * nss/test-netdb.c (test_network): Likewise.
32158 * resolv/inet_neta.c (inet_neta): Likewise.
32159 * resolv/ns_date.c (ns_datetosecs): Likewise.
32160 (SECS_PER_DAY): Likewise.
32161 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32162 Likewise.
32163 * resolv/res_comp.c (__putlong): Likewise.
32164 (__putshort): Likewise.
32165 (_getlong): Likewise.
32166 (_getshort): Likewise.
32167 * resolv/res_debug.c (p_time): Likewise.
32168 (precsize_ntoa): Likewise.
32169 (precsize_aton): Likewise.
32170 (latlon2ul): Likewise.
32171 (loc_aton): Likewise.
32172 (loc_ntoa): Likewise.
32173 * resolv/res_hconf.c (struct netaddr): Likewise.
32174 (_res_hconf_reorder_addrs): Likewise.
32175 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32176 (clnttcp_control): Likewise.
32177 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32178 (clntudp_control): Likewise.
32179 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32180 (clntunix_control): Likewise.
32181 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32182 * sunrpc/rpc/auth.h (union des_block): Likewise.
32183 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32184 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32185 (xdrrec_create): Likewise.
32186 (xdrrec_endofrecord): Likewise.
32187 (flush_out): Likewise.
32188 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32189 (xdrstdio_putlong): Likewise.
32190 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32191 Likewise.
32192
32193 * misc/sys/cdefs.h (__long_double_t): Remove.
32194 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32195 instead of __long_double_t,
32196 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32197
32198 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32199
32200 * benchtests/scripts/compare_strings.py: Avoid display error when
32201 running on a text terminal.
32202
32203 * benchtests/scripts/compare_strings.py (main): Add an
32204 optional -base option.
32205 (process_results): New argument base_func.
32206
32207 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32208 hardcoding memcpy.
32209 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32210 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32211
32212 2017-08-07 Andreas Schwab <schwab@suse.de>
32213
32214 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32215 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32216 * intl/Makefile ($(objpfx)tst-gettext.out)
32217 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32218 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32219 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32220 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32221 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32222 * posix/Makefile ($(objpfx)globtest.out)
32223 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32224 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32225 ($(objpfx)tst-printf.out): Likewise.
32226 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32227 ($(objpfx)tst-setcontext3.out): Likewise.
32228
32229 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32230
32231 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32232 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32233 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32234 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32235 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32236 and mptan-fma.
32237 (CFLAGS-doasin-fma.c): New.
32238 (CFLAGS-dosincos-fma.c): Likewise.
32239 (CFLAGS-e_asin-fma.c): Likewise.
32240 (CFLAGS-e_atan2-fma.c): Likewise.
32241 (CFLAGS-e_exp-fma.c): Likewise.
32242 (CFLAGS-e_log-fma.c): Likewise.
32243 (CFLAGS-e_pow-fma.c): Likewise.
32244 (CFLAGS-halfulp-fma.c): Likewise.
32245 (CFLAGS-mpa-fma.c): Likewise.
32246 (CFLAGS-mpatan-fma.c): Likewise.
32247 (CFLAGS-mpatan2-fma.c): Likewise.
32248 (CFLAGS-mpexp-fma.c): Likewise.
32249 (CFLAGS-mplog-fma.c): Likewise.
32250 (CFLAGS-mpsqrt-fma.c): Likewise.
32251 (CFLAGS-mptan-fma.c): Likewise.
32252 (CFLAGS-s_atan-fma.c): Likewise.
32253 (CFLAGS-sincos32-fma.c): Likewise.
32254 (CFLAGS-slowexp-fma.c): Likewise.
32255 (CFLAGS-slowpow-fma.c): Likewise.
32256 (CFLAGS-s_sin-fma.c): Likewise.
32257 (CFLAGS-s_tan-fma.c): Likewise.
32258 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32259 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32260 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32261 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32262 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32263 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32264 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32265 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32266 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32267 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32268 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32269 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32270 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32271 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32272 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32273 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32274 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32275 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32276 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32277 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32278 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32279 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32280 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32281 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32282 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32283 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32284 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32285 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32286 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32287 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32288 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32289
32290 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32291
32292 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32293 (min_of_type_f): New macro.
32294 (min_of_type_): Likewise.
32295 (min_of_type_l): Likewise.
32296 (min_of_type_f128): Likewise.
32297 (min_of_type): Define using __MATH_TG and taking an expression
32298 argument.
32299 (math_check_force_underflow): Pass expression instead of type to
32300 min_of_type.
32301 (math_check_force_underflow_nonneg): Likewise.
32302
32303 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32304
32305 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32306 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32307 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32308
32309 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32310
32311 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32312 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32313 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32314 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32315 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32316 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32317 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32318 memmove_chk-nonshared and memset_chk-nonshared
32319 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32320 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32321 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32322 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32323 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32324 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32325 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32326 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32327 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32328 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32329 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32330 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32331 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32332 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32333 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32334 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32335 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32336 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32337 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32338 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32339 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32340 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32341 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32342 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32343 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32344 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32345 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32346 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32347 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32348 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32349 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32350 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32351 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32352 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32353 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32354 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32355 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32356 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32357 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32358 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32359 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32360 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32361 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32362 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32363 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32364 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32365 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32366 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32367 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32368 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32369 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32370 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32371 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32372 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32373 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32374 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32375 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32376 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32377 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32378 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32379 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32380 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32381 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32382 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32383 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32384 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32385 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32386 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32387 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32388 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32389 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32390 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32391 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32392 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32393 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32394 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32395 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32396 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32397 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32398 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32399 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32400 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32401 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32402 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32403 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32404 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32405 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32406 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32407 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32408 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32409 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32410 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32411 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32412 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32413 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32414 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32415 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32416 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32417 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32418 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32419 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32420 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32421 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32422 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32423 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32424 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32425 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32426 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32427
32428 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32429
32430 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32431 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32432 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32433 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32434 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32435 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32436 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32437 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32438 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32439 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32440 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32441 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32442 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32443 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32444 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32445 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32446 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32447 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32448 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32449 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32450 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32451 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32452 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32453 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32454 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32455 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32456 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32457 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32458 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32459 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32460 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32461 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32462 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32463 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32464 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32465 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32466 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32467 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32468 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32469 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32470 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32471 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32472 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32473 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32474 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32475 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32476 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32477 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32478 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32479 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32480 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32481 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32482 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32483 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32484 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32485 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32486 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32487 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32488 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32489 ...
32490 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32491 Don't include <sysdep.h> nor <init-arch.h>.
32492 (_ZGVbN2v_cos): Removed.
32493 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32494 ...
32495 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32496 Don't include <sysdep.h> nor <init-arch.h>.
32497 (_ZGVdN4v_cos): Removed.
32498 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32499 ...
32500 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32501 Don't include <sysdep.h> nor <init-arch.h>.
32502 (_ZGVeN8v_cos): Removed.
32503 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32504 ...
32505 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32506 Don't include <sysdep.h> nor <init-arch.h>.
32507 (_ZGVbN2v_exp): Removed.
32508 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32509 ...
32510 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32511 Don't include <sysdep.h> nor <init-arch.h>.
32512 (_ZGVdN4v_exp): Removed.
32513 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32514 ...
32515 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32516 Don't include <sysdep.h> nor <init-arch.h>.
32517 (_ZGVeN8v_exp): Removed.
32518 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32519 ...
32520 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32521 Don't include <sysdep.h> nor <init-arch.h>.
32522 (_ZGVbN2v_log): Removed.
32523 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32524 ...
32525 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32526 Don't include <sysdep.h> nor <init-arch.h>.
32527 (_ZGVdN4v_log): Removed.
32528 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32529 ...
32530 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32531 Don't include <sysdep.h> nor <init-arch.h>.
32532 (_ZGVeN8v_log): Removed.
32533 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32534 ...
32535 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32536 Don't include <sysdep.h> nor <init-arch.h>.
32537 (_ZGVbN2vv_pow): Removed.
32538 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32539 ...
32540 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32541 Don't include <sysdep.h> nor <init-arch.h>.
32542 (_ZGVdN4vv_pow): Removed.
32543 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32544 ...
32545 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32546 Don't include <sysdep.h> nor <init-arch.h>.
32547 (_ZGVeN8vv_pow): Removed.
32548 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32549 ...
32550 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32551 Don't include <sysdep.h> nor <init-arch.h>.
32552 (_ZGVbN2v_sin): Removed.
32553 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32554 ...
32555 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32556 Don't include <sysdep.h> nor <init-arch.h>.
32557 (_ZGVbN4v_sin): Removed.
32558 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32559 ...
32560 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32561 Don't include <sysdep.h> nor <init-arch.h>.
32562 (_ZGVbN8v_sin): Removed.
32563 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32564 ...
32565 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32566 Don't include <sysdep.h> nor <init-arch.h>.
32567 (_ZGVbN2vvv_sincos): Removed.
32568 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32569 ...
32570 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32571 Don't include <sysdep.h> nor <init-arch.h>.
32572 (_ZGVdN4vvv_sincos): Removed.
32573 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32574 ...
32575 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32576 Don't include <sysdep.h> nor <init-arch.h>.
32577 (_ZGVeN8vvv_sincos): Removed.
32578 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32579 ...
32580 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32581 Don't include <sysdep.h> nor <init-arch.h>.
32582 (_ZGVeN16v_cosf): Removed.
32583 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32584 ...
32585 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32586 Don't include <sysdep.h> nor <init-arch.h>.
32587 (_ZGVbN4v_cosf): Removed.
32588 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32589 ...
32590 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32591 Don't include <sysdep.h> nor <init-arch.h>.
32592 (_ZGVdN8v_cosf): Removed.
32593 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32594 ...
32595 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32596 Don't include <sysdep.h> nor <init-arch.h>.
32597 (_ZGVeN16v_expf): Removed.
32598 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32599 ...
32600 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32601 Don't include <sysdep.h> nor <init-arch.h>.
32602 (_ZGVbN4v_expf): Removed.
32603 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32604 ...
32605 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32606 Don't include <sysdep.h> nor <init-arch.h>.
32607 (_ZGVdN8v_expf): Removed.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32609 ...
32610 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32611 Don't include <sysdep.h> nor <init-arch.h>.
32612 (_ZGVeN16v_logf): Removed.
32613 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32614 ...
32615 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32616 Don't include <sysdep.h> nor <init-arch.h>.
32617 (_ZGVbN4v_logf): Removed.
32618 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32619 ...
32620 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32621 Don't include <sysdep.h> nor <init-arch.h>.
32622 (_ZGVdN8v_logf): Removed.
32623 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32624 ...
32625 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32626 Don't include <sysdep.h> nor <init-arch.h>.
32627 (_ZGVeN16vv_powf): Removed.
32628 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32629 ...
32630 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32631 Don't include <sysdep.h> nor <init-arch.h>.
32632 (_ZGVbN4vv_powf): Removed.
32633 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32634 ...
32635 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32636 Don't include <sysdep.h> nor <init-arch.h>.
32637 (_ZGVdN8vv_powf): Removed.
32638 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32639 ...
32640 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32641 Don't include <sysdep.h> nor <init-arch.h>.
32642 (_ZGVeN16vvv_sincosf): Removed.
32643 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32644 ...
32645 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32646 Don't include <sysdep.h> nor <init-arch.h>.
32647 (_ZGVbN4vvv_sincosf): Removed.
32648 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32649 ...
32650 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32651 Don't include <sysdep.h> nor <init-arch.h>.
32652 (_ZGVdN8vvv_sincosf): Removed.
32653 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32654 ...
32655 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32656 Don't include <sysdep.h> nor <init-arch.h>.
32657 (_ZGVeN16v_sinf): Removed.
32658 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32659 ...
32660 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32661 Don't include <sysdep.h> nor <init-arch.h>.
32662 (_ZGVbN4v_sinf): Removed.
32663 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32664 ...
32665 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32666 Don't include <sysdep.h> nor <init-arch.h>.
32667 (_ZGVdN8v_sinf): Removed.
32668
32669 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32670
32671 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32672 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32673 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32674 s_rint-sse4_1 and s_rintf-sse4_1.
32675 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32676 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32677 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32678 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32679 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32680 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32681 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32682 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32683 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32684 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32685 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32686 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32687 (__ceil): Removed.
32688 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32689 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32690 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32691 (__ceilf): Removed.
32692 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32693 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32694 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32695 (__floor): Removed.
32696 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32697 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32698 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32699 (__floorf): Removed.
32700 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32701 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32702 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32703 (__nearbyint): Removed.
32704 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32705 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32706 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32707 (__nearbyintf): Removed.
32708 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32709 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32710 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32711 (__rint): Removed.
32712 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32713 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32714 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32715 (__rintf): Removed.
32716
32717 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32718
32719 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32720 SHARED. Avoid dynamic relocation against main in static PIE.
32721
32722 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32723
32724 [BZ #21815]
32725 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32726 (LDFLAGS-tst-prelink): Likewise.
32727
32728 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32729
32730 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32731 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32732 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32733 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32734 (INTERNAL_SYSCALL_NCS): Likewise.
32735 (LOADARGS_1): Likewise.
32736 (LOADARGS_5): Likewise.
32737 (RESTOREARGS_1): Likewise.
32738 (RESTOREARGS_5): Likewise.
32739
32740 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32741
32742 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32743 (MEMPCPY_SYMBOL): Likewise.
32744 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32745 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32746 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32747 in libc.a.
32748 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32749 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32750 Likewise.
32751 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32752 (__hidden_ver1): Don't use in libc.a.
32753 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32754 (__mempcpy): Don't create a weak alias in libc.a.
32755 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32756 libc.a.
32757 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32758 (__hidden_ver1): Don't use in libc.a.
32759
32760 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32761
32762 * config.make.in (have-insert): New.
32763 * configure.ac (libc_cv_insert): New. Set to yes if linker
32764 supports INSERT in linker script.
32765 (AC_SUBST(libc_cv_insert): New.
32766 * configure: Regenerated.
32767 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32768 if $(have-insert) == yes.
32769
32770 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32771
32772 * elf/Makefile (tests): Add vismain only if
32773 $(have-protected-data) == yes.
32774 (tests-pie): Likewise.
32775
32776 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32777
32778 [BZ #21871]
32779 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32780 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32781
32782 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32783
32784 [BZ #21790]
32785 * sysdeps/i386/i586/memset.S
32786 (__memset_zero_constant_len_parameter): Removed.
32787 * sysdeps/i386/i686/memset.S
32788 (__memset_zero_constant_len_parameter): Likewise.
32789 * sysdeps/i386/i686/multiarch/memset_chk.S
32790 (__memset_zero_constant_len_parameter): Likewise.
32791 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32792 Likewise.
32793
32794 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32795
32796 * stdlib/getentropy.c (getentropy): Change return type to int.
32797
32798 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32799
32800 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32801
32802 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32803
32804 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32805 u_intN_t.
32806 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32807 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32808 Likewise.
32809 (ieee_float_shape_type): Likewise.
32810 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32811 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32812 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32813 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32814 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32815 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32816 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32817 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32818 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32819 Likewise.
32820 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32821 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32822 (__ieee754_yn): Likewise.
32823 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32824 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32825 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32826 Likewise.
32827 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32828 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32829 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32830 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32831 (__erfc): Likewise.
32832 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32833 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32834 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32835 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32836 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32837 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32838 Likewise.
32839 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32840 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32841 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32842 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32843 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32844 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32845 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32846 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32847 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32848 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32849 (__issignaling): Likewise.
32850 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32851 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32852 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32853 Likewise.
32854 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32855 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32856 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32857 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32858 Likewise.
32859 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32860 Likewise.
32861 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32862 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32863 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32864 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32865 (__erfcf): Likewise.
32866 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32867 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32868 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32869 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32870 Likewise.
32871 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32872 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32873 Likewise.
32874 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32875 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32876 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32877 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32878 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32879 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32880 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32881 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32882 Likewise.
32883 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32884 Likewise.
32885 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32886 Likewise.
32887 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32888 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32889 Likewise.
32890 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32891 Likewise.
32892 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32893 (__ieee754_ynl): Likewise.
32894 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32895 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32896 Likewise.
32897 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32898 Likewise.
32899 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32900 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32901 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32902 Likewise.
32903 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32904 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32905 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32906 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32907 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32908 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32909 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32910 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32911 Likewise.
32912 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32913 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32914 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32915 Likewise.
32916 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32917 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32918 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32919 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32920 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32921 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32922 Likewise.
32923 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32924 Likewise.
32925 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32926 Likewise.
32927 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32928 Likewise.
32929 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32930 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32931 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32932 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32933 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32934 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32935 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32936 Likewise.
32937 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32938 Likewise.
32939 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32940 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32941 Likewise.
32942 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32943 (__ieee754_remainderl): Likewise.
32944 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32945 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32946 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32947 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32948 Likewise.
32949 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32950 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32951 Likewise.
32952 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32953 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32954 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32955 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32956 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32957 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32958 Likewise.
32959 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32960 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32961 (__ieee754_y0l): Likewise.
32962 (pzero): Likewise.
32963 (qzero): Likewise.
32964 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32965 (__ieee754_y1l): Likewise.
32966 (pone): Likewise.
32967 (qone): Likewise.
32968 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32969 (__ieee754_ynl): Likewise.
32970 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32971 (__ieee754_lgammal_r): Likewise.
32972 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32973 Likewise.
32974 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32975 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32976 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32977 (__erfcl): Likewise.
32978 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32979 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32980 Likewise.
32981 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32982 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32983 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32984 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32985 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32986 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32987 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32988 Likewise.
32989 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32990 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32991 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32992 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32993 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32994 Likewise.
32995 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32996 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32997 Likewise.
32998 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32999 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33000 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33001 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33002 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33003
33004 2017-08-03 Florian Weimer <fweimer@redhat.com>
33005
33006 [BZ #21885]
33007 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33008 on memory allocation failure.
33009
33010 2017-08-03 Alan Modra <amodra@gmail.com>
33011
33012 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33013 tst-tlsopt-powerpc.c with function name change and no test harness.
33014 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33015 Call tls_get_addr_opt_test.
33016 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33017 (modules-names): Add mod-tlsopt-powerpc.
33018 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33019 (tst-tlsopt-powerpc): Depend on .so.
33020 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33021 define. Expand use in TLS_GD and TLS_LD.
33022
33023 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33024
33025 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33026 function.
33027 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33028
33029 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33030
33031 [BZ #21686]
33032 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33033 comparing size with that of double.
33034 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33035 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33036 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33037 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33038 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33039 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33040 unsigned __int128 types.
33041
33042 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33043
33044 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33045 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33046 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33047 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33048 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33049
33050 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33051
33052 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33053
33054 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33055
33056 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33057 of SHARED.
33058 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33059 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33060 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33061 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33062 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33063 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33064 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33065
33066 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33067
33068 [BZ #21685]
33069 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33070 bit-field expressions passed to sizeof or typeof.
33071 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33072 (__TGMATH_F128): Likewise.
33073 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33074 (__TGMATH_CF128): Likewise.
33075 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33076 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33077 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33078 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33079 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33080 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33081 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33082 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33083 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33084 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33085 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33086 (__TGMATH_UNARY_IMAG): Likewise.
33087 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33088 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33089 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33090 type.
33091 (define_vars_for_type): Handle bit_field type specially.
33092 (Tests.__init__): Declare structure with bit-field element.
33093
33094 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33095
33096 [BZ #21791]
33097 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33098 (MEMCPY_CHK): Define only if SHARED is defined.
33099 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33100 Likewise.
33101 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33102 Likewise.
33103
33104 See ChangeLog.18 for earlier changes.