]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
Use Linux 5.0 in build-many-glibcs.py.
[thirdparty/glibc.git] / ChangeLog
1 2019-03-13 Joseph Myers <joseph@codesourcery.com>
2
3 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
4 version to 5.0.
5 (Context.checkout_tar): Handle variable major version for Linux
6 kernel.
7
8 2019-03-13 Florian Weimer <fweimer@redhat.com>
9
10 [BZ #24047]
11 * sysdeps/mach/hurd/res_enable_icmp.c: New file.
12
13 2019-03-13 Zack Weinberg <zackw@panix.com>
14
15 * sysdeps/generic/inttypes.h, sysdeps/generic/stdint.h:
16 Move to stdlib.
17 * include/inttypes.h: Adjust to match.
18 * include/stdint.h: New wrapper.
19
20 2019-03-13 Zack Weinberg <zackw@panix.com>
21
22 * scripts/check-obsolete-constructs.py: New test script.
23 * scripts/check-installed-headers.sh: Remove tests for
24 obsolete typedefs, superseded by check-obsolete-constructs.py.
25 * Rules: Run scripts/check-obsolete-constructs.py over $(headers)
26 as a special test. Update commentary.
27 * posix/bits/types.h (__SQUAD_TYPE, __S64_TYPE): Define as __int64_t.
28 (__UQUAD_TYPE, __U64_TYPE): Define as __uint64_t.
29 Update commentary.
30 * posix/sys/types.h (__u_intN_t): Remove.
31 (u_int8_t): Typedef using __uint8_t.
32 (u_int16_t): Typedef using __uint16_t.
33 (u_int32_t): Typedef using __uint32_t.
34 (u_int64_t): Typedef using __uint64_t.
35
36 2019-03-13 Stefan Liebler <stli@linux.ibm.com>
37
38 * elf/dl-sysdep.c (_dl_show_auxv): Remove condition and always
39 call _dl_procinfo.
40 * sysdeps/unix/sysv/linux/s390/dl-procinfo.h (_dl_procinfo):
41 Ignore types other than AT_HWCAP.
42 * sysdeps/sparc/dl-procinfo.h (_dl_procinfo): Likewise.
43 * sysdeps/unix/sysv/linux/i386/dl-procinfo.h (_dl_procinfo):
44 Likewise.
45 * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Adjust comment
46 in the case of falling back to generic output mechanism.
47 * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_dl_procinfo):
48 Likewise.
49
50 2019-03-12 Florian Weimer <fweimer@redhat.com>
51
52 * elf/elf.h (DF_1_KMOD, DF_1_WEAKFILTER, DF_1_NOCOMMON): Define.
53
54 2019-03-12 Florian Weimer <fweimer@redhat.com>
55
56 [BZ #24047]
57 resolv: Enable full ICMP errors for UDP DNS sockets
58 * resolv/res_enable_icmp.c: New file.
59 * resolv/Makefile (libresolv-routines): Add res_enable_icmp.
60 * resolv/resolv-internal.h (__res_enable_icmp): Declare.
61 * resolv/res_send.c (reopen): Call __res_enable_icmp on new
62 socket.
63
64 2019-03-11 Mao Han <han_mao@c-sky.com>
65
66 * elf/elf.h (EF_CSKY_ABIMASK, EF_CSKY_OTHER, EF_CSKY_PROCESSOR)
67 (EF_CSKY_ABIV1, EF_CSKY_ABIV2, SHT_CSKY_ATTRIBUTES): New defines.
68
69 2019-03-11 Mao Han <han_mao@c-sky.com>
70
71 * sysdeps/csky/abiv2/start.S: Mark lr as undefined.
72 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
73 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
74
75 2019-03-11 Mao Han <han_mao@c-sky.com>
76
77 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
78 directly.
79 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
80 definition.
81
82 2019-03-11 Mao Han <han_mao@c-sky.com>
83
84 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
85 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
86 in mcontext_t
87
88 2019-03-08 Mike FABIAN <mfabian@redhat.com>
89
90 [BZ #24307]
91 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
92 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
93 Unicode 12.0.0.
94 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
95 * localedata/unicode-gen/PropList.txt: Likewise.
96 * localedata/unicode-gen/UnicodeData.txt: Likewise.
97 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
98 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
99 * localedata/charmaps/UTF-8: Regenerate.
100 * localedata/locales/i18n_ctype: Likewise.
101 * localedata/locales/tr_TR: Likewise.
102 * localedata/locales/translit_circle: Likewise.
103 * localedata/locales/translit_cjk_compat: Likewise.
104 * localedata/locales/translit_combining: Likewise.
105 * localedata/locales/translit_compat: Likewise.
106 * localedata/locales/translit_font: Likewise.
107 * localedata/locales/translit_fraction: Likewise.
108
109 2019-03-07 Joseph Myers <joseph@codesourcery.com>
110
111 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
112 than after operators.
113 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
114 (setitimer_locked): Likewise.
115 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
116 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
117 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
118 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
119 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
120 (PPC_CPU_SUPPORTED): Likewise.
121 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
122 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
123 (stat_overflow): Likewise.
124 (statfs_overflow): Likewise.
125 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
126 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
127 (eq_ttyname_r): Likewise.
128 (run_chroot_tests): Likewise.
129
130 2019-03-07 Florian Weimer <fweimer@redhat.com>
131
132 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
133 header check.
134
135 2019-03-07 Martin Liska <mliska@suse.cz>
136
137 * math/Makefile: Change location where math-vector-fortran.h is
138 installed.
139 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
140 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
141 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
142 * scripts/check-installed-headers.sh: Skip Fortran header files.
143 * scripts/check-wrapper-headers.py: Likewise.
144
145 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
146
147 * nptl/nptl-init.c (__have_futex_clock_realtime,
148 __have_futex_clock_realtime): Remove definition.
149 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
150 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
151 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
152 __ASSUME_FUTEX_CLOCK_REALTIME support.
153 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
154 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
155 * sysdeps/unix/sysv/linux/kernel-features.h
156 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
157 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
158 Adjust comment.
159
160 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
161
162 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
163 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
164 __GI___wcscpy and wcscpy.
165
166 2019-03-04 Florian Weimer <fweimer@redhat.com>
167
168 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
169 declaration.
170 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
171 defined.
172
173 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
174
175 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
176 * sysdeps/s390/s390-32/sysdep.h: Likewise.
177
178 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
179
180 [BZ #24162]
181 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
182 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
183
184 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
185
186 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
187 tests.
188 (do_test): Likewise.
189 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
190 (do_test_call_varg): Likewise.
191 (do_test_call_rarg): Likewise.
192 * sysdeps/ieee754/ldbl-opt/Makefile
193 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
194 tst-nldbl-error.
195 ($(objpfx)tst-nldbl-warn.c): New rule.
196 ($(objpfx)tst-nldbl-error.c): Likewise.
197 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
198 New variables.
199
200 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
201
202 [BZ #23984]
203 * include/bits/error-ldbl.h: New file.
204 * include/error.h: Include stdarg.h. Declare internal functions
205 __error_internal and __error_at_line_internal.
206 * misc/Makefile (headers): Add bits/error-ldbl.h.
207 * misc/bits/error-ldbl.h: New file.
208 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
209 avoid the inclusion of bits/error.h.
210 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
211 and __nldbl_error_at_line.
212 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
213 (__nldbl_error, __ndlbl_error_at_line): New functions.
214 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
215 Redirect error and error_at_line.
216 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
217 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
218 Likewise.
219 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
220 Likewise.
221 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
222 Likewise.
223 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
224 Likewise.
225 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
226 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
227 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
228
229 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
230
231 [BZ #23984]
232 * include/bits/err-ldbl.h: New file.
233 * include/err.h: Add prototypes for the internal functions:
234 __vwarnx_internal and __vwarn_internal.
235 * misc/Makefile (headers): Add bits/err-ldbl.h.
236 * misc/bits/err-ldbl.h: New file.
237 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
238 defined, i.e.: when -mlong-double-64 is in use.
239 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
240 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
241 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
242 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
243 (VA_CALL): New macro.
244 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
245 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
246 functions.
247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
248 declare prototypes for the new functions.
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 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
263
264 * sysdeps/ieee754/ldbl-opt/Makefile
265 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
266 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
267 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
268
269 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
270
271 [BZ #23983]
272 * argp/Makefile (headers): Add bits/argp-ldbl.h.
273 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
274 * argp/bits/argp-ldbl.h: New file.
275 * include/argp.h: Include stdarg.h. Add prototypes for internal
276 functions: __argp_error_internal and __argp_failure_internal.
277 * include/bits/argp-ldbl.h: New file.
278 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
279 __nldbl_argp_error and __nldbl_argp_failure.
280 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
281 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
282 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
283 Redirect argp_error and argp_failure calls.
284 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
286 Likewise.
287 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
288 Likewise.
289 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
290 Likewise.
291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
292 Likewise.
293 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
294 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
295 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
296
297 2019-03-01 Florian Weimer <fweimer@redhat.com>
298
299 [BZ #20419]
300 * elf/tst-big-note-lib.S: Create a syntactically valid note.
301 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
302 code, to avoid creating an ABI tag note.
303 (modules-names-nobuild): Add tst-big-note-lib.
304
305 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
306
307 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
308 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
309
310 2019-03-01 Florian Weimer <fweimer@redhat.com>
311
312 [BZ #20271]
313 * sysdeps/unix/sysv/linux/netlink_assert_response.c
314 (__netlink_assert_response): Add additional missing newlines.
315
316 2019-02-28 Joseph Myers <joseph@codesourcery.com>
317
318 * sysdeps/powerpc/powerpc32/dl-machine.c
319 (__elf_machine_fixup_plt): Use space before '('.
320 (__process_machine_rela): Likewise.
321 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
322 Likewise.
323 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
324 Likewise.
325 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
326 Likewise.
327 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
328 (pattern): Likewise.
329 (delta): Likewise.
330 (check_result): Likewise.
331 (check_excepts): Likewise.
332 (check_op): Likewise.
333 (fail_xr): Likewise.
334 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
335 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
336 (SCNHSZ): Likewise.
337 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
338 Likewise.
339 (ARGS): Likewise.
340 (__makecontext): Likewise.
341 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
342 Likewise.
343
344 2019-02-28 Florian Weimer <fweimer@redhat.com>
345
346 [BZ #23937]
347 elf: Add test with a local IFUNC resolver.
348 * elf/ifuncmain9.c: New file.
349 * elf/ifuncmain9pic.c: Likewise.
350 * elf/ifuncmain9picstatic.c: Likewise.
351 * elf/ifuncmain9pie.c: Likewise.
352 * elf/ifuncmain9static.c: Likewise.
353 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
354 ifuncmain9static, ifuncmain9picstatic.
355 * elf/Makefile [multi-arch && build-shared] (tests-internal):
356 Add ifuncmain9, ifuncmain9pic.
357 * elf/Makefile [multi-arch && build-shared && have-fpie]
358 (ifunc-pie-tests): Add ifuncmain9pie.
359 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
360 (CFLAGS-ifuncmain9picstatic.c): Likewise.
361 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
362
363 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
364
365 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
366 * configure: Regenerated.
367 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
368
369 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
370
371 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
372 symbol as __wcspcy instead of wcscpy.
373
374 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
375
376 * include/stdio.h (__renameat2): New hidden prototype.
377 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
378 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
379 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
380 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
381
382 2019-02-27 Joseph Myers <joseph@codesourcery.com>
383
384 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
385 if statement.
386
387 * benchtests/bench-strcpy.c (do_test): Use space before '('.
388 * benchtests/bench-string.h (cmdline_process_function): Likewise.
389 * benchtests/bench-strlen.c (do_test): Likewise.
390 (test_main): Likewise.
391 * catgets/gencat.c (read_old): Likewise.
392 * elf/cache.c (load_aux_cache): Likewise.
393 * iconvdata/bug-iconv8.c (do_test): Likewise.
394 * math/test-tgmath-ret.c (do_test): Likewise.
395 * nis/nis_call.c (rec_dirsearch): Likewise.
396 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
397 * nptl/tst-audit-threads.c (do_test): Likewise.
398 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
399 * nss/nss_test1.c (init): Likewise.
400 * nss/test-netdb.c (test_hosts): Likewise.
401 * posix/execvpe.c (maybe_script_execute): Likewise.
402 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
403 * stdio-common/tst-printf.c (do_test): Likewise.
404 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
405 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
406 * stdlib/qsort.c (STACK_SIZE): Likewise.
407 * stdlib/test-canon.c (do_test): Likewise.
408 * stdlib/tst-swapcontext1.c (do_test): Likewise.
409 * string/memcmp.c (OPSIZ): Likewise.
410 * string/test-strcpy.c (do_test): Likewise.
411 (do_random_tests): Likewise.
412 * string/test-strlen.c (do_test): Likewise.
413 (test_main): Likewise.
414 * string/test-strrchr.c (do_test): Likewise.
415 (do_random_tests): Likewise.
416 * string/tester.c (test_memrchr): Likewise.
417 (test_memchr): Likewise.
418 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
419 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
420 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
421 (read_encoded_value_with_base): Likewise.
422 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
423 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
424 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
425 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
426 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
427 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
428 Likewise.
429 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
430 Likewise.
431 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
432 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
433 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
434 Likewise.
435 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
436 Likewise.
437 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
438 Likewise.
439 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
440 Likewise.
441 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
442 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
443 (FP_XSTATE_MAGIC2_SIZE): Likewise.
444 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
445 * time/test_time.c (main): Likewise.
446
447 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
448
449 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
450
451 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
452 wmemcpy.
453
454 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
455 wmemcpy.
456
457 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
458
459 * include/wchar.h (__wcscpy): New prototype.
460 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
461 (__wcscpy): Route internal symbol to generic implementation.
462 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
463 Add internal __wcscpy alias.
464 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
465 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
466 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
467 * wcsmbs/wcscpy.c (wcscpy): Add
468 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
469 use generic implementation.
470 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
471
472 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
473 wmemset.
474
475 * sysdeps/m68k/wcpcpy.c: Remove file.
476 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
477
478 2019-02-26 Joseph Myers <joseph@codesourcery.com>
479
480 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
481 than after operators.
482 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
483 * sysdeps/mach/hurd/getcwd.c
484 (__hurd_canonicalize_directory_name_internal): Likewise.
485 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
486 (pthread_mutex_consistent): Likewise.
487 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
488 Likewise.
489 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
490 (__pthread_mutex_transfer_np): Likewise.
491 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
492 (__pthread_mutex_unlock): Likewise.
493 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
494 (mtx_owned_p): Likewise.
495 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
496 (pthread_mutexattr_getrobust): Likewise.
497 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
498 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
499 Likewise.
500 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
501 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
502 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
503 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
504 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
505 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
506 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
507 Likewise.
508 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
509 Likewise.
510 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
511 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
512 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
513 (____longjmp_chk): Likewise.
514 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
515 Likewise.
516 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
517 (INTERNAL_SYSCALL): Likewise.
518 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
519 (INTERNAL_SYSCALL): Likewise.
520 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
521 (__get_clockfreq_via_cpuinfo): Likewise.
522
523 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
524 comments.
525 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
526 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
527 (WORD_COPY_BWD): Likewise.
528 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
529 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
530 Likewise.
531 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
532 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
533 comment.
534 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
535
536 2019-02-25 Joseph Myers <joseph@codesourcery.com>
537
538 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
539 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
540 rather than after operators.
541 * elf/cache.c (print_cache): Likewise.
542 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
543 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
544 * hurd/hurdinit.c (_hurd_setproc): Likewise.
545 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
546 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
547 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
548 (reauth_proc): Likewise.
549 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
550 (__file_name_split_at): Likewise.
551 (__directory_name_split_at): Likewise.
552 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
553 * hurd/port2fd.c (_hurd_port2fd): Likewise.
554 * iconv/gconv_dl.c (do_print): Likewise.
555 * inet/netinet/in.h (struct sockaddr_in): Likewise.
556 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
557 * locale/setlocale.c (new_composite_name): Likewise.
558 * malloc/memusagestat.c (main): Likewise.
559 * misc/fstab.c (fstab_convert): Likewise.
560 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
561 Likewise.
562 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
563 (getgrent_next_file): Likewise.
564 (internal_getgrnam_r): Likewise.
565 (internal_getgrgid_r): Likewise.
566 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
567 Likewise.
568 (internal_getgrent_r): Likewise.
569 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
570 (getpwent_next_nss): Likewise.
571 (getpwent_next_file): Likewise.
572 (internal_getpwnam_r): Likewise.
573 (internal_getpwuid_r): Likewise.
574 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
575 Likewise.
576 (getspent_next_nss): Likewise.
577 (internal_getspnam_r): Likewise.
578 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
579 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
580 * string/strchr.c (STRCHR): Likewise.
581 * string/strchrnul.c (STRCHRNUL): Likewise.
582 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
583 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
584 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
585 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
586 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
587 Likewise.
588 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
589 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
590 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
591 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
592 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
593 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
594 (open_file): Likewise.
595 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
596 (pthread_mutexattr_setprotocol): Likewise.
597 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
598 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
599 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
600 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
601 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
602 Likewise.
603 (elf_machine_rela): Likewise.
604 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
605 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
606 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
607 * sysdeps/posix/rename.c (rename): Likewise.
608 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
609 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
610 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
611 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
612 * sysdeps/unix/grantpt.c (grantpt): Likewise.
613 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
614 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
615 Likewise.
616 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
617 Likewise.
618 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
619 * time/tzfile.c (__tzfile_compute): Likewise.
620
621 2019-02-22 Joseph Myers <joseph@codesourcery.com>
622
623 * benchtests/bench-memmem.c (simple_memmem): Break lines before
624 rather than after operators.
625 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
626 * crypt/md5.c (md5_finish_ctx): Likewise.
627 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
628 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
629 * elf/cache.c (load_aux_cache): Likewise.
630 * elf/dl-load.c (open_verify): Likewise.
631 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
632 * elf/readelflib.c (process_elf_file): Likewise.
633 * elf/rtld.c (dl_main): Likewise.
634 * elf/sprof.c (generate_call_graph): Likewise.
635 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
636 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
637 * hurd/dtable.c (reauth_dtable): Likewise.
638 * hurd/getdport.c (__getdport): Likewise.
639 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
640 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
641 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
642 Likewise.
643 * hurd/hurdioctl.c (fioctl): Likewise.
644 * hurd/hurdselect.c (_hurd_select): Likewise.
645 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
646 (STOPSIGS): Likewise.
647 * hurd/hurdstartup.c (_hurd_startup): Likewise.
648 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
649 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
650 * hurd/msgportdemux.c (msgport_server): Likewise.
651 * hurd/setauth.c (_hurd_setauth): Likewise.
652 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
653 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
654 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
655 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
656 * login/tst-utmp.c (do_check): Likewise.
657 (simulate_login): Likewise.
658 * mach/lowlevellock.h (lll_lock): Likewise.
659 (lll_trylock): Likewise.
660 * math/test-fenv.c (ALL_EXC): Likewise.
661 * math/test-fenvinline.c (ALL_EXC): Likewise.
662 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
663 * nis/nis_call.c (__do_niscall3): Likewise.
664 * nis/nis_callback.c (cb_prog_1): Likewise.
665 * nis/nis_defaults.c (searchaccess): Likewise.
666 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
667 * nis/nis_ismember.c (internal_ismember): Likewise.
668 * nis/nis_local_names.c (nis_local_principal): Likewise.
669 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
670 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
671 Likewise.
672 * nis/ypclnt.c (yp_match): Likewise.
673 (yp_first): Likewise.
674 (yp_next): Likewise.
675 (yp_master): Likewise.
676 (yp_order): Likewise.
677 * nscd/hstcache.c (cache_addhst): Likewise.
678 * nscd/initgrcache.c (addinitgroupsX): Likewise.
679 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
680 (internal_getpwuid_r): Likewise.
681 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
682 * posix/glob.h (__GLOB_FLAGS): Likewise.
683 * posix/regcomp.c (peek_token): Likewise.
684 (peek_token_bracket): Likewise.
685 (parse_expression): Likewise.
686 * posix/regexec.c (sift_states_iter_mb): Likewise.
687 (check_node_accept_bytes): Likewise.
688 * posix/tst-spawn3.c (do_test): Likewise.
689 * posix/wordexp-test.c (testit): Likewise.
690 * posix/wordexp.c (parse_tilde): Likewise.
691 (exec_comm): Likewise.
692 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
693 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
694 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
695 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
696 * stdio-common/tst-fileno.c (do_test): Likewise.
697 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
698 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
699 * stdlib/strtod_l.c (round_and_return): Likewise.
700 (____STRTOF_INTERNAL): Likewise.
701 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
702 * string/strcspn.c (STRCSPN): Likewise.
703 * string/test-memmem.c (simple_memmem): Likewise.
704 * termios/tcsetattr.c (tcsetattr): Likewise.
705 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
706 * time/asctime.c (asctime_internal): Likewise.
707 * time/strptime_l.c (__strptime_internal): Likewise.
708 * time/sys/time.h (timercmp): Likewise.
709 * time/tzfile.c (__tzfile_compute): Likewise.
710
711 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
712
713 [BZ #21915]
714 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
715
716 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
717
718 * argp/argp-help.c (__argp_error_internal): New function,
719 renamed from __argp_error, but that takes a 'mode_flags'
720 parameter to control the format of long double parameters.
721 (__argp_error): Converted into a call __argp_error_internal.
722 (__argp_failure_internal): New function, renamed from
723 __argp_failure, but that takes a 'mode_flags' parameter.
724 (__argp_failure): Converted into a call __argp_failure_internal.
725 * misc/err.c (__vwarnx_internal): New function, renamed from
726 vwarnx, but that takes a 'mode_flags' parameter.
727 (vwarnx): Converted into a call to __vwarnx_internal.
728 (__vwarn_internal): New function, renamed from vwarn, but that
729 takes a 'mode_flags' parameter.
730 (vwarn): Converted into a call to __vwarn_internal.
731 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
732 call to __vfxprintf with 'mode_flags'.
733 (__error_internal): New function, renamed from error, but that
734 takes a 'mode_flags' parameter.
735 (error): Converted into a call to __error_internal.
736 (__error_at_line_internal): New function, renamed from
737 error_at_line, but that takes a 'mode_flags' parameter.
738 (error_at_line): Converted into a call to
739 __error_at_line_internal.
740 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
741 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
742 Likewise.
743
744 2019-02-20 Martin Liska <mliska@suse.cz>
745
746 * math/Makefile: Install math-vector-fortran.h.
747 * bits/math-vector-fortran.h: New file.
748 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
749
750 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
751
752 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
753 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
754
755 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
756
757 * nptl/pthread_mutex_trylock.c: Fix comment.
758
759 2019-02-19 Carlos O'Donell <carlos@redhat.com>
760
761 * nptl/pthread_tryjoin.c: Fix comment.
762
763 2019-02-18 Joseph Myers <joseph@codesourcery.com>
764
765 [BZ #24231]
766 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
767 after R_SPARC_H34 case.
768
769 2019-02-18 Florian Weimer <fweimer@redhat.com>
770
771 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
772 (getanswer): Do not call Dprintf.
773 (res_gethostbyname2_context): Likewise.
774 (res_gethostbyaddr_context): Likewise.
775
776 2019-02-18 Florian Weimer <fweimer@redhat.com>
777
778 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
779 declaration.
780 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
781 Remove definitions.
782 * libio/stdfiles.c: Update comment.
783 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
784 set _IO_stdin, _IO_stdout, _IO_stderr.
785 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
786 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
787 inline function.
788 (_IO_deallocate_file): New inline function.
789 * libio/iolibio.h (_IO_vprintf): Remove definition.
790 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
791 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
792 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
793 _IO_legacy_file.
794 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
795 __builtin_expect. Use _IO_legacy_file.
796
797 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
798
799 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
800 Initialize ctid with a known value and remove update of ctid
801 after clone.
802 (wait_tid): Adjust arguments and call futex_wait with ctid_val
803 as assumed current value of ctid_ptr.
804
805 2019-02-15 Florian Weimer <fweimer@redhat.com>
806
807 Check that non-sysdeps headers have wrapper headers.
808 * scripts/check-wrapper-headers.py: New file.
809 * Makefile (tests-special): Add check-wrapper-headers.out.
810 (check-wrapper-headers.out): New target.
811 * Rules (tests-special): Add check-wrapper-headers.out.
812 (check-wrapper-headers.out): New target.
813
814 2019-02-15 Florian Weimer <fweimer@redhat.com>
815
816 Add missing header wrappers under include/.
817 * include/ar.h: New file.
818 * include/bits/mqueue2.h: Likewise.
819 * include/bits/stdio.h: Likewise.
820 * include/bits/stdio2.h: Likewise.
821 * include/fstab.h: Likewise.
822 * include/fts.h: Likewise.
823 * include/lastlog.h: Likewise.
824 * include/netinet/icmp6.h: Likewise.
825 * include/netinet/igmp.h: Likewise.
826 * include/netinet/ip6.h: Likewise.
827 * include/re_comp.h: Likewise.
828 * include/regexp.h: Likewise.
829 * include/rpcsvc/bootparam.h: Likewise.
830 * include/rpcsvc/yp_prot.h: Likewise.
831 * include/sys/random.h: Likewise.
832 * include/sys/stropts.h: Likewise.
833 * include/sys/ttychars.h: Likewise.
834 * include/sys/vfs.h: Likewise.
835 * include/wait.h: Likewise.
836
837 2019-02-15 Florian Weimer <fweimer@redhat.com>
838
839 * nptl_db/proc_service.h: Move to ...
840 * sysdeps/nptl/proc_service.h: ... here.
841 * nptl_db/thread_db.h: Move to ...
842 * sysdeps/nptl/thread_db.h: ... here.
843 * nptl/descr.h: Include <thread_db.h>.
844
845 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
846
847 * io/Makefile (tests): Add tst-lockf.
848 * io/lockf.c (lockf): Use __fcntl and only define for
849 !__OFF_T_MATCHES_OFF64_T.
850 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
851 __OFF_T_MATCHES_OFF64_T case.
852 * io/tst-lockf.c: New file.
853 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
854 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
855 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
856 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
857 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
858 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
859 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
860 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
861 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
862
863 2019-02-15 Florian Weimer <fweimer@redhat.com>
864
865 [BZ #24211]
866 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
867 pd->result after the thread descriptor has been freed.
868
869 2019-02-15 Joseph Myers <joseph@codesourcery.com>
870
871 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
872 from function return type.
873
874 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
875
876 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
877
878 * scripts/test_printers_common.py: Set TERM to a known harmless
879 value.
880
881 2019-02-14 Joseph Myers <joseph@codesourcery.com>
882
883 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
884 (xdr_u_int): Likewise.
885 (xdr_enum): Likewise.
886 (xdr_bytes): Reword fall-through comment.
887 (xdr_string): Likewise.
888
889 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
890
891 [BZ #2421]
892 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
893 (tests): Add tst-join8 tst-join9.
894 * nptl/lll_timedwait_tid.c: Remove file.
895 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
896 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
897 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
898 * nptl/pthread_join_common.c (timedwait_tid): New function.
899 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
900 is set.
901 * nptl/tst-join5.c (thread_join): New function.
902 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
903 check.
904 * nptl/tst-join8.c: New file.
905 * nptl/tst-join9.c: Likewise.
906 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
907 lll_futex_timed_wait_cancel): Add generic macros.
908 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
909 Remove definitions.
910 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
911 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
912 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
913 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
914 Remove function.
915 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
916 Likewise.
917 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
918 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
919 (lll_futex_timed_wait_cancel): New macro.
920
921 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
922
923 * benchtests/Makefile: Add malloc-simple benchmark.
924 * benchtests/bench-malloc-simple.c: New benchmark.
925
926 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
927
928 * benchtests/bench-memmove.c (do_one_test): Remove unused
929 ORIG_SRC.
930 (do_test): Adjust.
931 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
932 ORIG_SRC.
933 (do_test): Adjust.
934
935 2019-01-13 Jim Wilson <jimw@sifive.com>
936
937 [BZ #24040]
938 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
939 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
940 (func): New.
941 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
942 call func directly.
943 * nptl/Makefile (tests): Add tst-unwind-thread.
944 (CFLAGS-tst-unwind-thread.c): Define.
945 * nptl/tst-unwind-thread.c: New file.
946 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
947 as undefined.
948
949 2019-02-13 Joseph Myers <joseph@codesourcery.com>
950
951 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
952 comment wording.
953 * nis/nis_call.c (__do_niscall3): Likewise.
954
955 * catgets/gencat.c (normalize_line): Use braces around empty
956 'else' body.
957 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
958 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
959 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
960 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
961 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
962 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
963 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
964 definition.
965
966 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
967 execlp returns.
968
969 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
970
971 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
972 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
973 * benchtests/bench-strchr.c (stupid_strchr): Remove.
974 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
975 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
976 * benchtests/bench-strlen.c (builtin_strlen): Remove.
977 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
978 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
979 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
980 * benchtests/bench-strspn.c (stupid_strspn): Remove.
981 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
982 * benchtests/bench-bcopy.c: Delete file.
983 * benchtests/bench-bzero.c: Likewise.
984 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
985 (simple_memccpy): Remove.
986 (generic_memccpy): Add function.
987 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
988 * benchtests/bench-memmove.c (simple_bcopy): Remove.
989 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
990 (generic_mempcpy): Add new function.
991 * benchtests/bench-memset.c (simple_bzero): Remove.
992 (builtin_bzero): Remove.
993 (builtin_memset): Remove.
994 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
995 (generic_rawmemchr): Add new function.
996
997 2019-02-12 Florian Weimer <fweimer@redhat.com>
998
999 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
1000
1001 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1002
1003 [BZ #24122]
1004 * elf/Makefile (tests): Add tst-audit13.
1005 (modules-names): Add tst-audit13mod1.
1006 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1007 rule.
1008 * elf/tst-audit13.c: New file.
1009 * elf/tst-audit13mod1.c: Likewise.
1010
1011 2019-02-12 Florian Weimer <fweimer@redhat.com>
1012
1013 [BZ #24122]
1014 * elf/rtld.c (unload_audit_module): New function.
1015 (report_audit_module_load_error): Likewise.
1016 (load_audit_module): Likewise. Extracted from dl_main. Call
1017 _dl_close if the laversion symbol cannot be found. Use early
1018 returns for error handling. Add malloc error check. Check for a
1019 zero return value from la_version. Remove spurious comment about
1020 static TLS initialization. Remove useless casts.
1021 (notify_audit_modules_of_loaded_object): New function. Extracted
1022 from dl_main.
1023 (load_audit_module): Likewise.
1024 (dl_main): Call load_audit_modules.
1025
1026 2019-02-12 Joseph Myers <joseph@codesourcery.com>
1027
1028 * elf/dl-exception.c (_dl_exception_create_format): Add
1029 fall-through comments.
1030 * elf/ldconfig.c (parse_conf_include): Likewise.
1031 * elf/rtld.c (print_statistics): Likewise.
1032 * locale/programs/charmap.c (parse_charmap): Likewise.
1033 * misc/mntent_r.c (__getmntent_r): Likewise.
1034 * posix/wordexp.c (parse_arith): Likewise.
1035 (parse_backtick): Likewise.
1036 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
1037 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
1038 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1039
1040 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
1041
1042 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
1043 Use float instead of double.
1044
1045 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1046
1047 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
1048
1049 2019-02-08 Joseph Myers <joseph@codesourcery.com>
1050
1051 * sysdeps/powerpc/bits/mathinline.h: Remove.
1052
1053 2019-02-08 Florian Weimer <fweimer@redhat.com>
1054
1055 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
1056 * math/bits/math-finite.h: Move to ...
1057 * bits/math-finite.h: ... here.
1058
1059 2019-02-08 Florian Weimer <fweimer@redhat.com>
1060
1061 * sysdeps/generic/bits/unistd_ext.h: Move to ...
1062 * bits/unistd_ext.h: here.
1063
1064 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
1065
1066 [BZ #21915]
1067 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
1068 * nss/tst-nss-files-hosts-long.c: New file.
1069 * nss/tst-nss-files-hosts-long.root: New directory.
1070 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
1071 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
1072
1073 2019-02-08 Florian Weimer <fweimer@redhat.com>
1074
1075 * include/bits/unistd_ext.h: Remove file.
1076 * posix/bits/unistd_ext.h: Move to ...
1077 * sysdeps/generic/bits/unistd_ext.h: ... here.
1078
1079 2019-02-08 Florian Weimer <fweimer@redhat.com>
1080
1081 * include/bits/unistd_ext.h: New file.
1082
1083 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1084
1085 * time/tst-strftime2.c: Use array_length macros instead of magic
1086 numbers.
1087
1088 2019-02-08 Florian Weimer <fweimer@redhat.com>
1089
1090 [BZ #24161]
1091 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1092 argument.
1093 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1094 locking if the new do_locking argument is true.
1095 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1096 __run_fork_handlers.
1097
1098 2019-02-08 Florian Weimer <fweimer@redhat.com>
1099
1100 [BZ #6399]
1101 Linux: Add gettid system call wrapper.
1102 * posix/Makefile (headers): Add bits/unistd_ext.h.
1103 * posix/bits/unistd_ext.h: New file.
1104 * posix/unistd.h: Include it.
1105 * manual/process.texi (Process Identification): Document gettid.
1106 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1107 tst-gettid, tst-gettid-kill.
1108 (tst-gettid): Link with $(shared-thread-library).
1109 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1110 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1111 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1112 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1113 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1114 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1115 Add gettid.
1116 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1117 Likewise.
1118 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1119 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1120 Likewise.
1121 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1122 Likewise.
1123 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1124 Likewise.
1125 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1126 Likewise.
1127 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1128 Likewise.
1129 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1130 Likewise.
1131 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1132 Likewise.
1133 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1134 (GLIBC_2.30): Likewise.
1135 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1136 (GLIBC_2.30): Likewise.
1137 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1138 (GLIBC_2.30): Likewise.
1139 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1140 (GLIBC_2.30): Likewise.
1141 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1142 Likewise.
1143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1144 (GLIBC_2.30): Likewise.
1145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1146 (GLIBC_2.30): Likewise.
1147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1148 (GLIBC_2.30): Likewise.
1149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1150 (GLIBC_2.30): Likewise.
1151 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1152 Likewise.
1153 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1154 Likewise.
1155 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1156 Likewise.
1157 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1158 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1159 Likewise.
1160 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1161 Likewise.
1162 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1163 Likewise.
1164 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1165 Likewise.
1166 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1167
1168 2019-02-07 Florian Weimer <fweimer@redhat.com>
1169
1170 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1171 compatibility symbols.
1172
1173 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1174
1175 [BZ #24180]
1176 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1177 Add compiler barriers and comments.
1178
1179 2019-02-07 Florian Weimer <fweimer@redhat.com>
1180
1181 * include/array_length.h (array_length): Do not use a statement
1182 expression and _Static_assert, so that array_length can be used at
1183 file scope and as a constant expression.
1184
1185 2019-02-07 Florian Weimer <fweimer@redhat.com>
1186
1187 * support/xdlfcn.h (xdlmopen): Declare.
1188 * support/xdlmopen.c: New file.
1189 * support/Makefile (libsupport-routines): Add xdlmopen.
1190
1191 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1192
1193 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1194 before return type, without separate inline.
1195 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1196 * elf/dl-tunables.h (tunable_is_name): Likewise.
1197 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1198 (do_set_top_pad): Likewise.
1199 (do_set_mmap_threshold): Likewise.
1200 (do_set_mmaps_max): Likewise.
1201 (do_set_mallopt_check): Likewise.
1202 (do_set_perturb_byte): Likewise.
1203 (do_set_arena_test): Likewise.
1204 (do_set_arena_max): Likewise.
1205 (do_set_tcache_max): Likewise.
1206 (do_set_tcache_count): Likewise.
1207 (do_set_tcache_unsorted_limit): Likewise.
1208 * nis/nis_subr.c (count_dots): Likewise.
1209 * nptl/allocatestack.c (advise_stack_range): Likewise.
1210 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1211 (do_sin): Likewise.
1212 (reduce_sincos): Likewise.
1213 (do_sincos): Likewise.
1214 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1215 (do_set_elision_enable): Likewise.
1216 (TUNABLE_CALLBACK_FNDECL): Likewise.
1217
1218 2019-02-06 Florian Weimer <fweimer@redhat.com>
1219
1220 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1221 (xdlsym): Use dlerror to detect a NULL symbol.
1222
1223 2019-02-06 Florian Weimer <fweimer@redhat.com>
1224
1225 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1226 <stap-probe.h>.
1227 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1228
1229 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1230
1231 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1232
1233 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1234
1235 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1236 __wmemcmp and weak alias to wmemcmp.
1237
1238 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1239
1240 [BZ #23403]
1241 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1242 TLS_TCB_AT_TP tls variant.
1243 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1244 Add alignment checks.
1245 * support/Makefile (libsupport-routines): Add xposix_memalign and
1246 xpthread_setstack.
1247 * support/support.h: Add xposix_memalign.
1248 * support/xthread.h: Add xpthread_attr_setstack.
1249 * support/xposix_memalign.c: New File.
1250 * support/xpthread_attr_setstack.c: Likewise.
1251
1252 2019-02-05 Florian Weimer <fweimer@redhat.com>
1253
1254 [BZ #24164]
1255 arm: Use "nr" constraint for Systemtap probes, to avoid the
1256 compiler using memory operands for constants, due to the "o"
1257 alternative in the default "nor" constraint.
1258 * include/stap-probe.h [USE_STAP_PROBE]: Include
1259 <stap-probe-machine.h>
1260 * sysdeps/generic/stap-probe-machine.h: New file.
1261 * sysdeps/arm/stap-probe-machine.h: Likewise.
1262
1263 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1264
1265 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1266 with 0, not tcache->entries[tc_idx].
1267
1268 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1269 once.
1270
1271 2019-02-04 Andreas Schwab <schwab@suse.de>
1272
1273 [BZ #16976]
1274 [BZ #17396]
1275 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1276 looking up collating elements match against (wide) character
1277 sequence instead of name. Correct alignment adjustment.
1278 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1279 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1280 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1281 (LOCALES): Add cs_CZ.ISO-8859-2.
1282 * posix/tst-fnmatch4.c: New file.
1283 * posix/tst-fnmatch5.c: New file.
1284 * include/wchar.h (__wmemcmp): Declare.
1285 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1286 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1287 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1288 * sysdeps/s390/wmemcmp.c: Likewise.
1289
1290 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 [BZ #24155]
1293 CVE-2019-7309
1294 * NEWS: Updated for CVE-2019-7309.
1295 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1296 upper 32 bits of RDX register for x32. Use unsigned Jcc
1297 instructions, instead of signed.
1298 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1299 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1300
1301 2019-02-04 Florian Weimer <fweimer@redhat.com>
1302
1303 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1304 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1305 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1306 Likewise.
1307 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1308 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1309 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1310 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1311 Likewise.
1312 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1313 Likewise.
1314 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1315 Likewise.
1316 (posix_spawn_file_actions_addopen): Likewise.
1317 (posix_spawn_file_actions_addclose): Likewise.
1318 (posix_spawn_file_actions_adddup2): Likewise.
1319 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1320 qualifiers.
1321 (posix_spawn_file_actions_addfchdir_np): Likewise.
1322
1323 2019-02-04 David Newall <glibc@davidnewall.com>
1324
1325 elf: Implement --preload option for the dynamic linker.
1326 * elf/rtld.c (preloadarg): New variable.
1327 (handle_preload_list): Pass through “where” argument to
1328 do_preload.
1329 (dl_main): Handle "--preload" and add second call to
1330 handle_preload_list.
1331 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1332 (tst-rtld-preload-OBJS): Set variable.
1333 (tst-rtld-preload.out): New target.
1334 * elf/tst-rtld-preload.sh: New file.
1335
1336 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1337
1338 * Makefile (testrun.sh): Exit in case of incorrect argument.
1339
1340 2019-02-04 Florian Weimer <fweimer@redhat.com>
1341
1342 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1343 alignment gaps.
1344
1345 2019-02-03 Florian Weimer <fweimer@redhat.com>
1346
1347 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1348 implicit overflow checks.
1349
1350 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1351
1352 * stdlib/isomac.c: Include <unistd.h>.
1353
1354 2019-02-03 Florian Weimer <fweimer@redhat.com>
1355
1356 * include/time.h (__tzfile_default): Use int, not long int, for
1357 the GMT offsets.
1358 * time/tzfile.c (struct ttinfo): Change type of the offset member
1359 to int.
1360 (__tzfile_read): Remove useless cast.
1361 (__tzfile_default): Adjust prototype.
1362 * time/tzset.c (tz_rule): Change type of the offset member to int.
1363 (parse_offset): Change the type of the sign variable to int.
1364
1365 2019-02-03 Florian Weimer <fweimer@redhat.com>
1366
1367 [BZ #24153]
1368 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1369 * libio/getchar.c (getchar): Likewise.
1370 * libio/getchar_u.c (getchar_unlocked): Likewise.
1371 * libio/getwchar.c (getwchar): Likewise.
1372 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1373 * libio/iogets.c (_IO_gets): Likewise.
1374 * libio/vscanf.c (_IO_vscanf): Likewise.
1375 * libio/vwscanf.c (__vwscanf): Likewise.
1376 * libio/tst-bz24153.c: New file.
1377 * libio/Makefile (tests): Add it.
1378
1379 2019-02-02 Florian Weimer <fweimer@redhat.com>
1380
1381 [BZ #14829]
1382 * manual/resource.texi (Basic Scheduling Functions): Add
1383 portability note. Change process to task throughout the section.
1384 Remove incorrect comment about sched_yield as it affects
1385 tasks/threads, not entire processes.
1386 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1387 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1388
1389 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1390
1391 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1392 * configure: Regenerated.
1393 * manual/install.texi (Tools for Compilation): Update minimum GCC
1394 version.
1395 * INSTALL: Regenerated.
1396
1397 2019-02-01 Florian Weimer <fweimer@redhat.com>
1398
1399 * support/support_test_compare_string.c
1400 (support_test_compare_string): Use "string" in error message.
1401 * support/tst-test_compare_string.c (do_test): Adjust.
1402
1403 2019-02-01 Florian Weimer <fweimer@redhat.com>
1404
1405 * support/support_format_address_family.c
1406 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1407
1408 2019-02-01 Florian Weimer <fweimer@redhat.com>
1409
1410 * manual/socket.texi (Internet Address Formats): Clarify the byte
1411 order of struct sockaddr_in, struct sockaddr_in6. Document
1412 sin6_flowinfo and sin6_scope_id.
1413
1414 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1415
1416 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1417 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1418 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1419 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1420 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1421 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1422
1423 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1424
1425 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1426 [!MEMCHR](MEMCHR): Set to __memchr.
1427 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1428 Add memchr_generic and memchr_nosimd.
1429 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1430 (__libc_ifunc_impl_list): Add memchr ifuncs.
1431 * sysdeps/aarch64/multiarch/memchr.c: New file.
1432 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1433 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1434
1435 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1436
1437 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1438 Add memset_emag.
1439 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1440 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1441 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1442 Add IS_EMAG check for ifunc dispatch.
1443 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1444 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1445
1446 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1447
1448 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1449 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1450 Add emag.
1451 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1452 New macro.
1453
1454 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1455
1456 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1457
1458 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1459
1460 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1461 syscall-template file.
1462
1463 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1464 Torvald Riegel <triegel@redhat.com>
1465 Rik Prohaska <prohaska7@gmail.com>
1466
1467 [BZ# 23844]
1468 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1469 tst-rwlock-trywrlock-stall.
1470 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1471 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1472 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1473 Set __wrphase_fute to 1 only if we started the write phase.
1474 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1475 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1476 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1477 * support/xpthread_rwlock_destroy.c: New file.
1478 * support/xthread.h: Declare xpthread_rwlock_destroy.
1479
1480 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1481
1482 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1483 version to 4.0.2.
1484
1485 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1486
1487 [BZ #24051]
1488 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1489 * libio/fileops.c (_IO_new_file_underflow): Likewise
1490 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1491 * libio/putchar.c (putchar): Likewise.
1492 * libio/putchar_u.c (putchar_unlocked): Likewise.
1493 * libio/putwchar.c (putchar): Likewise.
1494 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1495 * libio/tst-bz24051.c: New test.
1496 * libio/Makefile (tests): Add tst-bz24051
1497
1498 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1499
1500 regex: fix read overrun [BZ #24114]
1501 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1502 https://debbugs.gnu.org/34140
1503 * posix/regexec.c (proceed_next_node):
1504 Do not read past end of input buffer.
1505
1506 2019-01-31 Florian Weimer <fweimer@redhat.com>
1507
1508 [BZ #24059]
1509 * nss/nss_files/files-alias.c (get_next_alias): Handle
1510 continuation line without newline at the end.
1511 * nss/tst-nss-files-alias-truncated.c: New file.
1512 * nss/Makefile [$(build-shared)] (tests): Add
1513 tst-nss-files-alias-truncated.
1514 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1515 * support/namespace.h (struct support_chroot_configuration): Add
1516 aliases member.
1517 (struct support_chroot): Add path_aliases member.
1518 * support/support_chroot.c (support_chroot_create): Handle
1519 aliases.
1520 (support_chroot_free): Free path_aliases.
1521
1522 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1523
1524 * version.h (RELEASE): Set to "development".
1525 (VERSION): Set to "2.29.9000".
1526 * NEWS: Add section for 2.30.
1527
1528 * version.h (RELEASE): Set to "stable".
1529 (VERSION): Set to "2.29".
1530 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1531
1532 * NEWS: Add the list of bugs fixed in 2.29.
1533 * manual/contrib.texi: Update contributors list with some more
1534 names.
1535 * manual/install.texi: Update latest versions of packages
1536 tested.
1537 * INSTALL: Regenerated.
1538
1539 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1540
1541 * po/be.po: Update translations.
1542 * po/bg.po: Likewise.
1543 * po/ca.po: Likewise.
1544 * po/cs.po: Likewise.
1545 * po/da.po: Likewise.
1546 * po/de.po: Likewise.
1547 * po/el.po: Likewise.
1548 * po/eo.po: Likewise.
1549 * po/es.po: Likewise.
1550 * po/fi.po: Likewise.
1551 * po/fr.po: Likewise.
1552 * po/gl.po: Likewise.
1553 * po/hr.po: Likewise.
1554 * po/hu.po: Likewise.
1555 * po/ia.po: Likewise.
1556 * po/id.po: Likewise.
1557 * po/it.po: Likewise.
1558 * po/ja.po: Likewise.
1559 * po/ko.po: Likewise.
1560 * po/lt.po: Likewise.
1561 * po/nb.po: Likewise.
1562 * po/nl.po: Likewise.
1563 * po/pl.po: Likewise.
1564 * po/pt_BR.po: Likewise.
1565 * po/ru.po: Likewise.
1566 * po/rw.po: Likewise.
1567 * po/sk.po: Likewise.
1568 * po/sl.po: Likewise.
1569 * po/sv.po: Likewise.
1570 * po/tr.po: Likewise.
1571 * po/uk.po: Likewise.
1572 * po/vi.po: Likewise.
1573 * po/zh_CN.po: Likewise.
1574 * po/zh_TW.po: Likewise.
1575
1576 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1577
1578 [BZ #24130]
1579 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1580 of $f3 register on $y_is_neg path.
1581
1582 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1583
1584 [BZ #24110]
1585 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1586 sigaltstack.ss_flags.
1587
1588 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1589
1590 [BZ #23758]
1591 * manual/time.texi (strftime): Document "%Ey".
1592 * time/strftime_l.c (__strftime_internal): Set the default width
1593 padding with zero of "%Ey" to 2.
1594
1595 [BZ #24096]
1596 * manual/time.texi (strftime): Document "%EC" and "%EY".
1597 * time/Makefile (tests): Add tst-strftime2.
1598 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1599 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1600 override padding for "%Ey".
1601 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1602 "%Ey" in the subformat as if decorated with that flag.
1603 * time/tst-strftime2.c: New file.
1604
1605 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1606
1607 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1608 are not defined.
1609
1610 [BZ #24122]
1611 * elf/Makefile (tests): Add tst-audit13.
1612 (modules-names): Add tst-audit13mod1.
1613 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1614 rule.
1615 * elf/rtld.c (dl_main): Handle invalid audit module version.
1616 * elf/tst-audit13.c: New file.
1617 * elf/tst-audit13mod1.c: Likewise.
1618
1619 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1620
1621 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1622 returned by __hurd_at_flags.
1623 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1624 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1625 directly instead of __hurd_file_name_lookup.
1626
1627 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1628
1629 * scripts/build-many-glibcs.py (Context.checkout): Default
1630 binutils version to 2.32 branch.
1631
1632 2019-01-21 Florian Weimer <fweimer@redhat.com>
1633
1634 [BZ #20018]
1635 CVE-2016-10739
1636 resolv: Reject trailing characters in host names
1637 * include/arpa/inet.h (__inet_aton_exact): Declare.
1638 (inet_aton): Remove hidden prototype. No longer used internally.
1639 * nscd/gai.c (__inet_aton): Do not define.
1640 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1641 * nss/digits_dots.c (__inet_aton): Likewise.
1642 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1643 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1644 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1645 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1646 (tst-resolv-trailing): Likewise.
1647 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1648 libc.
1649 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1650 Make static. Add endp parameter.
1651 (__inet_aton_exact): New function.
1652 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1653 (__inet_addr): Call inet_aton_end.
1654 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1655 not just IPv6. Call __inet_aton_exact.
1656 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1657 (tests): Make const. Add additional test cases with trailing
1658 characters.
1659 (do_test): Use array_length.
1660 * resolv/tst-inet_aton_exact.c: New file.
1661 * resolv/tst-resolv-trailing.c: Likewise.
1662 * resolv/tst-resolv-nondecimal.c: Likewise.
1663 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
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/strlen-avx2.S: Use RSI_LP for length.
1670 Clear the upper 32 bits of RSI register.
1671 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1672 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1673 and tst-size_t-wcsnlen.
1674 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1675 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1676
1677 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1678
1679 [BZ# 24097]
1680 CVE-2019-6488
1681 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1682 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1683 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1684 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1685 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1686
1687 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1688
1689 [BZ# 24097]
1690 CVE-2019-6488
1691 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1692 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1693 * sysdeps/x86_64/strcmp.S: Likewise.
1694 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1695 tst-size_t-strncmp and tst-size_t-wcsncmp.
1696 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1697 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1698 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
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/memset-avx512-no-vzeroupper.S: Use
1705 RDX_LP for length. Clear the upper 32 bits of RDX register.
1706 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1707 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1708 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1709 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1710
1711 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1712
1713 [BZ# 24097]
1714 CVE-2019-6488
1715 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1716 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1717 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1718 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1719
1720 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1721
1722 [BZ# 24097]
1723 CVE-2019-6488
1724 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1725 length. Clear the upper 32 bits of RDX register.
1726 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1727 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1728 Likewise.
1729 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1730 Likewise.
1731 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1732 tst-size_t-wmemchr.
1733 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1734
1735 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1736
1737 [BZ# 24097]
1738 CVE-2019-6488
1739 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1740 length. Clear the upper 32 bits of RDX register.
1741 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1742 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1743 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1744 tst-size_t-wmemcmp.
1745 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1746 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1747
1748 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 [BZ# 24097]
1751 CVE-2019-6488
1752 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1753 upper 32 bits of RDX register.
1754 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1755 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1756 tst-size_t-wmemchr.
1757 * sysdeps/x86_64/x32/test-size_t.h: New file.
1758 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1759 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1760
1761 2019-01-18 Florian Weimer <fweimer@redhat.com>
1762
1763 [BZ #24112]
1764 resolv: Do not send queries for non-host-names in nss_dns.
1765 * resolv/nss_dns/dns-host.c (check_name): New function.
1766 (_nss_dns_gethostbyname2_r): Use it.
1767 (_nss_dns_gethostbyname_r): Likewise.
1768 (_nss_dns_gethostbyname4_r): Likewise.
1769
1770 2019-01-21 Florian Weimer <fweimer@redhat.com>
1771
1772 * resolv/inet_addr.c: Reformat to GNU style.
1773 (__inet_addr, __inet_aton): Update comment.
1774
1775 2019-01-18 Florian Weimer <fweimer@redhat.com>
1776
1777 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1778 ("malloc: Use current (C11-style) atomics for fastbin access").
1779 This commit introduces a substantial performance regression on
1780 POWER and Aarch64.
1781 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1782 (REMOVE_FB): Define.
1783 (_int_malloc): Use it and reindent.
1784 (_int_free): Use CAS loop with
1785 catomic_compare_and_exchange_val_rel.
1786 (malloc_consolidate): Use atomic_exchange_acq.
1787
1788
1789 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1790
1791 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1792 -Wl,-z,now.
1793 (LDFLAGS-tst-minsigstksz-2): Likewise.
1794 (LDFLAGS-tst-minsigstksz-3): Likewise.
1795 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1796 (LDFLAGS-tst-minsigstksz-4): Likewise.
1797
1798 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1799
1800 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1801 than "alternate".
1802
1803 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1804
1805 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1806
1807 2019-01-16 Zack Weinberg <zackw@panix.com>
1808
1809 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1810 (xget_sigstack_location): New test support functions.
1811 * support/xsigstack.c: New file, implementing them.
1812 * support/tst-xsigstack.c: New test for them.
1813 * support/Makefile: Update.
1814
1815 * signal/tst-minsigstksz-1.c
1816 * signal/tst-minsigstksz-2.c
1817 * signal/tst-minsigstksz-3.c
1818 * signal/tst-minsigstksz-3a.c
1819 * signal/tst-minsigstksz-4.c: New tests.
1820 * signal/Makefile: Run them.
1821
1822 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1823
1824 * po/libc.pot: Regenerate.
1825
1826 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1827
1828 * math/libm-test-fma.inc (fma_test_data): Set
1829 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1830
1831 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1832
1833 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1834 (do_test): Changed __vector __int128_t to __vector unsigned int.
1835
1836 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1837
1838 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1839 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1840 stpcpy-avx2 and stpncpy-avx2.
1841 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1842 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1843 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1844 and __stpncpy_avx2.
1845 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1846 ifunc-strcpy.h}: rename header for a more generic name.
1847 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1848 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1849 AVX unaligned load is fast and vzeroupper is preferred.
1850 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1851 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1852 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1853 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1854 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1855 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1856
1857 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1858
1859 * argp/argp-help.c: Fix typo in comment.
1860 * misc/sys/cdefs.h: Likewise.
1861 * posix/regexec.c (sift_states_iter_mb): Likewise.
1862 * socket/sockatmark.c: Likewise.
1863 * socket/sys/socket.h: Likewise.
1864 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1865 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1866 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1867 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1868 * sysdeps/unix/sockatmark.c: Likewise.
1869 * time/strptime_l.c: Likewise.
1870
1871 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1872
1873 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1874 missing space after the cast of "_NL_CURRENT".
1875
1876 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1877
1878 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1879 ifdef to fix read of VSCR.
1880 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1881 tst-ucontext-ppc64-vscr.c to test list.
1882 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1883
1884 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1885
1886 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1887 fall-through.
1888
1889 2019-01-09 Jim Wilson <jimw@sifive.com>
1890
1891 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1892
1893 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1894
1895 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1896 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1897 __memcpy_falkor for ares.
1898 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1899 Add new define.
1900 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1901 Add ares cpu.
1902
1903 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 [BZ #24066]
1906 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1907 4_FP_W_TYPEs are used for IEEE quad precision.
1908 * soft-fp/extendhftf2.c: Likewise.
1909 * soft-fp/extendsftf2.c: Likewise.
1910 * soft-fp/extendxftf2.c: Likewise.
1911 * soft-fp/trunctfdf2.c: Likewise.
1912 * soft-fp/trunctfhf2.c: Likewise.
1913 * soft-fp/trunctfsf2.c: Likewise.
1914 * soft-fp/trunctfxf2.c: Likewise.
1915 * sysdeps/alpha/ots_cvttx.c: Likewise.
1916 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1917 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1918 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1919 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1920 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1921 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1922 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1923 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1924 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1925 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1926 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1927 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1928 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1929 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1930 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1931 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1932 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1933
1934 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1935
1936 [BZ #24024]
1937 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1938 code with -fmath-errno.
1939 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1940 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1941 * string/test-strerror-errno.c: New file.
1942
1943 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1944
1945 [BZ #24046]
1946 * localedata/locales/en_US (date_fmt): Add, set to
1947 "%a %d %b %Y %r %Z".
1948
1949 2019-01-07 Florian Weimer <fweimer@redhat.com>
1950
1951 [BZ #24063]
1952 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1953 instead of @var{errno}.
1954 (Parsing of Integers): Likewise.
1955 (Parsing of Floats): Likewise.
1956 * manual/filesys.texi (Working with Directory Trees): Likewise.
1957 (Temporary Files): Likewise.
1958 * manual/job.texi (Terminal Access Functions): Likewise.
1959 * manual/llio.texi (Synchronizing I/O): Likewise.
1960 * manual/math.texi (SVID Random): Likewise.
1961 * manual/message.texi (The catgets Functions): Likewise.
1962 (Translation with gettext): Likewise.
1963 (Locating gettext catalog): Likewise.
1964 (Charset conversion in gettext): Likewise.
1965 * manual/nss.texi (NSS Module Function Internals): Likewise.
1966 * manual/search.texi (Hash Search Function): Likewise.
1967 * manual/setjmp.texi (System V contexts): Likewise.
1968 * manual/time.texi (Sleeping): Likewise.
1969 * manual/users.texi (Lookup User): Likewise.
1970 (Lookup Group): Likewise.
1971
1972 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1973
1974 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1975 fix typo.
1976
1977 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1978
1979 [BZ #19444]
1980 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1981 __builtin_unreachable for default case in switch.
1982 (__ieee754_yn): Likewise.
1983 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1984 (__ieee754_ynl): Likewise.
1985 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1986 (__ieee754_ynl): Likewise.
1987 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1988 (__ieee754_ynl): Likewise.
1989
1990 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1991
1992 * manual/maint.texi: Use @{ and @}.
1993
1994 2019-01-04 Florian Weimer <fweimer@redhat.com>
1995
1996 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1997 function.
1998 (do_in_chroot_1): Call it.
1999 (run_chroot_tests):
2000 Improve error reporting in case it is not possible to create a
2001 collision for the PTY name required by the test.
2002
2003 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2004
2005 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
2006 lll_wait_tid with timeout.
2007 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
2008 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
2009 futex_reltimed_wait_cancelable for cancelabla mode.
2010 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
2011 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
2012 macros.
2013 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
2014 * sysdeps/posix/waitid.c (__sigwait): Likewise.
2015 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
2016 SYSCALL_CANCEL_NCS): New macro.
2017 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
2018 (lll_timedwait_tid): Remove macro.
2019 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
2020 Likewise.
2021 (lll_timedwait_tid): Likewise.
2022 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
2023 Likewise.
2024 (lll_timedwait_tid): Likewise.
2025 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
2026 Likewise.
2027 (lll_timedwait_tid): Likewise.
2028 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
2029 Use INTERNAL_SYSCALL_CANCEL.
2030 * sysdeps/unix/sysv/linux/futex-internal.h
2031 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
2032 instead of __pthread_{enable,disable}_asynccancel.
2033 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
2034 (lll_futex_wait_cancel): New macro.
2035
2036 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2037 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2038
2039 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
2040 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
2041
2042 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
2043 in backtrace analysis.
2044 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
2045 side-effects.
2046 (tf_send): Likewise.
2047
2048 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
2049 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
2050 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
2051 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
2052 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2053 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
2054 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
2055 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
2056 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
2057 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
2058 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
2059 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
2060 Likewise.
2061 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
2062 tst-cancel-wrappers.sh.
2063 (generated): Remove tst-cancel-wrappers.out.
2064 (tst-cancel-wrappers.out): Remove rule.
2065 * nptl/tst-cancel-wrappers.sh: Remove file.
2066
2067 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
2068
2069 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
2070 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
2071 Update.
2072
2073 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2074
2075 [BZ #23640]
2076 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2077 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2078 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2079 close-on-exec reset for adddup2 file action.
2080 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2081
2082 2019-01-03 Zack Weinberg <zackw@panix.com>
2083
2084 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2085 parameter. Only use deprecated scanf when __USE_GNU is defined
2086 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2087 than 201103L, whichever is relevant for the language being compiled.
2088
2089 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2090 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2091 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2092 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2093 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2094
2095 * libio/iovsscanf.c
2096 * libio/fwscanf.c
2097 * libio/iovswscanf.c
2098 * libio/swscanf.c
2099 * libio/vscanf.c
2100 * libio/vwscanf.c
2101 * libio/wscanf.c
2102 * stdio-common/fscanf.c
2103 * stdio-common/scanf.c
2104 * stdio-common/vfscanf.c
2105 * stdio-common/vfwscanf.c
2106 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2107 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2108 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2109 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2110 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2111 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2112 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2113 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2114 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2115 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2116 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2117 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2118 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2119 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2120 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2121
2122 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2123 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2124 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2125 not sscanf.
2126 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2127 with a preprocessor macro.
2128
2129 * stdio-common/bug21.c, stdio-common/scanf14.c:
2130 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2131 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2132 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2133 to xscanf, xfscanf, xsscanf.
2134
2135 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2136 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2137 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2138 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2139 xfscanf, xsscanf.
2140 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2141 override feature selection macros or provide definitions of u_char etc.
2142 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2143 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2144 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2145 with -std=gnu89.
2146
2147 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2148
2149 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2150 bits/termios-misc.h.
2151 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2152 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2153 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2154 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2155 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2156 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2157
2158 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2159 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2160 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2161 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2162 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2163 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2164 termios-misc.h.
2165 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2166 (sysdep_headers): Add termios-misc.h.
2167
2168 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2169 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2170 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2171
2172 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2173 termios-tcflow.h.
2174 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2175 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2176 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2177 TCSAFLUSH): Move to termios-tcflow.h.
2178 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2179 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2180 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2181 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2182
2183 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2184 termios-c_lflag.h.
2185 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2186 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2187 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2188 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2189 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2190 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2191 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2192 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2193 Likewise.
2194 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2195 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2196 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2197 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2198
2199 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2200 termios-c_cflag.h.
2201 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2202 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2203 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2204 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2205 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2206 termios-c_cflag.h.
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 [BZ #23783]
2213 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2214 termios-baud.h.
2215 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2216 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2217 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2218 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2219 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2220 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2221 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2222 __MAX_BAUD): Move to termios-baud.h.
2223 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2224 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2225 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2226 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2227 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2228
2229 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2230 termios-c_oflag.h.
2231 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2232 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2233 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2234 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2235 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2236 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2237 termios-c_oflag.h.
2238 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2239 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2240 FFR1): Likewise.
2241 [USE_MISC] (XTABS): Likewise.
2242 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2243 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2244 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2245 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2246
2247 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2248 termios-c_iflag.h.
2249 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2250 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2251 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2252 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2253 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2254 IUTF8): Move to termios-c_iflag.h.
2255 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2256 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2257 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2258 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2259
2260 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2261 termios-cc.h.
2262 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2263 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2264 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2265 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2266 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2267 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2268 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2269 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2270 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2271 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2272 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2273 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2274
2275 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2276 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2277 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2278 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2279 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2280 termios-struct.h.
2281 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2282 termios-struct.h.
2283 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2284 Likewise.
2285 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2286 Likewise.
2287 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2288 Likewise.
2289 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2290 Likewise.
2291 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2292 _HAVE_C_OSPEED): Define.
2293 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2294 _HAVE_C_OSPEED): Likewise.
2295 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2296 _HAVE_C_OSPEED): Likewise.
2297 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2298 (cfsetospeed): Check for define value instead of existence.
2299 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2300 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2301 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2302 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2303 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2304
2305 [BZ #17783]
2306 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2307 Define.
2308 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2309 (TIOCSER_TEMT): Likewise.
2310 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2311 (TEOCSER_TEMT): Likewise.
2312
2313 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2314
2315 [BZ #24011]
2316 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2317
2318 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2319
2320 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2321
2322 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2323
2324 * sysdeps/htl/pt-barrierattr-setpshared.c
2325 (pthread_barrierattr_setpshared): Add stub warning.
2326 * sysdeps/htl/pt-condattr-setpshared.c
2327 (pthread_condattr_setpshared): Likewise.
2328 * sysdeps/htl/pt-mutexattr-setpshared.c
2329 (pthread_mutexattr_setpshared): Likewise.
2330 * sysdeps/htl/pt-rwlockattr-setpshared.c
2331 (pthread_rwlockattr_setpshared): Likewise.
2332 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2333 (pthread_mutexattr_setpshared): Likewise.
2334
2335 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2336
2337 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2338 constants to match with Linux 4.20.
2339
2340 * sysdeps/mips/mips32/libm-test-ulps: Update.
2341 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2342
2343 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2344
2345 [BZ #24034]
2346 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2347 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2348 than __typeof (...) for the a_ptr variable.
2349
2350 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2351
2352 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2353 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2354 * libio/Makefile (tests): Add tst-sprintf-ub and
2355 tst-sprintf-chk-ub.
2356 (CFLAGS-tst-sprintf-ub.c): New variable.
2357 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2358 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2359 destination buffer and check for overflows in fortified mode.
2360 * libio/libioP.h (PRINTF_CHK): New macro.
2361 * libio/tst-sprintf-chk-ub.c: New file.
2362 * libio/tst-sprintf-ub.c: Likewise.
2363
2364 2019-01-02 Florian Weimer <fweimer@redhat.com>
2365
2366 [BZ #24018]
2367 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2368 failure.
2369
2370 2019-01-02 Florian Weimer <fweimer@redhat.com>
2371
2372 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2373
2374 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2375
2376 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2377 macro.
2378
2379 * sysdeps/unix/sysv/linux/netpacket/packet.h
2380 (PACKET_IGNORE_OUTGOING): New macro.
2381
2382 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2383 macro.
2384
2385 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2386 version to 4.20.
2387 (riscv_flush_icache): New syscall.
2388
2389 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2390 trailing whitespace removed.
2391 * scripts/config.guess: Update to version 2019-01-01.
2392 * scripts/config.sub: Update to version 2019-01-01.
2393 * scripts/move-if-change: Update from gnulib.
2394
2395 * NEWS: Update copyright dates.
2396 * catgets/gencat.c (print_version): Likewise.
2397 * csu/version.c (banner): Likewise.
2398 * debug/catchsegv.sh: Likewise.
2399 * debug/pcprofiledump.c (print_version): Likewise.
2400 * debug/xtrace.sh (do_version): Likewise.
2401 * elf/ldconfig.c (print_version): Likewise.
2402 * elf/ldd.bash.in: Likewise.
2403 * elf/pldd.c (print_version): Likewise.
2404 * elf/sotruss.sh: Likewise.
2405 * elf/sprof.c (print_version): Likewise.
2406 * iconv/iconv_prog.c (print_version): Likewise.
2407 * iconv/iconvconfig.c (print_version): Likewise.
2408 * locale/programs/locale.c (print_version): Likewise.
2409 * locale/programs/localedef.c (print_version): Likewise.
2410 * login/programs/pt_chown.c (print_version): Likewise.
2411 * malloc/memusage.sh (do_version): Likewise.
2412 * malloc/memusagestat.c (print_version): Likewise.
2413 * malloc/mtrace.pl: Likewise.
2414 * manual/libc.texinfo: Likewise.
2415 * nptl/version.c (banner): Likewise.
2416 * nscd/nscd.c (print_version): Likewise.
2417 * nss/getent.c (print_version): Likewise.
2418 * nss/makedb.c (print_version): Likewise.
2419 * posix/getconf.c (main): Likewise.
2420 * scripts/test-installation.pl: Likewise.
2421 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2422
2423 * All files with FSF copyright notices: Update copyright dates
2424 using scripts/update-copyrights.
2425 * locale/programs/charmap-kw.h: Regenerated.
2426 * locale/programs/locfile-kw.h: Likewise.
2427
2428 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2429
2430 * timezone/zdump.c: Update from tzcode 2018i.
2431 * timezone/zic.c: Likewise.
2432
2433 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2434
2435 regex: improve Gnulib port to AIX
2436 From the glibc point of view, this removes duplicate macro
2437 definitions and is obviously safe.
2438 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2439 * posix/regex_internal.h:
2440 (__attribute__, __attribute_warn_unused_result__):
2441 Remove; already defined elsewhere.
2442
2443 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2444
2445 [BZ #24027]
2446 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2447 copying operation. (ncopies had the wrong type, resulting in an
2448 integer wraparound and too few elements being copied.)
2449
2450 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2451
2452 [BZ #24022]
2453 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2454 <asm/syscalls.h> exists with __has_include__ before including it.
2455
2456 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2457
2458 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2459 version to 4.20.
2460
2461 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2462
2463 * hurd/lookup-retry: Include <unistd.h>.
2464 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2465 Release it on return. Handle "pid" magical lookup retry.
2466
2467 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2468
2469 [BZ #10496]
2470 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2471 (t_fmt_ampm): Likewise.
2472 * localedata/locales/aa_ER (t_fmt): Likewise.
2473 (t_fmt_ampm): Likewise.
2474 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2475 (t_fmt_ampm): Likewise.
2476 * localedata/locales/aa_ET (t_fmt): Likewise.
2477 (t_fmt_ampm): Likewise.
2478 * localedata/locales/am_ET (t_fmt): Likewise.
2479 (t_fmt_ampm): Likewise.
2480 * localedata/locales/byn_ER (t_fmt): Likewise.
2481 (t_fmt_ampm): Likewise.
2482 * localedata/locales/om_ET (t_fmt): Likewise.
2483 (t_fmt_ampm): Likewise.
2484 * localedata/locales/sid_ET (t_fmt): Likewise.
2485 (t_fmt_ampm): Likewise.
2486 * localedata/locales/so_DJ (t_fmt): Likewise.
2487 (t_fmt_ampm): Likewise.
2488 * localedata/locales/so_ET (t_fmt): Likewise.
2489 (t_fmt_ampm): Likewise.
2490 * localedata/locales/so_SO (t_fmt): Likewise.
2491 (t_fmt_ampm): Likewise.
2492 * localedata/locales/ti_ER (t_fmt): Likewise.
2493 (t_fmt_ampm): Likewise.
2494 * localedata/locales/ti_ET (t_fmt): Likewise.
2495 (t_fmt_ampm): Likewise.
2496 * localedata/locales/tig_ER (t_fmt): Likewise.
2497 (t_fmt_ampm): Likewise.
2498 * localedata/locales/wal_ET (t_fmt): Likewise.
2499 (t_fmt_ampm): Likewise.
2500
2501 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2502 * localedata/locales/ar_IN (t_fmt): Likewise.
2503 * localedata/locales/bhb_IN (t_fmt): Likewise.
2504 * localedata/locales/bho_IN (t_fmt): Likewise.
2505 * localedata/locales/bi_VU (t_fmt): Likewise.
2506 * localedata/locales/bn_BD (t_fmt): Likewise.
2507 * localedata/locales/bn_IN (t_fmt): Likewise.
2508 * localedata/locales/brx_IN (t_fmt): Likewise.
2509 * localedata/locales/doi_IN (t_fmt): Likewise.
2510 * localedata/locales/en_HK (t_fmt): Likewise.
2511 (t_fmt_ampm): Likewise.
2512 * localedata/locales/en_IN (t_fmt): Likewise.
2513 * localedata/locales/en_PH (t_fmt): Likewise.
2514 * localedata/locales/gu_IN (t_fmt): Likewise.
2515 * localedata/locales/hi_IN (t_fmt): Likewise.
2516 * localedata/locales/hif_FJ (t_fmt): Likewise.
2517 * localedata/locales/hne_IN (t_fmt): Likewise.
2518 * localedata/locales/kn_IN (t_fmt): Likewise.
2519 * localedata/locales/kok_IN (t_fmt): Likewise.
2520 * localedata/locales/ks_IN (t_fmt): Likewise.
2521 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2522 * localedata/locales/mag_IN (t_fmt): Likewise.
2523 * localedata/locales/mai_IN (t_fmt): Likewise.
2524 * localedata/locales/mjw_IN (t_fmt): Likewise.
2525 * localedata/locales/ml_IN (t_fmt): Likewise.
2526 * localedata/locales/mni_IN (t_fmt): Likewise.
2527 * localedata/locales/mr_IN (t_fmt): Likewise.
2528 * localedata/locales/ms_MY (t_fmt): Likewise.
2529 * localedata/locales/pa_IN (t_fmt): Likewise.
2530 * localedata/locales/raj_IN (t_fmt): Likewise.
2531 * localedata/locales/sa_IN (t_fmt): Likewise.
2532 * localedata/locales/sat_IN (t_fmt): Likewise.
2533 * localedata/locales/sd_IN (t_fmt): Likewise.
2534 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2535 * localedata/locales/tcy_IN (t_fmt): Likewise.
2536 * localedata/locales/the_NP (t_fmt): Likewise.
2537 * localedata/locales/to_TO (t_fmt): Likewise.
2538 * localedata/locales/ur_IN (t_fmt): Likewise.
2539
2540 * localedata/locales/hif_FJ (d_t_fmt): Set to
2541 "%A %d %b %Y %I:%M:%S %p".
2542 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2543
2544 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2545 * localedata/locales/ar_BH (t_fmt): Likewise.
2546 * localedata/locales/ar_DZ (t_fmt): Likewise.
2547 * localedata/locales/ar_EG (t_fmt): Likewise.
2548 * localedata/locales/ar_IQ (t_fmt): Likewise.
2549 * localedata/locales/ar_JO (t_fmt): Likewise.
2550 * localedata/locales/ar_KW (t_fmt): Likewise.
2551 * localedata/locales/ar_LB (t_fmt): Likewise.
2552 * localedata/locales/ar_LY (t_fmt): Likewise.
2553 * localedata/locales/ar_OM (t_fmt): Likewise.
2554 * localedata/locales/ar_QA (t_fmt): Likewise.
2555 * localedata/locales/ar_SD (t_fmt): Likewise.
2556 * localedata/locales/ar_SS (t_fmt): Likewise.
2557 * localedata/locales/ar_SY (t_fmt): Likewise.
2558 * localedata/locales/ar_TN (t_fmt): Likewise.
2559 * localedata/locales/ar_YE (t_fmt): Likewise.
2560
2561 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2562 (t_fmt_ampm): Likewise.
2563 * localedata/locales/gez_ET (t_fmt): Likewise.
2564 (t_fmt_ampm): Likewise.
2565
2566 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2567 (t_fmt_ampm): Likewise.
2568 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2569
2570 * localedata/locales/zh_HK (t_fmt):
2571 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2572
2573 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2574 because this locale does not use the 12-hour clock.
2575 (t_fmt): Set to "%Z %H:%M:%S".
2576 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2577
2578 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2579 because this locale does not use the 12-hour clock.
2580 (t_fmt): Set to "%H:%M:%S %Z".
2581 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2582
2583 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2584 because this locale does not use the 12-hour clock.
2585 (t_fmt): Set to "%T".
2586 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2587 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2588
2589 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2590 because this locale does not use the 12-hour clock.
2591 (t_fmt): Set to "%H:%M:%S %Z".
2592 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2593
2594 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2595 because this locale does not use the 12-hour clock.
2596 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2597 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2598
2599 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2600
2601 [BZ #10496]
2602 [BZ #23724]
2603 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2604 (t_fmt_ampm): Likewise.
2605 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2606 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2607 (d_fmt): Set to "%-d.%-m.%y".
2608
2609 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2610
2611 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2612 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2613 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2614 Likewise.
2615 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2616 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2617 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2618 function.
2619 * support/blob_repeat.c (check_mul_overflow_size_t,
2620 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2621
2622 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2623
2624 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2625
2626 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2627
2628 regex: simplify Gnulib port
2629 This simplifies the code, by removing stuff intended for porting
2630 to Gnulib but no longer needed there.
2631 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2632 uses of libc_hidden_def, weak_alias.
2633 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2634 _Restrict_ except for public-facing headers.
2635 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2636 Remove; already defined elsewhere.
2637 * posix/regex.c, posix/regex_internal.h:
2638 Use __GNUC_PREREQ instead of rolling our own.
2639 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2640
2641 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2642
2643 * benchtests/bench-strlen.c (generic_strlen): New function.
2644 (memchr_strlen): New function.
2645
2646 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2647
2648 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2649 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2650 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2651
2652 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2653
2654 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2655
2656 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2657
2658 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2659 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2660 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2661 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2662 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2663 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2664 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2665
2666 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2667
2668 [BZ #24023]
2669 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2670 PLT reference in libc.so.
2671 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2672 _Q_lltoq and _Q_qtod PLT references in libc.so.
2673
2674 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2675
2676 * benchtests/bench-memchr.c: Cleanup defines.
2677 * benchtests/bench-memcmp.c: Likewise.
2678 * benchtests/bench-memset.c: Likewise.
2679 * benchtests/bench-memset-large.c: Likewise.
2680 * benchtests/bench-memset-walk.c: Likewise.
2681 * benchtests/bench-stpcpy.c: Likewise.
2682 * benchtests/bench-stpncpy.c: Likewise.
2683 * benchtests/bench-strcat.c: Likewise.
2684 * benchtests/bench-strchr.c: Likewise.
2685 * benchtests/bench-strcmp.c: Likewise.
2686 * benchtests/bench-strcpy.c: Likewise.
2687 * benchtests/bench-strcspn.c: Likewise.
2688 * benchtests/bench-string.h: Likewise.
2689 * benchtests/bench-strlen.c: Likewise.
2690 * benchtests/bench-strncat.c: Likewise.
2691 * benchtests/bench-strncmp.c: Likewise.
2692 * benchtests/bench-strncpy.c: Likewise.
2693 * benchtests/bench-strnlen.c: Likewise.
2694 * benchtests/bench-strpbrk.c: Likewise.
2695 * benchtests/bench-strrchr.c: Likewise.
2696 * benchtests/bench-strspn.c: Likewise.
2697
2698 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2699
2700 * stdlib/longlong.h: Update from GCC.
2701
2702 [BZ #23993]
2703 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2704 * configure: Regenerated.
2705 * manual/install.texi (Tools for Compilation): Update minimum GCC
2706 version.
2707 * INSTALL: Regenerated.
2708
2709 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2710
2711 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2712
2713 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2714
2715 * malloc/malloc.c (mremap_chunk): Additional checks.
2716
2717 2018-12-21 Mao Han <han_mao@c-sky.com>
2718
2719 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2720 * scripts/build-many-glibcs.py: Add C-SKY targets.
2721 * sysdeps/csky/Implies: New file.
2722 * sysdeps/csky/Makefile: Likewise.
2723 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2724 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2725 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2726 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2727 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2728 * sysdeps/csky/abiv2/memmove.S: Likewise.
2729 * sysdeps/csky/abiv2/memset.S: Likewise.
2730 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2731 * sysdeps/csky/abiv2/start.S: Likewise.
2732 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2733 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2734 * sysdeps/csky/abiv2/strlen.S: Likewise.
2735 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2736 * sysdeps/csky/abort-instr.h: Likewise.
2737 * sysdeps/csky/atomic-machine.h: Likewise.
2738 * sysdeps/csky/bits/endian.h: Likewise.
2739 * sysdeps/csky/bits/fenv.h: Likewise.
2740 * sysdeps/csky/bits/link.h: Likewise.
2741 * sysdeps/csky/bits/setjmp.h: Likewise.
2742 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2743 * sysdeps/csky/bsd-setjmp.S: Likewise.
2744 * sysdeps/csky/configure: Likewise.
2745 * sysdeps/csky/configure.ac: Likewise.
2746 * sysdeps/csky/dl-machine.h: Likewise.
2747 * sysdeps/csky/dl-procinfo.c: Likewise.
2748 * sysdeps/csky/dl-procinfo.h: Likewise.
2749 * sysdeps/csky/dl-sysdep.h: Likewise.
2750 * sysdeps/csky/dl-tls.h: Likewise.
2751 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2752 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2753 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2754 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2755 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2756 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2757 * sysdeps/csky/fpu/fegetround.c: Likewise.
2758 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2759 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2760 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2761 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2762 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2763 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2764 * sysdeps/csky/fpu/fesetround.c: Likewise.
2765 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2766 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2767 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2768 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2769 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2770 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2771 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2772 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2773 * sysdeps/csky/fpu_control.h: Likewise.
2774 * sysdeps/csky/gccframe.h: Likewise.
2775 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2776 * sysdeps/csky/ldsodefs.h: Likewise.
2777 * sysdeps/csky/libc-tls.c: Likewise.
2778 * sysdeps/csky/linkmap.h: Likewise.
2779 * sysdeps/csky/machine-gmon.h: Likewise.
2780 * sysdeps/csky/memusage.h: Likewise.
2781 * sysdeps/csky/nofpu/Implies: Likewise.
2782 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2783 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2784 * sysdeps/csky/nptl/Makefile: Likewise.
2785 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2786 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2787 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2788 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2789 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2790 * sysdeps/csky/nptl/tls.h: Likewise.
2791 * sysdeps/csky/preconfigure: Likewise.
2792 * sysdeps/csky/sfp-machine.h: Likewise.
2793 * sysdeps/csky/sotruss-lib.c: Likewise.
2794 * sysdeps/csky/stackinfo.h: Likewise.
2795 * sysdeps/csky/sysdep.h: Likewise.
2796 * sysdeps/csky/tininess.h: Likewise.
2797 * sysdeps/csky/tst-audit.h: Likewise.
2798 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2799 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2800 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2801 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2802 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2803 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2804 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2805 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2806 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2807 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2808 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2809 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2810 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2811 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2812 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2813 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2814 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2815 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2816 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2817 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2818 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2819 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2820 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2821 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2822 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2823 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2824 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2825 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2826 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2827 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2828 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2829 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2830 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2831 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2832 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2833 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2834 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2835 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2836 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2837 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2838 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2839 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2840 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2841 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2842
2843 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2844
2845 * include/time.h (__difftime64): Add.
2846 * time/difftime.c (subtract): convert to 64-bit time.
2847 * time/difftime.c (__difftime64): Add.
2848 * time/difftime.c (__difftime): Wrap around __difftime64.
2849
2850 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2851
2852 * manual/examples/add.c: Remove redundant "if not".
2853 * manual/examples/argp-ex1.c: Likewise.
2854 * manual/examples/argp-ex2.c: Likewise.
2855 * manual/examples/argp-ex3.c: Likewise.
2856 * manual/examples/argp-ex4.c: Likewise.
2857 * manual/examples/atexit.c: Likewise.
2858 * manual/examples/db.c: Likewise.
2859 * manual/examples/dir.c: Likewise.
2860 * manual/examples/dir2.c: Likewise.
2861 * manual/examples/execinfo.c: Likewise.
2862 * manual/examples/filecli.c: Likewise.
2863 * manual/examples/filesrv.c: Likewise.
2864 * manual/examples/fmtmsgexpl.c: Likewise.
2865 * manual/examples/genpass.c: Likewise.
2866 * manual/examples/inetcli.c: Likewise.
2867 * manual/examples/inetsrv.c: Likewise.
2868 * manual/examples/isockad.c: Likewise.
2869 * manual/examples/longopt.c: Likewise.
2870 * manual/examples/memopen.c: Likewise.
2871 * manual/examples/memstrm.c: Likewise.
2872 * manual/examples/mkdirent.c: Likewise.
2873 * manual/examples/mkfsock.c: Likewise.
2874 * manual/examples/mkisock.c: Likewise.
2875 * manual/examples/mygetpass.c: Likewise.
2876 * manual/examples/pipe.c: Likewise.
2877 * manual/examples/popen.c: Likewise.
2878 * manual/examples/rprintf.c: Likewise.
2879 * manual/examples/search.c: Likewise.
2880 * manual/examples/select.c: Likewise.
2881 * manual/examples/setjmp.c: Likewise.
2882 * manual/examples/sigh1.c: Likewise.
2883 * manual/examples/sigusr.c: Likewise.
2884 * manual/examples/stpcpy.c: Likewise.
2885 * manual/examples/strdupa.c: Likewise.
2886 * manual/examples/strftim.c: Likewise.
2887 * manual/examples/subopt.c: Likewise.
2888 * manual/examples/swapcontext.c: Likewise.
2889 * manual/examples/termios.c: Likewise.
2890 * manual/examples/testopt.c: Likewise.
2891 * manual/examples/testpass.c: Likewise.
2892 * manual/examples/timeval_subtract.c: Likewise.
2893
2894 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2895
2896 * sysdeps/x86/fpu/math_private.h: New file.
2897 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2898
2899 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2900 definition.
2901 (cosh): Likewise.
2902 (tanh): Likewise.
2903
2904 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2905
2906 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2907 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2908 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2909 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2910 fields.
2911 (_dl_show_auxv): Give a special treatment to
2912 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2913 and AT_L3_CACHEGEOMETRY.
2914 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2915 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2916 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2917 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2918
2919 2018-12-19 Andreas Schwab <schwab@suse.de>
2920
2921 * nscd/connections.c (check_use): Don't abort on invalid len.
2922
2923 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2924
2925 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2926 values in the 64bit value cases.
2927
2928 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2929
2930 * include/time.h
2931 (__ctime64_r): Add.
2932 * time/ctime_r.c
2933 (__ctime64_r): Add.
2934 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2935
2936 * include/time.h
2937 (__ctime64): Add.
2938 * time/gmtime.c
2939 (__ctime64): Add.
2940 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2941
2942 * include/time.h
2943 (__gmtime64_r): Add.
2944 * time/gmtime.c
2945 (__gmtime64_r): Add.
2946 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2947
2948 * include/time.h
2949 (__gmtime64): Add.
2950 * time/gmtime.c
2951 (__gmtime64): Add.
2952 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2953
2954 * include/time.h
2955 (__localtime64_r): Add.
2956 * time/localtime.c
2957 (__localtime64_r): Add.
2958 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2959
2960 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2961
2962 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2963 kernel_sigction definition.
2964
2965 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2966
2967 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2968
2969 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2970 __syscall_rt_sigaction.
2971 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2972 (kernel_sigaction): Use Linux generic defintion.
2973 (STUB): Define.
2974 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2975 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2976 (__syscall_rt_sigaction): Remove implementation.
2977 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2978 hidden.
2979 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2980 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2981 INTERNAL_SYSCALL): Remove definitions.
2982 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2983 action and signal set size.
2984 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2985 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2986
2987 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2988 James Clarke <jrtc27@jrtc27.com>
2989
2990 [BZ #23967]
2991 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2992 Define if SA_RESTORER is defined.
2993 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2994 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2995 already defined.
2996 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2997 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2998 definitions.
2999 (HAS_SA_RESTORER): Define.
3000 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
3001 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
3002 (HAS_SA_RESTORER): Define.
3003 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
3004 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
3005 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
3006 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
3007 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
3008
3009 2018-12-18 Joseph Myers <joseph@codesourcery.com>
3010
3011 * sysdeps/unix/sysv/linux/kernel-features.h
3012 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
3013 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
3014 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
3015 * sysdeps/unix/sysv/linux/sh/kernel-features.h
3016 (__ASSUME_ST_INO_64_BIT): Likewise.
3017 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
3018 <kernel-features.h>.
3019 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3020 Remove conditional code.
3021 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
3022 <kernel-features.h>.
3023 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3024 Remove conditional code.
3025 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
3026 <kernel-features.h>.
3027 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
3028 Remove conditional code.
3029 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
3030 <kernel-features.h>.
3031 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
3032 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
3033
3034 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3035
3036 * sysdeps/s390/multiarch/ifunc-resolve.h
3037 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
3038 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
3039 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
3040 Delete macro definition.
3041 (s390_libc_ifunc_init): Rename to
3042 s390_libc_ifunc_expr_stfle_init.
3043 * sysdeps/s390/bzero: Use
3044 s390_libc_ifunc_expr_stfle_init instead of
3045 s390_libc_ifunc_init.
3046 * sysdeps/s390/memcmp.c: Likewise.
3047 * sysdeps/s390/memcpy.c: Likewise.
3048 * sysdeps/s390/mempcpy.c: Likewise.
3049 * sysdeps/s390/memset.c: Likewise.
3050
3051 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3052
3053 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
3054 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
3055
3056 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3057
3058 * sysdeps/s390/multiarch/Makefile
3059 (sysdep_routines): Remove wmemcmp variants.
3060 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
3061 * sysdeps/s390/multiarch/ifunc-impl-list.c
3062 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
3063 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
3064 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
3065 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
3066 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
3067 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
3068 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
3069 * sysdeps/s390/ifunc-wmemcmp.h: New file.
3070
3071 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3072
3073 * sysdeps/s390/multiarch/Makefile
3074 (sysdep_routines): Remove wmemset variants.
3075 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3076 * sysdeps/s390/multiarch/ifunc-impl-list.c
3077 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3078 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3079 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3080 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3081 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3082 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3083 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3084 * sysdeps/s390/ifunc-wmemset.h: New file.
3085
3086 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3087
3088 * sysdeps/s390/multiarch/Makefile
3089 (sysdep_routines): Remove wmemchr variants.
3090 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3091 * sysdeps/s390/multiarch/ifunc-impl-list.c
3092 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3093 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3094 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3095 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3096 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3097 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3098 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3099 * sysdeps/s390/ifunc-wmemchr.h: New file.
3100
3101 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3102
3103 * sysdeps/s390/multiarch/Makefile
3104 (sysdep_routines): Remove wcscspn variants.
3105 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3106 * sysdeps/s390/multiarch/ifunc-impl-list.c
3107 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3108 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3109 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3110 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3111 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3112 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3113 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3114 * sysdeps/s390/ifunc-wcscspn.h: New file.
3115
3116 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3117
3118 * sysdeps/s390/multiarch/Makefile
3119 (sysdep_routines): Remove wcspbrk variants.
3120 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3121 * sysdeps/s390/multiarch/ifunc-impl-list.c
3122 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3123 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3124 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3125 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3126 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3127 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3128 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3129 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3130
3131 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3132
3133 * sysdeps/s390/multiarch/Makefile
3134 (sysdep_routines): Remove wcsspn variants.
3135 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3136 * sysdeps/s390/multiarch/ifunc-impl-list.c
3137 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3138 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3139 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3140 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3141 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3142 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3143 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3144 * sysdeps/s390/ifunc-wcsspn.h: New file.
3145
3146 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3147
3148 * sysdeps/s390/multiarch/Makefile
3149 (sysdep_routines): Remove wcsrchr variants.
3150 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3151 * sysdeps/s390/multiarch/ifunc-impl-list.c
3152 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3153 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3154 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3155 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3156 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3157 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3158 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3159 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3160
3161 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3162
3163 * sysdeps/s390/multiarch/Makefile
3164 (sysdep_routines): Remove wcschrnul variants.
3165 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3166 * sysdeps/s390/multiarch/ifunc-impl-list.c
3167 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3168 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3169 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3170 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3171 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3172 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3173 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3174 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3175
3176 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3177
3178 * sysdeps/s390/multiarch/Makefile
3179 (sysdep_routines): Remove wcschr variants.
3180 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3181 * sysdeps/s390/multiarch/ifunc-impl-list.c
3182 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3183 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3184 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3185 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3186 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3187 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3188 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3189 * sysdeps/s390/ifunc-wcschr.h: New file.
3190
3191 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3192
3193 * sysdeps/s390/multiarch/Makefile
3194 (sysdep_routines): Remove wcsncmp variants.
3195 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3196 * sysdeps/s390/multiarch/ifunc-impl-list.c
3197 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3198 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3199 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3200 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3201 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3202 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3203 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3204 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3205
3206 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3207
3208 * sysdeps/s390/multiarch/Makefile
3209 (sysdep_routines): Remove wcscmp variants.
3210 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3211 * sysdeps/s390/multiarch/ifunc-impl-list.c
3212 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3213 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3214 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3215 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3216 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3217 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3218 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3219 * sysdeps/s390/ifunc-wcscmp.h: New file.
3220
3221 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3222
3223 * sysdeps/s390/multiarch/Makefile
3224 (sysdep_routines): Remove wcsncat variants.
3225 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3226 * sysdeps/s390/multiarch/ifunc-impl-list.c
3227 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3228 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3229 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3230 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3231 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3232 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3233 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3234 * sysdeps/s390/ifunc-wcsncat.h: New file.
3235
3236 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3237
3238 * sysdeps/s390/multiarch/Makefile
3239 (sysdep_routines): Remove wcscat variants.
3240 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3241 * sysdeps/s390/multiarch/ifunc-impl-list.c
3242 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3243 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3244 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3245 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3246 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3247 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3248 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3249 * sysdeps/s390/ifunc-wcscat.h: New file.
3250
3251 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3252
3253 * sysdeps/s390/multiarch/Makefile
3254 (sysdep_routines): Remove wcpncpy variants.
3255 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3256 * sysdeps/s390/multiarch/ifunc-impl-list.c
3257 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3258 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3259 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3260 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3261 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3262 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3263 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3264 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3265
3266 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3267
3268 * sysdeps/s390/multiarch/Makefile
3269 (sysdep_routines): Remove wcsncpy variants.
3270 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3271 * sysdeps/s390/multiarch/ifunc-impl-list.c
3272 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3273 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3274 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3275 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3276 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3277 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3278 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3279 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3280
3281 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3282
3283 * sysdeps/s390/multiarch/Makefile
3284 (sysdep_routines): Remove wcpcpy variants.
3285 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3286 * sysdeps/s390/multiarch/ifunc-impl-list.c
3287 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3288 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3289 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3290 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3291 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3292 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3293 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3294 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3295
3296 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3297
3298 * sysdeps/s390/multiarch/Makefile
3299 (sysdep_routines): Remove wcscpy variants.
3300 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3301 * sysdeps/s390/multiarch/ifunc-impl-list.c
3302 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3303 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3304 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3305 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3306 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3307 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3308 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3309 * sysdeps/s390/ifunc-wcscpy.h: New file.
3310
3311 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3312
3313 * sysdeps/s390/multiarch/Makefile
3314 (sysdep_routines): Remove wcsnlen variants.
3315 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3316 * sysdeps/s390/multiarch/ifunc-impl-list.c
3317 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3318 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3319 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3320 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3321 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3322 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3323 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3324 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3325
3326 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3327
3328 * sysdeps/s390/multiarch/Makefile
3329 (sysdep_routines): Remove wcslen variants.
3330 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3331 * sysdeps/s390/multiarch/ifunc-impl-list.c
3332 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3333 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3334 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3335 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3336 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3337 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3338 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3339 * sysdeps/s390/ifunc-wcslen.h: New file.
3340
3341 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3342
3343 * sysdeps/s390/multiarch/Makefile
3344 (sysdep_routines): Remove memrchr variants.
3345 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3346 * sysdeps/s390/multiarch/ifunc-impl-list.c
3347 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3348 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3349 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3350 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3351 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3352 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3353 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3354 * sysdeps/s390/ifunc-memrchr.h: New file.
3355
3356 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3357
3358 * sysdeps/s390/multiarch/Makefile
3359 (sysdep_routines): Remove memccpy variants.
3360 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3361 * sysdeps/s390/multiarch/ifunc-impl-list.c
3362 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3363 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3364 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3365 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3366 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3367 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3368 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3369 * sysdeps/s390/ifunc-memccpy.h: New file.
3370
3371 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3372
3373 * sysdeps/s390/multiarch/Makefile
3374 (sysdep_routines): Remove rawmemchr variants.
3375 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3376 * sysdeps/s390/multiarch/ifunc-impl-list.c
3377 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3378 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3379 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3380 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3381 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3382 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3383 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3384 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3385
3386 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3387
3388 * sysdeps/s390/multiarch/Makefile
3389 (sysdep_routines): Remove memchr variants.
3390 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3391 * sysdeps/s390/multiarch/ifunc-impl-list.c
3392 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3393 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3394 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3395 * sysdeps/s390/multiarch/memchr.c: Move to ...
3396 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3397 * sysdeps/s390/ifunc-memchr.h: New file.
3398 * sysdeps/s390/s390-64/memchr.S: Move to ...
3399 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3400 for 31/64bit and ifunc handling.
3401 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3402 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3403 * sysdeps/s390/s390-32/memchr.S: Likewise.
3404
3405 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3406
3407 * sysdeps/s390/multiarch/Makefile
3408 (sysdep_routines): Remove strcspn variants.
3409 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3410 * sysdeps/s390/multiarch/ifunc-impl-list.c
3411 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3412 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3413 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3414 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3415 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3416 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3417 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3418 * sysdeps/s390/ifunc-strcspn.h: New file.
3419
3420 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3421
3422 * sysdeps/s390/multiarch/Makefile
3423 (sysdep_routines): Remove strpbrk variants.
3424 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3425 * sysdeps/s390/multiarch/ifunc-impl-list.c
3426 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3427 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3428 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3429 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3430 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3431 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3432 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3433 * sysdeps/s390/ifunc-strpbrk.h: New file.
3434
3435 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3436
3437 * sysdeps/s390/multiarch/Makefile
3438 (sysdep_routines): Remove strspn variants.
3439 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3440 * sysdeps/s390/multiarch/ifunc-impl-list.c
3441 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3442 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3443 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3444 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3445 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3446 * sysdeps/s390/multiarch/strspn.c: Move to ...
3447 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3448 * sysdeps/s390/ifunc-strspn.h: New file.
3449
3450 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3451
3452 * sysdeps/s390/multiarch/Makefile
3453 (sysdep_routines): Remove strrchr variants.
3454 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3455 * sysdeps/s390/multiarch/ifunc-impl-list.c
3456 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3457 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3458 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3459 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3460 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3461 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3462 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3463 * sysdeps/s390/ifunc-strrchr.h: New file.
3464
3465 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3466
3467 * sysdeps/s390/multiarch/Makefile
3468 (sysdep_routines): Remove strchrnul variants.
3469 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3470 * sysdeps/s390/multiarch/ifunc-impl-list.c
3471 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3472 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3473 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3474 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3475 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3476 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3477 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3478 * sysdeps/s390/ifunc-strchrnul.h: New file.
3479
3480 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3481
3482 * sysdeps/s390/multiarch/Makefile
3483 (sysdep_routines): Remove strchr variants.
3484 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3485 * sysdeps/s390/multiarch/ifunc-impl-list.c
3486 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3487 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3488 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3489 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3490 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3491 * sysdeps/s390/multiarch/strchr.c: Move to ...
3492 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3493 * sysdeps/s390/ifunc-strchr.h: New file.
3494
3495 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3496
3497 * sysdeps/s390/multiarch/Makefile
3498 (sysdep_routines): Remove strncmp variants.
3499 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3500 * sysdeps/s390/multiarch/ifunc-impl-list.c
3501 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3502 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3503 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3504 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3505 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3506 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3507 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3508 * sysdeps/s390/ifunc-strncmp.h: New file.
3509
3510 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3511
3512 * sysdeps/s390/multiarch/Makefile
3513 (sysdep_routines): Remove strcmp variants.
3514 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3515 * sysdeps/s390/multiarch/ifunc-impl-list.c
3516 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3517 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3518 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3519 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3520 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3521 * sysdeps/s390/ifunc-strcmp.h: New file.
3522 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3523 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3524 for 31/64bit and ifunc handling.
3525 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3526 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3527 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3528
3529 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3530
3531 * sysdeps/s390/multiarch/Makefile
3532 (sysdep_routines): Remove strncat variants.
3533 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3534 * sysdeps/s390/multiarch/ifunc-impl-list.c
3535 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3536 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3537 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3538 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3539 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3540 * sysdeps/s390/multiarch/strncat.c: Move to ...
3541 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3542 * sysdeps/s390/ifunc-strncat.h: New file.
3543
3544 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3545
3546 * sysdeps/s390/multiarch/Makefile
3547 (sysdep_routines): Remove strcat variants.
3548 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3549 * sysdeps/s390/multiarch/ifunc-impl-list.c
3550 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3551 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3552 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3553 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3554 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3555 * sysdeps/s390/multiarch/strcat.c: Move to ...
3556 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3557 * sysdeps/s390/ifunc-strcat.h: New file.
3558
3559 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3560
3561 * sysdeps/s390/multiarch/Makefile
3562 (sysdep_routines): Remove stpncpy variants.
3563 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3564 * sysdeps/s390/multiarch/ifunc-impl-list.c
3565 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3566 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3567 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3568 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3569 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3570 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3571 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3572 * sysdeps/s390/ifunc-stpncpy.h: New file.
3573
3574 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3575
3576 * sysdeps/s390/multiarch/Makefile
3577 (sysdep_routines): Remove strncpy variants.
3578 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3579 * sysdeps/s390/multiarch/ifunc-impl-list.c
3580 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3581 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3582 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3583 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3584 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3585 * sysdeps/s390/ifunc-strncpy.h: New file.
3586 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3587 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3588 and adjust ifunc handling.
3589 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3590 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3591 and adjust ifunc handling.
3592 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3593 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3594
3595 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3596
3597 * sysdeps/s390/multiarch/Makefile
3598 (sysdep_routines): Remove stpcpy variants.
3599 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3600 * sysdeps/s390/multiarch/ifunc-impl-list.c
3601 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3602 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3603 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3604 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3605 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3606 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3607 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3608 * sysdeps/s390/ifunc-stpcpy.h: New file.
3609
3610 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3611
3612 * sysdeps/s390/multiarch/Makefile
3613 (sysdep_routines): Remove strcpy variants.
3614 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3615 * sysdeps/s390/multiarch/ifunc-impl-list.c
3616 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3617 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3618 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3619 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3620 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3621 * sysdeps/s390/ifunc-strcpy.h: New file.
3622 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3623 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3624 for 31/64bit and ifunc handling.
3625 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3626 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3627 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3628
3629 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3630
3631 * sysdeps/s390/multiarch/Makefile
3632 (sysdep_routines): Remove strnlen variants.
3633 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3634 * sysdeps/s390/multiarch/ifunc-impl-list.c
3635 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3636 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3637 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3638 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3639 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3640 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3641 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3642 * sysdeps/s390/ifunc-strnlen.h: New file.
3643
3644 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3645
3646 * sysdeps/s390/multiarch/Makefile
3647 (sysdep_routines): Remove strlen variants.
3648 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3649 * sysdeps/s390/multiarch/ifunc-impl-list.c
3650 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3651 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3652 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3653 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3654 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3655 * sysdeps/s390/multiarch/strlen.c: Move to ...
3656 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3657 * sysdeps/s390/ifunc-strlen.h: New file.
3658
3659 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3660
3661 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3662 * sysdeps/s390/multiarch/ifunc-impl-list.c
3663 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3664 * sysdeps/s390/ifunc-memmem.h: New file.
3665 * sysdeps/s390/memmem.c: Likewise.
3666 * sysdeps/s390/memmem-c.c: Likewise.
3667 * sysdeps/s390/memmem-vx.c: Likewise.
3668
3669 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3670
3671 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3672 * sysdeps/s390/multiarch/ifunc-impl-list.c
3673 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3674 * sysdeps/s390/ifunc-strstr.h: New file.
3675 * sysdeps/s390/strstr.c: Likewise.
3676 * sysdeps/s390/strstr-c.c: Likewise.
3677 * sysdeps/s390/strstr-vx.c: Likewise.
3678
3679 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3680
3681 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3682 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3683 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3684 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3685 New defines.
3686 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3687 * sysdeps/s390/memmove-c.c: New file.
3688 * sysdeps/s390/memmove.c: Likewise.
3689 * sysdeps/s390/multiarch/ifunc-impl-list.c
3690 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3691
3692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3693
3694 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3695 * sysdeps/s390/configure.ac: Add check for z13 support.
3696 * sysdeps/s390/configure: Regenerated.
3697
3698 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3699
3700 * sysdeps/s390/memcopy.h: New file.
3701
3702 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3703
3704 * sysdeps/s390/s390-32/bcopy.S: Remove.
3705 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3706
3707 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3708
3709 * sysdeps/s390/ifunc-memcpy.h: New File.
3710 * sysdeps/s390/memcpy.S: Move to ...
3711 * sysdeps/s390/memcpy-z900.S ... here.
3712 Move implementations from memcpy-s390x.s to here.
3713 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3714 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3715 Remove memcpy/mempcpy variants.
3716 * sysdeps/s390/Makefile (sysdep_routines):
3717 Add memcpy/mempcpy variants.
3718 * sysdeps/s390/multiarch/ifunc-impl-list.c
3719 (__libc_ifunc_impl_list): Adjust ifunc variants for
3720 memcpy and mempcpy.
3721 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3722 to ...
3723 * sysdeps/s390/memcpy.c: ... here.
3724 Adjust ifunc variants for memcpy.
3725 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3726 * sysdeps/s390/mempcpy.c: ... here.
3727 Adjust ifunc variants for mempcpy.
3728 * sysdeps/s390/mempcpy.S: Delete file.
3729
3730 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3731
3732 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3733 * sysdeps/s390/memcpy.S: ... here.
3734 Adjust to be usable for 31/64bit.
3735 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3736 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3737 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3738 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3739 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3740 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3741 Adjust to be usable for 31/64bit.
3742 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3743 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3744 * sysdeps/s390/multiarch/memcpy.c: ... here.
3745 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3746
3747 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3748
3749 * sysdeps/s390/ifunc-memcmp.h: New File.
3750 * sysdeps/s390/memcmp.S: Move to ...
3751 * sysdeps/s390/memcmp-z900.S ... here.
3752 Move implementations from memcmp-s390x.s to here.
3753 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3754 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3755 Remove memcmp variants.
3756 * sysdeps/s390/Makefile (sysdep_routines):
3757 Add memcmp variants.
3758 * sysdeps/s390/multiarch/ifunc-impl-list.c
3759 (__libc_ifunc_impl_list): Adjust ifunc variants for
3760 memcmp.
3761 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3762 to ...
3763 * sysdeps/s390/memcmp.c: ... here.
3764 Adjust ifunc variants for memcmp.
3765
3766 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3767
3768 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3769 * sysdeps/s390/memcmp.S: ... here.
3770 Adjust to be usable for 31/64bit.
3771 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3772 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3773 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3774 Remove memcmp.
3775 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3776 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3777 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3778 Adjust to be usable for 31/64bit.
3779 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3780 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3781 * sysdeps/s390/multiarch/memcmp.c: ... here.
3782 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3783
3784 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3785
3786 * sysdeps/s390/s390-32/bzero.S: Delete file.
3787 * sysdeps/s390/s390-64/bzero.S: Likewise.
3788 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3789 * sysdeps/s390/bzero.c: New file.
3790 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3791 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3792 * sysdeps/s390/multiarch/ifunc-impl-list.c
3793 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3794
3795 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3796
3797 * sysdeps/s390/ifunc-memset.h: New File.
3798 * sysdeps/s390/memset.S: Move to ...
3799 * sysdeps/s390/memset-z900.S ... here.
3800 Move implementations from memset-s390x.s to here.
3801 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3802 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3803 Remove memset variants.
3804 * sysdeps/s390/Makefile (sysdep_routines):
3805 Add memset variants.
3806 * sysdeps/s390/multiarch/ifunc-impl-list.c
3807 (__libc_ifunc_impl_list): Adjust ifunc variants for
3808 memset.
3809 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3810 to ...
3811 * sysdeps/s390/memset.c: ... here.
3812 Adjust ifunc variants for memset.
3813
3814 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3815
3816 * sysdeps/s390/s390-64/memset.S: Move to ...
3817 * sysdeps/s390/memset.S: ... here.
3818 Adjust to be usable for 31/64bit.
3819 * sysdeps/s390/s390-32/memset.S: Delete File.
3820 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3821 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3822 Remove memset.
3823 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3824 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3825 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3826 Adjust to be usable for 31/64bit.
3827 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3828 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3829 * sysdeps/s390/multiarch/memset.c: ... here.
3830 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3831
3832 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3833
3834 * sysdeps/s390/multiarch/ifunc-resolve.h
3835 (s390_libc_ifunc_init, s390_libc_ifunc,
3836 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3837
3838 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3839
3840 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3841 * sysdeps/s390/configure.ac: Add check for z10 support.
3842 * sysdeps/s390/configure: Regenerated.
3843
3844 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3845
3846 * sysdeps/i386/atomic-machine.h: Merged with ...
3847 * sysdeps/x86_64/atomic-machine.h: To ...
3848 * sysdeps/x86/atomic-machine.h: This. New file.
3849
3850 2018-12-18 Florian Weimer <fweimer@redhat.com>
3851
3852 Rewrite locale/gen-translit.pl in Python.
3853 * locale/Makefile (generated): Add C-translit.h.
3854 (before-compile): Add $(objpfx)C-translit.h.
3855 (C-translit.h): Move to $(objpfx). Create target directory.
3856 Build using Python script.
3857 * locale/gen-translit.py: New file.
3858 * locale/gen-translit.pl: Remove file.
3859 * locale/C-translit.h.in: Change comment character to '#' for
3860 easier parsing without a C preprocessor.
3861 * locale/C-translit.h: Remove generated file.
3862 * manual/install.texi (Tools for Compilation): Do not mention
3863 C-translit.h.
3864 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3865 Remove locale/C-translit.h.
3866 * scripts/update-copyrights: Likewise.
3867 * INSTALL: Regenerate.
3868
3869 2018-12-18 Florian Weimer <fweimer@redhat.com>
3870
3871 [BZ #23995]
3872 * localedata/locales/bi_VU: Remove executable bit from file.
3873
3874 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3875
3876 * include/time.h
3877 (__localtime64): Add.
3878 * manual/maint.texi: Document Y2038 symbol handling.
3879 * time/localtime.c
3880 (__localtime64): Add.
3881 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3882
3883 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3884
3885 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3886 Do not clobber r12.
3887
3888 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3889 to allow extra macros from first or second sources.
3890 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3891 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3892 (tests-special): Add $(objpfx)tst-mman-consts.out.
3893 ($(objpfx)tst-mman-consts.out): New makefile target.
3894
3895 2018-12-17 Mao Han <han_mao@c-sky.com>
3896
3897 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3898 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3899 without stat64 system call support.
3900 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3901 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3902 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3903 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3904 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3905 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3906 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3907 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3908 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3909 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3910 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3911
3912 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3913
3914 regex: fix storage-exhaustion error
3915 [BZ #18040]
3916 * posix/regexec.c (get_subexp):
3917 Do not continue if storage is exhausted.
3918
3919 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3920
3921 regex: fix heap-use-after-free error
3922 [BZ #18040]
3923 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3924 https://debbugs.gnu.org/32592
3925 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3926 call extend_buffers which reallocates the re_string_t internal buffer.
3927 Local variable 'buf' was not updated in such case, resulting in
3928 use-after-free.
3929 * posix/regexec.c (get_subexp): Update 'buf' after call to
3930 get_subexp_sub.
3931
3932 2018-12-15 Florian Weimer <fweimer@redhat.com>
3933
3934 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3935 (minimum_stride_size): Use it.
3936 (support_blob_repeat_allocate): Likewise.
3937
3938 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3939
3940 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3941 definition.
3942 (acosh): Likewise.
3943 (atanh): Likewise.
3944
3945 2018-12-14 Florian Weimer <fweimer@redhat.com>
3946
3947 * manual/process.texi (Process Creation Concepts): Remove
3948 documentation of process (ID) lifetime. List more process
3949 creation functions. Reference Process Identification section.
3950 (Process Identification): Add information about process ID
3951 lifetime. Describe Linux thread/task IDs.
3952 * manual/signal.texi (Signaling Another Process): Mention that the
3953 signal is always sent to the process.
3954
3955 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3956
3957 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3958 and tst-ldbl-efgcvt.
3959 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3960 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3961 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3962 (fcvt_tests, output_error, output_r_error, do_test): Use the
3963 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3964 select the type of floating-point variables and arguments; to
3965 produce extra tests for double and conversion specifiers for
3966 printf; and to set the names of called functions.
3967 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3968 in tst-efgcvt-template.c.
3969 * misc/tst-ldbl-efgcvt.c: Likewise.
3970
3971 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3972
3973 * nss/Makefile (tst-nss-test3.out): New rule.
3974
3975 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3976
3977 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3978 clobber sp.
3979
3980 2018-12-13 fanjinke <fanjinke@hygon.cn>
3981
3982 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3983 "HygonGenuine".
3984
3985 2018-12-13 Andreas Schwab <schwab@suse.de>
3986
3987 [BZ #23861]
3988 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3989 (__pthread_rwlock_rdlock_full): Update expected value for
3990 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3991 * nptl/tst-rwlock-pwn.c: New file.
3992 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3993
3994 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3995
3996 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3997 definition.
3998
3999 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4000
4001 * benchtests/scripts/compare_bench.py (do_compare): write to
4002 stderr in casestat is not present.
4003 * benchtests/scripts/compare_bench.py (plot_graphs): write to
4004 stderr in case timings field is not present. Also string showing
4005 the output filename goes into the stderr.
4006
4007 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4008
4009 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
4010 and ZeroDivisorError exceptions.
4011 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
4012 argument to loop through user provided statistics.
4013 * benchtests/scripts/compare_bench.py (main): Include the --stats
4014 argument.
4015
4016 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
4017
4018 * benchtests/scripts/compare_bench.py (compare_runs): Continue
4019 instead of return.
4020
4021 2018-12-12 Florian Weimer <fweimer@redhat.com>
4022
4023 * sysdeps/posix/timespec_get.c: Add missing “any later version”
4024 clause to copyright header.
4025
4026 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4027
4028 [BZ #23614]
4029 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
4030 registers saved in the stack frame.
4031 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
4032 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
4033
4034 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4035
4036 * include/bits/monetary-ldbl.h: New file.
4037 * include/bits/printf-ldbl.h: Likewise.
4038 * include/bits/stdio-ldbl.h: Likewise.
4039 * include/bits/stdlib-ldbl.h: Likewise.
4040 * include/bits/syslog-ldbl.h: Likewise.
4041 * include/bits/wchar-ldbl.h: Likewise.
4042
4043 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4044
4045 * libio/libio.h: Remove redirection for _IO_vfprintf.
4046
4047 2018-12-11 Andreas Schwab <schwab@suse.de>
4048
4049 * Makerules: Remove all references to abilist-pattern.
4050 (update-all-abi): Simplify find expression.
4051
4052 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
4053
4054 [BZ #23961]
4055 * math/auto-libm-test-in: Add new test case.
4056 * math/auto-libm-test-out-pow: Regenerated.
4057 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
4058
4059 2018-12-10 DJ Delorie <dj@redhat.com>
4060
4061 [BZ #23948]
4062 * support/test-container.c: Move postclean step to before we
4063 change namespaces.
4064
4065 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4066
4067 * scripts/gen-as-const.py (main): Handle --python option.
4068 * scripts/gen-py-const.awk: Remove.
4069 * Makerules (py-const-script): Use gen-as-const.py.
4070 ($(py-const)): Likewise.
4071 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
4072 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
4073 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4074 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4075 ~PTHREAD_MUTEX_NO_ELISION_NP.
4076 * manual/README.pretty-printers: Update reference to
4077 gen-py-const.awk.
4078
4079 * scripts/glibcextract.py: New file.
4080 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4081 or tempfile. Import glibcexctract.
4082 (compute_c_consts): Remove. Moved to glibcextract.py.
4083 (gen_test): Update reference to compute_c_consts.
4084 (main): Likewise.
4085 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4086 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4087 * sysdeps/unix/sysv/linux/Makefile
4088 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4089 Redirect stderr as well as stdout.
4090
4091 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4092
4093 [BZ #19767]
4094 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4095 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4096 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4097 ALWAYS_USE_VSYSCALL.
4098 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4099 ALWAYS_USE_VSYSCALL.
4100 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4101 ALWAYS_USE_VSYSCALL.
4102
4103 2018-12-10 Florian Weimer <fweimer@redhat.com>
4104
4105 [BZ #23972]
4106 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4107 offset instead of count for clarity. Fix typo in comment.
4108 (__old_getdents64): Keep track of previous offset. Use it to call
4109 handle_overflow.
4110 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4111 that d_off is never zero.
4112
4113 2018-12-10 Andreas Schwab <schwab@suse.de>
4114
4115 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4116 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4117 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4118 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4119 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4120
4121 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4122
4123 * timezone/private.h: Update from tzcode 2018g.
4124 * timezone/tzfile.h: Likewise.
4125 * timezone/tzselect.ksh: Likewise.
4126 * timezone/zdump.c: Likewise.
4127 * timezone/zic.c: Likewise.
4128
4129 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4130
4131 [BZ #23490]
4132 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4133 (do_test): Adjust buffer size and fix format.
4134
4135 2018-12-07 DJ Delorie <dj@redhat.com>
4136
4137 [BZ #23907]
4138 * malloc/tst-tcfree3.c: New.
4139 * malloc/Makefile: Add it.
4140
4141 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4142
4143 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4144
4145 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4146
4147 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4148 used as a mask for the mode argument of __vfscanf_internal and
4149 __vfwscanf_internal.
4150 * stdio-common/vfscanf-internal.c
4151 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4152 (__strtof128_internal): Define to __wcstof128_internal.
4153 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4154 __strtof128_internal or __wcstof128_internal when the format of
4155 long double is the same as _Float128.
4156
4157 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4158
4159 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4160 * posix/confstr.c (confstr): Rename to __confstr.
4161 (__confstr): Add hidden def.
4162 (confstr): Add weak alias for __confstr.
4163 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4164 confstr.
4165
4166 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4167
4168 * NEWS: Mention getcpu.
4169 * include/sched.h (__getcpu): New libc_hidden_proto.
4170 * manual/resource.texi: Document getcpu.
4171 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4172 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4173 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4174 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4175 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4176 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4177 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4178 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4179 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4180 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4181 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4182 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4183 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4184 Likewise.
4185 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4186 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4187 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4188 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4189 Likewise.
4190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4191 Likewise.
4192 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4193 Likewise.
4194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4195 Likewise.
4196 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4197 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4198 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4199 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4200 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4201 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4202 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4203 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4204 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4205 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4206 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4207 Also check getcpu.
4208
4209 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4210
4211 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4212 functions.
4213 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4214
4215 2018-12-07 Florian Weimer <fweimer@redhat.com>
4216
4217 [BZ #17405]
4218 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4219 * posix/Versions (GLIBC_2.29): Export
4220 posix_spawn_file_actions_addfchdir_np.
4221 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4222 * posix/spawn_faction_destroy.c
4223 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4224 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4225 and the field action.fchdir_action.
4226 * posix/tst-spawn-chdir.c (add_chdir): New function.
4227 (do_test): Add do_fchdir loop. Call add_chdir.
4228 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4229 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4230 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4231 posix_spawn_file_actions_addfchdir_np.
4232 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4233 Likewise.
4234 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4235 Likewise.
4236 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4237 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4238 Likewise.
4239 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4240 Likewise.
4241 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4242 Likewise.
4243 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4244 Likewise.
4245 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4246 Likewise.
4247 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4248 Likewise.
4249 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4250 (GLIBC_2.29): Likewise.
4251 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4252 (GLIBC_2.29): Likewise.
4253 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4254 (GLIBC_2.29): Likewise.
4255 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4256 (GLIBC_2.29): Likewise.
4257 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4258 Likewise.
4259 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4260 (GLIBC_2.29): Likewise.
4261 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4262 (GLIBC_2.29): Likewise.
4263 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4264 (GLIBC_2.29): Likewise.
4265 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4266 (GLIBC_2.29): Likewise.
4267 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4268 Likewise.
4269 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4270 Likewise.
4271 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4272 Likewise.
4273 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4274 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4275 Likewise.
4276 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4277 Likewise.
4278 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4279 Likewise.
4280 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4281 Likewise.
4282
4283 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4284
4285 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4286 trailing whitespace removed.
4287 * scripts/config.guess: Update to version 2018-11-28.
4288 * scripts/config.sub: Update to version 2018-11-28.
4289 * scripts/install-sh: Update to version 2018-03-11.20.
4290 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4291 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4292
4293 2018-12-07 Florian Weimer <fweimer@redhat.com>
4294
4295 [BZ #23927]
4296 CVE-2018-19591
4297 * inet/tst-if_index-long.c: New file.
4298 * inet/Makefile (tests): Add tst-if_index-long.
4299
4300 2018-12-07 Florian Weimer <fweimer@redhat.com>
4301
4302 * support/check.h (support_record_failure_is_failed): Declare.
4303 * support/descriptors.h: New file.
4304 * support/support_descriptors.c: Likewise.
4305 * support/tst-support_descriptors.c: Likewise.
4306 * support/support_record_failure.c
4307 (support_record_failure_is_failed): New function.
4308 * support/Makefile (libsupport-routines): Add support_descriptors.
4309 (tests): Add tst-support_descriptors.
4310
4311 2018-12-05 Zack Weinberg <zackw@panix.com>
4312 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4313
4314 * stdio-common/vfprintf-internal.c
4315 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4316 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4317 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4318 and __no_long_double.
4319 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4320 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4321 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4322 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4323 and __nldbl_*syslog* functions.
4324 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4325 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4326 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4327 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4328 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4329 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4330 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4331 (__nldbl_vwprintf, __nldbl_wprintf):
4332 Directly call the appropriate __v*printf_internal routine, passing
4333 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4334 variable names.
4335 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4336 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4337 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4338 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4339 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4340 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4341 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4342 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4343 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4344 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4345 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4346 (__nldbl_syslog, __nldbl_vsyslog):
4347 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4348 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4349 appropriate.
4350 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4351 appropriate.
4352
4353 2018-12-05 Zack Weinberg <zackw@panix.com>
4354 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4355
4356 [BZ #11319]
4357 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4358 Moved here from debug/vsprintf_chk.c.
4359 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4360 and completion logic for the strfile to match exactly what
4361 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4362 _IO_str_init_static_internal instead of maxlen-1.
4363 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4364 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4365 __vsprintf_internal.
4366
4367 * debug/vsprintf_chk.c (__vsprintf_chk)
4368 * debug/sprintf_chk.c (__sprintf_chk):
4369 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4370 'flags' argument is positive, and slen as maxlen. No need to lock
4371 the FILE and/or construct a temporary FILE. Minimize and normalize
4372 header inclusions and variable names. Do not libc_hidden_def anything.
4373
4374 * debug/asprintf_chk.c (__asprintf_chk)
4375 * debug/dprintf_chk.c (__dprintf_chk)
4376 * debug/fprintf_chk.c (__fprintf_chk)
4377 * debug/fwprintf_chk.c (__fwprintf_chk)
4378 * debug/printf_chk.c (__printf_chk)
4379 * debug/snprintf_chk.c (__snprintf_chk)
4380 * debug/swprintf_chk.c (__swprintf_chk)
4381 * debug/vasprintf_chk.c (__vasprintf_chk)
4382 * debug/vdprintf_chk.c (__vdprintf_chk)
4383 * debug/vfprintf_chk.c (__vfprintf_chk)
4384 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4385 * debug/vprintf_chk.c (__vprintf_chk)
4386 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4387 * debug/vswprintf_chk.c (__vswprintf_chk)
4388 * debug/vwprintf_chk.c (__vwprintf_chk)
4389 * debug/wprintf_chk.c (__wprintf_chk):
4390 Directly call the corresponding vxxprintf_internal function, passing
4391 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4392 the FILE and/or construct a temporary FILE. Minimize and normalize
4393 header inclusions and variable names. Do not libc_hidden_def anything.
4394
4395 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4396 __obstack_vprintf_internal.
4397 (__obstack_vprintf_chk): Convert into a wrapper that calls
4398 __obstack_vprintf_internal (these two functions already had the
4399 same code) and move to new file...
4400 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4401 file.
4402 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4403 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4404 * debug/Makefile (routines): Add vobprintf_chk.
4405
4406 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4407 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4408 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4409 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4410 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4411 (__nldbl___obstack_vfprintf_chk):
4412 Directly call the corresponding vxxprintf_internal function,
4413 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4414 duplicate comparison of slen with 0 or maxlen from the corresponding
4415 non-__nldbl function.
4416
4417 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4418 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4419 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4420 Remove libc_hidden_proto.
4421
4422 * stdio-common/vfprintf-internal.c
4423 (__vfprintf_internal, __vfwprintf_internal):
4424 Do not check _IO_FLAGS2_FORTIFY.
4425 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4426 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4427 a comment explaining why it has the maxlen argument.
4428 (_IO_acquire_lock_clear_flags2_fct): Remove.
4429 (_IO_acquire_lock_clear_flags2): Remove.
4430 (_IO_release_lock): Remove conditional statement which will
4431 now never execute.
4432 (_IO_acquire_lock): Remove variable which is now unused.
4433 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4434 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4435
4436 * stdio-common/Makefile (tests): Add tst-bz11319 and
4437 tst-bz11319-fortify2.
4438 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4439 * stdio-common/tst-bz11319-fortify2.c: New file.
4440 * stdio-common/tst-bz11319.c: Likewise.
4441
4442 2018-12-05 Zack Weinberg <zackw@panix.com>
4443 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4444
4445 * misc/syslog.c: Include libioP.h, not iolibio.h.
4446 (__vsyslog_internal): New function with the former body of
4447 __vsyslog_chk; takes mode_flags argument same as
4448 __v*printf_internal. Call __vfprintf_internal directly.
4449
4450 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4451 Remove libc_hidden_def.
4452 (__syslog, __syslog_chk): Use __vsyslog_internal.
4453 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4454
4455 * include/sys/syslog.h: Add multiple inclusion guard.
4456 Add prototype for __vsyslog_internal.
4457 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4458
4459 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4460 Use __vsyslog_internal.
4461
4462 2018-12-05 Zack Weinberg <zackw@panix.com>
4463 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4464
4465 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4466 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4467 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4468 New functions.
4469 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4470 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4471
4472 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4473 Include wctype.h here if COMPILE_WPRINTF is defined.
4474 Define __vfprintf_internal or __vfwprintf_internal, depending
4475 on COMPILE_WPRINTF.
4476 Temporarily, on entry to this function, update mode_flags
4477 according to the environmental settings corresponding to
4478 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4479 Throughout, check mode_flags instead of __ldbl_is_dbl and
4480 _IO_FLAGS2_FORTIFY on the destination FILE.
4481 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4482 Include vfprintf-internal.c. Don't include wctype.h.
4483 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4484 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4485 and vfprintf.
4486 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4487 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4488 and vfwprintf.
4489 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4490
4491 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4492 and add mode_flags argument; use __vfprintf_internal.
4493 (__vdprintf): New function. Alias vdprintf to this.
4494 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4495 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4496 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4497 (__obstack_printf): Use __obstack_printf_internal.
4498 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4499 public aliases __vsnprintf and vsnprintf.
4500 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4501 called internally.
4502 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4503 public aliases _IO_vsprintf and vsprintf.
4504 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4505 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4506 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4507 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4508 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4509
4510 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4511 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4512 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4513 * stdio-common/printf.c: Use __vfprintf_internal.
4514
4515 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4516 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4517 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4518
4519 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4520 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4521 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4522 __vfwprintf_internal.
4523
4524 * libio/libio.h: Remove libc_hidden_proto and declaration for
4525 _IO_vfprintf.
4526 Remove declaration of _IO_vfwprintf.
4527 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4528 _IO_vsprintf.
4529 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4530 _IO_obstack_printf.
4531 * include/stdio.h: Add prototype for __vasprintf.
4532 (__vsnprintf): Remove declaration, because there are no more
4533 internal calls.
4534 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4535 declaration, because there are no more internal calls.
4536
4537 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4538 __vsnprintf_internal, instead of _IO_vsnprintf.
4539 * argp/argp-help.c (__argp_error, __argp_failure): Use
4540 __vasprintf_internal, instead of _IO_vasprintf.
4541 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4542 redefine, because there are no more internal calls.
4543
4544 2018-12-05 Zack Weinberg <zackw@panix.com>
4545 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4546
4547 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4548 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4549 Include libio/strfile.h instead of libioP.h.
4550 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4551 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4552 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4553 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4554 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4555 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4556 necessary. Do not set __no_long_double. Normalize variable names.
4557 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4558 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4559 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4560 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4561 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4562 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4563 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4564 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4565 Do not set __no_long_double. Normalize variable names.
4566
4567 2018-12-05 Zack Weinberg <zackw@panix.com>
4568 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4569
4570 * stdio-common/isoc99_scanf.c
4571 * stdio-common/isoc99_fscanf.c
4572 * stdio-common/isoc99_sscanf.c
4573 * stdio-common/isoc99_vscanf.c
4574 * stdio-common/isoc99_vfscanf.c
4575 * stdio-common/isoc99_vsscanf.c
4576 * wcsmbs/isoc99_wscanf.c
4577 * wcsmbs/isoc99_fwscanf.c
4578 * wcsmbs/isoc99_swscanf.c
4579 * wcsmbs/isoc99_vwscanf.c
4580 * wcsmbs/isoc99_vfwscanf.c
4581 * wcsmbs/isoc99_vswscanf.c:
4582 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4583 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4584 No need to lock and unlock the FILE passed to that function.
4585
4586 * stdio-common/vfscanf-internal.c
4587 (__vfscanf_internal, __vfwscanf_internal):
4588 Don't look at _IO_FLAGS2_SCANF_STD.
4589 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4590 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4591 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4592
4593 2018-12-05 Zack Weinberg <zackw@panix.com>
4594 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4595
4596 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4597 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4598 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4599 * libio/strfile.h: Add multiple inclusion guard.
4600 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4601
4602 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4603 consistency with the other version of this file.
4604 (ldbl_compat_symbol): New macro.
4605 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4606 New macro.
4607
4608 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4609 Define __vfscanf_internal or __vfwscanf_internal, depending on
4610 COMPILE_WSCANF; don't define any other public symbols.
4611 Remove errval and code to set errp.
4612 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4613 as the mode_flags argument.
4614 (encode_error, conv_error, input_error): Don't set errval.
4615 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4616 Include vfscanf-internal.c.
4617 * stdio-common/vfscanf.c: New file defining the public entry
4618 point vfscanf, which calls __vfscanf_internal.
4619 * stdio-common/vfwscanf.c: New file defining the public entry
4620 point vfwscanf, which calls __vfwscanf_internal.
4621
4622 * stdio-common/iovfscanf.c: New file.
4623 * stdio-common/iovfwscanf.c: Likewise.
4624
4625 * stdio-common/Makefile (routines): Add vfscanf-internal,
4626 vfwscanf-internal, iovfscanf, iovfwscanf.
4627 * stdio-common/Versions: Mention GLIBC_2.29, so that
4628 it can be used in SHLIB_COMPAT expressions.
4629 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4630 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4631 Call __vfscanf_internal, instead of _IO_vfscanf.
4632 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4633 _IO_vfscanf.
4634 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4635 _IO_vfwscanf.
4636
4637 * libio/iovsscanf.c: Clean up includes, when possible. Use
4638 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4639 __vfscanf_internal or __vfwscanf_internal directly.
4640 * libio/iovswscanf.c: Likewise.
4641 * libio/swscanf.c: Likewise.
4642 * libio/vscanf.c: Likewise.
4643 * libio/vwscanf.c: Likewise.
4644 * libio/wscanf.c: Likewise.
4645 * stdio-common/isoc99_fscanf.c: Likewise.
4646 * stdio-common/isoc99_scanf.c: Likewise.
4647 * stdio-common/isoc99_sscanf.c: Likewise.
4648 * stdio-common/isoc99_vfscanf.c: Likewise.
4649 * stdio-common/isoc99_vscanf.c: Likewise.
4650 * stdio-common/isoc99_vsscanf.c: Likewise.
4651 * stdio-common/scanf.c: Likewise.
4652 * stdio-common/sscanf.c: Likewise.
4653 * wcsmbs/isoc99_fwscanf.c: Likewise.
4654 * wcsmbs/isoc99_swscanf.c: Likewise.
4655 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4656 * wcsmbs/isoc99_vswscanf.c: Likewise.
4657 * wcsmbs/isoc99_vwscanf.c: Likewise.
4658 * wcsmbs/isoc99_wscanf.c: Likewise.
4659
4660 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4661
4662 * include/time.h
4663 (__tz_compute): Replace time_t with __time64_t.
4664 (__tz_convert): Replace time_t* with __time64_t.
4665 (__offtime): Replace time_t* with __time64_t.
4666 * time/gmtime.c
4667 (__gmtime_r): Adjust call to __tz_convert.
4668 (gmtime): Likewise.
4669 * time/localtime.c
4670 (__localtime_r): Likewise.
4671 (localtime): Likewise.
4672 * time/offtime.c: Replace time_t with __time64_t.
4673 * time/tzset.c: Likewise.
4674
4675 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4676
4677 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4678 dynamic linker unless [$(run-built-tests) = yes].
4679
4680 2018-12-03 DJ Delorie <dj@delorie.com>
4681
4682 * support/test-container.c (check_for_unshare_hints): New.
4683 (main): Call it if unshare fails. Add support for "su" scriptlet
4684 command.
4685
4686 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4687
4688 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4689 'START' to indicate that start text should be output.
4690 (gen_test): Likewise.
4691 (main): Generate 'START' for first symbol or '--' line, or at end
4692 of input if not previously generated.
4693
4694 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4695
4696 [BZ #19767]
4697 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4698 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4699 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4700 ALWAYS_USE_VSYSCALL.
4701
4702 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4703
4704 [BZ #23913]
4705 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4706 new_argv by one.
4707
4708 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4709
4710 [BZ #23923]
4711 * locale/programs/localedef.c: Declare boolean hard_links default true.
4712 (options): Add --no-hard-links option.
4713 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4714 * locale/programs/localedef.h: Declare prototype for hard_links.
4715 * locale/programs/locfile.c (write_locale_data): Don't use hard
4716 links if hard_links is false.
4717
4718 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4719
4720 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4721 cpu_features_basic.
4722 (__cache_sysconf): Likewise.
4723 (init_cacheinfo): Likewise.
4724 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4725 populate COMMON_CPUID_INDEX_80000007 and
4726 COMMON_CPUID_INDEX_80000008.
4727 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4728 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4729 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4730 (init_cpu_features): Use _Static_assert on
4731 index_arch_Fast_Unaligned_Load.
4732 __get_cpuid_registers and __get_arch_feature. Updated for
4733 cpu_features_basic. Set stepping in cpu_features.
4734 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4735 (FEATURE_INDEX_2): New.
4736 (FEATURE_INDEX_MAX): Changed to enum.
4737 (COMMON_CPUID_INDEX_D_ECX_1): New.
4738 (COMMON_CPUID_INDEX_80000007): Likewise.
4739 (COMMON_CPUID_INDEX_80000008): Likewise.
4740 (cpuid_registers): Likewise.
4741 (cpu_features_basic): Likewise.
4742 (CPU_FEATURE_USABLE): Likewise.
4743 (bit_arch_XXX_Usable): Likewise.
4744 (cpu_features): Use cpuid_registers and cpu_features_basic.
4745 (bit_arch_XXX): Reweritten.
4746 (bit_cpu_XXX): Likewise.
4747 (index_cpu_XXX): Likewise.
4748 (reg_XXX): Likewise.
4749 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4750 <support/check.h>.
4751 (CHECK_CPU_FEATURE): New.
4752 (CHECK_CPU_FEATURE_USABLE): Likewise.
4753 (cpu_kinds): Likewise.
4754 (do_test): Print vendor, family, model and stepping. Check
4755 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4756 (TEST_FUNCTION): Removed.
4757 Include <support/test-driver.c> instead of
4758 "../../test-skeleton.c".
4759 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4760 Check POPCNT instead of POPCOUNT.
4761 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4762
4763 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4764
4765 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4766 there is no element in `consts'.
4767
4768 2018-12-01 Florian Weimer <fweimer@redhat.com>
4769
4770 * support/support_capture_subprocess.c
4771 (support_capture_subprocess): Check that pipe descriptors have
4772 expected values. Close original pipe descriptors in subprocess.
4773
4774 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4775
4776 [BZ #23032]
4777 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4778 attr with __pthread_default_barrierattr.
4779 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4780 attr with __pthread_default_condattr.
4781 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4782 attr with __pthread_default_mutexattr.
4783 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4784 attr with __pthread_default_rwlockattr.
4785
4786 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4787
4788 * manual/tunables.texi (POSIX Thread Tunables): New node.
4789 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4790 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4791 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4792 __pthread_tunables_init.
4793 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4794 (max_adaptive_count): Define.
4795 * nptl/pthread_mutex_conf.c: New file.
4796 * nptl/pthread_mutex_conf.h: New file.
4797 * sysdeps/generic/adaptive_spin_count.h: New file.
4798 * sysdeps/nptl/dl-tunables.list: New file.
4799 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4800 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4801 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4802 Likewise.
4803
4804 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4805
4806 [BZ #20544]
4807 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4808 * stdlib/on_exit.c (__on_exit): Likewise.
4809 * stdlib/Makefile (tests): Add tst-bz20544.
4810 * stdlib/tst-bz20544.c: New test.
4811
4812 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4813
4814 [BZ #19767]
4815 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4816 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4817 New.
4818
4819 2018-11-30 Florian Weimer <fweimer@redhat.com>
4820
4821 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4822 Extend error logging.
4823 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4824 symbol.
4825
4826 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4827
4828 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4829 __sigismember instead of sigismember.
4830 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4831 cancel_handler): New definitions.
4832 (do_system): Use posix_spawn instead of fork and execl and remove
4833 reentracy code.
4834 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4835 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4836 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4837 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4838 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4839 * sysdeps/unix/sysv/linux/system.c: Likewise.
4840
4841 [BZ #22834]
4842 [BZ #17490]
4843 * NEWS: Add new semantic for atfork with popen and system.
4844 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4845 fork and execl.
4846
4847 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4848
4849 [BZ #23690]
4850 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4851 modification order when accessing reloc_result->addr.
4852 * include/link.h (reloc_result): Add field init.
4853 * nptl/Makefile (tests): Add tst-audit-threads.
4854 (modules-names): Add tst-audit-threads-mod1 and
4855 tst-audit-threads-mod2.
4856 Add rules to build tst-audit-threads.
4857 * nptl/tst-audit-threads-mod1.c: New file.
4858 * nptl/tst-audit-threads-mod2.c: Likewise.
4859 * nptl/tst-audit-threads.c: Likewise.
4860 * nptl/tst-audit-threads.h: Likewise.
4861
4862 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4863
4864 * scripts/gen-as-const.py: New file.
4865 * scripts/gen-as-const.awk: Remove.
4866 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4867 gen-as-const.py.
4868 ($(objpfx)test-as-const-%.c): Likewise.
4869
4870 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4871
4872 * elf/dl-exception.c: Include <_itoa.h>.
4873
4874 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4875
4876 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4877 returned by __f_setlk.
4878
4879 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4880 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4881
4882 * elf/Makefile (tests-internal): Add tst-create_format1.
4883 * elf/dl-exception.c (_dl_exception_create_format): Support
4884 %x, %lx and %zx.
4885 * elf/tst-create_format1.c: New file.
4886
4887 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4888
4889 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4890 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4891 gnulib.)
4892 * argp/argp-help.c (__argp_failure): Likewise.
4893
4894 2018-11-29 Mao Han <han_mao@c-sky.com>
4895
4896 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4897 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4898 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4899 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4900 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4901 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4902 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4903 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4904 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4905 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4906 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4907 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4908 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4909 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4910 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4911 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4912 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4913 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4914 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4915 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4916 (R_CKCORE_TLS_TPOFF32): New defines.
4917
4918 2018-11-29 Florian Weimer <fweimer@redhat.com>
4919
4920 * posix/Makefile (before-compile): Remove testcases.h and
4921 ptestcases.h.
4922 (generated): Add testcases.h and ptestcases.h.
4923 (testcases.h, ptestcases.h): Move to $(objpfx).
4924 (runtests.o): Add dependency on testcases.h.
4925 (runptests.o): Add dependency on ptestcases.h.
4926 * posix/testcases.h, posix/ptestcases.h: Remove files.
4927 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4928 not touch posix/testcases.h and posix/ptestcases.h.
4929
4930 2018-11-28 Florian Weimer <fweimer@redhat.com>
4931
4932 support: Add signal support to support_capture_subprocess_check.
4933 * support/capture_subprocess.h (support_capture_subprocess_check):
4934 Adjust comment and rename parameter.
4935 * support/support_capture_subprocess_check.c
4936 (print_actual_status): New function.
4937 (support_capture_subprocess_check): Support negative
4938 status_or_signal. Call print_actual_status.
4939 * support/tst-support_capture_subprocess.c (do_test): Call
4940 support_capture_subprocess_check.
4941 * libio/tst-vtables-common.c (termination_status)
4942 (init_termination_status): Remove.
4943 (check_for_termination): Adjust support_capture_subprocess_check
4944 call.
4945 (do_test): Remove call to init_termination_status.
4946
4947 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4948
4949 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4950 source directory instead of a copy.
4951 (CommandList.create_copy_dir): Remove.
4952
4953 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4954
4955 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4956
4957 2018-11-28 Florian Weimer <fweimer@redhat.com>
4958
4959 * support/support.h (support_quote_string): Do not use str
4960 parameter name.
4961
4962 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4963
4964 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4965 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4966
4967 2018-11-27 Florian Weimer <fweimer@redhat.com>
4968
4969 * support/support.h (support_quote_string): Declare.
4970 * support/support_quote_string.c: New file.
4971 * support/tst-support_quote_string.c: Likewise.
4972 * support/Makefile (libsupport-routines): Add
4973 support_quote_string.
4974 (tests): Add tst-support_quote_string.
4975
4976 2018-11-27 Florian Weimer <fweimer@redhat.com>
4977
4978 [BZ #23927]
4979 CVE-2018-19591
4980 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4981 descriptor leak in case of ENODEV error.
4982
4983 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4984
4985 [BZ #19767]
4986 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4987 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4988 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4989
4990 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4991
4992 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4993 Error for unknown lines.
4994
4995 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4996
4997 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4998 Touch additional files.
4999
5000 2018-11-26 Florian Weimer <fweimer@redhat.com>
5001
5002 [BZ #23907]
5003 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
5004 double-frees.
5005
5006 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
5007
5008 [BZ #19767]
5009 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
5010 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
5011 SHARED. Include sysdep.h.
5012 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
5013 ALWAYS_USE_VSYSCALL.
5014 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
5015 ALWAYS_USE_VSYSCALL.
5016
5017 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
5018
5019 [BZ #19767]
5020 * nptl/Makefile (tests-static): Add tst-cond11-static.
5021 (tests): Likewise.
5022 * nptl/tst-cond11-static.c: New File.
5023 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
5024 tst-affinity-static.
5025 (tests): Likewise.
5026 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
5027 instead of SHARED.
5028 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
5029 (USE_VSYSCALL): Likewise.
5030 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
5031 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
5032 instead of SHARED.
5033 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
5034 SHARED.
5035 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
5036 New.
5037
5038 2018-11-23 Joseph Myers <joseph@codesourcery.com>
5039
5040 [BZ #23915]
5041 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5042 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
5043 Undefine.
5044
5045 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
5046
5047 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
5048 (tst-cet-legacy-1a-ARGS): New.
5049 ($(objpfx)tst-cet-legacy-1a): New target.
5050 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
5051
5052 2018-11-22 Joseph Myers <joseph@codesourcery.com>
5053
5054 * conform/conformtest.py (CompileSubTest.__init__): Set
5055 self.run_early to False.
5056 (ExecuteSubTest.__init__): Likewise.
5057 (HeaderTests.run): Try running all non-optional, non-XFAILed
5058 compilation tests in a single execution of the compiler.
5059
5060 * conform/conformtest.py (CompileSubTest): New class.
5061 (ExecuteSubTest): Likewise.
5062 (ElementTest.run): Rename to gen_subtests. Append tests to
5063 self.subtests instead of running them.
5064 (ConstantTest.run): Likewise.
5065 (SymbolTest.run): Likewise.
5066 (TypeTest.run): Likewise.
5067 (TagTest.run): Likewise.
5068 (FunctionTest.run): Likewise.
5069 (VariableTest.run): Likewise.
5070 (MacroFunctionTest.run): Likewise.
5071 (MacroStrTest.run): Likewise.
5072 (HeaderTests.handle_test_line): Generate subtests for tests.
5073 (HeaderTests.run): Run subtests for tests.
5074
5075 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5076
5077 * math/Versions (GLIBC_2.29): Add pow.
5078 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5079 symbol.
5080 * math/w_pow.c: New file.
5081 * sysdeps/i386/fpu/w_pow.c: New file.
5082 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5083 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5084 and add necessary aliases.
5085 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5086 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5087 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5088 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5089 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5090 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5091 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5092 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5093 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5094 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5095 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5096 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5097 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5098 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5099 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5100 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5101 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5102 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5103 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5104 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5105 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5106 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5107 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5108 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5109 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5110 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5111 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5112 __pow.
5113 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5114 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5115 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5116
5117 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5118
5119 * math/Versions (GLIBC_2.29): Add log2.
5120 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5121 symbol.
5122 * math/w_log2.c: New file.
5123 * sysdeps/i386/fpu/w_log2.c: New file.
5124 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5125 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5126 and add necessary aliases.
5127 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5128 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5129 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5130 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5131 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5132 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5133 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5134 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5135 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5136 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5137 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5138 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5139 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5140 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5141 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5142 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5144 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5146 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5147 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5148 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5149 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5150 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5151 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5152 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5153
5154 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5155
5156 * math/Versions (GLIBC_2.29): Add log.
5157 * math/w_log_compat.c (__log_compat): Change to versioned compat
5158 symbol.
5159 * math/w_log.c: New file.
5160 * sysdeps/i386/fpu/w_log.c: New file.
5161 * sysdeps/ia64/fpu/e_log.S: Update.
5162 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5163 and add necessary aliases.
5164 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5165 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5166 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5167 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5168 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5169 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5170 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5171 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5172 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5173 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5174 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5175 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5176 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5177 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5178 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5180 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5181 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5183 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5184 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5185 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5186 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5187 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5189 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5190 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5191 __log.
5192 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5193 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5194 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5195 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5196
5197 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5198
5199 * math/Versions (GLIBC_2.29): Add exp and exp2.
5200 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5201 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5202 * math/w_exp_compat.c (__exp_compat): Likewise.
5203 * math/w_exp.c: New file.
5204 * math/w_exp2.c: New file.
5205 * sysdeps/i386/fpu/w_exp.c: New file.
5206 * sysdeps/i386/fpu/w_exp2.c: New file.
5207 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5208 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5209 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5210 and add necessary aliases.
5211 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5212 and add necessary aliases.
5213 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5214 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5215 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5216 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5217 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5218 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5219 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5220 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5221 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5222 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5223 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5224 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5225 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5226 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5227 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5228 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5229 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5230 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5232 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5234 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5235 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5236 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5237 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5238 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5239 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5240 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5241 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5242 (__ieee754_exp): Rename to __exp.
5243 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5244 (__ieee754_exp): Rename to __exp.
5245 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5246 (__ieee754_exp): Rename to __exp.
5247 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5248 __exp.
5249 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5250
5251 2018-11-20 DJ Delorie <dj@redhat.com>
5252
5253 * malloc/malloc.c (tcache_entry): Add key field.
5254 (tcache_put): Set it.
5255 (tcache_get): Likewise.
5256 (_int_free): Check for double free in tcache.
5257 * malloc/tst-tcfree1.c: New.
5258 * malloc/tst-tcfree2.c: New.
5259 * malloc/Makefile: Run the new tests.
5260 * manual/probes.texi: Document memory_tcache_double_free probe.
5261
5262 * dlfcn/dlerror.c (check_free): Prevent double frees.
5263
5264 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5265
5266 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5267
5268 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5269
5270 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5271 in tests. Use names for format arguments.
5272 (ConstantTest.run): Likewise.
5273 (SymbolTest.run): Likewise.
5274 (TypeTest.run): Likewise.
5275 (TagTest.run): Likewise.
5276 (FunctionTest.run): Likewise.
5277 (VariableTest.run): Likewise.
5278 (MacroFunctionTest.run): Likewise.
5279 (MacroStrTest.run): Likewise.
5280 (HeaderTests.__init__): Set self.num_tests.
5281 (HeaderTests.handle_test_line): Set test.num. Increment
5282 self.num_tests.
5283
5284 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5285
5286 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5287 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5288 SEEK_SET.
5289
5290 2018-11-19 Mao Han <han_mao@c-sky.com>
5291
5292 * scripts/config.guess: Update to version 2018-08-29.
5293 * scripts/config.sub: Update to version 2018-08-29.
5294
5295 2018-11-19 Florian Weimer <fweimer@redhat.com>
5296
5297 support: Print timestamps in timeout handler.
5298 * support/support_test_main.c (print_timestamp): New function.
5299 (signal_handler): Use it to print the termination time and the
5300 time of the last write to standard output.
5301
5302 2018-11-16 Zack Weinberg <zackw@panix.com>
5303 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5304
5305 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5306 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5307 argument.
5308 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5309 and add flags argument. Check flags instead of __ldbl_is_dbl when
5310 deciding whether to set is_long_double.
5311 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5312 passing zero for flags argument.
5313 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5314
5315 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5316 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5317 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5318 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5319 variable names. Remove libc_hidden_def/libc_hidden_proto from
5320 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5321 longer called from within the library.
5322 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5323 for __nldbl___vstrfmon_l, declare it explicitly.
5324
5325 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5326
5327 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5328
5329 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5330 macros
5331 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5332 F_SETLK64, F_SETLKW64, respectively.
5333 * sysdeps/mach/hurd/f_setlk.c: New file.
5334 * sysdeps/mach/hurd/f_setlk.h: New file.
5335 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5336 f_setlk.
5337 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5338 (__libc_fcntl): Move non-flock operations to...
5339 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5340 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5341
5342 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5343
5344 mktime: DEBUG_MKTIME cleanup
5345 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5346 And it’s no longer needed now that glibc and Gnulib both have
5347 their own testing mechanisms for mktime.
5348 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5349
5350 mktime: fix non-EOVERFLOW errno handling
5351 [BZ#23789]
5352 mktime was not properly reporting failures when the underlying
5353 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5354 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5355 The problem could happen on non-glibc platforms, with Gnulib.
5356 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5357 (tm_diff): ... this simpler function, which does not change errno.
5358 All callers changed to deal with errno themselves.
5359 (ranged_convert, __mktime_internal): Return failure immediately if
5360 the underlying function reports any failure other than EOVERFLOW.
5361 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5362 gap code fails.
5363
5364 mktime: fix bug with Y2038 DST transition
5365 [BZ#23789]
5366 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5367 mishandle a DST transition that jumps over the Y2038 boundary.
5368 No such DST transitions are known so this is only a theoretical
5369 bug, but we might as well do things right.
5370
5371 mktime: make more room for overflow
5372 [BZ#23789]
5373 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5374 This is so that we can add tm_diff results to a previous guess,
5375 which will be useful in a later patch.
5376
5377 mktime: simplify offset guess
5378 [BZ#23789]
5379 * time/mktime.c (__mktime_internal): Omit excess precision.
5380
5381 mktime: new test for mktime failure
5382 [BZ#23789]
5383 Based on a test suggested by Albert Aribaud in:
5384 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5385 * time/Makefile (tests): Add bug-mktime4.
5386 * time/bug-mktime4.c: New file.
5387
5388 mktime: fix EOVERFLOW bug
5389 [BZ#23789]
5390 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5391 Include libc-config.h, not config.h, for __set_errno.
5392 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5393
5394 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5395
5396 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5397 __attribute_copy__ to copy attributes from name. Drop static qualifier
5398 to avoid warnings about leaf attribute not having effect on static
5399 functions.
5400
5401 2018-11-13 Florian Weimer <fweimer@redhat.com>
5402
5403 * malloc/malloc.c (fastbin_push_entry): New function.
5404 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5405 (REMOVE_FB): Remove macro.
5406 (_int_malloc): Use fastbin_pop_entry and reindent.
5407 (_int_free): Use fastbin_push_entry.
5408 (malloc_consolidate): Use atomic_exchange_acquire.
5409
5410 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5411
5412 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5413 alias attribute, not with strong_alias.
5414
5415 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5416 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5417 with additional parameter thread.
5418 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5419 in terms of __hidden_ver2.
5420 (hidden_tls_def): New macro.
5421 (libc_hidden_tls_def): Likewise.
5422 (rtld_hidden_tls_def): Likewise.
5423 (libm_hidden_tls_def): Likewise.
5424 (libmvec_hidden_tls_def): Likewise.
5425 (libresolv_hidden_tls_def): Likewise.
5426 (librt_hidden_tls_def): Likewise.
5427 (libdl_hidden_tls_def): Likewise.
5428 (libnss_files_hidden_tls_def): Likewise.
5429 (libnsl_hidden_tls_def): Likewise.
5430 (libnss_nisplus_hidden_tls_def): Likewise.
5431 (libutil_hidden_tls_def): Likewise.
5432 (libutil_hidden_tls_def): Likweise.
5433 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5434 libc_hidden_tls_def.
5435 (__sim_disabled_exceptions_thread): Likewise.
5436 (__sim_round_mode_thread): Likewise.
5437
5438 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5439 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5440 copy attributes from name.
5441
5442 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5443
5444 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5445 Use __attribute_copy__ to copy attributes from name.
5446
5447 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5448 with __hidden_ver1 call.
5449 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5450 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5451 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5452 (__cosf): Do not declare here.
5453 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5454 (__sincosf): Do not declare here.
5455 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5456 (__sinf): Do not declare here.
5457
5458 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5459 (__BIG_ENDIAN): Likewise.
5460 (__BYTE_ORDER): Likewise.
5461 (strong_alias): Likewise.
5462 (_strong_alias): Likewise.
5463
5464 2018-11-12 Florian Weimer <fweimer@redhat.com>
5465
5466 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5467 function. Move after the definition of in_smallbin_range. Do not
5468 use __builtin_expect for paths that lead to a noreturn function.
5469 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5470 because it is unclear whether this is in fact an unlikely
5471 condition.
5472 (_int_malloc, _int_free): Adjust.
5473 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5474 variables.
5475 * malloc/arena.c (heap_trim): Likewise.
5476
5477 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5478
5479 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5480 it, free it if needed.
5481 (reauthenticate): Test and use ccwdir.
5482 (child_init_port): In non-resetids case, test and use ccwdir.
5483 (child_chdir): New nested function to set ccwdir.
5484 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5485 * hurd/hurd/port.h (_hurd_port_move): New function.
5486 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5487 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5488 * hurd/Versions (_hurd_port_move): Export function.
5489 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5490 symbol.
5491 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5492 of dtablesize for allocating dtable_cloexec.
5493
5494 2018-11-09 Martin Sebor <msebor@redhat.com>
5495
5496 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5497 it's already defined.
5498 (_strong_alias): Use __attribute_copy__.
5499 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5500 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5501 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5502 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5503 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5504 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5505 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5506 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5507 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5508 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5509 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5510 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5511 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5512 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5513 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5514 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5515 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5516 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5517 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5518
5519 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5520
5521 * misc/tst-efgcvt.c: Include support/check.h and
5522 support/test-driver.c. Do not include test-skeleton.c.
5523 (error_count): Remove.
5524 (output_error): Replace increments to error_count with calls to
5525 support_record_failure.
5526 (output_r_error): Likewise.
5527 (special): Likewise.
5528 (do_test): Unconditionally return zero.
5529 (TEST_FUNCTION): Remove.
5530
5531 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5532
5533 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5534 not $(@D)/scratch.
5535 ($(linknamespace-header-tests)): Likewise.
5536
5537 * conform/conformtest.py: New file.
5538 * conform/conformtest.pl: Remove.
5539 * conform/GlibcConform.pm: Likewise.
5540 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5541 (KEYWORDS_C99): Likewise.
5542 (KEYWORDS): Likewise.
5543 * conform/Makefile ($(conformtest-header-tests)): Use
5544 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5545 option. Use --header instead of --headers.
5546 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5547 function entries.
5548 * conform/data/spawn.h-data: Likewise.
5549 * conform/data/fcntl.h-data (openat): Add space after function
5550 name.
5551 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5552 (wcscasecmp_l): Likewise.
5553 * conform/data/termios.h-data (c_cc): Add space after element
5554 name.
5555
5556 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5557
5558 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5559 instead of manually comparing and reporting mismatching strings.
5560 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5561 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5562
5563 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5564
5565 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5566 __ASSUME_SOCKETCALL.
5567 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5568 (__ASSUME_SOCKETCALL): Remove.
5569 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5570 (__ASSUME_SOCKETCALL): Likewise.
5571 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5572 (__ASSUME_SOCKETCALL): Likewise.
5573 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5574 (__ASSUME_SOCKETCALL): Likewise.
5575 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5576 (__ASSUME_SOCKETCALL): Likewise.
5577 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5578 (__ASSUME_SOCKETCALL): Likewise.
5579 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5580 (__ASSUME_SOCKETCALL): Likewise.
5581
5582 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5583
5584 [BZ #23509]
5585 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5586 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5587 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5588 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5589 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5590 lc_unknown.
5591
5592 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5593
5594 [BZ #17630]
5595 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5596
5597 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5598
5599 [BZ #23867]
5600 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5601 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5602 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5603 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5604
5605 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5606
5607 * support/support_test_compare_string.c
5608 (support_test_compare_string): Fix printf format.
5609
5610 2018-11-07 Florian Weimer <fweimer@redhat.com>
5611
5612 Implement TEST_COMPARE_STRING.
5613 * support/check.h (TEST_COMPARE_STRING): Define.
5614 (support_test_compare_string): Declare.
5615 * support/Makefile (libsupport-routines): Add
5616 support_test_compare_string.
5617 (tests): Add tst-test_compare_string.
5618 * support/support_test_compare_string.c: New file.
5619 * support/tst-test_compare_string.c: Likewise.
5620
5621 2018-11-07 Andreas Schwab <schwab@suse.de>
5622
5623 [BZ #23864]
5624 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5625 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5626 Undef.
5627
5628 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5629
5630 [BZ #23862]
5631 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5632 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5633 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5634 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5635 Likewise.
5636
5637 2018-11-06 Florian Weimer <fweimer@redhat.com>
5638
5639 [BZ #17405]
5640 * posix/Makefile (routines): Add spawn_faction_addchdir.
5641 (tests): Add tst-spawn-chdir.
5642 * posix/Versions (GLIBC_2.29): Add
5643 posix_spawn_file_actions_addchdir_np.
5644 * posix/spawn_faction_addchdir.c: New file.
5645 * posix/spawn_faction_destroy.c
5646 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5647 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5648 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5649 chdir_action.
5650 * posix/tst-spawn-chdir.c: New file.
5651 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5652 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5653 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5654 posix_spawn_file_actions_addchdir_np.
5655 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5656 Likewise.
5657 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5658 Likewise.
5659 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5660 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5661 Likewise.
5662 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5663 Likewise.
5664 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5665 Likewise.
5666 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5667 Likewise.
5668 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5669 Likewise.
5670 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5671 Likewise.
5672 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5673 (GLIBC_2.29): Likewise.
5674 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5675 (GLIBC_2.29): Likewise.
5676 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5677 (GLIBC_2.29): Likewise.
5678 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5679 (GLIBC_2.29): Likewise.
5680 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5681 Likewise.
5682 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5683 (GLIBC_2.29): Likewise.
5684 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5685 (GLIBC_2.29): Likewise.
5686 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5687 (GLIBC_2.29): Likewise.
5688 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5689 (GLIBC_2.29): Likewise.
5690 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5691 Likewise.
5692 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5693 Likewise.
5694 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5695 Likewise.
5696 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5697 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5698 Likewise.
5699 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5700 Likewise.
5701 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5702 Likewise.
5703 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5704 Likewise.
5705
5706 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5707
5708 * misc/Makefile (tests): Add tst-ldbl-error.
5709 * misc/tst-ldbl-error.c: New file.
5710
5711 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5712
5713 * misc/Makefile (tests): Add tst-ldbl-warn.
5714 * misc/tst-ldbl-warn.c: New file.
5715
5716 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5717
5718 * argp/Makefile (tests): Add tst-ldbl-argp.
5719 * argp/tst-ldbl-argp.c: New file.
5720
5721 2018-11-05 Arjun Shankar <arjun@redhat.com>
5722
5723 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5724 __gconv_path_elem and call __gconv_get_path unconditionally.
5725
5726 2018-11-05 Andreas Schwab <schwab@suse.de>
5727
5728 [BZ #22927]
5729 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5730 creating the first helper thread failed.
5731
5732 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5733
5734 * sysdeps/mach/hurd/msync.c: New file.
5735
5736 2018-11-02 Florian Weimer <fweimer@redhat.com>
5737
5738 * support/shell-container.c (copy_func): Call
5739 support_copy_file_range instead of copy_file_range to support
5740 cross-device copies.
5741
5742 2018-11-02 Florian Weimer <fweimer@redhat.com>
5743
5744 * support/test-container.c: Include <libc-pointer-arith.h> for
5745 ALIGN_UP.
5746
5747 2018-11-01 Zong Li <zong@andestech.com>
5748
5749 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5750 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5751 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5752 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5753
5754 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5755 variable to avoid overlap arguments.
5756
5757 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5758
5759 * posix/bug-regex22.c (main): Use puts with distinct error
5760 messages for unexpected success of re_compile_pattern, not printf
5761 with NULL argument to %s.
5762
5763 * stdio-common/bug22.c: Include <libc-diag.h>.
5764 (do_test): Disable -Wformat-overflow= warnings around fprintf
5765 calls outputting more than INT_MAX characters.
5766 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5767 around printf call with NULL %s argument.
5768
5769 [BZ #23848]
5770 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5771 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5772 Undefine.
5773 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5774 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5775 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5776 (__ASSUME_SENDTO_SYSCALL): Likewise.
5777 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5778 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5779 [!__arch64__].
5780 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5781 (__ASSUME_CONNECT_SYSCALL): Likewise.
5782 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5783 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5784 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5785 Define.
5786 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5787 Likewise.
5788 [__LINUX_KERNEL_VERSION >= 0x040400]
5789 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5790 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5791 Remove.
5792 (listen): Likewise.
5793 (setsockopt): Likewise.
5794
5795 2018-11-01 Fredrik Noring <noring@nocrew.org>
5796
5797 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5798 with the ISA override.
5799
5800 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5801
5802 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5803 #endif.
5804
5805 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5806
5807 * manual/errno.texi (EIEIO): Document how translators should
5808 translate the error message.
5809 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5810 printing trailing whitespaces refused by git.
5811 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5812 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5813 * hurd/Makefile (user-interfaces): Add pci.
5814
5815 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5816
5817 * conform/linknamespace.py: New file.
5818 * conform/linknamespace.pl: Remove file.
5819 * conform/Makefile ($(linknamespace-header-tests)): Use
5820 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5821 option.
5822
5823 2018-10-30 Florian Weimer <fweimer@redhat.com>
5824
5825 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5826 memory leaks.
5827
5828 2018-10-30 Florian Weimer <fweimer@redhat.com>
5829
5830 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5831
5832 2018-10-30 Florian Weimer <fweimer@redhat.com>
5833
5834 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5835 support_blob_repeat.
5836
5837 2018-10-30 Florian Weimer <fweimer@redhat.com>
5838
5839 Avoid spurious test failures in stdlib/test-bz22786.
5840 * support/Makefile (libsupport-routines): Add blob_repeat.
5841 (tests): Add tst-support_blob_repeat.
5842 * support/blob_repeat.h: New file.
5843 * support/blob_repeat.c: Likewise.
5844 * support/tst-support_blob_repeat.c: Likewise.
5845 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5846 support_blob_repeat_allocate.
5847
5848 2018-10-30 Andreas Schwab <schwab@suse.de>
5849
5850 [BZ #23125]
5851 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5852 Don't use tail call.
5853 * elf/tst-unwind-main.c: New file.
5854 * elf/Makefile (tests): Add tst-unwind-main.
5855 (CFLAGS-tst-unwind-main.c): Define.
5856
5857 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5858
5859 [BZ #23791]
5860 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5861 n_cs_precedes to 0.
5862 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5863
5864 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5865
5866 * conform/glibcconform.py: Do not import shutil.
5867 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5868 of mkdtemp.
5869
5870 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5871 critic_missing for versions before 3.4.
5872 * configure: Regenerated.
5873 * manual/install.texi (Tools for Compilation): Document
5874 requirement for Python to build glibc.
5875 * INSTALL: Regenerated.
5876 * Rules [PYTHON]: Make code unconditional.
5877 * benchtests/Makefile [PYTHON]: Likewise.
5878 * conform/Makefile [PYTHON]: Likewise.
5879 * manual/Makefile [PYTHON]: Likewise.
5880 * math/Makefile [PYTHON]: Likewise.
5881
5882 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5883
5884 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5885 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5886 answer to interrupt_operation, return EIEIO instead of EINTR.
5887 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5888 _hurd_intr_rpc_msg_about_to global point to start of controlled
5889 assembly snippet. Make it check canceled flag.
5890 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5891 the _hurd_intr_rpc_msg_about_to point.
5892 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5893 issue, remove cancel flag check.
5894
5895 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5896
5897 * scripts/build-many-glibcs.py: Remove compatibility for missing
5898 os.cpu_count and re.fullmatch.
5899
5900 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5901
5902 [BZ #23822]
5903 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5904 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5905 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5906
5907 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5908
5909 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5910 macro.
5911
5912 2018-10-25 Florian Weimer <fweimer@redhat.com>
5913
5914 [BZ #23562]
5915 [BZ #23821]
5916 XFAIL siginfo_t si_band conform test on sparc64.
5917 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5918 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5919 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5920 (conformtest-xfail-conds): Add sparc64-linux.
5921 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5922 sparc64.
5923 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5924
5925 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5926
5927 * elf/elf.h (NT_MIPS_DSP): New macro.
5928 (NT_MIPS_FP_MODE): Likewise.
5929
5930 2018-10-25 Zong Li <zong@andestech.com>
5931
5932 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5933 name by adding the file extension (.so).
5934
5935 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5936
5937 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5938 (test-xfail-ISO11/threads.h/linknamespace,
5939 test-xfail-ISO11/threads.h/conform): Add.
5940
5941 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5942
5943 * math/gen-libm-test.py: Import os.
5944 (ALL_FLOATS_MANUAL): New constant.
5945 (ALL_FLOATS_SUFFIX): Likewise.
5946 (Ulps.all_functions): New function.
5947 (real_all_ulps): Likewise.
5948 (generate_err_table_sub): Likewise.
5949 (generate_err_table): Likewise.
5950 (main): Handle -s and -m options.
5951 * manual/libm-err-tab.pl: Remove.
5952 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5953 instead of libm-err-tab.pl.
5954 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5955 != no].
5956 * manual/install.texi (Tools for Compilation): Document
5957 requirement for Python to build manual.
5958 * INSTALL: Regenerated.
5959
5960 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5961
5962 * bits/time64.h: New file.
5963 * include/time.h: Replace internal_time_t with __time64_t.
5964 * posix/bits/types (__time64_t): Add.
5965 * stdlib/Makefile: Add bits/time64.h to includes.
5966 * time/tzfile.c: Replace internal_time_t with __time64_t.
5967
5968 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5969
5970 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5971 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5972 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5973 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5974 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5975 prototype.
5976 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5977 * posix/spawn_faction_addclose.c
5978 (__posix_spawn_file_actions_addclose): Add hidden definition.
5979 * posix/spawn_faction_adddup2.c
5980 (__posix_spawn_file_actions_adddup2): Likewise.
5981 * posix/spawn_faction_destroy.c
5982 (__posix_spawn_file_actions_destroy): Likewise.
5983 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5984 Likewise.
5985 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5986 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5987 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5988 Likewise.
5989 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5990 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5991 Likewise.
5992
5993 2018-10-24 Andreas Schwab <schwab@suse.de>
5994
5995 [BZ #18093]
5996 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5997 format cache.
5998 * elf/cache.c (print_cache): Likewise.
5999
6000 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
6001
6002 * bits/timesize.h: New file.
6003 * stdlib/Makefile (headers): Add bits/timesize.h.
6004 * sysdeps/unix/sysv/linux/bits/msq-pad.h
6005 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
6006 * sysdeps/unix/sysv/linux/bits/sem-pad.h
6007 (__SEM_PAD_AFTER_TIME): Likewise.
6008 * sysdeps/unix/sysv/linux/bits/shm-pad.h
6009 (__SHM_PAD_AFTER_TIME): Likewise.
6010 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
6011 (__MSQ_PAD_BEFORE_TIME): Likewise.
6012 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
6013 (__SEM_PAD_BEFORE_TIME): Likewise.
6014 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
6015 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6016 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
6017 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
6018 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
6019 (__MSQ_PAD_BEFORE_TIME): Likewise.
6020 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
6021 (__SEM_PAD_BEFORE_TIME): Likewise.
6022 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
6023 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
6024 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
6025 (__MSQ_PAD_BEFORE_TIME): Likewise.
6026 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
6027 (__SEM_PAD_BEFORE_TIME): Likewise.
6028 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
6029 (__SHM_PAD_BEFORE_TIME): Likewise.
6030 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
6031 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6032 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
6033
6034 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
6035
6036 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
6037 USE_RDTSCP is defined.
6038 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
6039 USE_RDTSCP is defined.
6040
6041 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6042
6043 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
6044 defined.
6045
6046 [BZ #23709]
6047 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
6048 independently of other flags.
6049
6050 2018-10-23 Florian Weimer <fweimer@redhat.com>
6051
6052 * time/tst-mktime2.c (N_STRINGS): Remove.
6053 (set_timezone): New function.
6054 (spring_forward_gap): Call it. Use FAIL_EXIT1.
6055 (mktime_test1): Report localtime failure and check errno value.
6056 Use TEST_COMPARE.
6057 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
6058 (do_test): Remove alarm call. Use set_timezone and array_length.
6059
6060 2018-10-23 Andreas Schwab <schwab@suse.de>
6061
6062 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
6063 (__start_context): Use END instead of PSEUDO_END.
6064
6065 2018-10-22 Joseph Myers <joseph@codesourcery.com>
6066
6067 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
6068 version to 4.19.
6069
6070 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
6071 version to 4.19.
6072
6073 [BZ #23793]
6074 * wcsmbs/c32rtomb.c: New file.
6075 * wcsmbs/mbrtoc32.c: Likewise.
6076 * wcsmbs/tst-c32-state.c: Likewise.
6077 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6078 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6079 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6080 (tests): Add tst-c32-state.
6081 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6082 $(gen-locales).
6083
6084 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6085
6086 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6087 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6088
6089 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6090
6091 [BZ #23794]
6092 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6093 pair and return 0 in that case, and use saved character to
6094 interpret following character.
6095 * wcsmbs/tst-c16-surrogate.c: New file.
6096 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6097 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6098 Depend on $(gen-locales)
6099
6100 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6101
6102 [BZ #23562]
6103 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6104 (struct siginfo_t): Use correct type for si_band.
6105
6106 2018-10-19 Florian Weimer <fweimer@redhat.com>
6107
6108 [BZ #23689]
6109 * resource/bits/types/struct_rusage.h (struct rusage): Update
6110 comment on struct. Remove extraneous field comment.
6111
6112 2018-10-18 David S. Miller <davem@davemloft.net>
6113
6114 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6115 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6116 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6117 sysdep_routines in subdir elf.
6118 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6119 version for __vdso_clock_gettime.
6120 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6121 Define.
6122 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6123 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6124
6125 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6126
6127 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6128
6129 * sysdeps/i386/init-arch.h: Removed.
6130 * sysdeps/i386/i586/init-arch.h: Likewise.
6131 * sysdeps/i386/i686/init-arch.h: Likewise.
6132 * sysdeps/i386/i686/hp-timing.h: Likewise.
6133 * sysdeps/x86_64/hp-timing.h: Likewise.
6134 * sysdeps/i386/isa.h: New file.
6135 * sysdeps/i386/i586/isa.h: Likewise.
6136 * sysdeps/i386/i686/isa.h: Likewise.
6137 * sysdeps/x86_64/isa.h: Likewise.
6138 * sysdeps/x86/hp-timing.h: New file.
6139 * sysdeps/x86/init-arch.h: Include <isa.h>.
6140
6141 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6142
6143 * math/libm-test-pow.inc (pow_test_data): Do not allow
6144 divide-by-zero exception for pow(+/- 0, -Inf).
6145
6146 2018-10-17 Zack Weinberg <zackw@panix.com>
6147
6148 * manual/job.texi (Job Control is Optional): Remove node, as
6149 job control has not been optional in quite some time.
6150 (Job Control): Mention briefly that systems older than
6151 POSIX.1-2001 might not support job control.
6152 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6153 defined on systems conforming to POSIX.1-2001.
6154
6155 2018-10-17 Arjun Shankar <arjun@redhat.com>
6156
6157 [BZ #22062]
6158 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6159 indentation.
6160 * (__gconv_read_conf): Mark function static.
6161 * (once): New static variable.
6162 * (__gconv_load_conf): New function.
6163 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6164 * iconv/gconv_db.c (once): Remove static variable.
6165 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6166 __gconv_read_conf.
6167 * (__gconv_find_transform): Likewise.
6168 * iconv/tst-iconv-mt.c: New test.
6169 * iconv/Makefile: Add tst-iconv_mt.
6170
6171 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6172
6173 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6174 bits/shm-pad.h.
6175 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6176 (shmatt_t): Define as __syscall_ulong_t.
6177 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6178 and [__SHM_PAD_AFTER_TIME].
6179 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6180 Define shm_segsz and associated padding based on
6181 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6182 Use __syscall_ulong_t instead of unsigned long int.
6183 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6184 unsigned long int.
6185 [__USE_MISC] (struct shm_info): Likewise.
6186 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6187 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6188 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6189 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6190 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6191 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6192 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6193 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6194 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6195 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6196 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6197
6198 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6199 bits/shmlba.h.
6200 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6201 (SHMLBA): Remove macro.
6202 (__getpagesize): Remove function declaration.
6203 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6204 <bits/shmlba.h>.
6205 (SHMLBA): Remove macro.
6206 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6207 <bits/shmlba.h>.
6208 (SHMLBA): Remove macro.
6209 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6210 <bits/shmlba.h>.
6211 (SHMLBA): Remove macro.
6212 (__getpagesize): Remove function declaration.
6213 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6214 <bits/shmlba.h>.
6215 (SHMLBA): Remove macro.
6216 (__getshmlba): Remove function declaration.
6217 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6218 (SHMLBA): Remove macro.
6219 (__getpagesize): Remove function declaration.
6220 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6221 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6222 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6223 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6224 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6225 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6226 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6227 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6228 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6229 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6230
6231 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6232
6233 [BZ #23275]
6234 * nptl/tst-mutex10.c: New File.
6235 * nptl/Makefile (tests): Add tst-mutex10.
6236 (tst-mutex10-ENV): New variable.
6237 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6238 Ensure that elision path is used if elision is available.
6239 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6240 Likewise.
6241 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6242 Likewise.
6243 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6244 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6245 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6246 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6247 Likewise.
6248 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6249 (__pthread_mutex_cond_lock_adjust): Likewise.
6250 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6251 Likewise.
6252 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6253 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6254 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6255 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6256 Add comments.
6257 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6258 Use atomic_load_relaxed and atomic_store_relaxed.
6259 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6260 Use atomic_store_relaxed.
6261
6262 2018-10-17 Andreas Schwab <schwab@suse.de>
6263
6264 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6265 * crypt/badsalttest.c (TIMEOUT): Likewise.
6266 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6267 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6268 * io/test-lfs.c (TIMEOUT): Likewise.
6269 * libio/tst-atime.c (TIMEOUT): Likewise.
6270 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6271 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6272 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6273 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6274 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6275 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6276 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6277 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6278 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6279 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6280 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6281 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6282 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6283 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6284 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6285 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6286 * nptl/tst-once2.c (TIMEOUT): Likewise.
6287 * nptl/tst-once3.c (TIMEOUT): Likewise.
6288 * nptl/tst-once4.c (TIMEOUT): Likewise.
6289 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6290 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6291 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6292 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6293 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6294 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6295 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6296 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6297 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6298 * posix/tst-chmod.c (TIMEOUT): Likewise.
6299 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6300 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6301 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6302 * posix/tst-regex2.c (TIMEOUT): Likewise.
6303 * posix/tst-waitid.c (TIMEOUT): Likewise.
6304 * rt/tst-aio.c (TIMEOUT): Likewise.
6305 * rt/tst-aio10.c (TIMEOUT): Likewise.
6306 * rt/tst-aio4.c (TIMEOUT): Likewise.
6307 * rt/tst-aio5.c (TIMEOUT): Likewise.
6308 * rt/tst-aio6.c (TIMEOUT): Likewise.
6309 * rt/tst-aio64.c (TIMEOUT): Likewise.
6310 * rt/tst-aio7.c (TIMEOUT): Likewise.
6311 * rt/tst-aio9.c (TIMEOUT): Likewise.
6312 * rt/tst-clock.c (TIMEOUT): Likewise.
6313 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6314 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6315 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6316 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6317 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6318 * rt/tst-timer4.c (TIMEOUT): Likewise.
6319 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6320 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6321 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6322 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6323 * time/tst-ftime.c (TIMEOUT): Likewise.
6324 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6325
6326 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6327
6328 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6329 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6330 for thunderX2.
6331
6332 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6333
6334 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6335 bits/sem-pad.h.
6336 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6337 instead of <bits/wordsize.h>.
6338 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6339 and [__SEM_PAD_AFTER_TIME].
6340 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6341 __syscall_ulong_t instead of unsigned long int.
6342 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6343 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6344 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6345 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6346 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6347 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6348 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6349 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6350 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6351 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6352 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6353
6354 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6355
6356 regex: simplify by using intprops.h
6357 [BZ#23744]
6358 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6359 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6360 intprops.h defines them.
6361
6362 regex: __builtin_expect → __glibc_unlikely
6363 [BZ#23744]
6364 This refactoring was prompted by a problem when the regex code is
6365 used as part of Gnulib and when the builder’s compiler does not grok
6366 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6367 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6368 Although this refactoring does not fix the problem directly,
6369 we might as well have Gawk use the now-preferred glibc style for when
6370 __builtin_expect is unavailable.
6371 * posix/regex_internal.h (BE): Remove.
6372 All uses replaced by __glibc_unlikely or __glibc_likely.
6373
6374 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6375
6376 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6377 bits/msq-pad.h.
6378 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6379 instead of <bits/wordsize.h>.
6380 (msgqnum_t): Define as __syscall_ulong_t.
6381 (msglen_t): Likewise.
6382 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6383 and [__MSQ_PAD_AFTER_TIME].
6384 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6385 __syscall_ulong_t instead of unsigned long int.
6386 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6387 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6388 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6389 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6390 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6391 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6392 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6393 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6394 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6395 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6396 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6397
6398 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6399
6400 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6401 (struct shmid_ds): Condition padding after time fields on
6402 [__WORDSIZE == 32].
6403 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6404 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6405 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6406
6407 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6408 (struct semid_ds): Condition padding after time fields on
6409 [__WORDSIZE == 32].
6410 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6411 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6412 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6413 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6414
6415 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6416 (struct msqid_ds): Condition padding after time fields on
6417 [__WORDSIZE == 32].
6418 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6419 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6420 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6421 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6422
6423 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6424
6425 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6426
6427 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6428
6429 * libio/tst-readline.c (TIMEOUT): Define.
6430
6431 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6432
6433 mktime fix for Gnulib + coreutils
6434 [BZ#23745]
6435 This fix affects only Gnulib. Problem discovered when
6436 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6437 * time/mktime.c:
6438 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6439 Do not define since it is not used. Defining an unused static
6440 function prompts a warning from GCC when Coreutils is configured
6441 with --enable-gcc-warnings.
6442
6443 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6444
6445 * benchtests/scripts/compare_bench.py (main): set float type on
6446 threshold argument.
6447
6448 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6449
6450 [BZ #23740]
6451 * localedata/locales/kl_GL (mon): Update, the relative case.
6452 (alt_mon): Add, fill with month names in the nominative case.
6453 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6454 (d_fmt): Set to "%b %d %Y".
6455
6456 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6457
6458 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6459 <bits/mman-linux.h>.
6460 (PROT_READ): Don't define here.
6461 (PROT_WRITE): Likewise.
6462 (PROT_EXEC): Likewise.
6463 (PROT_NONE): Likewise.
6464 (PROT_GROWSDOWN): Likewise.
6465 (PROT_GROWSUP): Likewise.
6466 (MAP_SHARED): Likewise.
6467 (MAP_PRIVATE): Likewise.
6468 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6469 [__USE_MISC] (MAP_FILE): Likewise.
6470 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6471 [__USE_MISC] (MAP_ANON): Likewise.
6472 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6473 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6474 (MCL_CURRENT): Likewise.
6475 (MCL_FUTURE): Likewise.
6476 (MCL_ONFAULT): Likewise.
6477 [__USE_MISC] (MADV_NORMAL): Likewise.
6478 [__USE_MISC] (MADV_RANDOM): Likewise.
6479 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6480 [__USE_MISC] (MADV_WILLNEED): Likewise.
6481 [__USE_MISC] (MADV_DONTNEED): Likewise.
6482 [__USE_MISC] (MADV_FREE): Likewise.
6483 [__USE_MISC] (MADV_REMOVE): Likewise.
6484 [__USE_MISC] (MADV_DONTFORK): Likewise.
6485 [__USE_MISC] (MADV_DOFORK): Likewise.
6486 [__USE_MISC] (MADV_HWPOISON): Likewise.
6487 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6488 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6489 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6490 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6491 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6492 (__MAP_ANONYMOUS): New macro.
6493 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6494 <bits/mman-linux.h> inclusion.
6495 (MAP_FIXED): Likewise.
6496 (MS_SYNC): Likewise.
6497 (MS_ASYNC): Likewise.
6498 (MS_INVALIDATE): Likewise.
6499 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6500 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6501 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6502 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6503 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6504 [__USE_MISC] (MADV_DODUMP): Likewise.
6505 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6506 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6507
6508 [BZ #23735]
6509 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6510 Define.
6511 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6512 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6513 Add test-nldbl-redirect.
6514 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6515 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6516 $(objpfx)libnldbl_nonshared.a.
6517
6518 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6519
6520 * support/support.h (support_objdir_elf_ldso): New variable.
6521 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6522 * support/Makefile (CFLAGS-support_paths.c): Add definition
6523 for OBJDIR_ELF_LDSO_PATH.
6524 * support/test-container.c (main): Search for the ld.so
6525 which is also used by the testsuite.
6526
6527 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6528
6529 [BZ #20209]
6530 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6531 should be "sap" rather than "sab".
6532 (day): Fix spelling of Sunday, should be "sapaat" rather than
6533 "sabaat".
6534
6535 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6536
6537 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6538
6539 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6540
6541 [BZ #19444]
6542 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6543 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6544 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6545
6546 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6547
6548 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6549
6550 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6551
6552 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6553 Add -mrtm.
6554 (CFLAGS-elision-unlock.c): Likewise.
6555 (CFLAGS-elision-timed.c): Likewise.
6556 (CFLAGS-elision-trylock.c): Likewise.
6557 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6558
6559 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6560
6561 [BZ #21037]
6562 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6563 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6564 new fd_to_filename interface.
6565 * libio/freopen64.c (freopen64): Likewise.
6566 * libio/tst-memstream.h: New file.
6567 * libio/tst-memstream4.c: Likewise.
6568 * libio/tst-wmemstream4.c: Likewise.
6569 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6570 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6571 and remove internal dynamic allocation.
6572
6573 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6574
6575 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6576 (MREMAP_MAYMOVE): Do not define here.
6577 [__USE_GNU] (MREMAP_FIXED): Likewise.
6578 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6579 (MREMAP_MAYMOVE): Define here instead.
6580 [__USE_GNU] (MREMAP_FIXED): Likewise.
6581 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6582 (MREMAP_MAYMOVE): Remove.
6583 [__USE_GNU] (MREMAP_FIXED): Likewise.
6584
6585 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6586
6587 * math/fromfp.h: Do not include <math_private.h>.
6588 * math/s_cacosh_template.c: Likewise.
6589 * math/s_casin_template.c: Likewise.
6590 * math/s_casinh_template.c: Likewise.
6591 * math/s_ccos_template.c: Likewise.
6592 * math/s_cproj_template.c: Likewise.
6593 * math/s_fdim_template.c: Likewise.
6594 * math/s_fmaxmag_template.c: Likewise.
6595 * math/s_fminmag_template.c: Likewise.
6596 * math/s_iseqsig_template.c: Likewise.
6597 * math/s_ldexp_template.c: Likewise.
6598 * math/s_nextdown_template.c: Likewise.
6599 * math/w_log1p_template.c: Likewise.
6600 * math/w_scalbln_template.c: Likewise.
6601 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6602 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6603 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6604 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6605 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6606 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6607 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6608 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6609 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6610 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6611 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6612 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6613 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6614 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6615 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6616 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6617 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6618 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6619 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6620 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6621 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6622 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6623 * sysdeps/ieee754/k_standardf.c: Likewise.
6624 * sysdeps/ieee754/k_standardl.c: Likewise.
6625 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6626 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6627 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6628 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6629 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6630 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6631 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6632 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6633 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6634 * sysdeps/ieee754/s_signgam.c: Likewise.
6635 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6636 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6637 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6638 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6639 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6640 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6641 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6642 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6643 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6644 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6645 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6646 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6647 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6648 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6649 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6650 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6651 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6652 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6653 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6654 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6655 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6656 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6657 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6658 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6659 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6660 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6661 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6662 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6663 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6664 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6665 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6666 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6667 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6668 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6669 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6670 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6671 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6672 <math_private.h>.
6673 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6674
6675 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6676
6677 [BZ #23716]
6678 * sysdeps/i386/dl-cet.c: Removed.
6679 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6680 prototype.
6681 (_dl_runtime_profile_shstk): Likewise.
6682 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6683 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6684
6685 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6686
6687 [BZ #23579]
6688 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6689 do_test_with_invalid_iov): New tests.
6690 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6691 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6692 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6693 errno is ENOSYS.
6694 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6695 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6696 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6697
6698 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6699
6700 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6701 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6702 (MATH_REDIRECT_BINARY_ARGS): New macro.
6703 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6704 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6705 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6706 header inclusion.
6707 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6708 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6709 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6710 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6711 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6712 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6713 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6714 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6715 Likewise.
6716 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6717 Likewise.
6718 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6719 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6720 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6721 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6722 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6723 Likewise.
6724 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6725 Likewise.
6726 * sysdeps/generic/math_private_calls.h
6727 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6728 Do not declare and define as an inline function.
6729 * math/divtc3.c (__divtc3): Use copysign functions instead of
6730 __copysign variants.
6731 * math/multc3.c (__multc3): Likewise.
6732 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6733 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6734 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6735 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6736 Likewise.
6737 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6738 (__ieee754_yn): Likewise.
6739 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6740 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6741 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6742 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6743 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6744 (__sin): Likewise.
6745 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6746 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6747 Likewise.
6748 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6749 Likewise.
6750 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6751 Likewise.
6752 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6753 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6754 Likewise.
6755 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6756 (__ieee754_ynf): Likewise.
6757 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6758 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6759 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6760 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6761 Likewise.
6762 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6763 (__ieee754_ynl): Likewise.
6764 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6765 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6766 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6767 Likewise.
6768 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6769 (__ieee754_ynl): Likewise.
6770 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6771 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6772 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6773 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6774 Likewise.
6775 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6776 (__ieee754_ynl)
6777 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6778 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6779 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6780 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6781 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6782
6783 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6784 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6785 using MATH_REDIRECT.
6786 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6787 header inclusion.
6788 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6789 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6790 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6791 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6792 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6793 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6794 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6795 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6796 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6797 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6798 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6799 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6800 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6801 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6802 (round): Redirect to __round.
6803 (__roundl): Call round instead of __round.
6804 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6805 Remove macro.
6806 [_ARCH_PWR5X] (__roundf): Likewise.
6807 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6808 functions instead of __round variants.
6809 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6810 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6811 Likewise.
6812 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6813 Likewise.
6814 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6815 Likewise.
6816 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6817 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6818 __lroundl.
6819 (__ieee754_expl): Call roundl instead of __roundl.
6820
6821 2018-09-27 Andreas Schwab <schwab@suse.de>
6822
6823 [BZ #23717]
6824 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6825 (do_test): Make st1 static.
6826
6827 2018-09-26 Andreas Schwab <schwab@suse.de>
6828
6829 [BZ #23707]
6830 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6831 * elf/Makefile (tests): Add tst-unwind-ctor.
6832 (modules-names): Add tst-unwind-ctor-lib.
6833 ($(objpfx)tst-unwind-ctor): Depend on
6834 $(objpfx)tst-unwind-ctor-lib.so.
6835
6836 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6837
6838 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6839 file. Most contents moved from ....
6840 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6841 and include <bits/mman-map-flags-generic.h>.
6842 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6843 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6844 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6845 <bits/mman-map-flags-generic.h>.
6846 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6847 macros defined in <bits/mman-map-flags-generic.h>.
6848 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6849 <bits/mman-map-flags-generic.h>.
6850 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6851 defined in <bits/mman-map-flags-generic.h>.
6852
6853 2018-09-26 Andreas Schwab <schwab@suse.de>
6854
6855 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6856 output.
6857
6858 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6859 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6860 Fangrui Song <maskray@google.com>
6861
6862 [BZ #20480]
6863 * config.make.in (have-textrel_ifunc): New define.
6864 * configure.ac: Add check if linker supports textrel relocation with
6865 ifunc.
6866 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6867 tst-ifunc-textrel.
6868 (CFLAGS-tst-ifunc-textrel.c): New rule.
6869 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6870 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6871 * elf/tst-ifunc-textrel.c: New file.
6872
6873 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6874
6875 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6876 <bits/procfs-prregset.h>.
6877 (prgregset_t): Define using __prgregset_t.
6878 (prfpregset_t): Define using __prfpregset_t.
6879 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6880 (sysdep_headers): Add bits/procfs-prregset.h.
6881 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6882 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6883 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6884 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6885
6886 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6887 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6888 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6889 pr_uid and pr_gid.
6890 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6891 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6892 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6893 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6894 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6895 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6896 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6897 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6898 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6899 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6900 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6901 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6902 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6903 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6904 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6905 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6906 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6907 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6908 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6909 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6910 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6911 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6912 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6913 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6914
6915 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6916 AArch64 version. Include <bits/procfs.h>.
6917 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6918 (sysdep_headers): Add bits/procfs.h.
6919 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6920 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6921 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6922 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6923 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6924 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6925 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6926 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6927 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6928 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6929 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6930 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6931 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6932 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6933 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6934 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6935 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6936
6937 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6938
6939 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6940 Use libsupport.
6941
6942 2018-09-25 Arjun Shankar <arjun@redhat.com>
6943
6944 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6945 (__gconv_max_path_elem_len): Likewise.
6946 (__gconv_nmodules): Likewise.
6947 (__gconv_get_path): Likewise.
6948 (path_elem): Move to ...
6949 * iconv/gconv_conf.c: ... here.
6950 (__gconv_get_path): Mark function static.
6951 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6952 * iconv/gconv_open.c: ... here.
6953
6954 2018-09-24 Andreas Schwab <schwab@suse.de>
6955
6956 * scripts/haveversions.awk: New file.
6957 * Makerules ($(common-objpfx)Versions.def)
6958 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6959 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6960 Move rules ...
6961 * Makeconfig ($(common-objpfx)Versions.def)
6962 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6963 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6964 ... here.
6965 ($(common-objpfx)Versions.mk): New rule. Include it.
6966 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6967 Emit error if build-obsolete-nsl = yes.
6968 * manual/install.texi (Configuring and compiling): Describe
6969 --enable-obsolete-nsl as unavaiable after version 2.28.
6970 * INSTALL: Regenerate.
6971
6972 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6973
6974 * NEWS: Add note about new TLE support on powerpc64le.
6975 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6976 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6977 __ununsed1.
6978 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6979 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6980 * sysdeps/powerpc/powerpc32/sysdep.h,
6981 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6982 ABORT_TRANSACTION): Remove macros.
6983 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6984 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6985 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6986 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6987 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6988 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6989 usage.
6990 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6991
6992 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6993
6994 [BZ #10425]
6995 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6996 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6997 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6998 which is the same as in it_IT.
6999 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
7000 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
7001
7002 2018-09-20 Joseph Myers <joseph@codesourcery.com>
7003
7004 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7005 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
7006 using MATH_REDIRECT.
7007 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
7008 header inclusion.
7009 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
7010 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
7011 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
7012 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
7013 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
7014 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
7015 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
7016 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
7017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
7018 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
7019 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7020 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7021 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
7022 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
7023 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
7024 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
7025 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
7026 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
7027 (ceil): Redirect to __ceil.
7028 (floor): Redirect to __floor.
7029 (trunc): Redirect to __trunc.
7030 (__truncl): Call trunc instead of __trunc.
7031 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
7032 Remove macro.
7033 [_ARCH_PWR5X] (__truncf): Likewise.
7034 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
7035 trunc functions instead of __trunc variants.
7036 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7037 Likewise.
7038 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7039 Likewise.
7040 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7041 Likewise.
7042 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7043 Likewise.
7044
7045 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
7046 [__i586__ || __pentium__].
7047 [__i486__]: Handle explicitly.
7048 (HAS_CPUID): Define to 1 if above macros are undefined.
7049 (HAS_I586): Likewise.
7050 (HAS_I686): Likewise.
7051
7052 2018-09-20 Florian Weimer <fweimer@redhat.com>
7053
7054 * misc/tst-gethostid.c: New file.
7055 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
7056 (tst-gethostid): Link with -ldl.
7057
7058 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
7059
7060 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
7061 value from gethostbyname_r.
7062
7063 2018-09-19 Carlos O'Donell <carlos@redhat.com>
7064
7065 * stdlib/tst-setcontext9.c (f1): Rename to...
7066 (f1a): ... this.
7067 (f1b): New function implementing lower half of f1 in alternate stack.
7068
7069 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
7070
7071 Fix mktime localtime offset confusion
7072 [BZ #23603]
7073 * include/time.h (__mktime_internal): The localtime offset is now
7074 of type long int instead of time_t. This is the longstanding type
7075 in glibc, and it is more than enough to represent difference
7076 between localtime and gmtime even if it is 32 bits and time_t is
7077 64. Changing it now will let us avoid an unnecessary change when
7078 time_t is widened to 64 bits on 32-bit platforms.
7079 * time/mktime-internal.h (mktime_offset_t): Now long int.
7080
7081 Merge mktime, timegm from upstream Gnulib
7082 [BZ #23603][BZ #16346]
7083 This fixes some obscure problems with integer overflow.
7084 Although it looks scary, it is almost all a byte-for-byte copy
7085 from Gnulib, and the Gnulib code has been tested reasonably well.
7086 * include/intprops.h: New file, copied from Gnulib.
7087 * include/verify.h, time/mktime-internal.h:
7088 New tiny files, simplified from Gnulib.
7089 * time/mktime.c: Copy from Gnulib. This has the following changes:
7090 Do not include config.h if DEBUG_MKTIME is nonzero.
7091 Include stdbool.h, intprops.h, verify.h.
7092 Include string.h only if needed.
7093 Include stdlib.h on MS-Windows.
7094 Include mktime-internal.h.
7095 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7096 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7097 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7098 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7099 simplify later conditionals; default the others to zero. Use
7100 these conditionals to express only the code needed on the current
7101 platform. In uses of these conditionals, explicitly spell out how
7102 _LIBC affects things, so it’s easier to review from a glibc
7103 viewpoint.
7104 (WRAPV): Remove; no longer needed now that we have
7105 systematic overflow checking.
7106 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7107 compartmentalize tzset issues. Move system-dependent tzsettish
7108 code here from mktime.
7109 (verify): Remove; now done by verify.h. All uses changed.
7110 (long_int): Use a more-conservative definition, to avoid
7111 integer overflow.
7112 (SHR): Remove, replacing with ...
7113 (shr): New function, which means we needn’t worry about side
7114 effects in args, and conversion analysis is simpler.
7115 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7116 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7117 (time_t_avg, time_t_add_ok): Remove.
7118 (mktime_min, mktime_max): New constants.
7119 (leapyear, isdst_differ): Use bool for booleans.
7120 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7121 Use long_int, not time_t, for mktime differences.
7122 (long_int_avg): New function, replacing time_t_avg.
7123 INT_ADD_WRAPV replaces time_t_add_ok.
7124 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7125 All uses changed.
7126 (convert_time): New function.
7127 (ranged_convert): Use it.
7128 (__mktime_internal): Last arg now points to mktime_offset_t, not
7129 time_t. All uses changed. This is a no-op on glibc, where
7130 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7131 offset guess. Directly check for integer overflow instead of
7132 using a heuristic that works only 99.9...% of the time.
7133 Access *OFFSET only once, to avoid an unlikely race if the
7134 compiler delays a load and if this cascades into a signed integer
7135 overflow.
7136 (mktime): Move tzsettish code to my_tzset, and move
7137 localtime_offset to within mktime so that it doesn’t
7138 need a separate ifdef.
7139 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7140 instead of localtime.
7141 * time/timegm.c: Copy from Gnulib. This has the following changes:
7142 Include mktime-internal.h.
7143 [!_LIBC]: Include config.h and time.h. Do not include
7144 timegm.h or time_r.h. Make __mktime_internal a macro,
7145 and include mktime-internal.h to get its declaration.
7146 (timegm): Temporary is now mktime_offset_t, not time_t.
7147 This affects only Gnulib.
7148
7149 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7150
7151 [BZ #23637]
7152 * string/test-strstr.c (pr23637): New function.
7153 (test_main): Add tests with longer needles.
7154 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7155 * string/strstr.c (AVAILABLE): Likewise.
7156
7157 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7158
7159 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7160
7161 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7162
7163 * NEWS: Mention pow improvements.
7164 * math/Makefile (type-double-routines): Add e_pow_log_data.
7165 * sysdeps/generic/math_private.h (__exp1): Remove.
7166 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7167 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7168 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7169 contraction.
7170 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7171 (exp_inline): Remove.
7172 (__ieee754_exp): Only single double input is handled.
7173 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7174 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7175 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7176 (__pow_log_data): Define.
7177 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7178 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7179 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7180 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7181 contraction.
7182 (CFLAGS-e_pow-fma4.c): Likewise.
7183
7184 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7185
7186 Simplify tzfile fstat failure code
7187 [BZ #21716]
7188 * time/tzfile.c (__tzfile_read): Simplify slightly.
7189
7190 Fix tzfile low-memory assertion failure
7191 [BZ #21716]
7192 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7193 when registering time zone abbreviations.
7194
7195 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7196
7197 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7198 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7199 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7200 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7201 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7202 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7203 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7204 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7205 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7206
7207 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7208 __ceil.
7209 (__ceill): Call ceil instead of __ceil.
7210 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7211 __floor.
7212 (__floorl): Call floor instead of __floor.
7213
7214 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7215
7216 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7217 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7218 using MATH_REDIRECT.
7219 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7220 header inclusion.
7221 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7222 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7223 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7224 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7225 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7226 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7227 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7228 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7230 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7231 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7232 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7233 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7234 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7235 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7236 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7237 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7238 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7239 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7240 Remove macro.
7241 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7242 functions instead of __ceil variants.
7243 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7244 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7245 Likewise.
7246 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7247 Likewise.
7248 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7249 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7250 Likewise.
7251 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7252 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7253
7254 [BZ #21286]
7255 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7256 constant.
7257 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7258 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7259 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7260 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7261 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7262 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7263 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7264 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7265 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7266 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7267 (ILL_BADIADDR): Remove constant.
7268 (TRAP_BRANCH): Likewise.
7269 (TRAP_HWBKPT): Likewise.
7270
7271 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7272
7273 [BZ #23656]
7274 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7275 Remove [_MIPS_SIM = _ABIN32] conditional case.
7276 (struct elf_prpsinfo): Likewise.
7277
7278 [BZ #23649]
7279 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7280 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7281 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7282 Likewise.
7283 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7284 elf_prpsinfo): Likewise.
7285 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7286 elf_prpsinfo): Likewise.
7287 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7288 Likewise.
7289
7290 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7291 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7292 using MATH_REDIRECT.
7293 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7294 header inclusion.
7295 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7296 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7297 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7298 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7299 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7300 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7301 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7302 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7303 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7304 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7305 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7306 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7307 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7308 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7309 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7310 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7311 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7312 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7313 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7314 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7315 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7316 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7317 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7318 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7319 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7320 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7321 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7322 __rint variants.
7323 * math/e_scalbf.c (invalid_fn): Likewise.
7324 * math/e_scalbl.c (invalid_fn): Likewise.
7325 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7326 Likewise.
7327 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7328 Likewise.
7329 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7330 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7331 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7332 Likewise.
7333 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7334 Likewise.
7335 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7336 Likewise.
7337 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7338 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7339
7340 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7341 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7342 New macro.
7343 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7344 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7345 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7346 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7347 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7348 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7349 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7350 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7351 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7352 && !NO_MATH_REDIRECT] (floor): Likewise.
7353 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7354 header inclusion.
7355 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7356 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7357 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7358 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7359 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7360 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7361 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7362 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7363 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7364 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7366 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7367 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7368 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7369 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7370 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7371 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7372 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7373 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7374 Remove macro.
7375 [_ARCH_PWR5X] (__floorf): Likewise.
7376 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7377 inline function.
7378 [__SSE4_1__] (__floorf): Likewise.
7379 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7380 instead of __floor variants.
7381 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7382 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7383 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7384 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7385 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7386 * math/w_tgamma_compat.c (__tgamma): Likewise.
7387 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7388 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7389 * math/w_tgammal_compat.c (__tgammal): Likewise.
7390 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7391 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7392 Likewise.
7393 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7394 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7395 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7396 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7397 Likewise.
7398 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7399 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7400 Likewise.
7401 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7402 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7403 Likewise.
7404 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7405 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7406 Likewise.
7407 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7408 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7409 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7410 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7411 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7412 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7413
7414 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7415
7416 * elf/Makefile (modules-names-tests): New variable.
7417
7418 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7419
7420 * NEWS: Mention log2 improvements.
7421 * math/Makefile (type-double-routines): Add e_log2_data.
7422 * sysdeps/i386/fpu/e_log2_data.c: New file.
7423 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7424 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7425 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7426 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7427 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7428 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7429
7430 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7431
7432 * NEWS: Mention log improvement.
7433 * math/Makefile (type-double-routines): Add e_log_data.
7434 * sysdeps/i386/fpu/e_log_data.c: New file.
7435 * sysdeps/ia64/fpu/e_log_data.c: New file.
7436 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7437 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7438 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7439 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7440 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7441 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7442
7443 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7444 Xuepeng Guo <xuepeng.guo@intel.com>
7445
7446 [BZ #23606]
7447 * sysdeps/i386/start.S: Include <sysdep.h>
7448 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7449 enabled. Add cfi_undefined (eip).
7450
7451 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7452
7453 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7454 (MOVQ): Likewise.
7455 (EXTRACT_WORDS64): Likewise.
7456 (INSERT_WORDS64): Likewise.
7457 (GET_FLOAT_WORD): Likewise.
7458 (SET_FLOAT_WORD): Likewise.
7459
7460 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7461 argument.
7462 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7463 build, but not for second build if --full-gcc. Use
7464 --enable-languages=all for second build if --full-gcc.
7465 (get_parser): Add --full-gcc option.
7466 (main): Update call to Context.
7467
7468 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7469
7470 [BZ #10797]
7471 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7472 Single Quotation Mark).
7473 (thousands_sep): Likewise.
7474 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7475 * localedata/locales/it_IT (thousands_sep): Use ".".
7476 (grouping): Use "3;3".
7477
7478 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7479
7480 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7481 x86_64 and i686 configs using --enable-obsolete-rpc
7482 --enable-obsolete-nsl.
7483
7484 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7485
7486 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7487
7488 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7489
7490 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7491 Increment size of new_argv by one.
7492
7493 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7494
7495 [BZ #17426]
7496 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7497 * localedata/locales/ar_IN (d_fmt): Likewise.
7498 * localedata/locales/bhb_IN (d_fmt): Likewise.
7499 * localedata/locales/bho_IN (d_fmt): Likewise.
7500 * localedata/locales/bn_BD (d_fmt): Likewise.
7501 * localedata/locales/bn_IN (d_fmt): Likewise.
7502 * localedata/locales/doi_IN (d_fmt): Likewise.
7503 * localedata/locales/gu_IN (d_fmt): Likewise.
7504 * localedata/locales/hi_IN (d_fmt): Likewise.
7505 * localedata/locales/hne_IN (d_fmt): Likewise.
7506 * localedata/locales/kn_IN (d_fmt): Likewise.
7507 * localedata/locales/mag_IN (d_fmt): Likewise.
7508 * localedata/locales/mai_IN (d_fmt): Likewise.
7509 * localedata/locales/mjw_IN (d_fmt): Likewise.
7510 * localedata/locales/ml_IN (d_fmt): Likewise.
7511 * localedata/locales/mni_IN (d_fmt): Likewise.
7512 * localedata/locales/mr_IN (d_fmt): Likewise.
7513 * localedata/locales/pa_IN (d_fmt): Likewise.
7514 * localedata/locales/raj_IN (d_fmt): Likewise.
7515 * localedata/locales/sat_IN (d_fmt): Likewise.
7516 * localedata/locales/sd_IN (d_fmt): Likewise.
7517 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7518 * localedata/locales/ta_IN (d_fmt): Likewise.
7519 * localedata/locales/ta_LK (d_fmt): Likewise.
7520 * localedata/locales/tcy_IN (d_fmt): Likewise.
7521 * localedata/locales/ur_IN (d_fmt): Likewise.
7522
7523 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7524 * localedata/locales/ks_IN (d_fmt): Likewise.
7525 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7526
7527 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7528 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7529 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7530 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7531
7532 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7533
7534 * NEWS: Mention exp and exp2 improvements.
7535 * math/Makefile (libm-support): Remove t_exp.
7536 (type-double-routines): Add math_err and e_exp_data.
7537 * sysdeps/aarch64/libm-test-ulps: Update.
7538 * sysdeps/arm/libm-test-ulps: Update.
7539 * sysdeps/i386/fpu/e_exp_data.c: New file.
7540 * sysdeps/i386/fpu/math_err.c: New file.
7541 * sysdeps/i386/fpu/t_exp.c: Remove.
7542 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7543 * sysdeps/ia64/fpu/math_err.c: New file.
7544 * sysdeps/ia64/fpu/t_exp.c: Remove.
7545 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7546 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7547 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7548 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7549 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7550 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7551 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7552 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7553 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7554 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7555 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7556 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7557 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7558 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7559 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7560 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7561
7562 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7563
7564 * sysdeps/alpha/fpu/math_private.h: Remove.
7565
7566 * sysdeps/generic/math_private.h
7567 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7568 Move this inline function ....
7569 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7570 * include/math.h [!_ISOMAC]: To here....
7571
7572 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7573
7574 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7575 code ....
7576 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7577 * include/fenv.h [!_ISOMAC]: ... to here.
7578 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7579 (feraiseexcept): Likewise.
7580 * math/fromfp.h: Do not include <fenv_private.h>.
7581 * math/s_cexp_template.c: Likewise.
7582 * math/s_csin_template.c: Likewise.
7583 * math/s_csinh_template.c: Likewise.
7584 * math/s_ctan_template.c: Likewise.
7585 * math/s_ctanh_template.c: Likewise.
7586 * math/s_iseqsig_template.c: Likewise.
7587 * math/w_acos_compat.c: Likewise.
7588 * math/w_acosf_compat.c: Likewise.
7589 * math/w_acosl_compat.c: Likewise.
7590 * math/w_asin_compat.c: Likewise.
7591 * math/w_asinf_compat.c: Likewise.
7592 * math/w_asinl_compat.c: Likewise.
7593 * math/w_j0_compat.c: Likewise.
7594 * math/w_j0f_compat.c: Likewise.
7595 * math/w_j0l_compat.c: Likewise.
7596 * math/w_j1_compat.c: Likewise.
7597 * math/w_j1f_compat.c: Likewise.
7598 * math/w_j1l_compat.c: Likewise.
7599 * math/w_jn_compat.c: Likewise.
7600 * math/w_jnf_compat.c: Likewise.
7601 * math/w_log10_compat.c: Likewise.
7602 * math/w_log10f_compat.c: Likewise.
7603 * math/w_log10l_compat.c: Likewise.
7604 * math/w_log2_compat.c: Likewise.
7605 * math/w_log2f_compat.c: Likewise.
7606 * math/w_log2l_compat.c: Likewise.
7607 * math/w_log_compat.c: Likewise.
7608 * math/w_logf_compat.c: Likewise.
7609 * math/w_logl_compat.c: Likewise.
7610 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7611 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7612 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7613 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7614 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7615 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7616 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7617 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7618 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7619 * sysdeps/ieee754/k_standardl.c: Likewise.
7620 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7621 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7622 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7623 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7624 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7625 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7626 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7627 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7628 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7629 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7630 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7631 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7632 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7633 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7634 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7635 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7636 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7637 * math/w_ilogb_template.c: Include <fenv.h> instead of
7638 <fenv_private.h>.
7639 * math/w_llogb_template.c: Likewise.
7640 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7641 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7642
7643 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7644
7645 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7646 * math/fromfp.h: Include <fenv_private.h>.
7647 * math/math-narrow.h: Likewise.
7648 * math/s_cexp_template.c: Likewise.
7649 * math/s_csin_template.c: Likewise.
7650 * math/s_csinh_template.c: Likewise.
7651 * math/s_ctan_template.c: Likewise.
7652 * math/s_ctanh_template.c: Likewise.
7653 * math/s_iseqsig_template.c: Likewise.
7654 * math/w_acos_compat.c: Likewise.
7655 * math/w_acosf_compat.c: Likewise.
7656 * math/w_acosl_compat.c: Likewise.
7657 * math/w_asin_compat.c: Likewise.
7658 * math/w_asinf_compat.c: Likewise.
7659 * math/w_asinl_compat.c: Likewise.
7660 * math/w_ilogb_template.c: Likewise.
7661 * math/w_j0_compat.c: Likewise.
7662 * math/w_j0f_compat.c: Likewise.
7663 * math/w_j0l_compat.c: Likewise.
7664 * math/w_j1_compat.c: Likewise.
7665 * math/w_j1f_compat.c: Likewise.
7666 * math/w_j1l_compat.c: Likewise.
7667 * math/w_jn_compat.c: Likewise.
7668 * math/w_jnf_compat.c: Likewise.
7669 * math/w_llogb_template.c: Likewise.
7670 * math/w_log10_compat.c: Likewise.
7671 * math/w_log10f_compat.c: Likewise.
7672 * math/w_log10l_compat.c: Likewise.
7673 * math/w_log2_compat.c: Likewise.
7674 * math/w_log2f_compat.c: Likewise.
7675 * math/w_log2l_compat.c: Likewise.
7676 * math/w_log_compat.c: Likewise.
7677 * math/w_logf_compat.c: Likewise.
7678 * math/w_logl_compat.c: Likewise.
7679 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7680 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7681 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7682 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7683 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7684 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7685 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7686 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7687 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7688 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7689 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7690 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7691 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7692 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7693 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7694 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7695 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7696 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7697 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7698 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7699 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7700 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7701 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7702 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7703 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7704 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7705 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7706 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7707 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7708 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7709 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7710 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7711 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7712 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7713 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7714 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7715 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7716 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7717 * sysdeps/ieee754/k_standardl.c: Likewise.
7718 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7719 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7720 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7721 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7722 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7723 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7724 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7725 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7726 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7727 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7728 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7729 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7730 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7731 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7732 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7733 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7734 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7735 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7736 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7737 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7738 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7739 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7740 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7741 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7742 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7743 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7744 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7745 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7746 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7747 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7748 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7749 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7750 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7751 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7752 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7753 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7754 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7755 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7756 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7757 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7758 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7759 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7760 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7761 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7762 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7763 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7764 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7765 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7766 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7767 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7768 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7769 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7770 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7771 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7772 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7773 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7774 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7775 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7776 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7777 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7778 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7779 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7780 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7781 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7782 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7783 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7784 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7785 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7786 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7787 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7788 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7789
7790 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7791
7792 [BZ #20271]
7793 * include/stdio.h (__libc_fatal): Mention newline in comment.
7794 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7795 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7796 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7797 * nss/nsswitch.c (__nss_next2): Likewise.
7798 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7799 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7800 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7801 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7802 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7803 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7804 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7805 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7806 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7807 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7808 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7809 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7810 (__netlink_assert_response): Likewise.
7811
7812 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7813
7814 * conform/glibcconform.py: New file.
7815 * conform/list-header-symbols.py: Likewise.
7816 * conform/list-header-symbols.pl: Remove.
7817 * conform/Makefile (tests-special): Only add linknamespace tests
7818 if [PYTHON].
7819 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7820
7821 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7822
7823 [BZ #23597]
7824 * support/Makefile (libsupport-routines): Add
7825 support_copy_file_range and xcopy_file_range.
7826 * support/support.h: Include <sys/types.h>.
7827 (support_copy_file_range): New prototype.
7828 * support/support_copy_file_range.c: New file. Copied and
7829 modified from io/copy_file_range-compat.c.
7830 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7831 instead of copy_file_range.
7832 * support/xcopy_file_range.c: New file.
7833 * support/xunistd.h (xcopy_file_range): New prototype.
7834
7835 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7836
7837 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7838 xpthread_create and xpthread_join.
7839
7840 2018-08-30 Florian Weimer <fweimer@redhat.com>
7841
7842 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7843
7844 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7845
7846 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7847 if malloc fails.
7848
7849 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7850
7851 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7852 and minus_oflow as non-finite.
7853
7854 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7855
7856 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7857 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7858 moved to fenv_private.h except for ...
7859 (TOINT_INTRINSICS): Kept in math_private.h.
7860 (roundtoint): Likewise.
7861 (converttoint): Likewise.
7862 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7863 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7864 * sysdeps/arm/math_private.h: Remove.
7865 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7866 ....
7867 * sysdeps/generic/math_private.h: ... this file. Include
7868 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7869 Include <fenv_private.h>. Remove functions and macros moved to
7870 fenv_private.h.
7871 * sysdeps/i386/fpu/math_private.h: Remove.
7872 * sysdeps/mips/math_private.h: Move to ....
7873 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7874 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7875 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7876 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7877 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7878 * sysdeps/powerpc/fpu/math_private.h: Do not include
7879 <fenv_private.h>.
7880 * sysdeps/riscv/rvf/math_private.h: Move to ....
7881 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7882 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7883 <fenv_private.h>.
7884 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7885 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7886 * sysdeps/sparc/fpu/math_private.h: Remove.
7887 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7888 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7889 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7890 <fenv_private.h>.
7891 * sysdeps/x86_64/fpu/math_private.h: Do not include
7892 <sysdeps/i386/fpu/fenv_private.h>.
7893
7894 2018-08-28 Florian Weimer <fweimer@redhat.com>
7895
7896 [BZ #23578]
7897 * posix/tst-regcomp-truncated.c: New file.
7898 * posix/Makefile (tests): Add it.
7899 (tst-regcomp-truncated.out): Depend on generated locales.
7900
7901 2018-08-28 Florian Weimer <fweimer@redhat.com>
7902
7903 * support/test-container.c (main): Treat unshare failure with
7904 EPERM as an unsupported test.
7905
7906 2018-08-28 Florian Weimer <fweimer@redhat.com>
7907
7908 [BZ #23520]
7909 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7910 * nscd/netgroupcache.c
7911 (addgetnetgrentX): Add tofreep parameter. Do not free
7912 heap-allocated buffer.
7913 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7914 (addgetnetgrentX_ignore): New function.
7915 (addgetnetgrent): Call it.
7916 (readdgetnetgrent): Likewise.
7917
7918 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7919
7920 * string/memmem.c: Use memcmp for first match.
7921
7922 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7923
7924 [BZ #17426]
7925 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7926
7927 2018-08-27 DJ Delorie <dj@redhat.com>
7928
7929 * support/Makefile (others): Don't list programs explicitly as a
7930 dependency of "others".
7931
7932 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7933
7934 * sysdeps/generic/math-tests-trap-force.h: New file.
7935 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7936 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7937 * sysdeps/powerpc/math-tests.h: Remove file.
7938 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7939
7940 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7941 Torvald Riegel <triegel@redhat.com>
7942
7943 [BZ #23538]
7944 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7945 Update r to include the set wake-request flag if waiters are
7946 remaining after spinning.
7947
7948 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7949
7950 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7951
7952 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7953
7954 [BZ #23578]
7955 regex: fix uninitialized memory access
7956 I introduced this bug into gnulib in commit
7957 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7958 eventually it was merged into glibc. The bug was found by
7959 project-repo <bugs@feusi.co> and reported here:
7960 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7961 Diagnosis and draft fix reported by Assaf Gordon here:
7962 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7963 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7964 * posix/regex_internal.c (build_wcs_upper_buffer):
7965 Fix bug when mbrtowc returns 0.
7966
7967 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7968
7969 * po/be.po: Update translation.
7970
7971 2018-08-24 DJ Delorie <dj@delorie.com>
7972
7973 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7974 $(libunwind).
7975
7976 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7977
7978 [BZ #23400]
7979 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7980 create temporary files in source tree.
7981
7982 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7983
7984 * sysdeps/generic/math-tests-trap.h: New file.
7985 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7986 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7987 * sysdeps/aarch64/math-tests.h: Remove file.
7988 * sysdeps/arm/math-tests.h: Likewise.
7989 * sysdeps/riscv/math-tests.h: Likewise.
7990 * sysdeps/aarch64/math-tests-trap.h: New file.
7991 * sysdeps/arm/math-tests-trap.h: Likewise.
7992 * sysdeps/riscv/math-tests-trap.h: Likewise.
7993
7994 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7995
7996 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7997 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7998 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7999 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
8000 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
8001 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
8002 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
8003 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
8004 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
8005 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8006 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8007 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8008 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8009 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
8010 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
8011 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
8012 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
8013 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
8014
8015 2018-08-23 Joseph Myers <joseph@codesourcery.com>
8016
8017 * sysdeps/generic/math-tests-exceptions.h: New file.
8018 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
8019 (EXCEPTION_TESTS_float): Do not define here.
8020 (EXCEPTION_TESTS_double): Likewise.
8021 (EXCEPTION_TESTS_long_double): Likewise.
8022 (EXCEPTION_TESTS_float128): Likewise.
8023 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
8024 Likewise.
8025 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
8026 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
8027 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
8028 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
8029 * sysdeps/mips/math-tests.h: Likewise.
8030 * sysdeps/nios2/math-tests.h: Likewise.
8031 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8032 (EXCEPTION_TESTS_float): Do not define here.
8033 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
8034 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
8035 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
8036
8037 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8038
8039 * NEWS: Move optimized sinf entry to 2.29.
8040
8041 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
8042
8043 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
8044
8045 2018-08-22 DJ Delorie <dj@redhat.com>
8046
8047 * Makefile (testroot.pristine): New rules to initialize the
8048 test-in-container "testroot".
8049 * Makerules (all-testsuite): Add tests-container.
8050 * Rules (tests-expected): Add tests-container.
8051 (binaries-all-tests): Likewise.
8052 (tests-container): New, run these tests in the testroot container.
8053 * support/Makefile (others): Add *-container, support_paths.c,
8054 xmkdirp, and links-dso-program.
8055 * support/links-dso-program-c.c: New.
8056 * support/links-dso-program.cc: New.
8057 * support/test-container.c: New.
8058 * support/shell-container.c: New.
8059 * support/echo-container.c: New.
8060 * support/true-container.c: New.
8061 * support/xmkdirp.c: New.
8062 * support/xsymlink.c: New.
8063 * support/support_paths.c: New.
8064 * support/support.h: Add support paths prototypes.
8065 * support/xunistd.h: Add xmkdirp () and xsymlink ().
8066
8067 * nss/tst-nss-test3.c: Convert to test-in-container.
8068 * nss/tst-nss-test3.root/: New.
8069
8070 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
8071
8072 regex: port Gnulib code to z/OS POSIX environment
8073 Problem reported by Arnold Robbins in:
8074 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8075 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8076 Undef.
8077
8078 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8079
8080 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8081 (ROUNDING_TESTS_double): Remove.
8082 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8083 (ROUNDING_TESTS_double): Remove.
8084 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8085 (ROUNDING_TESTS_double): Remove.
8086 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8087 (ROUNDING_TESTS_float): Remove.
8088 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8089 (ROUNDING_TESTS_float): Remove.
8090 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8091 (ROUNDING_TESTS_float): Remove.
8092 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8093 !TEST_MATHVEC here.
8094 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8095 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8096
8097 * sysdeps/generic/math-tests-rounding.h: New file.
8098 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8099 (ROUNDING_TESTS_float): Do not define here.
8100 (ROUNDING_TESTS_double): Likewise.
8101 (ROUNDING_TESTS_long_double): Likewise.
8102 (ROUNDING_TESTS_float128): Likewise.
8103 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8104 (ROUNDING_TESTS_double): Undefine before defining.
8105 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8106 (ROUNDING_TESTS_double): Undefine before defining.
8107 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8108 (ROUNDING_TESTS_double): Undefine before defining.
8109 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8110 (ROUNDING_TESTS_float): Undefine before defining.
8111 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8112 (ROUNDING_TESTS_float): Undefine before defining.
8113 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8114 (ROUNDING_TESTS_float): Undefine before defining.
8115 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8116 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8117 not define here.
8118 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8119 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8120 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8121 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8122 (ROUNDING_TESTS_float): Do not define here.
8123 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8124 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8125 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8126 (ROUNDING_TESTS_float): Likewise.
8127 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8128 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8129 * sysdeps/mips/math-tests.h [__mips_soft_float]
8130 (ROUNDING_TESTS_float): Likewise.
8131 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8132 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8133 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8134 (ROUNDING_TESTS_double): Likewise.
8135 (ROUNDING_TESTS_long_double): Likewise.
8136
8137 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8138
8139 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8140 (PF_XDP): New macro.
8141 (AF_XDP): New macro.
8142 (SOL_XDP): New macro.
8143
8144 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8145
8146 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8147 (TCP_INQ): Likewise.
8148 (TCP_CM_INQ): Likewise.
8149 (TCP_REPAIR_ON): Likewise.
8150 (TCP_REPAIR_OFF): Likewise.
8151 (TCP_REPAIR_OFF_NO_WP): Likewise.
8152 (struct tcp_zerocopy_receive): New type.
8153
8154 2018-08-21 Florian Weimer <fweimer@redhat.com>
8155
8156 * support/support.h (support_descriptor_supports_holes): Declare.
8157 * support/Makefile (libsupport-routines): Add
8158 support_descriptor_supports_holes.
8159 * support/support_descriptor_supports_holes.c: New file.
8160 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8161 and stop testing if holes are not supported.
8162 * io/test-lfs.c (do_prepare): Likewise.
8163 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8164 Likewise.
8165 * timezone/tst-tzset.c (create_tz_file): Likewise.
8166 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8167 variable.
8168 (do_prepare): Set it.
8169 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8170
8171 2018-08-21 Florian Weimer <fweimer@redhat.com>
8172
8173 [BZ #17248]
8174 * Makeconfig (+cflags): Do not sort (and deduplicate).
8175
8176 2018-08-21 Florian Weimer <fweimer@redhat.com>
8177
8178 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8179 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8180
8181 2018-08-20 Florian Weimer <fweimer@redhat.com>
8182
8183 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8184 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8185
8186 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8187
8188 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8189 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8190 and ssi_arch members.
8191
8192 * elf/elf.c (NT_VMCOREDD): New macro.
8193 (AT_MINSIGSTKSZ): Likewise.
8194
8195 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8196
8197 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8198 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8199 s_cosf-ppc64 and s_cosf-power8.
8200 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8201 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8202 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8203 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8205 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8206 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8208 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8209 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8210 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8211 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8212
8213 2018-08-17 Florian Weimer <fweimer@redhat.com>
8214
8215 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8216
8217 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8218
8219 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8220
8221 2018-08-16 Florian Weimer <fweimer@redhat.com>
8222
8223 * configure.ac: Add --with-nonshared-cflags option.
8224 * config.make.in (extra-nonshared-cflags): Set variable.
8225 * Makeconfig (CFLAGS-.oS): Use it.
8226 * manual/install.texi (Configuring and compiling): Document
8227 --with-nonshared-cflags.
8228 * configure: Regenerate.
8229 * INSTALL: Likewise.
8230
8231 2018-08-16 Florian Weimer <fweimer@redhat.com>
8232
8233 * Makeconfig (ASFLAGS): Always append required assembler flags.
8234
8235 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8236
8237 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8238 (malloc_consolidate): Likewise.
8239
8240 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8241
8242 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8243
8244 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8245
8246 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8247 every strlen call.
8248
8249 * benchtests/bench-strlen.c: Print performance numbers in json.
8250
8251 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8252
8253 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8254 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8255 only for little endian.
8256 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8257 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8258 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8259 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8260 Add check for little endian.
8261 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8262 (__strcmp_power9): Add check for little endian.
8263 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8264 Add check for little endian.
8265 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8266 (__strncmp_power9): Add check for little endian.
8267 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8268 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8269 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8270 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8271 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8272
8273 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8274
8275 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8276 [!STRLEN](STRLEN): Set to __strlen.
8277 * sysdeps/aarch64/multiarch/strlen.c: New file.
8278 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8279 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8280 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8281 (__libc_ifunc_impl_list): Add strlen.
8282 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8283 strlen_generic and strlen_asimd.
8284
8285 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8286
8287 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8288 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8289 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8290
8291 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8292
8293 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8294
8295 2018-08-14 Florian Weimer <fweimer@redhat.com>
8296
8297 [BZ #23519]
8298 * include/stdio.h (__vfxprintf): Declare.
8299 * stdio-common/fxprintf.c (__vfxprintf): New function.
8300 (__fxprintf): Call it.
8301 * misc/err.c (convert_and_print): Remove function.
8302 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8303 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8304 * misc/Makefile (tests): Add tst-warn-wide.
8305 * misc/tst-warn-wide.c: New file.
8306
8307 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8308 Szabolcs Nagy <szabolcs.nagy@arm.com>
8309
8310 * NEWS: Mention sinf, cosf, sincosf.
8311 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8312 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8313 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8314 constants rather than including generic sincosf.h.
8315 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8316 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8317 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8318 (reduced_cos): Remove.
8319 (sinf_poly): New function.
8320 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8321
8322 2018-08-14 Florian Weimer <fweimer@redhat.com>
8323
8324 [BZ #23521]
8325 [BZ #23522]
8326 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8327 processing, bail out if no room, and close the stream before
8328 returning ERANGE.
8329 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8330 (tst-nss-files-alias-leak): Link with libdl.
8331 (tst-nss-files-alias-leak.out): Depend on nss_files.
8332
8333 * nss/tst-nss-files-alias-leak.c: New file.
8334
8335 2018-08-14 Florian Weimer <fweimer@redhat.com>
8336
8337 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8338 server_user, stat_user.
8339
8340 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8341
8342 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8343 version to 4.18.
8344 (io_pgetevents): New syscall.
8345 (rseq): Likewise.
8346
8347 * manual/install.texi (Configuring and compiling): Do not list
8348 tools used for testing pretty printers here.
8349 (Tools for Compilation): List Python, PExpect and GDB here.
8350 Update descriptions of uses of Perl and Python.
8351 * INSTALL: Regenerate.
8352
8353 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8354 version to 4.18.
8355
8356 2018-08-13 Florian Weimer <fweimer@redhat.com>
8357
8358 * misc/error.c (error): Add missing va_end call.
8359 (error_at_line): Likewise.
8360
8361 2018-08-13 Florian Weimer <fweimer@redhat.com>
8362
8363 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8364
8365 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8366
8367 * benchtests/scripts/benchout.schema.json (properties): Add
8368 new properties.
8369
8370 * benchtests/bench-skeleton.c (main): Add duration and
8371 iterations attributes.
8372
8373 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8374
8375 regex: Gnulib unibyte RRI uses bytes not chars
8376 Adjust the non-glibc code to agree with what Gawk needs for
8377 rational range interpretation (RRI) for regular expression ranges.
8378 In unibyte locales, Gawk wants ranges to use the underlying byte
8379 rather than the character code point. This change does not affect
8380 glibc proper.
8381 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8382 In unibyte locales, use the byte value rather than
8383 running it through btowc.
8384
8385 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8386
8387 * sysdeps/generic/math-tests-snan.h: New file.
8388 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8389 (SNAN_TESTS_float): Do not define here.
8390 (SNAN_TESTS_double): Likewise.
8391 (SNAN_TESTS_long_double): Likewise.
8392 (SNAN_TESTS_float128): Likewise.
8393 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8394 * sysdeps/i386/fpu/math-tests.h: Remove file.
8395 * sysdeps/ia64/math-tests-snan.h: New file.
8396 * sysdeps/ia64/math-tests.h: Remove file.
8397 * sysdeps/x86/math-tests.h: Likewise.
8398 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8399
8400 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8401 Szabolcs Nagy <szabolcs.nagy@arm.com>
8402
8403 * math/Makefile: Add s_sincosf_data.c.
8404 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8405 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8406 (sincosf_poly): Likewise.
8407 (reduce_small): Likewise.
8408 (reduce_large): Likewise.
8409 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8410 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8411 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8412 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8413
8414 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8415 Szabolcs Nagy <szabolcs.nagy@arm.com>
8416
8417 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8418 (converttoint): Use lround.
8419 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8420 document the semantics when TOINT_INTRINSICS is set.
8421 (converttoint): Likewise.
8422 (TOINT_RINT): Remove.
8423 (TOINT_SHIFT): Remove.
8424 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8425 path.
8426
8427 2018-08-10 Florian Weimer <fweimer@redhat.com>
8428
8429 [BZ #23497]
8430 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8431 function.
8432 (__old_getdents64): Use getdents64. Convert entries without
8433 moving them.
8434 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8435 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8436 tst-readdir64-compat.
8437
8438 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8439
8440 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8441 Fix unwind.
8442
8443 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8444
8445 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8446 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8447 code to s390x-mcount.h and #include it.
8448 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8449 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8450 (__fentry__): Add.
8451
8452 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8453
8454 * stdlib/Versions: Remove __fentry__.
8455 * sysdeps/i386/Versions: Add __fentry__.
8456 * sysdeps/x86_64/Versions: Add __fentry__.
8457
8458 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8459
8460 * sysdeps/s390/Makefile: Register the new tests.
8461 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8462 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8463 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8464 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8465 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8466 * sysdeps/s390/tst-dl-runtime.c: New file.
8467
8468 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8469
8470 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8471 Do not clobber R0.
8472
8473 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8474
8475 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8476 Do not clobber R0.
8477
8478 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8479
8480 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8481 Do not clobber R0.
8482
8483 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8484
8485 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8486 Do not clobber R0.
8487
8488 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8489
8490 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8491 Use symbolic offsets for stack variables.
8492
8493 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8494
8495 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8496 Use symbolic offsets for stack variables.
8497
8498 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8499
8500 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8501 Use symbolic offsets for stack variables.
8502
8503 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8504
8505 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8506 Use symbolic offsets for stack variables.
8507
8508 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8509
8510 * math/gen-libm-test.py: New file.
8511 * math/gen-libm-test.pl: Remove.
8512 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8513 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8514 gen-libm-test.pl.
8515 ($(libm-test-c-noauto-obj)): Likewise.
8516 ($(libm-test-c-auto-obj)): Likewise.
8517 ($(libm-test-c-narrow-obj)): Likewise.
8518 (regen-ulps): Likewise.
8519 * math/README.libm-test: Update references to gen-libm-test.pl.
8520 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8521 referencing gen-libm-test.pl.
8522 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8523 * math/libm-test-support.c: Likewise.
8524 * math/libm-test-support.h: Likewise.
8525 * sysdeps/generic/libm-test-ulps: Likewise.
8526
8527 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8528
8529 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8530 Fix value.
8531
8532 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8533
8534 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8535 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8536
8537 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8538
8539 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8540 symbols.
8541 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8542 __pthread_setspecific): Add hidden proto.
8543 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8544 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8545
8546 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8547
8548 * benchtests/bench-string.h (buf1_size, buf2_size): New
8549 variables.
8550 (init_sizes): New function.
8551 (test_init): Use it.
8552 (alloc_buf, exit_error): New functions.
8553 (alloc_bufs): Use ALLOC_BUF.
8554 (realloc_bufs): Remove.
8555 * benchtests/bench-memcmp.c (do_test): Adjust.
8556 * benchtests/bench-memset-large.c (do_test): Likewise.
8557 * benchtests/bench-memset-walk.c (do_test): Likewise.
8558 * benchtests/bench-memset.c (do_test): Likewise.
8559 * benchtests/bench-strncmp.c (do_test): Likewise.
8560
8561 2018-08-06 Andreas Schwab <schwab@suse.de>
8562
8563 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8564 of CONST_THREAD_AREA.
8565
8566 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8567
8568 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8569 (STATE_SAVE_MASK): Likewise.
8570 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8571 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8572 (STATE_SAVE_MASK): Likewise.
8573 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8574 instead of <cpu-features.h>.
8575
8576 2018-08-03 DJ Delorie <dj@redhat.com>
8577
8578 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8579 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8580
8581 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8582
8583 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8584
8585 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8586 after TEST_* calls.
8587 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8588 * math/libm-test-logb.inc (logb_test_data): Likewise.
8589
8590 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8591
8592 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8593 * string/strstr.c (AVAILABLE): Likewise.
8594
8595 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8596
8597 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8598 <init-arch.h>.
8599 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8600 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8601 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8602
8603 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8604
8605 * po/be.po: Update translation.
8606
8607 * po/be.po: Update translation.
8608
8609 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8610
8611 * sysdeps/x86/cpu-features-offsets.sym
8612 (rtld_global_ro_offsetof): Removed.
8613 (CPU_FEATURES_SIZE): Likewise.
8614 (CPUID_OFFSET): Likewise.
8615 (CPUID_SIZE): Likewise.
8616 (CPUID_EAX_OFFSET): Likewise.
8617 (CPUID_EBX_OFFSET): Likewise.
8618 (CPUID_ECX_OFFSET): Likewise.
8619 (CPUID_EDX_OFFSET): Likewise.
8620 (FAMILY_OFFSET): Likewise.
8621 (MODEL_OFFSET): Likewise.
8622 (FEATURE_OFFSET): Likewise.
8623 (FEATURE_SIZ): Likewise.
8624 (COMMON_CPUID_INDEX_1): Likewise.
8625 (COMMON_CPUID_INDEX_7): Likewise.
8626 (FEATURE_INDEX_1): Likewise.
8627 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8628
8629 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8630
8631 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8632 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8633 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8634 (install-locales): Depend on install-locale-archive.
8635 (install-locale-archive): Define.
8636 (install-locale-files): Define.
8637 (build-one-locale): Define macro.
8638 * manual/install.texi (Running make install): Document.
8639 * manual/INSTALL: Regenerate.
8640
8641 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8642
8643 * benchtests/scripts/compare_strings.py: Import traceback.
8644 (parse_file): Pretty-print error.
8645
8646 * NEWS: Mention the change.
8647 * elf/dl-tunables.list: Rename tune namespace to cpu.
8648 * sysdeps/powerpc/dl-tunables.list: Likewise.
8649 * sysdeps/x86/dl-tunables.list: Likewise.
8650 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8651 cpu.name.
8652 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8653 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8654 * manual/README.tunables: Likewise.
8655 * manual/tunables.texi: Likewise.
8656 * sysdeps/powerpc/cpu-features.c: Likewise.
8657 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8658 (init_cpu_features): Likewise.
8659 * sysdeps/x86/cpu-features.c: Likewise.
8660 * sysdeps/x86/cpu-features.h: Likewise.
8661 * sysdeps/x86/cpu-tunables.c: Likewise.
8662 * sysdeps/x86_64/Makefile: Likewise.
8663 * sysdeps/x86/dl-cet.c: Likewise.
8664
8665 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8666
8667 [BZ #23479]
8668 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8669 [__mips_hard_float].
8670 (FE_UNDERFLOW): Likewise.
8671 (FE_OVERFLOW): Likewise.
8672 (FE_DIVBYZERO): Likewise.
8673 (FE_INVALID): Likewise.
8674 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8675 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8676 (FE_UPWARD): Likewise.
8677 (FE_DOWNWARD): Likewise.
8678 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8679 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8680 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8681 [__mips_hard_float].
8682 (FP_ROUNDMODE): Likewise.
8683 (FP_RND_NEAREST): Likewise.
8684 (FP_RND_ZERO): Likewise.
8685 (FP_RND_PINF): Likewise.
8686 (FP_RND_MINF): Likewise.
8687 (FP_EX_INVALID): Likewise.
8688 (FP_EX_OVERFLOW): Likewise.
8689 (FP_EX_UNDERFLOW): Likewise.
8690 (FP_EX_DIVZERO): Likewise.
8691 (FP_EX_INEXACT): Likewise.
8692 (FP_INIT_ROUNDMODE): Likewise.
8693 * sysdeps/mips/nofpu/fesetenv.c: New file.
8694 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8695
8696 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8697
8698 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8699 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8700 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8701 conditional on [FE_UPWARD].
8702
8703 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8704
8705 regex: fix memory leak in Gnulib
8706 Problem and fix reported by Assaf Gordon in:
8707 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8708 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8709 range_ends members too, as they are defined in 'struct
8710 re_charset_t' even if not _LIBC. This affects only Gnulib.
8711
8712 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8713
8714 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8715 ...
8716 (get_common_indices): This.
8717 (init_cpu_features): Updated.
8718
8719 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8720
8721 * sysdeps/generic/math-tests-snan-payload.h: New file.
8722 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8723 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8724 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8725 * sysdeps/generic/math-tests.h: Include
8726 <math-tests-snan-payload.h>.
8727 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8728 * sysdeps/hppa/math-tests.h: Remove file.
8729 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8730 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8731 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8732 Likewise.
8733
8734 * sysdeps/generic/math-tests-snan-cast.h: New file.
8735 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8736 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8737 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8738 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8739
8740 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8741
8742 * version.h (RELEASE): Set to "development".
8743 (VERSION): Set to "2.28.9000".
8744 * NEWS (2.29): New section.
8745
8746 * version.h (RELEASE): Set to "stable".
8747 (VERSION): Set to "2.28".
8748 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8749 * NEWS: Add the list of bugs fixed in 2.28.
8750
8751 * po/ca.po: Update to latest version.
8752 * po/cs.po: Likewise
8753 * po/da.po: Likewise
8754 * po/el.po: Likewise
8755 * po/eo.po: Likewise
8756 * po/es.po: Likewise
8757 * po/fi.po: Likewise
8758 * po/fr.po: Likewise
8759 * po/gl.po: Likewise
8760 * po/hu.po: Likewise
8761 * po/ia.po: Likewise
8762 * po/id.po: Likewise
8763 * po/it.po: Likewise
8764 * po/ja.po: Likewise
8765 * po/ko.po: Likewise
8766 * po/lt.po: Likewise
8767 * po/nb.po: Likewise
8768 * po/nl.po: Likewise
8769 * po/pt_BR.po: Likewise
8770 * po/ru.po: Likewise
8771 * po/rw.po: Likewise
8772 * po/sk.po: Likewise
8773 * po/sl.po: Likewise
8774 * po/tr.po: Likewise
8775 * po/zh_CN.po: Likewise
8776 * po/zh_TW.po: Likewise
8777
8778 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8779
8780 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8781 initialization...
8782 (init): ... before initializing libpthread.
8783
8784 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8785 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8786 (__mach_setup_tls): ... new function.
8787 (mach_setup_tls): New alias.
8788 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8789 __mach_setup_thread.
8790 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8791 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8792 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8793 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8794
8795 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8796
8797 * manual/install.texi: Update versions.
8798 * INSTALL: Regenerate.
8799
8800 * manual/contrib.texi (Contributors): Update contributions.
8801
8802 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8803
8804 * po/be.po: Update translations.
8805
8806 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8807
8808 * sysdeps/sh/libm-test-ulps: Update.
8809
8810 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8811
8812 * po/bg.po: Update translations.
8813 * po/de.po: Likewise.
8814 * po/hr.po: Likewise.
8815 * po/pt_BR.po: Likewise.
8816 * po/sv.po: Likewise.
8817 * po/vi.po: Likewise.
8818
8819 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 [BZ #23467]
8822 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8823 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8824 (CFLAGS-tst-cet-property-1.o): New.
8825 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8826 ($(objpfx)tst-cet-property-2): Likewise.
8827 ($(objpfx)tst-cet-property-2.out): Likewise.
8828 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8829 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8830 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8831 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8832 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8833
8834 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8835
8836 [BZ #23458]
8837 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8838
8839 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8840
8841 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8842 __sbrk): Do not set attribute_hidden.
8843 * sysdeps/mach/hurd/not-errno.h: New file.
8844 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8845 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8846
8847 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8848
8849 * po/uk.po: Update translations.
8850 * po/cs.po: Likewise.
8851 * po/pl.po: Likewise.
8852
8853 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8856 parse beyond the note end.
8857
8858 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8859
8860 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8861 kernel does not support OFD locks.
8862 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8863
8864 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8865
8866 * sysdeps/mach/hurd/Versions (libc): Make __access and
8867 __access_noerrno external so they can override the ld symbols.
8868 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8869 __writev, __open64, __access_noerrno extern so they can be overrided.
8870 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8871 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8872
8873 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8874
8875 * po/libc.pot: Regenerate.
8876
8877 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8878
8879 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8880
8881 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8882
8883 [BZ #23459]
8884 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8885 function.
8886 (init_cpu_features): Call get_extended_indices for both Intel
8887 and AMD CPUs.
8888 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8889 Remove "for AMD" comment.
8890
8891 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8892
8893 [BZ # 23456]
8894 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8895 COMMON_CPUID_INDEX_80000001.
8896
8897 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8898
8899 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8900 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8901
8902 2018-07-26 Florian Weimer <fweimer@redhat.com>
8903
8904 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8905 aliases for symbols not in the implementation namespace.
8906
8907 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8908
8909 [BZ #23393]
8910 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8911 lowercase in LATIN script.
8912 * localedata/Makefile (test-input): Add en_US.UTF-8.
8913 * localedata/en_US.UTF-8.in: New file.
8914 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8915 and restore old tests.
8916 * posix/tst-regexloc.c (do_test): Add back range expression test.
8917
8918 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8919
8920 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8921
8922 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8923
8924 * nptl/threads.h: Move to ...
8925 * sysdeps/nptl/threads.h: ... here.
8926 * sysdeps/hurd/stdc-predef.h: New file.
8927
8928 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8931 tst-cet-setcontext-1 if CET is enabled.
8932 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8933 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8934
8935 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8936
8937 * include/threads.h: Move to ...
8938 * sysdeps/nptl/threads.h: ... here.
8939 * sysdeps/htl/threads.h: New file.
8940 * conform/Makefile (linknamespace-libs-ISO11): Use
8941 static-thread-library instead of linking libpthread.
8942 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8943
8944 2018-07-25 Florian Weimer <fweimer@redhat.com>
8945
8946 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8947 nanoseconds into seconds.
8948 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8949 (do_test): Likewise.
8950 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8951 (do_test): Likewise. Avoid nanosecond overflow and spurious
8952 timeouts due to system load.
8953 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8954 (child_wait): Increment it.
8955 (do_test): Wait as long as necessary until all expected threads
8956 have arrived.
8957
8958 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8959 H.J. Lu <hongjiu.lu@intel.com>
8960
8961 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8962 __ssp.
8963 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8964 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8965 (__push___start_context): New.
8966 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8967 <asm/prctl.h>.
8968 (__getcontext): Record the current shadow stack base. Save the
8969 caller's shadow stack pointer and base.
8970 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8971 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8972 (__push___start_context): New prototype.
8973 (__makecontext): Call __push___start_context to allocate a new
8974 shadow stack, push __start_context onto the new stack as well
8975 as the new shadow stack.
8976 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8977 <asm/prctl.h>.
8978 (__setcontext): Restore the target shadow stack.
8979 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8980 <asm/prctl.h>.
8981 (__swapcontext): Record the current shadow stack base. Save
8982 the caller's shadow stack pointer and base. Restore the target
8983 shadow stack.
8984 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8985 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8986 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8987
8988 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8989
8990 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8991 tst-setcontext8 and tst-setcontext9.
8992 * stdlib/tst-setcontext6.c: New file.
8993 * stdlib/tst-setcontext7.c: Likewise.
8994 * stdlib/tst-setcontext8.c: Likewise.
8995 * stdlib/tst-setcontext9.c: Likewise.
8996
8997 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8998
8999 * stdlib/Makefile ((tests): Add tst-setcontext5.
9000 * stdlib/tst-setcontext5.c: New file.
9001
9002 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9003
9004 * stdlib/Makefile (tests): Add tst-setcontext4.
9005 * stdlib/tst-setcontext4.c: New file.
9006
9007 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9008
9009 * stdlib/Makefile (tests): Add tst-swapcontext1.
9010 * stdlib/tst-swapcontext1.c: New test.
9011
9012 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9013
9014 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
9015 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
9016 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
9017 and tst-cet-legacy-4c.
9018 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
9019 and tst-cet-legacy-mod-4.
9020 (CFLAGS-tst-cet-legacy-2.c): New.
9021 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
9022 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
9023 (CFLAGS-tst-cet-legacy-3.c): Likewise.
9024 (CFLAGS-tst-cet-legacy-4.c): Likewise.
9025 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
9026 ($(objpfx)tst-cet-legacy-1): Likewise.
9027 ($(objpfx)tst-cet-legacy-2): Likewise.
9028 ($(objpfx)tst-cet-legacy-2.out): Likewise.
9029 ($(objpfx)tst-cet-legacy-2a): Likewise.
9030 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
9031 ($(objpfx)tst-cet-legacy-4): Likewise.
9032 ($(objpfx)tst-cet-legacy-4.out): Likewise.
9033 ($(objpfx)tst-cet-legacy-4a): Likewise.
9034 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
9035 (tst-cet-legacy-4a-ENV): Likewise.
9036 ($(objpfx)tst-cet-legacy-4b): Likewise.
9037 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
9038 (tst-cet-legacy-4b-ENV): Likewise.
9039 ($(objpfx)tst-cet-legacy-4c): Likewise.
9040 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
9041 (tst-cet-legacy-4c-ENV): Likewise.
9042 * sysdeps/x86/tst-cet-legacy-1.c: New file.
9043 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
9044 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
9045 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
9046 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
9047 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
9048 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
9049 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
9050 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
9051 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
9052 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
9053
9054 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
9055
9056 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9057 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9058 with ssp_base.
9059 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
9060 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
9061 with ssp_base.
9062
9063 2018-07-25 Andreas Schwab <schwab@suse.de>
9064
9065 [BZ #23442]
9066 * locale/weightwc.h (findidx): Handle the case where usrc is a
9067 prefix of cp but one character too short.
9068
9069 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9070
9071 * NEWS: Add ISO C threads addition.
9072
9073 2018-07-24 Florian Weimer <fweimer@redhat.com>
9074
9075 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9076 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9077 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9078 4.13.
9079
9080 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9081
9082 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9083 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9084 <sys/prctl.h> and <asm/prctl.h>.
9085 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9086 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9087 and <asm/prctl.h>.
9088 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9089 ARCH_CET_LEGACY_BITMAP.
9090 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9091 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9092 * sysdeps/x86/libc-start.c: Include <startup.h>.
9093
9094 2018-07-24 Florian Weimer <fweimer@redhat.com>
9095
9096 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9097 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9098
9099 2018-07-24 Rical Jasan <rj@2c3t.io>
9100 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9101 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9102
9103 [BZ #14092]
9104 * manual/debug.texi: Update adjacent chapter name.
9105 * manual/probes.texi: Likewise.
9106 * manual/threads.texi (ISO C Threads): New section.
9107 (POSIX Threads): Convert to a section.
9108
9109 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9110 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9111
9112 [BZ# 14092]
9113 * nptl/Makefile (tests): Add new test files.
9114 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9115 * nptl/tst-cnd-basic.c: Likewise.
9116 * nptl/tst-cnd-broadcast.c: Likewise.
9117 * nptl/tst-cnd-timedwait.c: Likewise.
9118 * nptl/tst-mtx-basic.c: Likewise.
9119 * nptl/tst-mtx-recursive.c: Likewise.
9120 * nptl/tst-mtx-timedlock.c: Likewise.
9121 * nptl/tst-mtx-trylock.c: Likewise.
9122 * nptl/tst-thrd-basic.c: Likewise.
9123 * nptl/tst-thrd-detach.c: Likewise.
9124 * nptl/tst-thrd-sleep.c: Likewise.
9125 * nptl/tst-tss-basic.c: Likewise.
9126
9127 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9128
9129 [BZ #14092]
9130 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9131 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9132 symbols.
9133 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9134 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9135 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9136 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9137 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9138 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9139 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9140 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9141 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9142 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9143 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9144 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9146 Likewise.
9147 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9148 Likewise.
9149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9150 Likewise.
9151 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9152 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9153 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9154 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9155 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9156 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9157 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9158 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9159 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9160 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9161 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9162 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9163 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9164 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9165 Likewise.
9166 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9167 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9168 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9169 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9170 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9171 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9172 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9173 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9174 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9175 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9176 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9177 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9178 ikewise.
9179 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9181 Likewise.
9182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9183 Likewise.
9184 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9185 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9186 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9187 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9188 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9189 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9190 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9191 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9192
9193 [BZ #14092]
9194 * conform/data/threads.h-data (thread_local): New macro.
9195 (TSS_DTOR_ITERATIONS): Likewise.
9196 (tss_t): New type.
9197 (tss_dtor_t): Likewise.
9198 (tss_create): New function.
9199 (tss_get): Likewise.
9200 (tss_set): Likewise.
9201 (tss_delete): Likewise.
9202 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9203 tss_get, and tss_set objects.
9204 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9205 * nptl/tss_create.c: New file.
9206 * nptl/tss_delete.c: Likewise.
9207 * nptl/tss_get.c: Likewise.
9208 * nptl/tss_set.c: Likewise.
9209 * sysdeps/nptl/threads.h (thread_local): New define.
9210 (TSS_DTOR_ITERATIONS): Likewise.
9211 (tss_t): New typedef.
9212 (tss_dtor_t): Likewise.
9213 (tss_create): New prototype.
9214 (tss_get): Likewise.
9215 (tss_set): Likewise.
9216 (tss_delete): Likewise.
9217
9218 [BZ #14092]
9219 * conform/data/threads.h-data (cnd_t): New type.
9220 (cnd_init): New function.
9221 (cnd_signal): Likewise.
9222 (cnd_broadcast): Likewise.
9223 (cnd_wait): Likewise.
9224 (cnd_timedwait): Likewise.
9225 (cnd_destroy): Likewise.
9226 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9227 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9228 object.
9229 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9230 * nptl/cnd_broadcast.c: New file.
9231 * nptl/cnd_destroy.c: Likewise.
9232 * nptl/cnd_init.c: Likewise.
9233 * nptl/cnd_signal.c: Likewise.
9234 * nptl/cnd_timedwait.c: Likewise.
9235 * nptl/cnd_wait.c: Likewise.
9236 * sysdeps/nptl/threads.h (cnd_t): New type.
9237 (cnd_init): New prototype.
9238 (cnd_signa): Likewise.
9239 (cnd_broadcast): Likewise.
9240 (cnd_wait): Likewise.
9241 (cnd_timedwait): Likewise.
9242 (cnd_destroy): Likewise.
9243
9244 [BZ #14092]
9245 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9246 (once_flag): New type.
9247 (call_once): New function.
9248 * nptl/Makefile (libpthread-routines): Add call_once object.
9249 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9250 * nptl/call_once.c: New file.
9251 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9252 (once_flag): New type.
9253 (call_once): New prototype.
9254
9255 [BZ #14092]
9256 * conform/data/threads.h-data (mtx_plain): New constant.
9257 (mtx_recursive): Likewise.
9258 (mtx_timed): Likewise.
9259 (mtx_t): New type.
9260 (mtx_init): New function.
9261 (mtx_lock): Likewise.
9262 (mtx_timedlock): Likewise.
9263 (mtx_trylock): Likewise.
9264 (mtx_unlock): Likewise.
9265 (mtx_destroy): Likewise.
9266 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9267 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9268 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9269 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9270 * nptl/mtx_destroy.c: New file.
9271 * nptl/mtx_init.c: Likewise.
9272 * nptl/mtx_lock.c: Likewise.
9273 * nptl/mtx_timedlock.c: Likewise.
9274 * nptl/mtx_trylock.c: Likewise.
9275 * nptl/mtx_unlock.c: Likewise.
9276 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9277 (mtx_recursive): Likewise.
9278 (mtx_timed): Likewise.
9279 (mtx_t): New type.
9280 (mtx_init): New prototype.
9281 (mtx_lock): Likewise.
9282 (mtx_timedlock): Likewise.
9283 (mtx_trylock): Likewise.
9284 (mtx_unlock): Likewise.
9285 (mtx_destroy): Likewise.
9286
9287 [BZ #14092]
9288 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9289 (linknamespace-libs-ISO11): Add libpthread.a.
9290 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9291 functions.
9292 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9293 * nptl/Makefile (headers): Add threads.h.
9294 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9295 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9296 thrd_yield.
9297 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9298 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9299 thrd_join, thrd_sleep, and thrd_yield symbols.
9300 * nptl/descr.h (struct pthread): Add c11 field.
9301 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9302 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9303 routine with expected function prototype.
9304 (__pthread_create_2_1): Add C11 threads check based on attribute
9305 value.
9306 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9307 * nptl/thrd_create.c: New file.
9308 * nptl/thrd_current.c: Likewise.
9309 * nptl/thrd_detach.c: Likewise.
9310 * nptl/thrd_equal.c: Likewise.
9311 * nptl/thrd_exit.c: Likewise.
9312 * nptl/thrd_join.c: Likewise.
9313 * nptl/thrd_priv.h: Likewise.
9314 * nptl/thrd_sleep.c: Likewise.
9315 * nptl/thrd_yield.c: Likewise.
9316 * include/threads.h: Likewise.
9317
9318 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9319
9320 * bits/indirect-return.h: New file.
9321 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9322 * sysdeps/x86/bits/indirect-return.h: Likewise.
9323 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9324 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9325 (swapcontext): Add __INDIRECT_RETURN.
9326 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9327 (prepare_test_buffer): Use it.
9328
9329 2018-07-24 Andreas Schwab <schwab@suse.de>
9330
9331 [BZ #23448]
9332 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9333 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9334
9335 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9336
9337 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9338 Redefine if shadow stack is enabled.
9339 (SYSCALL_ERROR_LABEL): Likewise.
9340 (__vfork): Pop shadow stack and jump back to to caller directly
9341 when shadow stack is in use.
9342 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9343 Redefine if shadow stack is enabled.
9344 (SYSCALL_ERROR_LABEL): Likewise.
9345 (__vfork): Pop shadow stack and jump back to to caller directly
9346 when shadow stack is in use.
9347
9348 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9349
9350 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9351 enabled.
9352 (foo): Likewise.
9353 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9354 (foo): Likewise.
9355
9356 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9357
9358 * scripts/build-many-glibcs.py (Context.checkout): Default
9359 binutils version to 2.31 branch.
9360
9361 2018-07-20 Zong Li <zong@andestech.com>
9362
9363 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9364 URL of gcc's tarball.
9365
9366 2018-07-20 Florian Weimer <fweimer@redhat.com>
9367
9368 [BZ #23396]
9369 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9370 not compare an extra byte after the end of the weights.
9371
9372 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9373
9374 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9375 to 1.
9376 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9377 hidden prototypes.
9378 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9379 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9380 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9381 list of libraries whose stack executability is expected.
9382 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9383 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9384 variable.
9385 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9386 libc.so libpthread.so.
9387
9388 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9389
9390 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9391 SOCK_NONBLOCK.
9392 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9393 and SOCK_NONBLOCK.
9394 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9395 implement __pipe2.
9396 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9397
9398 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9399
9400 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9401 library to improve command line parsing.
9402 (__main__): make schema file as optional parameter (--schema),
9403 defaulting to benchtests/scripts/benchout.schema.json.
9404 (main): move out of the parsing stuff to __main_  and leave it
9405 only as caller of main comparison functions.
9406
9407 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9408
9409 * NEWS: Add a note for Intel CET status.
9410 * manual/install.texi: Likewise.
9411 * INSTALL: Regenerated.
9412
9413 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9414
9415 [BZ #23140]
9416 * localedata/locales/oc_FR (mon): Rename to...
9417 (alt_mon): This, then update October (typo fix).
9418 (mon): New content (genitive case, month names preceded by
9419 "de" or "d’").
9420
9421 [BZ #23422]
9422 * localedata/locales/oc_FR (abday): Update all items.
9423 (day): Update Wednesday and Saturday (typo fixes).
9424 (abmon): Update all items, except May.
9425 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9426 (LC_IDENTIFICATION): Bump the revision number and date.
9427 Keep the "category" entries in alphabetic order.
9428 (LC_ADDRESS): Remove no longer needed comment.
9429 (LC_COLLATE): Use “copy "ca_ES"”.
9430 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9431 "name_mrs".
9432
9433 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9434
9435 * grp/tst_fgetgrent.c: Include <unistd.h>.
9436 (main): Use mkstemp instead of tmpnam.
9437 * io/test-utime.c (main): Likewise.
9438 * posix/annexc.c (macrofile): Change to modifiable array.
9439 (main): Remove macrofile here.
9440 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9441 macrofile here.
9442 (check_header): Do not remove macrofile here.
9443 * posix/bug-getopt1.c: Include <stdlib.h>.
9444 (do_test): Use mkstemp instead of tmpnam.
9445 * posix/bug-getopt2.c: Include <stdlib.h>.
9446 (do_test): Use mkstemp instead of tmpnam.
9447 * posix/bug-getopt3.c: Include <stdlib.h>.
9448 (do_test): Use mkstemp instead of tmpnam.
9449 * posix/bug-getopt4.c: Include <stdlib.h>.
9450 (do_test): Use mkstemp instead of tmpnam.
9451 * posix/bug-getopt5.c: Include <stdlib.h>.
9452 (do_test): Use mkstemp instead of tmpnam.
9453 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9454 (main): Use mkstemp instead of tmpnam.
9455 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9456 (main): Use mkstemp instead of tmpnam.
9457 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9458 (main): use mkstemp instead of tmpnam.
9459 * stdlib/isomac.c (macrofile): Change to modifiable array.
9460 (main): Remove macrofile here.
9461 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9462 macrofile here.
9463 (check_header): Do not remove macrofile here.
9464
9465 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9466
9467 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9468 glibc.tune.x86_shstk.
9469
9470 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9471
9472 * NEWS: Mention --enable-cet.
9473 * manual/install.texi: Document --enable-cet.
9474 * INSTALL: Regenerated.
9475
9476 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9477
9478 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9479 Add _CET_NOTRACK before indirect jump to jump table.
9480
9481 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9482
9483 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9484 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9485 to jump table.
9486
9487 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9488
9489 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9490 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9491 to jump table.
9492
9493 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9494
9495 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9496 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9497 to jump table.
9498
9499 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9500
9501 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9502 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9503 to jump table.
9504
9505 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9506
9507 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9508 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9509 to jump table.
9510 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9511
9512 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9513
9514 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9515 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9516 to jump table.
9517
9518 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9519
9520 * sysdeps/i386/i686/multiarch/memset-sse2.S
9521 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9522 to jump table.
9523
9524 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9525
9526 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9527 indirect jump to jump table.
9528
9529 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9530
9531 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9532 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9533 to jump table.
9534 (MEMCPY): Likewise.
9535
9536 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9537
9538 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9539 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9540 to jump table.
9541 (MEMCPY): Likewise.
9542
9543 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9544
9545 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9546 _CET_NOTRACK before indirect jump to jump table.
9547
9548 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9549
9550 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9551 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9552 to jump table.
9553
9554 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9555
9556 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9557 indirect jump to jump table.
9558
9559 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9560
9561 [BZ #22241]
9562 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9563 (LOCALES): Likewise.
9564 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9565 * localedata/locales/sah_RU: New file.
9566 * localedata/sah_RU.UTF-8.in: New file.
9567
9568 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9569
9570 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9571 "sysdep.h".
9572 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9573 _CET_ENDBR to indirect jump targets and adjust jump destination
9574 for _CET_ENDBR.
9575 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9576 "sysdep.h".
9577 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9578 _CET_ENDBR to indirect jump targets and adjust jump destination
9579 for _CET_ENDBR.
9580 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9581 "sysdep.h".
9582 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9583 _CET_ENDBR to indirect jump targets and adjust jump destination
9584 for _CET_ENDBR.
9585
9586 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9587
9588 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9589 _CET_ENDBR.
9590
9591 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9592
9593 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9594 _CET_ENDBR.
9595 (_dl_tlsdesc_undefweak): Likewise.
9596 (_dl_tlsdesc_dynamic): Likewise.
9597 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9598 (_dl_tlsdesc_resolve_rel): Likewise.
9599 (_dl_tlsdesc_resolve_rela): Likewise.
9600 (_dl_tlsdesc_resolve_hold): Likewise.
9601 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9602 (_dl_tlsdesc_undefweak): Likewise.
9603 (_dl_tlsdesc_dynamic): Likewise.
9604 (_dl_tlsdesc_resolve_rela): Likewise.
9605 (_dl_tlsdesc_resolve_hold): Likewise.
9606
9607 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9608
9609 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9610 (_fini): Likewise.
9611 * sysdeps/x86_64/crti.S (_init): Likewise.
9612 (_fini): Likewise.
9613
9614 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9615
9616 [BZ #23140]
9617 * localedata/locales/os_RU (mon): Rename to...
9618 (alt_mon): This.
9619 (mon): Import from CLDR (genitive case).
9620
9621 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9622
9623 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9624 cet-tunables.h> when CET is enabled.
9625
9626 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9627
9628 [BZ #21598]
9629 * configure.ac: Add --enable-cet.
9630 * configure: Regenerated.
9631 * elf/Makefille (all-built-dso): Add a comment.
9632 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9633 Include <dl-prop.h>.
9634 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9635 segment.
9636 * elf/dl-open.c: Include <dl-prop.h>.
9637 (dl_open_worker): Call _dl_open_check.
9638 * elf/rtld.c: Include <dl-prop.h>.
9639 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9640 _rtld_main_check.
9641 * sysdeps/generic/dl-prop.h: New file.
9642 * sysdeps/i386/dl-cet.c: Likewise.
9643 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9644 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9645 * sysdeps/x86/cet-tunables.h: Likewise.
9646 * sysdeps/x86/check-cet.awk: Likewise.
9647 * sysdeps/x86/configure: Likewise.
9648 * sysdeps/x86/configure.ac: Likewise.
9649 * sysdeps/x86/dl-cet.c: Likewise.
9650 * sysdeps/x86/dl-procruntime.c: Likewise.
9651 * sysdeps/x86/dl-prop.h: Likewise.
9652 * sysdeps/x86/libc-start.h: Likewise.
9653 * sysdeps/x86/link_map.h: Likewise.
9654 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9655 _CET_ENDBR.
9656 (_dl_runtime_profile): Likewise.
9657 (_dl_runtime_resolve_shstk): New.
9658 (_dl_runtime_profile_shstk): Likewise.
9659 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9660 if CET is enabled.
9661 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9662 (CFLAGS-.os): Likewise.
9663 (CFLAGS-.op): Likewise.
9664 (CFLAGS-.oS): Likewise.
9665 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9666 is enabled.
9667 (tests-special): Add $(objpfx)check-cet.out.
9668 (cet-built-dso): New.
9669 (+$(cet-built-dso:=.note)): Likewise.
9670 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9671 ($(objpfx)check-cet.out): New.
9672 (generated): Add check-cet.out.
9673 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9674 <cet-tunables.h>.
9675 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9676 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9677 (init_cpu_features): Call get_cet_status to check CET status
9678 and update dl_x86_feature_1 with CET status. Call
9679 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9680 (set_x86_shstk). Disable and lock CET in libc.a.
9681 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9682 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9683 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9684 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9685 (_CET_ENDBR): Define if not defined.
9686 (ENTRY): Add _CET_ENDBR.
9687 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9688 x86_shstk.
9689 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9690 _CET_ENDBR.
9691 (_dl_runtime_profile): Likewise.
9692
9693 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9694
9695 [BZ #21895]
9696 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9697 restore r2 on longjmp.
9698 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9699 test list.
9700 Added rules to build test tst-setjmp-bug21895-static.
9701 Added module setjmp-bug21895 and rules to build a shared object from it.
9702 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9703 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9704
9705 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9706
9707 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9708 * benchtests/bench-strstr.c: Likewise.
9709 * string/memmem.c (FASTSEARCH): Define.
9710 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9711 Add support for FASTSEARCH.
9712 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9713 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9714 (FASTSEARCH): Define.
9715 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9716 * string/test-strstr.c: Likewise.
9717
9718 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9719
9720 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9721 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9722
9723 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9724 H.J. Lu <hongjiu.lu@intel.com>
9725
9726 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9727 (__longjmp): Restore shadow stack pointer if shadow stack is
9728 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9729 isn't defined for __longjmp_cancel.
9730 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9731 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9732 and SHADOW_STACK_POINTER_OFFSET is defined.
9733 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9734 (setjmp): Save shadow stack pointer if shadow stack is enabled
9735 and SHADOW_STACK_POINTER_OFFSET is defined.
9736 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9737 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9738 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9739 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9740 <jmp_buf-ssp.h>.
9741 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9742 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9743 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9744 Remove jmp_buf-ssp.sym.
9745 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9746 <jmp_buf-ssp.h>.
9747 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9748 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9749 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9750 jmp_buf-ssp.sym.
9751 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9752 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9753 (__longjmp): Restore shadow stack pointer if shadow stack is
9754 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9755 isn't defined for __longjmp_cancel.
9756 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9757 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9758 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9759
9760 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9761
9762 [BZ #22563]
9763 * nptl/pthread_create.c: Include <tls-setup.h>.
9764 (__pthread_create_2_1): Call tls_setup_tcbhead.
9765 * sysdeps/generic/tls-setup.h: New file.
9766 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9767 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9768 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9769 Likewise.
9770 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9771 to feature_1.
9772 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9773 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9774 (X86_FEATURE_1_SHSTK): Likewise.
9775 (CET_ENABLED): Likewise.
9776 (IBT_ENABLED): Likewise.
9777 (SHSTK_ENABLED): Likewise.
9778
9779 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9780
9781 [BZ #23208]
9782 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9783 (LOCALES): Likewise.
9784 * localedata/dsb_DE.UTF-8.in: New file.
9785 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9786
9787 2018-07-12 Florian Weimer <fweimer@redhat.com>
9788
9789 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9790 __mprotect, not mprotect.
9791
9792 2018-07-11 Florian Weimer <fweimer@redhat.com>
9793
9794 * io/Makefile (headers): Add bits/statx.h.
9795
9796 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9797
9798 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9799 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9800 and headers.
9801 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9802 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9803 for utf8_gen.py
9804
9805 2018-07-10 Florian Weimer <fweimer@redhat.com>
9806
9807 * io/Makefile (routines): Add statx.
9808 (tests-internal): Add tst-statx.
9809 * io/Versions (GLIBC_2.28): Export statx.
9810 * io/bits/statx.h: New file.
9811 * io/sys/stat.h [__USE_GNU]: Include it.
9812 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9813 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9814 Define.
9815 * io/statx.c: New file.
9816 * io/statx_generic.: Likewise.
9817 * io/tst-statx.: Likewise.
9818 * include/bits/statx.h: Likewise.
9819 * sysdeps/unix/sysv/linux/kernel-features.h
9820 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9821 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9822 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9823 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9824 Undefine.
9825 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9826 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9827 * sysdeps/unix/sysv/linux/statx.c: New file.
9828 * manual/filesys.texi: Note that statx is undocumented.
9829 * sysdeps/**/libc*.abilist: Update.
9830
9831 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9832
9833 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9834 a kernel issue which lead to test failure in some cases.
9835
9836 2018-07-10 Florian Weimer <fweimer@redhat.com>
9837
9838 [BZ #23036]
9839 * posix/regexec.c (check_node_accept_bytes): When comparing
9840 weights, do not compare an extra byte after the end of the
9841 weights.
9842
9843 2018-07-10 Florian Weimer <fweimer@redhat.com>
9844
9845 * libio/readline.c: Fix copyright year.
9846 * libio/tst-readline.c Likewise.
9847 * nss/tst-nss-files-hosts-getent.c: Likewise.
9848
9849 2018-07-06 Florian Weimer <fweimer@redhat.com>
9850
9851 [BZ #18991]
9852 * nss/nss_files/files-XXX.c (internal_getent): Use
9853 __libc_readline_unlocked. Seek back to the start of the line if
9854 parsing failes with ERANGE.
9855 (get_contents_ret, get_contents): Remove.
9856 * nss/tst-nss-files-hosts-getent.c: New file.
9857 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9858 (tst-nss-files-hosts-getent): Link with -ldl.
9859
9860 2018-07-06 Florian Weimer <fweimer@redhat.com>
9861
9862 * include/stdio.h (__libc_readline_unlocked): Declare.
9863 (__ftello64, __fseeko64): Declare aliases.
9864 * libio/readline.c: New file.
9865 * libio/tst-readline.c: Likewise.
9866 (routines): Add readline.
9867 (tests-internal): Add tst-readlime.
9868 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9869 __libc_readline_unlocked.
9870 * libio/fseeko.c (__fseeko): Rename from fseeko.
9871 (fseeko): Add alias.
9872 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9873 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9874 (fseeko64): Add alias.
9875 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9876 * libio/ftello64.c (__ftello64): Rename from ftello64.
9877 (ftello64): Add alias.
9878
9879 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9880
9881 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9882 HWCAP_ATOMICS.
9883
9884 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9885
9886 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9887 Use dl_hwcap without masking.
9888 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9889 Remove HWCAP_CPUID.
9890
9891 2018-07-06 Florian Weimer <fweimer@redhat.com>
9892
9893 * conform/conformtest.pl (checknamespace): Escape literal braces
9894 in regular expressions.
9895
9896 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9897
9898 * sysdeps/x86/cpu-features.c (get_common_indeces):
9899 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9900 * sysdeps/x86/cpu-features.c (init_cpu_features):
9901 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9902
9903 2018-07-05 Florian Weimer <fweimer@redhat.com>
9904
9905 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9906 protector.
9907 (CFLAGS-elf-init.oS): Likewise.
9908
9909 2018-07-05 Florian Weimer <fweimer@redhat.com>
9910 Carlos O'Donell <carlos@redhat.com>
9911
9912 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9913 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9914 with stack protector enabled because there is no risk of infinite
9915 recursion.
9916
9917 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9918
9919 [BZ #19818]
9920 [BZ #23307]
9921 * libc-abis (ABSOLUTE): New ABI.
9922 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9923 * NEWS: Mention the new ABI.
9924
9925 2018-07-05 Florian Weimer <fweimer@redhat.com>
9926
9927 [BZ # 17662]
9928 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9929 (RENAME_WHITEOUT): Define.
9930 [__USE_GNU] (renameat2): Declare.
9931 * stdio-common/Makefile (routines): Add renameat2.
9932 (tests): Add tst-renameat2.
9933 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9934 * stdio-common/renameat2.c: New file.
9935 * stdio-common/tst-renameat2.c: Likewise.
9936 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9937 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9938 undocumented.
9939 * sysdeps/unix/sysv/linux/kernel-features.h
9940 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9941 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9942 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9943 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9944 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9945 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9946 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9947 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9948 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9949 * include/stdio.h (__renameat): Add alias for renameat.
9950 * stdio-common/renameat.c (__renameat): Rename from renameat.
9951 Add hidden definition and alias.
9952 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9953 * sysdeps/mach/hurd/renameat.c: Likewise.
9954 * sysdeps/**/libc*.abilist: Add renameat2.
9955
9956 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9957
9958 * posix/bug-regex33.c: Fix build after regex sync.
9959
9960 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9961
9962 [BZ #23164]
9963 * localedata/tst-langinfo-setlocale.c: New file.
9964 * localedata/tst-langinfo-setlocale-static.c: New file.
9965 * localedata/tst-langinfo-newlocale.c: New file.
9966 * localedata/tst-langinfo-newlocale-static.c: New file.
9967 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9968 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9969 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9970 (tests-static): Remove tst-langinfo-static. Add
9971 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9972 (tests-special): Remove $(objpfx)tst-langinfo.out,
9973 $(objpfx)tst-langinfo-static.out. Add
9974 $(objpfx)tst-langinfo-setlocale.out,
9975 $(objpfx)tst-langinfo-newlocale.out,
9976 $(objpfx)tst-langinfo-setlocale-static.out,
9977 $(objpfx)tst-langinfo-newlocale-static.out.
9978 ($(objpfx)tst-langinfo.out): Remove.
9979 ($(objpfx)tst-langinfo-static.out): Remove.
9980 ($(objpfx)tst-langinfo-newlocale.out): New target.
9981 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9982 (test-xfail-tst-langinfo-newlocale-static): Add.
9983 ($(objpfx)tst-langinfo-setlocale.out): New target.
9984 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9985 * localedata/tst-langinfo.c: Call test_locale.
9986 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9987 data.
9988
9989 2018-07-04 Florian Weimer <fweimer@redhat.com>
9990
9991 testrun.sh: Implement --tool=strace, --tool=valgrind
9992 * Makefile (testrun-script): Define variable.
9993 (testrun.sh): Use variable.
9994 * manual/install.texi (Tools for Compilation): make 4.0 or later
9995 is required.
9996 * configure.ac: Check for make 4.0 or later.
9997 * INSTALL: Regenerate.
9998 * configure: Likewise.
9999
10000 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10001
10002 [BZ #23233]
10003 [BZ #21163]
10004 [BZ #18986]
10005 [BZ #13762]
10006 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
10007 * posix/PCRE.tests: Remove invalid test.
10008 * posix/bug-regex28.c: Fix expected values for used syntax.
10009 * posix/bug-regex37.c: New file.
10010 * posix/bug-regex38.c: Likewise.
10011 * posix/regcomp.c: Sync with gnulib.
10012 * posix/regex.c: Likewise.
10013 * posix/regex.h: Likewise.
10014 * posix/regex_internal.c: Likewise.
10015 * posix/regex_internal.h: Likewise.
10016 * posix/regexec.c: Likewise.
10017
10018 2018-06-26 Mike FABIAN <mfabian@redhat.com>
10019
10020 [BZ #23308]
10021 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
10022 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
10023 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
10024 * localedata/unicode-gen/PropList.txt: likewise.
10025 * localedata/unicode-gen/UnicodeData.txt: likewise.
10026 * localedata/charmaps/UTF-8: Regenerate.
10027 * localedata/locales/i18n_ctype: likewise.
10028 * localedata/locales/tr_TR: likewise.
10029 * localedata/locales/translit_circle: likewise.
10030 * localedata/locales/translit_cjk_compat: likewise.
10031 * localedata/locales/translit_combining: likewise.
10032 * localedata/locales/translit_compat: likewise.
10033 * localedata/locales/translit_font: likewise.
10034 * localedata/locales/translit_fraction: likewise.
10035
10036 2018-07-03 Florian Weimer <fweimer@redhat.com>
10037
10038 [BZ #23363]
10039 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
10040 * stdio-common/tst-printf.sh: Adjust expected output.
10041 * LICENSES: Update.
10042
10043 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10044
10045 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
10046 symbol.
10047
10048 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10049
10050 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
10051 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
10052 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
10053 * stdio-common/tst-printfsz-islongdouble.c: New file.
10054 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
10055 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
10056 [subdir == stdio-common] (routines): Add ieee128-printf_size.
10057 [subdir == stdio-common] (tests-internal): Add
10058 test-printf-size-ieee128, and test-printf-size-ibm128.
10059 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
10060 (CFLAGS-test-printf-size-ibm128.c): New variables.
10061 [subdir == stdio-common] (tests-special): Add
10062 $(objpfx)test-printf-size-ieee128.out and
10063 $(objpfx)test-printf-size-ibm128.out.
10064 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
10065 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
10066 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
10067 __printf_sizeieee128.
10068 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
10069 New file.
10070 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
10071 Likewise.
10072 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
10073 Likewise.
10074
10075 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10076
10077 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10078 (exp2f_inline): Likewise.
10079 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10080 (__math_uflowf): Likewise.
10081 (__math_may_uflowf): Likewise.
10082 (__math_divzerof): Likewise.
10083 (__math_invalidf): Likewise.
10084 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10085 (__math_oflowf): Likewise.
10086 (__math_uflowf): Likewise.
10087 (__math_may_uflowf): Likewise.
10088 (__math_divzerof): Likewise.
10089 (__math_invalidf): Likewise.
10090
10091 2018-06-29 DJ Delorie <dj@redhat.com>
10092 Carlos O'Donell <carlos@redhat.com>
10093
10094 [BZ #23329]
10095 * include/libc-symbols.h: Comment the freeres framework.
10096 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10097 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10098 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10099 * dlfcn/dlerror.c: Include libc-symbols.h
10100 (__dlerror_main_freeres): New function.
10101 * dlfcn/dlfreeres.c: New file.
10102 * dlfcn/sdlfreeres.c: New file.
10103 * include/dlfcn.h: Declare __dlerror_main_freeres.
10104 * malloc/set-freeres.c: Declare __libdl_freeres, and
10105 __libpthread_freeres.
10106 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10107 the releavant libraries are loaded.
10108 * malloc/thread-freeres.c: Add comments.
10109 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10110 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10111 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10112 (__free_stacks): Rename to...
10113 (free_stacks): ...this. Mark static.
10114 (queue_stack): Call free_stacks.
10115 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10116 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10117 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10118 ptr_freeres element from struct.
10119 (pthread_functions): Remove .ptr_freeres from struct initializer.
10120 [SHARED] (nptl_freeres): Remove.
10121 * nptl/nptlfreeres.c: New file.
10122 * nptl/pthreadP.h
10123 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10124 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10125 attribute_hidden.
10126 (__free_stacks): Rename to...
10127 (__nptl_stacks_freeres): ...this.
10128 (__shm_directory_freeres): Declare.
10129 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10130 (__nptl_unwind_freeres): ...this.
10131 * resolv/res-close.c: Add comment.
10132 * resolv/resolv_conf.c: Include libc-symbols.h.
10133 * string/strerror_l.c: Include libc-symbols.h.
10134 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10135 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10136 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10137 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10138
10139 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10140
10141 * stdlib/tst-strfmon_l.c: Add tests for long double.
10142
10143 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10144
10145 [BZ #23208]
10146 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10147 * localedata/locales/dsb_DE: New file.
10148
10149 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10150
10151 [BZ #23140]
10152 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10153 genitive case).
10154 (alt_mon): New entry, import from CLDR (nominative case).
10155
10156 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10157
10158 [BZ #22996]
10159 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10160
10161 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10162
10163 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10164 Use vector registers.
10165
10166 * sysdeps/aarch64/multiarch/memmove_falkor.S
10167 (__memcpy_falkor): Use vector registers.
10168
10169 2018-06-29 Martin Sebor <msebor@redhat.com>
10170
10171 * manual/stdio.texi (Customizing Printf): Mention interaction
10172 with GCC built-ins.
10173
10174 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10175
10176 [BZ #23307]
10177 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10178 `st_value' is 0 if `st_shndx' is SHN_ABS.
10179 * elf/tst-absolute-zero.c: New file.
10180 * elf/tst-absolute-zero-lib.c: New file.
10181 * elf/tst-absolute-zero-lib.lds: New file.
10182 * elf/Makefile (tests): Add `tst-absolute-zero'.
10183 (modules-names): Add `tst-absolute-zero-lib'.
10184 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10185 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10186 ($(objpfx)tst-absolute-zero: New dependency.
10187
10188 2018-06-29 Zack Weinberg <zackw@panix.com>
10189
10190 * configure.ac: New command-line option --disable-crypt.
10191 Force --disable-nss-crypt when --disable-crypt is given, with a
10192 warning if it was explicitly enabled.
10193 * configure: Regenerate.
10194 * config.make.in: New boolean substitution variable $(build-crypt).
10195 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10196 when $(build-crypt).
10197 * manual/install.texi: Document --disable-crypt.
10198 * INSTALL: Regenerate.
10199
10200 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10201 which is never set.
10202 * conform/Makefile: Only include libcrypt.a in
10203 linknamespace-libs-xsi and linknamespace-libs-XPG4
10204 when $(build-crypt).
10205 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10206 USE_CRYPT to 1 when $(build-crypt).
10207 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10208 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10209 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10210
10211 2018-06-29 Zack Weinberg <zackw@panix.com>
10212
10213 * crypt/crypt.h, posix/unistd.h: Update comments and
10214 prototypes for crypt and crypt_r.
10215
10216 * manual/crypt.texi (Cryptographic Functions): New initial
10217 exposition.
10218 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10219 (Unpredictable Bytes): Improve initial exposition. Clarify error
10220 behavior of getentropy and getrandom.
10221 * manual/examples/genpass.c: Generate a salt using getentropy
10222 instead of the current time. Use hash $5$ (SHA-2-256).
10223 * manual/examples/testpass.c: Demonstrate validation against
10224 hashes generated with three different one-way functions.
10225
10226 * manual/intro.texi: crypt.texi does not need an overview
10227 anymore.
10228
10229 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10230 * manual/terminal.texi: Consistently refer to "passphrases"
10231 * instead of "passwords", and to the "user database" instead
10232 * of the "password database".
10233 * manual/users.texi: Similarly. Add notes about how actual
10234 passphrase hashes are now stored in the shadow database.
10235 Remove 20-year-old junk todo note.
10236
10237 2018-06-29 Zack Weinberg <zackw@panix.com>
10238
10239 * manual/crypt.texi: Use a normal top-level @node declaration.
10240 Move most of the introductory text to the 'crypt' section.
10241 Move the example programs below the @deftypefun for 'crypt_r'.
10242 Move the 'getpass' section...
10243 * manual/terminal.texi: ...here.
10244
10245 2018-06-29 Zack Weinberg <zackw@panix.com>
10246 Florian Weimer <fweimer@redhat.com>
10247
10248 * posix/unistd.h: Do not declare encrypt.
10249 (_XOPEN_CRYPT): Remove macro definition.
10250 (crypt): Declare only for _USE_MISC.
10251 * stdlib/stdlib.h: Do not declare setkey.
10252 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10253 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10254
10255 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10256 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10257 into compat symbols. Don't define initial_perm if it's not
10258 going to be used.
10259 * crypt/cert.c: Link explicitly with the expected versions for
10260 setkey and encrypt. If they are not available at all, mark
10261 the test as unsupported.
10262
10263 * sunrpc/des_crypt.c: Unconditionally block linkage with
10264 cbc_crypt and ecb_crypt for new binaries.
10265 * sunrpc/des_soft.c: Unconditionally block linkage with
10266 des_setparity for new binaries.
10267
10268 * manual/crypt.texi: Remove the entire "DES Encryption"
10269 section. Also remove the paragraph talking about FIPS 140-2
10270 from the introduction.
10271 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10272 of libgcrypt for "real" encryption, not DES.
10273 * manual/conf.texi (Constants for Sysconf): Mention that
10274 _XOPEN_CRYPT is no longer impelemented.
10275
10276 * conform/data/unistd.h-data: Remove crypt function declaration.
10277
10278 2018-06-29 Florian Weimer <fweimer@redhat.com>
10279
10280 [BZ #23351]
10281 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10282 (disallow_malloc_check): Remove variable.
10283 (__malloc_check_init): Adjust.
10284 (malloc_set_state): Update comment.
10285 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10286 declarations.
10287
10288 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10289
10290 [BZ #23140]
10291 * localedata/locales/ast_ES (mon): Rename to...
10292 (alt_mon): This.
10293 (mon): Import from CLDR (genitive case).
10294
10295 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10296 Jakub Sitnicki <jkbs@redhat.com>
10297
10298 [BZ #21812]
10299 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10300 on NLM_F_DUMP_INTR.
10301
10302 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10303
10304 * manual/llio.texi: Remove spurious space.
10305
10306 2018-06-28 Florian Weimer <fweimer@redhat.com>
10307
10308 [BZ #23349]
10309 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10310 _STRUCT_TIMESPEC.
10311
10312 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10313
10314 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10315 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10316 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10317 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10318 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10319 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10320 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10321
10322 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10323
10324 [BZ #23266]
10325 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10326 Copy and null-terminate entries that are not terminated, in
10327 addition to empty ones.
10328
10329 2018-06-27 Florian Weimer <fweimer@redhat.com>
10330
10331 [BZ #18023]
10332 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10333 (extend_alloca_account): Remove.
10334 * manual/stdio.texi (Variable Arguments Output): Update comment.
10335
10336 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10337
10338 * nptl/sockperf.c: Remove file.
10339
10340 2018-06-27 Florian Weimer <fweimer@redhat.com>
10341
10342 [BZ #18023]
10343 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10344 scratch_buffer instead of extend_alloca.
10345
10346 2018-06-27 Florian Weimer <fweimer@redhat.com>
10347
10348 [BZ #18023]
10349 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10350 scratch_buffer instead of extend_alloca. Update comments.
10351
10352 2018-06-27 Florian Weimer <fweimer@redhat.com>
10353
10354 [BZ #18023]
10355 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10356 instead of extend_alloca.
10357
10358 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10359
10360 [BZ #13888]
10361 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10362 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10363 /tmp.
10364 * scripts/test-installation.pl: Put temporary files in build
10365 directory, not /tmp.
10366 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10367 (CFLAGS-bug4.c): Likewise.
10368 (CFLAGS-bug5.c): Likewise.
10369 (CFLAGS-test-fseek.c): Likewise.
10370 (CFLAGS-test-popen.c): Likewise.
10371 (CFLAGS-test_rdwr.c): Likewise.
10372 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10373 /tmp.
10374 * stdio-common/bug4.c (main): Likewise.
10375 * stdio-common/bug5.c (main): Likewise.
10376 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10377 * stdio-common/test-popen.c (do_test): Likewise.
10378 * stdio-common/test_rdwr.c (main): Likewise.
10379
10380 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10381
10382 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10383 (sem_open): Set sem.newsem.pad to zero for valgrind.
10384
10385 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10386
10387 [BZ #20251]
10388 * NEWS: Mention fcntl64 addition.
10389 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10390 * login/utmp_file.c: Likewise.
10391 * sysdeps/posix/fdopendir.c: Likewise.
10392 * sysdeps/posix/opendir.c: Likewise.
10393 * sysdeps/unix/pt-fcntl.c: Likewise.
10394 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10395 __fcntl64_nocancel_adjusted): New prototype.
10396 (__fcntl_nocancel_adjusted): Remove prototype.
10397 * io/Makefile (routines): Add fcntl64.
10398 (CFLAGS-fcntl64.c): New rule.
10399 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10400 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10401 * io/fcntl.h (fcntl64): Add prototype and redirect if
10402 __USE_FILE_OFFSET64 is defined.
10403 * io/fcntl64.c: New file.
10404 * manual/llio.text: Add a note for which commands fcntl acts a
10405 cancellation point.
10406 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10407 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10408 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10409 New symbols.
10410 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10411 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10412 non-LFS case.
10413 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10414 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10415 to __fcntl64_nocancel.
10416 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10417 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10418 to __fcntl64_nocancel.
10419 * sysdeps/generic/not-cancel.h: Likewise.
10420 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10421 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10422 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10423 (fcntl64): New symbol.
10424 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10425 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10426 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10428 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10429 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10430 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10431 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10432 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10433 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10434 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10435 fcntl64): Likewise.
10436 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10437 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10438 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10439 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10440 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10441 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10442 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10443 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10444 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10445 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10446 Likewise.
10447 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10448 Likewise.
10449 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10450 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10451 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10452
10453 2018-06-26 Florian Weimer <fweimer@redhat.com>
10454
10455 Run thread shutdown functions in an explicit order.
10456 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10457 definition.
10458 (__libc_thread_freeres): Call thread shutdown functions
10459 explicitly.
10460 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10461 * include/string.h (__strerror_thread_freeres): Declare.
10462 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10463 arena_thread_freeres. No longer static. Remove thread shutdown
10464 hook registration.
10465 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10466 Declare.
10467 * resolv/res-close.c (__res_thread_freeres): Renamed from
10468 res_thread_freeres. No longer static. Remove thread shutdown
10469 hook registration.
10470 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10471 * resolv/resolv_conf.c (freeres): Remove incorrect section
10472 attribute and use libc_freeres_fn.
10473 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10474 strerror_thread_freeres. No longer static. Remove thread
10475 shutdown hook registration.
10476 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10477 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10478 shutdown hook registration.
10479 * Makerules (shlib.lds): Do not provide section boundary symbols
10480 for __libc_thread_subfreeres.
10481 * manual/memory.texi (Basic Allocation): Update comment.
10482
10483 2018-06-26 Florian Weimer <fweimer@redhat.com>
10484
10485 Remove always-defined _RPC_THREAD_SAFE_ macro.
10486 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10487 Do not define _RPC_THREAD_SAFE_.
10488 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10489 conditional.
10490 * sunrpc/clnt_perr.c: Likewise.
10491 * sunrpc/clnt_raw.c: Likewise.
10492 * sunrpc/clnt_simp.c: Likewise.
10493 * sunrpc/key_call.c: Likewise.
10494 * sunrpc/rpc_common.c: Likewise.
10495 * sunrpc/rpc_main.c: Likewise.
10496 * sunrpc/rpc_thread.c: Likewise.
10497 * sunrpc/svc.c: Likewise.
10498 * sunrpc/svc_raw.c: Likewise.
10499 * sunrpc/svc_simple.c: Likewise.
10500 * sumrpc/svcauth_des.c: Likewise.
10501
10502 2018-06-26 Florian Weimer <fweimer@redhat.com>
10503
10504 * libio/Makefile (tests-internal): Add tst-vtables,
10505 tst-vtables-interposed.
10506 * libio/tst-vtables.c: New file.
10507 * libio/tst-vtables-common.c: Likewise.
10508 * libio/tst-vtables-interposed.c: Likewise.
10509
10510 2018-06-26 Florian Weimer <fweimer@redhat.com>
10511
10512 * support/support_test_main.c (support_test_main): Only call
10513 setvbuf if not disables.
10514 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10515 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10516
10517 2018-06-26 Florian Weimer <fweimer@redhat.com>
10518
10519 [BZ #23313]
10520 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10521
10522 2018-06-25 Florian Weimer <fweimer@redhat.com>
10523
10524 [BZ #18023]
10525 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10526 Use struct scratch_buffer instead of extend_alloca.
10527
10528 2018-06-25 Florian Weimer <fweimer@redhat.com>
10529
10530 [BZ #18023]
10531 * nss/getent.c (initgroups_keys): Use dynarray instead of
10532 extend_alloca.
10533
10534 2018-06-25 Florian Weimer <fweimer@redhat.com>
10535
10536 [BZ #18023]
10537 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10538 Use struct scratch_buffer instead of extend_alloca.
10539
10540 2018-06-25 Florian Weimer <fweimer@redhat.com>
10541
10542 [BZ #18023]
10543 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10544 back to malloc directly, without stack allocations.
10545
10546 2018-06-25 Florian Weimer <fweimer@redhat.com>
10547
10548 [BZ #18023]
10549 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10550 of extend_alloca.
10551
10552 2018-06-25 Florian Weimer <fweimer@redhat.com>
10553
10554 [BZ #18023]
10555 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10556 of extend_alloca.
10557 * nscd/hstcache.c (addhstbyX): Likewise.
10558 * nscd/pwdcache.c (addpwbyX): Likewise.
10559 * nscd/servicescache.c (addservbyX): Likewise.
10560
10561 2018-06-25 Florian Weimer <fweimer@redhat.com>
10562
10563 [BZ #18023]
10564 * nscd/connections.c (read_cmdline): New function.
10565 (restart): Use it. Update comment.
10566
10567 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10568
10569 [BZ #23140]
10570 * localedata/locales/csb_PL (mon): Rename to...
10571 (alt_mon): This.
10572 (abmon): Rename to...
10573 (ab_alt_mon): This.
10574 (mon): Add with proper genitive forms, copy from Wikipedia.
10575 (abmon): Likewise.
10576
10577 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10578
10579 [BZ #19485]
10580 * localedata/locales/csb_PL (mon): Fix typos:
10581 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10582 (yesstr): Add, value is "jo".
10583 (nostr): Add, value is "nié".
10584
10585 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10586
10587 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10588 all log1p and significand functions on m680x0.
10589 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10590 of s_significand.c..
10591 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10592 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10593 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10594 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10595 s_log1p.c and include it..
10596
10597 2018-06-21 Vincent Chen <vincentc@andestech.com>
10598
10599 * elf/elf.h (R_NDS32_NONE): New define.
10600 (R_NDS32_32_RELA): Likewise.
10601 (R_NDS32_COPY): Likewise.
10602 (R_NDS32_GLOB_DAT): Likewise.
10603 (R_NDS32_JUMP_SLOT): Likewise.
10604 (R_NDS32_RELATIVE): Likewise.
10605 (R_NDS32_TLS_TPOFF): Likewise.
10606 (R_NDS32_TLS_DESC): Likewise.
10607
10608 2018-06-21 Mark Wielaard <mark@klomp.org>
10609
10610 * elf/elf.h (R_BPF_MAP_FD): Removed.
10611 (R_BPF_64_64, R_BPF_64_32): New.
10612
10613 2018-06-21 Florian Weimer <fweimer@redhat.com>
10614
10615 [BZ #23253]
10616 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10617 Renamed from libc_feholdsetround_ctx.
10618 (default_libc_feresetround_ctx): Renamed from
10619 libc_feresetround_ctx.
10620 (default_libc_feholdsetround_noex_ctx): Renamed from
10621 libc_feholdsetround_noex_ctx.
10622 (default_libc_feresetround_noex_ctx): Renamed from
10623 libc_feresetround_noex_ctx.
10624 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10625 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10626 forwardning to the old implementations under the new names.
10627 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10628 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10629 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10630 (libc_feresetround_ctx): Forward to default implements for i386
10631 and MATH_SET_BOTH_ROUNDING_MODES.
10632 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10633 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10634
10635 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10636
10637 * string/tst-cmp.c: Include <libc-diag.h>.
10638 (strncmp_max): Disable -Wstringop-overflow= around call to
10639 strncmp.
10640 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10641 strncasecmp.
10642
10643 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10644 (main): Disable -Wunused-value around call to strpbrk.
10645 * string/bug-strspn1.c: Include <libc-diag.h>.
10646 (main): Disable -Wunused-value around call to strspn.
10647
10648 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10649 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10650
10651 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10652 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10653
10654 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10655
10656 * math/Makefile (libm-calls): Move s_significandF to...
10657 (gen-libm-calls): ... here.
10658 * math/s_significand_template.c: New file.
10659 * math/s_significand.c: Removed.
10660 * math/s_significandf.c: Removed.
10661 * math/s_significandl.c: Removed.
10662 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10663 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10664
10665 * math/e_exp2_template.c (declare_mgen_finite_alias,
10666 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10667 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10668 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10669
10670 2018-06-20 Florian Weimer <fweimer@redhat.com>
10671
10672 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10673
10674 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10675
10676 [BZ #23280]
10677 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10678 floating-point number to strtod functions rather than possibly
10679 negating result of those functions.
10680 * stdio-common/tst-scanf-round.c: New file.
10681 * stdio-common/Makefile (tests): Add tst-scanf-round.
10682 ($(objpfx)tst-scanf-round): Depend on $(libm).
10683
10684 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10685
10686 * sysdeps/mach/hurd/localplt.data: Move to...
10687 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10688 R_386_GLOB_DAT like on Linux i386.
10689
10690 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10691
10692 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10693 (SHM_STAT_ANY): New macro.
10694 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10695 (SHM_STAT_ANY): Likewise.
10696 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10697 (SHM_STAT_ANY): Likewise.
10698 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10699 (SHM_STAT_ANY): Likewise.
10700 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10701 (SHM_STAT_ANY): Likewise.
10702 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10703 (SHM_STAT_ANY): Likewise.
10704 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10705 (SHM_STAT_ANY): Likewise.
10706 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10707 (SHM_STAT_ANY): Likewise.
10708 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10709 (SHM_STAT_ANY): Likewise.
10710 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10711 (SHM_STAT_ANY): Likewise.
10712 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10713 (SHM_STAT_ANY): Likewise.
10714 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10715 (SHM_STAT_ANY): Likewise.
10716
10717 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10718 (SEM_STAT_ANY): New macro.
10719 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10720 (SEM_STAT_ANY): Likewise.
10721 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10722 (SEM_STAT_ANY): Likewise.
10723 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10724 (SEM_STAT_ANY): Likewise.
10725 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10726 (SEM_STAT_ANY): Likewise.
10727 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10728 (SEM_STAT_ANY): Likewise.
10729 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10730 (SEM_STAT_ANY): Likewise.
10731 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10732 (SEM_STAT_ANY): Likewise.
10733 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10734 (SEM_STAT_ANY): Likewise.
10735 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10736 (SEM_STAT_ANY): Likewise.
10737
10738 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10739 (MSG_STAT_ANY): New macro.
10740 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10741 (MSG_STAT_ANY): Likewise.
10742 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10743 (MSG_STAT_ANY): Likewise.
10744 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10745 (MSG_STAT_ANY): Likewise.
10746 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10747 (MSG_STAT_ANY): Likewise.
10748 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10749 (MSG_STAT_ANY): Likewise.
10750 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10751 (MSG_STAT_ANY): Likewise.
10752 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10753 (MSG_STAT_ANY): Likewise.
10754 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10755 (MSG_STAT_ANY): Likewise.
10756 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10757 (MSG_STAT_ANY): Likewise.
10758
10759 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10760 (MAP_TYPE): Change value to 0x2b.
10761
10762 2018-06-18 Florian Weimer <fweimer@redhat.com>
10763
10764 [BZ #15722]
10765 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10766 socket with SOCK_CLOEXEC.
10767
10768 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10769
10770 [BZ #23303]
10771 * sysdeps/powerpc/powerpc64/le/Makefile
10772 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10773 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10774 (gnulib-tests): Also add $(f128-loader-link) for
10775 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10776
10777 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10778
10779 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10780 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10781 of sendfile.
10782 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10783 (sendfile64): New strong alias.
10784 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10785 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10786 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10787 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10788 attribute.
10789 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10790 ___pthread_get_cleanup_stack.
10791 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10792 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10793 * mach/shortcut.awk: Make syscall stubs include
10794 <mach-shortcuts-hidden.h> and add hidden definition.
10795 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10796 (__mach_msg): Add hidden prototype.
10797 * mach/msg.c: Include <mach.h>.
10798 (__mach_msg): Add hidden definition.
10799 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10800 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10801 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10802 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10803 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10804 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10805 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10806 prototype and definition.
10807 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10808 hidden target for _hurd_self_sigstate.
10809
10810 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10811
10812 [BZ #23007]
10813 * stdlib/tst-strtod-nan-sign-main.c: New file.
10814 * stdlib/tst-strtod-nan-sign.c: Likewise.
10815 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10816 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10817 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10818 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10819 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10820
10821 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10822
10823 [BZ #23007]
10824 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10825 appropriate sign.
10826
10827 2018-06-14 Florian Weimer <fweimer@redhat.com>
10828
10829 [BZ #23290]
10830 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10831 that the result stays within the ISO-8859-1 range.
10832 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10833 characters are defined in IBM273.
10834
10835 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10836
10837 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10838 __mach_task_self): Remove attribute_hidden.
10839
10840 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10841
10842 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10843 ignore -Wrestrict for one test.
10844
10845 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10846 Szabolcs Nagy <szabolcs.nagy@arm.com>
10847
10848 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10849
10850 2018-06-14 Florian Weimer <fweimer@redhat.com>
10851
10852 * scripts/update-abilist.sh: Accept empty list of files to patch.
10853
10854 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10855
10856 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10857 test-xfail-check-abi-libmachuser): Add.
10858 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10859 __libc_read and __libc_write to __read and __write.
10860 * sysdeps/hurd/include/hurd/port.h: New file.
10861 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10862 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10863 __thread_switch, __evc_wait): Move declarations to...
10864 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10865 attribute_hidden.
10866 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10867 use PLT to call _hurd_self_sigstate.
10868
10869 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10870
10871 [BZ #23279]
10872 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10873 MAX_EXP as overflowing.
10874 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10875 overflow flag.
10876 (round_str): Output also whether result overflows in each rounding
10877 mode.
10878 * stdlib/tst-strtod-round-data: Add more tests.
10879 * stdlib/tst-strtod-round-data.h: Regenerated.
10880 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10881 (TEST): Handle extra arguments for overflow flags.
10882 (struct test_overflow): New type.
10883 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10884 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10885 (test_in_one_mode): Take argument with overflow information.
10886 (do_test): Update calls to test_in_one_mode.
10887
10888 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10889
10890 * elf/dl-load (_dl_dst_substitute): Correct comment.
10891 (_dl_dst_count): Likewise.
10892
10893 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10894 lll_futex_timed_wait.
10895
10896 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10897
10898 [BZ #23277]
10899 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10900 attribute.
10901 * math/test-nan-const.c: New file.
10902 * math/Makefile (tests): Add test-nan-const.
10903 (CFLAGS-test-nan-const.c): New variable.
10904
10905 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10906
10907 * benchtests/scripts/compare_strings.py (process_results): Add
10908 funcs argument. Compare only functions which are selected.
10909 (main): Check if base function is among selected functions.
10910 Pass selected functions to process_results.
10911 (__main__): Add -f/--functions argument.
10912
10913 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10914 Hongbo Zhang <hongbo.zhang@linaro.org>
10915
10916 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10917 __memcpy_falkor for phecda core.
10918 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10919 __memmove_falkor for phecda core.
10920 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10921 __memset_falkor for phecda core.
10922 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10923 for phecda core.
10924 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10925 macro to identify phecda core.
10926
10927 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10928 Andreas Schwab <schwab@suse.de>
10929 Dmitry V. Levin <ldv@altlinux.org>
10930 Florian Weimer <fweimer@redhat.com>
10931
10932 [BZ #23102]
10933 [BZ #21942]
10934 [BZ #18018]
10935 [BZ #23259]
10936 CVE-2011-0536
10937 * elf/dl-dst.h: Remove DL_DST_COUNT.
10938 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10939 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10940 (is_dst): Comment. Support ELF gABI.
10941 (_dl_dst_count): Comment. Simplify and count DSTs.
10942 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10943 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10944 locals.
10945
10946 2018-06-12 Zack Weinberg <zackw@panix.com>
10947
10948 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10949 * sysdeps/unix/sysv/linux/dl-sysdep.c
10950 Include not-cancel.h. Use __close_nocancel instead of __close,
10951 __open64_nocancel instead of __open, __read_nocancel instead of
10952 __libc_read, and __write_nocancel instead of __libc_write.
10953
10954 * csu/check_fds.c (check_one_fd)
10955 * sysdeps/posix/fdopendir.c (__fdopendir)
10956 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10957 instead of __fcntl and/or __libc_fcntl.
10958
10959 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10960 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10961 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10962 Use __open64_nocancel instead of __open_nocancel.
10963
10964 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10965 hidden_proto declarations to the end and issue them if either
10966 IS_IN(libc) or IS_IN(rtld).
10967 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10968 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10969 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10970 read_nocancel, waitpid_nocancel, write_nocancel.
10971
10972 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10973 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10974 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10975
10976 * nptl/pt-fcntl.c: New file.
10977 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10978 (libpthread-routines): Add pt-fcntl.
10979 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10980 (__libc_fcntl): Remove attribute_hidden.
10981 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10982 __fcntl_nocancel_adjusted, not fcntl_common.
10983 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10984 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10985 to fcntl_nocancel.c.
10986 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10987 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10988 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10989 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10990
10991 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10992 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10993 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10994 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10995 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10996 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10997 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10998 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10999 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
11000 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
11001 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
11002 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
11003 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
11004 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
11005 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
11006 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
11007 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
11008 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
11009 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
11010 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
11011
11012 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
11013 libpthread-routines.
11014 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
11015 defines nothing.
11016
11017 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
11018 __libc_read, and __write instead of __libc_write. Define
11019 __open64 in addition to __open.
11020
11021 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
11022
11023 [BZ #23250]
11024 [BZ #10686]
11025 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
11026 to _private_tm[3] and add __glibc_reserved2.
11027 Add _Static_assert of offset of __private_ss == 0x30.
11028 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
11029 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
11030
11031 2018-06-12 Florian Weimer <fweimer@redhat.com>
11032
11033 x86: Make strncmp usable from rtld.
11034 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
11035 __strncmp_ia32 if in libc (and not in rtld).
11036 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
11037 strncmp if not in libc (and not to __strncmp_sse2).
11038
11039 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
11040
11041 [BZ #23140]
11042 * localedata/locales/gd_GB (mon): Rename to...
11043 (alt_mon): This.
11044 (mon): Import from CLDR (genitive case).
11045 * localedata/locales/hsb_DE (mon): Rename to...
11046 (alt_mon): This.
11047 (mon): Import from CLDR (genitive case).
11048 * localedata/locales/wa_BE (mon): Rename to...
11049 (alt_mon): This.
11050 (mon): Add, fill with the proper genitive forms, but CLDR data
11051 is incomplete; completed according to the comments in this file.
11052 (d_t_fmt): Do not use "di" before the month name, no longer needed.
11053
11054 * localedata/locales/wa_BE (country_name): Reword
11055 "Beljike" -> "Beldjike".
11056
11057 2018-06-11 Joseph Myers <joseph@codesourcery.com>
11058
11059 [BZ #23272]
11060 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
11061 cases of non-finite arguments.
11062 * math/libm-test-fma.inc (fma_test_data): Add more tests.
11063
11064 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
11065
11066 [BZ #23174]
11067 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
11068
11069 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11070
11071 [BZ #23264]
11072 * include/unistd.h (__execvpex): New prototype.
11073 * posix/Makefile (tests): Add tst-spawn4.
11074 (tests-internal): Add tst-spawn4-compat.
11075 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11076 * posix/tst-spawn4-compat.c: New file.
11077 * posix/tst-spawn4.c: Likewise.
11078 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11079 binaries as shell scripts.
11080 * sysdeps/posix/spawni.c (__spawni): Likewise.
11081
11082 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11083
11084 [BZ #23145]
11085 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11086 ($(all-built-dso:=.dynsym): New target.
11087 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11088 ($(objpfx)check-initfini.out): New target.
11089 (generated): Add check-initfini.out.
11090 * scripts/check-initfini.awk: New file.
11091 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11092 (_fini): Likewise.
11093 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11094 (_fini): Likewise.
11095 * sysdeps/arm/crti.S (_init): Mark as hidden.
11096 (_fini): Likewise.
11097 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11098 (_fini): Likewise.
11099 * sysdeps/i386/crti.S (_init): Mark as hidden.
11100 (_fini): Likewise.
11101 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11102 (_fini): Likewise.
11103 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11104 (_fini): Likewise.
11105 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11106 (_fini): Likewise.
11107 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11108 (_fini): Likewise.
11109 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11110 (_fini): Likewise.
11111 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11112 (_fini): Likewise.
11113 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11114 (_fini): Likewise.
11115 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11116 (_fini): Likewise.
11117 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11118 (_fini): Likewise.
11119 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11120 (_fini): Likewise.
11121 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11122 (_fini): Likewise.
11123 * sysdeps/sh/crti.S (_init): Mark as hidden.
11124 (_fini): Likewise.
11125 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11126 (_fini): Likewise.
11127 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11128 (_fini): Likewise.
11129
11130 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11131
11132 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11133 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11134 and TF redirection to KFtype and KF only when the default
11135 long double type is not the IEEE 128-bit floating point type.
11136
11137 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11138
11139 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11140 macro.
11141 (HWCAP_USCAT): Likewise.
11142 (HWCAP_ILRCPC): Likewise.
11143 (HWCAP_FLAGM): Likewise.
11144 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11145 Increase to 28.
11146 (_dl_aarch64_cap_flags): Add new flag names.
11147
11148 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11149 (MAP_FIXED_NOREPLACE): New macro.
11150 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11151 (MAP_FIXED_NOREPLACE): Likewise.
11152 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11153 (MAP_FIXED_NOREPLACE): Likewise.
11154 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11155 (MAP_FIXED_NOREPLACE): Likewise.
11156 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11157 (MAP_FIXED_NOREPLACE): Likewise.
11158 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11159 (MAP_FIXED_NOREPLACE): Likewise.
11160 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11161 (MAP_FIXED_NOREPLACE): Likewise.
11162 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11163 (MAP_FIXED_NOREPLACE): Likewise.
11164 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11165 (MAP_FIXED_NOREPLACE): Likewise.
11166 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11167 (MAP_FIXED_NOREPLACE): Likewise.
11168 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11169 (MAP_FIXED_NOREPLACE): Likewise.
11170 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11171 (MAP_FIXED_NOREPLACE): Likewise.
11172 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11173 (MAP_FIXED_NOREPLACE): Likewise.
11174 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11175 (MAP_FIXED_NOREPLACE): Likewise.
11176 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11177 (MAP_FIXED_NOREPLACE): Likewise.
11178
11179 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11180 version to 4.17.
11181
11182 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11183
11184 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11185 version to 4.17
11186
11187 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11188
11189 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11190 int.
11191 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11192
11193 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11194
11195 * benchtests/scripts/compare_string.py: (process_results) Catch
11196 exception in non-existent base_func and catch exception in
11197 non-existent attribute.
11198 (parse_file) Catch exception if input file does not exist.
11199
11200 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11201
11202 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11203 options to avoid diff calculation and omit header, respectively.
11204 (main): process --no-diff and --no-header
11205
11206 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11207 H.J. Lu <hongjiu.lu@intel.com>
11208
11209 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11210 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11211 wcsncmp-sse2.
11212 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11213 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11214 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11215 and __wcsncmp_sse2.
11216 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11217 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11218 AVX unaligned load is fast and vzeroupper is preferred.
11219 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11220 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11221 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11222 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11223 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11224 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11225 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11226 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11227 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11228 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11229 is undefined.
11230
11231 2018-06-01 Florian Weimer <fweimer@redhat.com>
11232
11233 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11234 configuring with --disable-multi-arch, building with
11235 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11236 Haswell-era CPU.
11237
11238 2018-06-01 Florian Weimer <fweimer@redhat.com>
11239
11240 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11241 results from building with “-march=x86-64 -mtune=generic
11242 -mfpmath=sse” and running on a Haswell-era CPU.
11243
11244 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11245
11246 [BZ #18473]
11247 * soft-fp/sqrttf2.c: Remove file.
11248 * soft-fp/sqrtdf2.c: Move to ....
11249 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11250 <shlib-compat.h>.
11251 (__sqrtdf2): Make conditional on
11252 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11253 symbol.
11254 * soft-fp/sqrtsf2.c: Move to ....
11255 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11256 <shlib-compat.h>.
11257 (__sqrtsf2): Make conditional on
11258 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11259 symbol.
11260 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11261 (gcc-double-routines): Remove sqrtdf2.
11262 (gcc-quad-routines): Remove sqrttf2.
11263 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11264 Do not filter out sqrtsf2 and sqrtdf2.
11265 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11266 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11267
11268 2018-06-01 Florian Weimer <fweimer@redhat.com>
11269
11270 * sysdeps/generic/libcidn.abilist: Remove file.
11271
11272 2018-06-01 Florian Weimer <fweimer@redhat.com>
11273
11274 [BZ #23236]
11275 * libio/strfile.h (struct _IO_str_fields): Rename members to
11276 discourage their use and add comment.
11277 (_IO_STR_DYNAMIC): Remove unused macro.
11278 * libio/strops.c (_IO_str_init_static_internal): Do not use
11279 callback pointers. Call malloc and free.
11280 (_IO_str_overflow): Do not use callback pointers. Call malloc
11281 and free.
11282 (enlarge_userbuf): Likewise.
11283 (_IO_str_finish): Call free.
11284 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11285 _allocate_buffer_unused.
11286 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11287 and free.
11288 (enlarge_userbuf): Likewise.
11289 (_IO_wstr_finish): Call free.
11290 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11291 _allocate_buffer_unused, _free_buffer_unused.
11292 * libio/memstream.c (__open_memstream): Likewise.
11293 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11294 * libio/wmemstream.c (open_wmemstream): Likewise.
11295
11296 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11297
11298 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11299 AMD Ryzen 7 1800X.
11300
11301 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11302
11303 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11304 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11305 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11306 New file.
11307 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11308 Likewise.
11309 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11310
11311 2018-05-29 Florian Weimer <fweimer@redhat.com>
11312
11313 * support/Makefile (libsupport-routines): Add
11314 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11315 xpthread_barrierattr_setpshared.
11316 * support/xpthread_barrierattr_destroy.c: New file.
11317 * support/xpthread_barrierattr_init.c: Likewise.
11318 * support/xpthread_barrierattr_setpshared.c: Likewise.
11319
11320 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11321
11322 [BZ #23206]
11323 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11324 _r_debug and update DT_DEBUG for debugger.
11325
11326 2018-05-29 Florian Weimer <fweimer@redhat.com>
11327
11328 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11329 (tst-strtod5i.out): Likewise.
11330
11331 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11332
11333 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11334 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11335 (sparc64-quad-routines): New variable. Moved from ....
11336 [$(subdir) = soft-fp] (sysdep_routines): Add
11337 $(sparc64-quad-routines). Moved from ....
11338 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11339 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11340 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11341 moved from ....
11342 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11343 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11344 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11345 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11346 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11347 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11348 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11349 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11350 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11351 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11352 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11353 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11354 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11355 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11356 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11357 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11358 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11359 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11360 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11361 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11362 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11363 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11364 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11365 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11366 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11367 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11368 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11369 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11370 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11371 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11372 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11373 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11374 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11375 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11376 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11377 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11378 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11379 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11380 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11381 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11382 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11383 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11384 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11385 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11386 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11387 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11388 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11389 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11390 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11391 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11392 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11393 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11394 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11395 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11396 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11397 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11398 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11399 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11400
11401 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11402 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11403 (sparc32-quad-routines): New variable. Moved from ....
11404 [$(subdir) = soft-fp] (sysdep_routines): Add
11405 $(sparc32-quad-routines). Moved from ....
11406 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11407 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11408 moved from ....
11409 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11410 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11411 * sysdeps/sparc/sparc32/q_add.c: ... here.
11412 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11413 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11414 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11415 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11416 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11417 * sysdeps/sparc/sparc32/q_div.c: ... here.
11418 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11419 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11420 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11421 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11422 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11423 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11424 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11425 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11426 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11427 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11428 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11429 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11430 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11431 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11432 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11433 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11434 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11435 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11436 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11437 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11438 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11439 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11440 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11441 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11442 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11443 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11444 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11445 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11446 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11447 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11448 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11449 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11450 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11451 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11452 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11453 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11454 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11455 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11456 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11457 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11458 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11459 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11460 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11461 * sysdeps/sparc/sparc32/q_util.c: ... here.
11462 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11463 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11464 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11465 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11466
11467 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11468 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11469
11470 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11471 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11472 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11473 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11474
11475 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11476
11477 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11478 powerpc/soft-fp.
11479 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11480 Likewise.
11481 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11482 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11483
11484 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11485
11486 [BZ #23171]
11487 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11488 double version.
11489
11490 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11491
11492 * sysdeps/sh/Implies: Remove sh/soft-fp.
11493 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11494 * sysdeps/sh/sfp-machine.h: ... here.
11495
11496 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11497
11498 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11499 (__mempcpy_erms): Skip zero length.
11500 (__memmove_erms): Likewise.
11501 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11502 (__memset_erms): Likewise.
11503
11504 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11505
11506 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11507 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11508 Add functions moved from ....
11509 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11510 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11511 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11512 from ....
11513 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11514 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11515 * sysdeps/alpha/e_sqrtl.c: ... here.
11516 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11517 * sysdeps/alpha/local-soft-fp.h: ... here.
11518 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11519 * sysdeps/alpha/ots_add.c: ... here.
11520 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11521 * sysdeps/alpha/ots_cmp.c: ... here.
11522 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11523 * sysdeps/alpha/ots_cmpe.c: ... here.
11524 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11525 * sysdeps/alpha/ots_cvtqux.c: ... here.
11526 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11527 * sysdeps/alpha/ots_cvtqx.c: ... here.
11528 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11529 * sysdeps/alpha/ots_cvttx.c: ... here.
11530 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11531 * sysdeps/alpha/ots_cvtxq.c: ... here.
11532 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11533 * sysdeps/alpha/ots_cvtxt.c: ... here.
11534 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11535 * sysdeps/alpha/ots_div.c: ... here.
11536 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11537 * sysdeps/alpha/ots_mul.c: ... here.
11538 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11539 * sysdeps/alpha/ots_nintxq.c: ... here.
11540 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11541 * sysdeps/alpha/ots_sub.c: ... here.
11542 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11543 * sysdeps/alpha/sfp-machine.h: ... here.
11544
11545 2018-05-23 Florian Weimer <fweimer@redhat.com>
11546
11547 [BZ #19728]
11548 [BZ #19729]
11549 [BZ #22247]
11550 CVE-2016-6261
11551 CVE-2016-6263
11552 CVE-2017-14062
11553 Switch to extern IDNA implementation (libidn2).
11554 * libidn: Remove subdirectory.
11555 * LICENSES: Do not mention licensing conditions for the removed
11556 libidn code.
11557 * config.h.in (HAVE_LIBIDN): Remove.
11558 * include/dlfcn.h (__libc_dlopen): Update comment.
11559 * include/idna.h: Remove file.
11560 * inet/Makefile (routines): Add idna.
11561 (tests-static, tests-internal): Add tst-idna_name_classify.
11562 (LOCALES): Generate locales for tests.
11563 (tst-idna_name_classify.out): Depend on generated locales.
11564 * inet/idna_name_classify.c: New file.
11565 * inet/tst-idna_name_classify.c: Likewise.
11566 * inet/net-internal.h (__idna_to_dns_encoding)
11567 (__idna_from_dns_encoding): Declare.
11568 * inet/net-internal.h (enum idna_name_classification): Define.
11569 (__idna_name_classify): Declare.
11570 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11571 __idna_from_dns_encoding.
11572 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11573 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11574 name as a fallback in case of encoding errors.
11575 (getnameinfo): Use DEPRECATED_NI_IDN.
11576 * inet/idna.c: New file.
11577 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11578 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11579 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11580 (modules-names): Add tst-no-libidn2.
11581 (extra-test-objs): Add tst-no-libidn2.os.
11582 (LDFLAGS-tst-no-libidn2.so): Set soname.
11583 (LOCALES): Set, and generate locales.
11584 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11585 (tst-resolv-ai_idn-latin1): Likewise.
11586 (tst-resolv-ai_idn-nolibidn2): Likewise.
11587 (tst-resolv-ai_idn.out): Depend on locales.
11588 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11589 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11590 tst-no-libidn2.so.
11591 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11592 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11593 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11594 * resolv/tst-resolv-ai_idn.c: New file.
11595 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11596 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11597 * resolv/tst-no-libidn2.c: Likewise.
11598 * support/support_format_addrinfo.c (format_ai_flags): Do not
11599 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11600 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11601 (gaih_inet): Call __idna_to_dns_encoding and
11602 __idna_from_dns_encoding, and use the original (punycode) name if
11603 __idna_from_dns_encoding fails due to an encoding error.
11604 (getaddrinfo): Use DEPRECATED_AI_IDN.
11605 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11606 * sysdeps/unix/inet/configure: Remove file.
11607 * sysdeps/unix/inet/configure.ac: Likewise.
11608
11609 2018-05-23 Florian Weimer <fweimer@redhat.com>
11610
11611 Implement allocate_once.
11612 * include/allocate_once.h: New file.
11613 * misc/allocate_once.c: Likewise.
11614 * misc/tst-allocate_once.c: Likewise.
11615 * misc/Makefile (routines): Add allocate_once.
11616 (tests-internal): Add tst-allocate_once.
11617 (generated): Add tst-allocate_once.mtrace,
11618 tst-allocate_once-mem.out.
11619 (tests-special): Add tst-allocate_once-mem.out.
11620 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11621 (tst-allocate_once-mem.out): Call mtrace.
11622 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11623
11624 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11625
11626 [BZ #23196]
11627 * string/test-memcpy.c (do_test1): New function.
11628 (test_main): Call it.
11629
11630 2018-05-23 Andreas Schwab <schwab@suse.de>
11631
11632 [BZ #23196]
11633 CVE-2018-11237
11634 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11635 (L(preloop_large)): Save initial destination pointer in %r11 and
11636 use it instead of %rax after the loop.
11637 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11638
11639 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11640
11641 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11642 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11643 -I../soft-fp. Moved from ....
11644 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11645 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11646 * sysdeps/aarch64/e_sqrtl.c: ... here.
11647 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11648 * sysdeps/aarch64/sfp-machine.h: ... here.
11649
11650 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11651 -Wmaybe-uninitialized around access to fq[0].
11652 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11653 Likewise.
11654
11655 [BZ #18471]
11656 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11657 aliases for non-libc case of versioned symbols.
11658 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11659 (llseek): Define as compat symbol if
11660 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11661 with link warning.
11662 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11663 Make into a compat symbol, disabled for minimum symbol version
11664 GLIBC_2.28 and later.
11665 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11666
11667 2018-05-22 Florian Weimer <fweimer@redhat.com>
11668
11669 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11670 not add -mpreferred-stack-boundary=4.
11671 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11672 (stack-align-test-flags): Likewise.
11673 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11674 Likewise.
11675 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11676 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11677 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11678 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11679 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11680 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11681 (CFLAGS-tst-align2.c): Likewise.
11682
11683 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11684
11685 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11686 (index_arch_Prefer_FSRM): Likewise.
11687 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11688 Also check Prefer_FSRM.
11689 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11690 Also return OPTIMIZE (erms) for Prefer_FSRM.
11691
11692 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11693
11694 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11695 (index_cpu_FSRM): Likewise.
11696 (reg_FSRM): Likewise.
11697
11698 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11699
11700 * math/gen-tgmath-tests.py: Import sys.
11701 (Tests.__init__): Initialize macros_seen.
11702 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11703 if requested to do so for this macro.
11704 (Tests.add_all_tests): Take argument for macro for which to
11705 generate tests.
11706 (Tests.check_macro_list): New function.
11707 (main): Handle check-list argument and argument specifying macro
11708 for which to generate tests.
11709 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11710 [PYTHON] (tgmath3-macro-tests): Likewise.
11711 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11712 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11713 not test-tgmath3.c.
11714 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11715 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11716 to CFLAGS.
11717 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11718 [PYTHON] ($(foreach
11719 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11720 rule.
11721 [PYTHON] (tests-special): Add
11722 $(objpfx)test-tgmath3-macro-list.out.
11723 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11724
11725 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11726 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11727 later.
11728
11729 [BZ #22639]
11730 * time/tzset.c (SECSPERDAY): Cast to time_t.
11731 * time/tst-y2039.c: New file.
11732 * time/Makefile (tests): Add tst-y2039.
11733
11734 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11735
11736 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11737 (PREFETCH_ONE_SET): Remove duplicate line.
11738
11739 2018-05-17 Florian Weimer <fweimer@redhat.com>
11740
11741 * sysdeps/generic/math-type-macros-double.h: Include
11742 <math-nan-payload-double.h> after <libm-alias-double.h>.
11743 * sysdeps/generic/math-type-macros-float.h: Include
11744 <math-nan-payload-float.h> after <libm-alias-float.h>.
11745 * sysdeps/generic/math-type-macros-float128.h: Include
11746 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11747 * sysdeps/generic/math-type-macros-ldouble.h: Include
11748 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11749
11750 2018-05-17 Andreas Schwab <schwab@suse.de>
11751
11752 * resolv/res_send.c (__res_context_send): Don't set errno when
11753 returing error after malloc failure.
11754
11755 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11756
11757 * nptl/allocatestack.c (allocate_stack): Remove the
11758 !__ASSUME_PRIVATE_FUTEX paths.
11759 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11760 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11761 Likewise.
11762 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11763 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11764 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11765 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11766 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11767 !__ASSUME_PRIVATE_FUTEX path.
11768 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11769 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11770 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11771 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11772 !__ASSUME_PRIVATE_FUTEX macros.
11773 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11774 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11775 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11776 * sysdeps/unix/sysv/linux/kernel-features.h
11777 (__ASSUME_PRIVATE_FUTEX): Removed.
11778
11779 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11780
11781 * math/Makefile (libm-narrow-fns): Add div.
11782 (libm-test-funcs-narrow): Likewise.
11783 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11784 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11785 * math/gen-auto-libm-tests.c (test_functions): Add div.
11786 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11787 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11788 (NARROW_DIV_TRIVIAL): Likewise.
11789 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11790 macro.
11791 (__ddivl): Likewise.
11792 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11793 ddiv.
11794 (CFLAGS-nldbl-ddiv.c): New variable.
11795 (CFLAGS-nldbl-fdiv.c): Likewise.
11796 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11797 __nldbl_ddivl.
11798 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11799 prototype.
11800 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11801 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11802 * math/auto-libm-test-in: Add tests of div.
11803 * math/auto-libm-test-out-narrow-div: New generated file.
11804 * math/libm-test-narrow-div.inc: New file.
11805 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11806 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11807 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11808 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11809 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11810 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11811 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11812 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11813 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11814 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11815 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11816 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11817 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11818 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11819 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11820 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11821 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11822 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11823 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11824 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11848 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11849
11850 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11851
11852 [BZ #23178]
11853 * nscd/nscd-client.h (sendfileall): Remove prototype.
11854 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11855 (handle_request): Use writeall instead of sendfileall.
11856 * nscd/aicache.c (addhstaiX): Likewise.
11857 * nscd/grpcache.c (cache_addgr): Likewise.
11858 * nscd/hstcache.c (cache_addhst): Likewise.
11859 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11860 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11861 * nscd/pwdcache.c (cache_addpw): Likewise.
11862 * nscd/servicescache.c (cache_addserv): Likewise.
11863 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11864 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11865 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11866 Remove define.
11867
11868 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11869
11870 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11871 Include <string/strncat.c>.
11872 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11873 alias.
11874 (__GI___strncat): New hidden alias.
11875
11876 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11877
11878 * sysdeps/mips/mips32/libm-test-ulps: Update.
11879 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11880
11881 2018-05-16 Florian Weimer <fweimer@redhat.com>
11882
11883 * support/Makefile (libsupport-routines): Add support_quote_blob,
11884 support_test_compare_blob.
11885 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11886 * support/check.h (TEST_COMPARE_BLOB): Define.
11887 (support_test_compare_blob): Declare.
11888 * support/support.h (support_quote_blob): Declare.
11889 * support/support_quote_blob.c: New file.
11890 * support/support_test_compare_blob.c: Likewise.
11891 * support/tst-support_quote_blob.c: Likewise.
11892 * support/tst-test_compare_blob.c: Likewise.
11893
11894 2018-05-16 Florian Weimer <fweimer@redhat.com>
11895
11896 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11897 of <strtod_nan_double.h>.
11898 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11899 instead of SET_MANTISSA.
11900 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11901 of include <strtod_nan_float.h>.
11902 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11903 instead of <strtod_nan_ldouble.h>.
11904 * stdlib/strtod_nan_double.h: Move to ...
11905 * sysdeps/generic/math-nan-payload-double.h: ... here.
11906 (FLOAT): Remove definition.
11907 (SET_MANTISSA): Rename to ...
11908 (SET_NAN_PAYLOAD): ... this.
11909 * stdlib/strtod_nan_float.h: Move to ...
11910 * sysdeps/generic/math-nan-payload-float.h: ... here.
11911 (FLOAT): Remove definition.
11912 (SET_MANTISSA): Rename to ...
11913 (SET_NAN_PAYLOAD): ... this.
11914 * sysdeps/generic/math-type-macros-double.h: Include
11915 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11916 instead of <math-svid-compat.h>.
11917 * sysdeps/generic/math-type-macros-float.h: Include
11918 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11919 instead of <math-svid-compat.h>.
11920 * sysdeps/generic/math-type-macros-float128.h: Include
11921 <math-nan-payload-float128.h>.
11922 * sysdeps/generic/math-type-macros-ldouble.h: Include
11923 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11924 instead of <math-svid-compat.h>.
11925 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11926 check for definition.
11927 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11928 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11929 Include <ieee754_float128.h>.
11930 (FLOAT): Remove definition.
11931 (SET_MANTISSA): Rename to ...
11932 (SET_NAN_PAYLOAD): ... this.
11933 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11934 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11935 Do not include <float128_private.h>.
11936 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11937 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11938 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11939 (FLOAT): Remove definition.
11940 (SET_MANTISSA): Rename to ...
11941 (SET_NAN_PAYLOAD): ... this.
11942 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11943 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11944 (FLOAT): Remove definition.
11945 (SET_MANTISSA): Rename to ...
11946 (SET_NAN_PAYLOAD): ... this.
11947 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11948 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11949 (FLOAT): Remove definition.
11950 (SET_MANTISSA): Rename to ...
11951 (SET_NAN_PAYLOAD): ... this.
11952 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11953 of "../stdlib/strtod_nan_double.h".
11954 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11955 of "../stdlib/strtod_nan_float.h".
11956 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11957 instead of "../stdlib/strtod_nan_ldouble.h".
11958 * manual/arith.texi (Parsing of Floats): Adjust comment.
11959
11960 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11961
11962 * math/Makefile (libm-narrow-fns): Add mul.
11963 (libm-test-funcs-narrow): Likewise.
11964 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11965 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11966 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11967 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11968 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11969 (NARROW_MUL_TRIVIAL): Likewise.
11970 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11971 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11972 macro.
11973 (__dmull): Likewise.
11974 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11975 dmul.
11976 (CFLAGS-nldbl-dmul.c): New variable.
11977 (CFLAGS-nldbl-fmul.c): Likewise.
11978 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11979 __nldbl_dmull.
11980 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11981 prototype.
11982 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11983 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11984 * math/auto-libm-test-in: Add tests of mul.
11985 * math/auto-libm-test-out-narrow-mul: New generated file.
11986 * math/libm-test-narrow-mul.inc: New file.
11987 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11988 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11989 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11990 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11991 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11992 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11993 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11994 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11995 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11996 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11997 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11998 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11999 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
12000 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
12001 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
12002 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
12003 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
12004 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
12005 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12006 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12007 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12008 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12009 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12010 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12011 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12012 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12013 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12014 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12015 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12016 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12017 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12018 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12019 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12020 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
12021 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12022 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12023 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12024 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12025 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12026 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12027 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12028 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12029 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12030 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12031
12032 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12033
12034 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
12035 with *%eax in call.
12036
12037 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12038
12039 * sysdeps/i386/ldsodefs.h: Removed.
12040 * sysdeps/x86_64/ldsodefs.h: Moved to ...
12041 * sysdeps/x86/ldsodefs.h: This.
12042 (La_i86_regs): New.
12043 (La_i86_retval): Likewise.
12044 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
12045 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
12046
12047 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
12048
12049 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
12050 unnecessary testl.
12051
12052 2018-05-13 Alan Modra <amodra@gmail.com>
12053
12054 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
12055 R_PARISC_TLS_DTPOFF32 reloc addend.
12056
12057 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12058
12059 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
12060 * math/math.h: Restrict the prototype definition for the functions
12061 issignaling(_Float128) and iszero(_Float128); and template
12062 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
12063 __HAVE_FLOAT128_UNLIKE_LDBL.
12064 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
12065 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
12066 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
12067 __f128() constants; define the type _Float128 as long double;
12068 and reuse long double in __CFLOAT128.
12069
12070 2018-05-11 Joseph Myers <joseph@codesourcery.com>
12071
12072 * sysdeps/generic/math_private.h: Do not include
12073 <math-barriers.h>.
12074 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12075 <math_private.h>.
12076 * math/fromfp.h: Include <math-barriers.h>.
12077 * math/math-narrow.h: Likewise.
12078 * math/s_nextafter.c: Likewise.
12079 * math/s_nexttowardf.c: Likewise.
12080 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12081 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12082 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12083 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12084 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12085 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12086 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12087 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12088 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12089 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12090 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12091 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12092 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12093 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12094 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12095 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12096 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12097 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12098 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12099 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12100 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12101 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12102 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12103 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12104 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12105 * sysdeps/ieee754/k_standardl.c: Likewise.
12106 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12107 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12108 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12109 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12110 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12111 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12112 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12113 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12114 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12115 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12116 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12117 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12118 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12119 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12120 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12121 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12122 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12123 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12124 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12125 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12126 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12127 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12128
12129 2018-05-11 Florian Weimer <fweimer@redhat.com>
12130
12131 Use 64-bit epoch values in the time zone file parser.
12132 * include/time.h (internal_time_t): Define.
12133 (__tzfile_compute): Use it.
12134 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12135 member.
12136 (transitions): Switch to internal_time_t.
12137 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12138 types.
12139 (__tzfile_compute): Use internal_time_t for timer argument. Check
12140 for truncation before calling __offtime.
12141
12142 2018-05-11 Florian Weimer <fweimer@redhat.com>
12143
12144 [BZ #23166]
12145 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12146 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12147 Likewise.
12148 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12149 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12150 export without --enable-obsolete-rpc.
12151 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12152 symbol. This should not have been exported, ever.
12153
12154 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12155
12156 [BZ #23152]
12157 * localedata/locales/gd_GB (abmon): Fix typo in May:
12158 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12159
12160 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12161
12162 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12163 Use multiple registers to copy data in loop tail.
12164
12165 * sysdeps/aarch64/multiarch/memmove_falkor.S
12166 (__memmove_falkor): Use multiple registers to move data in
12167 loop tail.
12168
12169 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12170
12171 * math/math-underflow.h: New file.
12172 * sysdeps/generic/math_private.h: Do not include <float.h>.
12173 (fabs_tg): Remove macro. Moved to math-underflow.h.
12174 (min_of_type_f): Likewise.
12175 (min_of_type_): Likewise.
12176 (min_of_type_l): Likewise.
12177 (min_of_type_f128): Likewise.
12178 (min_of_type): Likewise.
12179 (math_check_force_underflow): Likewise.
12180 (math_check_force_underflow_nonneg): Likewise.
12181 (math_check_force_underflow_complex): Likewise.
12182 * math/e_exp2_template.c: Include <math-underflow.h>.
12183 * math/k_casinh_template.c: Likewise.
12184 * math/s_catan_template.c: Likewise.
12185 * math/s_catanh_template.c: Likewise.
12186 * math/s_ccosh_template.c: Likewise.
12187 * math/s_cexp_template.c: Likewise.
12188 * math/s_clog10_template.c: Likewise.
12189 * math/s_clog_template.c: Likewise.
12190 * math/s_csin_template.c: Likewise.
12191 * math/s_csinh_template.c: Likewise.
12192 * math/s_csqrt_template.c: Likewise.
12193 * math/s_ctan_template.c: Likewise.
12194 * math/s_ctanh_template.c: Likewise.
12195 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12196 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12197 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12198 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12199 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12200 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12201 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12202 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12203 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12204 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12205 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12206 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12207 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12208 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12209 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12210 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12211 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12212 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12213 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12214 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12215 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12216 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12217 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12218 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12219 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12220 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12221 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12222 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12223 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12224 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12225 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12226 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12227 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12228 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12229 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12230 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12231 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12232 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12233 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12234 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12235 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12236 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12237 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12238 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12239 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12240 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12241 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12242 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12243 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12244 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12245 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12246 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12247 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12248 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12249 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12250 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12251 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12252 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12253 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12254 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12255 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12256 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12257 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12258 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12259 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12260 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12261 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12262 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12263 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12264 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12265 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12266 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12267 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12268 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12269 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12270 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12271 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12272 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12273 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12274 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12275 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12276 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12277 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12278 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12279
12280 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12281
12282 * sysdeps/generic/math-barriers.h: New file.
12283 * sysdeps/generic/math_private.h [!math_opt_barrier]
12284 (math_opt_barrier): Move to math-barriers.h.
12285 [!math_opt_barrier] (math_force_eval): Likewise.
12286 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12287 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12288 math-barriers.h.
12289 (math_force_eval): Likewise.
12290 * sysdeps/alpha/fpu/math-barriers.h: New file.
12291 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12292 math-barriers.h.
12293 (math_force_eval): Likewise.
12294 * sysdeps/x86/fpu/math-barriers.h: New file.
12295 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12296 math-barriers.h.
12297 (math_force_eval): Likewise.
12298 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12299 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12300 multiple-include guard for rename.
12301 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12302 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12303 math-barriers.h.
12304 (math_force_eval): Likewise.
12305
12306 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12307
12308 [BZ #22786]
12309 CVE-2018-11236
12310 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12311 computation.
12312 * stdlib/Makefile (test-bz22786): New test.
12313 * stdlib/test-bz22786.c: New test.
12314
12315 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12316
12317 * include/math-narrow-eval.h: New file. Contents moved from ....
12318 * sysdeps/generic/math_private.h: ... here.
12319 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12320 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12321 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12322 * stdlib/strtod_l.c: Likewise.
12323 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12324 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12325 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12326 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12327 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12328 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12329 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12330 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12331 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12332 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12333 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12334 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12335 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12336 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12337 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12338 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12339 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12340 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12341 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12342 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12343 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12344 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12345 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12346 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12347 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12348 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12349 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12350 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12351 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12352
12353 2018-05-08 Andreas Schwab <schwab@suse.de>
12354
12355 * sysdeps/nptl/internaltypes.h: Fix comment.
12356
12357 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12358
12359 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12360 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12361 hidden.
12362
12363 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12364
12365 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12366 of I into loop header.
12367 * benchtests/bench-memmove-walk.c
12368 (test_main): Likewise.
12369
12370 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12371
12372 Revert:
12373 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12374 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12375
12376 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12377
12378 [BZ #20419]
12379 * elf/dl-load.c (open_verify): Fix stack overflow.
12380 * elf/Makefile (tst-big-note): New test.
12381 * elf/tst-big-note-lib.S: New.
12382 * elf/tst-big-note.c: New.
12383
12384 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12385
12386 * scripts/abilist.awk: Ignore absolute symbols.
12387 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12388 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12389 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12390 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12391 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12392 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12393 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12394 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12395 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12396 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12397 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12398 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12432 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12473 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12479 Likewise.
12480 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12493 Likewise.
12494 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12517 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12521 Likewise.
12522 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12542 Likewise.
12543 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12575 Likewise.
12576 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12581 Likewise.
12582 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12583 Likewise.
12584 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12586 Likewise.
12587 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12589 Likewise.
12590 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12591 Likewise.
12592 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12595 Likewise.
12596 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12597 Likewise.
12598 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12599 Likewise.
12600 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12601 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12602 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12604 Likewise.
12605 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12609 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12611 Likewise.
12612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12613 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12614 Likewise.
12615 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12616 Likewise.
12617 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12618 Likewise.
12619 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12620 Likewise.
12621 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12624 Likewise.
12625 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12626 Likewise.
12627 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12628 Likewise.
12629 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12630 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12632 Likewise.
12633 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12637 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12647 Likewise.
12648 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12651 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12660 Likewise.
12661 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12665 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12666 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12667 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12668 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12669 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12670 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12671 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12672 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12673 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12674 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12675 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12676 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12677 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12678 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12679 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12680 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12681 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12682 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12683 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12684 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12685 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12686 Likewise.
12687 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12688 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12689 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12690 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12691 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12692 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12693 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12694 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12695 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12696 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12697 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12698 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12699 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12700 Likewise.
12701 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12702 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12703 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12704 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12705 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12706 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12707 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12708 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12709 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12710 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12711 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12712 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12713 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12714 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12715 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12716 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12717 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12718 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12719 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12720 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12721 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12722 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12723 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12724 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12725 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12726 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12727 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12728 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12729 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12730 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12731 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12732 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12733 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12734 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12735 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12736 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12737 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12738 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12739
12740 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12741
12742 [BZ #23137]
12743 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12744 Use atomic_load_acquire to load __tid.
12745
12746 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12747
12748 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12749 Restore the pointer into %rdx, after syscall and use %rdx,
12750 instead of %rsi, to restore context.
12751
12752 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12753
12754 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12755 Pop the pointer into %rdx after syscall and use %rdx, instead
12756 of %rsi, to restore context.
12757
12758 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12759
12760 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12761 handlers after setjmp.
12762 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12763 defined.
12764 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12765 <libc-pointer-arith.h>.
12766 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12767 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12768 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12769 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12770 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12771 * sysdeps/x86/__longjmp_cancel.S: New file.
12772 * sysdeps/x86/longjmp.c: Likewise.
12773 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12774
12775 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12776
12777 * NEWS: Add ustat.h deprecation entry.
12778 * bits/ustat.h: Remove file.
12779 * misc/sys/ustat.h: Likewise.
12780 * misc/ustat.h: Likewise.
12781 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12782 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12783 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12784 compatibility mode.
12785 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12786 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12787 generic Linux implementation.
12788
12789 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12790
12791 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12792 * math/w_expl_compat.c: Likewise.
12793 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12794
12795 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12796
12797 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12798
12799 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12800
12801 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12802 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12803 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12804 Remove.
12805 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12806 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12807 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12808 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12809 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12810 and SYSCALL_LL64.
12811
12812 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12813
12814 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12815
12816 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12817 * math/w_asin_template.c: Likewise.
12818 * math/w_atanh_template.c: Likewise.
12819
12820 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12821
12822 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12823 to powerpc/powerpc64/be for big-endian.
12824 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12825 little-endian.
12826
12827 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12828 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12829 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12830 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12831 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12832 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12833 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12834 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12835 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12836 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12837 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12838 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12839 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12840 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12841 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12842 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12843 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12844 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12845 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12846 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12847 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12848 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12849 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12850 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12851 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12852 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12853 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12854 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12855 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12856 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12857 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12858 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12859
12860 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12861 adjusted to imply powerpc64 and older processors on powerpc64/be.
12862 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12863 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12864 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12865 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12866 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12867 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12868 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12869 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12870 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12871 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12872 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12873 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12874 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12875 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12876 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12877 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12878 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12879 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12880 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12881 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12882 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12883 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12884 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12885 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12886 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12887 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12888 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12889 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12890 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12891 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12892 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12893
12894 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12895 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12896 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12897 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12898
12899 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12900 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12901 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12902 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12903
12904 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12905 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12906 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12907 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12908 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12909 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12910 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12911 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12912 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12913 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12914 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12915
12916 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12917 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12918 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12919 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12920 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12921 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12922 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12923 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12924 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12925 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12926 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12927
12928 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12929 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12930 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12931 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12932 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12933 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12934 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12935 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12936 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12937 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12938 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12939 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12940
12941 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12942 and adjusted to imply olders processors.
12943 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12944 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12945 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12946 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12947 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12948 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12949 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12950 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12951 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12952 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12953 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12954
12955 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12956 powerpc64/le.
12957 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12958 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12959
12960 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12961 powerpc64le.
12962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12963 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12964
12965 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12966 powerpc64/be.
12967 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12969 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12970
12971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12972 powerpc64 and adjusted.
12973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12974 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12976 Likewise.
12977
12978 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12979
12980 * sysdeps/tile: Remove.
12981 * sysdeps/unix/sysv/linux/tile: Likewise.
12982 * README (tilegx-*-linux-gnu): Remove from list of supported
12983 configurations.
12984 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12985 contribution of support for generic Linux kernel syscall
12986 interface.
12987 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12988 tilegx configurations.
12989 (Config.install_linux_headers): Do not handle tile.
12990 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12991 in comment.
12992 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12993 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12994 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12995 conditional undefine and redefine.
12996 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12997 in comment.
12998 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12999 conditional undefine and redefine.
13000
13001 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
13002
13003 * signal/tst-sigaction.c: New file to test BZ #23069.
13004 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
13005
13006 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13007
13008 [BZ #22766]
13009 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
13010 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
13011 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
13012 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
13013
13014 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13015
13016 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
13017 _DIRENT_MATCHES_DIRENT64 is not defined.
13018 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
13019 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
13020 is defined.
13021 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
13022 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
13023
13024 2018-04-25 Joseph Myers <joseph@codesourcery.com>
13025
13026 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
13027 version to GCC 8 branch.
13028
13029 2018-04-24 Joseph Myers <joseph@codesourcery.com>
13030
13031 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
13032 (check_no_hidden): Use type of original function when declaring
13033 alias.
13034
13035 * sysdeps/unix/sysv/linux/sys/ptrace.h
13036 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
13037 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
13038 (struct __ptrace_seccomp_metadata): New type.
13039 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
13040 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13041 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
13042 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13043 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
13044 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13045 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
13046 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13047 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
13048 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13049 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
13050 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13051 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
13052 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13053 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
13054 (PTRACE_SECCOMP_GET_METADATA): Likewise.
13055
13056 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13057
13058 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
13059 defined.
13060 * dirent/versionsort.c (versionsort): Likewise.
13061 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
13062 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
13063 * dirent/versionsort64.c (versionsort64): Likewise.
13064 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
13065 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
13066 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
13067 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
13068 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
13069 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
13070 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
13071 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
13072 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
13073 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13074 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13075 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13076 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13077 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13078
13079 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13080
13081 * elf/elf.h (NT_PPC_PKEY): New macro.
13082
13083 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13084
13085 [BZ #23094]
13086 * localedata/locales/hr_HR: fix thousands_sep and
13087 mon_thousands_sep
13088
13089 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13090
13091 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13092 (XTABS): Define to TAB3.
13093
13094 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13095
13096 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13097
13098 * dirent/scandir-tail-common.c: New file.
13099 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13100 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13101 * dirent/scandir.c: Use scandir-tail-common.c.
13102 * dirent/scandirat.c: Likewise.
13103 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13104 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13105 if _DIRENT_MATCHES_DIRENT64 is defined.
13106 * dirent/scandirat64.c (scandirat64): Likewise.
13107 * include/dirent.h (__scandir_tail): Only define iff
13108 _DIRENT_MATCHES_DIRENT64 is not defined.
13109 (__scandir64_tail): Define regardless.
13110 (__scandirat, scandirat64): Remove libc_hidden_proto.
13111 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13112 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13113 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13114 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13115 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13116 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13117 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13118
13119 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13120
13121 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13122 New macro.
13123 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13124 Increase to 24.
13125 (_dl_aarch64_cap_flags): Add asimdfhm.
13126
13127 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13128
13129 * sysdeps/nios2/libm-test-ulps: Update.
13130
13131 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13132
13133 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13134 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13135
13136 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13137 requirements.
13138 (_DIRENT_MATCHES_DIRENT64): Undef
13139 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13140 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13141 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13142 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13143 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13144 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13145 use getdents64 syscalls as base.
13146 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13147 symbol if required.
13148 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13149 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13150 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13151 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13152 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13153 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13154 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13155 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13156 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13157 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13158 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13159
13160 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13161
13162 * scripts/test_printers_common.py (init_test): Disable lock elision.
13163
13164 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13165
13166 * math/test-tgmath.c (count_double, count_float,
13167 count_ldouble, count_cdouble, count_cfloat,
13168 count_cldouble): Use volatile int.
13169
13170 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13171
13172 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13173 (conformtest-xfail-conds): Add i386-gnu.
13174 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13175 i386-gnu.
13176 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13177 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13178 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13179 msqid_ds.msg_lrpid): Likewise.
13180 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13181 Likewise.
13182 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13183 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13184 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13185 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13186 unsigned int.
13187 (struct statvfs64): Likewise.
13188 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13189 Likewise.
13190 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13191 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13192 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13193 instead of wait_queue.
13194 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13195 instead of vm_area_struct.
13196 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13197 struct sched_param definition to it.
13198 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13199 * bits/types/struct_sched_param.h: New file.
13200 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13201 <bits/types/struct_sched_param.h> instead of <sched.h>.
13202 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13203 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13204 generic version but include <bits/pthreadtypes.h> to make struct
13205 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13206 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13207 non-compliant.
13208 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13209 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13210 [__USE_XOPEN] (OFDEL): New macro.
13211 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13212 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13213 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13214 prototypes.
13215 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13216 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13217 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13218 non-compliant.
13219 * sysdeps/i386/sys/ucontext.h: Likewise.
13220 * sysdeps/m68k/sys/ucontext.h: Likewise.
13221 * sysdeps/mips/sys/ucontext.h: Likewise.
13222 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13223 * sysdeps/mach/hurd/i386/Makefile
13224 (test-xfail-POSIX/fcntl.h/conform): Add.
13225 (test-xfail-POSIX/signal.h/conform): Add.
13226 (test-xfail-POSIX/semaphore.h/conform): Add.
13227 (test-xfail-POSIX/regex.h/conform): Add.
13228 (test-xfail-POSIX/aio.h/conform): Add.
13229 (test-xfail-POSIX/mqueue.h/conform): Add.
13230 (test-xfail-POSIX/sys/types.h/conform): Add.
13231 (test-xfail-UNIX98/fcntl.h/conform): Add.
13232 (test-xfail-UNIX98/netdb.h/conform): Add.
13233 (test-xfail-UNIX98/signal.h/conform): Add.
13234 (test-xfail-UNIX98/semaphore.h/conform): Add.
13235 (test-xfail-UNIX98/regex.h/conform): Add.
13236 (test-xfail-UNIX98/aio.h/conform): Add.
13237 (test-xfail-UNIX98/ftw.h/conform): Add.
13238 (test-xfail-UNIX98/mqueue.h/conform): Add.
13239 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13240 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13241 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13242 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13243 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13244 (test-xfail-UNIX98/sys/types.h/conform): Add.
13245 (test-xfail-UNIX98/stdlib.h/conform): Add.
13246 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13247 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13248 (test-xfail-POSIX2008/netdb.h/conform): Add.
13249 (test-xfail-POSIX2008/signal.h/conform): Add.
13250 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13251 (test-xfail-POSIX2008/regex.h/conform): Add.
13252 (test-xfail-POSIX2008/aio.h/conform): Add.
13253 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13254 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13255 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13256 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13257 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13258 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13259 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13260 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13261 (test-xfail-XOPEN2K/signal.h/conform): Add.
13262 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13263 (test-xfail-XOPEN2K/regex.h/conform): Add.
13264 (test-xfail-XOPEN2K/aio.h/conform): Add.
13265 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13266 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13267 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13268 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13269 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13270 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13271 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13272 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13273 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13274 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13275 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13276 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13277 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13278 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13279 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13280 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13281 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13282 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13283 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13284 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13285 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13286 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13287 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13288 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13289 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13290 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13291 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13292 i386-gnu.
13293 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13294 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13295
13296 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13297
13298 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13299 --enable-obsolete for powerpc-linux-gnuspe.
13300
13301 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13302
13303 * conform/data/sys/un.h-data: Allow sun_ prefix.
13304 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13305 prototypes.
13306 * sysdeps/mach/include/mach.h: Likewise.
13307 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13308 * sysdeps/mach/include/mach_error.h: Likewise.
13309
13310 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13311
13312 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13313 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13314 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13315 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13316
13317 2018-04-16 Andreas Schwab <schwab@suse.de>
13318
13319 [BZ #19527]
13320 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13321
13322 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13323
13324 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13325 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13326
13327 2018-04-12 DJ Delorie <dj@redhat.com>
13328
13329 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13330 version to 4.16.
13331
13332 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13333
13334 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13335 (struct kernel_sigaction): Use the same definition on 31bit as is used
13336 on 64bit.
13337
13338 2018-04-09 Florian Weimer <fweimer@redhat.com>
13339
13340 [BZ #23037]
13341 * resolv/res_send.c (send_dg): Use designated initializers instead
13342 of assignment to zero-initialize other fields of struct mmsghdr.
13343
13344 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13345
13346 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13347 __READDIR_ALIAS): Undefine after usage.
13348 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13349 __READDIR_R_ALIAS): Likewise.
13350 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13351 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13352 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13353 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13354 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13355 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13356 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13357 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13358 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13359 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13360 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13361 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13362 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13363 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13364 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13365 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13366 * sysdeps/unix/sysv/linux/readdir.c: New file.
13367 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13368 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13369 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13370
13371 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13372
13373 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13374
13375 * manual/charset.texi (Converting a Character): Fix typo.
13376
13377 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13378
13379 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13380
13381 * sysdeps/arm/libm-test-ulps: Update.
13382
13383 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13384 as base implementation.
13385 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13386 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13387 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13388 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13389 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13390 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13391 remove unrequired definitions and update comments.
13392 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13393 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13394 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13395 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13396 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13397 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13398 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13399 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13400 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13401 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13402 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13403 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13404 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13405 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13406 and RESET_SA_RESTORER hooks.
13407
13408 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13409
13410 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13411
13412 2018-04-05 Florian Weimer <fweimer@redhat.com>
13413
13414 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13415 integer overflow, memory leak on error, and indeterminate errno
13416 value. Add a null wide character to terminate the result string.
13417 * manual/charset.texi (Converting a Character): Mention embedded
13418 null bytes in the mbrtowc input string. Explain what happens in
13419 the -2 result case. Do not claim that mbrtowc is simple or
13420 obvious to use. Adjust the description of the code example. Use
13421 @code, not @var, for concrete variables.
13422
13423 2018-04-05 Florian Weimer <fweimer@redhat.com>
13424
13425 * manual/examples/mbstouwcs.c: New file.
13426 * manual/charset.texi (Converting a Character): Include it.
13427
13428 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13429
13430 * include/dirent.h (dirfd): Add hidden proto.
13431 * dirent/dirfd.c (dirfd): Add hidden def.
13432 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13433 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13434
13435 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13436
13437 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13438 sin, cos and sincos to 1 ULP.
13439
13440 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13441
13442 [BZ #19818]
13443 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13444 symbols.
13445 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13446 * elf/tst-absolute-sym.c: New file.
13447 * elf/tst-absolute-sym-lib.c: New file.
13448 * elf/tst-absolute-sym-lib.lds: New file.
13449 * elf/Makefile (tests): Add `tst-absolute-sym'.
13450 (modules-names): Add `tst-absolute-sym-lib'.
13451 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13452 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13453 ($(objpfx)tst-absolute-sym): New dependency.
13454
13455 [BZ #19818]
13456 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13457 parameter.
13458 (SYMBOL_ADDRESS): New macro.
13459 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13460 SYMBOL_ADDRESS for symbol address calculation.
13461 * elf/dl-runtime.c (_dl_fixup): Likewise.
13462 (_dl_profile_fixup): Likewise.
13463 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13464 * elf/rtld.c (dl_main): Likewise.
13465 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13466 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13467 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13468 (elf_machine_rela): Likewise.
13469 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13470 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13471 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13472 (elf_machine_rela): Likewise.
13473 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13474 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13475 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13476 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13477 Likewise.
13478 (elf_machine_reloc): Likewise.
13479 (elf_machine_got_rel): Likewise.
13480 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13481 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13482 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13483 Likewise.
13484 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13485 Likewise.
13486 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13487 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13488 Likewise.
13489 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13490 Likewise.
13491 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13492 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13493 Likewise.
13494 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13495 Likewise.
13496 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13497 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13498
13499 2018-04-04 Zack Weinberg <zackw@panix.com>
13500
13501 * sysdeps/generic/internal-signals.h: Include signal.h,
13502 sigsetops.h, and stdbool.h.
13503 (__libc_signal_block_all): Actually block all signals.
13504 (__libc_signal_block_app): Likewise.
13505 (__libc_signal_restore_set): Actually restore the signal mask.
13506
13507 2018-04-04 Florian Weimer <fweimer@redhat.com>
13508
13509 inet: Actually build and run tst-deadline.
13510 * inet/Makefile (tests-internal): Add tst-deadline and do not
13511 overwrite the variable.
13512 (tests-static-internal): Remove variable.
13513
13514 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13515
13516 [BZ #22947]
13517 * bits/uio-ext.h (RWF_APPEND): New.
13518 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13519 * manual/llio.texi: Document RWF_APPEND.
13520 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13521 (RWF_SUPPORTED): Add RWF_APPEND.
13522
13523 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13524
13525 [BZ #22391]
13526 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13527 check for internal nptl signals.
13528 * nptl/sigaction.c (__sigaction): Likewise.
13529 * signal/sigaddset.c (sigaddset): Likewise.
13530 * signal/sigdelset.c (sigdelset): Likewise.
13531 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13532 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13533 value.
13534 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13535 to filter out internal nptl signals.
13536 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13537 also check realtime signals using standard macros.
13538 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13539 __is_internal_signal, __libc_signal_block_all,
13540 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13541 * sysdeps/nptl/sigfillset.c: Remove file.
13542 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13543 Change return to bool.
13544 (__clear_internal_signals): Remove SIGTIMER clean since it is
13545 equal to SIGCANEL on Linux.
13546 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13547 signal set was constructed using standard functions.
13548
13549 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13550
13551 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13552 ifname is too long.
13553 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13554 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13555 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13556 hidden def.
13557 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13558 * signal/sigaddset.c: Include <sigsetopts.h>.
13559 * signal/sigdelset.c: Likewise.
13560
13561 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13562
13563 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13564 (__cos): Likewise.
13565 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13566 logic as sin and cos.
13567
13568 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13569
13570 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13571 inputs. Return correct sign.
13572 (do_sincos): Remove small input check before do_sin, let do_sin set
13573 the sign.
13574 (__sin): Likewise.
13575 (__cos): Likewise.
13576
13577 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13578
13579 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13580 (do_cos_slow): Likewise.
13581 (do_sin_slow): Likewise.
13582 (reduce_and_compute): Likewise.
13583 (slow): Likewise.
13584 (slow1): Likewise.
13585 (slow2): Likewise.
13586 (sloww): Likewise.
13587 (sloww1): Likewise.
13588 (sloww2): Likewise.
13589 (bslow): Likewise.
13590 (bslow1): Likewise.
13591 (bslow2): Likewise.
13592 (cslow2): Likewise.
13593
13594 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13595
13596 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13597 (do_cos): Remove corp parameter and calculations.
13598 (do_sin): Likewise.
13599 (do_sincos): Remove cor variable.
13600 (__sin): Use do_sincos for huge inputs.
13601 (__cos): Likewise.
13602 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13603 (reduce_and_compute_sincos): Remove unused function.
13604
13605 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13606
13607 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13608 reduce_sincos, improve accuracy to 136 bits.
13609 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13610 (__sin): Use improved reduction and simplified do_sincos calculation.
13611 (__cos): Likewise.
13612 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13613
13614 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13615
13616 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13617 (do_sincos_2): Likewise.
13618 (__sin): Remove middle range reduction case.
13619 (__cos): Likewise.
13620 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13621 reduction case.
13622
13623 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13624
13625 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13626 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13627 inputs.
13628 (__cos): Likewise.
13629 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13630
13631 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13632
13633 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13634 version to 4.16
13635
13636 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13637
13638 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13639 Remove definitions.
13640 (opendir_oflags): Use O_DIRECTORY regardless.
13641 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13642 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13643
13644 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13645
13646 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13647 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13648 macros.
13649 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13650 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13651 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13652 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13653 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13654 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13655
13656 * htl/Makefile: Bump licence to LGPL 2.1+.
13657 * htl/alloca_cutoff.c: Likewise.
13658 * htl/cthreads-compat.c: Likewise.
13659 * htl/lockfile.c: Likewise.
13660 * htl/pt-alloc.c: Likewise.
13661 * htl/pt-cancel.c: Likewise.
13662 * htl/pt-cleanup.c: Likewise.
13663 * htl/pt-create.c: Likewise.
13664 * htl/pt-dealloc.c: Likewise.
13665 * htl/pt-detach.c: Likewise.
13666 * htl/pt-exit.c: Likewise.
13667 * htl/pt-getattr.c: Likewise.
13668 * htl/pt-initialize.c: Likewise.
13669 * htl/pt-internal.h: Likewise.
13670 * htl/pt-join.c: Likewise.
13671 * htl/pt-self.c: Likewise.
13672 * htl/pt-setcancelstate.c: Likewise.
13673 * htl/pt-setcanceltype.c: Likewise.
13674 * htl/pt-sigmask.c: Likewise.
13675 * htl/pt-spin-inlines.c: Likewise.
13676 * htl/pt-testcancel.c: Likewise.
13677 * htl/pt-yield.c: Likewise.
13678 * htl/tests/test-1.c: Likewise.
13679 * htl/tests/test-10.c: Likewise.
13680 * htl/tests/test-11.c: Likewise.
13681 * htl/tests/test-12.c: Likewise.
13682 * htl/tests/test-13.c: Likewise.
13683 * htl/tests/test-14.c: Likewise.
13684 * htl/tests/test-15.c: Likewise.
13685 * htl/tests/test-16.c: Likewise.
13686 * htl/tests/test-17.c: Likewise.
13687 * htl/tests/test-2.c: Likewise.
13688 * htl/tests/test-3.c: Likewise.
13689 * htl/tests/test-4.c: Likewise.
13690 * htl/tests/test-5.c: Likewise.
13691 * htl/tests/test-6.c: Likewise.
13692 * htl/tests/test-7.c: Likewise.
13693 * htl/tests/test-8.c: Likewise.
13694 * htl/tests/test-9.c: Likewise.
13695 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13696 * sysdeps/htl/bits/cancelation.h: Likewise.
13697 * sysdeps/htl/bits/pthread-np.h: Likewise.
13698 * sysdeps/htl/bits/pthread.h: Likewise.
13699 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13700 * sysdeps/htl/bits/semaphore.h: Likewise.
13701 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13702 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13703 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13704 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13705 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13706 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13707 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13708 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13709 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13710 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13711 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13712 * sysdeps/htl/old_pt-atfork.c: Likewise.
13713 * sysdeps/htl/pt-atfork.c: Likewise.
13714 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13715 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13716 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13717 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13718 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13719 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13720 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13721 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13722 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13723 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13724 * sysdeps/htl/pt-attr-init.c: Likewise.
13725 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13726 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13727 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13728 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13729 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13730 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13731 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13732 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13733 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13734 * sysdeps/htl/pt-attr.c: Likewise.
13735 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13736 * sysdeps/htl/pt-barrier-init.c: Likewise.
13737 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13738 * sysdeps/htl/pt-barrier.c: Likewise.
13739 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13740 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13741 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13742 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13743 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13744 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13745 * sysdeps/htl/pt-cond-init.c: Likewise.
13746 * sysdeps/htl/pt-cond-signal.c: Likewise.
13747 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13748 * sysdeps/htl/pt-cond-wait.c: Likewise.
13749 * sysdeps/htl/pt-cond.c: Likewise.
13750 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13751 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13752 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13753 * sysdeps/htl/pt-condattr-init.c: Likewise.
13754 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13755 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13756 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13757 * sysdeps/htl/pt-equal.c: Likewise.
13758 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13759 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13760 * sysdeps/htl/pt-getschedparam.c: Likewise.
13761 * sysdeps/htl/pt-getspecific.c: Likewise.
13762 * sysdeps/htl/pt-init-specific.c: Likewise.
13763 * sysdeps/htl/pt-key-create.c: Likewise.
13764 * sysdeps/htl/pt-key-delete.c: Likewise.
13765 * sysdeps/htl/pt-key.h: Likewise.
13766 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13767 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13768 * sysdeps/htl/pt-mutex-init.c: Likewise.
13769 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13770 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13771 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13772 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13773 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13774 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13775 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13776 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13777 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13778 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13779 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13780 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13781 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13782 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13783 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13784 * sysdeps/htl/pt-mutexattr.c: Likewise.
13785 * sysdeps/htl/pt-once.c: Likewise.
13786 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13787 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13788 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13789 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13790 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13791 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13792 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13793 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13794 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13795 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13796 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13797 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13798 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13799 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13800 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13801 * sysdeps/htl/pt-setschedparam.c: Likewise.
13802 * sysdeps/htl/pt-setschedprio.c: Likewise.
13803 * sysdeps/htl/pt-setspecific.c: Likewise.
13804 * sysdeps/htl/pt-spin.c: Likewise.
13805 * sysdeps/htl/pt-startup.c: Likewise.
13806 * sysdeps/htl/pthread.h: Likewise.
13807 * sysdeps/htl/sem-close.c: Likewise.
13808 * sysdeps/htl/sem-destroy.c: Likewise.
13809 * sysdeps/htl/sem-getvalue.c: Likewise.
13810 * sysdeps/htl/sem-init.c: Likewise.
13811 * sysdeps/htl/sem-open.c: Likewise.
13812 * sysdeps/htl/sem-post.c: Likewise.
13813 * sysdeps/htl/sem-timedwait.c: Likewise.
13814 * sysdeps/htl/sem-trywait.c: Likewise.
13815 * sysdeps/htl/sem-unlink.c: Likewise.
13816 * sysdeps/htl/sem-wait.c: Likewise.
13817 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13818 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13819 * sysdeps/mach/htl/pt-block.c: Likewise.
13820 * sysdeps/mach/htl/pt-spin.c: Likewise.
13821 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13822 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13823 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13824 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13825 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13826 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13827 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13828 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13829 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13830 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13831 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13832 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13833 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13834 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13835 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13836 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13837 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13838 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13839 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13840 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13841 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13842 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13843 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13844 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13845 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13846 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13847 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13848 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13849 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13850 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13851 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13852 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13853 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13854 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13855 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13856 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13857 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13858 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13859 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13860 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13861 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13862 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13863 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13864
13865 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13866 * README: Remove the mention of out-of-tree patches needed for
13867 GNU/Hurd.
13868
13869 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13870 (UTIME_NOW, UTIME_OMIT): Define macros.
13871
13872 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13873 instead of pthread_detach.
13874 (__cthread_fork): Call __pthread_create instead of pthread_create.
13875 (__cthread_keycreate): Call __pthread_key_create instead of
13876 pthread_key_create.
13877 (__cthread_getspecific): Call __pthread_getspecific instead of
13878 pthread_getspecific.
13879 (__cthread_setspecific): Call __pthread_setspecific instead of
13880 pthread_setspecific.
13881 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13882 __pthread_mutex_unlock instead of pthread_mutex_lock and
13883 pthread_mutex_unlock.
13884 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13885 ___pthread_get_cleanup_stack.
13886 (__pthread_get_cleanup_stack): New strong alias.
13887 * htl/pt-create.c: Include <pthreadP.h>.
13888 (entry_point): Call __pthread_exit instead of pthread_exit.
13889 (pthread_create): Rename to __pthread_create.
13890 (pthread_create): New strong alias.
13891 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13892 (pthread_detach): New strong alias.
13893 (__pthread_detach): Call __pthread_cond_broadcast instead of
13894 pthread_cond_broadcast.
13895 * htl/pt-exit.c: Include <pthreadP.h>.
13896 (__pthread_exit): Call __pthread_setcancelstate and
13897 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13898 __pthread_get_cleanup_stack.
13899 * htl/pt-testcancel.c: Include <pthreadP.h>.
13900 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13901 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13902 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13903 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13904 pthread_attr_getstacksize.
13905 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13906 Rename to __pthread_attr_getstackaddr.
13907 (pthread_attr_getstackaddr): New strong alias.
13908 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13909 Rename to __pthread_attr_getstacksize.
13910 (pthread_attr_getstacksize): New strong alias.
13911 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13912 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13913 (pthread_attr_setstack): New strong alias.
13914 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13915 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13916 pthread_attr_getstacksize, pthread_attr_setstacksize and
13917 pthread_attr_setstackaddr.
13918 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13919 Rename to __pthread_attr_setstackaddr.
13920 (pthread_attr_setstackaddr): New strong alias.
13921 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13922 Rename to __pthread_attr_setstacksize.
13923 (pthread_attr_setstacksize): New strong alias.
13924 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13925 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13926 pthread_exit.
13927 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13928 (__pthread_key_create): New hidden def.
13929 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13930 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13931 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13932 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13933 __pthread_setspecific, __pthread_setcancelstate,
13934 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13935 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13936 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13937 declarations.
13938 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13939 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13940 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13941 (pthread_attr_setstackaddr): New strong alias.
13942 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13943 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13944 (pthread_attr_setstacksize): New strong alias.
13945 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13946 (call_exit): Call __pthread_exit instead of pthread_exit.
13947 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13948 (_pthread_mutex_init): New hidden definition.
13949 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13950 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13951 instead of pthread_attr_init and pthread_attr_setstack.
13952
13953 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13954 __vm_deallocate instead of vm_allocate and vm_deallocate.
13955 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13956 setenv.
13957 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13958 of geteuid.
13959 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13960 strdup.
13961 * hurd/siginfo.c: Include <libioP.h>.
13962 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13963 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13964 munmap.
13965 * mach/devstream.c: Include <libioP.h>.
13966 (dealloc_ref): Call __mach_port_deallocate instead of
13967 mach_port_deallocate.
13968 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13969 Call __mach_port_deallocate instead of mach_port_deallocate.
13970 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13971 pathconf.
13972 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13973 munmap.
13974 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13975 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13976 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13977 of munmap.
13978 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13979 of close.
13980 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13981 instead of sysconf.
13982 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13983 __clock_gettime instead of clock_gettime.
13984 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13985 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13986 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13987 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13988 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13989 tcgetattr.
13990 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13991 __clock_gettime and __nanosleep instead of clock_gettime and
13992 nanosleep.
13993 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13994 __hurd_catch_signal.
13995 (hurd_catch_signal): New strong alias.
13996 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13997 __hurd_catch_signal instead of hurd_catch_signal.
13998 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13999 * hurd/hurdexec.c (_hurd_init): Add hidden def.
14000 * hurd/hurdinit.c (_hurd_init): Add hidden def.
14001 * hurd/hurdsig.c: Include <mach/mig_support.h>.
14002 (_hurd_thread_sigstate): Add hidden def.
14003 (_hurd_internal_post_signal): Use __mutex_unlock instead of
14004 mutex_unlock.
14005 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
14006 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
14007 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
14008 __hurd_file_name_path_lookup.
14009 (hurd_file_name_path_lookup): New strong alias.
14010 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
14011 hurd_file_name_path_lookup.
14012 * mach/errstring.c (mach_error_type): Add hidden def.
14013 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
14014 * mach/mutex-init.c (__mutex_init): Add hidden def.
14015 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
14016 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
14017 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
14018 * sysdeps/mach/hurd/getcwd.c
14019 (_hurd_canonicalize_directory_name_internal): Rename to
14020 __hurd_canonicalize_directory_name_internal.
14021 (_hurd_canonicalize_directory_name_internal): New strong alias.
14022 (__canonicalize_directory_name_internal, __getcwd): Call
14023 __hurd_canonicalize_directory_name_internal instead of
14024 _hurd_canonicalize_directory_name_internal.
14025 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
14026 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
14027 hidden defs.
14028 * sysdeps/hurd/include/hurd.h: New file.
14029 * sysdeps/hurd/include/hurd/fd.h: New file.
14030 * sysdeps/hurd/include/hurd/signal.h: New file.
14031 * sysdeps/mach/include/lock-intern.h: New file.
14032 * sysdeps/mach/include/mach.h: New file.
14033 * sysdeps/mach/include/mach/mig_support.h: New file.
14034 * sysdeps/mach/include/mach_error.h: New file.
14035 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
14036 prototype.
14037 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
14038 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
14039 _HEADER_H_HIDDEN_DEF macro.
14040 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
14041 _hurd_fd_error_signal): Add hidden prototype.
14042 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
14043 hidden def.
14044 * libio/iolibio.h (_IO_puts): New hidden prototype.
14045 * libio/ioputs.c (_IO_puts): New hidden def.
14046 * sysdeps/mach/hurd/localplt.data: New file.
14047
14048 2018-04-02 Agustina Arzille <avarzille@riseup.net>
14049 Amos Jeffries <squid3@treenet.co.nz>
14050 David Michael <fedora.dm0@gmail.com>
14051 Marco Gerards <marco@gnu.org>
14052 Marcus Brinkmann <marcus@gnu.org>
14053 Neal H. Walfield <neal@gnu.org>
14054 Pino Toscano <toscano.pino@tiscali.it>
14055 Richard Braun <rbraun@sceen.net>
14056 Roland McGrath <roland@gnu.org>
14057 Samuel Thibault <samuel.thibault@ens-lyon.org>
14058 Thomas DiModica <ricinwich@yahoo.com>
14059 Thomas Schwinge <tschwinge@gnu.org>
14060
14061 * htl: New directory.
14062 * sysdeps/htl: New directory.
14063 * sysdeps/hurd/htl: New directory.
14064 * sysdeps/i386/htl: New directory.
14065 * sysdeps/mach/htl: New directory.
14066 * sysdeps/mach/hurd/htl: New directory.
14067 * sysdeps/mach/hurd/i386/htl: New directory.
14068 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
14069 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
14070 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
14071
14072 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14073
14074 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14075 signals in thread created for runing timers.
14076
14077 2018-04-01 Florian Weimer <fweimer@redhat.com>
14078
14079 * support/support_format_addrinfo.c (support_format_addrinfo):
14080 Include unknown error number in formatted result.
14081
14082 2018-03-29 Florian Weimer <fweimer@redhat.com>
14083
14084 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14085 capture SIGBUS.
14086
14087 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14088
14089 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14090 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14091 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14092 (__ASSUME_CLONE_BACKWARDS): Define.
14093
14094 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14095
14096 [BZ #23024]
14097 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14098 early when linux sentinel value is set.
14099
14100 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14101
14102 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14103
14104 2018-03-27 Andreas Schwab <schwab@suse.de>
14105
14106 [BZ #23005]
14107 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14108 allocation of private copy of nsaddr_list fails.
14109
14110 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14111
14112 [BZ #16552]
14113 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14114 * sysdeps/unix/sysv/linux/umount.c: ... here.
14115 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14116 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14117 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14118 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14120 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14121 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14122
14123 2018-03-26 Andreas Schwab <schwab@suse.de>
14124
14125 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14126 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14127 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14128 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14129 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14130 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14131 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14132 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14133 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14134 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14135 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14136 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14137 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14138 (R_RISCV_NUM): Define.
14139
14140 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14141
14142 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14143 TLS declaration of errno.
14144 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14145 __libc_setup_tls.
14146 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14147 (ARCH_SETUP_TLS): Likewise.
14148 * sysdeps/mach/hurd/libc-start.h: New file copied from
14149 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14150 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14151 instead of __libc_setup_tls.
14152 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14153 __libc_setup_tls before initializing libpthread and running _hurd_init
14154 which starts the signal thread.
14155 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14156 Declare function.
14157 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14158
14159 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14160
14161 [BZ #22998]
14162 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14163 after it is defined.
14164
14165 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14166 Max Horn <max@quendi.de>
14167
14168 [BZ #22644]
14169 CVE-2017-18269
14170 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14171 branch conditions.
14172 * string/test-memmove.c (do_test2): New testcase.
14173
14174 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14175
14176 * sysdeps/generic/frame.h: Remove file.
14177 * sysdeps/arm/frame.h: Likewise.
14178 * sysdeps/hppa/frame.h: Likewise.
14179 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14180 macro.
14181 (GET_FRAME): Likewise.
14182 (GET_STACK): Likewise.
14183 (CALL_SIGHANDLER): Likewise.
14184 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14185 Likewise.
14186 (GET_FRAME): Likewise.
14187 (GET_STACK): Likewise.
14188 (CALL_SIGHANDLER): Likewise.
14189 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14190 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14191 (GET_FRAME): Likewise.
14192 (GET_STACK): Likewise.
14193 (CALL_SIGHANDLER): Likewise.
14194 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14195 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14196 (GET_FRAME): Likewise.
14197 (GET_STACK): Likewise.
14198 (ADVANCE_STACK_FRAME): Likewise.
14199 (CALL_SIGHANDLER): Likewise.
14200 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14201 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14202 (GET_FRAME): Likewise.
14203 (GET_STACK): Likewise.
14204 (CALL_SIGHANDLER): Likewise.
14205 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14206 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14207 (GET_FRAME): Likewise.
14208 (GET_STACK): Likewise.
14209 (CALL_SIGHANDLER): Likewise.
14210 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14211 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14212 (GET_FRAME): Likewise.
14213 (GET_STACK): Likewise.
14214 (CALL_SIGHANDLER): Likewise.
14215 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14216 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14217 (GET_FRAME): Likewise.
14218 (GET_STACK): Likewise.
14219 (CALL_SIGHANDLER): Likewise.
14220 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14221 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14222 (GET_FRAME): Likewise.
14223 (GET_STACK): Likewise.
14224 (CALL_SIGHANDLER): Likewise.
14225 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14226 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14227 (GET_FRAME): Likewise.
14228 (GET_STACK): Likewise.
14229 (CALL_SIGHANDLER): Likewise.
14230 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14231 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14232 (GET_FRAME): Likewise.
14233 (GET_STACK): Likewise.
14234 (CALL_SIGHANDLER): Likewise.
14235 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14236 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14237 (GET_FRAME): Likewise.
14238 (GET_STACK): Likewise.
14239 (CALL_SIGHANDLER): Likewise.
14240 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14241 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14242 (GET_FRAME): Likewise.
14243 (GET_STACK): Likewise.
14244 (CALL_SIGHANDLER): Likewise.
14245 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14246 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14247 (FIRST_FRAME_POINTER): Likewise.
14248 (ADVANCE_STACK_FRAME): Likewise.
14249 (GET_STACK): Likewise.
14250 (GET_FRAME): Likewise.
14251 (CALL_SIGHANDLER): Likewise.
14252 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14253 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14254 (ADVANCE_STACK_FRAME): Likewise.
14255 (GET_STACK): Likewise.
14256 (GET_FRAME): Likewise.
14257 (CALL_SIGHANDLER): Likewise.
14258 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14259 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14260 (GET_FRAME): Likewise.
14261 (GET_STACK): Likewise.
14262 (CALL_SIGHANDLER): Likewise.
14263 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14264 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14265 (GET_FRAME): Likewise.
14266 (GET_STACK): Likewise.
14267 (CALL_SIGHANDLER): Likewise.
14268
14269 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14270
14271 * sysdeps/x86_64/backtrace.c: Move to ....
14272 * debug/backtrace.c: ... here.
14273 * sysdeps/aarch64/backtrace.c: Remove file.
14274 * sysdeps/alpha/backtrace.c: Likewise.
14275 * sysdeps/hppa/backtrace.c: Likewise.
14276 * sysdeps/ia64/backtrace.c: Likewise.
14277 * sysdeps/mips/backtrace.c: Likewise.
14278 * sysdeps/nios2/backtrace.c: Likewise.
14279 * sysdeps/riscv/backtrace.c: Likewise.
14280 * sysdeps/sh/backtrace.c: Likewise.
14281 * sysdeps/tile/backtrace.c: Likewise.
14282
14283 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14284
14285 [BZ #22987]
14286 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14287 function.
14288 (fdimf): Likewise.
14289 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14290
14291 [BZ #17343]
14292 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14293 possibly overflowing computations.
14294
14295 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14296
14297 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14298 values from Linux-specific section now that it is in the GNU section.
14299 * sysdeps/gnu/errlist.c: Regenerate.
14300
14301 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14302
14303 * math/Makefile (libm-narrow-fns): Add sub.
14304 (libm-test-funcs-narrow): Likewise.
14305 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14306 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14307 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14308 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14309 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14310 (NARROW_SUB_TRIVIAL): Likewise.
14311 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14312 macro.
14313 (__dsubl): Likewise.
14314 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14315 dsub.
14316 (CFLAGS-nldbl-dsub.c): New variable.
14317 (CFLAGS-nldbl-fsub.c): Likewise.
14318 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14319 __nldbl_dsubl.
14320 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14321 prototype.
14322 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14323 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14324 * math/auto-libm-test-in: Add tests of sub.
14325 * math/auto-libm-test-out-narrow-sub: New generated file.
14326 * math/libm-test-narrow-sub.inc: New file.
14327 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14328 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14329 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14330 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14331 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14332 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14333 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14334 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14335 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14336 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14337 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14338 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14339 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14340 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14341 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14342 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14343 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14344 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14345 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14346 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14347 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14348 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14349 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14350 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14351 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14352 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14353 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14354 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14355 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14356 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14357 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14358 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14359 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14360 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14361 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14362 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14363 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14364 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14365 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14366 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14367 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14368 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14369 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14370 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14371 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14372 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14373
14374 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14375
14376 [BZ #20079]
14377 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14378
14379 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14380
14381 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14382
14383 2018-03-18 Richard Braun <rbraun@sceen.net>
14384
14385 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14386 thread reference.
14387
14388 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14389
14390 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14391 (__libc_cleanup_fct): Define function.
14392 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14393 __libc_cleanup_end): Rewrite implementation using
14394 __attribute__ ((__cleanup__)).
14395 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14396 * hurd/Makefile (routines): Add hurdlock.
14397 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14398 interface.
14399 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14400 * hurd/hurdpid.c: Include <lowlevellock.h>
14401 (_S_msg_proc_newids): Use lll_wait to synchronize.
14402 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14403 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14404 * mach/Makefile (lock-headers): Remove machine-lock.h.
14405 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14406 <machine-lock.h>.
14407 (__spin_lock_t): New type.
14408 (__SPIN_LOCK_INITIALIZER): New macro.
14409 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14410 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14411 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14412 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14413 (__mutex_init): Initialize with lll.
14414 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14415 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14416 needing lll.
14417 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14418 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14419 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14420 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14421 (__setpgid): Use lll for synchronization.
14422 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14423 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14424 instead of <cthreads.h>.
14425 (_IO_lock_inexpensive): New macro
14426 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14427 (__libc_lock_self0): New declaration.
14428 (__libc_lock_owner_self): New macro.
14429 (__libc_key_t): Remove type.
14430 (_LIBC_LOCK_INITIALIZER): New macro.
14431 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14432 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14433 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14434 __libc_lock_define_initialized_recursive,
14435 __rtld_lock_define_initialized_recursive,
14436 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14437 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14438 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14439 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14440 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14441 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14442 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14443 New macros.
14444 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14445 * hurd/hurdlock.c: New file.
14446 * hurd/hurdlock.h: New file.
14447 * mach/lowlevellock.h: New file
14448
14449 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14450
14451 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14452 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14453 when opening a symlink with O_NOFOLLOW.
14454 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14455 path when flags contains O_NOFOLLOW.
14456 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14457 if flags contains O_DIRECTORY and the result is a directory.
14458 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14459 oneself when the pointer given in D is nul (as set by ext2fs).
14460 * sysdeps/mach/hurd/mlockall.c: New file.
14461 * sysdeps/mach/hurd/munlockall.c: New file.
14462
14463 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14464
14465 * hurd/hurdsig.c: Include <pthread.h>.
14466 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14467 get the signal thread stack layout.
14468 * hurd/Makefile (headers): Remove threadvar.h.
14469 (inline-headers): Remove threadvar.h.
14470 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14471 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14472 __hurd_threadvar_max, __hurd_errno_location.
14473 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14474 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14475 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14476 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14477 unless TLS is not initialized yet, in which case we do not need a
14478 critical section yet anyway.
14479 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14480 <machine-sp.h>.
14481 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14482 declarations.
14483 (__hurd_threadvar_index): Remove enum.
14484 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14485 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14486 inlines.
14487 (__hurd_reply_port0): New variable declaration.
14488 (__hurd_local_reply_port): New macro.
14489 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14490 (interrupted_reply_port_location): Add thread_t parameter. Use it
14491 with THREAD_TCB to access thread-local variables.
14492 (_hurdsig_abort_rpcs): Pass ss->thread to
14493 interrupted_reply_port_location.
14494 (_hurd_internal_post_signal): Likewise.
14495 (_hurdsig_init): Use presence of cthread_fork instead of
14496 __hurd_threadvar_stack_mask to start signal thread by hand.
14497 Remove signal thread threadvar initialization.
14498 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14499 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14500 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14501 of threadvar.
14502 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14503 __libc_lock_self0.
14504 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14505 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14506 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14507 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14508 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14509 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14510 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14511 define variables.
14512 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14513 <hurd/threadvar.h>.
14514 [IS_IN(rtld)] (rtld_errno): New variable.
14515 [IS_IN(rtld)] (__errno_location): New weak function.
14516 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14517 * sysdeps/mach/hurd/errno.c: Remove file.
14518 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14519 (__fork): Remove THREADVAR_SPACE macro and its use.
14520 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14521 variable.
14522 (init): Do not initialize threadvar.
14523 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14524 symbol.
14525 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14526 __hurd_local_reply_port instead of threadvar.
14527 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14528 _hurd_sigstate fields.
14529 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14530 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14531 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14532 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14533 instead of threadvar.
14534 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14535 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14536 (use_threadvar, global_reply_port): Remove variables.
14537 (__hurd_reply_port0): New variable.
14538 (__mig_get_reply_port): Use __hurd_local_reply_port and
14539 __hurd_reply_port0 instead of threadvar.
14540 (__mig_dealloc_reply_port): Likewise.
14541 (__mig_init): Do not initialize threadvar.
14542 * sysdeps/mach/hurd/profil.c: Fix comment.
14543 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14544 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14545 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14546 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14547 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14548 __cthread_setspecific.
14549 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14550 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14551 __cthread_t instead of cthread_fork, cthread_detach,
14552 pthread_getattr_np, pthread_attr_getstack.
14553 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14554 __cthread_keycreate.
14555 (cthread_getspecific): Rename to __cthread_getspecific.
14556 (cthread_setspecific): Rename to __cthread_setspecific.
14557 (__libc_getspecific): Use __cthread_getspecific instead of
14558 cthread_getspecific.
14559 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14560 __cthread_keycreate instead of cthread_keycreate.
14561 (__libc_setspecific): Use __cthread_setspecific instead of
14562 cthread_setspecific.
14563 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14564 Likewise.
14565 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14566 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14567 testing whether it is defined.
14568
14569 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14570
14571 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14572 Define macro.
14573 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14574 * sysdeps/mach/i386/thread_state.h
14575 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14576 i386_THREAD_STATE.
14577 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14578 i386_THREAD_STATE.
14579 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14580
14581 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14582 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14583
14584 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14585 macros.
14586 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14587 descriptor instead of creating a new one.
14588 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14589
14590 * mach/setup-thread.c: Include <ldsodefs.h>.
14591 (__mach_setup_thread): Call _dl_allocate_tls, pass
14592 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14593 MACHINE_THREAD_STATE_FLAVOR, before getting
14594 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14595 MACHINE_THREAD_STATE_FLAVOR with the result.
14596 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14597 MACHINE_THREAD_STATE_FIX_NEW.
14598 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14599 too. Add original thread parameter.
14600
14601 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14602
14603 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14604 Remove inline function.
14605
14606 * sysdeps/i386/fpu/libm-test-ulps: Update.
14607 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14608
14609 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14610
14611 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14612 commit.
14613
14614 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14615
14616 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14617 (__sincos_code): Remove define and undefine.
14618 [__FAST_MATH__] (__sincos): Remove inline function.
14619 [__FAST_MATH__] (__sincosf): Remove inline function.
14620 [__FAST_MATH__] (__sincosl): Remove inline function.
14621 (__atan2l): Remove inline functions.
14622 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14623 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14624 function.
14625 (floor): Remove inline function.
14626 (ceil): Likewise.
14627 [__FAST_MATH__] (__ldexp_code): Remove macro.
14628 [__FAST_MATH__] (ldexp): Remove inline function.
14629 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14630 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14631 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14632 [__USE_ISOC99] (__lrint_code): Remove macro.
14633 [__USE_ISOC99] (__llrint_code): Likewise.
14634 [__USE_ISOC99] (lrintf): Remove inline function.
14635 [__USE_ISOC99] (lrint): Likewise.
14636 [__USE_ISOC99] (lrintl): Likewise.
14637 [__USE_ISOC99] (llrint): Likewise.
14638 [__USE_ISOC99] (llrintf): Likewise.
14639 [__USE_ISOC99] (llrintl): Likewise.
14640
14641 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14642
14643 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14644 (__ieee754_sqrtf): Remove.
14645 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14646 (__ieee754_sqrtf): Remove.
14647 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14648 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14649 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14650 (__ieee754_sqrtf): Remove.
14651 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14652 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14653 (sqrtf): Remove.
14654 (sqrtl): Remove.
14655 (__ieee754_sqrt): Remove.
14656 (__ieee754_sqrtf): Remove.
14657 (__ieee754_sqrtl): Remove.
14658 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14659 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14660 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14661 (__ieee754_sqrtf): Remove.
14662 (__ieee754_sqrtl): Remove.
14663
14664 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14665
14666 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14667 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14668 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14669 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14670 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14671 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14672 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14673 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14674 Likewise.
14675 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14676 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14677 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14678 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14679 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14680 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14681 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14682 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14683 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14684 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14685 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14686 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14687 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14688 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14689 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14690 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14691 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14692 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14693 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14694 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14695 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14696 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14697 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14698 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14699 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14700 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14701 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14702 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14703 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14704 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14705 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14706 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14707 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14708 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14709 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14710 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14711 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14712 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14713 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14714 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14715
14716 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14717
14718 * include/math.h (sqrt): Declare with asm redirect.
14719 (sqrtf): Likewise.
14720 (sqrtl): Likewise.
14721 (sqrtf128): Likewise.
14722 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14723 nonlib and libnldbl with -fmath-errno.
14724 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14725 * math/w_sqrt_template.c: Likewise.
14726 * math/w_sqrtf_compat.c: Likewise.
14727 * math/w_sqrtl_compat.c: Likewise.
14728 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14729 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14730 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14731 complex.h.
14732
14733 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14734
14735 * benchtests/Makefile: Define _ISOMAC.
14736 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14737 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14738 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14739 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14740 * benchtests/bench-timing.h: Define attribute_hidden.
14741
14742 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14743
14744 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14745 mov + lsr.
14746
14747 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14748
14749 [BZ #22963]
14750 * localedata/locales/cs_CZ (mon): Rename to...
14751 (alt_mon): This.
14752 (mon): Import from CLDR (genitive case).
14753
14754 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14755
14756 [BZ #22937]
14757 * localedata/locales/el_CY (abmon): Rename to...
14758 (ab_alt_mon): This.
14759 (abmon): Import from CLDR (abbreviated genitive case).
14760 * localedata/locales/el_GR (abmon): Rename to...
14761 (ab_alt_mon): This.
14762 (abmon): Import from CLDR (abbreviated genitive case).
14763
14764 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14765
14766 [BZ #22932]
14767 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14768
14769 2018-03-15 Robert Buj <robert.buj@gmail.com>
14770
14771 [BZ #22848]
14772 * localedata/locales/ca_ES (abmon): Rename to...
14773 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14774 (mon): Rename to...
14775 (alt_mon): This.
14776 (abmon): Import from CLDR (genitive case, month names preceded by
14777 "de" or "d’").
14778 (mon): Likewise.
14779 (abday): Synchronize with CLDR.
14780 (d_t_fmt): Likewise.
14781 (d_fmt): Likewise.
14782 (am_pm): Likewise.
14783
14784 (LC_TIME): Improve indentation.
14785 (LC_TELEPHONE): Likewise.
14786 (LC_NAME): Likewise.
14787 (LC_ADDRESS): Likewise.
14788
14789 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14790
14791 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14792 (lrintf): Remove definitions used only with old GCC.
14793 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14794 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14795 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14796 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14797 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14798 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14799 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14800 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14801 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14802 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14803 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14804 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14805 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14806 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14807 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14808 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14809 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14810 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14811 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14812 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14813 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14814 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14815 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14816 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14817 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14818 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14819 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14820 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14821
14822 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14823
14824 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14825 instruction to unbreak builds with binutils 2.26 and older.
14826
14827 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14828
14829 * sysdeps/aarch64/strncmp.S (count): New macro.
14830 (strncmp): Store misaligned length in SRC1 in COUNT.
14831 (mutual_align): Adjust.
14832 (misaligned8): Load dword at a time when it is safe.
14833
14834 2018-03-12 Zack Weinberg <zackw@panix.com>
14835
14836 [BZ #1190]
14837 [BZ #19476]
14838 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14839 if the _IO_EOF_SEEN bit is already set; update commentary.
14840 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14841 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14842
14843 * support/support_openpty.c, support/tty.h: New files.
14844 * support/Makefile (libsupport-routines): Add support_openpty.
14845
14846 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14847 New test cases.
14848 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14849 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14850
14851 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14852
14853 * po/pt_BR.po: Update translations.
14854
14855 2018-03-12 David Michael <fedora.dm0@gmail.com>
14856
14857 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14858 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14859 get a port to the startup server.
14860
14861 2018-03-11 Zack Weinberg <zackw@panix.com>
14862
14863 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14864 before nldbl-compat.h.
14865
14866 2018-03-10 Zack Weinberg <zackw@panix.com>
14867
14868 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14869 math.h or math_private.h.
14870
14871 * sysdeps/alpha/fpu/s_isnan.c
14872 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14873 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14874 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14875 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14876 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14877 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14878 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14879 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14880 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14881 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14882 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14883 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14884 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14885 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14886 Include math_private.h.
14887
14888 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14889 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14890 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14891 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14892 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14893 * sysdeps/powerpc/power7/fpu/s_logb.c:
14894 Include math.h and math_private.h.
14895
14896 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14897 uses of $at in .set noat / .set at.
14898
14899 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14900
14901 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14902 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14903 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14904 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14905 Likewise.
14906
14907 2018-03-09 Florian Weimer <fweimer@redhat.com>
14908
14909 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14910 in comment.
14911
14912 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14913
14914 [BZ #22919]
14915 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14916 Add nop before __startcontext, add explaining comments.
14917
14918 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14919
14920 [BZ #22926]
14921 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14922 empty for __SPE__.
14923 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14924 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14925 Do not build hardware transactional code for __SPE__.
14926 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14927 (__lll_trylock_elision): Likewise.
14928 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14929 (__lll_unlock_elision): Likewise.
14930
14931 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14932 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14933 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14934 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14935 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14936 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14937 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14938 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14939 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14940 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14941 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14942 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14943 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14944 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14945 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14946 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14947 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14948 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14949 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14950 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14951 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14952 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14953 (__ASSUME_CLONE_BACKWARDS): Define.
14954 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14955 __clone2 if __NR_clone2 is defined.
14956 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14957 (__ASSUME_CLONE_BACKWARDS): Likewise.
14958 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14959 (__ASSUME_CLONE_BACKWARDS): Likewise.
14960 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14961 (__ASSUME_CLONE2): Likewise.
14962 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14963 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14964 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14965 variants and the define architecture can use.
14966 (__ASSUME_CLONE_DEFAULT): Define as default.
14967 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14968 (__ASSUME_CLONE_BACKWARDS): Likewise.
14969 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14970 (__ASSUME_CLONE_BACKWARDS): Likewise.
14971 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14972 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14973
14974 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14975
14976 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14977
14978 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14979 time.
14980
14981 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14982 (do_test_limit): Likewise.
14983
14984 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14985 for every implementation.
14986 (do_test): Likewise.
14987
14988 * benchtests/bench-strncmp.c: Convert output to json.
14989
14990 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14991
14992 * io/futimens.c: Add missing start-of-file descriptive comment.
14993 * io/utime.c: Likewise.
14994 * misc/futimesat.c: Likewise.
14995 * misc/utimes.c: Likewise.
14996 * sysdeps/mach/hurd/futimesat.c: Likewise.
14997 * sysdeps/mach/hurd/utimes.c: Likewise.
14998 * sysdeps/posix/utime.c: Likewise.
14999 * sysdeps/posix/utimes.c: Likewise.
15000 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
15001 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
15002 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
15003 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
15004
15005 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15006
15007 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
15008 hurd_futimes.
15009 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
15010 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
15011 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
15012 (__futimens): Move implementation to...
15013 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
15014 utime_tvalue_from_tspec): ... new helper functions.
15015 (hurd_futimens): New function.
15016 * sysdeps/mach/hurd/futimesat.c: New file.
15017 * sysdeps/mach/hurd/utimensat.c: New file.
15018
15019 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
15020
15021 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
15022 UTIME_OMIT): New macros.
15023 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
15024 before reverting to converting time spec to time value and calling
15025 __file_utimes.
15026 * sysdeps/mach/hurd/utime-helper.c: New file.
15027 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
15028 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
15029 reverting to utime_tvalue_from_tval and __file_utimes.
15030 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
15031 (__lutimes): Just call hurd_futimens after lookup.
15032 * sysdeps/mach/hurd/utimes.c: Likewise.
15033
15034 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
15035
15036 * bits/sigaction.h: Add include guard.
15037 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
15038 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
15039 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
15040 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
15041 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
15042 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
15043 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
15044 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
15045 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
15046
15047 2018-03-05 Joseph Myers <joseph@codesourcery.com>
15048
15049 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
15050 -Wmaybe-uninitialized for -Os.
15051 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
15052 this disabling.
15053
15054 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15055
15056 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
15057 __INO_T_MATCHES_INO64_T is defined.
15058 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
15059 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
15060 of definition.
15061 * dirent/alphasort64.c: Likewise.
15062 * dirent/scandir.c: Likewise.
15063 * dirent/scandir64-tail.c: Likewise.
15064 * dirent/scandir64.c: Likewise.
15065 * dirent/scandirat.c: Likewise.
15066 * dirent/scandirat64.c: Likewise.
15067 * dirent/versionsort.c: Likewise.
15068 * dirent/versionsort64.c: Likewise.
15069 * include/dirent.h: Likewise.
15070
15071 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
15072 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
15073 for socketpair endpoint.
15074 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15075 WRITE_BUFFER_SIZE as buffer size for sending socket.
15076 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15077 issue on system where send is implemented with sendto syscall.
15078 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15079 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15080 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15081 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15082
15083 [BZ #21269]
15084 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15085 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15086 sa_restorer for vDSO case.
15087 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15088
15089 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15090
15091 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15092 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15093 * hurd/hurd/ioctl.h: Include <mach/port.h>
15094 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15095 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15096 <mach/mach_types.h> and <mach/message.h>.
15097 (headers): Move mach/param.h to bits/mach/param.h.
15098 * sysdeps/mach/i386/mach/param.h: Move file to ...
15099 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15100 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15101 of <mach/param.h>.
15102 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15103 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15104 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15105 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15106 trivial, for C++ conformity.
15107 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15108 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15109 Process mig output through $(migheadersed).
15110 * hurd/Makefile (migheadersed): Define variable.
15111 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15112 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15113 headers.
15114 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15115 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15116 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15117 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15118 <bits/types/sigset_t.h>.
15119 [!defined __USE_GNU]: Do not #error out.
15120 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15121 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15122 Include <stddef.h> and <bits/types/sigset_t.h>
15123 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15124 instead of sighandler_t.
15125 * stdlib/errno.h (error_t): Move definition to...
15126 * bits/types/error_t.h: ... new header.
15127 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15128 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15129 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15130 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15131 * hurd/hurd.h: Include <bits/types/error_t.h>
15132 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15133 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15134 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15135 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15136 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15137 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15138 * sysdeps/mach/hurd/futimens.c: New file.
15139
15140 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15141
15142 [BZ #22918]
15143 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15144 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15145 * nscd/gai.c (__nss_hosts_database): Readd definition.
15146 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15147 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15148 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15149
15150 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15151
15152 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15153 (ifunc_one): Likewise.
15154
15155 2018-03-01 DJ Delorie <dj@delorie.com>
15156
15157 [BZ #22342]
15158 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15159 key value.
15160
15161 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15162
15163 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15164 `match_pid' parameter.
15165 (td_ta_thr_iter): Update accordingly.
15166
15167 2018-03-01 Florian Weimer <fweimer@redhat.com>
15168
15169 * nptl/Makefile (install-lib-ldscripts): Remove.
15170 (install): Remove rule.
15171 ($(inst_libdir)/libpthread.so): Likewise.
15172
15173 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15174
15175 [BZ #22896]
15176 * localedata/locales/an_ES: update month and day names,
15177 improve d_fmt, improve postal_fmt, add country_post,
15178 add country_isbn
15179
15180 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15181
15182 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15183 Ukrainian instead of Bulgarian.
15184
15185 2018-03-01 Florian Weimer <fweimer@redhat.com>
15186
15187 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15188 reference.
15189
15190 2018-03-01 Florian Weimer <fweimer@redhat.com>
15191
15192 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15193 * nptl/Makefile (routines): Add pthread_atfork.
15194 (static-only-routines): Set to pthread_atfork.
15195 (libpthread-routines): Remove pthread_atfork.
15196 (libpthread-static-only-routines): Remove.
15197 (install): Update comment.
15198 (libpthread.so): Do not install libpthread_nonshared.a.
15199 (tests): Do not link with libpthread_nonshared.a.
15200 (generated): Remove libpthread_nonshared.a.
15201 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15202 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15203 with libpthread_nonshared.a.
15204
15205 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15206
15207 [BZ #22902]
15208 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15209 (libc_feholdexcept_setroundf128): New macro.
15210 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15211
15212 [BZ #15105]
15213 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15214 libc_hidden_def.
15215 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15216 * include/inttypes.h: New file.
15217
15218 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15219
15220 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15221 -Os in two more places.
15222
15223 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15224
15225 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15226 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15227 be sorted correctly at the moment because of a bug.
15228
15229 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15230
15231 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15232 treat ñ as a primary different character, sync the collation
15233 for Spanish with CLDR.
15234 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15235 * localedata/Makefile: Add new test files.
15236 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15237 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15238 collation order.
15239 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15240 * localedata/am_ET.UTF-8.in: New test file.
15241 * localedata/az_AZ.UTF-8.in: Likewise.
15242 * localedata/be_BY.UTF-8.in: Likewise.
15243 * localedata/ber_DZ.UTF-8.in: Likewise.
15244 * localedata/ber_MA.UTF-8.in: Likewise.
15245 * localedata/bg_BG.UTF-8.in: Likewise.
15246 * localedata/br_FR.UTF-8.in: Likewise.
15247 * localedata/cmn_TW.UTF-8.in: Likewise.
15248 * localedata/crh_UA.UTF-8.in: Likewise.
15249 * localedata/csb_PL.UTF-8.in: Likewise.
15250 * localedata/cv_RU.UTF-8.in: Likewise.
15251 * localedata/cy_GB.UTF-8.in: Likewise.
15252 * localedata/dz_BT.UTF-8.in: Likewise.
15253 * localedata/eo.UTF-8.in: Likewise.
15254 * localedata/es_ES.UTF-8.in: Likewise.
15255 * localedata/fa_IR.UTF-8.in: Likewise.
15256 * localedata/fi_FI.UTF-8.in: Likewise.
15257 * localedata/fil_PH.UTF-8.in: Likewise.
15258 * localedata/fur_IT.UTF-8.in: Likewise.
15259 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15260 * localedata/ha_NG.UTF-8.in: Likewise.
15261 * localedata/ig_NG.UTF-8.in: Likewise.
15262 * localedata/ik_CA.UTF-8.in: Likewise.
15263 * localedata/kk_KZ.UTF-8.in: Likewise.
15264 * localedata/ku_TR.UTF-8.in: Likewise.
15265 * localedata/ky_KG.UTF-8.in: Likewise.
15266 * localedata/ln_CD.UTF-8.in: Likewise.
15267 * localedata/mi_NZ.UTF-8.in: Likewise.
15268 * localedata/ml_IN.UTF-8.in: Likewise.
15269 * localedata/mn_MN.UTF-8.in: Likewise.
15270 * localedata/mr_IN.UTF-8.in: Likewise.
15271 * localedata/mt_MT.UTF-8.in: Likewise.
15272 * localedata/nb_NO.UTF-8.in: Likewise.
15273 * localedata/om_KE.UTF-8.in: Likewise.
15274 * localedata/os_RU.UTF-8.in: Likewise.
15275 * localedata/ps_AF.UTF-8.in: Likewise.
15276 * localedata/ro_RO.UTF-8.in: Likewise.
15277 * localedata/ru_RU.UTF-8.in: Likewise.
15278 * localedata/sc_IT.UTF-8.in: Likewise.
15279 * localedata/se_NO.UTF-8.in: Likewise.
15280 * localedata/sq_AL.UTF-8.in: Likewise.
15281 * localedata/sv_SE.UTF-8.in: Likewise.
15282 * localedata/szl_PL.UTF-8.in: Likewise.
15283 * localedata/tg_TJ.UTF-8.in: Likewise.
15284 * localedata/tk_TM.UTF-8.in: Likewise.
15285 * localedata/tt_RU.UTF-8.in: Likewise.
15286 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15287 * localedata/ug_CN.UTF-8.in: Likewise.
15288 * localedata/uz_UZ.UTF-8.in: Likewise.
15289 * localedata/vi_VN.UTF-8.in: Likewise.
15290 * localedata/yi_US.UTF-8.in: Likewise.
15291 * localedata/yo_NG.UTF-8.in: Likewise.
15292 * localedata/zh_CN.UTF-8.in: Likewise.
15293 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15294 file and fix bugs in the collation.
15295 * localedata/locales/az_AZ: Likewise.
15296 * localedata/locales/be_BY: Likewise.
15297 * localedata/locales/ber_DZ: Likewise.
15298 * localedata/locales/ber_MA: Likewise.
15299 * localedata/locales/bg_BG: Likewise.
15300 * localedata/locales/br_FR: Likewise.
15301 * localedata/locales/br_FR@euro: Likewise.
15302 * localedata/locales/ca_ES: Likewise.
15303 * localedata/locales/cns11643_stroke: Likewise.
15304 * localedata/locales/crh_UA: Likewise.
15305 * localedata/locales/cs_CZ: Likewise.
15306 * localedata/locales/csb_PL: Likewise.
15307 * localedata/locales/cv_RU: Likewise.
15308 * localedata/locales/cy_GB: Likewise.
15309 * localedata/locales/da_DK: Likewise.
15310 * localedata/locales/dz_BT: Likewise.
15311 * localedata/locales/en_CA: Likewise.
15312 * localedata/locales/eo: Likewise.
15313 * localedata/locales/es_CU: Likewise.
15314 * localedata/locales/es_EC: Likewise.
15315 * localedata/locales/es_ES: Likewise.
15316 * localedata/locales/es_US: Likewise.
15317 * localedata/locales/et_EE: Likewise.
15318 * localedata/locales/fa_IR: Likewise.
15319 * localedata/locales/fi_FI: Likewise.
15320 * localedata/locales/fil_PH: Likewise.
15321 * localedata/locales/fur_IT: Likewise.
15322 * localedata/locales/gez_ER@abegede: Likewise.
15323 * localedata/locales/ha_NG: Likewise.
15324 * localedata/locales/hr_HR: Likewise.
15325 * localedata/locales/hsb_DE: Likewise.
15326 * localedata/locales/hu_HU: Likewise.
15327 * localedata/locales/ig_NG: Likewise.
15328 * localedata/locales/ik_CA: Likewise.
15329 * localedata/locales/is_IS: Likewise.
15330 * localedata/locales/iso14651_t1_pinyin: Likewise.
15331 * localedata/locales/kk_KZ: Likewise.
15332 * localedata/locales/ku_TR: Likewise.
15333 * localedata/locales/ky_KG: Likewise.
15334 * localedata/locales/ln_CD: Likewise.
15335 * localedata/locales/lt_LT: Likewise.
15336 * localedata/locales/lv_LV: Likewise.
15337 * localedata/locales/mi_NZ: Likewise.
15338 * localedata/locales/ml_IN: Likewise.
15339 * localedata/locales/mn_MN: Likewise.
15340 * localedata/locales/mr_IN: Likewise.
15341 * localedata/locales/mt_MT: Likewise.
15342 * localedata/locales/nb_NO: Likewise.
15343 * localedata/locales/om_KE: Likewise.
15344 * localedata/locales/os_RU: Likewise.
15345 * localedata/locales/pl_PL: Likewise.
15346 * localedata/locales/ps_AF: Likewise.
15347 * localedata/locales/ro_RO: Likewise.
15348 * localedata/locales/ru_RU: Likewise.
15349 * localedata/locales/ru_UA: Likewise.
15350 * localedata/locales/sc_IT: Likewise.
15351 * localedata/locales/se_NO: Likewise.
15352 * localedata/locales/si_LK: Likewise.
15353 * localedata/locales/sq_AL: Likewise.
15354 * localedata/locales/sv_FI: Likewise.
15355 * localedata/locales/sv_FI@euro: Likewise.
15356 * localedata/locales/sv_SE: Likewise.
15357 * localedata/locales/szl_PL: Likewise.
15358 * localedata/locales/tg_TJ: Likewise.
15359 * localedata/locales/ti_ER: Likewise.
15360 * localedata/locales/tk_TM: Likewise.
15361 * localedata/locales/tl_PH: Likewise.
15362 * localedata/locales/tr_TR: Likewise.
15363 * localedata/locales/tt_RU: Likewise.
15364 * localedata/locales/tt_RU@iqtelif: Likewise.
15365 * localedata/locales/ug_CN: Likewise.
15366 * localedata/locales/uk_UA: Likewise.
15367 * localedata/locales/uz_UZ: Likewise.
15368 * localedata/locales/uz_UZ@cyrillic: Likewise.
15369 * localedata/locales/vi_VN: Likewise.
15370 * localedata/locales/yi_US: Likewise.
15371 * localedata/locales/yo_NG: Likewise.
15372
15373 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15374
15375 * gen-locales.mk: Make test files which contain @ modifiers in their
15376 name work.
15377 * localedata/gen-locale.sh: Likewise.
15378
15379 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15380
15381 * posix/tst-fnmatch.input: Fix results for range expressions
15382 for non C locales.
15383 * posix/tst-regexloc.c: Do not use a range expression for
15384 de_DE.ISO-8859-1 locale.
15385
15386 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15387
15388 * posix/bug-regex5.c: Fix test case because with the new
15389 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15390 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15391 file.
15392
15393 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15394
15395 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15396 downloaded from ISO, the collation order of @-. and space has changed.
15397 Therefore, this test file needed to be adapted.
15398 * localedata/fr_CA.UTF-8.in: Likewise.
15399 * localedata/fr_FR.UTF-8.in: Likewise.
15400 * localedata/uk_UA.UTF-8.in: Likewise.
15401
15402 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15403
15404 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15405 order of ȥ in the new iso14651_t1_common file.
15406 * localedata/pl_PL.UTF-8.in: Likewise.
15407
15408 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15409
15410 * localedata/locales/iso14651_t1_common: Add sections for various
15411 scripts to the iso14651_t1_common file.
15412
15413 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15414
15415 * localedata/locales/iso14651_t1_common: Use the code point of a
15416 character in the fourth collation level instead of IGNORE for all
15417 entries which have IGNORE on all 4 levels.
15418
15419 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15420
15421 * localedata/locales/iso14651_t1_common: Add some convenient collation
15422 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15423 rules similar to those in CLDR.
15424
15425 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15426
15427 * localedata/locales/iso14651_t1_common: The new version of this
15428 file downloaded from ISO contained several syntax errors which
15429 are fixed by this patch.
15430
15431 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15432
15433 * localedata/locales/iso14651_t1_common: replace all <U.....>
15434 with <U000.....> because glibc understands only 4 digit or 8 digit
15435
15436 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15437
15438 * localedata/locales/iso14651_t1_common: Necessary changes
15439 to make the file downloaded from ISO usable by glibc.
15440
15441 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15442
15443 [BZ #14095]
15444 * localedata/locales/iso14651_t1_common: Update file to
15445 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15446
15447 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15448
15449 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15450 of <nptl/pthreadP.h>
15451 (thread_attr_compare): Move function to...
15452 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15453 * sysdeps/nptl/timer_routines.h: ... new header.
15454 * sysdeps/mach/hurd/gai_misc.h: New file.
15455
15456 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15457
15458 * string/strcoll_l.c: Include <libc-diag.h>.
15459 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15460 declarations of seq1 and seq2.
15461
15462 [BZ #15105]
15463 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15464 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15465
15466 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15467
15468 [BZ #22433]
15469 [BZ #22807]
15470 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15471 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15472 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15473 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15474 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15475 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15476
15477 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15478
15479 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15480 macros used in __ptrace_request.
15481
15482 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15483
15484 [BZ #22792]
15485 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15486 to $(CC).
15487 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15488 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15489 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15490 <tcb-offsets.h>.
15491
15492 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15493
15494 [BZ #15105]
15495 * ctype/ctype.c (tolower): Use libc_hidden_def.
15496 (toupper): Likewise.
15497 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15498 [!_ISOMAC] (toupper): Likewise.
15499
15500 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15501
15502 * localedata/Makefile: Remove --quiet argument when
15503 installing locales
15504
15505 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15506
15507 [BZ #17438]
15508 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15509 in d_fmt.
15510 * localedata/locales/pt_PT (LC_TIME): likewise
15511
15512 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15513
15514 [BZ #22646]
15515 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15516 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15517 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15518
15519 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15520
15521 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15522
15523 * nptl/Makefile (routines): Remove unregister-atfork.
15524 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15525 (fork_handler_alloc): Remove function.
15526 (fork_handlers, fork_handler_init): New variables.
15527 (__fork_lock): Rename to atfork_lock.
15528 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15529 to use a dynamic array to add/remove atfork handlers.
15530 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15531 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15532 Remove declaration.
15533 (fork_handler): Remove next, refcntr, and need_signal member.
15534 (__run_fork_handler_type): New enum.
15535 (__run_fork_handlers): New prototype.
15536 * nptl/register-atfork.c: Remove file.
15537 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15538
15539 * sysdeps/nptl/nptl-signals.h: Move to ...
15540 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15541 comments.
15542 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15543 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15544 unnecessary check for SIGTIMER.
15545 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15546 remove unnecessary removal of SIGTIMER.
15547 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15548 include-signals.h rename.
15549 * nptl/pthreadP.h: Likewise.
15550 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15551 __is_internal_signal instead of __nptl_is_internal_signal.
15552
15553 2018-02-22 Andrew Waterman <andrew@sifive.com>
15554
15555 [BZ # 22884]
15556 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15557 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15558 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15559 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15560
15561 2018-02-22 DJ Delorie <dj@delorie.com>
15562
15563 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15564
15565 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15566
15567 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15568 do_misaligned, not misaligned8.
15569
15570 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15571
15572 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15573 Add memcpy_thunderx2.
15574 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15575 Increment to 4.
15576 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15577 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15578 and IS_THUNDERX2PA checks.
15579 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15580 Use macro to set name appropriately.
15581 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15582 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15583 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15584 New macro.
15585 (IS_THUNDERX2): New macro.
15586
15587 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15588
15589 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15590
15591 2018-02-21 Zack Weinberg <zackw@panix.com>
15592
15593 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15594 Define here, unconditionally.
15595 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15596 * libio/libioP.h: Remove #if 0 blocks.
15597 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15598 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15599 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15600
15601 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15602 Assume weak_alias is always defined.
15603
15604 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15605 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15606 Remove #if 0 and #ifdef TODO blocks.
15607 Assume text_set_element is always defined.
15608
15609 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15610 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15611 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15612
15613 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15614 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15615 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15616 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15617 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15618 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15619 Reformat bit flags for _flags field to make occupancy clearer.
15620 Update commentary.
15621 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15622 Keep definitions consistent with those in libio/libio.h.
15623
15624 * libio/libio.h (_IO_file_flags): Remove macro.
15625 All uses changed to _flags.
15626
15627 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15628 (__HAVE_COLUMN, _IO_BE): Don't define.
15629 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15630 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15631 * libio/libioP.h (EOF): Don't define.
15632 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15633 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15634 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15635 testing _IO_UNIFIED_JUMPTABLES.
15636
15637 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15638 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15639 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15640 (_IO_size_t): Delete; all uses changed to size_t.
15641 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15642 (_IO_off_t): Delete; all uses changed to off_t.
15643 (_IO_off64_t): Delete; all uses changed to off64_t.
15644 (_IO_pid_t): Delete; all uses changed to pid_t.
15645 (_IO_uid_t): Delete; all uses changed to uid_t.
15646 (_IO_wint_t): Delete; all uses changed to wint_t.
15647 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15648 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15649 (_IO_cookie_io_functions_t): Delete; all uses changed to
15650 cookie_io_functions_t.
15651 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15652 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15653 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15654 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15655
15656 * libio/iofopncook.c: Remove unnecessary forward declarations.
15657 * libio/iolibio.h: Correct outdated commentary.
15658 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15659 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15660 Remove unnecessary casts.
15661 * stdio-common/getline.c: Use _IO_getdelim directly.
15662 Don't redefine ssize_t.
15663 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15664 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15665 Remove outdated comments.
15666 * stdio-common/vfscanf.c: Don't redefine va_list.
15667
15668 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15669 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15670 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15671 which are always true, and __cplusplus, which is always false.
15672
15673 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15674
15675 [BZ #15105]
15676 [BZ #19463]
15677 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15678 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15679 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15680 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15681 libc_hidden_proto.
15682 [!_ISOMAC] (putc_unlocked): Likewise.
15683 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15684 define inline if [__USE_EXTERN_INLINES].
15685 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15686 putc_unlocked.
15687
15688 [BZ #15105]
15689 [BZ #19463]
15690 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15691 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15692 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15693 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15694 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15695 getc_unlocked.
15696 * time/tzfile.c (__tzfile_read): Likewise.
15697
15698 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15699
15700 [BZ #22517]
15701 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15702
15703 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15704
15705 * io/fcntl.h: Fix a typo in a comment.
15706
15707 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15708
15709 [BZ #22862]
15710 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15711 define _DEFAULT_SOURCE.
15712 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15713
15714 2018-02-21 Florian Weimer <fweimer@redhat.com>
15715
15716 [BZ #20890]
15717 * elf/cache.c (save_cache): Call fsync on temporary file before
15718 renaming it.
15719 (save_aux_cache): Call fdatasync on temporary file before renaming
15720 it.
15721
15722 2018-02-21 Florian Weimer <fweimer@redhat.com>
15723
15724 [BZ #22787]
15725 * include/caller.h: Remove file.
15726 * elf/dl-caller.c: Likewise.
15727 * elf/Makefile (dl-routines): Remove dl-caller.
15728 (shared-only-routines): Do not add dl-caller.
15729 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15730 __check_caller.
15731 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15732 member.
15733 (dl_open_worker): Do not call __check_caller.
15734 (_dl_open): Do not set caller_dl_open member.
15735 * elf/rtld.c (_rtld_global_ro): Do not initialize
15736 _dl_check_caller member.
15737 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15738 _dl_check_caller member.
15739 (_dl_check_caller): Remove declaration.
15740 * sysdeps/unix/sysv/linux/dl-execstack.c
15741 (_dl_make_stack_executable): Do not call __check_caller.
15742
15743 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15744
15745 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15746 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15747
15748 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15749
15750 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15751 description.
15752
15753 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15754
15755 [BZ #16335]
15756 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15757 of 199606L, 200112L, and 200809L.
15758 (_XOPEN_SOURCE): Document special values of 600 and 700.
15759 (_ISOC11_SOURCE): Document macro.
15760 (_ATFILE_SOURCE): Likewise.
15761 (_FORTIFY_SOURCE): Likewise.
15762
15763 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15764
15765 [BZ #15105]
15766 [BZ #19463]
15767 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15768 and define as weak alias of __ferror_unlocked. Use
15769 libc_hidden_weak.
15770 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15771 libc_hidden_proto.
15772 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15773 function if [__USE_EXTERN_INLINES].
15774 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15775 ferror_unlocked.
15776
15777 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15778
15779 [BZ #6889]
15780 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15781
15782 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15783
15784 [BZ #22818]
15785 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15786 the GLIBC_2.1 version.
15787
15788 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15789
15790 [BZ #21508]
15791 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15792 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15793 intl/tst-gettext-de.po from po/de.po by removing the
15794 POT-Creation-Date line.
15795 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15796 ../po/de.po.
15797 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15798 ../po/de.po.
15799
15800 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15801
15802 * mach/Makefile (headers): Add mach/param.h.
15803 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15804 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15805 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15806 (__ptsname_r): Move implementation to...
15807 (__ptsname_internal): ... new function. Add filling the STP
15808 structure.
15809
15810 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15811
15812 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15813 idouble to 1 ULP.
15814
15815 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15816
15817 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15818 syntax.
15819
15820 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15821
15822 * nptl/Makefile (tst-mutex8-ENV): Delete.
15823 * nptl/tst-mutex8.c (check_type):
15824 Add runtime check if mutex will be elided.
15825
15826 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15827
15828 [BZ #20980]
15829 [BZ #21234]
15830 * manual/install.texi (Configuring and compiling): Describe
15831 passing CC and CFLAGS on configure command line, not as
15832 environment variables. Use @code markup on those variables.
15833 Specify what options go in CC and what go in CFLAGS. Note the
15834 requirement to compile with optimization.
15835 * INSTALL: Regenerated.
15836
15837 [BZ #18124]
15838 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15839 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15840 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15841 __sigprocmask instead of sigprocmask.
15842 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15843 Likewise.
15844 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15845 __sigsetjmp and sigprocmask.
15846
15847 [BZ #15105]
15848 * include/argz.h (argz_next): Use libc_hidden_proto.
15849 (__argz_next): Likewise.
15850 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15851 (argz_next): Use libc_hidden_weak.
15852
15853 [BZ #15105]
15854 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15855 libc_hidden_proto.
15856 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15857 libc_hidden_def.
15858
15859 [BZ #15105]
15860 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15861 libc_hidden_proto.
15862 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15863
15864 [BZ #15105]
15865 [BZ #19463]
15866 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15867 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15868 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15869 (__feof_unlocked): New declaration, and inline function if
15870 [__USE_EXTERN_INLINES].
15871 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15872 instead of feof_unlocked.
15873 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15874 * nss/nsswitch.c (nss_parse_file): Likewise.
15875 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15876 Likewise.
15877 * time/getdate.c (__getdate_r): Likewise.
15878 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15879 Define as macro to call __feof_unlocked.
15880
15881 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15882
15883 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15884
15885 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15886
15887 * math/Makefile: Remove mpexp.c and mplog.c
15888 * sysdeps/i386/fpu/mpexp.c: Delete file.
15889 * sysdeps/i386/fpu/mplog.c: Likewise.
15890 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15891 * sysdeps/ia64/fpu/mplog.c: Likewise.
15892 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15893 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15894 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15895 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15896 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15897 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15898 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15899 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15900 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15901 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15902 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15903 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15904 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15905 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15906 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15907 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15908
15909 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15910
15911 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15912
15913 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15914
15915 * sysdeps/sh/libm-test-ulps: Update.
15916
15917 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15918
15919 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15920 idouble to 1 ULP.
15921
15922 2018-02-12 Zack Weinberg <zackw@panix.com>
15923
15924 [BZ #19239]
15925 * posix/sys/types.h: Don't include sys/sysmacros.h.
15926 * misc/sys/sysmacros.h: Remove the conditional deprecation
15927 warnings for the macros defined by this header.
15928
15929 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15930
15931 * manual/probes.texi: Remove slowexp probes.
15932 * math/Makefile: Remove slowexp.
15933 * sysdeps/generic/math_private.h (__slowexp): Remove.
15934 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15935 document error bounds.
15936 * sysdeps/i386/fpu/slowexp.c: Remove.
15937 * sysdeps/ia64/fpu/slowexp.c: Remove.
15938 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15939 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15940 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15941 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15942 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15943 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15944 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15945 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15946 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15947 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15948 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15949
15950 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15951
15952 [BZ #13932]
15953 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15954 * benchtests/pow-inputs: Update comment for slow path cases.
15955 * manual/probes.texi (slowpow_p10): Delete removed probe.
15956 (slowpow_p10): Likewise.
15957 * math/Makefile: Remove halfulp.c and slowpow.c.
15958 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15959 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15960 (__halfulp): Remove.
15961 (__slowpow): Remove.
15962 * sysdeps/i386/fpu/halfulp.c: Delete file.
15963 * sysdeps/i386/fpu/slowpow.c: Likewise.
15964 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15965 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15966 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15967 improve comments and add error analysis.
15968 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15969 (power1): Remove function:
15970 (log1): Remove error argument, add error analysis.
15971 (my_log2): Remove function.
15972 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15973 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15974 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15975 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15976 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15977 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15978 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15979 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15980 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15981 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15982 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15983 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15984 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15985 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15986
15987 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15988
15989 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15990 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15991
15992 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15993
15994 [BZ #22433]
15995 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15996 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15997 and PTRACE_SETHBPREGS.
15998
15999 2018-02-10 Zack Weinberg <zackw@panix.com>
16000
16001 [BZ #22830]
16002 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
16003 correctly.
16004 * malloc/tst-malloc-stats-cancellation.c: New test case.
16005 * malloc/Makefile: Add new test case.
16006
16007 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
16008
16009 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
16010
16011 2018-02-10 Joseph Myers <joseph@codesourcery.com>
16012
16013 * math/Makefile (libm-narrow-fns): Add add.
16014 (libm-test-funcs-narrow): Likewise.
16015 * math/Versions (GLIBC_2.28): Add narrowing add functions.
16016 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
16017 * math/gen-auto-libm-tests.c (test_functions): Add add.
16018 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
16019 (NARROW_ADD_ROUND_TO_ODD): Likewise.
16020 (NARROW_ADD_TRIVIAL): Likewise.
16021 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
16022 macro.
16023 (__daddl): Likewise.
16024 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
16025 dadd.
16026 (CFLAGS-nldbl-dadd.c): New variable.
16027 (CFLAGS-nldbl-fadd.c): Likewise.
16028 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
16029 __nldbl_daddl.
16030 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
16031 prototype.
16032 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
16033 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
16034 * math/auto-libm-test-in: Add tests of add.
16035 * math/auto-libm-test-out-narrow-add: New generated file.
16036 * math/libm-test-narrow-add.inc: New file.
16037 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
16038 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
16039 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
16040 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
16041 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
16042 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
16043 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
16044 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
16045 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
16046 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
16047 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
16048 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
16049 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
16050 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
16051 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
16052 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
16053 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
16054 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
16055 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16056 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
16057 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
16058 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
16059 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
16060 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
16061 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
16062 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
16063 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
16064 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
16065 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
16066 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
16067 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
16068 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
16069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
16070 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
16071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
16072 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
16073 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16074 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16075 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16076 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16077 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16078 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16079 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16080 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16081 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16082 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16083
16084 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16085 (f128-pairs): New variable.
16086 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16087 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16088 to CFLAGS.
16089 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16090 Also make tests add $(f128-loader-link) to gnulib-tests.
16091
16092 2018-02-09 DJ Delorie <dj@redhat.com>
16093
16094 [BZ #22827]
16095 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16096 64-bit ELF type for 64-bit ELF objects.
16097
16098 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16099
16100 * math/libm-test-driver.c (snan_tests_arg): New variable.
16101 * math/libm-test-support.h (snan_tests_arg): New declaration.
16102 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16103
16104 * math/Makefile (test-type-pairs): New variable.
16105 (test-type-pairs-f64xf128-yes): Likewise.
16106 (tests): Add test-narrow-macros.
16107 (libm-test-funcs-narrow): New variable.
16108 (libm-test-c-narrow): Likewise.
16109 (generated): Add $(libm-test-c-narrow).
16110 (libm-tests-base-narrow): New variable.
16111 (libm-tests-narrow): Likewise.
16112 (libm-tests): Add $(libm-tests-narrow).
16113 (libm-tests-for-type): Handle $(libm-tests-narrow).
16114 (libm-test-c-narrow-obj): New variable.
16115 ($(libm-test-c-narrow-obj)): New rule.
16116 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16117 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16118 $(o-iterator) to set dependencies and CFLAGS.
16119 * math/gen-auto-libm-tests.c: Document use for narrowing
16120 functions.
16121 (output_for_one_input_case): Take argument NARROW.
16122 (generate_output): Likewise. Update call to
16123 output_for_one_input_case.
16124 (main): Take --narrow option. Update call to generate_output.
16125 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16126 (apply_lit): Update call to _apply_lit.
16127 (apply_arglit): New function.
16128 (parse_args): Handle "a" arguments.
16129 (parse_auto_input): Handle format names using ":".
16130 * math/README.libm-test: Document "a" parameter type.
16131 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16132 (ARG_TYPE_TRUE_MIN): Likewise.
16133 (ARG_TYPE_MAX): Likwise.
16134 (ARG_MIN_EXP): Likewise.
16135 (ARG_MAX_EXP): Likewise.
16136 (ARG_MANT_DIG): Likewise.
16137 (TEST_COND_arg_ibm128): Likewise.
16138 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16139 (TEST_COND_arg_fmt): New macro.
16140 (init_max_error): Update prototype.
16141 * math/libm-test-support.c (test_ibm128): New variable.
16142 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16143 instead of using [TEST_COND_ibm128] conditional.
16144 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16145 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16146 [TEST_NARROW] (TEST_MSG): New definition.
16147 (arg_plus_zero): New macro.
16148 (arg_minus_zero): Likewise.
16149 (arg_plus_infty): Likewise.
16150 (arg_minus_infty): Likewise.
16151 (arg_qnan_value_pl): Likewise.
16152 (arg_qnan_value): Likewise.
16153 (arg_snan_value_pl): Likewise.
16154 (arg_snan_value): Likewise.
16155 (arg_max_value): Likewise.
16156 (arg_min_value): Likewise.
16157 (arg_min_subnorm_value): Likewise.
16158 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16159 (RUN_TEST_LOOP_aa_f): New macro.
16160 (TEST_SUFF): New macro.
16161 (TEST_SUFF_STR): Likewise.
16162 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16163 (TEST_COND_any_ibm128): New macro.
16164 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16165 this_func. Update call to init_max_error.
16166 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16167 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16168 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16169 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16170 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16171 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16172 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16173 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16174 * math/test-math-vector.h (TEST_NARROW): Likewise.
16175 * math/test-arg-double.h: New file.
16176 * math/test-arg-float128.h: Likewise.
16177 * math/test-arg-float32x.h: Likewise.
16178 * math/test-arg-float64.h: Likewise.
16179 * math/test-arg-float64x.h: Likewise.
16180 * math/test-arg-ldouble.h: Likewise.
16181 * math/test-math-narrow.h: Likewise.
16182 * math/test-narrow-macros.c: Likewise.
16183 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16184 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16185 test-narrow-macros-ldbl-64.
16186 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16187
16188 * math/bits/mathcalls-narrow.h: New file.
16189 * include/bits/mathcalls-narrow.h: Likewise.
16190 * math/math-narrow.h: Likewise.
16191 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16192 (__MATHCALL_NARROW_ARGS_2): Likewise.
16193 (__MATHCALL_NARROW_ARGS_3): Likewise.
16194 (__MATHCALL_NARROW_NORMAL): Likewise.
16195 (__MATHCALL_NARROW_REDIR): Likewise.
16196 (__MATHCALL_NARROW): Likewise.
16197 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16198 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16199 defined.
16200 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16201 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16202 (libm-narrow-fns): New variable.
16203 (libm-narrow-types-basic): Likewise.
16204 (libm-narrow-types-ldouble-yes): Likewise.
16205 (libm-narrow-types-float128-yes): Likewise.
16206 (libm-narrow-types-float128-alias-yes): Likewise.
16207 (libm-narrow-types): Likewise.
16208 (libm-routines): Add narrowing functions.
16209 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16210 (libc_feholdexcept_setroundf128): New macro.
16211 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16212 * sysdeps/ieee754/float128/float128_private.h: Include
16213 <math/math-narrow.h>.
16214 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16215 Undefine and redefine.
16216 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16217 (libm_alias_float_ldouble): Undefine and redefine.
16218 (libm_alias_double_ldouble): Likewise.
16219
16220 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16221
16222 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16223
16224 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16225 FPCR/FPSR.
16226
16227 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16228
16229 * manual/creature.texi: Convert references to gcc.info to gcc.
16230 * manual/stdio.texi: Likewise.
16231 * manual/string.texi: Likewise.
16232
16233 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16234
16235 [BZ #17979]
16236 * posix/bits/types.h (__int_least8_t): New typedef.
16237 (__uint_least8_t): Likewise.
16238 (__int_least16_t): Likewise.
16239 (__uint_least16_t): Likewise.
16240 (__int_least32_t): Likewise.
16241 (__uint_least32_t): Likewise.
16242 (__int_least64_t): Likewise.
16243 (__uint_least64_t): Likewise.
16244 * sysdeps/generic/stdint.h (int_least8_t): Define using
16245 __int_least8_t.
16246 (int_least16_t): Define using __int_least16_t.
16247 (int_least32_t): Define using __int_least32_t.
16248 (int_least64_t): Define using __int_least64_t.
16249 (uint_least8_t): Define using __uint_least8_t.
16250 (uint_least16_t): Define using __uint_least16_t.
16251 (uint_least32_t): Define using __uint_least32_t.
16252 (uint_least64_t): Define using __uint_least64_t.
16253 * wcsmbs/uchar.h: Include <bits/types.h>.
16254 (char16_t): Define using __uint_least16_t conditional only on
16255 [!__USE_ISOCXX11].
16256 (char32_t): Define using __uint_least32_t conditional only on
16257 [!__USE_ISOCXX11].
16258 * wcsmbs/test-char-types.c: New file.
16259 * wcsmbs/Makefile (tests): Add test-char-types.
16260
16261 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16262 version to 4.0.1.
16263
16264 2018-02-07 Zack Weinberg <zackw@panix.com>
16265
16266 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16267 Delete all contents except for definitions of _G_HAVE_MMAP and
16268 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16269 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16270 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16271 change as above.
16272
16273 * libio/libio.h: Don't include bits/_G_config.h here.
16274 Include stddef.h with __need_wchar_t defined. Include
16275 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16276 Define _IO_iconv_t here, directly.
16277 Don't define _IO_HAVE_ST_BLKSIZE.
16278 * libio/libioP.h: Include _G_config.h here. Move include of
16279 shlib-compat.h up with rest of includes. Simplify conditionals
16280 controlling definition of _IO_JUMPS_OFFSET.
16281
16282 * csu/init.c: Remove always-true #if around entire file.
16283 Don't include stdio.h. Set _IO_stdin_used to hardwired
16284 constant 0x20001, and update commentary.
16285 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16286 Replace all uses of _G_va_list with __gnuc_va_list.
16287 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16288 instead of #if _IO_HAVE_ST_BLKSIZE.
16289 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16290 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16291 not #ifdef.
16292
16293 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16294 multiple-include guard to match.
16295 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16296 into this file.
16297 Remove preprocessor conditionals that are always true and/or
16298 redundant to other preprocessor conditionals in the same nest.
16299 Include shlib-compat.h unconditionally.
16300 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16301 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16302 defined after including stdio.h.
16303 Use __BEGIN_DECLS/__END_DECLS.
16304
16305 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16306 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16307 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16308
16309 2018-02-07 Zack Weinberg <zackw@panix.com>
16310
16311 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16312 New single-type headers split from _G_config.h.
16313 * libio/bits/types/cookie_io_functions_t.h
16314 * libio/bits/types/struct_FILE.h
16315 New single-type headers split from libio.h.
16316
16317 * libio/Makefile: Install the above new headers. Don't install
16318 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16319 bits/libio-ldbl.h.
16320 * libio/_G_config.h, libio/libio.h: Delete file.
16321
16322 * libio/bits/libio.h: Remove improper-inclusion guard.
16323 Include stdio.h and don't repeat anything that it does.
16324 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16325 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16326 __io_read_fn as cookie_read_function_t,
16327 __io_write_fn as cookie_write_function_t,
16328 __io_seek_fn as cookie_seek_function_t,
16329 __io_close_fn as cookie_close_function_t,
16330 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16331 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16332 here, in the "compatibility defines" section. Remove an #if 0
16333 block. Use the "body" macros from bits/types/struct_FILE.h to
16334 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16335 and _IO_ferror_unlocked.
16336 Move prototypes of __uflow and __overflow...
16337
16338 * libio/stdio.h: ...here. Don't include bits/libio.h.
16339 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16340 directly from stdarg.h. Include bits/types/__fpos_t.h,
16341 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16342 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16343 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16344 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16345 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16346 __ssize_t, not _IO_ssize_t. Unconditionally define
16347 BUFSIZ as 8192 and EOF as (-1).
16348
16349 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16350 macros from bits/types/struct_FILE.h instead of _IO_* macros
16351 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16352 instead of _IO_ssize_t.
16353 * libio/bits/stdio2.h: Similarly.
16354
16355 * libio/iolibio.h: Add multiple-include guard.
16356 Include bits/libio.h after stdio.h.
16357 * libio/libioP.h: Add multiple-include guard.
16358 Include stdio.h and bits/libio.h before iolibio.h.
16359
16360 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16361 * include/bits/types/cookie_io_functions_t.h
16362 * include/bits/types/struct_FILE.h: New wrappers.
16363
16364 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16365 Get definitions of _G_fpos_t and _G_fpos64_t from
16366 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16367 respectively. Remove improper-inclusion guards.
16368
16369 * conform/data/stdio.h-data: Update expectations of va_list.
16370 * scripts/check-installed-headers.sh: Remove special case for
16371 libio.h and _G_config.h.
16372
16373 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16374
16375 [BZ #15105]
16376 [BZ #19463]
16377 * include/sys/sysmacros.h [!_ISOMAC]
16378 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16379 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16380 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16381 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16382 libc_hidden_proto.
16383 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16384 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16385 Likewise.
16386 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16387 Undefine and redefine to add use __gnu_dev_ prefix.
16388 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16389 Likewise.
16390 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16391 and define as hidden inline function.
16392 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16393 Likewise.
16394 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16395 Likewise.
16396 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16397 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16398 (gnu_dev_minor): Likewise.
16399 (gnu_dev_makedev): Likewise.
16400 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16401 makedev.
16402 * posix/wordexp.c (exec_comm_child): Likewise.
16403 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16404 instead of minor and __gnu_dev_major instead of major.
16405 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16406 __gnu_dev_major instead of major.
16407 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16408 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16409 instead of gnu_dev_minor.
16410 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16411 (SLAVE_P): Likewise.
16412 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16413 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16414 instead of major.
16415
16416 [BZ #21313]
16417 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16418 in another place.
16419 * locale/weightwc.h (findidx): Likewise.
16420
16421 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16422
16423 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16424 (slowlog_inexact): Likewise
16425 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16426 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16427
16428 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16429
16430 [BZ #22797]
16431 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16432 missing second underscore to parameter name.
16433
16434 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16435
16436 [BZ #14508]
16437 [BZ #15512]
16438 [BZ #17082]
16439 [BZ #20530]
16440 * bits/byteswap.h: Update file comment. Do not include
16441 <bits/byteswap-16.h>.
16442 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16443 constant.
16444 (__bswap_16): Define as inline function.
16445 (__bswap_constant_32): Reformat definition.
16446 (__bswap_32): Always define as inline function, not macro, using
16447 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16448 otherwise __bswap_constant_32.
16449 (__bswap_constant_64): Reformat definition. Do not use
16450 __extension__ here.
16451 (__bswap_64): Always define as inline function, not macro. Use
16452 __extension__ on function definition. Use __builtin_bswap64 if
16453 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16454 * string/test-endian-file-scope.c: New file.
16455 * string/test-endian-sign-conversion.c: Likewise.
16456 * string/Makefile (headers): Remove bits/byteswap-16.h.
16457 (tests): Add test-endian-file-scope and
16458 test-endian-sign-conversion.
16459 (CFLAGS-test-endian-sign-conversion.c): New variable.
16460 * bits/byteswap-16.h: Remove file.
16461 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16462 * sysdeps/ia64/bits/byteswap.h: Likewise.
16463 * sysdeps/m68k/bits/byteswap.h: Likewise.
16464 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16465 * sysdeps/s390/bits/byteswap.h: Likewise.
16466 * sysdeps/tile/bits/byteswap.h: Likewise.
16467 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16468 * sysdeps/x86/bits/byteswap.h: Likewise.
16469
16470 [BZ #17721]
16471 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16472 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16473 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16474 199901L] (__restrict): Define to restrict.
16475
16476 [BZ #19667]
16477 * string/testcopy.c: Include <support/support.h>. Do not include
16478 <malloc.h>. Use <support/test-driver.c>.
16479 (main): Rename to do_test. Make static. Use xmalloc instead of
16480 malloc.
16481
16482 [BZ #13575]
16483 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16484 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16485 (SSIZE_MAX): Define to INT_MAX.
16486 * posix/test-ssize-max.c: New file.
16487 * posix/Makefile (tests): Add test-ssize-max.
16488
16489 [BZ #19668]
16490 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16491 <support/support.h>. Do not include <malloc.h>.
16492 (query_auxv): Use xmalloc instead of malloc.
16493
16494 [BZ #14553]
16495 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16496 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16497 instead of loff_t.
16498
16499 2018-02-06 Florian Weimer <fweimer@redhat.com>
16500
16501 [BZ #18023]
16502 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16503 Use scratch_buffer instead of extend_alloca.
16504
16505 2018-02-06 Zack Weinberg <zackw@panix.com>
16506
16507 * libio/stdio.h: Don't define getc or putc as macros.
16508 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16509 not _IO_getc and _IO_putc.
16510
16511 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16512 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16513
16514 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16515
16516 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16517 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16518
16519 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16520
16521 [BZ #14890]
16522 * elf/elf.h (NT_PRFPREG): New macro.
16523 (NT_S390_VXRS_LOW): Likewise.
16524 (NT_S390_VXRS_HIGH): Likewise.
16525 (NT_S390_GS_CB): Likewise.
16526 (NT_S390_GS_BC): Likewise.
16527 (NT_S390_RI_CB): Likewise.
16528
16529 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16530 (MAP_SYNC): New macro.
16531 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16532 Likewise.
16533 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16534 (MAP_SYNC): Likewise.
16535 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16536 (MAP_SYNC): Likewise.
16537 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16538 (MAP_SYNC): Likewise.
16539 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16540 (MAP_SYNC): Likewise.
16541 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16542 (MAP_SYNC): Likewise.
16543 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16544 (MAP_SYNC): Likewise.
16545 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16546 Likewise.
16547 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16548 Likewise.
16549
16550 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16551 (MAP_SHARED_VALIDATE): New macro.
16552 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16553 (MAP_SHARED_VALIDATE): Likewise.
16554
16555 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16556
16557 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16558 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16559 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16560
16561 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16562
16563 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16564 (DT_NUM): Updated to 35.
16565
16566 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16567
16568 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16569 __builtin_expect with __glibc_likely and __glibc_unlikely.
16570 (elf_machine_rela): Likewise.
16571 (elf_machine_lazy_rel): Likewise.
16572
16573 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16574
16575 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16576 __builtin_expect with __glibc_likely and __glibc_unlikely.
16577 (elf_machine_lazy_rel): Likewise.
16578
16579 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16580
16581 [BZ #22638]
16582 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16583 SHARED.
16584 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16585
16586 2018-02-05 Andreas Schwab <schwab@suse.de>
16587
16588 [BZ #22761]
16589 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16590 string.
16591
16592 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16593
16594 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16595 not check against PTHREAD_STACK_MIN.
16596
16597 2018-02-02 Sean McKean <smckean83@gmail.com>
16598
16599 [BZ #22735]
16600 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16601
16602 2018-02-02 Florian Weimer <fweimer@redhat.com>
16603
16604 [BZ #22753]
16605 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16606 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16607 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16608 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16609 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16610 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16611 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16612 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16613 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16614 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16615 * misc/tst-preadvwritev2.c (do_test): Call it.
16616 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16617
16618 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16619
16620 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16621
16622 * benchtests/bench-memcmp.c: Print json instead of plain text.
16623
16624 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16625 every test run.
16626
16627 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16628
16629 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16630 version to 4.15.
16631 (s390_sthyi): New syscall.
16632
16633 * sysdeps/generic/ldbl-classify-compat.h: New file.
16634 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16635 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16636 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16637 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16638 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16639 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16640 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16641 <ldbl-classify-compat.h>.
16642 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16643 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16644 <ldbl-classify-compat.h>.
16645 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16646 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16647 <ldbl-classify-compat.h>.
16648 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16649 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16650 <ldbl-classify-compat.h>.
16651 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16652 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16653 <ldbl-classify-compat.h>.
16654 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16655 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16656 <ldbl-classify-compat.h>.
16657 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16658 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16659 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16660 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16661 * sysdeps/microblaze/math_private.h: Likewise.
16662 * sysdeps/nios2/math_private.h: Likewise.
16663 * sysdeps/sh/math_private.h: Likewise.
16664
16665 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16666 * sysdeps/m68k/coldfire/math_private.h: ... here.
16667 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16668 * sysdeps/tile/math_private.h: Likewise.
16669 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16670 Remove macro.
16671 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16672 Likewise.
16673
16674 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16675 Remove macro.
16676 (libc_fetestexcept): Likewise.
16677 (libc_feupdateenv_test): Likewise.
16678 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16679 (libc_fetestexcept): Likewise.
16680 (libc_feupdateenv_test): Likewise.
16681 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16682 (libc_fetestexcept): Likewise.
16683 (libc_feupdateenv_test): Likewise.
16684 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16685 (libc_fetestexcept): Likewise.
16686 (libc_feupdateenv_test): Likewise.
16687
16688 * sysdeps/generic/math_private.h
16689 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16690 New inline function.
16691 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16692 Likewise.
16693
16694 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16695 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16696 * sysdeps/generic/math_private.h
16697 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16698 inline function.
16699 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16700 Likewise.
16701 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16702 Likewise.
16703 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16704 Likewise.
16705 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16706 Likewise.
16707 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16708 Likewise.
16709 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16710 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16711 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16712 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16713 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16714 (__fegetenv): Likewise.
16715 (fesetenv): Likewise.
16716 (__fesetenv): Likewise.
16717 (feupdateenv): Likewise.
16718 (__feupdateenv): Likewise.
16719 (fegetround): Likewise.
16720 (__fegetround): Likewise.
16721 (fesetround): Likewise.
16722 (__fesetround): Likewise.
16723
16724 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16725 (feraiseexcept): New macro.
16726 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16727 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16728 Remove macro.
16729 (__feraiseexcept): Likewise.
16730 (feclearexcept): Likewise.
16731 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16732 (__feraiseexcept): Likewise.
16733 (feclearexcept): Likewise.
16734 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16735 (__feraiseexcept): Likewise.
16736 (feclearexcept): Likewise.
16737 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16738 (__feraiseexcept): Likewise.
16739 (feclearexcept): Likewise.
16740 (fetestexcept): Likewise.
16741
16742 * sysdeps/m68k/coldfire/math-tests.h: New file.
16743
16744 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16745 * sysdeps/m68k/bits/fenv.h: ... here.
16746 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16747 not define.
16748 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16749 Likewise.
16750 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16751 Likewise.
16752 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16753 Likewise.
16754 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16755 Likewise.
16756 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16757 Define to 0.
16758 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16759 (__FE_UNDEFINED): New enum constant.
16760 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16761 Do not define.
16762 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16763 Likewise.
16764 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16765 Likewise.
16766 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16767 to match generic bits/fenv.h.
16768 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16769 Do not define.
16770
16771 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16772 packed on bits.
16773 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16774 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16775 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16776 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16777
16778 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16779 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16780 Joseph Myers <joseph@codesourcery.com>
16781
16782 [BZ #21314]
16783 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16784 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16785 computation using c.
16786 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16787 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16788 computation using c.
16789
16790 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16791
16792 * version.h (RELEASE): Set to "development".
16793 (VERSION): Set to "2.27.9000".
16794 * NEWS (2.28): New section.
16795
16796 * version.h (RELEASE): Set to "stable".
16797 (VERSION): Set to "2.27".
16798 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16799
16800 * NEWS: Add the list of bugs fixed in 2.27.
16801
16802 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16803
16804 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16805 against PTHREAD_STACK_MIN.
16806
16807 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16808
16809 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16810 New entries.
16811 (Rafal Luzynski, Andreas Schwab): Update.
16812
16813 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16814
16815 [BZ #10871]
16816 * NEWS: List the languages which actually use the alternative
16817 months feature in this release. Also explain that "alt_mon" and
16818 "ab_alt_mon" are optional.
16819
16820 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16821
16822 [BZ #22765]
16823 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16824
16825 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16826
16827 * manual/install.texi (Tools for Compilation): Update the newest
16828 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16829 * INSTALL: Regenerated.
16830
16831 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16832
16833 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16834 instead of __builtin_expect.
16835
16836 2018-01-30 Florian Weimer <fweimer@redhat.com>
16837
16838 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16839 data.
16840 * nss/tst-nss-getpwent.c (do_test): Likewise.
16841
16842 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16843
16844 [BZ #10871]
16845 * localedata/locales/hr_HR (mon): Rename to...
16846 (alt_mon): This.
16847 (mon): Import from CLDR (genitive case).
16848 (d_t_fmt): Update the comment.
16849
16850 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16851
16852 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16853 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16854 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16855
16856 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16857
16858 * mach/Versions: Fix version when __mach_host_self_ was added.
16859 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16860 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16861 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16862 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16863 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16864 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16865 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16866 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16867 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16868 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16869 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16870 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16871 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16872 || to respect codestyle.
16873 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16874 (do_test_bz20181): Rename accordingly.
16875 * malloc/malloc.c: Include <assert.h>.
16876 (assert): Do not define.
16877 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16878 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16879 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16880 * sysdeps/mach/hurd/hp-timing.h: New file.
16881 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16882
16883 2018-01-29 Darius Rad <darius@bluespec.com>
16884
16885 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16886
16887 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16888
16889 * sysdeps/init_array/crti.S (.section .init_array): Add
16890 PREINIT_FUNCTION when defined.
16891 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16892 * config.h.in: Regenerate.
16893 * manual/platform.texi: Add RISC-V documenation for
16894 __riscv_flush_icache.
16895 * sysdeps/riscv/__longjmp.S: New file.
16896 * sysdeps/riscv/backtrace.c: Likewise.
16897 * sysdeps/riscv/bits/endian.h: Likewise.
16898 * sysdeps/riscv/bits/setjmp.h: Likewise.
16899 * sysdeps/riscv/bits/wordsize.h: Likewise.
16900 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16901 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16902 * sysdeps/riscv/dl-trampoline.S: Likewise.
16903 * sysdeps/riscv/gccframe.h: Likewise.
16904 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16905 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16906 * sysdeps/riscv/machine-gmon.h: Likewise.
16907 * sysdeps/riscv/memusage.h: Likewise.
16908 * sysdeps/riscv/setjmp.S: Likewise.
16909 * sysdeps/riscv/sys/asm.h: Likewise.
16910 * sysdeps/riscv/tls-macros.h: Likewise.
16911 * sysdeps/riscv/dl-tls.h: New file.
16912 * sysdeps/riscv/libc-tls.c: Likewise.
16913 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16914 * sysdeps/riscv/nptl/tls.h: Likewise.
16915 * sysdeps/riscv/stackinfo.h: Likewise.
16916 * sysdeps/riscv/bits/fenv.h: New file.
16917 * sysdeps/riscv/e_sqrtl.c: Likewise.
16918 * sysdeps/riscv/fpu_control.h: Likewise.
16919 * sysdeps/riscv/math-tests.h: Likewise.
16920 * sysdeps/riscv/nofpu/Implies: Likewise.
16921 * sysdeps/riscv/sfp-machine.h: Likewise.
16922 * sysdeps/riscv/tininess.h: Likewise.
16923 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16924 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16925 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16926 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16927 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16928 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16929 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16930 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16931 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16932 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16933 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16934 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16935 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16936 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16937 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16938 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16939 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16940 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16941 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16942 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16943 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16944 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16945 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16946 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16947 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16948 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16949 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16950 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16951 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16952 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16953 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16954 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16955 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16956 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16957 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16958 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16959 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16960 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16961 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16962 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16963 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16964 * sysdeps/riscv/rvf/math_private.h: Likewise.
16965 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16966 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16967 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16968 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16969 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16970 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16971 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16972 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16973 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16974 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16975 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16976 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16977 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16978 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16979 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16980 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16981 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16982 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16983 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16984 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16985 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16986 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16987 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16988 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16989 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16990 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16991 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16992 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16993 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16994 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16995 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16996 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16997 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16998 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16999 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
17000 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
17001 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
17002 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
17003 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
17004 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
17005 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
17006 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
17007 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
17008 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
17009 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
17010 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
17011 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
17012 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
17013 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
17014 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
17015 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
17016 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
17017 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
17018 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
17019 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
17020 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
17021 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
17022 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
17023 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
17024 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
17025 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
17026 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
17027 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
17028 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
17029 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
17030 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
17031 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
17032 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
17033 * sysdeps/riscv/Implies: New file.
17034 * sysdeps/riscv/Makefile: Likewise.
17035 * sysdeps/riscv/configure: Likewise.
17036 * sysdeps/riscv/configure.ac: Likewise.
17037 * sysdeps/riscv/nptl/Makefile: Likewise.
17038 * sysdeps/riscv/preconfigure: Likewise.
17039 * sysdeps/riscv/rv64/Implies-after: Likewise.
17040 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
17041 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
17042 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
17043 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
17044 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
17045 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
17046 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
17047 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
17048 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
17049 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
17050 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
17051 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
17052 (Config): Likewise.
17053
17054 2018-01-29 Florian Weimer <fweimer@redhat.com>
17055
17056 [BZ #22701]
17057 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
17058 libnsl_hidden_proto.
17059 * include/rpcsvc/yp.h (yp_xdrall): Declare with
17060 libnsl_hidden_proto.
17061 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
17062 * nis/Makefile (libnsl-routines): Add nss-default only for
17063 build-obsolete-nsl.
17064 * nis/nis_defaults.c (__nis_default_ttl): Add
17065 libnsl_hidden_nolink_def.
17066 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
17067 declaration.
17068 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
17069 * nis/ypclnt.c (yp_maplist): Likewise.
17070
17071 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
17072
17073 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17074 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17075
17076 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17077
17078 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17079 clean -dxfq for git updates when replacing sources.
17080
17081 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17082 --disable-libcilkrts unconditionally, not just for the final GCC
17083 build for Hurd.
17084
17085 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17086 version to 4.15.
17087
17088 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17089
17090 [BZ #10871]
17091 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17092 case).
17093
17094 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17095
17096 [BZ #10871]
17097 * localedata/locales/be_BY (mon): Rename to...
17098 (alt_mon): This, then synchronize with CLDR (nominative case).
17099 (abmon): Rename to...
17100 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17101 (mon): Import from CLDR (genitive case).
17102 (abmon): Likewise.
17103 * localedata/locales/be_BY@latin (mon): Rename to...
17104 (alt_mon): This.
17105 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17106
17107 * localedata/locales/be_BY@latin (lang_name): Reworded to
17108 "biełaruskaja mova".
17109
17110 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17111
17112 [BZ #10871]
17113 * localedata/locales/el_CY (mon): Renamed to...
17114 (alt_mon): This.
17115 (mon): Import from CLDR (genitive case).
17116 * localedata/locales/el_GR: Likewise.
17117
17118 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17119
17120 [BZ #10871]
17121 * localedata/locales/ru_RU (mon): Rename to...
17122 (alt_mon): This.
17123 (abmon): Rename to...
17124 (ab_alt_mon): This.
17125 (mon): Import from CLDR (genitive case).
17126 (abmon): Copy from the old content except the 5th month which is
17127 now in the genitive case, even when abbreviated.
17128 * localedata/locales/ru_UA: Likewise.
17129 * time/tst-strptime.c (day_tests): Add an actual example of
17130 a difference between %b and %Ob in Russian.
17131
17132 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17133
17134 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17135 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17136 a `c' variable.
17137 * resolv/res-close.c: Include <stdlib.h>.
17138 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17139 <sys/wait.h>, <time.h>, <sys/uio.h>.
17140 (NOT_CANCEL_H): Add inclusion guard.
17141 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17142 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17143 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17144 return 0.
17145 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17146 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17147 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17148 instead of void *.
17149 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17150 timer_ptr2id to cast struct timer_node * to void *.
17151 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17152 --disable-libcilkrts to gcc configure.
17153 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17154 and make them the default for now.
17155 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17156 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17157 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17158 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17159 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17160 MACH_IPC_COMPAT.
17161 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17162 __task_terminate would ever return successfully.
17163 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17164 to global scope.
17165 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17166 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17167 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17168 critical section to make code simpler and avoid warning.
17169 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17170 critical section to make code simpler and avoid warning.
17171 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17172 const char * instead of char *.
17173 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17174 __hurd_file_name_split, hurd_file_name_split,
17175 __hurd_directory_name_split, hurd_directory_name_split,
17176 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17177 hurd_file_name_path_lookup): Make lookup function parameter take a
17178 const char *name instead of char *name.
17179 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17180 __hurd_directory_name_split): Likewise.
17181 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17182 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17183 * sysdeps/mach/hurd/check_native.c: New file.
17184 * sysdeps/mach/hurd/check_pf.c: New file.
17185 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17186 (__freeifaddrs): Define macro to freeifaddrs.
17187 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17188 * sysdeps/mach/libmachuser.abilist: New file.
17189 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17190 (do_test_bz20181): Rename accordingly.
17191 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17192 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17193 <sys/mount.h>.
17194 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17195 version only if __USE_EXTERN_INLINES is defined.
17196 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17197 __hurd_sockfail): Likewise.
17198 (_hurd_fd_get): Always declare functions, and provide inline versions
17199 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17200 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17201 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17202 _hurd_port_set): Always declare functions, and provide inline versions
17203 only if __USE_EXTERN_INLINES and _LIBC are defined and
17204 IS_IN(libc).
17205 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17206 _hurd_critical_section_unlock): Likewise.
17207 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17208 * __hurd_threadvar_location): Likewise.
17209 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17210 _hurd_userlink_clear): Likewise.
17211 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17212 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17213 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17214 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17215 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17216 __spin_lock_locked): Likewise.
17217 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17218 __spin_lock_locked): Likewise.
17219 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17220 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17221 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17222 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17223 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17224 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17225 _POSIX_NO_TRUNC): Define to 0.
17226 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17227 check size against PTHREAD_STACK_MIN.
17228 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17229 IS_IN(libpthread)]: Include <sigsetops.h>.
17230 * mach/Makefile (user-interfaces): Add mach/gnumach.
17231 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17232 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17233 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17234 instead of invalid -1.
17235 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17236 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17237 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17238 <net/ppp_defs.h>.
17239
17240 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17241
17242 * hurd/fcntl-internal.h: New file.
17243
17244 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17245
17246 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17247
17248 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17249
17250 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17251
17252 [BZ #22701]
17253 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17254 Build only shared objects.
17255
17256 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17257
17258 * README: Update for hppa.
17259
17260 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17261
17262 * sysdeps/sparc/fpu/libm-test-ulps: Update
17263 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17264
17265 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17266
17267 Revert:
17268
17269 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17270
17271 [BZ #22563]
17272 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17273 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17274 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17275 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17276 to feature_1.
17277
17278 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17279
17280 [BZ #22563]
17281 * bits/types/__cancel_jmp_buf_tag.h: New file.
17282 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17283 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17284 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17285 * nptl/Makefile (headers): Add
17286 bits/types/__cancel_jmp_buf_tag.h.
17287 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17288 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17289 * sysdeps/nptl/pthread.h: Include
17290 <bits/types/__cancel_jmp_buf_tag.h>.
17291 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17292 __cancel_jmp_buf.
17293 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17294
17295 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17296
17297 [BZ #10871]
17298 * localedata/locales/uk_UA (mon): Renamed to...
17299 (alt_mon): This.
17300 (alt_digits): "0" removed and then renamed to...
17301 (mon): This.
17302 (date_fmt): Definition changed not to use the alternative
17303 digits hack.
17304
17305 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17306
17307 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17308 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17309 * elf/elf.h (EF_RISCV_RVC): New define.
17310 (EF_RISCV_FLOAT_ABI): Likewise.
17311 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17312 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17313 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17314 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17315 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17316 define.
17317 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17318
17319 2018-01-25 Andreas Schwab <schwab@suse.de>
17320
17321 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17322 single quotes.
17323 * sysdeps/gnu/configure: Regenerate.
17324 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17325 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17326 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17327 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17328 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17329 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17330 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17331 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17332
17333 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17334
17335 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17336 URL, and run autoconf, make it the default for now.
17337
17338 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17339
17340 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17341 soft-float ColdFire configuration.
17342
17343 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17344 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17345 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17346
17347 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17348 MicroBlaze file.
17349
17350 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17351 ....
17352 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17353 ... here.
17354 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17355 New file.
17356
17357 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17358 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17359 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17360 file.
17361
17362 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17363
17364 [BZ #22742]
17365 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17366 Rename to __reserved and add comment.
17367 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17368 Rename to __reserved.
17369
17370 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17371
17372 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17373 i686-gnu configurations.
17374 (Context.run_builds): Include mig, gnumach and hurd in components
17375 considered.
17376 (Context.checkout): Add mig, gnumach and hurd to components.
17377 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17378 hurd.
17379 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17380 (Config.build): Install gnumach headers, build mig and install
17381 hurd headers for 'gnu' OS.
17382 (Config.install_gnumach_headers): New function.
17383 (Config.install_hurd_headers): Likewise.
17384 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17385 when building for 'gnu' OS.
17386
17387 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17388
17389 * manual/tunables.texi (Hardware Capability Tunables): Fix
17390 spelling.
17391
17392 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17393
17394 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17395 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17396 (ALTMON_11, ALTMON_12): Improve documentation.
17397 * manual/time.texi (strftime): Likewise.
17398
17399 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17400
17401 [BZ #10871]
17402 * localedata/locales/pl_PL: Alternative month names added,
17403 primary month names are genitive now.
17404 * time/tst-strptime.c (day_tests): Actually use a genitive case
17405 of a month name in Polish language.
17406
17407 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17408
17409 [BZ #10871]
17410 * manual/locale.texi: Document ALTMON_1..12 constants for
17411 nl_langinfo. Specify when to use ALTMON instead of MON.
17412 * manual/time.texi (strftime, strptime): Document GNU extension
17413 permitting O modifier with %B and %b. Specify when to use
17414 %OB instead of %B.
17415
17416 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17417
17418 [BZ #10871]
17419 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17420 names, define them as the same as abbreviated month names explicitly.
17421 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17422 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17423 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17424 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17425 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17426 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17427 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17428 _NL_WABALTMON_12): New enum constants.
17429 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17430 wab_alt_mon, and ab_alt_mon_defined members.
17431 (time_output): Output ab_alt_mon and wab_alt_mon members.
17432 (time_read): Read them, initialize them as copies of abmon and wabmon
17433 respectively if they are missing, initialize ab_alt_mon_defined.
17434 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17435 * locale/programs/locfile-kw.h: Regenerate.
17436 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17437 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17438 and ru_RU.UTF-8.
17439 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17440 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17441 (__strftime_internal): Handle %Ob and %Oh formats.
17442 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17443 (__strptime_internal): Handle %Ob and %Oh formats.
17444 * time/tst-strptime.c (day_tests): Add more tests to parse different
17445 forms of month names including the new %Ob format specifier.
17446
17447 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17448
17449 [BZ #10871]
17450 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17451 define them as the same as primary full month names explicitly.
17452 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17453 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17454 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17455 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17456 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17457 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17458 _NL_WALTMON_12): New enum constants.
17459 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17460 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17461 macros.
17462 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17463 walt_mon, and alt_mon_defined members.
17464 (time_output): Output alt_mon and walt_mon members.
17465 (time_read): Read them, initialize them as copies of mon and wmon
17466 respectively if they are missing, initialize alt_mon_defined.
17467 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17468 * locale/programs/locfile-kw.h: Regenerate.
17469 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17470 * localedata/tst-langinfo.c (map): Add tests for the new constants
17471 ALTMON_1 .. ALTMON_12.
17472 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17473 and pl_PL.UTF-8.
17474 * time/strftime_l.c (f_altmonth): New macro.
17475 (__strftime_internal): Handle %OB format.
17476 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17477 (__strptime_internal): Handle %OB format.
17478 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17479 of month names including the new %OB format specifier.
17480
17481 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17482
17483 [BZ #22685]
17484 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17485 from ABORT_TRANSACTION.
17486 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17487 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17488 ABORT_TRANSACTION_IMPL): Likewise.
17489 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17490 Linux code, but remove the code that aborts transactions.
17491
17492 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17493
17494 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17495
17496 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17497
17498 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17499 in date: "2004-14-09" should be "2004-09-14".
17500 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17501 "2003-15-09" should be "2003-09-15".
17502
17503 2018-01-18 Arjun Shankar <arjun@redhat.com>
17504
17505 [BZ #22343]
17506 [BZ #22774]
17507 CVE-2018-6485
17508 CVE-2018-6551
17509 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17510 after padding.
17511 (_int_memalign): check for integer overflow before calling
17512 _int_malloc.
17513 * malloc/tst-malloc-too-large.c: New test.
17514 * malloc/Makefile: Add tst-malloc-too-large.
17515
17516 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17517
17518 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17519 in date: "2017-24-07" should be "2017-07-24".
17520 * localedata/locales/mai_IN: Likewise.
17521 * localedata/locales/mai_NP: Likewise.
17522
17523 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17524
17525 * po/ru.po: Update translations.
17526
17527 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17528
17529 [BZ #22719]
17530 * sysdeps/hppa/backtrace.c: New file.
17531
17532 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17533
17534 [BZ #22715]
17535 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17536 align La_x86_64_retval to VEC_SIZE.
17537
17538 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17539
17540 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17541 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17542
17543 2018-01-16 Florian Weimer <fweimer@redhat.com>
17544
17545 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17546 Move tst-thread-exit-clobber ...
17547 [$(CXX)] (tests-unsupported): ... to here.
17548
17549 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17550
17551 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17552 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17553 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17554 (_dl_aarch64_cap_flags): Update.
17555 (_DL_HWCAP_COUNT): Update.
17556
17557 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17558
17559 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17560 (_DL_HWCAP_LAST): Remove.
17561 (_DL_HWCAP_COUNT): Move to ...
17562 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17563 (_DL_HWCAP_COUNT): ... here.
17564
17565 2018-01-16 Florian Weimer <fweimer@redhat.com>
17566
17567 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17568 mode with GNU extensions.
17569
17570 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17571
17572 * elf/elf.h (NT_ARM_SVE): Define.
17573
17574 2018-01-15 Florian Weimer <fweimer@redhat.com>
17575
17576 [BZ #22636]
17577 * nptl/tst-minstack-throw.cc: New file.
17578 * nptl/Makefile (tests): Add tst-minstack-throw.
17579 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17580 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17581
17582 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17583
17584 * scripts/build-many-glibcs.py (Context.checkout): Default
17585 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17586 version to 1.1.0.
17587
17588 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17589
17590 [BZ #22707]
17591 * elf/elf.h (DF_1_STUB): Define.
17592 (DF_1_PIE): Define.
17593
17594 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17595
17596 [BZ #22697]
17597 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17598 Do not add 0.5 to integer or out-of-range arguments.
17599
17600 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17601
17602 * po/bg.po: Update translations.
17603 * po/cs.po: Likewise.
17604 * po/de.po: Likewise.
17605 * po/ko.po: Likewise.
17606 * po/pl.po: Likewise.
17607 * po/sv.po: Likewise.
17608 * po/uk.po: Likewise.
17609 * po/vi.po: Likewise.
17610
17611 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17612
17613 * aarch64/start.S (_start): Use __wrap_main.
17614 (__wrap_main): New local symbol.
17615
17616 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17617
17618 [BZ #22679]
17619 CVE-2018-1000001
17620 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17621 generic_getcwd if the path returned by getcwd syscall is not absolute.
17622 * io/tst-getcwd-abspath.c: New test.
17623 * io/Makefile (tests): Add tst-getcwd-abspath.
17624
17625 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17626
17627 * malloc/malloc.c (malloc_consolidate): Add size check.
17628
17629 2018-01-12 Florian Weimer <fweimer@redhat.com>
17630
17631 * support/write_message.c (write_message): Preserve errno.
17632 * support/check.c (print_failure): Likewise.
17633 * support/support_test_verify_impl.c (support_test_verify_impl):
17634 Likewise.
17635 * support/support_test_compare_failure.c
17636 (support_test_compare_failure): Likewise.
17637
17638 2018-01-12 Florian Weimer <fweimer@redhat.com>
17639
17640 [BZ #22701]
17641 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17642 Prevent installation of libnsl.so.
17643 (libnsl-inhibit-o): Do not build (or install) static libraries.
17644
17645 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17646
17647 [BZ #22657]
17648 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17649 before the day number which may produce a double space.
17650 (date_fmt): Likewise.
17651
17652 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17653
17654 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17655 instead of fegetenv.
17656
17657 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17658
17659 [BZ #22702]
17660 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17661 comment to say exceptions are discarded.
17662 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17663 __fegetenv.
17664 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17665 be enabled.
17666
17667 2018-01-11 Florian Weimer <fweimer@redhat.com>
17668
17669 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17670 and error message.
17671
17672 2018-01-11 Florian Weimer <fweimer@redhat.com>
17673
17674 [BZ #22636]
17675 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17676 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17677
17678 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17679
17680 [BZ #22693]
17681 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17682 negative arguments in test for NaN or infinity argument.
17683
17684 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17685
17686 * po/libc.pot: Regenerate.
17687
17688 2018-01-10 Florian Weimer <fweimer@redhat.com>
17689
17690 [BZ #22636]
17691 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17692 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17693
17694 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17695
17696 * hurd/hurd/fd.h: Include <fcntl.h>
17697 (__hurd_at_flags): New function.
17698 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17699 with call to __hurd_at_flags.
17700 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17701 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17702 __faccessat
17703 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17704 (__access_noerrno): Use __faccessat_common instead of access_common.
17705 (__access): Likewise.
17706 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17707 with a call to __faccessat.
17708 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17709 (__faccessat_common): ... this. Move implementation of __access into it when
17710 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17711 reauthenticate_cwdir_at helper to implement AT mechanism.
17712 (__faccessat_noerrno): New function, just calls __faccessat_common.
17713 (__faccessat): New function, just calls __faccessat_common.
17714 (faccessat): Define weak alias.
17715
17716 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17717
17718 [BZ #22691]
17719 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17720 (CFLAGS-s_fmaxmagl.c): New variable.
17721 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17722
17723 [BZ #22690]
17724 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17725 long int for arguments of possibly overflowing addition or
17726 subtraction.
17727 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17728
17729 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17730
17731 [BZ #22688]
17732 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17733 (CFLAGS-e_remainderl.c): New variable.
17734
17735 [BZ #22687]
17736 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17737 variable.
17738 (CFLAGS-s_cacoshl.c): Likewise.
17739 (CFLAGS-s_casinhl.c): Likewise.
17740 (CFLAGS-s_catanl.c): Likewise.
17741 (CFLAGS-s_catanhl.c): Likewise.
17742 (CFLAGS-s_cexpl.c): Likewise.
17743 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17744 (CFLAGS-s_csinhl.c): Likewise.
17745 (CFLAGS-s_clogl.c): Likewise.
17746 (CFLAGS-s_clog10l.c): Likewise.
17747 (CFLAGS-s_csinl.c): Likewise.
17748 (CFLAGS-s_csqrtl.c): Likewise.
17749
17750 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17751 2017-01-09 Svante Signell <svante.signell@gmail.com>
17752
17753 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17754 (_hurd_exec_paths): New function.
17755 * hurd/hurd.h (_hurd_exec): Deprecate function.
17756 (_hurd_exec_paths): Declare function.
17757 * hurd/Versions: Export _hurd_exec_paths.
17758 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17759 (__execve): Use __getcwd to build absolute path, and use
17760 _hurd_exec_paths instead of _hurd_exec.
17761 * sysdeps/mach/hurd/spawni.c: Likewise.
17762 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17763 _hurd_exec.
17764
17765 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17766
17767 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17768 test instead of failing in case of ENOENT returned by posix_openpt.
17769
17770 2018-01-08 Florian Weimer <fweimer@redhat.com>
17771
17772 resolv: Support binary labels in test framework.
17773 * support/resolv_test.c (struct to_be_freed): Remove.
17774 (struct compressed_name): New.
17775 (allocate_compressed_name, ascii_tolower)
17776 (compare_compressed_name): New functions.
17777 (struct resolv_response_builder): Update type of
17778 compression_offsets for use with tsearch. Rempve to_be_freed.
17779 (response_push_pointer_to_free): Remove function.
17780 (resolv_response_add_name): Rewrite using struct compressed_name
17781 and tsearch instead of hsearch_r.
17782 (response_builder_allocate): Remove initialization of
17783 compression_offsets.
17784 (response_builder_free): Update for removal of to_be_freed. Use
17785 tdestroy instead of hdestroy_r.
17786 * resolv/Makefile (tests): Add tst-resolv-binary.
17787 (tst-resolv-binary): Link with -lresolv -lpthread.
17788
17789 2018-01-08 Florian Weimer <fweimer@redhat.com>
17790
17791 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17792 time. Pass positive flag instead of negative flag to
17793 support_test_compare_failure.
17794 (support_test_compare_failure): Change negative parameter to
17795 positive.
17796 * support/support_test_compare_failure.c (report)
17797 (support_test_compare_failure): Likewise.
17798 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17799 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17800
17801 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17802
17803 [BZ #22637]
17804 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17805 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17806 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17807 stacksize.
17808 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17809
17810 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17811
17812 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17813 Add s_sincosf-sse2 and s_sincosf-fma.
17814 (CFLAGS-s_sincosf-fma.c): New.
17815 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17816 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17817 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17818 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17819 __sincosf is defined.
17820
17821 2018-01-08 Florian Weimer <fweimer@redhat.com>
17822
17823 * nptl/tst-thread-exit-clobber.cc: New file.
17824 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17825 C++11 mode.
17826 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17827 (tests): Add tst-thread-exit-clobber.
17828 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17829
17830 2018-01-08 Florian Weimer <fweimer@redhat.com>
17831
17832 * support/check.h (support_static_assert): Define.
17833 (TEST_COMPARE): Use it.
17834
17835 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17836
17837 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17838 [!__RLIM_T_MATCHES_RLIM64_T]
17839 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17840 __getrlimit64. Add libc_hidden_weak.
17841
17842 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17843
17844 * elf/elf.h (R_RISCV_NONE): New define.
17845 (R_RISCV_32): Likewise.
17846 (R_RISCV_64): Likewise.
17847 (R_RISCV_RELATIVE): Likewise.
17848 (R_RISCV_COPY): Likewise.
17849 (R_RISCV_JUMP_SLOT): Likewise.
17850 (R_RISCV_TLS_DTPMOD32): Likewise.
17851 (R_RISCV_TLS_DTPMOD64): Likewise.
17852 (R_RISCV_TLS_DTPREL32): Likewise.
17853 (R_RISCV_TLS_DTPREL64): Likewise.
17854 (R_RISCV_TLS_TPREL32): Likewise.
17855 (R_RISCV_TLS_TPREL64): Likewise.
17856 * Makerules (make-link-multidir): Make directories before linking into
17857 them.
17858 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17859 define.
17860 (VDSO_HASH_LINUX_4_15): Likewise.
17861 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17862 in subdirectories of lib.
17863 * nptl/Makefile (/librt.so): Always depend on
17864 "$(shared-thread-library)".
17865
17866 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17867
17868 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17869 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17870 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17871 (___tls_get_addr).
17872 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17873 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17874 "-O2 -march=i686".
17875 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17876 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17877 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17878 * sysdeps/gnu/glob-lstat-compat.c: New file.
17879 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17880 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17881
17882 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17883
17884 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17885 Reserve 16 chars to reloc_addr before calling _itoa_word.
17886
17887 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17888
17889 [BZ #22678]
17890 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17891 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17892
17893 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17894 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17895
17896 * resource/tst-getrlimit.c: Add copyright header.
17897
17898 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17899 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17900
17901 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17902 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17903 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17904 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17905 instead.
17906 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17907 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17908 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17909 RLIM64_INFINITY): Fix values to match the kernel ones.
17910 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17911 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17912 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17913 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17914 getrlimit64@@GLIBC_2_27.
17915 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17916 and setrlimit64.
17917 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17918 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17919 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17920 setrlimit, getrlimit64 and setrlimit64.
17921
17922 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17923
17924 [BZ #22648]
17925 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17926 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17927
17928 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17929
17930 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17931 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17932 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17933
17934 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17935
17936 [BZ #15479]
17937 [BZ #22666]
17938 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17939 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17940
17941 [BZ #15479]
17942 [BZ #22665]
17943 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17944 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17945 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17946 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17947
17948 2018-01-04 Florian Weimer <fweimer@redhat.com>
17949
17950 [BZ #22667]
17951 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17952 Align the stack before calling exit.
17953 * stdlib/tst-makecontext-align.c: New file.
17954 * stdlib/Makefile (tests): Add tst-makecontext-align.
17955
17956 2018-01-04 Florian Weimer <fweimer@redhat.com>
17957
17958 Add support for calling dlvsym from libc.so.
17959 * include/dlfcn.h (__libc_dlvsym): Declare.
17960 * elf/Makefile (tests-static-internal): Add
17961 tst-libc_dlvsym-static.
17962 (tests-internal): Add tst-libc_dlvsym.
17963 (modules-names): Add tst-libc_dlvsym-dso.
17964 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17965 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17966 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17967 object tst-libc_dlvsym-dso.so needs to be built before running
17968 these tests.
17969 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17970 * elf/Versions: Export __libc_dlvsym.
17971 * elf/dl-libc.c (struct do_dlvsym_args): New.
17972 (do_dlvsym, __libc_dlvsym): New functions.
17973 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17974 (_dl_open_hook2): New variable.
17975 (__libc_register_dl_open_hook): Set it.
17976 * elf/tst-libc_dlvsym-dso.c: New file.
17977 * elf/tst-libc_dlvsym-static.c: Likewise.
17978 * elf/tst-libc_dlvsym.c: Likewise.
17979 * elf/tst-libc_dlvsym.h: Likewise.
17980
17981 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17982
17983 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17984 include <sys/mount.h>.
17985
17986 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17987
17988 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17989 Add __NO_MATH_ERRNO__ check.
17990
17991 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17992
17993 * sysdeps/mips/mips32/libm-test-ulps: Update.
17994 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17995
17996 2018-01-02 Florian Weimer <fweimer@redhat.com>
17997
17998 * misc/tst-pselect.c: Add copyright header.
17999
18000 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18001
18002 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
18003 comment.
18004 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
18005 comment.
18006 (settrlimit): Rename into setrlimit.
18007 (__sttrlimit): Rename into __setrlimit.
18008
18009 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
18010 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
18011 never defined in that case.
18012
18013 2018-01-02 Joseph Myers <joseph@codesourcery.com>
18014
18015 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
18016
18017 * sysdeps/arm/libm-test-ulps: Update.
18018
18019 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
18020 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
18021
18022 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18023
18024 * NEWS: Add cosf and sincosf to list of optimized functions.
18025
18026 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
18027
18028 [BZ #22660]
18029 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
18030 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
18031 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
18032 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
18033
18034 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
18035
18036 [BZ #22433]
18037 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
18038
18039 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
18040 making a copy of it.
18041
18042 2018-01-01 Joseph Myers <joseph@codesourcery.com>
18043
18044 * manual/texinfo.tex: Update to version 2017-12-26.21 with
18045 trailing whitespace removed.
18046 * scripts/config.guess: Update to version 2018-01-01.
18047 * scripts/config.sub: Update to version 2018-01-01.
18048 * scripts/move-if-change: Update from gnulib.
18049
18050 * NEWS: Update copyright dates.
18051 * catgets/gencat.c (print_version): Likewise.
18052 * csu/version.c (banner): Likewise.
18053 * debug/catchsegv.sh: Likewise.
18054 * debug/pcprofiledump.c (print_version): Likewise.
18055 * debug/xtrace.sh (do_version): Likewise.
18056 * elf/ldconfig.c (print_version): Likewise.
18057 * elf/ldd.bash.in: Likewise.
18058 * elf/pldd.c (print_version): Likewise.
18059 * elf/sotruss.sh: Likewise.
18060 * elf/sprof.c (print_version): Likewise.
18061 * iconv/iconv_prog.c (print_version): Likewise.
18062 * iconv/iconvconfig.c (print_version): Likewise.
18063 * locale/programs/locale.c (print_version): Likewise.
18064 * locale/programs/localedef.c (print_version): Likewise.
18065 * login/programs/pt_chown.c (print_version): Likewise.
18066 * malloc/memusage.sh (do_version): Likewise.
18067 * malloc/memusagestat.c (print_version): Likewise.
18068 * malloc/mtrace.pl: Likewise.
18069 * manual/libc.texinfo: Likewise.
18070 * nptl/version.c (banner): Likewise.
18071 * nscd/nscd.c (print_version): Likewise.
18072 * nss/getent.c (print_version): Likewise.
18073 * nss/makedb.c (print_version): Likewise.
18074 * posix/getconf.c (main): Likewise.
18075 * scripts/test-installation.pl: Likewise.
18076 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18077
18078 * All files with FSF copyright notices: Update copyright dates
18079 using scripts/update-copyrights.
18080 * locale/programs/charmap-kw.h: Regenerated.
18081 * locale/programs/locfile-kw.h: Likewise.
18082
18083 2017-12-31 Zack Weinberg <zackw@panix.com>
18084
18085 * libio/bits/libio-ldbl.h: Correct check for improper
18086 inclusion. Add own multiple include guard.
18087
18088 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18089 Dmitry V. Levin <ldv@altlinux.org>
18090
18091 [BZ #22625]
18092 CVE-2017-16997
18093 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18094 string token expansion. Check for NULL pointer or empty string possibly
18095 returned by expand_dynamic_string_token.
18096 (decompose_rpath): Check for empty path after dynamic string
18097 token expansion.
18098
18099 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18100
18101 [BZ #22433]
18102 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18103
18104 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18105 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18106 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18107 and PTRACE_SYSCALL.
18108 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18109 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18110 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18111 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18112 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18113 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18114
18115 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18116 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18117 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18118 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18119 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18120 bits/ptrace-shared.h.
18121 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18122 <bits/ptrace-shared.h>.
18123 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18124 __ptrace_peeksiginfo_flags, ptrace): Remove.
18125 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18126 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18127 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18128 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18129 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18130
18131 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18132
18133 [BZ #17804]
18134 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18135 end of the loop. Improve comments.
18136
18137 2017-12-29 Zack Weinberg <zackw@panix.com>
18138
18139 [BZ #22615]
18140 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18141 might be set on success.
18142
18143 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18144
18145 [BZ #22611]
18146 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18147 is unchanged on success.
18148
18149 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18150
18151 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18152 updated.
18153 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18154 expand_dynamic_string_token): Likewise.
18155 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18156 is_path argument.
18157
18158 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18159 contains ':'.
18160
18161 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18162 is set and name contains ':', and all code depending on these checks.
18163
18164 2017-12-24 Zack Weinberg <zackw@panix.com>
18165
18166 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18167 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18168 respectively.
18169 * libio/libio.h: Rename the original version of this file to
18170 libio/bits/libio.h. Error out if not included by stdio.h or the
18171 stub libio.h.
18172 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18173 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18174 if not included by bits/libio.h or the stub _G_config.h.
18175 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18176 sysdeps/unix/sysv/linux/bits. Error out if not included by
18177 bits/libio.h or the stub _G_config.h.
18178 * libio/stdio.h: Include bits/libio.h, not libio.h.
18179 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18180 well as libio.h and _G_config.h.
18181
18182 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18183 * libio/strfile.h, stdio-common/vfscanf.c
18184 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18185 Include stdio.h, not _G_config.h nor libio.h.
18186 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18187 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18188
18189 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18190
18191 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18192
18193 [BZ #22347]
18194 * stdlib/getrandom.c (getrandom): Fix comment.
18195 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18196
18197 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18198
18199 [BZ #21161]
18200 * manual/arith.texi (strtoul): Fix a typo.
18201
18202 [BZ #22596]
18203 * manual/arith.texi (finite): Fix the description of the return
18204 value.
18205
18206 2017-12-22 Eric Blake <ebb9@byu.net>
18207
18208 Avoid gcc warnings on cygwin
18209 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18210 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18211 Avoid unused variable.
18212
18213 2017-12-22 Florian Weimer <fweimer@redhat.com>
18214
18215 * io/Makefile (routines): Add copy_file_range.
18216 (tests): Add tst-copy_file_range.
18217 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18218 * io/Versions (GLIBC_2.27): Export copy_file_range.
18219 * io/copy_file_range-compat.c: New file.
18220 * io/copy_file_range.c: Likewise.
18221 * io/tst-copy_file_range-compat.c: Likewise.
18222 * io/tst-copy_file_range.c: Likewise.
18223 * manual/llio.texi (Copying File Data): New section.
18224 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18225 * support/Makefile (libsupport-routines): Add support-xfstat,
18226 xftruncate, xlseek.
18227 * support/support-xfstat.c: New file.
18228 * support/xftruncate.c: Likewise.
18229 * support/xlseek.c: Likewise.
18230 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18231 * sysdeps/unix/sysv/linux/**.abilist: Update.
18232 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18233
18234 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18235
18236 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18237 disable-multi-arch variant to aarch64-linux-gnu.
18238
18239 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18240
18241 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18242 trailing whitespace removed.
18243 * scripts/config.guess: Update to version 2017-12-17.
18244 * scripts/config.sub: Update to version 2017-11-23.
18245 * scripts/install-sh: Update to version 2017-09-23.17.
18246 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18247
18248 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18249
18250 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18251 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18252 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18253 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18254 * sysdeps/tile/crtn.S: Likewise.
18255 * sysdeps/tile/dl-start.S (_start): Likewise.
18256 * sysdeps/tile/dl-trampoline.S: Likewise.
18257 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18258 * sysdeps/tile/start.S (_start): Likewise.
18259 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18260 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18261 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18262 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18263 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18264 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18265 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18266
18267 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18268 comment.
18269 * sysdeps/tile/preconfigure: Remove tilegx folder.
18270 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18271 * sysdeps/tile/Implies: ... here.
18272 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18273 * sysdeps/tile/Makefile: ... here.
18274 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18275 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18276 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18277 * sysdeps/tile/bits/wordsize.h: ... here.
18278 * sysdeps/tile/tilegx/*: Move to ...
18279 * sysdeps/tile/*: ... here.
18280 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18281 * sysdeps/tile/tilegx32/Implies: ... here.
18282 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18283 * sysdeps/tile/tilegx64/Implies: ... here.
18284 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18285 to ...
18286 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18287 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18288 * sysdeps/unix/sysv/linux/tile/*: ... here.
18289 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18290 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18291 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18292 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18293
18294 * README: Remove tilepro-*-linux-gnu from supported architecture.
18295 * scripts/build-many-glibcs.py: Likewise.
18296 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18297 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18298 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18299 elf_machine_matches_host, elf_machine_dynamic,
18300 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18301 howto, elf_machine_rela): Likewise.
18302 * sysdeps/tile/dl-start.S (_start): Likewise.
18303 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18304 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18305 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18306 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18307 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18308 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18309 Likewise.
18310 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18311 * sysdeps/tile/preconfigure: Likewise.
18312 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18313 POINTER_CHK_GUARD): Likewise.
18314 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18315 * sysdeps/tile/start.S (_start): Likewise.
18316 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18317 Likewise.
18318 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18319 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18320 CMOVNEZ): Remove.
18321 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18322 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18323 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18324 Likewise.
18325 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18326 * sysdeps/tile/tilepro/Implies: Remove file.
18327 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18328 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18329 * sysdeps/tile/tilepro/memchr.c: Likewise.
18330 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18331 * sysdeps/tile/tilepro/memset.c: Likewise.
18332 * sysdeps/tile/tilepro/memusage.h: Likewise.
18333 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18334 * sysdeps/tile/tilepro/strchr.c: Likewise.
18335 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18336 * sysdeps/tile/tilepro/strlen.c: Likewise.
18337 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18338 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18339 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18340 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18341 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18342 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18343 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18344 Likewise.
18345 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18346 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18347 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18348 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18349 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18350 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18351 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18352 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18353 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18354 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18355 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18356 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18357 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18358 tilepro mention in comment.
18359
18360 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18361 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18362 * nptl/pthread_join_common.c: New file: common function used on
18363 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18364 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18365 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18366 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18367 (cleanup): Move definition to pthread_join_common.c.
18368 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18369 Remove superflous checks.
18370 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18371 Likewise.
18372
18373 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18374
18375 * sysdeps/aarch64/libm-test-ulps: Update.
18376
18377 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18378
18379 * sysdeps/aarch64/memset.S (MEMSET): Define.
18380
18381 2017-12-20 Florian Weimer <fweimer@redhat.com>
18382
18383 [BZ #22635]
18384 nptl: Provide full implementation of pthread_self in libc.so.
18385 * nptl/Makefile (routines): Add pthread_self.
18386 (libpthread-routines): Replace pthread_self with
18387 compat-pthread_self.
18388 * nptl/forward.c (pthread_self): Remove.
18389 * nptl/nptl-init.c (pthread_functions): Do not initialize
18390 ptr_pthread_self.
18391 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18392 * nptl/compat-pthread_self.c: New file.
18393 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18394 Remove ptr_pthread_self.
18395
18396 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18397
18398 * posix/regcomp.c: Fix spelling in comments.
18399 * posix/regex.h: Likewise.
18400 * posix/regex_internal.c: Likewise.
18401 * posix/regexec.c: Likewise.
18402
18403 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18404
18405 [BZ #22377]
18406 * math/Makefile [C++] (tests): Add test for iseqsig.
18407 * math/math.h [C++] (iseqsig): New implementation, which does
18408 not rely on __MATH_TG/__builtin_types_compatible_p.
18409 * math/test-math-iseqsig.cc: New file.
18410 * sysdeps/powerpc/powerpc64le/Makefile
18411 (CFLAGS-test-math-iseqsig.cc): New variable.
18412
18413 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18414
18415 * elf/dl-load.c (is_trusted_path): Remove.
18416 (fillin_rpath): Remove check_trusted argument and its use,
18417 all callers changed.
18418
18419 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18420
18421 [BZ #22630]
18422 * Makeconfig (link-pie-before-libc): Replace -pie with
18423 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18424 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18425 (tst-dlopen-aout-no-pie): New.
18426 (LDFLAGS-tst-prelink): Removed.
18427 (tst-prelink-no-pie): New.
18428 (LDFLAGS-tst-main1): Removed.
18429 (tst-main1-no-pie): New.
18430 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18431 (tst-gmon-no-pie): New.
18432
18433 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18434
18435 * manual/install.texi: Document that --enable-static-pie
18436 implies PIE.
18437 * INSTALL: Regenerated.
18438
18439 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18440
18441 [BZ #21309]
18442 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18443 unsigned.
18444
18445 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18446
18447 Revert:
18448
18449 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18450
18451 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18452
18453 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18454
18455 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18456 <errno.h>. Include "eexp.tbl".
18457 (half): New constant.
18458 (one): Likewise.
18459 (__ieee754_exp): Rewrite.
18460 (__slowexp): Remove prototype.
18461 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18462 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18463 * sysdeps/i386/fpu/slowexp.c: Likewise.
18464 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18465 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18466 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18467 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18468 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18469 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18470 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18471 comment.
18472 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18473 (CPPFLAGS-slowexp.c): Remove variable.
18474 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18475 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18476 (CFLAGS-slowexp-fma.c): Remove variable.
18477 (CFLAGS-slowexp-fma4.c): Likewise.
18478 (CFLAGS-slowexp-avx.c): Likewise.
18479 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18480 define as macro.
18481 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18482 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18483 * math/Makefile (type-double-routines): Remove slowexp.
18484 * manual/probes.texi (slowexp_p6): Remove.
18485 (slowexp_p32): Likewise.
18486
18487 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18488
18489 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18490 arithmetic.
18491
18492 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18493
18494 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18495
18496 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18497
18498 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18499
18500 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18501 <errno.h>. Include "eexp.tbl".
18502 (half): New constant.
18503 (one): Likewise.
18504 (__ieee754_exp): Rewrite.
18505 (__slowexp): Remove prototype.
18506 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18507 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18508 * sysdeps/i386/fpu/slowexp.c: Likewise.
18509 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18510 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18511 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18512 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18513 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18514 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18515 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18516 comment.
18517 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18518 (CPPFLAGS-slowexp.c): Remove variable.
18519 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18520 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18521 (CFLAGS-slowexp-fma.c): Remove variable.
18522 (CFLAGS-slowexp-fma4.c): Likewise.
18523 (CFLAGS-slowexp-avx.c): Likewise.
18524 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18525 define as macro.
18526 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18527 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18528 * math/Makefile (type-double-routines): Remove slowexp.
18529 * manual/probes.texi (slowexp_p6): Remove.
18530 (slowexp_p32): Likewise.
18531
18532 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18533 James Clarke <jrtc27@jrtc27.com>
18534
18535 [BZ #22603]
18536 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18537 addition.
18538
18539 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18540
18541 [BZ #22605]
18542 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18543 code.
18544
18545 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18546
18547 [BZ #22563]
18548 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18549 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18550 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18551 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18552 to feature_1.
18553
18554 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18555
18556 [BZ #22563]
18557 * bits/types/__cancel_jmp_buf_tag.h: New file.
18558 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18559 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18560 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18561 * nptl/Makefile (headers): Add
18562 bits/types/__cancel_jmp_buf_tag.h.
18563 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18564 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18565 * sysdeps/nptl/pthread.h: Include
18566 <bits/types/__cancel_jmp_buf_tag.h>.
18567 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18568 __cancel_jmp_buf.
18569 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18570
18571 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18572
18573 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18574 --enable-static-pie variants to x86_64, x32 and i686.
18575
18576 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18577
18578 [BZ #22631]
18579 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18580 argument for attrubutes. All callers changed.
18581 (__inline_mathop1): Likewise. All callers changed.
18582 (__inline_mathop): Likewise. All callers changed.
18583 [__USE_MISC] (scalbn): Use __inline_forward instead of
18584 __inline_forward_c.
18585 [__USE_ISOC99] (scalbln): Likewise.
18586 [__USE_ISOC99] (nearbyint): Likewise.
18587 [__USE_ISOC99] (lrint): Likewise.
18588 [__USE_MISC] (scalbnf): Likewise.
18589 [__USE_ISOC99] (scalblnf): Likewise.
18590 [__USE_ISOC99] (nearbyintf): Likewise.
18591 [__USE_ISOC99] (lrintf): Likewise.
18592 [__USE_MISC] (scalbnl): Likewise.
18593 [__USE_ISOC99] (scalblnl): Likewise.
18594 [__USE_ISOC99] (nearbyintl): Likewise.
18595 [__USE_ISOC99] (lrintl): Likewise.
18596 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18597 __inline_mathop and __m81_defun changed.
18598
18599 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18600 CPU or FPU for ARM hard-float configurations.
18601
18602 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18603
18604 * nptl/tst-attr3.c: Include <libc-diag.h>.
18605 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18606
18607 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18608
18609 * string/tester.c (test_strncat): Also disable -Warray-bounds
18610 warnings for two tests.
18611
18612 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18613
18614 [BZ #22614]
18615 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18616 $(cc-pie-default) == yes.
18617 * config.make.in (cc-pie-default): New.
18618 * configure.ac (libc_cv_pie_default): Renamed to ...
18619 (libc_cv_cc_pie_default): This.
18620 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18621 * configure: Regenerated.
18622
18623 2017-12-18 Florian Weimer <fweimer@redhat.com>
18624
18625 [BZ #20204]
18626 ld.so: Harden dl-libc/libdl hooks.
18627 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18628 (rtld_active): New function.
18629 * dlfcn/dladdr.c (__dladdr): Call it.
18630 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18631 * dlfcn/dlclose.c (__dlcose): Likewise.
18632 * dlfcn/dlerror.c (__dlerror): Likewise.
18633 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18634 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18635 * dlfcn/dlopen.c (__dlopen): Likewise.
18636 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18637 * dlfcn/dlsym.c (__dlsym): Likewise.
18638 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18639 * libio/vtables.c (_IO_vtable_check): Likewise.
18640 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18641 (__libc_dlclose): Likewise.
18642 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18643 assignment.
18644
18645 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18646
18647 [BZ #22446]
18648 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18649 buffers for readlink input and output.
18650
18651 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18652
18653 [BZ #22624]
18654 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18655 inhibit_stack_protector.
18656
18657 [BZ #22624]
18658 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18659 inhibit_stack_protector.
18660
18661 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18662
18663 [BZ #22627]
18664 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18665 code and invocation.
18666
18667 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18668
18669 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18670
18671 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18672
18673 [BZ #22505]
18674 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18675
18676 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18677
18678 * sysdeps/s390/fpu/libm-test-ulps: Update.
18679
18680 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18681
18682 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18683
18684 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18685
18686 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18687 constants to s_sincosf.h file.
18688 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18689 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18690 implementation.
18691 * sysdeps/ieee754/flt-32/s_sincosf.h:
18692 New file.
18693
18694 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18695
18696 [BZ #14681]
18697 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18698 before mtrace.
18699
18700 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18701
18702 [BZ #19574]
18703 * INSTALL: Regenerated.
18704 * Makeconfig (real-static-start-installed-name): New.
18705 (pic-default): Updated for --enable-static-pie.
18706 (pie-default): New for --enable-static-pie.
18707 (default-pie-ldflag): Likewise.
18708 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18709 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18710 Replace $(static-start-installed-name) with
18711 $(real-static-start-installed-name).
18712 (+prectorT): Updated for --enable-static-pie.
18713 (+postctorT): Likewise.
18714 (CFLAGS-.o): Add $(pie-default).
18715 (CFLAGS-.op): Likewise.
18716 * NEWS: Mention --enable-static-pie.
18717 * config.h.in (ENABLE_STATIC_PIE): New.
18718 * configure.ac (--enable-static-pie): New configure option.
18719 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18720 (have-static-pie): Likewise.
18721 Enable static PIE if linker supports --no-dynamic-linker.
18722 (ENABLE_STATIC_PIE): New AC_DEFINE.
18723 (enable-static-pie): New LIBC_CONFIG_VAR.
18724 * configure: Regenerated.
18725 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18726 gr$(start-installed-name) for --enable-static-pie.
18727 (extra-objs): Likewise.
18728 (install-lib): Likewise.
18729 (extra-objs): Add static-reloc.o and static-reloc.os
18730 ($(objpfx)$(start-installed-name)): Also depend on
18731 $(objpfx)static-reloc.o.
18732 ($(objpfx)r$(start-installed-name)): New.
18733 ($(objpfx)g$(start-installed-name)): Also depend on
18734 $(objpfx)static-reloc.os.
18735 ($(objpfx)gr$(start-installed-name)): New.
18736 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18737 in libc.a.
18738 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18739 initimage.
18740 * csu/static-reloc.c: New file.
18741 * elf/Makefile (routines): Add dl-reloc-static-pie.
18742 (elide-routines.os): Likewise.
18743 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18744 (tst-tls1-static-non-pie-no-pie): New.
18745 * elf/dl-reloc-static-pie.c: New file.
18746 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18747 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18748 STATIC_PIE_BOOTSTRAP.
18749 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18750 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18751 (tests-static): Likewise.
18752 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18753 (tst-gmon-static-no-pie): New.
18754 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18755 (CRT-tst-gmon-static-pie): Likewise.
18756 (tst-gmon-static-pie-ENV): Likewise.
18757 (tests-special): Likewise.
18758 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18759 (clean-tst-gmon-static-pie-data): Likewise.
18760 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18761 * gmon/tst-gmon-static-pie.c: New file.
18762 * manual/install.texi: Document --enable-static-pie.
18763 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18764 (_dl_get_dl_main_map): Likewise.
18765 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18766 * sysdeps/x86_64/configure.ac: Likewise.
18767 * sysdeps/i386/configure: Regenerated.
18768 * sysdeps/x86_64/configure: Likewise.
18769 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18770 (ASFLAGS-.op): Likewise.
18771
18772 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18773
18774 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18775 * posix/tst-mmap-offset.c (fname): Use /tmp.
18776 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18777
18778 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18779
18780 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18781
18782 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18783
18784 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18785 errno.
18786
18787 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18788
18789 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18790 --with-float=hard for arm-linux-gnueabihf configurations.
18791
18792 [BZ #14121]
18793 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18794 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18795 ($(mo-installed)): Use $(objpfx)%.mo.
18796 (realclean): Remove rule.
18797
18798 * po/Makefile (linguas): Remove rule and dependencies.
18799 (linguas.mo): Likewise.
18800 (.PHONY): Do not depend on linguas and linguas.mo.
18801 (podir): Remove variable.
18802 (pofiles): Likewise.
18803 [$(pofiles)] (%.po): Remove rule.
18804
18805 * sysdeps/sparc/sparc32/Makefile
18806 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18807 start-of-line whitespace in argument of echo.
18808 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18809 with whitespace. Generate __wrap_.udiv alias.
18810 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18811 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18812 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18813 * sysdeps/sparc/sparc32/urem.S: Likewise.
18814
18815 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18816
18817 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18818 for aligned inputs.
18819
18820 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18821
18822 * benchtests/bench-strcmp.c: Print output in JSON format.
18823
18824 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18825
18826 2017-12-14 Florian Weimer <fweimer@redhat.com>
18827
18828 [BZ #22607]
18829 CVE-2017-1000409
18830 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18831 the expanded path string.
18832
18833 2017-12-14 Florian Weimer <fweimer@redhat.com>
18834
18835 [BZ #22606]
18836 CVE-2017-1000408
18837 * elf/dl-load.c (system_dirs): Update comment.
18838 (nsystem_dirs_len): Use array_length.
18839 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18840
18841 2017-12-14 Florian Weimer <fweimer@redhat.com>
18842
18843 Simplify compiling most of support/ outside of glibc.
18844 * support/check_addrinfo.c: Include <string.h>.
18845 * support/check_dns_packet.c: Likewise.
18846 * support/check_hostent.c: Likewise.
18847 * support/support_can_chroot.c: Include <support/xunistd.h>.
18848 * support/support_format_addrinfo.c: Include <stdlib.h>
18849 * support/support_format_dns_packet.c: Include <stdbool.h>.
18850 * support/support_format_hostent.c: Include <stdlib.h>.
18851 * support/support_format_netent.c: Likewise.
18852 * support/support_write_string.c: Include <support/xunistd.h>.
18853 * support/xdlfcn.c: Include <stddef.h>.
18854
18855 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18856
18857 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18858
18859 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18860 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18861
18862 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18863 (sysdeps_routines): Add memset-niagara7.
18864 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18865 Likewise.
18866 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18867 file.
18868 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18869 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18870 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18871 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18872 Add niagara7 option.
18873 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18874 memset.
18875
18876 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18877 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18878 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18879 Likewise.
18880 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18881 New file.
18882 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18883 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18884 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18885 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18886 and __memmove_niagara7.
18887 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18888 Add niagara7 option.
18889 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18890 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18891 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18892 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18893 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18894
18895 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18896
18897 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18898 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18899 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18900 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18901
18902 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18903 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18904 _dl_sparc_cap_flags array.
18905 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18906
18907 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18908
18909 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18910 time whenever possible.
18911
18912 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18913
18914 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18915 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18916
18917 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18918
18919 * soft-fp/fmadf4.c: Move to ....
18920 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18921 * soft-fp/fmasf4.c: Move to ....
18922 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18923 * soft-fp/fmatf4.c: Move to ....
18924 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18925 * sysdeps/ieee754/soft-fp/Makefile: New file.
18926 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18927 * sysdeps/arm/preconfigure: Regenerated.
18928 * sysdeps/arm/nofpu/Implies: New file.
18929 * sysdeps/arm/s_fma.c: Remove file.
18930 * sysdeps/arm/s_fmaf.c: Likewise.
18931 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18932 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18933 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18934 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18935 * sysdeps/microblaze/s_fma.c: Remove file.
18936 * sysdeps/microblaze/s_fmaf.c: Likewise.
18937 * sysdeps/mips/mips32/nofpu/Implies: New file.
18938 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18939 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18940 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18941 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18942 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18943 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18944 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18945 implementation.
18946 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18947 * sysdeps/nios2/s_fma.c: Remove file.
18948 * sysdeps/nios2/s_fmaf.c: Likewise.
18949 * sysdeps/sh/nofpu/Implies: New file.
18950 * sysdeps/sh/s_fma.c: Remove file.
18951 * sysdeps/sh/s_fmaf.c: Likewise.
18952 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18953 * sysdeps/tile/s_fma.c: Remove file.
18954 * sysdeps/tile/s_fmaf.c: Likewise.
18955
18956 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18957
18958 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18959 Add s_cosf-sse2 and s_cosf-fma.
18960 (CFLAGS-s_cosf-fma.c): New.
18961 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18962 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18963 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18964
18965 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18966
18967 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18968
18969 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18970
18971 * libio/Makefile (tests): Add tst-bz22415.
18972 (tst-bz22415-ENV): New rule.
18973 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18974 (tests-special): Add tst-bz22415-mem.out.
18975 ($(objpfx)tst-bz22415-mem.out): New rule.
18976 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18977 in case of a successful seek operation.
18978 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18979 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18980 buffer is required.
18981 * libio/tst-bz22415.c: New test.
18982
18983 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18984
18985 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18986
18987 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18988 __IPC_64 to 0 to avoid IPC_64 being set.
18989
18990 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18991
18992 [BZ #22593]
18993 * math/bits/mathcalls.h (nextafter): Remove const.
18994 (nexttoward): Likewise.
18995
18996 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18997
18998 * configure.ac (--with-fp): Remove configure option.
18999 (with_fp_cond): New variable.
19000 (libc_cv_with_fp): New configure test. Use this variable instead
19001 of with_fp.
19002 * configure: Regenerated.
19003 * config.make.in (with-fp): Use @libc_cv_with_fp@.
19004 * manual/install.texi (Configuring and compiling): Remove
19005 --without-fp.
19006 * INSTALL: Regenerated.
19007 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
19008 * sysdeps/mips/preconfigure (with_fp_cond): Define.
19009 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
19010 * sysdeps/sh/preconfigure (with_fp_cond): Define.
19011 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
19012 use --without-fp to configure glibc.
19013
19014 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
19015
19016 * manual/locale.texi (nl_langinfo): Fix a typo.
19017
19018 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
19019
19020 [BZ #22588]
19021 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
19022
19023 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19024
19025 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
19026 (CFLAGS-argp-parse.c): Likewise.
19027 (CFLAGS-argp-fmtstream.c): Likewise.
19028 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
19029 (CPPFLAGS-sha512-crypt.c): Likewise.
19030 (CPPFLAGS-md5-crypt.c): Likewise.
19031 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
19032 (CFLAGS-stack_chk_fail_local.c): Likewise.
19033 (CFLAGS-backtrace.c): Likewise.
19034 (CFLAGS-sprintf_chk.c): Likewise.
19035 (CFLAGS-snprintf_chk.c): Likewise.
19036 (CFLAGS-vsprintf_chk.c): Likewise.
19037 (CFLAGS-vsnprintf_chk.c): Likewise.
19038 (CFLAGS-asprintf_chk.c): Likewise.
19039 (CFLAGS-vasprintf_chk.c): Likewise.
19040 (CFLAGS-obprintf_chk.c): Likewise.
19041 (CFLAGS-dprintf_chk.c): Likewise.
19042 (CFLAGS-vdprintf_chk.c): Likewise.
19043 (CFLAGS-printf_chk.c): Likewise.
19044 (CFLAGS-fprintf_chk.c): Likewise.
19045 (CFLAGS-vprintf_chk.c): Likewise.
19046 (CFLAGS-vfprintf_chk.c): Likewise.
19047 (CFLAGS-gets_chk.c): Likewise.
19048 (CFLAGS-fgets_chk.c): Likewise.
19049 (CFLAGS-fgets_u_chk.c): Likewise.
19050 (CFLAGS-fread_chk.c): Likewise.
19051 (CFLAGS-fread_u_chk.c): Likewise.
19052 (CFLAGS-swprintf_chk.c): Likewise.
19053 (CFLAGS-vswprintf_chk.c): Likewise.
19054 (CFLAGS-wprintf_chk.c): Likewise.
19055 (CFLAGS-fwprintf_chk.c): Likewise.
19056 (CFLAGS-vwprintf_chk.c): Likewise.
19057 (CFLAGS-vfwprintf_chk.c): Likewise.
19058 (CFLAGS-fgetws_chk.c): Likewise.
19059 (CFLAGS-fgetws_u_chk.c): Likewise.
19060 (CFLAGS-read_chk.c): Likewise.
19061 (CFLAGS-pread_chk.c): Likewise.
19062 (CFLAGS-pread64_chk.c): Likewise.
19063 (CFLAGS-recv_chk.c): Likewise.
19064 (CFLAGS-recvfrom_chk.c): Likewise.
19065 (CFLAGS-tst-longjmp_chk.c): Likewise.
19066 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
19067 (CFLAGS-tst-longjmp_chk2.c): Likewise.
19068 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
19069 (CFLAGS-tst-longjmp_chk3.c): Likewise.
19070 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
19071 (CFLAGS-tst-chk1.c): Likewise.
19072 (CFLAGS-tst-chk2.c): Likewise.
19073 (CFLAGS-tst-chk3.c): Likewise.
19074 (CFLAGS-tst-chk4.cc): Likewise.
19075 (CFLAGS-tst-chk5.cc): Likewise.
19076 (CFLAGS-tst-chk6.cc): Likewise.
19077 (CFLAGS-tst-lfschk1.c): Likewise.
19078 (CFLAGS-tst-lfschk2.c): Likewise.
19079 (CFLAGS-tst-lfschk3.c): Likewise.
19080 (CFLAGS-tst-lfschk4.cc): Likewise.
19081 (CFLAGS-tst-lfschk5.cc): Likewise.
19082 (CFLAGS-tst-lfschk6.cc): Likewise.
19083 (CFLAGS-tst-ssp-1.c): Likewise.
19084 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19085 (CFLAGS-scandir64.c): Likewise.
19086 (CFLAGS-scandir-tail.c): Likewise.
19087 (CFLAGS-scandir64-tail.c): Likewise.
19088 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19089 (CFLAGS-dl-tunables.c): Likewise.
19090 (CFLAGS-dl-runtime.c): Likewise.
19091 (CFLAGS-dl-lookup.c): Likewise.
19092 (CFLAGS-dl-iterate-phdr.c): Likewise.
19093 (CFLAGS-vismain.c): Likewise.
19094 (CFLAGS-tst-linkall-static.c): Likewise.
19095 (CFLAGS-tst-linkall-static.c): Likewise.
19096 (CPPFLAGS-dl-load.c): Likewise.
19097 (CFLAGS-ldconfig.c): Likewise.
19098 (CFLAGS-dl-cache.c): Likewise.
19099 (CFLAGS-cache.c): Likewise.
19100 (CFLAGS-rtld.c): Likewise.
19101 (CFLAGS-multiload.c): Likewise.
19102 (CFLAGS-filtmod1.c): Likewise.
19103 (CFLAGS-tst-align.c): Likewise.
19104 (CFLAGS-tst-align2.c): Likewise.
19105 (CFLAGS-tst-alignmod.c): Likewise.
19106 (CFLAGS-tst-alignmod2.c): Likewise.
19107 (CPPFLAGS-tst-execstack.c): Likewise.
19108 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19109 (CFLAGS-tst-latepthreadmod.c): Likewise.
19110 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19111 (CFLAGS-getgrnam_r.c): Likewise.
19112 (CFLAGS-getgrent_r.c): Likewise.
19113 (CFLAGS-getgrent.c): Likewise.
19114 (CFLAGS-fgetgrent.c): Likewise.
19115 (CFLAGS-fgetgrent_r.c): Likewise.
19116 (CFLAGS-putgrent.c): Likewise.
19117 (CFLAGS-initgroups.c): Likewise.
19118 (CFLAGS-getgrgid.c): Likewise.
19119 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19120 (CFLAGS-getsgent.c): Likewise.
19121 (CFLAGS-fgetsgent.c): Likewise.
19122 (CFLAGS-fgetsgent_r.c): Likewise.
19123 (CFLAGS-putsgent.c): Likewise.
19124 (CFLAGS-getsgnam.c): Likewise.
19125 (CFLAGS-getsgnam_r.c): Likewise.
19126 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19127 (CFLAGS-iconv_charmap.c): Likewise.
19128 (CFLAGS-dummy-repertoire.c): Likewise.
19129 (CFLAGS-charmap.c): Likewise.
19130 (CFLAGS-linereader.c): Likewise.
19131 (CFLAGS-simple-hash.c): Likewise.
19132 (CFLAGS-gconv_conf.c): Likewise.
19133 (CFLAGS-iconvconfig.c): Likewise.
19134 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19135 (CFLAGS-gethstbyad.c): Likewise.
19136 (CFLAGS-gethstbynm_r.c): Likewise.
19137 (CFLAGS-gethstbynm.c): Likewise.
19138 (CFLAGS-gethstbynm2_r.c): Likewise.
19139 (CFLAGS-gethstbynm2.c): Likewise.
19140 (CFLAGS-gethstent_r.c): Likewise.
19141 (CFLAGS-gethstent.c): Likewise.
19142 (CFLAGS-rcmd.c): Likewise.
19143 (CFLAGS-getnetbynm_r.c): Likewise.
19144 (CFLAGS-getnetbynm.c): Likewise.
19145 (CFLAGS-getnetbyad_r.c): Likewise.
19146 (CFLAGS-getnetbyad.c): Likewise.
19147 (CFLAGS-getnetent_r.c): Likewise.
19148 (CFLAGS-getnetent.c): Likewise.
19149 (CFLAGS-getaliasent_r.c): Likewise.
19150 (CFLAGS-getaliasent.c): Likewise.
19151 (CFLAGS-getrpcent_r.c): Likewise.
19152 (CFLAGS-getrpcent.c): Likewise.
19153 (CFLAGS-getservent_r.c): Likewise.
19154 (CFLAGS-getservent.c): Likewise.
19155 (CFLAGS-getprtent_r.c): Likewise.
19156 (CFLAGS-getprtent.c): Likewise.
19157 (CFLAGS-either_ntoh.c): Likewise.
19158 (CFLAGS-either_hton.c): Likewise.
19159 (CFLAGS-getnetgrent.c): Likewise.
19160 (CFLAGS-getnetgrent_r.c): Likewise.
19161 (CFLAGS-tst-checks-posix.c): Likewise.
19162 (CFLAGS-tst-sockaddr.c): Likewise.
19163 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19164 (CFLAGS-tst-translit.c): Likewise.
19165 (CFLAGS-tst-gettext2.c): Likewise.
19166 (CFLAGS-tst-codeset.c): Likewise.
19167 (CFLAGS-tst-gettext3.c): Likewise.
19168 (CFLAGS-tst-gettext4.c): Likewise.
19169 (CFLAGS-tst-gettext5.c): Likewise.
19170 (CFLAGS-tst-gettext6.c): Likewise.
19171 * io/Makefile (CFLAGS-open.c): Likewise.
19172 (CFLAGS-open64.c): Likewise.
19173 (CFLAGS-creat.c): Likewise.
19174 (CFLAGS-creat64.c): Likewise.
19175 (CFLAGS-fcntl.c): Likewise.
19176 (CFLAGS-poll.c): Likewise.
19177 (CFLAGS-ppoll.c): Likewise.
19178 (CFLAGS-lockf.c): Likewise.
19179 (CFLAGS-statfs.c): Likewise.
19180 (CFLAGS-fstatfs.c): Likewise.
19181 (CFLAGS-statvfs.c): Likewise.
19182 (CFLAGS-fstatvfs.c): Likewise.
19183 (CFLAGS-fts.c): Likewise.
19184 (CFLAGS-fts64.c): Likewise.
19185 (CFLAGS-ftw.c): Likewise.
19186 (CFLAGS-ftw64.c): Likewise.
19187 (CFLAGS-lockf.c): Likewise.
19188 (CFLAGS-posix_fallocate.c): Likewise.
19189 (CFLAGS-posix_fallocate64.c): Likewise.
19190 (CFLAGS-fallocate.c): Likewise.
19191 (CFLAGS-fallocate64.c): Likewise.
19192 (CFLAGS-read.c): Likewise.
19193 (CFLAGS-write.c): Likewise.
19194 (CFLAGS-test-stat.c): Likewise.
19195 (CFLAGS-test-lfs.c): Likewise.
19196 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19197 (CFLAGS-fputc.c): Likewise.
19198 (CFLAGS-fputwc.c): Likewise.
19199 (CFLAGS-freopen64.c): Likewise.
19200 (CFLAGS-freopen.c): Likewise.
19201 (CFLAGS-fseek.c): Likewise.
19202 (CFLAGS-fseeko64.c): Likewise.
19203 (CFLAGS-fseeko.c): Likewise.
19204 (CFLAGS-ftello64.c): Likewise.
19205 (CFLAGS-ftello.c): Likewise.
19206 (CFLAGS-fwide.c): Likewise.
19207 (CFLAGS-genops.c): Likewise.
19208 (CFLAGS-getc.c): Likewise.
19209 (CFLAGS-getchar.c): Likewise.
19210 (CFLAGS-getwc.c): Likewise.
19211 (CFLAGS-getwchar.c): Likewise.
19212 (CFLAGS-iofclose.c): Likewise.
19213 (CFLAGS-iofflush.c): Likewise.
19214 (CFLAGS-iofgetpos64.c): Likewise.
19215 (CFLAGS-iofgetpos.c): Likewise.
19216 (CFLAGS-iofgets.c): Likewise.
19217 (CFLAGS-iofgetws.c): Likewise.
19218 (CFLAGS-iofputs.c): Likewise.
19219 (CFLAGS-iofputws.c): Likewise.
19220 (CFLAGS-iofread.c): Likewise.
19221 (CFLAGS-iofsetpos64.c): Likewise.
19222 (CFLAGS-iofsetpos.c): Likewise.
19223 (CFLAGS-ioftell.c): Likewise.
19224 (CFLAGS-iofwrite.c): Likewise.
19225 (CFLAGS-iogetdelim.c): Likewise.
19226 (CFLAGS-iogetline.c): Likewise.
19227 (CFLAGS-iogets.c): Likewise.
19228 (CFLAGS-iogetwline.c): Likewise.
19229 (CFLAGS-ioputs.c): Likewise.
19230 (CFLAGS-ioseekoff.c): Likewise.
19231 (CFLAGS-ioseekpos.c): Likewise.
19232 (CFLAGS-iosetbuffer.c): Likewise.
19233 (CFLAGS-iosetvbuf.c): Likewise.
19234 (CFLAGS-ioungetc.c): Likewise.
19235 (CFLAGS-ioungetwc.c): Likewise.
19236 (CFLAGS-oldfileops.c): Likewise.
19237 (CFLAGS-oldiofclose.c): Likewise.
19238 (CFLAGS-oldiofgetpos64.c): Likewise.
19239 (CFLAGS-oldiofgetpos.c): Likewise.
19240 (CFLAGS-oldiofsetpos64.c): Likewise.
19241 (CFLAGS-oldiofsetpos.c): Likewise.
19242 (CFLAGS-peekc.c): Likewise.
19243 (CFLAGS-putc.c): Likewise.
19244 (CFLAGS-putchar.c): Likewise.
19245 (CFLAGS-putwc.c): Likewise.
19246 (CFLAGS-putwchar.c): Likewise.
19247 (CFLAGS-rewind.c): Likewise.
19248 (CFLAGS-wfileops.c): Likewise.
19249 (CFLAGS-wgenops.c): Likewise.
19250 (CFLAGS-oldiofopen.c): Likewise.
19251 (CFLAGS-iofopen.c): Likewise.
19252 (CFLAGS-iofopen64.c): Likewise.
19253 (CFLAGS-oldtmpfile.c): Likewise.
19254 (CFLAGS-tst_putwc.c): Likewise.
19255 * locale/Makefile (CFLAGS-md5.c): Likewise.
19256 (CFLAGS-charmap.c): Likewise.
19257 (CFLAGS-locfile.c): Likewise.
19258 (CFLAGS-charmap-dir.c): Likewise.
19259 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19260 (CFLAGS-getpt.c): Likewise.
19261 (CFLAGS-pt_chown.c): Likewise.
19262 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19263 (CFLAGS-obstack.c): Likewise.
19264 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19265 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19266 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19267 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19268 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19269 (CFLAGS-test-tgmath.c): Likewise.
19270 (CFLAGS-test-tgmath2.c): Likewise.
19271 (CFLAGS-test-tgmath-ret.c): Likewise.
19272 (CFLAGS-test-powl.c): Likewise.
19273 (CFLAGS-test-snan.c): Likewise.
19274 (CFLAGS-test-signgam-finite.c): Likewise.
19275 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19276 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19277 (CFLAGS-test-signgam-uchar.c): Likewise.
19278 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19279 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19280 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19281 (CFLAGS-test-signgam-uint.c): Likewise.
19282 (CFLAGS-test-signgam-uint-init.c): Likewise.
19283 (CFLAGS-test-signgam-uint-static.c): Likewise.
19284 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19285 (CFLAGS-test-signgam-ullong.c): Likewise.
19286 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19287 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19288 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19289 (CFLAGS-test-math-cxx11.cc): Likewise.
19290 (CFLAGS-test-math-isinff.cc): Likewise.
19291 (CFLAGS-test-math-iszero.cc): Likewise.
19292 (CFLAGS-test-math-issignaling.cc): Likewise.
19293 (CFLAGS-test-math-iscanonical.cc): Likewise.
19294 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19295 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19296 (CFLAGS-test-flt-eval-method.c): Likewise.
19297 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19298 (CFLAGS-test-finite-macros.c): Likewise.
19299 * misc/Makefile (CFLAGS-select.c): Likewise.
19300 (CFLAGS-tsearch.c): Likewise.
19301 (CFLAGS-lsearch.c): Likewise.
19302 (CFLAGS-pselect.c): Likewise.
19303 (CFLAGS-readv.c): Likewise.
19304 (CFLAGS-writev.c): Likewise.
19305 (CFLAGS-preadv.c): Likewise.
19306 (CFLAGS-preadv64.c): Likewise.
19307 (CFLAGS-pwritev.c): Likewise.
19308 (CFLAGS-pwritev64.c): Likewise.
19309 (CFLAGS-preadv2.c): Likewise.
19310 (CFLAGS-preadv64v2.c): Likewise.
19311 (CFLAGS-pwritev2.c): Likewise.
19312 (CFLAGS-pwritev64v2.c): Likewise.
19313 (CFLAGS-usleep.c): Likewise.
19314 (CFLAGS-syslog.c): Likewise.
19315 (CFLAGS-error.c): Likewise.
19316 (CFLAGS-getpass.c): Likewise.
19317 (CFLAGS-mkstemp.c): Likewise.
19318 (CFLAGS-mkstemp64.c): Likewise.
19319 (CFLAGS-getsysstats.c): Likewise.
19320 (CFLAGS-getusershell.c): Likewise.
19321 (CFLAGS-err.c): Likewise.
19322 (CFLAGS-tst-tsearch.c): Likewise.
19323 (CFLAGS-msync.c): Likewise.
19324 (CFLAGS-fdatasync.c): Likewise.
19325 (CFLAGS-fsync.c): Likewise.
19326 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19327 (CFLAGS-unwind.c): Likewise.
19328 (CFLAGS-unwind-forcedunwind.c): Likewise.
19329 (CFLAGS-pthread_cancel.c): Likewise.
19330 (CFLAGS-pthread_setcancelstate.c): Likewise.
19331 (CFLAGS-pthread_setcanceltype.c): Likewise.
19332 (CFLAGS-cancellation.c): Likewise.
19333 (CFLAGS-libc-cancellation.c): Likewise.
19334 (CFLAGS-pthread_exit.c): Likewise.
19335 (CFLAGS-forward.c): Likewise.
19336 (CFLAGS-pthread_testcancel.c): Likewise.
19337 (CFLAGS-pthread_join.c): Likewise.
19338 (CFLAGS-pthread_timedjoin.c): Likewise.
19339 (CFLAGS-pthread_once.c): Likewise.
19340 (CFLAGS-pthread_cond_wait.c): Likewise.
19341 (CFLAGS-sem_wait.c): Likewise.
19342 (CFLAGS-sem_timedwait.c): Likewise.
19343 (CFLAGS-fcntl.c): Likewise.
19344 (CFLAGS-lockf.c): Likewise.
19345 (CFLAGS-pread.c): Likewise.
19346 (CFLAGS-pread64.c): Likewise.
19347 (CFLAGS-pwrite.c): Likewise.
19348 (CFLAGS-pwrite64.c): Likewise.
19349 (CFLAGS-wait.c): Likewise.
19350 (CFLAGS-waitpid.c): Likewise.
19351 (CFLAGS-sigwait.c): Likewise.
19352 (CFLAGS-msgrcv.c): Likewise.
19353 (CFLAGS-msgsnd.c): Likewise.
19354 (CFLAGS-tcdrain.c): Likewise.
19355 (CFLAGS-open.c): Likewise.
19356 (CFLAGS-open64.c): Likewise.
19357 (CFLAGS-pause.c): Likewise.
19358 (CFLAGS-recv.c): Likewise.
19359 (CFLAGS-send.c): Likewise.
19360 (CFLAGS-accept.c): Likewise.
19361 (CFLAGS-sendto.c): Likewise.
19362 (CFLAGS-connect.c): Likewise.
19363 (CFLAGS-recvfrom.c): Likewise.
19364 (CFLAGS-recvmsg.c): Likewise.
19365 (CFLAGS-sendmsg.c): Likewise.
19366 (CFLAGS-close.c): Likewise.
19367 (CFLAGS-read.c): Likewise.
19368 (CFLAGS-write.c): Likewise.
19369 (CFLAGS-nanosleep.c): Likewise.
19370 (CFLAGS-sigsuspend.c): Likewise.
19371 (CFLAGS-msync.c): Likewise.
19372 (CFLAGS-fdatasync.c): Likewise.
19373 (CFLAGS-fsync.c): Likewise.
19374 (CFLAGS-pt-system.c): Likewise.
19375 (CFLAGS-tst-cleanup2.c): Likewise.
19376 (CFLAGS-tst-cleanupx2.c): Likewise.
19377 (CFLAGS-flockfile.c): Likewise.
19378 (CFLAGS-ftrylockfile.c): Likewise.
19379 (CFLAGS-funlockfile.c): Likewise.
19380 (CFLAGS-tst-initializers1.c): Likewise.
19381 (CFLAGS-tst-initializers1-c89.c): Likewise.
19382 (CFLAGS-tst-initializers1-c99.c): Likewise.
19383 (CFLAGS-tst-initializers1-c11.c): Likewise.
19384 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19385 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19386 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19387 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19388 (CFLAGS-nscd_getgr_r.c): Likewise.
19389 (CFLAGS-nscd_gethst_r.c): Likewise.
19390 (CFLAGS-nscd_getai.c): Likewise.
19391 (CFLAGS-nscd_initgroups.c): Likewise.
19392 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19393 (CFLAGS-pause.c): Likewise.
19394 (CFLAGS-pread.c): Likewise.
19395 (CFLAGS-pread64.c): Likewise.
19396 (CFLAGS-pwrite.c): Likewise.
19397 (CFLAGS-pwrite64.c): Likewise.
19398 (CFLAGS-sleep.c): Likewise.
19399 (CFLAGS-wait.c): Likewise.
19400 (CFLAGS-waitid.c): Likewise.
19401 (CFLAGS-waitpid.c): Likewise.
19402 (CFLAGS-getopt.c): Likewise.
19403 (CFLAGS-wordexp.c): Likewise.
19404 (CFLAGS-sysconf.c): Likewise.
19405 (CFLAGS-pathconf.c): Likewise.
19406 (CFLAGS-fpathconf.c): Likewise.
19407 (CFLAGS-spawn.c): Likewise.
19408 (CFLAGS-spawnp.c): Likewise.
19409 (CFLAGS-spawni.c): Likewise.
19410 (CFLAGS-glob.c): Likewise.
19411 (CFLAGS-glob64.c): Likewise.
19412 (CFLAGS-getconf.c): Likewise.
19413 (CFLAGS-nanosleep.c): Likewise.
19414 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19415 (CFLAGS-getpwent.c): Likewise.
19416 (CFLAGS-getpw.c): Likewise.
19417 (CFLAGS-fgetpwent_r.c): Likewise.
19418 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19419 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19420 (CFLAGS-mq_timedreceive.c): Likewise.
19421 (CFLAGS-mq_timedsend.c): Likewise.
19422 (CFLAGS-clock_nanosleep.c): Likewise.
19423 (CFLAGS-librt-cancellation.c): Likewise.
19424 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19425 (CFLAGS-getspent.c): Likewise.
19426 (CFLAGS-fgetspent.c): Likewise.
19427 (CFLAGS-fgetspent_r.c): Likewise.
19428 (CFLAGS-putspent.c): Likewise.
19429 (CFLAGS-getspnam.c): Likewise.
19430 (CFLAGS-getspnam_r.c): Likewise.
19431 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19432 (CFLAGS-sigsuspend.c): Likewise.
19433 (CFLAGS-sigtimedwait.c): Likewise.
19434 (CFLAGS-sigwait.c): Likewise.
19435 (CFLAGS-sigwaitinfo.c): Likewise.
19436 (CFLAGS-sigreturn.c): Likewise.
19437 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19438 (CFLAGS-vfwprintf.c): Likewise.
19439 (CFLAGS-tmpfile.c): Likewise.
19440 (CFLAGS-tmpfile64.c): Likewise.
19441 (CFLAGS-tempname.c): Likewise.
19442 (CFLAGS-psignal.c): Likewise.
19443 (CFLAGS-vprintf.c): Likewise.
19444 (CFLAGS-cuserid.c): Likewise.
19445 (CFLAGS-errlist.c): Likewise.
19446 (CFLAGS-siglist.c): Likewise.
19447 (CFLAGS-scanf15.c): Likewise.
19448 (CFLAGS-scanf17.c): Likewise.
19449 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19450 (CFLAGS-msort.c): Likewise.
19451 (CFLAGS-qsort.c): Likewise.
19452 (CFLAGS-system.c): Likewise.
19453 (CFLAGS-fmtmsg.c): Likewise.
19454 (CFLAGS-strfmon.c): Likewise.
19455 (CFLAGS-strfmon_l.c): Likewise.
19456 (CFLAGS-strfromd.c): Likewise.
19457 (CFLAGS-strfromf.c): Likewise.
19458 (CFLAGS-strfroml.c): Likewise.
19459 (CFLAGS-tst-bsearch.c): Likewise.
19460 (CFLAGS-tst-qsort.c): Likewise.
19461 (CFLAGS-tst-makecontext2.c): Likewise.
19462 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19463 (CFLAGS-xnlm_prot.c): Likewise.
19464 (CFLAGS-xrstat.c): Likewise.
19465 (CFLAGS-xyppasswd.c): Likewise.
19466 (CFLAGS-xklm_prot.c): Likewise.
19467 (CFLAGS-xrex.c): Likewise.
19468 (CFLAGS-xsm_inter.c): Likewise.
19469 (CFLAGS-xmount.c): Likewise.
19470 (CFLAGS-xrusers.c): Likewise.
19471 (CFLAGS-xspray.c): Likewise.
19472 (CFLAGS-xnfs_prot.c): Likewise.
19473 (CFLAGS-xrquota.c): Likewise.
19474 (CFLAGS-xkey_prot.c): Likewise.
19475 (CFLAGS-auth_unix.c): Likewise.
19476 (CFLAGS-key_call.c): Likewise.
19477 (CFLAGS-pmap_rmt.c): Likewise.
19478 (CFLAGS-clnt_perr.c): Likewise.
19479 (CFLAGS-openchild.c): Likewise.
19480 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19481 (CFLAGS-msgsnd.c): Likewise.
19482 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19483 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19484 (CFLAGS-tzset.c): Likewise.
19485 (CFLAGS-getdate.c): Likewise.
19486 (CFLAGS-test_time.c): Likewise.
19487 (CPPFLAGS-tst-tzname.c): Likewise.
19488 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19489 (CFLAGS-zic.c): Likewise.
19490 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19491 (CFLAGS-wcswidth.c): Likewise.
19492 (CFLAGS-wcstol.c): Likewise.
19493 (CFLAGS-wcstoul.c): Likewise.
19494 (CFLAGS-wcstoll.c): Likewise.
19495 (CFLAGS-wcstoull.c): Likewise.
19496 (CFLAGS-wcstod.c): Likewise.
19497 (CFLAGS-wcstold.c): Likewise.
19498 (CFLAGS-wcstof128.c): Likewise.
19499 (CFLAGS-wcstof.c): Likewise.
19500 (CFLAGS-wcstol_l.c): Likewise.
19501 (CFLAGS-wcstoul_l.c): Likewise.
19502 (CFLAGS-wcstoll_l.c): Likewise.
19503 (CFLAGS-wcstoull_l.c): Likewise.
19504 (CFLAGS-wcstod_l.c): Likewise.
19505 (CFLAGS-wcstold_l.c): Likewise.
19506 (CFLAGS-wcstof128_l.c): Likewise.
19507 (CFLAGS-wcstof_l.c): Likewise.
19508 (CPPFLAGS-tst-wchar-h.c): Likewise.
19509 (CPPFLAGS-wcstold_l.c): Likewise.
19510
19511 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19512
19513 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19514
19515 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19516 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19517
19518 * manual/tunables.texi (Hardware Capability Tunables): Document
19519 glibc.tune.cached_memopt.
19520 * sysdeps/powerpc/cpu-features.c: New file.
19521 * sysdeps/powerpc/cpu-features.h: New file.
19522 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19523 _dl_powerpc_cpu_features.
19524 * sysdeps/powerpc/dl-tunables.list: New file.
19525 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19526 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19527 (INIT_ARCH): Initialize use_aligned_memopt.
19528 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19529 IS_IN(rtld))]: Restrict dl_platform_init availability and
19530 initialize CPU features used by tunables.
19531 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19532 Add memcpy-power8-cached.
19533 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19534 __memcpy_power8_cached.
19535 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19536 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19537 New file.
19538
19539 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19540
19541 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19542 (CFLAGS-noinl-tester.c): Likewise.
19543 (CFLAGS-tst-strlen.c): Likewise.
19544 (CFLAGS-stratcliff.c): Likewise.
19545 (CFLAGS-test-ffs.c): Likewise.
19546 (CFLAGS-tst-inlcall.c): Likewise.
19547 (CFLAGS-tst-xbzero-opt.c): Likewise.
19548 (CFLAGS-memcpy.c): Likewise.
19549 (CFLAGS-wordcopy.c): Likewise.
19550
19551 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19552
19553 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19554 Store r15 on stack and add cfi rule.
19555 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19556 Likewise.
19557
19558 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19559
19560 [BZ #22577]
19561 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19562 call.
19563
19564 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19565
19566 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19567 Add s_sinf-sse2 and s_sinf-fma.
19568 (CFLAGS-s_sinf-fma.c): New.
19569 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19570 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19571 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19572
19573 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19574
19575 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19576
19577 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19578
19579 [BZ #22568]
19580 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19581 part of result to imaginary part of argument if it is zero and the
19582 real part of the argument is not finite.
19583 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19584 of result to real part of argument if it is zero and the imaginary
19585 part of the argument is not finite.
19586
19587 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19588
19589 [BZ #22524]
19590 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19591 and to the list of locales to be built for testing.
19592 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19593 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19594 and build the collation rules upon that.
19595
19596 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19597
19598 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19599 * manual/math.texi (Mathematics): Document support for _Float32.
19600 * math/Makefile (test-types): Add float32.
19601 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19602 * stdlib/Versions (GLIBC_2.27): Likewise.
19603 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19604 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19605 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19606 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19607 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19608 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19609 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19610 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19611 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19612 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19613 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19614 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19615 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19616 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19617 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19618 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19619 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19620 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19621 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19622 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19623 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19624 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19625 Likewise.
19626 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19627 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19628 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19629 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19630 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19631 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19632 Likewise.
19633 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19634 Likewise.
19635 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19636 Likewise.
19637 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19638 Likewise.
19639
19640 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19641 Likewise.
19642 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19643 Likewise.
19644 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19645 Likewise.
19646 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19647 Likewise.
19648 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19649 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19650 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19651 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19652 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19653 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19654 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19655 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19656 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19657 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19658 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19659 Likewise.
19660 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19661 Likewise.
19662 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19663 Likewise.
19664 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19665 Likewise.
19666 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19667 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19668 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19669 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19670 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19671 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19672 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19673 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19674
19675 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19676
19677 * stdlib/strtof.c: Include <bits/floatn.h>
19678 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19679 and later undefine as macro. Define as weak alias if
19680 [!USE_WIDE_CHAR].
19681 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19682 and later undefine as macro. Define as weak alias if
19683 [USE_WIDE_CHAR].
19684 * stdlib/strtof_l.c: Include <bits/floatn.h>
19685 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19686 and later undefine as macro. Define as weak alias if
19687 [!USE_WIDE_CHAR].
19688 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19689 and later undefine as macro. Define as weak alias if
19690 [USE_WIDE_CHAR].
19691
19692 * stdlib/strfromf.c: Include <bits/floatn.h>.
19693 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19694 and later undefine as macro and define as weak alias.
19695
19696 * math/test-float32.h: New file.
19697
19698 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19699 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19700 (libm_alias_float_other_r): Create f32 alias.
19701 (libm_alias_float_r): Use semicolon before call to
19702 libm_alias_float_other_r.
19703
19704 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19705 second argument to libm_alias_float_other.
19706 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19707 second argument to libm_alias_float_other.
19708 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19709 argument to libm_alias_float_other.
19710
19711 [BZ #22561]
19712 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19713 real part of result for argument 0 + i * NaN.
19714 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19715 results for tests of 0 + i * NaN.
19716
19717 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19718
19719 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19720
19721 2017-12-06 David S. Miller <davem@davemloft.net>
19722
19723 * sysdeps/sparc/fpu/libm-test-ulps: Update
19724 exp_{downward,towardzero,upward} ulps.
19725
19726 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19727
19728 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19729 variables static.
19730
19731 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19732 (Y0_2D): Likewise.
19733 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19734 (Y0_2D): Likewise.
19735 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19736 (Y0_2D): Likewise.
19737 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19738 (Y0_2D): Likewise.
19739
19740 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19741
19742 [BZ #22515]
19743 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19744 and to the list of locales to be built for testing.
19745 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19746 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19747 and build the collation rules upon that.
19748
19749 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19750
19751 * NEWS: Add sinf to list of optimized functions.
19752
19753 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19754
19755 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19756 (__HAVE_FLOAT32X): Likewise.
19757 * manual/math.texi (Mathematics): Document support for _Float64
19758 and _Float32x.
19759 * math/Makefile (test-types): Add float64 and float32x.
19760 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19761 functions.
19762 * stdlib/Versions (GLIBC_2.27): Likewise.
19763 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19764 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19765 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19766 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19767 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19768 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19769 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19770 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19771 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19772 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19773 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19774 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19775 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19776 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19777 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19778 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19779 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19780 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19781 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19782 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19783 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19784 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19785 Likewise.
19786 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19787 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19788 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19789 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19790 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19791 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19792 Likewise.
19793 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19794 Likewise.
19795 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19796 Likewise.
19797 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19798 Likewise.
19799 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19800 Likewise.
19801 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19802 Likewise.
19803 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19804 Likewise.
19805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19806 Likewise.
19807 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19808 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19809 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19810 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19811 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19812 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19813 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19814 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19815 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19816 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19817 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19818 Likewise.
19819 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19820 Likewise.
19821 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19822 Likewise.
19823 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19824 Likewise.
19825 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19826 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19827 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19828 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19829 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19830 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19831 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19832 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19833
19834 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19835
19836 * bits/floatn-common.h: Include <bits/long-double.h>.
19837 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19838 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19839 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19840 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19841 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19842 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19843 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19844 (__builtin_huge_valf64): Use __builtin_huge_vall.
19845 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19846 (__builtin_inff64): Use __builtin_infl.
19847 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19848 (__builtin_nanf64): Use __builtin_nanl.
19849 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19850 (__builtin_nansf64): Use __builtin_nansl.
19851
19852 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19853 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19854 Carlos O'Donnell <carlos@redhat.com>
19855
19856 * elf/dl-tunables.list: Add elision parameters.
19857 * manual/tunables.texi: Add entries about elision tunable.
19858 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19859 Add callback functions to dynamically enable/disable elision.
19860 Add multiple callbacks functions to set elision parameters.
19861 Deleted __libc_enable_secure check.
19862 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19863 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19864 * configure: Regenerated.
19865 * configure.ac: Option enable_lock_elision was deleted.
19866 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19867 * config.make.in: Remove references to enable_lock_elision.
19868 * manual/install.texi: Elision configure option was removed.
19869 * INSTALL: Regenerated to remove enable_lock_elision.
19870 * nptl/Makefile:
19871 Disable elision so it can verify error case for destroying a mutex.
19872 * sysdeps/powerpc/nptl/elide.h:
19873 Cleanup ENABLE_LOCK_ELISION check.
19874 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19875 * sysdeps/s390/configure: Regenerated.
19876 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19877 * nptl/tst-mutex8.c:
19878 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19879 * sysdeps/powerpc/powerpc32/sysdep.h:
19880 Deleted all ENABLE_LOCK_ELISION checks.
19881 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19882 * sysdeps/powerpc/sysdep.h: Likewise.
19883 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19884 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19885 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19886 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19887 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19888 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19889 enable-lock-elision.
19890
19891 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19892
19893 * stdlib/strtod.c: Include <bits/floatn.h>.
19894 (BUILD_DOUBLE): New macro.
19895 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19896 (strtof64): Define and later undefine as macro. Define as weak
19897 alias if [!USE_WIDE_CHAR].
19898 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19899 (wcstof64): Define and later undefine as macro. Define as weak
19900 alias if [USE_WIDE_CHAR].
19901 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19902 (strtof32x): Define and later undefine as macro. Define as weak
19903 alias if [!USE_WIDE_CHAR].
19904 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19905 (wcstof32x): Define and later undefine as macro. Define as weak
19906 alias if [USE_WIDE_CHAR].
19907 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19908 (BUILD_DOUBLE): New macro.
19909 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19910 (strtof64_l): Define and later undefine as macro. Define as weak
19911 alias if [!USE_WIDE_CHAR].
19912 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19913 (wcstof64_l): Define and later undefine as macro. Define as weak
19914 alias if [USE_WIDE_CHAR].
19915 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19916 (strtof32x_l): Define and later undefine as macro. Define as weak
19917 alias if [!USE_WIDE_CHAR].
19918 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19919 (wcstof32x_l): Define and later undefine as macro. Define as weak
19920 alias if [USE_WIDE_CHAR].
19921
19922 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19923
19924 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19925 (reduced): Use ones as double instead of integer.
19926
19927 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19928
19929 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19930
19931 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19932
19933 * stdlib/strfromd.c: Include <bits/floatn.h>.
19934 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19935 and later undefine as macro and define as weak alias.
19936 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19937 Likewise.
19938
19939 * math/test-float32x.h: New file.
19940 * math/test-float64.h: Likewise.
19941
19942 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19943 (libm_alias_double_other_r_f64): New macro.
19944 (libm_alias_double_other_r_f32x): Likewise.
19945 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19946 libm_alias_double_other_r_f32x.
19947 (libm_alias_double_r): Use semicolon before call to
19948 libm_alias_double_other_r.
19949 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19950 <bits/floatn.h>.
19951 (libm_alias_double_other_r_f64): New macro.
19952 (libm_alias_double_other_r_f32x): Likewise.
19953 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19954 libm_alias_double_other_r_f32x.
19955
19956 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19957
19958 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19959 int.
19960 (SINF_FUNC): Likewise. Replace floor with simple casts.
19961
19962 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19963
19964 [BZ #22517]
19965 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19966 and to the list of locales to be built for testing.
19967 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19968 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19969 and build the collation rules upon that.
19970
19971 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19972
19973 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19974 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19975 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19976 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19977 instead of __insn__xxx.
19978 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19979 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19980 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19981 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19982 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19983 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19984
19985 2017-12-05 Florian Weimer <fweimer@redhat.com>
19986
19987 Linux: Implement interfaces for memory protection keys
19988 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19989 xsignal, xsysconf.
19990 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19991 * support/xunistd.h (xsysconf): Declare.
19992 * support/xraise.c: New file.
19993 * support/xsigaction.c: Likewise.
19994 * support/xsignal.c: Likewise.
19995 * support/xsysconf.c: Likewise.
19996 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19997 pkey_set, pkey_get, pkey_mprotect.
19998 [misc] (tests): Add tst-pkey.
19999 (tst-pkey): Link with -lpthread.
20000 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
20001 pkey_free, pkey_set, pkey_get, pkey_mprotect.
20002 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
20003 (PKEY_DISABLE_WRITE): Define.
20004 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
20005 Declare.
20006 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
20007 (SEGV_PKUERR): Add.
20008 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
20009 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
20010 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
20011 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
20012 Add.
20013 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
20014 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
20015 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
20016 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
20017 * sysdeps/unix/sysv/linux/**.abilist: Update.
20018
20019 2017-12-05 Florian Weimer <fweimer@redhat.com>
20020
20021 * support/tst-test_compare.c (subprocess): Use long long instead
20022 of long argument for consistent type width across 32-bit and
20023 64-bit architectures.
20024 (do_test): Adjust expected output.
20025
20026 2017-12-05 Joseph Myers <joseph@codesourcery.com>
20027
20028 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
20029 (cosf): Define using libm_alias_float.
20030 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
20031 (fabsf): Define using libm_alias_float.
20032 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
20033 (fmaf): Define using libm_alias_float.
20034 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
20035 (rintf): Define using libm_alias_float.
20036 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
20037 (sinf): Define using libm_alias_float.
20038 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
20039 <libm-alias-float.h>.
20040 (modff): Define using libm_alias_float.
20041 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
20042 <libm-alias-float.h>.
20043 (logbf): Define using libm_alias_float.
20044 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
20045 <libm-alias-float.h>.
20046 (ceilf): Define using libm_alias_float.
20047 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20048 <libm-alias-float.h>.
20049 (copysignf): Define using libm_alias_float.
20050 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
20051 <libm-alias-float.h>.
20052 (floorf): Define using libm_alias_float.
20053 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
20054 <libm-alias-float.h>.
20055 (llrintf): Define using libm_alias_float.
20056 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
20057 <libm-alias-float.h>.
20058 (llroundf): Define using libm_alias_float.
20059 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20060 <libm-alias-float.h>.
20061 (lrintf): Define using libm_alias_float.
20062 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20063 <libm-alias-float.h>.
20064 (lroundf): Define using libm_alias_float.
20065 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
20066 <libm-alias-float.h>.
20067 (nearbyintf): Define using libm_alias_float.
20068 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
20069 <libm-alias-float.h>.
20070 (rintf): Define using libm_alias_float.
20071 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
20072 <libm-alias-float.h>.
20073 (roundf): Define using libm_alias_float.
20074 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20075 <libm-alias-float.h>.
20076 (truncf): Define using libm_alias_float.
20077 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20078 Include <libm-alias-float.h>.
20079 (ceilf): Define using libm_alias_float.
20080 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20081 Include <libm-alias-float.h>.
20082 (copysignf): Define using libm_alias_float.
20083 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20084 Include <libm-alias-float.h>.
20085 (floorf): Define using libm_alias_float.
20086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20087 Include <libm-alias-float.h>.
20088 (llrintf): Define using libm_alias_float.
20089 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20090 Include <libm-alias-float.h>.
20091 (llroundf): Define using libm_alias_float.
20092 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20093 Include <libm-alias-float.h>.
20094 (logbf): Define using libm_alias_float.
20095 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20096 Include <libm-alias-float.h>.
20097 (lrintf): Define using libm_alias_float.
20098 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20099 Include <libm-alias-float.h>.
20100 (lroundf): Define using libm_alias_float.
20101 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20102 Include <libm-alias-float.h>.
20103 (modff): Define using libm_alias_float.
20104 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20105 Include <libm-alias-float.h>.
20106 (roundf): Define using libm_alias_float.
20107 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20108 Include <libm-alias-float.h>.
20109 (truncf): Define using libm_alias_float.
20110 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20111 <libm-alias-float.h>.
20112 (llrintf): Define using libm_alias_float.
20113 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20114 <libm-alias-float.h>.
20115 (llroundf): Define using libm_alias_float.
20116 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20117 <libm-alias-float.h>.
20118 (ceilf): Define using libm_alias_float.
20119 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20120 <libm-alias-float.h>.
20121 (floorf): Define using libm_alias_float.
20122 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20123 <libm-alias-float.h>.
20124 (llroundf): Define using libm_alias_float.
20125 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20126 <libm-alias-float.h>.
20127 (lroundf): Define using libm_alias_float.
20128 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20129 <libm-alias-float.h>.
20130 (roundf): Define using libm_alias_float.
20131 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20132 <libm-alias-float.h>.
20133 (truncf): Define using libm_alias_float.
20134 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20135 <libm-alias-float.h>.
20136 (copysignf): Define using libm_alias_float.
20137 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20138 <libm-alias-float.h>.
20139 (llrintf): Define using libm_alias_float.
20140 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20141 <libm-alias-float.h>.
20142 (llroundf): Define using libm_alias_float.
20143 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20144 <libm-alias-float.h>.
20145 (lrintf): Define using libm_alias_float.
20146 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20147 <libm-alias-float.h>.
20148 (lroundf): Define using libm_alias_float.
20149 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20150 <libm-alias-float.h>.
20151 (ceilf): Define using libm_alias_float.
20152 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20153 <libm-alias-float.h>.
20154 (copysignf): Define using libm_alias_float.
20155 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20156 <libm-alias-float.h>.
20157 (cosf): Define using libm_alias_float.
20158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20159 <libm-alias-float.h>.
20160 (floorf): Define using libm_alias_float.
20161 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20162 <libm-alias-float.h>.
20163 (llrintf): Define using libm_alias_float.
20164 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20165 <libm-alias-float.h>.
20166 (llroundf): Define using libm_alias_float.
20167 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20168 <libm-alias-float.h>.
20169 (logbf): Define using libm_alias_float.
20170 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20171 <libm-alias-float.h>.
20172 (modff): Define using libm_alias_float.
20173 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20174 <libm-alias-float.h>.
20175 (roundf): Define using libm_alias_float.
20176 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20177 <libm-alias-float.h>.
20178 (sinf): Define using libm_alias_float.
20179 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20180 <libm-alias-float.h>.
20181 (truncf): Define using libm_alias_float.
20182 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20183 <libm-alias-float.h>.
20184 (ceilf): Define using libm_alias_float.
20185 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20186 <libm-alias-float.h>.
20187 (copysignf): Define using libm_alias_float.
20188 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20189 <libm-alias-float.h>.
20190 (floorf): Define using libm_alias_float.
20191 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20192 <libm-alias-float.h>.
20193 (llrintf): Define using libm_alias_float.
20194 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20195 <libm-alias-float.h>.
20196 (llroundf): Define using libm_alias_float.
20197 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20198 <libm-alias-float.h>.
20199 (nearbyintf): Define using libm_alias_float.
20200 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20201 <libm-alias-float.h>.
20202 (rintf): Define using libm_alias_float.
20203 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20204 <libm-alias-float.h>.
20205 (roundf): Define using libm_alias_float.
20206 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20207 <libm-alias-float.h>.
20208 (truncf): Define using libm_alias_float.
20209 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20210 <libm-alias-float.h>.
20211 (ceilf): Define using libm_alias_float.
20212 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20213 <libm-alias-float.h>.
20214 (floorf): Define using libm_alias_float.
20215 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20216 <libm-alias-float.h>.
20217 (llroundf): Define using libm_alias_float.
20218 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20219 <libm-alias-float.h>.
20220 (roundf): Define using libm_alias_float.
20221 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20222 <libm-alias-float.h>.
20223 (truncf): Define using libm_alias_float.
20224 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20225 <libm-alias-float.h>.
20226 (copysignf): Define using libm_alias_float.
20227 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20228 <libm-alias-float.h>.
20229 (llrintf): Define using libm_alias_float.
20230 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20231 <libm-alias-float.h>.
20232 (llroundf): Define using libm_alias_float.
20233 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20234 <libm-alias-float.h>.
20235 (cosf): Define using libm_alias_float.
20236 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20237 <libm-alias-float.h>.
20238 (llrintf): Define using libm_alias_float.
20239 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20240 <libm-alias-float.h>.
20241 (llroundf): Define using libm_alias_float.
20242 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20243 <libm-alias-float.h>.
20244 (sinf): Define using libm_alias_float.
20245
20246 2017-12-04 Florian Weimer <fweimer@redhat.com>
20247
20248 * support/check.h (TEST_COMPARE): Define.
20249 (support_test_compare_failure): Declare.
20250 * support/Makefile (libsupport-routines): Add
20251 support_test_compare_failure.
20252 (tests): Add tst-test_compare.
20253 * support /support_test_compare_failure.c: New file.
20254 * support/tst-test_compare.c: Likewise.
20255
20256 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20257
20258 [BZ #22527]
20259 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20260 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20261 available, this rewrite of the collation rules does reproduce
20262 the test file in the same order.
20263
20264 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20265
20266 [BZ #10580]
20267 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20268 digraphs in the month and day names. Using single code points for
20269 digraphs is deprecated. While there are dedicated Unicode
20270 codepoints, for the digraphs, these are included for backwards
20271 compatibility and modern texts use a sequence of Basic Latin
20272 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20273 This makes the month and day names agree exactly with CLDR now,
20274 CLDR does not use the single code points for the digraphs either.
20275
20276 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20277
20278 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20279
20280 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20281
20282 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20283 of floor.
20284
20285 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20286
20287 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20288 Define only for libc.so.
20289
20290 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20291
20292 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20293 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20294 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20295 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20296 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20297
20298 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20299
20300 [BZ #5997]
20301 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20302
20303 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20304
20305 [BZ libc/19170]
20306 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20307 PREINIT_FUNCTION_WEAK is nonzero.
20308 (gmon_initializer): New function. Put procedure label for it in
20309 .init_array section.
20310 (_init): Don't call PREINIT_FUNCTION.
20311 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20312 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20313 value when map argument is null.
20314
20315 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20316 depi instruction from PIC pc-relative sequence.
20317 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20318 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20319 (elf_machine_load_address): Likewise.
20320 (elf_machine_runtime_setup): Likewise.
20321
20322 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20323
20324 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20325 <libm-alias-double.h>.
20326 (logb): Define using libm_alias_double.
20327 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20328 <libm-alias-double.h>.
20329 (copysign): Define using libm_alias_double.
20330 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20331 <libm-alias-double.h>.
20332 (llrint): Define using libm_alias_double.
20333 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20334 <libm-alias-double.h>.
20335 (llround): Define using libm_alias_double.
20336 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20337 <libm-alias-double.h>.
20338 (lrint): Define using libm_alias_double.
20339 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20340 <libm-alias-double.h>.
20341 (lround): Define using libm_alias_double.
20342 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20343 Include <libm-alias-double.h>.
20344 (copysign): Define using libm_alias_double.
20345 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20346 Include <libm-alias-double.h>.
20347 (llrint): Define using libm_alias_double.
20348 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20349 Include <libm-alias-double.h>.
20350 (llround): Define using libm_alias_double.
20351 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20352 <libm-alias-double.h>.
20353 (logb): Define using libm_alias_double.
20354 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20355 Include <libm-alias-double.h>.
20356 (lrint): Define using libm_alias_double.
20357 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20358 Include <libm-alias-double.h>.
20359 (lround): Define using libm_alias_double.
20360 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20361 <libm-alias-double.h>.
20362 (llrint): Define using libm_alias_double.
20363 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20364 <libm-alias-double.h>.
20365 (llround): Define using libm_alias_double.
20366 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20367 <libm-alias-double.h>.
20368 (llround): Define using libm_alias_double.
20369 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20370 <libm-alias-double.h>.
20371 (lround): Define using libm_alias_double.
20372 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20373 <libm-alias-double.h>.
20374 (copysign): Define using libm_alias_double.
20375 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20376 <libm-alias-double.h>.
20377 (llrint): Define using libm_alias_double.
20378 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20379 <libm-alias-double.h>.
20380 (llround): Define using libm_alias_double.
20381 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20382 <libm-alias-double.h>.
20383 (lrint): Define using libm_alias_double.
20384 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20385 <libm-alias-double.h>.
20386 (lround): Define using libm_alias_double.
20387 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20388 <libm-alias-double.h>.
20389 (copysign): Define using libm_alias_double.
20390 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20391 <libm-alias-double.h>.
20392 (llrint): Define using libm_alias_double.
20393 (lrint): Likewise.
20394 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20395 <libm-alias-double.h>.
20396 (llround): Define using libm_alias_double.
20397 (lround): Likewise.
20398 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20399 <libm-alias-double.h>.
20400 (logb): Define using libm_alias_double.
20401 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20402 <libm-alias-double.h>.
20403 (copysign): Define using libm_alias_double.
20404 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20405 <libm-alias-double.h>.
20406 (llrint): Define using libm_alias_double.
20407 (lrint): Likewise.
20408 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20409 <libm-alias-double.h>.
20410 (llround): Define using libm_alias_double.
20411 (lround): Likewise.
20412 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20413 <libm-alias-double.h>.
20414 (llround): Define using libm_alias_double.
20415 (lround): Likewise.
20416 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20417 <libm-alias-double.h>.
20418 (copysign): Define using libm_alias_double.
20419 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20420 <libm-alias-double.h>.
20421 (llrint): Define using libm_alias_double.
20422 (lrint): Likewise.
20423 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20424 <libm-alias-double.h>.
20425 (llround): Define using libm_alias_double.
20426 (lround): Likewise.
20427 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20428 <libm-alias-double.h>.
20429 (llrint): Define using libm_alias_double.
20430 (lrint): Likewise.
20431 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20432 <libm-alias-double.h>.
20433 (llround): Define using libm_alias_double.
20434 (lround): Likewise.
20435
20436 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20437
20438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20439 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20440 compat symbol based on llround.
20441
20442 * sysdeps/powerpc/power7/fpu/s_logb.c
20443 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20444 symbol based on __logb, not on logb.
20445 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20446 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20447 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20448 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20449
20450 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20451 (rint): Define using libm_alias_double.
20452 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20453 <libm-alias-double.h>.
20454 (modf): Define using libm_alias_double.
20455 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20456 <libm-alias-double.h>.
20457 (ceil): Define using libm_alias_double.
20458 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20459 <libm-alias-double.h>.
20460 (floor): Define using libm_alias_double.
20461 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20462 <libm-alias-double.h>.
20463 (nearbyint): Define using libm_alias_double.
20464 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20465 <libm-alias-double.h>.
20466 (rint): Define using libm_alias_double.
20467 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20468 <libm-alias-double.h>.
20469 (round): Define using libm_alias_double.
20470 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20471 <libm-alias-double.h>.
20472 (trunc): Define using libm_alias_double.
20473 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20474 <libm-alias-double.h>.
20475 (ceil): Define using libm_alias_double.
20476 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20477 Include <libm-alias-double.h>.
20478 (floor): Define using libm_alias_double.
20479 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20480 <libm-alias-double.h>.
20481 (modf): Define using libm_alias_double.
20482 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20483 Include <libm-alias-double.h>.
20484 (round): Define using libm_alias_double.
20485 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20486 Include <libm-alias-double.h>.
20487 (trunc): Define using libm_alias_double.
20488 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20489 <libm-alias-double.h>.
20490 (ceil): Define using libm_alias_double.
20491 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20492 <libm-alias-double.h>.
20493 (floor): Define using libm_alias_double.
20494 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20495 <libm-alias-double.h>.
20496 (round): Define using libm_alias_double.
20497 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20498 <libm-alias-double.h>.
20499 (trunc): Define using libm_alias_double.
20500 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20501 <libm-alias-double.h>.
20502 (ceil): Define using libm_alias_double.
20503 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20504 <libm-alias-double.h>.
20505 (floor): Define using libm_alias_double.
20506 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20507 <libm-alias-double.h>.
20508 (modf): Define using libm_alias_double.
20509 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20510 <libm-alias-double.h>.
20511 (round): Define using libm_alias_double.
20512 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20513 <libm-alias-double.h>.
20514 (trunc): Define using libm_alias_double.
20515 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20516 <libm-alias-double.h>.
20517 (ceil): Define using libm_alias_double.
20518 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20519 <libm-alias-double.h>.
20520 (floor): Define using libm_alias_double.
20521 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20522 <libm-alias-double.h>.
20523 (nearbyint): Define using libm_alias_double.
20524 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20525 <libm-alias-double.h>.
20526 (rint): Define using libm_alias_double.
20527 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20528 <libm-alias-double.h>.
20529 (round): Define using libm_alias_double.
20530 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20531 <libm-alias-double.h>.
20532 (trunc): Define using libm_alias_double.
20533 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20534 <libm-alias-double.h>.
20535 (ceil): Define using libm_alias_double.
20536 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20537 <libm-alias-double.h>.
20538 (floor): Define using libm_alias_double.
20539 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20540 <libm-alias-double.h>.
20541 (round): Define using libm_alias_double.
20542 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20543 <libm-alias-double.h>.
20544 (trunc): Define using libm_alias_double.
20545
20546 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20547 (fabs): Define using libm_alias_double.
20548 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20549 (fma): Define using libm_alias_double.
20550 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20551 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20552 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20553 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20554
20555 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20556
20557 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20558
20559 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20560 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20561 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20562
20563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20564 due redirect macro.
20565
20566 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20567
20568 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20569
20570 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20571
20572 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20573 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20574 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20575 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20576
20577 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20578 (libm-sysdep_routines): Add s_nearbyintf-generic and
20579 s_nearbyint-generic.
20580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20581 New file.
20582 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20583 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20584 Likewise.
20585 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20586 Likewise.
20587 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20588 file.
20589 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20590 Likewise.
20591
20592 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20593 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20594 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20595 file.
20596 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20597 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20598 Likewise.
20599 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20600 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20601 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20602
20603 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20604 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20605 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20606 file.
20607 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20608 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20609 Likewise.
20610 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20611 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20612 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20613
20614 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20615 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20616 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20617 file.
20618 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20619 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20620 Likewise.
20621 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20622 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20623 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20624
20625 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20626 (sysdep_calls): New rule.
20627 (sysdep_routines): Use sysdep_calls as base.
20628 (libm-sysdep_routines): Add generic rule for symbols shared with
20629 libc. Add s_copysign-generic and s_copysign-generic objects.
20630 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20631 New file.
20632 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20633 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20634 Likewise.
20635 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20636 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20637 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20638
20639 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20640
20641 [BZ #22519]
20642 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20643 the list of locales to be built for testing.
20644 * localedata/is_IS.UTF-8.in: New file.
20645 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20646 on iso14651_t1.
20647
20648 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20649
20650 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20651 <libm-alias-float.h>.
20652 (fabsf): Define using libm_alias_float.
20653
20654 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20655
20656 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20657
20658 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20659
20660 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20661 <libm-alias-float.h>.
20662 (fabsf): Define using libm_alias_float.
20663 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20664 <libm-alias-float.h>.
20665 (lrintf): Define using libm_alias_float.
20666 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20667 <libm-alias-float.h>.
20668 (rintf): Define using libm_alias_float.
20669
20670 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20671 <libm-alias-double.h>.
20672 (fabs): Define using libm_alias_double.
20673 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20674 <libm-alias-double.h>.
20675 (lrint): Define using libm_alias_double.
20676 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20677 <libm-alias-double.h>.
20678 (rint): Define using libm_alias_double.
20679
20680 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20681 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20682 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20683 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20684 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20685 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20686 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20687 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20688 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20689 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20690 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20691 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20692 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20693 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20694 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20695 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20696 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20697 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20698 s_atan_template.c.
20699 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20700 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20701 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20702 s_ceil_template.c.
20703 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20704 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20705 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20706 s_cos_template.c.
20707 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20708 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20709 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20710 s_expm1_template.c.
20711 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20712 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20713 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20714 s_fabs_template.c.
20715 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20716 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20717 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20718 s_floor_template.c.
20719 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20720 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20721 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20722 s_frexp_template.c.
20723 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20724 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20725 s_lrint_template.c.
20726 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20727 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20728 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20729 s_modf_template.c.
20730 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20731 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20732 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20733 s_nearbyint_template.c.
20734 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20735 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20736 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20737 s_remquo_template.c.
20738 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20739 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20740 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20741 s_rint_template.c.
20742 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20743 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20744 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20745 s_sin_template.c.
20746 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20747 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20748 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20749 s_sincos_template.c.
20750 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20751 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20752 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20753 s_tan_template.c.
20754 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20755 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20756 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20757 s_tanh_template.c.
20758 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20759 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20760 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20761 s_trunc_template.c.
20762 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20763 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20764 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20765 s_atan.c instead of including s_atan.c.
20766 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20767 s_atanf.c instead of including s_atanf.c.
20768 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20769 s_atanl.c instead of including s_atanl.c.
20770 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20771 instead of s_atan.c.
20772 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20773 instead of s_atanf.c.
20774 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20775 instead of s_atanl.c.
20776
20777 * scripts/update-copyrights: Do not handle intl/plural.c
20778 specially.
20779
20780 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20781
20782 [BZ #22432]
20783 * configure.ac (BISON): Require to be present.
20784 * configure: Regenerated.
20785 * intl/Makefile (generated): Add plural.c.
20786 [$(BISON) != no]: Make code unconditional.
20787 (plural.c): Change rule to $(objpfx)plural.c.
20788 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20789 * intl/plural.c: Remove.
20790 * manual/install.texi (Tools for Compilation): Document bison as
20791 required.
20792 * INSTALL: Regenerated.
20793
20794 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20795
20796 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20797 <libm-alias-double.h>.
20798 (llrint): Define using libm_alias_double.
20799 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20800 <libm-alias-float.h>.
20801 (llrintf): Define using libm_alias_float.
20802 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20803 <libm-alias-ldouble.h>.
20804 (llrintl): Define using libm_alias_ldouble.
20805
20806 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20807 declare_mgen_alias instead of weak_alias.
20808 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20809 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20810 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20811
20812 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20813
20814 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20815 Add add_n-generic.
20816 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20817 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20818 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20819
20820 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20821 Add submul_1-generic.
20822 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20823 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20824 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20825
20826 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20827 Add addmul_1-generic.
20828 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20829 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20830 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20831
20832 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20833 Add sub_n-generic.
20834 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20835 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20836 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20837
20838 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20839 Add mul_1-generic.
20840 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20841 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20842 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20843
20844 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20845
20846 According to CLDR, collation rules for Serbian and Bosnian
20847 should be the same as for Croatian.
20848
20849 [BZ #22534]
20850 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20851 and to the list of locales to be built for testing.
20852 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20853 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20854 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20855 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20856
20857 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20858
20859 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20860 to make test case pass.
20861 * localedata/hr_HR.UTF-8.in: Add more test strings.
20862
20863 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20864
20865 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20866
20867 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20868
20869 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20870 the list of locales to built for testing.
20871 * localedata/hr_HR.UTF-8.in: New file.
20872
20873 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20874
20875 [BZ #10580]
20876 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20877 iso14651_t1.
20878 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20879 CLDR (except use ligatures for the digraphs, CLDR does not use
20880 the ligatures), add first_workday, some fixes in the date and time
20881 formats.
20882 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20883 for Đ and đ.
20884 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20885 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20886 Add int_p_cs_precedes and int_n_cs_precedes.
20887 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20888 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20889 LC_MONETARY now).
20890 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20891 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20892 name_miss.
20893 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20894 and lang_lib. Change postal_fmt.
20895
20896 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20897
20898 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20899 <setjmp.h>.
20900 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20901 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20902 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20903 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20904 * sysdeps/generic/setjmpP.h: New file.
20905 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20906 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20907 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20908 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20909 Add jmp_buf-ssp.sym.
20910 (tests): Add tst-saved_mask-1.
20911
20912 2017-11-30 Arjun Shankar <arjun@redhat.com>
20913
20914 [BZ #22375]
20915 CVE-2017-17426
20916 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20917 instead of request2size.
20918
20919 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20920
20921 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20922 (__lllrint): Remove alias.
20923 (lllrint): Likewise.
20924 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20925 (__lllrintf): Likewise.
20926 (lllrintf): Likewise.
20927
20928 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20929 <libm-alias-float.h>.
20930 (copysignf): Define using libm_alias_float.
20931 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20932 <libm-alias-float.h>.
20933 (fabsf): Define using libm_alias_float.
20934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20935 Include <libm-alias-float.h>.
20936 (copysignf): Define using libm_alias_float.
20937 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20938 <libm-alias-float.h>.
20939 (fabsf): Define using libm_alias_float.
20940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20941 <libm-alias-float.h>.
20942 (fdimf): Define using libm_alias_float.
20943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20944 <libm-alias-float.h>.
20945 (fmaf): Define using libm_alias_float.
20946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20947 <libm-alias-float.h>.
20948 (llrintf): Define using libm_alias_float.
20949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20950 Include <libm-alias-float.h>.
20951 (nearbyintf): Define using libm_alias_float.
20952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20953 <libm-alias-float.h>.
20954 (rintf): Define using libm_alias_float.
20955 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20956 <libm-alias-float.h>.
20957 (llrintf): Define using libm_alias_float.
20958 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20959 <libm-alias-float.h>.
20960 (lrintf): Define using libm_alias_float.
20961 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20962 <libm-alias-float.h>.
20963 (nearbyintf): Define using libm_alias_float.
20964 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20965 <libm-alias-float.h>.
20966 (rintf): Define using libm_alias_float.
20967 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20968 <libm-alias-float.h>.
20969 (ceilf): Define using libm_alias_float.
20970 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20971 <libm-alias-float.h>.
20972 (floorf): Define using libm_alias_float.
20973 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20974 <libm-alias-float.h>.
20975 (fmaf): Define using libm_alias_float.
20976 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20977 <libm-alias-float.h>.
20978 (lrintf): Define using libm_alias_float.
20979 (llrintf): Likewise.
20980 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20981 <libm-alias-float.h>.
20982 (nearbyintf): Define using libm_alias_float.
20983 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20984 <libm-alias-float.h>.
20985 (rintf): Define using libm_alias_float.
20986 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20987 <libm-alias-float.h>.
20988 (truncf): Define using libm_alias_float.
20989 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20990 <libm-alias-float.h>.
20991 (copysignf): Define using libm_alias_float.
20992 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20993 <libm-alias-float.h>.
20994 (fabsf): Define using libm_alias_float.
20995 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20996 <libm-alias-float.h>.
20997 (lrintf): Define using libm_alias_float.
20998 (llrintf): Likewise.
20999 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
21000 <libm-alias-float.h>.
21001 (nearbyintf): Define using libm_alias_float.
21002 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
21003 <libm-alias-float.h>.
21004 (rintf): Define using libm_alias_float.
21005
21006 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21007
21008 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
21009 <libm-alias-double.h>.
21010 (copysign): Define using libm_alias_double.
21011 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
21012 <libm-alias-double.h>.
21013 (fabs): Define using libm_alias_double.
21014 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
21015 Include <libm-alias-double.h>.
21016 (copysign): Define using libm_alias_double.
21017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
21018 <libm-alias-double.h>.
21019 (fabs): Define using libm_alias_double.
21020 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
21021 <libm-alias-double.h>.
21022 (fdim): Define using libm_alias_double.
21023 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
21024 <libm-alias-double.h>.
21025 (fma): Define using libm_alias_double.
21026 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
21027 <libm-alias-double.h>.
21028 (llrint): Define using libm_alias_double.
21029 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
21030 Include <libm-alias-double.h>.
21031 (nearbyint): Define using libm_alias_double.
21032 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
21033 <libm-alias-double.h>.
21034 (rint): Define using libm_alias_double.
21035 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21036 <libm-alias-double.h>.
21037 (fabs): Define using libm_alias_double.
21038 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
21039 <libm-alias-double.h>.
21040 (llrint): Define using libm_alias_double.
21041 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
21042 <libm-alias-double.h>.
21043 (nearbyint): Define using libm_alias_double.
21044 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
21045 <libm-alias-double.h>.
21046 (rint): Define using libm_alias_double.
21047 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
21048 <libm-alias-double.h>.
21049 (ceil): Define using libm_alias_double.
21050 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
21051 <libm-alias-double.h>.
21052 (floor): Define using libm_alias_double.
21053 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
21054 <libm-alias-double.h>.
21055 (fma): Define using libm_alias_double.
21056 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
21057 <libm-alias-double.h>.
21058 (lrint): Define using libm_alias_double.
21059 (llrint): Likewise.
21060 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
21061 <libm-alias-double.h>.
21062 (nearbyint): Define using libm_alias_double.
21063 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
21064 <libm-alias-double.h>.
21065 (rint): Define using libm_alias_double.
21066 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
21067 <libm-alias-double.h>.
21068 (trunc): Define using libm_alias_double.
21069 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
21070 <libm-alias-double.h>.
21071 (copysign): Define using libm_alias_double.
21072 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
21073 <libm-alias-double.h>.
21074 (fabs): Define using libm_alias_double.
21075 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21076 <libm-alias-double.h>.
21077 (lrint): Define using libm_alias_double.
21078 (llrint): Likewise.
21079 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21080 <libm-alias-double.h>.
21081 (nearbyint): Define using libm_alias_double.
21082 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21083 <libm-alias-double.h>.
21084 (rint): Define using libm_alias_double.
21085
21086 [BZ #22229]
21087 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21088 <math_ldbl_opt.h>.
21089 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21090
21091 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21092 SPARC --disable-multi-arch glibc variants.
21093
21094 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21095 <libm-alias-float.h>.
21096 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21097 if [SHARED].
21098 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21099 <libm-alias-float.h>.
21100 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21101 if [SHARED].
21102 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21103 <libm-alias-float.h>.
21104 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21105 if [SHARED].
21106 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21107 <libm-alias-float.h>.
21108 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21109 if [SHARED].
21110 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21111 <libm-alias-float.h>.
21112 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21113 if [SHARED].
21114 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21115 <libm-alias-float.h>.
21116 (ceilf): Define using libm_alias_float.
21117 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21118 <libm-alias-float.h>.
21119 (floorf): Define using libm_alias_float.
21120 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21121 <libm-alias-float.h>.
21122 (fmaf): Define using libm_alias_float.
21123 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21124 <libm-alias-float.h>.
21125 (nearbyintf): Define using libm_alias_float.
21126 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21127 <libm-alias-float.h>.
21128 (rintf): Define using libm_alias_float.
21129 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21130 <libm-alias-float.h>.
21131 (truncf): Define using libm_alias_float.
21132 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21133 (copysignf): Define using libm_alias_float.
21134 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21135 (cosf): Define using libm_alias_float.
21136 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21137 (fabsf): Define using libm_alias_float.
21138 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21139 (fmaxf): Define using libm_alias_float.
21140 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21141 (fminf): Define using libm_alias_float.
21142 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21143 (llrintf): Define using libm_alias_float.
21144 [!__ILP32__] (lrintf): Likewise.
21145 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21146 (sincosf): Define using libm_alias_float.
21147 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21148 (sinf): Define using libm_alias_float.
21149 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21150 (lrintf): Define using libm_alias_float.
21151
21152 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21153 <libm-alias-double.h>.
21154 (atan): Define using libm_alias_double.
21155 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21156 <libm-alias-double.h>.
21157 (ceil): Define using libm_alias_double.
21158 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21159 <libm-alias-double.h>.
21160 (floor): Define using libm_alias_double.
21161 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21162 <libm-alias-double.h>.
21163 (fma): Define using libm_alias_double.
21164 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21165 <libm-alias-double.h>.
21166 (nearbyint): Define using libm_alias_double.
21167 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21168 <libm-alias-double.h>.
21169 (rint): Define using libm_alias_double.
21170 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21171 <libm-alias-double.h>.
21172 (sin): Define using libm_alias_double.
21173 (cos): Likewise.
21174 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21175 <libm-alias-double.h>.
21176 (tan): Define using libm_alias_double.
21177 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21178 <libm-alias-double.h>.
21179 (trunc): Define using libm_alias_double.
21180 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21181 (copysign): Define using libm_alias_double.
21182 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21183 (fabs): Define using libm_alias_double.
21184 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21185 (fmax): Define using libm_alias_double.
21186 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21187 (fmin): Define using libm_alias_double.
21188 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21189 (llrint): Define using libm_alias_double.
21190 [!__ILP32__] (lrint): Likewise.
21191 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21192 (lrint): Define using libm_alias_double.
21193
21194 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21195
21196 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21197 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21198 objects.
21199 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21200 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21201 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21202 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21203 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21204 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21205
21206 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21207 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21208 objects.
21209 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21210 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21211 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21212 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21213 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21214 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21215
21216 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21217 (libm-sysdep_routines): Add s_nearbyint-generic and
21218 s_nearbyintf-generic objects.
21219 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21220 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21221 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21222 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21223 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21224 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21225
21226 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21227 Add s_finitef-generic and s_finite-generic objects.
21228 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21229 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21230 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21231 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21232 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21233 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21234
21235 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21236 Add s_isinff-generic and s_isinf-generic objects.
21237 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21238 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21239 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21240 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21241 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21242 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21243
21244 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21245 Add s_isnanf-generic and s_isnan-generic objects.
21246 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21247 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21248 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21249 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21250 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21251 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21252
21253 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21254 macro.
21255 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21256 rule.
21257 (sysdep_routines): Use sysdep_calls as base.
21258 (libm-sysdep_routines): Add generic rule for symbols shared with
21259 libc. Add s_signbit-generic and s_signbitf-generic objects.
21260 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21261 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21262 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21263 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21264 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21265 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21266
21267 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21268
21269 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21270 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21271 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21272 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21273 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21274 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21275 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21276 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21277 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21278 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21279 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21280 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21281 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21282 libm_alias_float_r.
21283 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21284 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21285 (logf): Likewise.
21286 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21287 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21288 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21289 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21290 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21291 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21292 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21293 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21294 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21295 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21296 libm_alias_float.
21297 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21298 (cosf): Likewise.
21299 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21300 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21301 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21302 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21303 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21304 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21305 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21306 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21307 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21308 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21309 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21310 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21311 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21312 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21313 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21314 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21315 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21316 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21317 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21318 libm_alias_float.
21319 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21320 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21321 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21322 * sysdeps/ia64/fpu/w_lgammaf_main.c
21323 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21324 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21325
21326 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21327 Alexandre Oliva <aoliva@redhat.com>
21328
21329 [BZ #17750]
21330 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21331 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21332 accents sorting.
21333 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21334 sorting.
21335 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21336 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21337 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21338 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21339 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21340 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21341 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21342 instead of “ifdef DIACRIT_BACKWARD”.
21343
21344 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21345
21346 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21347 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21348 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21349 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21350 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21351 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21352 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21353 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21354 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21355 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21356 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21357 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21358 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21359 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21360 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21361 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21362 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21363 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21364 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21365 ($(have-as-vis3) == yes): Remove conditional.
21366 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21367 Likewise.
21368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21369 file.
21370 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21371 file.
21372 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21373 file.
21374 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21375 file.
21376 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21377 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21378 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21379 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21380 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21381 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21382 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21383 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21384
21385 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21386
21387 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21388 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21389 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21390 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21391 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21392 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21393 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21394 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21395 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21396 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21397 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21398 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21399 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21400 libm_alias_double_r.
21401 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21402 (log): Likewise.
21403 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21404 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21405 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21406 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21407 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21408 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21409 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21410 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21411 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21412 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21413 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21414 libm_alias_double.
21415 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21416 (cos): Likewise.
21417 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21418 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21419 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21420 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21421 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21422 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21423 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21424 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21425 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21426 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21427 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21428 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21429 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21430 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21431 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21432 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21433 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21434 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21435 libm_alias_double.
21436 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21437 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21438 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21439 * sysdeps/ia64/fpu/w_lgamma_main.c
21440 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21441 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21442
21443 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21444
21445 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21446 address of $global$ into %dp register earlier. Use pc-relative
21447 instruction sequence for PIC case.
21448
21449 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21450
21451 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21452 (asinhf): Define using libm_alias_float.
21453 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21454 (atanf): Define using libm_alias_float.
21455 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21456 (cbrtf): Define using libm_alias_float.
21457 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21458 (ceilf): Define using libm_alias_float.
21459 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21460 (copysignf): Define using libm_alias_float.
21461 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21462 (expm1f): Define using libm_alias_float.
21463 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21464 (fabsf): Define using libm_alias_float.
21465 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21466 (floorf): Define using libm_alias_float.
21467 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21468 (fmaxf): Define using libm_alias_float.
21469 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21470 (fminf): Define using libm_alias_float.
21471 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21472 (frexpf): Define using libm_alias_float.
21473 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21474 (llrintf): Define using libm_alias_float.
21475 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21476 (logbf): Define using libm_alias_float.
21477 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21478 (lrintf): Define using libm_alias_float.
21479 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21480 (nearbyintf): Define using libm_alias_float.
21481 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21482 (remquof): Define using libm_alias_float.
21483 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21484 (rintf): Define using libm_alias_float.
21485 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21486 (truncf): Define using libm_alias_float.
21487 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21488 <libm-alias-float.h>.
21489 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21490 if [SHARED].
21491 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21492 <libm-alias-float.h>.
21493 (expf): Define using libm_alias_float, or libm_alias_float_other
21494 if [SHARED].
21495 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21496 <libm-alias-float.h>.
21497 (log2f): Define using libm_alias_float, or libm_alias_float_other
21498 if [SHARED].
21499 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21500 <libm-alias-float.h>.
21501 (logf): Define using libm_alias_float, or libm_alias_float_other
21502 if [SHARED].
21503 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21504 <libm-alias-float.h>.
21505 (powf): Define using libm_alias_float, or libm_alias_float_other
21506 if [SHARED].
21507 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21508 <libm-alias-float.h>.
21509 (cosf): Define using libm_alias_float.
21510 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21511 <libm-alias-float.h>.
21512 (sincosf): Define using libm_alias_float.
21513 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21514 <libm-alias-float.h>.
21515 (sinf): Define using libm_alias_float.
21516 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21517 (fmaxf): Define using libm_alias_float.
21518 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21519 (fminf): Define using libm_alias_float.
21520 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21521 <libm-alias-float.h>.
21522 (fmaf): Define using libm_alias_float.
21523
21524 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21525 (asinh): Define using libm_alias_double.
21526 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21527 (atan): Define using libm_alias_double.
21528 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21529 (cbrt): Define using libm_alias_double.
21530 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21531 (ceil): Define using libm_alias_double.
21532 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21533 (copysign): Define using libm_alias_double.
21534 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21535 (expm1): Define using libm_alias_double.
21536 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21537 (fabs): Define using libm_alias_double.
21538 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21539 (fdim): Define using libm_alias_double.
21540 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21541 (floor): Define using libm_alias_double.
21542 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21543 (fmax): Define using libm_alias_double.
21544 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21545 (fmin): Define using libm_alias_double.
21546 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21547 (frexp): Define using libm_alias_double.
21548 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21549 (llrint): Define using libm_alias_double.
21550 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21551 (logb): Define using libm_alias_double.
21552 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21553 (lrint): Define using libm_alias_double.
21554 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21555 (nearbyint): Define using libm_alias_double.
21556 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21557 (remquo): Define using libm_alias_double.
21558 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21559 (rint): Define using libm_alias_double.
21560 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21561 (trunc): Define using libm_alias_double.
21562 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21563 (fmax): Define using libm_alias_double.
21564 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21565 (fmin): Define using libm_alias_double.
21566 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21567 (fma): Define using libm_alias_double.
21568
21569 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21570
21571 [BZ #22370]
21572 * elf/dl-hwcaps.c (ROUND): Removed.
21573 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21574 and ELF_NOTE_NEXT_OFFSET.
21575 * elf/dl-load.c (ROUND): Removed.
21576 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21577 * elf/readelflib.c (ROUND): Removed.
21578 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21579 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21580 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21581 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21582
21583 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21584
21585 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21586 [!__fmaf] (fmaf): Define using libm_alias_float.
21587
21588 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21589 [!__fma] (fma): Define using libm_alias_double.
21590 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21591
21592 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21593
21594 [BZ #22336]
21595 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21596 and implement the collation rules for cs from CLDR on top of that.
21597 * Makefile: Add cs_CZ.UTF-8 to test-input.
21598 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21599
21600 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21601
21602 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21603
21604 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21605 Icarus Sparry <icarus.w.sparry@intel.com>
21606
21607 * benchtests/Makefile:Add BENCHSET to allow subsets of
21608 benchmarks to be run.
21609 * benchtests/README: Add documentation for: Running subsets of
21610 benchmarks.
21611
21612 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21613
21614 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21615 range of tests names.
21616
21617 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21618 result from property and remove "max", min" and "mean" from
21619 required properties based on benchtests/bench-skeleton.c.
21620
21621 2017-11-28 Florian Weimer <fweimer@redhat.com>
21622
21623 [BZ #20826]
21624 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21625 due to Internet requirement.
21626 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21627 tst-getaddrinfo5.
21628 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21629
21630 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21631
21632 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21633 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21634 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21635 (sysdep_routines): Add memset-ultra1.
21636 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21637 file.
21638 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21639 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21640 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21641 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21642 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21643 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21644 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21645 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21646
21647 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21648 file.
21649 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21650 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21651 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21652 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21653 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21654 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21655 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21656 macro.
21657 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21658 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21659 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21660 (sysdep_routines): Add memcpy-ultra1.
21661 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21662 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21663
21664 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21665
21666 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21667 (cfloat_versions): Take function argument without trailing 'f'.
21668 Call libm_alias_float_other.
21669 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21670 * sysdeps/alpha/fpu/cargf.c: Likewise.
21671 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21672 * sysdeps/alpha/fpu/conjf.c: Likewise.
21673 * sysdeps/alpha/fpu/crealf.c: Likewise.
21674 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21675 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21676 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21677 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21678 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21679 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21680 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21681 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21682 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21683 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21684 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21685 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21686 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21687 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21688 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21689 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21690 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21691 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21692 (clog10f): Use libm_alias_float_other.
21693 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21694 (ceilf): Define using libm_alias_float.
21695 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21696 (copysignf): Define using libm_alias_float.
21697 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21698 (fabsf): Define using libm_alias_float.
21699 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21700 (floorf): Define using libm_alias_float.
21701 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21702 (fmaxf): Define using libm_alias_float.
21703 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21704 (fminf): Define using libm_alias_float.
21705 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21706 (lrintf): Define using libm_alias_float.
21707 (llrintf): Likewise.
21708 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21709 (lroundf): Define using libm_alias_float.
21710 (llroundf): Likewise.
21711 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21712 (rintf): Define using libm_alias_float.
21713 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21714 (truncf): Define using libm_alias_float.
21715
21716 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21717 (ceilf): Define using libm_alias_float.
21718 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21719 (floorf): Define using libm_alias_float.
21720 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21721 (fmaf): Define using libm_alias_float.
21722 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21723 (fmaxf): Define using libm_alias_float.
21724 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21725 (fminf): Define using libm_alias_float.
21726 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21727 (llrintf): Define using libm_alias_float.
21728 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21729 (llroundf): Define using libm_alias_float.
21730 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21731 (lrintf): Define using libm_alias_float.
21732 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21733 (lroundf): Define using libm_alias_float.
21734 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21735 <libm-alias-float.h>.
21736 (nearbyintf): Define using libm_alias_float.
21737 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21738 (rintf): Define using libm_alias_float.
21739 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21740 (roundf): Define using libm_alias_float.
21741 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21742 (truncf): Define using libm_alias_float.
21743
21744 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21745 (ceil): Define using libm_alias_double.
21746 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21747 (copysign): Define using libm_alias_double.
21748 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21749 (fabs): Define using libm_alias_double.
21750 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21751 (floor): Define using libm_alias_double.
21752 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21753 (fmax): Define using libm_alias_double.
21754 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21755 (fmin): Define using libm_alias_double.
21756 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21757 (lrint): Define using libm_alias_double.
21758 (llrint): Likewise.
21759 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21760 (lround): Define using libm_alias_double.
21761 (llround): Likewise.
21762 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21763 (rint): Define using libm_alias_double.
21764 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21765 (trunc): Define using libm_alias_double.
21766
21767 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21768 (libm_alias_double_r): Add semicolon after weak_alias call.
21769
21770 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21771
21772 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21773 (ceil): Define using libm_alias_double.
21774 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21775 (floor): Define using libm_alias_double.
21776 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21777 (fma): Define using libm_alias_double.
21778 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21779 (fmax): Define using libm_alias_double.
21780 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21781 (fmin): Define using libm_alias_double.
21782 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21783 (llrint): Define using libm_alias_double.
21784 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21785 (llround): Define using libm_alias_double.
21786 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21787 (lrint): Define using libm_alias_double.
21788 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21789 (lround): Define using libm_alias_double.
21790 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21791 (nearbyint): Define using libm_alias_double.
21792 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21793 (rint): Define using libm_alias_double.
21794 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21795 (round): Define using libm_alias_double.
21796 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21797 (trunc): Define using libm_alias_double.
21798
21799 2017-11-27 Florian Weimer <fweimer@redhat.com>
21800
21801 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21802 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21803 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21804 (tests): Add tst-mlock2.
21805 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21806 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21807 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21808 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21809 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21810 for mlock. Document mlock2.
21811
21812 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21813
21814 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21815 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21816 Likewise.
21817 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21818 Likewise.
21819 * sysdeps/x86/Makeconfig: New file.
21820 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21821 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21822 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21823 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21824 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21825 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21826 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21827 Likewise.
21828 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21829 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21830 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21831 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21832 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21833 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21834 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21835 * manual/math.texi (Mathematics): Document support for _Float64x.
21836 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21837 * stdlib/Versions (GLIBC_2.27): Likewise.
21838 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21839 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21840 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21841 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21842 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21843 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21844 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21845 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21846 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21847 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21848 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21849 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21850 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21851 Likewise.
21852 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21853 Likewise.
21854 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21855 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21856 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21857 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21858 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21859 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21860 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21861 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21862 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21863 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21864 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21865 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21866 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21867 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21868
21869 2017-11-27 Andreas Schwab <schwab@suse.de>
21870
21871 * elf/Makefile (dl-routines): Add dl-sort-maps.
21872 * elf/dl-sort-maps.c: New file.
21873 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21874 (_dl_sort_maps): Declare.
21875 * elf/dl-fini.c (_dl_sort_fini): Remove.
21876 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21877 * elf/dl-close.c (_dl_close_worker): Likewise.
21878 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21879 open-coding it.
21880 * elf/dl-open.c (dl_open_worker): Likewise.
21881
21882 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21883
21884 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21885 using libm_alias_float128.
21886 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21887 Likewise.
21888 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21889 Likewise.
21890 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21891 (setpayloadsigf128): Likewise.
21892 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21893 Likewise.
21894 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21895 Likewise.
21896
21897 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21898 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21899 -mfloat128 to CFLAGS.
21900 ($(foreach
21901 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21902 Likewise.
21903 (CFLAGS-libm-test-support-float64x.c): New variable.
21904 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21905 $(f128-loader-link) to gnulib-tests.
21906
21907 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21908 (libm_alias_float128_other_r): If
21909 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21910 alias.
21911 (libm_alias_float128_r): Add semicolon after weak_alias call.
21912 * sysdeps/generic/libm-alias-ldouble.h
21913 (libm_alias_ldouble_other_r_f128): New macro.
21914 (libm_alias_ldouble_other_r_f64x): Likewise.
21915 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21916 and libm_alias_ldouble_other_r_f64x.
21917 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21918 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21919 (libm_alias_ldouble_other_r_f128): New macro.
21920 (libm_alias_ldouble_other_r_f64x): Likewise.
21921 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21922 and libm_alias_ldouble_other_r_f64x.
21923
21924 * stdlib/strfroml.c: Always include <stdlib.h>.
21925 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21926 undefine as macro and define as weak alias.
21927 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21928 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21929 <stdlib.h>.
21930 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21931 Define and later undefine as macro and define as weak alias.
21932
21933 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21934 Define and later undefine as macro. Define as weak alias if
21935 [!USE_WIDE_CHAR].
21936 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21937 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21938 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21939 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21940 Define and later undefine as macro. Define as weak alias if
21941 [!USE_WIDE_CHAR].
21942 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21943 Define and later undefine as macro. Define as weak alias if
21944 [USE_WIDE_CHAR].
21945 * sysdeps/ieee754/float128/strtof128_l.c
21946 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21947 Define and later undefine as macro. Define as weak alias if
21948 [!USE_WIDE_CHAR].
21949 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21950 Define and later undefine as macro. Define as weak alias if
21951 [USE_WIDE_CHAR].
21952 * sysdeps/ieee754/ldbl-128/strtold_l.c
21953 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21954 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21955 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21956 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21957 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21958 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21959 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21960 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21961 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21962 * sysdeps/ieee754/ldbl-96/strtold_l.c
21963 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21964 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21965 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21966 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21967
21968 * math/test-float64x.h: New file.
21969 * math/Makefile (type-float64x-yes): New variable.
21970 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21971
21972 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21973 function-like macro.
21974 (min_of_type_): Likewise.
21975 (min_of_type_l): Likewise.
21976 (min_of_type_f128): Likewise.
21977 (min_of_type): Pass () as last argument of __MATH_TG.
21978
21979 * stdlib/tst-strtod-round-skeleton.c
21980 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21981 headers.
21982
21983 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21984 for combinations of long double with _Float64 and _Float64x.
21985
21986 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21987 (__DECL_SIMD_cosf32): Likewise.
21988 (__DECL_SIMD_cosf64): Likewise.
21989 (__DECL_SIMD_cosf32x): Likewise.
21990 (__DECL_SIMD_cosf64x): Likewise.
21991 (__DECL_SIMD_cosf128x): Likewise.
21992 (__DECL_SIMD_sinf16): Likewise.
21993 (__DECL_SIMD_sinf32): Likewise.
21994 (__DECL_SIMD_sinf64): Likewise.
21995 (__DECL_SIMD_sinf32x): Likewise.
21996 (__DECL_SIMD_sinf64x): Likewise.
21997 (__DECL_SIMD_sinf128x): Likewise.
21998 (__DECL_SIMD_sincosf16): Likewise.
21999 (__DECL_SIMD_sincosf32): Likewise.
22000 (__DECL_SIMD_sincosf64): Likewise.
22001 (__DECL_SIMD_sincosf32x): Likewise.
22002 (__DECL_SIMD_sincosf64x): Likewise.
22003 (__DECL_SIMD_sincosf128x): Likewise.
22004 (__DECL_SIMD_logf16): Likewise.
22005 (__DECL_SIMD_logf32): Likewise.
22006 (__DECL_SIMD_logf64): Likewise.
22007 (__DECL_SIMD_logf32x): Likewise.
22008 (__DECL_SIMD_logf64x): Likewise.
22009 (__DECL_SIMD_logf128x): Likewise.
22010 (__DECL_SIMD_expf16): Likewise.
22011 (__DECL_SIMD_expf32): Likewise.
22012 (__DECL_SIMD_expf64): Likewise.
22013 (__DECL_SIMD_expf32x): Likewise.
22014 (__DECL_SIMD_expf64x): Likewise.
22015 (__DECL_SIMD_expf128x): Likewise.
22016 (__DECL_SIMD_powf16): Likewise.
22017 (__DECL_SIMD_powf32): Likewise.
22018 (__DECL_SIMD_powf64): Likewise.
22019 (__DECL_SIMD_powf32x): Likewise.
22020 (__DECL_SIMD_powf64x): Likewise.
22021 (__DECL_SIMD_powf128x): Likewise.
22022
22023 * stdlib/Versions (libc): Move entries for wcstof128 and
22024 wcstof128_l to ....
22025 * wcsmbs/Versions (libc): ... here.
22026 Include <float128-abi.h>.
22027
22028 2017-11-24 Florian Weimer <fweimer@redhat.com>
22029
22030 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22031 bits/mman-shared.h.
22032 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
22033 <bits/mman-shared.h>.
22034 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
22035 to ...
22036 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
22037 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
22038 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
22039 <bits/mman-shared.h>.
22040
22041 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22042
22043 [BZ #22457]
22044 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
22045 posix_memalign/free.
22046 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
22047
22048 2017-11-22 Mike FABIAN <mfabian@redhat.com>
22049
22050 [BZ #22469]
22051 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
22052 and implement the collation rules for pl from CLDR on top of that.
22053 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
22054 of locales to be built for testing.
22055 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
22056
22057 2017-11-23 Joseph Myers <joseph@codesourcery.com>
22058
22059 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
22060 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
22061 libm_alias_ldouble_other.
22062 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
22063 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
22064 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
22065 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
22066 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
22067 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
22068 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
22069 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
22070 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
22071 libm_alias_ldouble_r.
22072 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
22073 libm_alias_ldouble_other.
22074 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22075 (log10l): Likewise.
22076 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22077 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22078 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22079 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22080 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22081 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22082 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22083 (atan2l): Likewise.
22084 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22085 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22086 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22087 libm_alias_ldouble.
22088 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22089 (cosl): Likewise.
22090 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22091 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22092 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22093 (expl): Likewise.
22094 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22095 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22096 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22097 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22098 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22099 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22100 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22101 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22102 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22103 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22104 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22105 libm_alias_ldouble.
22106 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22107 libm_alias_ldouble_other.
22108 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22109 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22110 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22111 libm_alias_ldouble.
22112 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22113 libm_alias_ldouble_other.
22114 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22115 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22116 * sysdeps/ia64/fpu/w_lgammal_main.c
22117 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22118 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22119
22120 2017-11-23 Florian Weimer <fweimer@redhat.com>
22121
22122 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22123 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22124 alike. Remove freeres marker.
22125 * malloc/arena.c (arena_thread_freeres): Call
22126 tcache_thread_shutdown.
22127
22128 2017-11-23 Florian Weimer <fweimer@redhat.com>
22129
22130 [BZ #22459]
22131 Export nscd hash function as __nss_hash.
22132 * include/nss.h (__nss_hash): Declare.
22133 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22134 symbol.
22135 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22136 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22137 of __nscd_hash.
22138 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22139 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22140 * nss/Makefiles (routines): Add nss_hash.
22141 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22142 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22143 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22144 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22145
22146 2017-11-23 Florian Weimer <fweimer@redhat.com>
22147
22148 [BZ #22478]
22149 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22150 Return error code, not -1.
22151 * signal/tst-sigwait-eintr.c: New file.
22152 * signal/Makefile (tests): Add tst-sigwait-eintr.
22153
22154 2017-11-23 Florian Weimer <fweimer@redhat.com>
22155
22156 Linux: Add memfd_create system call wrapper
22157 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22158 tst-memfd_create.
22159 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22160 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22161 [__USE_GNU] (memfd_create): Declare.
22162 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22163 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22164 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22165 * sysdeps/unix/sysv/linux/**.abilist: Update.
22166 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22167
22168 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22169
22170 * localedata/gen-locale.sh: Fix typo in variable name.
22171
22172 * resolv/res_debug.c (p_secstodate): Condition definition on
22173 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22174 directly as __p_secstodate, and as a compat symbol. Do not use
22175 libresolv_hidden_def.
22176 * resolv/resolv.h (p_secstodate): Remove macro and function
22177 declaration.
22178 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22179 using p_secstodate.
22180 * include/resolv.h (__p_secstodate): Do not use
22181 libresolv_hidden_proto.
22182 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22183 (tests-internal): ... here.
22184 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22185 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22186 and declare and use __p_secstodate and use compat_symbol_reference
22187 in that case.
22188 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22189 implementation returning 77.
22190
22191 [BZ #22463]
22192 * resolv/res_debug.c: Include <libc-diag.h>.
22193 (p_secstodate): Assert time_t at least as wide as u_long. On
22194 overflow, use integer seconds since the epoch as output, or use
22195 "<overflow>" as output and set errno to EOVERFLOW if integer
22196 seconds since the epoch would be 14 or more characters.
22197 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22198 for sprintf call.
22199 * resolv/tst-p_secstodate.c: New file.
22200 * resolv/Makefile (tests): Add tst-p_secstodate.
22201 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22202
22203 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22204 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22205 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22206
22207 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22208
22209 * posix/regcomp.c (init_word_char): Add comments.
22210
22211 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22212
22213 [BZ #22447]
22214 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22215 strlen to compute length of ut_user and set trailing NUL byte of
22216 result explicitly.
22217
22218 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22219
22220 [BZ #15537]
22221 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22222 using “copy "iso14651_t1"” and then implementing the
22223 collation rules for lv from CLDR on top of that.
22224 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22225 of locales to be built for testing.
22226 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22227 sorting.
22228
22229 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22230
22231 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22232 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22233 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22234 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22235 [__USE_MISC] (MADV_HWPOISON): New macro.
22236 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22237
22238 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22239
22240 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22241 -Wmissing-braces on GCC 4.9.
22242
22243 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22244
22245 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22246 * sysdeps/s390/s390-32/start.S (_start): Likewise
22247 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22248 (thread_start): Likewise.
22249 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22250 (thread_start): Likewise.
22251 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22252 (__makecontext_ret): Likewise.
22253 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22254 (__makecontext_ret): Likewise.
22255
22256 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22257
22258 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22259 __wcschrnul): Remove attribute_hidden.
22260
22261 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22262
22263 regex: don't assume uint64_t or uint32_t
22264 This avoids -Werror=overflow errors for 32-bit systems in
22265 the 64-bit case. Problem reported by Joseph Myers in:
22266 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22267 Also, when this code is used in Gnulib it ports to platforms
22268 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22269 them, and on some 32-bit compilers there is no uint64_t.
22270 Problem reported by Gianluigi Tiesi in:
22271 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22272 * posix/regcomp.c (init_word_char): Don't assume that the types
22273 uint64_t and uint32_t exist. Adapted from Gnulib patch
22274 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22275 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22276
22277 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22278
22279 * sysdeps/aarch64/memset-reg.h: New file.
22280 * sysdeps/aarch64/memset.S: Use it.
22281 (__memset): Rename to MEMSET macro.
22282 [ZVA_MACRO]: Use zva_macro.
22283 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22284 Add memset_generic and memset_falkor.
22285 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22286 (__libc_ifunc_impl_list): Add memset ifuncs.
22287 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22288 local variable zva_size.
22289 * sysdeps/aarch64/multiarch/memset.c: New file.
22290 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22291 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22292 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22293 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22294 (DCZID_DZP_MASK): New macro.
22295 (DCZID_BS_MASK): Likewise.
22296 (init_cpu_features): Read and set zva_size.
22297 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22298 (struct cpu_features): New member zva_size.
22299
22300 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22301 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22302 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22303
22304 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22305 backwards. Fix timing computation.
22306 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22307 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22308 on memset by N at a time. Fix timing computation.
22309
22310 2017-11-20 Florian Weimer <fweimer@redhat.com>
22311
22312 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22313 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22314
22315 2017-11-19 Florian Weimer <fweimer@redhat.com>
22316
22317 manual: Document mprotect
22318 * manual/memory.texi (Memory Protection): New section.
22319 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22320 documentation of PROT_* flags and reference the Memory Protection
22321 section instead.
22322
22323 2017-11-19 Florian Weimer <fweimer@redhat.com>
22324
22325 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22326 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22327 (Scatter-Gather): ... to here. Remove misleading comment.
22328
22329 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22330
22331 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22332 style.
22333
22334 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22335 when /proc/<pid>/setgroups does not exist.
22336
22337 2017-11-18 Florian Weimer <fweimer@redhat.com>
22338
22339 * sysdeps/unix/sysv/linux/tst-ttyname.c
22340 (become_root_in_mount_ns): Remove.
22341 (do_in_chroot_1): Call support_enter_mount_namespace.
22342 (do_in_chroot_2): Likewise.
22343 (do_test): Call support_become_root early.
22344
22345 2017-11-18 Florian Weimer <fweimer@redhat.com>
22346
22347 * support/namespace.h (support_enter_mount_namespace): Declare.
22348 * support/support_enter_mount_namespace.c: New file.
22349 * support/Makefile (libsupport-routines): Add
22350 support_enter_mount_namespace.
22351
22352 2017-11-18 Florian Weimer <fweimer@redhat.com>
22353
22354 * support/temp_file.c (support_create_temp_directory): Use
22355 test_dir and do not rely on the presence of the XXXXXX suffix.
22356 * support/temp_file.h (support_create_temp_directory): Update
22357 comment.
22358 * support/tst-xreadlink.c (do_test): Adjust.
22359 * support/support_chroot.c (support_chroot_create): Likewise.
22360
22361 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22362
22363 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22364 macro.
22365 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22366 htm-no-suspend.
22367
22368 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22369
22370 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22371 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22372 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22373 (ceill): Define using libm_alias_ldouble.
22374 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22375 <libm-alias-ldouble.h>.
22376 (copysignl): Define using libm_alias_ldouble.
22377 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22378 (fabsl): Define using libm_alias_ldouble.
22379 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22380 (floorl): Define using libm_alias_ldouble.
22381 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22382 (fmaxl): Define using libm_alias_ldouble.
22383 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22384 (fminl): Define using libm_alias_ldouble.
22385 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22386 (llrintl): Define using libm_alias_ldouble.
22387 (lrintl): Likewise.
22388 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22389 <libm-alias-ldouble.h>.
22390 (nearbyintl): Define using libm_alias_ldouble.
22391 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22392 (truncl): Define using libm_alias_ldouble.
22393 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22394 <libm-alias-ldouble.h>.
22395 (lrintl): Define using libm_alias_ldouble.
22396
22397 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22398 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22399 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22400 (asinhl): Define using libm_alias_ldouble.
22401 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22402 (atanl): Define using libm_alias_ldouble.
22403 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22404 (cbrtl): Define using libm_alias_ldouble.
22405 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22406 (ceill): Define using libm_alias_ldouble.
22407 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22408 (copysignl): Define using libm_alias_ldouble.
22409 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22410 (fabsl): Define using libm_alias_ldouble.
22411 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22412 (floorl): Define using libm_alias_ldouble.
22413 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22414 (fmaxl): Define using libm_alias_ldouble.
22415 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22416 (fminl): Define using libm_alias_ldouble.
22417 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22418 (frexpl): Define using libm_alias_ldouble.
22419 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22420 (llrintl): Define using libm_alias_ldouble.
22421 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22422 (logbl): Define using libm_alias_ldouble.
22423 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22424 (lrintl): Define using libm_alias_ldouble.
22425 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22426 (nearbyintl): Define using libm_alias_ldouble.
22427 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22428 (nextafterl): Define using libm_alias_ldouble.
22429 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22430 (remquol): Define using libm_alias_ldouble.
22431 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22432 (rintl): Define using libm_alias_ldouble.
22433 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22434 (truncl): Define using libm_alias_ldouble.
22435 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22436 (fmaxl): Define using libm_alias_ldouble.
22437 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22438 (fminl): Define using libm_alias_ldouble.
22439
22440 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22441 to C syntax instead of availability and properties of types.
22442 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22443 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22444 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22445 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22446 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22447 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22448
22449 2017-11-17 Florian Weimer <fweimer@redhat.com>
22450
22451 support_become_root: Enable file creation in namespaces.
22452 * support/support_become_root.c (setup_mapping): New function.
22453 (support_become_root): Call it.
22454
22455 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22456
22457 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22458 macro.
22459
22460 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22461
22462 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22463 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22464
22465 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22466
22467 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22468
22469 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22470 version to 4.14.
22471
22472 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22473
22474 * INSTALL: Fix botched up regeneration.
22475
22476 * NEWS: Update sourceare link to https.
22477 * configure.ac: Likewise.
22478 * crypt/md5test-giant.c: Likewise.
22479 * dlfcn/bug-atexit1.c: Likewise.
22480 * dlfcn/bug-atexit2.c: Likewise.
22481 * localedata/README: Likewise.
22482 * malloc/tst-mallocfork.c: Likewise.
22483 * manual/install.texi: Likewise.
22484 * nptl/tst-pthread-getattr.c: Likewise.
22485 * stdio-common/tst-fgets.c: Likewise.
22486 * stdio-common/tst-fwrite.c: Likewise.
22487 * sunrpc/Makefile: Likewise.
22488 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22489 * wcsmbs/tst-mbrtowc2.c: Likewise.
22490 * configure: Regenerate.
22491 * INSTALL: Regenerate.
22492
22493 2017-11-15 Martin Sebor <msebor@redhat.com>
22494
22495 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22496 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22497 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22498
22499 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22500
22501 [BZ #22145]
22502 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22503 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22504
22505 [BZ #22145]
22506 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22507 Defer is_pty check until end of the function.
22508 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22509
22510 [BZ #22145]
22511 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22512 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22513 (ttyname): Likewise.
22514 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22515 (__ttyname_r): Likewise.
22516
22517 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22518 int to bool.
22519
22520 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22521
22522 * manual/terminal.texi (Is It a Terminal):
22523 Mention ENODEV for ttyname and ttyname_r.
22524
22525 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22526
22527 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22528 constant and macro.
22529
22530 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22531 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22532 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22533 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22534 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22535 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22536
22537 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22538
22539 * signal/sigrelse.c (sigrelse): Optimize implementation.
22540
22541 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22542 (__sigpause): Rely on __sigsuspend to implement single thread
22543 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22544
22545 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22546
22547 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22548 kernel version to 4.14.
22549
22550 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22551
22552 [BZ #22442]
22553 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22554 Check if ifname is too long.
22555
22556 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22557
22558 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22559
22560 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22561
22562 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22563 was accidentally lost.
22564
22565 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22566
22567 * localedata/locales/az_IR: Add standard copyright header.
22568
22569 2017-11-15 Florian Weimer <fweimer@redhat.com>
22570
22571 [BZ #22439]
22572 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22573 not just the top one. Output a new "subheaps" statistic.
22574
22575 2017-11-15 Florian Weimer <fweimer@redhat.com>
22576
22577 [BZ #22408]
22578 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22579 under the per-arena lock.
22580 * malloc/Makefile (tests): Add tst-malloc_info.
22581 (tst-malloc_info): Link with libpthread.
22582 * malloc/tst-malloc_info.c: New file.
22583
22584 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22585
22586 [BZ #21660]
22587 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22588 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22589 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22590 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22591 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22592 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22593 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22594 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22595 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22596 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22597 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22598 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22599 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22600 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22601 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22602 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22603 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22604 (__floating_type): Likewise.
22605 (__real_integer_type): Likewise.
22606 (__complex_integer_type): Likewise.
22607 (__expr_is_real): Likewise.
22608 (__tgmath_real_type_sub): Likewise.
22609 (__tgmath_real_type): Likewise.
22610 (__tgmath_complex_type_sub): Likewise.
22611 (__tgmath_complex_type): Likewise.
22612 (__TGMATH_F128): Likewise.
22613 (__TGMATH_CF128): Likewise.
22614 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22615 new macros.
22616 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22617 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22618 Likewise.
22619 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22620 Likewise.
22621 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22622 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22623 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22624 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22625 Likewise.
22626 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22627 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22628 Likewise.
22629 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22630 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22631 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22632 Likewise.
22633 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22634 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22635 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22636 (cimag): Likewise.
22637 (creal): Likewise.
22638
22639 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22640
22641 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22642 for stpncpy calls for GCC 8.
22643 (test_strncat): Disable -Wstringop-truncation warning for strncat
22644 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22645 strncat call for GCC 7.
22646 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22647 calls for GCC 8.
22648 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22649 trailing NUL.
22650
22651 * string/bug-strncat1.c: Include <libc-diag.h>.
22652 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22653
22654 2017-11-13 Claude Paroz <claude@2xlibre.net>
22655
22656 [BZ #22387]
22657 * localedata/locales/aa_DJ: Improved readibility by replacing
22658 <Uxxxx> sequences in the ASCII printable range by their ASCII
22659 character equivalents.
22660 * localedata/locales/aa_ER: Likewise.
22661 * localedata/locales/aa_ER@saaho: Likewise.
22662 * localedata/locales/aa_ET: Likewise.
22663 * localedata/locales/af_ZA: Likewise.
22664 * localedata/locales/agr_PE: Likewise.
22665 * localedata/locales/ak_GH: Likewise.
22666 * localedata/locales/am_ET: Likewise.
22667 * localedata/locales/anp_IN: Likewise.
22668 * localedata/locales/ar_AE: Likewise.
22669 * localedata/locales/ar_BH: Likewise.
22670 * localedata/locales/ar_DZ: Likewise.
22671 * localedata/locales/ar_EG: Likewise.
22672 * localedata/locales/ar_IN: Likewise.
22673 * localedata/locales/ar_IQ: Likewise.
22674 * localedata/locales/ar_JO: Likewise.
22675 * localedata/locales/ar_KW: Likewise.
22676 * localedata/locales/ar_LB: Likewise.
22677 * localedata/locales/ar_LY: Likewise.
22678 * localedata/locales/ar_MA: Likewise.
22679 * localedata/locales/ar_OM: Likewise.
22680 * localedata/locales/ar_QA: Likewise.
22681 * localedata/locales/ar_SA: Likewise.
22682 * localedata/locales/ar_SD: Likewise.
22683 * localedata/locales/ar_SS: Likewise.
22684 * localedata/locales/ar_SY: Likewise.
22685 * localedata/locales/ar_TN: Likewise.
22686 * localedata/locales/ar_YE: Likewise.
22687 * localedata/locales/as_IN: Likewise.
22688 * localedata/locales/ast_ES: Likewise.
22689 * localedata/locales/ayc_PE: Likewise.
22690 * localedata/locales/az_AZ: Likewise.
22691 * localedata/locales/az_IR: Likewise.
22692 * localedata/locales/be_BY: Likewise.
22693 * localedata/locales/be_BY@latin: Likewise.
22694 * localedata/locales/bem_ZM: Likewise.
22695 * localedata/locales/ber_DZ: Likewise.
22696 * localedata/locales/ber_MA: Likewise.
22697 * localedata/locales/bg_BG: Likewise.
22698 * localedata/locales/bhb_IN: Likewise.
22699 * localedata/locales/bho_IN: Likewise.
22700 * localedata/locales/bi_VU: Likewise.
22701 * localedata/locales/bn_BD: Likewise.
22702 * localedata/locales/bn_IN: Likewise.
22703 * localedata/locales/bo_CN: Likewise.
22704 * localedata/locales/bo_IN: Likewise.
22705 * localedata/locales/br_FR: Likewise.
22706 * localedata/locales/brx_IN: Likewise.
22707 * localedata/locales/bs_BA: Likewise.
22708 * localedata/locales/byn_ER: Likewise.
22709 * localedata/locales/ca_AD: Likewise.
22710 * localedata/locales/ca_ES: Likewise.
22711 * localedata/locales/ca_FR: Likewise.
22712 * localedata/locales/ca_IT: Likewise.
22713 * localedata/locales/ce_RU: Likewise.
22714 * localedata/locales/chr_US: Likewise.
22715 * localedata/locales/cmn_TW: Likewise.
22716 * localedata/locales/crh_UA: Likewise.
22717 * localedata/locales/cs_CZ: Likewise.
22718 * localedata/locales/csb_PL: Likewise.
22719 * localedata/locales/cv_RU: Likewise.
22720 * localedata/locales/cy_GB: Likewise.
22721 * localedata/locales/da_DK: Likewise.
22722 * localedata/locales/de_AT: Likewise.
22723 * localedata/locales/de_BE: Likewise.
22724 * localedata/locales/de_CH: Likewise.
22725 * localedata/locales/de_DE: Likewise.
22726 * localedata/locales/de_IT: Likewise.
22727 * localedata/locales/de_LI: Likewise.
22728 * localedata/locales/de_LU: Likewise.
22729 * localedata/locales/doi_IN: Likewise.
22730 * localedata/locales/dv_MV: Likewise.
22731 * localedata/locales/dz_BT: Likewise.
22732 * localedata/locales/el_CY: Likewise.
22733 * localedata/locales/el_GR: Likewise.
22734 * localedata/locales/en_AG: Likewise.
22735 * localedata/locales/en_AU: Likewise.
22736 * localedata/locales/en_BW: Likewise.
22737 * localedata/locales/en_CA: Likewise.
22738 * localedata/locales/en_DK: Likewise.
22739 * localedata/locales/en_GB: Likewise.
22740 * localedata/locales/en_HK: Likewise.
22741 * localedata/locales/en_IE: Likewise.
22742 * localedata/locales/en_IL: Likewise.
22743 * localedata/locales/en_IN: Likewise.
22744 * localedata/locales/en_NG: Likewise.
22745 * localedata/locales/en_NZ: Likewise.
22746 * localedata/locales/en_PH: Likewise.
22747 * localedata/locales/en_SG: Likewise.
22748 * localedata/locales/en_US: Likewise.
22749 * localedata/locales/en_ZA: Likewise.
22750 * localedata/locales/en_ZM: Likewise.
22751 * localedata/locales/en_ZW: Likewise.
22752 * localedata/locales/eo: Likewise.
22753 * localedata/locales/es_AR: Likewise.
22754 * localedata/locales/es_BO: Likewise.
22755 * localedata/locales/es_CL: Likewise.
22756 * localedata/locales/es_CO: Likewise.
22757 * localedata/locales/es_CR: Likewise.
22758 * localedata/locales/es_CU: Likewise.
22759 * localedata/locales/es_DO: Likewise.
22760 * localedata/locales/es_EC: Likewise.
22761 * localedata/locales/es_ES: Likewise.
22762 * localedata/locales/es_GT: Likewise.
22763 * localedata/locales/es_HN: Likewise.
22764 * localedata/locales/es_MX: Likewise.
22765 * localedata/locales/es_NI: Likewise.
22766 * localedata/locales/es_PA: Likewise.
22767 * localedata/locales/es_PE: Likewise.
22768 * localedata/locales/es_PR: Likewise.
22769 * localedata/locales/es_PY: Likewise.
22770 * localedata/locales/es_SV: Likewise.
22771 * localedata/locales/es_US: Likewise.
22772 * localedata/locales/es_UY: Likewise.
22773 * localedata/locales/es_VE: Likewise.
22774 * localedata/locales/et_EE: Likewise.
22775 * localedata/locales/eu_ES: Likewise.
22776 * localedata/locales/eu_ES@euro: Likewise.
22777 * localedata/locales/fa_IR: Likewise.
22778 * localedata/locales/ff_SN: Likewise.
22779 * localedata/locales/fi_FI: Likewise.
22780 * localedata/locales/fil_PH: Likewise.
22781 * localedata/locales/fo_FO: Likewise.
22782 * localedata/locales/fr_BE: Likewise.
22783 * localedata/locales/fr_CA: Likewise.
22784 * localedata/locales/fr_CH: Likewise.
22785 * localedata/locales/fr_FR: Likewise.
22786 * localedata/locales/fr_LU: Likewise.
22787 * localedata/locales/fur_IT: Likewise.
22788 * localedata/locales/fy_DE: Likewise.
22789 * localedata/locales/fy_NL: Likewise.
22790 * localedata/locales/ga_IE: Likewise.
22791 * localedata/locales/gd_GB: Likewise.
22792 * localedata/locales/gez_ER: Likewise.
22793 * localedata/locales/gez_ET: Likewise.
22794 * localedata/locales/gl_ES: Likewise.
22795 * localedata/locales/gu_IN: Likewise.
22796 * localedata/locales/gv_GB: Likewise.
22797 * localedata/locales/ha_NG: Likewise.
22798 * localedata/locales/hak_TW: Likewise.
22799 * localedata/locales/he_IL: Likewise.
22800 * localedata/locales/hi_IN: Likewise.
22801 * localedata/locales/hif_FJ: Likewise.
22802 * localedata/locales/hne_IN: Likewise.
22803 * localedata/locales/hr_HR: Likewise.
22804 * localedata/locales/hsb_DE: Likewise.
22805 * localedata/locales/ht_HT: Likewise.
22806 * localedata/locales/hu_HU: Likewise.
22807 * localedata/locales/hy_AM: Likewise.
22808 * localedata/locales/i18n: Likewise.
22809 * localedata/locales/ia_FR: Likewise.
22810 * localedata/locales/id_ID: Likewise.
22811 * localedata/locales/ig_NG: Likewise.
22812 * localedata/locales/ik_CA: Likewise.
22813 * localedata/locales/is_IS: Likewise.
22814 * localedata/locales/it_CH: Likewise.
22815 * localedata/locales/it_IT: Likewise.
22816 * localedata/locales/iu_CA: Likewise.
22817 * localedata/locales/ja_JP: Likewise.
22818 * localedata/locales/ka_GE: Likewise.
22819 * localedata/locales/kk_KZ: Likewise.
22820 * localedata/locales/kl_GL: Likewise.
22821 * localedata/locales/kn_IN: Likewise.
22822 * localedata/locales/ko_KR: Likewise.
22823 * localedata/locales/kok_IN: Likewise.
22824 * localedata/locales/ks_IN: Likewise.
22825 * localedata/locales/ks_IN@devanagari: Likewise.
22826 * localedata/locales/ku_TR: Likewise.
22827 * localedata/locales/kw_GB: Likewise.
22828 * localedata/locales/ky_KG: Likewise.
22829 * localedata/locales/lb_LU: Likewise.
22830 * localedata/locales/lg_UG: Likewise.
22831 * localedata/locales/li_BE: Likewise.
22832 * localedata/locales/li_NL: Likewise.
22833 * localedata/locales/lij_IT: Likewise.
22834 * localedata/locales/ln_CD: Likewise.
22835 * localedata/locales/lo_LA: Likewise.
22836 * localedata/locales/lt_LT: Likewise.
22837 * localedata/locales/lv_LV: Likewise.
22838 * localedata/locales/lzh_TW: Likewise.
22839 * localedata/locales/mag_IN: Likewise.
22840 * localedata/locales/mai_IN: Likewise.
22841 * localedata/locales/mg_MG: Likewise.
22842 * localedata/locales/mhr_RU: Likewise.
22843 * localedata/locales/mi_NZ: Likewise.
22844 * localedata/locales/mk_MK: Likewise.
22845 * localedata/locales/ml_IN: Likewise.
22846 * localedata/locales/mn_MN: Likewise.
22847 * localedata/locales/mni_IN: Likewise.
22848 * localedata/locales/mr_IN: Likewise.
22849 * localedata/locales/ms_MY: Likewise.
22850 * localedata/locales/mt_MT: Likewise.
22851 * localedata/locales/my_MM: Likewise.
22852 * localedata/locales/nan_TW: Likewise.
22853 * localedata/locales/nan_TW@latin: Likewise.
22854 * localedata/locales/nb_NO: Likewise.
22855 * localedata/locales/nds_DE: Likewise.
22856 * localedata/locales/nds_NL: Likewise.
22857 * localedata/locales/ne_NP: Likewise.
22858 * localedata/locales/nhn_MX: Likewise.
22859 * localedata/locales/niu_NU: Likewise.
22860 * localedata/locales/niu_NZ: Likewise.
22861 * localedata/locales/nl_AW: Likewise.
22862 * localedata/locales/nl_BE: Likewise.
22863 * localedata/locales/nl_NL: Likewise.
22864 * localedata/locales/nn_NO: Likewise.
22865 * localedata/locales/nr_ZA: Likewise.
22866 * localedata/locales/nso_ZA: Likewise.
22867 * localedata/locales/oc_FR: Likewise.
22868 * localedata/locales/om_ET: Likewise.
22869 * localedata/locales/om_KE: Likewise.
22870 * localedata/locales/or_IN: Likewise.
22871 * localedata/locales/os_RU: Likewise.
22872 * localedata/locales/pa_IN: Likewise.
22873 * localedata/locales/pa_PK: Likewise.
22874 * localedata/locales/pap_AW: Likewise.
22875 * localedata/locales/pap_CW: Likewise.
22876 * localedata/locales/pl_PL: Likewise.
22877 * localedata/locales/ps_AF: Likewise.
22878 * localedata/locales/pt_BR: Likewise.
22879 * localedata/locales/pt_PT: Likewise.
22880 * localedata/locales/quz_PE: Likewise.
22881 * localedata/locales/raj_IN: Likewise.
22882 * localedata/locales/ro_RO: Likewise.
22883 * localedata/locales/ru_RU: Likewise.
22884 * localedata/locales/ru_UA: Likewise.
22885 * localedata/locales/rw_RW: Likewise.
22886 * localedata/locales/sa_IN: Likewise.
22887 * localedata/locales/sat_IN: Likewise.
22888 * localedata/locales/sc_IT: Likewise.
22889 * localedata/locales/sd_IN: Likewise.
22890 * localedata/locales/sd_IN@devanagari: Likewise.
22891 * localedata/locales/se_NO: Likewise.
22892 * localedata/locales/sgs_LT: Likewise.
22893 * localedata/locales/shs_CA: Likewise.
22894 * localedata/locales/si_LK: Likewise.
22895 * localedata/locales/sid_ET: Likewise.
22896 * localedata/locales/sk_SK: Likewise.
22897 * localedata/locales/sl_SI: Likewise.
22898 * localedata/locales/sm_WS: Likewise.
22899 * localedata/locales/so_DJ: Likewise.
22900 * localedata/locales/so_ET: Likewise.
22901 * localedata/locales/so_KE: Likewise.
22902 * localedata/locales/so_SO: Likewise.
22903 * localedata/locales/sq_AL: Likewise.
22904 * localedata/locales/sq_MK: Likewise.
22905 * localedata/locales/sr_ME: Likewise.
22906 * localedata/locales/sr_RS: Likewise.
22907 * localedata/locales/sr_RS@latin: Likewise.
22908 * localedata/locales/ss_ZA: Likewise.
22909 * localedata/locales/st_ZA: Likewise.
22910 * localedata/locales/sv_FI: Likewise.
22911 * localedata/locales/sv_SE: Likewise.
22912 * localedata/locales/sw_KE: Likewise.
22913 * localedata/locales/sw_TZ: Likewise.
22914 * localedata/locales/szl_PL: Likewise.
22915 * localedata/locales/ta_IN: Likewise.
22916 * localedata/locales/ta_LK: Likewise.
22917 * localedata/locales/tcy_IN: Likewise.
22918 * localedata/locales/te_IN: Likewise.
22919 * localedata/locales/tg_TJ: Likewise.
22920 * localedata/locales/th_TH: Likewise.
22921 * localedata/locales/the_NP: Likewise.
22922 * localedata/locales/ti_ER: Likewise.
22923 * localedata/locales/ti_ET: Likewise.
22924 * localedata/locales/tig_ER: Likewise.
22925 * localedata/locales/tk_TM: Likewise.
22926 * localedata/locales/tl_PH: Likewise.
22927 * localedata/locales/tn_ZA: Likewise.
22928 * localedata/locales/to_TO: Likewise.
22929 * localedata/locales/tpi_PG: Likewise.
22930 * localedata/locales/tr_CY: Likewise.
22931 * localedata/locales/tr_TR: Likewise.
22932 * localedata/locales/ts_ZA: Likewise.
22933 * localedata/locales/tt_RU: Likewise.
22934 * localedata/locales/tt_RU@iqtelif: Likewise.
22935 * localedata/locales/ug_CN: Likewise.
22936 * localedata/locales/uk_UA: Likewise.
22937 * localedata/locales/unm_US: Likewise.
22938 * localedata/locales/ur_IN: Likewise.
22939 * localedata/locales/ur_PK: Likewise.
22940 * localedata/locales/uz_UZ: Likewise.
22941 * localedata/locales/uz_UZ@cyrillic: Likewise.
22942 * localedata/locales/ve_ZA: Likewise.
22943 * localedata/locales/vi_VN: Likewise.
22944 * localedata/locales/wa_BE: Likewise.
22945 * localedata/locales/wae_CH: Likewise.
22946 * localedata/locales/wal_ET: Likewise.
22947 * localedata/locales/wo_SN: Likewise.
22948 * localedata/locales/xh_ZA: Likewise.
22949 * localedata/locales/yi_US: Likewise.
22950 * localedata/locales/yo_NG: Likewise.
22951 * localedata/locales/yue_HK: Likewise.
22952 * localedata/locales/yuw_PG: Likewise.
22953 * localedata/locales/zh_CN: Likewise.
22954 * localedata/locales/zh_HK: Likewise.
22955 * localedata/locales/zh_SG: Likewise.
22956 * localedata/locales/zh_TW: Likewise.
22957 * localedata/locales/zu_ZA: Likewise.
22958
22959 2017-11-13 Florian Weimer <fweimer@redhat.com>
22960
22961 * support/next_to_fault.h, support/next_to_fault.c: New files.
22962 * support/Makefile (libsupport-routines): Add next_to_fault.
22963 * resolv/tst-inet_pton.c (struct next_to_fault)
22964 (next_to_fault_allocate, next_to_fault_free): Remove.
22965 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22966
22967 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22968
22969 * elf/dl-support.c: Include <dl-procruntime.c>.
22970 * include/link.h: Include <link_map.h>.
22971 * sysdeps/generic/dl-procruntime.c: New file.
22972 * sysdeps/generic/link_map.h: Likewise.
22973 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22974 the writable ld.so namespace.
22975
22976 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22977
22978 timezone: pacify GCC -Wstringop-truncation
22979 Problem reported by Martin Sebor in:
22980 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22981 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22982
22983 2017-11-12 Florian Weimer <fweimer@redhat.com>
22984
22985 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22986 tst-xreadlink.
22987 (tests): Add tst-xreadlink.
22988 * support/support.h (xstrndup): Declare.
22989 * support/xunistd.h (xunlink, xreadlink): Declare.
22990 * support/temp_file.h (support_create_temp_directory): Declare.
22991 * support/temp_file.c (support_create_temp_directory): New function.
22992 * support/support_chroot.c (support_chroot_create): Use it.
22993 * support/xreadlink.c: New file.
22994 * support/xstrndup.c: Likewise.
22995 * support/xunlink.c: Likewise.
22996 * support/tst-xreadlink.c: Likewise.
22997
22998 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22999
23000 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
23001
23002 2017-11-11 Florian Weimer <fweimer@redhat.com>
23003
23004 [BZ #22409]
23005 [BZ #22412]
23006 * resolv/res_comp.c (printable_string, binary_hnok)
23007 (binary_leading_dash): New functions.
23008 (res_hnok): Reimplement using these functions and ns_name_pton.
23009 (res_ownok): Likewise.
23010 (res_mailok): Reimplement using printable_string, ns_name_pton and
23011 binary_hnok.
23012 (res_dnok): Reimplement using printable_string and ns_name_pton.
23013 * resolv/tst-res_hnok.c (tests): Add additional tests.
23014 (LETTERDIGITS, PRINTABLE): Define.
23015 (do_test): Adjust one_char results.
23016
23017 2017-11-11 Florian Weimer <fweimer@redhat.com>
23018
23019 [BZ #22413]
23020 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
23021 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
23022
23023 2017-11-11 Florian Weimer <fweimer@redhat.com>
23024
23025 * resolv/tst-ns_name_pton.c: New file.
23026 * resolv/Makefile (tests): Add tst-ns_name_pton.
23027 (tst-ns_name_pton): Link against libresolv.
23028
23029 2017-11-11 Florian Weimer <fweimer@redhat.com>
23030
23031 * resolv/tst-res_hnok.c: New file.
23032 * resolv/Makefile (tests): Add tst-res_hnok.
23033 (tst-res_hnok): Link against libresolv.
23034
23035 2017-11-11 Florian Weimer <fweimer@redhat.com>
23036
23037 * resolv/tst-resolv-network.c: Use test framework instead explicit
23038 main function.
23039
23040 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
23041
23042 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
23043 <jmp_buf-macros.h>.
23044 [!_ISOMAC] (STR_HELPER): New.
23045 [!_ISOMAC] (STR): Likewise.
23046 [!_ISOMAC] (TEST_SIZE): Likewise.
23047 [!_ISOMAC] (TEST_ALIGN): Likewise.
23048 [!_ISOMAC] (TEST_OFFSET): Likewise.
23049 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
23050 field offsets of jmp_buf as well as sigjmp_buf.
23051 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
23052 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
23053 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
23054 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
23055 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
23056 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
23057 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
23058 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
23059 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
23060 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
23061 Likewise.
23062 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
23063 Likewise.
23064 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
23065 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
23066 Likewise.
23067 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
23068 Likewise.
23069 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
23070 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
23071 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
23072 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
23073 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23074 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23075 Likewise.
23076 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23077 Likewise.
23078 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23079 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23080 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23081
23082 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23083
23084 * include/float.h
23085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23086 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23088 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23090 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23092 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23094 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23096 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23098 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23099 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23100 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23101 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23102 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23103 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23104 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23105 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23106 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23107 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23108 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23109 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23110 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23111 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23112 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23113 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23114 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23115 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23116 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23117 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23118 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23119 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23120 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23121 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23122 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23123 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23124 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23125 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23126 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23127 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23128 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23129 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23130 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23131 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23132 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23133 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23134 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23135 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23136 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23137 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23138 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23139 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23140 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23141 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23142 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23143 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23144 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23145 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23146 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23147 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23148 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23149 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23150 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23151 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23152 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23153 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23154 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23155 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23156 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23157 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23158 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23159 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23160 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23161 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23162 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23163 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23164 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23165 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23166 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23167 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23168 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23169 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23170 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23171 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23172 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23173
23174 * stdlib/tst-strtod.h (F16): New macro.
23175 (F32): Likewise.
23176 (F64): Likewise.
23177 (F32X): Likewise.
23178 (F64X): Likewise.
23179 (F128X): Likewise.
23180 (IF_FLOAT16): Likewise.
23181 (IF_FLOAT32): Likewise.
23182 (IF_FLOAT64): Likewise.
23183 (IF_FLOAT32X): Likewise.
23184 (IF_FLOAT64X): Likewise.
23185 (IF_FLOAT128X): Likewise.
23186 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23187 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23188 (STRTOD_TEST_FOREACH): Likewise.
23189 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23190 (CHOOSE_f64): Likewise.
23191 (CHOOSE_f32x): Likewise.
23192 (CHOOSE_f64x): Likewise.
23193
23194 2017-11-07 Andreas Schwab <schwab@suse.de>
23195
23196 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23197
23198 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23199
23200 [BZ #22403]
23201 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23202 to be escaped.
23203 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23204 to be escaped.
23205
23206 2017-11-07 Claude Paroz <claude@2xlibre.net>
23207
23208 [BZ #22403]
23209 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23210 to be escaped.
23211 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23212 to be escaped.
23213 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23214 to be escaped.
23215
23216 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23217
23218 [BZ #22298]
23219 * nptl/allocatestack.c (allocate_stack): Check if
23220 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23221 __PTHREAD_MUTEX_HAVE_PREV is defined.
23222 * nptl/descr.h (pthread): Likewise.
23223 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23224 Likewise.
23225 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23226 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23227 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23228 * sysdeps/nptl/bits/thread-shared-types.h
23229 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23230 defines.
23231 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23232 of __WORDSIZE for internal layout.
23233 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23234 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23235 instead of __WORDSIZE whether to use an union for __spins and __list
23236 fields.
23237 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23238 case.
23239 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23240 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23241 defines.
23242 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23243 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23244 Likewise.
23245 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23246 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23247 Likewise.
23248 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23249 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23250 Likewise.
23251 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23252 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23253 Likewise.
23254 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23255 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23256 Likewise.
23257 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23258 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23259 Likewise.
23260 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23261 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23262 Likewise.
23263 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23264 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23265 Likewise.
23266 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23267 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23268 Likewise.
23269 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23270 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23271 Likewise.
23272 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23273 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23274 Likewise.
23275 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23276 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23277 Likewise.
23278 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23279 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23280 Likewise.
23281 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23282 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23283 Likewise.
23284
23285 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23286 New macros.
23287 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23288 checks for expected input type size.
23289 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23290 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23291 Likewise.
23292 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23293 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23294 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23295 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23296 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23297 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23298 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23299 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23300 superflous runtime assert check.
23301 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23302 Likewise.
23303 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23304 Likewise.
23305 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23306 Likewise.
23307 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23308 Likewise.
23309 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23310 Likewise.
23311 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23312 Likewise.
23313 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23314 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23315 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23316 Likewise.
23317 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23318 Likewise.
23319 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23320 Likewise.
23321 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23322 Likewise.
23323 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23324 Likewise.
23325 * nptl/pthread_attr_setinheritsched.c
23326 (__pthread_attr_setinheritsched): Likewise.
23327 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23328 Likewise.
23329 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23330 Likewise.
23331 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23332 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23333 __old_pthread_attr_setstack): Likewise.
23334 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23335 Likewise.
23336 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23337 Likewise.
23338 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23339 Likewise.
23340 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23341 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23342 Likewise.
23343 * nptl/tst-typesizes.c: Remove file.
23344
23345 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23346 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23347 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23348 checks for internal pthread_mutex_t offsets.
23349 * sysdeps/aarch64/nptl/pthread-offsets.h
23350 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23351 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23352 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23353 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23354 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23355 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23356 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23357 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23358 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23359 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23360 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23361 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23362 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23363 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23364 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23365 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23366 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23367 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23368
23369 2017-11-07 Florian Weimer <fweimer@redhat.com>
23370
23371 * bits/mman-linux.h: Move ...
23372 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23373 comment.
23374 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23375 outdated comment.
23376
23377 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23378
23379 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23380 Redefine STRNLEN as __strnlen_power8.
23381
23382 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23383
23384 * signal/sighold.c (sighold): Optimize implementation.
23385
23386 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23387 __NR_rt_sigqueueinfo.
23388
23389 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23390 __sigtimedwait.
23391 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23392 assume __NR_rt_sigtimedwait.
23393 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23394 and add LIBC_CANCEL_HANDLED for cancellation marking.
23395 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23396
23397 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23398 (sysdeps_routines): Add memchr_noneon.
23399 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23400 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23401 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23402 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23403 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23404 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23405 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23406
23407 * sysdeps/arm/arm-ifunc.h: New file.
23408 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23409 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23410 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23411 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23412 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23413 (__memcpy_neon): Avoid create hidden alias.
23414 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23415 (__memcpy_vfp): Likewise.
23416 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23417 (sysdep_routines): Add memcpy_arm.
23418 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23419
23420 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23421
23422 [BZ #22362]
23423 * Makerules (make-link-multidir): New.
23424 * config.make.in (multidir): New.
23425 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23426 * configure: Regenerated.
23427 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23428 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23429 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23430 New target.
23431
23432 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23433
23434 [BZ #22402]
23435 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23436 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23437
23438 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23439
23440 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23441 to be escaped.
23442
23443 2017-11-04 Florian Weimer <fweimer@redhat.com>
23444
23445 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23446
23447 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23448
23449 * math/math.h [__HAVE_DISTINCT_FLOAT16
23450 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23451 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23452 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23453 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23454 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23455 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23456 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23457 (__MATH_TG_F32): New macro.
23458 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23459 (__MATH_TG_F64X): Likewise.
23460 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23461 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23462
23463 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23464
23465 * po/de.po: Update translations.
23466 * po/ru.po: Likewise.
23467
23468 2017-11-03 Florian Weimer <fweimer@redhat.com>
23469
23470 * manual/filesys.texi (Hard Links): Document linkat.
23471
23472 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23473
23474 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23475 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23476 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23477 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23478 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23479 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23480 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23481 the same as _Float128.
23482 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23483 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23484 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23485
23486 * stdlib/stdlib.h
23487 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23488 Declare.
23489 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23490 Likewise.
23491 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23492 Likewise.
23493 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23494 (strtof32x): Likewise.
23495 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23496 (strtof64x): Likewise.
23497 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23498 (strtof128x): Likewise.
23499 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23500 (strfromf16): Likewise.
23501 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23502 (strfromf32): Likewise.
23503 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23504 (strfromf64): Likewise.
23505 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23506 (strfromf32x): Likewise.
23507 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23508 (strfromf64x): Likewise.
23509 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23510 (strfromf128x): Likewise.
23511 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23512 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23513 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23514 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23515 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23516 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23517
23518 2017-11-03 Richard Henderson <rth@twiddle.net>
23519
23520 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23521
23522 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23523
23524 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23525
23526 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23527
23528 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23529 DT_TLSDESC_GOT initialization.
23530 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23531 (_dl_tlsdesc_resolve_hold): Likewise.
23532 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23533 (_dl_tlsdesc_resolve_hold): Likewise.
23534 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23535 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23536
23537 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23538
23539 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23540
23541 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23542
23543 [BZ #18572]
23544 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23545 non-lazily for R_ARM_TLS_DESC.
23546
23547 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23548
23549 [BZ #17078]
23550 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23551 R_ARM_TLS_DESC case.
23552 (elf_machine_lazy_rel): Remove the prelink check.
23553
23554 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23555
23556 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23557 DT_TLSDESC_GOT initialization.
23558 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23559 (_dl_tlsdesc_resolve_rela): Likewise.
23560 (_dl_tlsdesc_resolve_hold): Likewise.
23561 (_dl_tlsdesc_undefweak): Remove ldar.
23562 (_dl_tlsdesc_dynamic): Likewise.
23563 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23564 (_dl_tlsdesc_resolve_rela): Likewise.
23565 (_dl_tlsdesc_resolve_hold): Likewise.
23566 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23567 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23568 (_dl_tlsdesc_resolve_rela): Likewise.
23569 (_dl_tlsdesc_resolve_hold): Likewise.
23570
23571 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23572
23573 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23574 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23575
23576 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23577
23578 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23579 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23580
23581 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23582
23583 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23584 Declare.
23585 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23586 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23587 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23588 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23589 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23590 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23591 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23592 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23593 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23594 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23595 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23596
23597 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23598
23599 [BZ #22382]
23600 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23601 * localedata/locales/tpi_PG: Add standard header.
23602
23603 2017-11-02 Florian Weimer <fweimer@redhat.com>
23604
23605 test-errno-linux: quotactl can fail with EPERM in containers.
23606 * sysdeps/unix/sysv/linux/test-errno-linux.c
23607 (LIST, LIST_FORWARD): New macros.
23608 (check_error_in_list): New function.
23609 (test_wrp_rv): Accept list of permitted error codes.
23610 (test_wrp_rv2): Remove.
23611 (test_wrp): Call test_wrp_rv with list of error codes.
23612 (test_wrp2): Accept list of error codes.
23613 (do_test): Adjust. Allow EPERM for quotactl.
23614
23615 2017-11-02 Florian Weimer <fweimer@redhat.com>
23616
23617 * stdio-common/bug16.c (do_test): Use array_length.
23618 * stdio-common/errlist.c (_sys_nerr): Likewise.
23619 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23620 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23621 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23622 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23623 (do_test): Use array_length.
23624 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23625 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23626 * stdio-common/tst-printf-round.c (do_test): Likewise.
23627 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23628 (CHECK): Use array_length.
23629 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23630 * stdio-common/tstscanf.c (main): Likewise.
23631 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23632
23633 2017-11-02 Florian Weimer <fweimer@redhat.com>
23634
23635 Add array_length and array_end macros.
23636 * include/array_length.h: New file.
23637
23638 2017-11-02 Florian Weimer <fweimer@redhat.com>
23639
23640 [BZ #22332]
23641 * posix/tst-glob-tilde.c (do_noescape): New variable.
23642 (one_test): Process it.
23643 (do_test): Set do_noescape. Add unescaping test case.
23644
23645 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23646
23647 * math/complex.h
23648 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23649 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23650 with appropriate macros defined and undefined.
23651 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23652 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23653 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23654 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23655 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23656 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23657 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23658 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23659 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23660 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23661
23662 * math/complex.h
23663 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23664 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23665 that for long double. Do not condition define and undefine of
23666 _Mdouble_complex_ on [__CFLOAT128].
23667
23668 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23669
23670 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23671 of <sysdeps/generic/sysdep.h>.
23672 (ALIGNARG): Removed.
23673 (ASM_SIZE_DIRECTIVE): Likewise.
23674 (ENTRY): Likewise.
23675 (END): Likewise.
23676 (ENTRY_CHK): Likewise.
23677 (END_CHK): Likewise.
23678 (syscall_error): Likewise.
23679 (mcount): Likewise.
23680 (PSEUDO_END): Likewise.
23681 (L): Likewise.
23682 (atom_text_section): Likewise.
23683 * sysdeps/x86/sysdep.h: New file.
23684 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23685 of <sysdeps/generic/sysdep.h>.
23686 (ALIGNARG): Removed.
23687 (ASM_SIZE_DIRECTIVE): Likewise.
23688 (ENTRY): Likewise.
23689 (END): Likewise.
23690 (ENTRY_CHK): Likewise.
23691 (END_CHK): Likewise.
23692 (syscall_error): Likewise.
23693 (mcount): Likewise.
23694 (PSEUDO_END): Likewise.
23695 (L): Likewise.
23696 (atom_text_section): Likewise.
23697
23698 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23699
23700 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23701 category of LC_CTYPE set to "i18n:2012".
23702 * localedata/locales/i18n_ctype: Regenerate.
23703
23704 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23705
23706 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23707 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23708 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23709 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23710
23711 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23712 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23713 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23714 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23715
23716 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23717
23718 * math/complex.h
23719 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23720 New macro.
23721 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23722 Likewise.
23723 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23724 Likewise.
23725 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23726 (CMPLXF32X): Likewise.
23727 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23728 (CMPLXF64X): Likewise.
23729 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23730 (CMPLXF128X): Likewise.
23731
23732 * math/math.h
23733 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23734 (__MATH_EVAL_FMT2): Define to add 0.0f.
23735
23736 2017-10-31 Alan Modra <amodra@gmail.com>
23737
23738 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23739 include sysdep.h.
23740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23754 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23755 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23756 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23757 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23758 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23759 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23760 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23761 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23762 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23763 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23764 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23765 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23766 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23767 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23768 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23769 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23770 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23771 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23772 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23773 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23774 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23775 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23776 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23777 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23778 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23779 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23780 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23781 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23782 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23783 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23784 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23785 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23786 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23787 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23788 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23789 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23790 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23791 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23792 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23793 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23794 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23795 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23796 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23797 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23798 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23799 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23800 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23801 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23802 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23803 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23804 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23805 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23806 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23807 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23808 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23809
23810 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23811 include sysdep.h and math_ldbl_opt.h.
23812
23813 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23814 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23815 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23816 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23817 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23818 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23819 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23820 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23821 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23822 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23823 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23824 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23825 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23826 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23827 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23828 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23829 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23830 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23831 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23832 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23833 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23836 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23837 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23838 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23839
23840 2017-10-31 Alan Modra <amodra@gmail.com>
23841
23842 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23843 string/strncase_l.c, not string/strncase.c.
23844 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23845 (libc_hidden_def): Redefine.
23846
23847 2017-10-31 Alan Modra <amodra@gmail.com>
23848
23849 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23850 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23851 (__strcasecmp): Don't define.
23852
23853 2017-10-31 Alan Modra <amodra@gmail.com>
23854
23855 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23856 IS_IN (libc).
23857 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23858 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23859 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23860
23861 2017-10-31 Alan Modra <amodra@gmail.com>
23862
23863 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23864 USE_AS_STPNCPY.
23865
23866 2017-10-31 Alan Modra <amodra@gmail.com>
23867
23868 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23869 Redefine only when SHARED.
23870
23871 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23872
23873 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23874 Include <bits/math-finite.h> with appropriate macros defined and
23875 undefined.
23876 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23877 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23878 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23879 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23880 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23881
23882 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23883 [!_Mlong_double_] (_Mlong_double_): Likewise.
23884 [!_Mfloat16_] (_Mfloat16_): Likewise.
23885 [!_Mfloat32_] (_Mfloat32_): Likewise.
23886 [!_Mfloat64_] (_Mfloat64_): Likewise.
23887 [!_Mfloat128_] (_Mfloat128_): Likewise.
23888 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23889 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23890 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23891 (_Mdouble_): Define without indirection through those macros.
23892 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23893 [!_Mfloat128_] (_Mfloat128_): Likewise.
23894 [_Mlong_double_] (_Mlong_double_): Likewise.
23895 (_Mdouble_): Define without indirection through those macros.
23896 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23897 not add -D_Mlong_double_=double.
23898 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23899 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23900
23901 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23902
23903 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23904
23905 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23906
23907 * sysdeps/x86/libc-start.c: Reformat.
23908
23909 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23910
23911 [BZ #22353]
23912 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23913 (1): Renamed to ...
23914 (L(Src0)): This.
23915 (L(Src1)): New.
23916 (L(Src2)): Likewise.
23917 (L(1)): Renamed to ...
23918 (L(Src3)): This.
23919
23920 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23921
23922 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23923 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23924 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23925 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23926 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23927 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23928 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23929 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23930 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23931 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23932 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23933 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23934 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23935 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23936 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23937 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23938 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23939 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23940 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23941 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23942 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23943 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23944 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23945 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23946 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23947 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23948 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23949 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23950 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23951 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23952 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23953 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23954 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23955 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23956 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23957 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23958 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23959 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23960 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23961 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23962 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23963 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23964 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23965 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23966 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23967 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23968 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23969 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23970 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23971 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23972 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23973 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23974 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23975 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23976 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23977 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23978 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23979 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23980 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23981 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23982 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23983 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23984 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23985 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23986 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23987 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23988
23989 2017-10-30 Florian Weimer <fweimer@redhat.com>
23990
23991 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23992 always defined.
23993 * io/tst-mkdirat.c (do_test): Likewise.
23994 * io/tst-mkfifoat.c (do_test): Likewise.
23995 * io/tst-mknodat.c (do_test): Likewise.
23996 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23997 * locale/programs/locale.c (select_dirs): Likewise.
23998 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23999 * posix/bug-glob2.c (my_readdir): Likewise.
24000 * posix/tst-dir.c (main): Likewise.
24001 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
24002 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
24003
24004 2017-10-30 Florian Weimer <fweimer@redhat.com>
24005
24006 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
24007 just __USE_GNU.
24008
24009 2017-10-30 Florian Weimer <fweimer@redhat.com>
24010
24011 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
24012 Convert to support/test-driver.c.
24013 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
24014 New macro parameters.
24015 (PRINTF): Remove macro. Use test_verbose conditionals instead.
24016 * posix/tst-gnuglob.c: New file.
24017 * posix/tst-gnuglob64.c: Likewise.
24018 * posix/Makefile (tests): Add tst-gnuglob64.
24019
24020 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
24021
24022 [BZ #19485]
24023 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
24024 and use a better translation for March in “mon”.
24025 * localedata/locales/csb_PL: Use more ASCII to improve the
24026 readability of the source.
24027
24028 2017-10-30 Mike FABIAN <mfabian@redhat.com>
24029
24030 [BZ #13953]
24031 * localedata/locales/km_KH: Use ASCII as much
24032 as possible for better readability of the source and
24033 remove useless comments.
24034 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
24035 was commented out and apparently wrong anyway because it was
24036 using Lao characters. If Buddhist era should be used
24037 for km_KH, a native speaker should write the correct formaat
24038 for Khmer.
24039 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
24040 (According to CLDR, the first weekday for Cambodia is Sunday).
24041 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
24042 (These were using Lao characters which must be wrong. If we get
24043 the correct data from a native speaker, we could add it back, until
24044 then it is better not to have name_mr and name_mrs at all than
24045 having it wrong).
24046
24047 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
24048
24049 * locale/loadlocale.c: Correct size of
24050 _nl_value_type_LC_<category> arrays.
24051
24052 2017-10-27 Joseph Myers <joseph@codesourcery.com>
24053
24054 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
24055 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
24056 with appropriate macros defined and undefined.
24057 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
24058 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
24059 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
24060 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
24061 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
24062
24063 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
24064
24065 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
24066 "-O2 -march=i586".
24067
24068 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24069
24070 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
24071 with lowercase letters to make it agree with CLDR.
24072
24073 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24074
24075 [BZ #15260]
24076 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24077 first letters of yesstr and nostr in yesexpr and noexpr,
24078 not for the full words.
24079 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24080 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24081 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24082 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24083 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24084 first letters of yesstr and nostr in yesexpr and noexpr,
24085 until now only English was matched in yesexpr and noexpr.
24086 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24087 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24088 fil but not for tl. As tl and fil are very similar, using fil
24089 is probably better than using English.
24090
24091 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24092
24093 [BZ #21706]
24094 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24095 in yesstr and nostr.
24096
24097 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24098
24099 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24100 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24101 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24102 Likewise.
24103 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24104 Likewise.
24105 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24106 Likewise.
24107 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24108 Likewise.
24109 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24110 (SNANF128X): Likewise.
24111
24112 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24113 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24114 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24115 (HUGE_VAL_F32): Likewise.
24116 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24117 (HUGE_VAL_F64): Likewise.
24118 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24119 (HUGE_VAL_F32X): Likewise.
24120 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24121 (HUGE_VAL_F64X): Likewise.
24122 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24123 (HUGE_VAL_F128X): Likewise.
24124
24125 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24126
24127 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24128 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24129 for the br_FR locale.
24130
24131 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24132
24133 [BZ #21706]
24134 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24135
24136 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24137
24138 * locale/programs/record-status.h: Define globals, and function
24139 prototypes. Move function bodies...
24140 * locale/programs/record-status.c: ... to here. New file.
24141 * iconv/Makefile (iconv_prog-modules): Add record-status.
24142 * locale/Makefile (lib-modules): Likewise.
24143 * iconv/iconv_prog.c: Remove verbose.
24144 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24145 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24146 record a warning about ASCII compatibility.
24147 * locale/programs/ld-monetary.c (monetary_finish): If
24148 warn_int_curr_symbol is true then record a warning about the symbol
24149 not being in our ISO 4217 list.
24150 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24151 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24152 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24153 (OPT_NO_WARN): Define.
24154 (OPT_WARN): Define.
24155 (options): Add entry for --no-warnings, and --warnings.
24156 (set_warnings): New function to enable/disable warnings.
24157 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24158 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24159 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24160 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24161 Pass flags to generate_locale.
24162 (generate_locale): Accept new flag argument and pass it to localedef
24163 invocation.
24164 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24165 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24166
24167 * localedata/Makefile (test-input-data): Use full file name.
24168 * localedata/da_DK.in: Rename to...
24169 * localedata/da_DK.ISO-8859-1.in: ...this.
24170 * localedata/de_DE.in: Rename to...
24171 * localedata/de_DE.ISO-8859-1.in: ...this.
24172 * localedata/en_US.in: Rename to...
24173 * localedata/en_US.ISO-8859-1.in: ...this.
24174 * localedata/fr_FR.in: Rename to...
24175 * localedata/fr_FR.UTF-8.in: ... this.
24176 * localedata/hr_HR.in: Rename to...
24177 * localedata/hr_HR.ISO-8859-2.in: ...this.
24178 * localedata/hu_HU.in: Rename to...
24179 * localedata/hu_HU.UTF-8.in: ...this.
24180 * localedata/si_LK.in: Rename to...
24181 * localedata/si_LK.UTF-8.in: ...this.
24182 * localedata/sv_SE.in: Rename to...
24183 * localedata/sv_SE.ISO-8859-1.in: ...this.
24184 * localedata/tr_TR.in: Rename to...
24185 * localedata/tr_TR.UTF-8.in: ...this.
24186 * localedata/uk_UA.in: Rename to...
24187 * localedata/uk_UA.UTF-8.in: ...this.
24188 * localedata/sort-test.sh: Test file is locale name with the
24189 suffix.
24190
24191 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24192 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24193 file.
24194 * localedata/locales/i18n_ctype: Regenerate.
24195 * localedata/locales/tr_TR: Likewise.
24196 * localedata/locales/translit_circle: Likewise.
24197 * localedata/locales/translit_cjk_compat: Likewise.
24198 * localedata/locales/translit_combining: Likewise.
24199 * localedata/locales/translit_compat: Likewise.
24200 * localedata/locales/translit_font: Likewise.
24201 * localedata/locales/translit_fraction: Likewise.
24202
24203 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24204
24205 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24206 lxvd2x/stxvd2x with lvx/stvx.
24207 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24208
24209 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24210
24211 * include/alloc_buffer.h: Replace "if if " with "if " in
24212 comments.
24213 * sysdeps/mips/memcpy.S: Likkewise.
24214 * sysdeps/mips/memset.S: Likewise.
24215 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24216 Likewise.
24217 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24218 Likewise.
24219 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24220 Likewise.
24221
24222 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24223
24224 [BZ #15261]
24225 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24226 yesexpr and noexpr.
24227 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24228 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24229 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24230 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24231 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24232 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24233 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24234
24235 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24236
24237 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24238 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24239 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24240 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24241 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24242 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24243 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24244 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24245 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24246 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24247 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24248 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24249
24250 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24251
24252 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24253 as possible for better readability of the source.
24254 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24255 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24256 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24257 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24258 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24259 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24260 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24261 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24262 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24263 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24264 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24265 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24266 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24267 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24268 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24269 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24270 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24271 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24272 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24273 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24274 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24275 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24276 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24277 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24278 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24279 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24280 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24281 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24282 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24283 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24284 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24285 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24286 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24287 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24288 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24289 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24290 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24291 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24292 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24293 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24294 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24295 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24296 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24297 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24298 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24299 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24300 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24301 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24302 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24303 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24304 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24305 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24306 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24307 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24308 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24309 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24310 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24311 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24312 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24313 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24314 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24315 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24316 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24317 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24318 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24319 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24320 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24321 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24322 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24323 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24324 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24325 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24326 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24327 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24328 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24329 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24330 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24331 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24332 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24333 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24334 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24335 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24336 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24337 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24338 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24339 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24340 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24341 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24342 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24343 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24344 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24345 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24346 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24347 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24348 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24349 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24350 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24351 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24352 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24353 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24354 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24355 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24356 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24357 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24358 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24359 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24360 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24361 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24362 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24363 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24364 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24365 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24366 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24367 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24368 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24369 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24370 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24371 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24372 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24373 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24374 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24375 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24376 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24377 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24378 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24379 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24380 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24381 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24382 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24383 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24384 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24385 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24386 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24387 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24388 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24389 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24390 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24391 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24392 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24393 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24394 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24395 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24396 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24397 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24398 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24399 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24400 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24401 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24402 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24403 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24404 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24405 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24406 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24407 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24408 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24409 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24410 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24411 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24412 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24413 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24414 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24415 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24416 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24417 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24418 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24419 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24420 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24421 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24422 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24423 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24424 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24425 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24426 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24427 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24428
24429 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24430
24431 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24432 (Use first letters of yesstr and nostr correctly instead of using
24433 full words).
24434
24435 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24436
24437 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24438 (Use first letters of yesstr and nostr correctly).
24439
24440 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24441
24442 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24443 also check for the first characters of yesstr and nostr.
24444 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24445 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24446
24447 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24448
24449 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24450 also check for Chinese characters.
24451
24452 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24453
24454 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24455 match also for the contents of yesstr and nostr. As the first letter
24456 of yesstr and nostr is equal, checking only for the first letter
24457 is not enough.
24458
24459 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24460
24461 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24462 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24463
24464 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24465
24466 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24467 of main contributor.
24468
24469 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24470
24471 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24472 instead of using English.
24473
24474 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24475
24476 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24477 by including the first letters of nostr and yesexpr in the regexp.
24478 Also make it more readable by using ASCII where possible.
24479
24480 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24481
24482 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24483 the first letter of nostr in the regexp. It agrees with CLDR now.
24484 Also make it more readable by using ASCII where possible.
24485
24486 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24487
24488 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24489 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24490 these strings contain a U+17D6 (which somewhat looks like a colon)
24491 instead of a real colon to separate the full words for “yes”
24492 and “no” from the single letter responses.
24493
24494 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24495
24496 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24497 it agree with CLDR (include the first letter of yesstr).
24498 Also make it more readable by using ASCII where possible.
24499
24500 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24501
24502 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24503 and improve yesexpr and noexpr. The yesstr and nostr apparently
24504 came from CLDR. And CLDR has a bug there: these strings contain
24505 a U+0903 (which looks like a colon) instead of a real colon
24506 to separate the full words for “yes” and “no” from the single
24507 letter responses.
24508
24509 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24510
24511 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24512 letters of the full yesstr and nostr in yesexpr and noexpr.
24513
24514 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24515
24516 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24517 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24518 * localedata/locales/an_ES: Make source more readable by using ASCII
24519 where possible.
24520
24521 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24522
24523 [BZ #20952]
24524 * localedata/locales/yuw_PG: New file.
24525 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24526 * locale/iso-639.def: Add Yau (Uruwa).
24527
24528 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24529
24530 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24531
24532 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24533
24534 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24535 (__libc_realloc): Likewise.
24536 (_mid_memalign): Likewise.
24537 (__libc_calloc): Likewise.
24538
24539 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24540
24541 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24542 by adding the generic +1 and -0 as in all other locales.
24543 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24544 day names and make it more readable by using ASCII where possible.
24545
24546 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24547
24548 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24549 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24550
24551 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24552
24553 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24554 WNOHANG in waitpid call.
24555
24556 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24557
24558 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24559 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24560
24561 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24562 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24563 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24564 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24565 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24566 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24567 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24568 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24569 variables.
24570
24571 2017-10-23 Michael Collison <michael.collison@arm.com>
24572
24573 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24574 with __builtin_sqrt.
24575 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24576 with __builtin_sqrtf.
24577 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24578 with __builtin_ceil.
24579 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24580 with __builtin_ceilf.
24581 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24582 with __builtin_floor.
24583 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24584 with __builtin_floorf.
24585 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24586 with __builtin_fma.
24587 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24588 with __builtin_fmaf.
24589 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24590 with __builtin_fmax.
24591 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24592 with __builtin_fmaxf.
24593 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24594 with __builtin_fmin.
24595 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24596 with __builtin_fminf.
24597 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24598 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24599 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24600 with builtin_rint and conversion to int.
24601 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24602 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24603 with builtin_llround.
24604 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24605 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24606 with builtin_rint and conversion to long int.
24607 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24608 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24609 with builtin_lround.
24610 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24611 with builtin_lroundf.
24612 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24613 statements with __builtin_nearbyint.
24614 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24615 statements with __builtin_nearbyintf.
24616 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24617 with __builtin_rint.
24618 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24619 with __builtin_rintf.
24620 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24621 with __builtin_round.
24622 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24623 with __builtin_roundf.
24624 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24625 with __builtin_trunc.
24626 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24627 with __builtin_truncf.
24628 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24629 and s_l[l]round[f].c too.
24630
24631 2017-10-23 Alan Modra <amodra@gmail.com>
24632
24633 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24634 Adjust stack after restoring regs. Add missing LR cfi_restore.
24635
24636 2017-10-23 Alan Modra <amodra@gmail.com>
24637
24638 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24639 Move LR save and frame setup/teardown and LR restore to
24640 immediately around memset call. Provide cfi.
24641
24642 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24643
24644 * sysdeps/i386/fpu/e_powf.S: Removed.
24645 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24646 * sysdeps/i386/fpu/w_powf.c: Likewise.
24647 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24648 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24649 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24650 Add e_powf-sse2.
24651 (CFLAGS-e_powf-sse2.c): New.
24652 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24653 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24654
24655 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24656
24657 * sysdeps/i386/fpu/e_log2f.S: Removed.
24658 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24659 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24660 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24661 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24662 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24663 Add e_log2f-sse2.
24664 (CFLAGS-e_log2f-sse2.c): New.
24665 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24666 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24667
24668 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24669
24670 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24671 Add e_powf-fma.
24672 (CFLAGS-e_powf-fma.c): New.
24673 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24674 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24675
24676 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24677
24678 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24679 Add e_log2f-fma.
24680 (CFLAGS-e_log2f-fma.c): New.
24681 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24682 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24683
24684 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24685
24686 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24687 Add e_logf-fma.
24688 (CFLAGS-e_logf-fma.c): New.
24689 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24690 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24691
24692 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24693
24694 * sysdeps/i386/fpu/e_logf.S: Removed.
24695 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24696 * sysdeps/i386/fpu/w_logf.c: Likewise.
24697 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24698 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24699 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24700 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24701 Add e_logf-sse2.
24702 (CFLAGS-e_logf-sse2.c): New.
24703 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24704 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24705
24706 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24707
24708 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24709 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24710 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24711 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24712 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24713 Add e_exp2f-sse2.
24714 (CFLAGS-e_exp2f-sse2.c): New.
24715 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24716 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24717
24718 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24719
24720 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24721 Add e_exp2f-fma.
24722 (CFLAGS-e_exp2f-fma.c): New.
24723 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24724 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24725
24726 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24727
24728 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24729 * sysdeps/i386/fpu/e_expf.S: Likewise.
24730 * sysdeps/i386/fpu/math_errf.c: Likewise.
24731 * sysdeps/i386/fpu/w_expf.c: Likewise.
24732 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24733 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24734 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24735 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24736 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24737 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24738 Remove e_expf-ia32.
24739 (CFLAGS-e_expf-sse2.c): New.
24740 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24741 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24742
24743 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24744
24745 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24746 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24747 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24748 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24749 e_expf.c.
24750 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24751 New.
24752 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24753 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24754 Renamed to ...
24755 (__redirect_expf): This.
24756 (SYMBOL_NAME): Changed to expf.
24757 (__ieee754_expf): Renamed to ...
24758 (__expf): This.
24759 (__GI___expf): This.
24760 (__ieee754_expf): Add strong_alias.
24761 (__expf_finite): Likewise.
24762 (__expf): New.
24763 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24764
24765 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24766
24767 [BZ #22332]
24768 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24769 unescaping.
24770
24771 2017-10-21 Florian Weimer <fweimer@redhat.com>
24772
24773 * posix/Makefile (tests): Add tst-glob-tilde.
24774 (tests-special): Add tst-glob-tilde-mem.out
24775 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24776 (tst-glob-tilde-mem.out): Add mtrace check.
24777 * posix/tst-glob-tilde.c: New file.
24778
24779 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24780
24781 * bits/floatn-common.h: New file.
24782 * math/Makefile (headers): Add bits/floatn-common.h.
24783 * bits/floatn.h: Include <bits/floatn-common.h>.
24784 * sysdeps/ia64/bits/floatn.h: Likewise.
24785 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24786 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24787 * sysdeps/powerpc/bits/floatn.h: Likewise.
24788 * sysdeps/x86/bits/floatn.h: Likewise.
24789
24790 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24791
24792 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24793 indicates whether compiler emits an warning for alias for
24794 functions with incompatible types.
24795
24796 [BZ #22273]
24797 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24798 the auxiliary process is terminated by a signal before calling _exit
24799 or execve.
24800
24801 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24802
24803 [BZ #21265]
24804 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24805 New.
24806 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24807 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24808 and bit_arch_XSAVEC_Usable if needed.
24809 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24810 and bit_arch_Use_dl_runtime_resolve_opt.
24811 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24812 Removed.
24813 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24814 (bit_arch_Prefer_No_AVX512): Updated.
24815 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24816 (bit_arch_XSAVEC_Usable): New.
24817 (STATE_SAVE_OFFSET): Likewise.
24818 (STATE_SAVE_MASK): Likewise.
24819 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24820 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24821 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24822 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24823 (index_arch_XSAVEC_Usable): New.
24824 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24825 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24826 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24827 is enabled.
24828 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24829 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24830 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24831 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24832 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24833 _dl_runtime_resolve_xsavec.
24834 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24835 Removed.
24836 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24837 instead of VEC_SIZE.
24838 (REGISTER_SAVE_BND0): Removed.
24839 (REGISTER_SAVE_BND1): Likewise.
24840 (REGISTER_SAVE_BND3): Likewise.
24841 (REGISTER_SAVE_RAX): Always defined to 0.
24842 (VMOV): Removed.
24843 (_dl_runtime_resolve_avx): Likewise.
24844 (_dl_runtime_resolve_avx_slow): Likewise.
24845 (_dl_runtime_resolve_avx_opt): Likewise.
24846 (_dl_runtime_resolve_avx512): Likewise.
24847 (_dl_runtime_resolve_avx512_opt): Likewise.
24848 (_dl_runtime_resolve_sse): Likewise.
24849 (_dl_runtime_resolve_sse_vex): Likewise.
24850 (USE_FXSAVE): New.
24851 (_dl_runtime_resolve_fxsave): Likewise.
24852 (USE_XSAVE): Likewise.
24853 (_dl_runtime_resolve_xsave): Likewise.
24854 (USE_XSAVEC): Likewise.
24855 (_dl_runtime_resolve_xsavec): Likewise.
24856 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24857 Removed.
24858 (_dl_runtime_resolve_avx512_opt): Likewise.
24859 (_dl_runtime_resolve_avx): Likewise.
24860 (_dl_runtime_resolve_avx_opt): Likewise.
24861 (_dl_runtime_resolve_sse): Likewise.
24862 (_dl_runtime_resolve_sse_vex): Likewise.
24863 (_dl_runtime_resolve_fxsave): New.
24864 (_dl_runtime_resolve_xsave): Likewise.
24865 (_dl_runtime_resolve_xsavec): Likewise.
24866
24867 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24868
24869 [BZ #22320]
24870 CVE-2017-15670
24871 * posix/glob.c (__glob): Fix one-byte overflow.
24872
24873 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24874
24875 * malloc/malloc.c (sysdep-cancel.h): Add include.
24876
24877 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24878
24879 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24880
24881 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24882
24883 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24884 (tests): Remove $(objpfx)ga_test depdendency.
24885 * resolv/ga_test.c: Remove file.
24886
24887 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24888
24889 [BZ #18812]
24890 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24891 * localedata/locales/kab_DZ: New file.
24892
24893 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24894
24895 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24896 _dl_relocate_static_pie instead of _dl_start to compute load
24897 address in static PIE.
24898
24899 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24900
24901 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24902
24903 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24904
24905 [BZ #13605]
24906 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24907 * localedata/locales/shn_MM: New file.
24908
24909 2017-10-20 Florian Weimer <fweimer@redhat.com>
24910
24911 [BZ #22321]
24912 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24913 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24914 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24915 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24916 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24917 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24918
24919 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24920
24921 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24922
24923 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24924
24925 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24926
24927 [BZ #22322]
24928 * sysdeps/mips/bits/long-double.h: Move to ....
24929 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24930
24931 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24932
24933 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24934
24935 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24936 H.J. Lu <hongjiu.lu@intel.com>
24937
24938 [BZ #22299]
24939 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24940 GLRO(dl_platform) to NULL.
24941 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24942 (modules-names): Add tst-platformmod-1 and
24943 x86_64/tst-platformmod-2.
24944 (CFLAGS-tst-platform-1.c): New.
24945 (CFLAGS-tst-platformmod-1.c): Likewise.
24946 (CFLAGS-tst-platformmod-2.c): Likewise.
24947 (LDFLAGS-tst-platformmod-2.so): Likewise.
24948 ($(objpfx)tst-platform-1): Likewise.
24949 ($(objpfx)tst-platform-1.out): Likewise.
24950 (tst-platform-1-ENV): Likewise.
24951 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24952 * sysdeps/x86_64/tst-platform-1.c: New file.
24953 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24954 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24955
24956 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24957
24958 [BZ #13994]
24959 * locale/iso-639.def: Add Karbi.
24960 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24961 * localedata/locales/mjw_IN: New file.
24962
24963 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24964
24965 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24966 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24967 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24968 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24969 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24970 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24971 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24972 <bits/floatn.h>.
24973 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24974 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24975 * manual/math.texi (Mathematics): Document additional architecture
24976 support for _Float128.
24977 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24978 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24979 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24980 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24981 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24982 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24983 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24984 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24985 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24986 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24987 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24988 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24989 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24990 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24991 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24992
24993 2017-10-18 Renlin Li <renlin.li@arm.com>
24994
24995 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24996 _DYNAMIC symbol to calculate load address.
24997
24998 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24999
25000 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
25001 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
25002 summary bits.
25003 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
25004 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
25005
25006 2017-10-18 Mike FABIAN <mfabian@redhat.com>
25007
25008 [BZ #16777]
25009 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
25010 and improve readability by using more ASCII.
25011 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
25012 and improve readability by using more ASCII.
25013
25014 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
25015
25016 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
25017 not all targets support atomics on bool.
25018
25019 2017-10-17 Joseph Myers <joseph@codesourcery.com>
25020
25021 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
25022 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
25023 __f128.
25024 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25025 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
25026 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25027 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
25028 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
25029 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
25030
25031 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25032
25033 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
25034 defines.
25035
25036 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25037
25038 [BZ #22159]
25039 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
25040 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
25041 (do_check_remalloced_chunk): Fix build bug.
25042 (do_check_malloc_state): Add assert that checks arena->top.
25043 (malloc_consolidate): Remove initialization.
25044 (int_mallinfo): Remove call to malloc_consolidate.
25045 (__libc_mallopt): Clarify why malloc_consolidate is needed.
25046
25047 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25048
25049 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
25050 (have_fastchunks): Remove.
25051 (clear_fastchunks): Remove.
25052 (set_fastchunks): Remove.
25053 (malloc_state): Add have_fastchunks.
25054 (malloc_init_state): Use have_fastchunks.
25055 (do_check_malloc_state): Remove incorrect invariant checks.
25056 (_int_malloc): Use have_fastchunks.
25057 (_int_free): Likewise.
25058 (malloc_consolidate): Likewise.
25059
25060 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
25061
25062 * malloc/malloc.c (tcache_put): Inline.
25063 (tcache_get): Inline.
25064
25065 2017-10-17 Jordi Mallach <jordi@gnu.org>
25066
25067 Aurelien Jarno <aurelien@aurel32.net>
25068 [BZ #2522]
25069 * localedata/locales/ca_ES@valencia: New file.
25070 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
25071
25072 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
25073
25074 [BZ #22296]
25075 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25076 < 6.x
25077
25078 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25079
25080 * scripts/build-many-glibcs.py (Context.add_all_configs):
25081 Add arm-linux-gnueabihf multiarch extra_glibcs.
25082
25083 * sysdeps/generic/ifunc-init.h: New file.
25084 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25085
25086 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25087
25088 [BZ #22019]
25089 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25090 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25091 * stdlib/tst-strfmon_l.c: adapt test case.
25092
25093 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25094
25095 * sysdeps/generic/float128-abi.h: New file.
25096 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25097 non-__prefixed symbols to ....
25098 * math/Versions: ... here. Include <float128-abi.h>.
25099 * stdlib/Versions ... and here. Include <float128-abi.h>
25100
25101 2017-10-16 Florian Weimer <fweimer@redhat.com>
25102
25103 * version.h (VERSION): Switch to ".9000" as the development
25104 version suffix.
25105
25106 2017-10-16 Florian Weimer <fweimer@redhat.com>
25107
25108 [BZ #22050]
25109 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25110 compat_symbol_reference to access non-default version.
25111
25112 2017-10-16 Florian Weimer <fweimer@redhat.com>
25113
25114 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25115
25116 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25117
25118 * include/shlib-compat.h (compat_symbol_reference): Update
25119 comment.
25120
25121 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25122
25123 * math/Makefile (test-types): Add
25124 $(type-float128-$(float128-alias-fcts)).
25125 * math/test-float128.h (TYPE_STR): Define conditional on
25126 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25127 (ULP_IDX): Likewise.
25128 (ULP_I_IDX): Likewise.
25129
25130 * stdlib/strtold.c: Include <bits/floatn.h>
25131 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25132 and later undefine as macro. Define as weak alias if
25133 [!USE_WIDE_CHAR].
25134 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25135 and later undefine as macro. Define as weak alias if
25136 [USE_WIDE_CHAR].
25137 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25138 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25139 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25140 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25141 Define and later undefine as macro. Define as weak alias if
25142 [USE_WIDE_CHAR].
25143 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25144 <bits/floatn.h>.
25145 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25146 Define and later undefine as macro. Define as weak alias if
25147 [!USE_WIDE_CHAR].
25148 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25149 Define and later undefine as macro. Define as weak alias if
25150 [USE_WIDE_CHAR].
25151
25152 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25153
25154 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25155 record_verbose messages.
25156
25157 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25158
25159 [BZ #22052]
25160 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25161 to silence -O3 -Wall warning with GCC 7.
25162
25163 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25164
25165 * Makeconfig (+link-static-before-libc): Use the first of
25166 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25167 * gmon/Makefile (tests): Add tst-gmon-static.
25168 (tests-static): Likewise.
25169 (CFLAGS-tst-gmon-static.c): New.
25170 (CRT-tst-gmon-static): Likewise.
25171 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25172 (tst-gmon-static-ENV): Likewise.
25173 (tests-special): Likewise.
25174 ($(objpfx)tst-gmon-static.out): Likewise.
25175 (clean-tst-gmon-static-data): Likewise.
25176 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25177 * gmon/tst-gmon-static-gprof.sh: New file.
25178 * gmon/tst-gmon-static.c: Likewise.
25179
25180 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25181
25182 [BZ #22295]
25183 * locale/programs/linereader.c (get_string): Don't warn on
25184 non-symbolic character.
25185
25186 [BZ #22294]
25187 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25188 int_curr_symbol.
25189
25190 [BZ #22292]
25191 * locale/programs/record-status.h: New file
25192 * locale/programs/locale.c: Add comment.
25193 * locale/programs/charmap-dir.c: Don't include error.h.
25194 (charmap_opendir): Use record_error.
25195 * locale/programs/charmap.c: Don't include error.h.
25196 (charmap_read): Use record_error, and record_warning.
25197 (parse_charmap): Likewise.
25198 * locale/programs/ld-address.c: Don't include error.h.
25199 (address_finish): Use record_error, and record_warning.
25200 * locale/programs/ld-collate.c: Don't include error.h.
25201 (collate_finish): Use record_error, and record_error_at_line.
25202 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25203 (ctype_class_new): Likewise.
25204 (ctype_map_new): Likewise.
25205 (set_one_default): Likewise.
25206 (set_class_defaults): Likewise.
25207 (translit_flatten): Likewise.
25208 (allocate_arrays): Use record_error, and record_verbose.
25209 * locale/programs/ld-identification.c: Don't include error.h.
25210 (indentation_finish): Use record_error and record_warning.
25211 * locale/programs/ld-measurement.c: Don't include error.h.
25212 (measurement_finish): Use record_error.
25213 * locale/programs/ld-messages.c
25214 (message_finish): Likewise.
25215 * locale/programs/ld-monetary.c
25216 (monetary_finish): Likewise.
25217 * locale/programs/ld-name.c (name_finish): Use record_error
25218 and record_warning.
25219 * locale/programs/ld-numeric.c
25220 (numeric_finish): Use record_error.
25221 * locale/programs/ld-paper.c: Don't include error.h.
25222 (paper_finish): Use record_error.
25223 * locale/programs/ld-telephone.c: Don't include error.h.
25224 (telephone_finish): Use record_error.
25225 * locale/programs/ld-time.c (time_finish): Likewise.
25226 * locale/programs/linereader.h (lr_error): Make inline func.
25227 * locale/programs/localedef.c: Define recorded_warning_count,
25228 and recorded_error_count.
25229 (main): Use record_error. Use recorded_error_count and
25230 recorded_warning_count to issue correct error returns.
25231 (add_to_readlist): Use record_error.
25232 (find_locale): Likewise.
25233 (load_locale): Likewise.
25234 * locale/programs/localedef.h: Remove be_quiet
25235 and WITH_CUR_LOCALE.
25236 * locale/programs/locarchive.c (compare_from_file): Use
25237 record_error.
25238 * locale/programs/locfile.c (write_locale_data): Use
25239 record_error.
25240 * locale/programs/repertoire.c: Dont include error.h.
25241 (repertoire_complain): Use record_error.
25242 * localedata/tst-fmon.sh: Expect failures from localedef.
25243 * localedata/tst-locale.sh: Likewise.
25244 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25245
25246 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25247 (REPORTS): Likewise.
25248 (check): Likewise.
25249 (i18n): Rename to...
25250 (i18n_ctype): ...this.
25251 (i18n-report): Rename to...
25252 (i18n_ctype-report): ...this.
25253 * localedata/locales/i18n_ctype: Regenerate.
25254 * localedata/locales/i18n: copy i18n_ctype.
25255
25256 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25257
25258 * stdlib/strfroml.c: Include <bits/floatn.h>.
25259 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25260 Define before include of <stdlib.h> and undefine afterwards, then
25261 define as weak alias.
25262
25263 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25264 Undefine and restore default definition. Use
25265 libm_alias_ldouble_other.
25266
25267 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25268
25269 [BZ #22153]
25270 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25271 in coredumps.
25272
25273 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25274
25275 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25276 Assign sym_map to be map for local symbols, as TLS relocations
25277 use sym_map to determine whether the symbol is defined and to
25278 extract the TLS information.
25279 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25280 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25281
25282 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25283
25284 [BZ #22189]
25285 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25286 (math_force_eval): Add powerpc version.
25287
25288 [BZ #22142]
25289 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25290 -DBL_MAX.
25291 (do_test): Likewise.
25292 * stdio-common/tst-printf.sh: Likewise.
25293 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25294 ifdef clause in order to set the carry bit right. Replace r0 by
25295 0 without changing the behavior.
25296
25297 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25298
25299 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25300 <libm-alias-ldouble.h>.
25301 (fabsl): Define using libm_alias_ldouble.
25302 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25303 <libm-alias-ldouble.h>.
25304 (fabsl): Define using libm_alias_ldouble.
25305
25306 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25307 Remove conditional code.
25308
25309 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25310 Rename to __clog10_internal_l.
25311 (__clog10_internal_l): Define aliases using
25312 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25313 with __clog10.
25314
25315 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25316
25317 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25318 * benchtests/sincosf-inputs: New file.
25319 * benchtests/cosf-inputs: New file.
25320 * benchtests/sinf-inputs: New file.
25321
25322 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25323
25324 * posix/tst-spawn.c (do_test): Wait for both children.
25325
25326 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25327
25328 [BZ #22284]
25329 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25330 tests-pie): Add tst-gmon-pie.
25331 (CFLAGS-tst-gmon-pie.c): New.
25332 (CRT-tst-gmon-pie): Likewise.
25333 (tst-gmon-pie-ENV): Likewise.
25334 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25335 ($(objpfx)tst-gmon-pie.out): Likewise.
25336 (clean-tst-gmon-pie-data): Likewise.
25337 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25338 * gmon/gmon.c [PIC]: Include <link.h>.
25339 [PIC] (callback): New function.
25340 (write_hist): Add an argument for load address. Subtract load
25341 address from PCs.
25342 (write_call_graph): Likewise.
25343 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25344 it to write_hist and write_call_graph.
25345 * gmon/tst-gmon-pie.c: New file.
25346
25347 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25348
25349 * math/Makefile (test-types-basic): New variable.
25350 (test-types): Likewise.
25351 (libm-test-support): Use $(test-types) instead of $(types).
25352 (libm-tests-base-normal): Likewise.
25353 (libm-tests-base-finite): Likewise.
25354 (libm-tests-base-inline): Likewise.
25355 (generated): Likewise.
25356 ($(objpfx)libm-test-support-$(t).c): Likewise.
25357 (libm-tests-for-type iterator): Likewise.
25358 (libm-test-support iterator): Likewise.
25359 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25360 (ulp_idx): Use ULP_IDX.
25361 * math/test-ldouble.h: Include <float.h>.
25362 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25363 (ULP_IDX): New macro.
25364 (ULP_I_IDX): Likewise.
25365 * math/test-double.h (ULP_IDX): Likewise.
25366 (ULP_I_IDX): Likewise.
25367 * math/test-float.h (ULP_IDX): Likewise.
25368 (ULP_I_IDX): Likewise.
25369 * math/test-float128.h (ULP_IDX): Likewise.
25370 (ULP_I_IDX): Likewise.
25371
25372 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25373
25374 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25375 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25376 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25377 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25378 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25379 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25380 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25381 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25382 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25383 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25384 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25385 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25386 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25387 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25388 (SINGLE_THREAD_BY_GLOBAL): Define.
25389 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25390 Likewise.
25391 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25392 Likewise.
25393 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25394 Likewise.
25395 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25396 Likewise.
25397 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25398 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25399 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25400 Likewise.
25401
25402 2017-10-11 Andreas Schwab <schwab@suse.de>
25403
25404 * nis/Makefile (aux): Remove.
25405 * nscd/Makefile (aux): Add nscd_hash.
25406 (nscd-modules): Likewise.
25407 ($(objpfx)nscd): Don't depend on libnsl.
25408 * nscd/nscd_hash.c: New file.
25409 * nscd/nscd_hash.h: Likewise.
25410 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25411 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25412 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25413 instead of <nis/rpcsvc/nis.h>.
25414 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25415
25416 2017-10-11 Florian Weimer <fweimer@redhat.com>
25417
25418 [BZ #22078]
25419 Avoid large NSS buffers with many addresses, aliases.
25420 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25421 using dynarrays and struct alloc_buffer.
25422 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25423 (tst-nss-files-hosts-multi): Link with -ldl.
25424 * nss/tst-nss-files-hosts-multi.c: New file.
25425
25426 2017-10-11 Florian Weimer <fweimer@redhat.com>
25427
25428 [BZ #18023]
25429 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25430 scratch_buffer. Eliminate gotos.
25431
25432 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25433
25434 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25435 libm_alias_ldouble_other.
25436 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25437 undefine and redefine.
25438 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25439 (exp10l): Do not define here.
25440 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25441 (weak_alias): Undefine and redefine.
25442 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25443 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25444 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25445 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25446
25447 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25448 [!__fma] (fma): Define using libm_alias_double.
25449 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25450 [!__fmaf] (fmaf): Define using libm_alias_float.
25451 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25452 (fmal): Define using libm_alias_ldouble.
25453
25454 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25455
25456 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25457 New macro.
25458 (libm_alias_double_other): Likewise.
25459 (libm_alias_double_r): Use libm_alias_double_other_r.
25460 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25461 New macro.
25462 (libm_alias_float_other): Likewise.
25463 (libm_alias_float_r): Use libm_alias_float_other_r.
25464 * sysdeps/generic/libm-alias-float128.h
25465 (libm_alias_float128_other_r): New macro.
25466 (libm_alias_float128_other): Likewise.
25467 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25468 * sysdeps/generic/libm-alias-ldouble.h
25469 (libm_alias_ldouble_other_r): New macro.
25470 (libm_alias_ldouble_other): Likewise.
25471 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25472 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25473 (libm_alias_double_other_r): New macro.
25474 (libm_alias_double_other): Likewise.
25475 (libm_alias_double_r): Use libm_alias_double_other_r.
25476 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25477 (libm_alias_ldouble_other_r): New macro.
25478 (libm_alias_ldouble_other): Likewise.
25479 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25480 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25481 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25482 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25483 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25484 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25485 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25486 * math/w_exp2f.c: Use libm_alias_float_other.
25487 * math/w_expf.c: Likewise.
25488 * math/w_log2f.c: Likewise.
25489 * math/w_logf.c: Likewise.
25490 * math/w_powf.c: Likewise.
25491 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25492 [!__exp2f]: Use libm_alias_float_other.
25493 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25494 [!__expf]: Use libm_alias_float_other.
25495 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25496 [!__log2f]: Use libm_alias_float_other.
25497 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25498 [!__logf]: Use libm_alias_float_other.
25499 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25500 [!__powf]: Use libm_alias_float_other.
25501
25502 2017-10-10 Florian Weimer <fweimer@redhat.com>
25503
25504 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25505 function.
25506 (_nss_files_gethostbyname3_r): Call it.
25507
25508 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25509
25510 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25511 error. Remove default definition of declare_mgen_alias.
25512 [!declare_mgen_alias_r]: Likewise.
25513 * sysdeps/generic/math-type-macros-double.h
25514 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25515 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25516 (declare_mgen_alias_r): Likewise.
25517 * sysdeps/generic/math-type-macros-float128.h
25518 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25519 * sysdeps/generic/math-type-macros-ldouble.h
25520 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25521 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25522 macro.
25523 (declare_mgen_alias_r_s): Likewise.
25524 (declare_mgen_alias_r): Likewise.
25525 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25526 (lgamma_r): Define using libm_alias_double_r.
25527 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25528 (lgammaf_r): Define using libm_alias_float_r.
25529 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25530 (lgammal_r): Define using libm_alias_ldouble_r.
25531 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25532 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25533
25534 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25535
25536 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25537 extern declaration.
25538
25539 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25540
25541 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25542
25543 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25544
25545 [BZ #21326]
25546 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25547 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25548 * math/Makefile (test-math-cxx11): New test.
25549 * math/test-math-cxx11.cc: New file.
25550
25551 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25552
25553 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25554
25555 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25556 call to allocate the slave pty file descriptor.
25557
25558 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25559
25560 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25561 [!__fma] (fma): Define using libm_alias_double.
25562 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25563 [!__fma] (fma): Define using libm_alias_double.
25564
25565 * sysdeps/ieee754/float128/float128_private.h: Include
25566 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25567 (libm_alias_ldouble_r): Undefine and redefine.
25568 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25569 <libm-alias-ldouble.h>.
25570 (asinhl): Define using libm_alias_ldouble.
25571 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25572 <libm-alias-ldouble.h>.
25573 (atanl): Define using libm_alias_ldouble.
25574 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25575 <libm-alias-ldouble.h>.
25576 (cbrtl): Define using libm_alias_ldouble.
25577 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25578 <libm-alias-ldouble.h>.
25579 (ceill): Define using libm_alias_ldouble.
25580 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25581 <libm-alias-ldouble.h>.
25582 (copysignl): Define using libm_alias_ldouble.
25583 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25584 <libm-alias-ldouble.h>.
25585 (cosl): Define using libm_alias_ldouble.
25586 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25587 <libm-alias-ldouble.h>.
25588 (erfl): Define using libm_alias_ldouble.
25589 (erfcl): Likewise.
25590 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25591 <libm-alias-ldouble.h>.
25592 (expm1l): Define using libm_alias_ldouble.
25593 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25594 <libm-alias-ldouble.h>.
25595 (fabsl): Define using libm_alias_ldouble.
25596 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25597 <libm-alias-ldouble.h>.
25598 (floorl): Define using libm_alias_ldouble.
25599 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25600 <libm-alias-ldouble.h>.
25601 (fmal): Define using libm_alias_ldouble.
25602 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25603 <libm-alias-ldouble.h>.
25604 (frexpl): Define using libm_alias_ldouble.
25605 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25606 libm_alias_ldouble.
25607 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25608 <libm-alias-ldouble.h>.
25609 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25610 libm_alias_ldouble.
25611 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25612 <libm-alias-ldouble.h>.
25613 (getpayloadl): Define using libm_alias_ldouble.
25614 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25615 <libm-alias-ldouble.h>.
25616 (llrintl): Define using libm_alias_ldouble.
25617 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25618 <libm-alias-ldouble.h>.
25619 (llroundl): Define using libm_alias_ldouble.
25620 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25621 <libm-alias-ldouble.h>.
25622 (logbl): Define using libm_alias_ldouble.
25623 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25624 <libm-alias-ldouble.h>.
25625 (lrintl): Define using libm_alias_ldouble.
25626 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25627 <libm-alias-ldouble.h>.
25628 (lroundl): Define using libm_alias_ldouble.
25629 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25630 <libm-alias-ldouble.h>.
25631 (modfl): Define using libm_alias_ldouble.
25632 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25633 <libm-alias-ldouble.h>.
25634 (nearbyintl): Define using libm_alias_ldouble.
25635 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25636 <libm-alias-ldouble.h>.
25637 (nextafterl): Define using libm_alias_ldouble.
25638 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25639 <libm-alias-ldouble.h>.
25640 (nextupl): Define using libm_alias_ldouble.
25641 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25642 <libm-alias-ldouble.h>.
25643 (remquol): Define using libm_alias_ldouble.
25644 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25645 <libm-alias-ldouble.h>.
25646 (rintl): Define using libm_alias_ldouble.
25647 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25648 <libm-alias-ldouble.h>.
25649 (roundevenl): Define using libm_alias_ldouble.
25650 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25651 <libm-alias-ldouble.h>.
25652 (roundl): Define using libm_alias_ldouble.
25653 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25654 using libm_alias_ldouble.
25655 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25656 <libm-alias-ldouble.h>.
25657 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25658 Define using libm_alias_ldouble.
25659 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25660 <libm-alias-ldouble.h>.
25661 (sincosl): Define using libm_alias_ldouble.
25662 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25663 <libm-alias-ldouble.h>.
25664 (sinl): Define using libm_alias_ldouble.
25665 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25666 <libm-alias-ldouble.h>.
25667 (tanhl): Define using libm_alias_ldouble.
25668 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25669 <libm-alias-ldouble.h>.
25670 (tanl): Define using libm_alias_ldouble.
25671 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25672 <libm-alias-ldouble.h>.
25673 (totalorderl): Define using libm_alias_ldouble.
25674 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25675 <libm-alias-ldouble.h>.
25676 (totalordermagl): Define using libm_alias_ldouble.
25677 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25678 <libm-alias-ldouble.h>.
25679 (truncl): Define using libm_alias_ldouble.
25680 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25681 libm_alias_ldouble.
25682 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25683 libm_alias_ldouble.
25684 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25685 <libm-alias-ldouble.h>.
25686 (weak_alias): Do not undefine and redefine.
25687 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25688 (copysignl): Define with long_double_symbol only if [IS_IN
25689 (libc)].
25690 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25691 <libm-alias-ldouble.h>.
25692 (weak_alias): Do not undefine and redefine.
25693 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25694 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25695 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25696 <libm-alias-ldouble.h>.
25697 (weak_alias): Do not undefine and redefine.
25698 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25699 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25700 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25701 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25702 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25703 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25704 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25705 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25706 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25707 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25708 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25709 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25710 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25711 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25712 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25713 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25714 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25715 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25716 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25717 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25718 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25719 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25720 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25721 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25722 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25723 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25724
25725 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25726
25727 [BZ #22111]
25728 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25729 (tcache_thread_freeres): Set tcache_shutting_down before
25730 freeing the tcache.
25731 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25732 * malloc/tst-malloc-tcache-leak.c: New file.
25733
25734 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25735
25736 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25737 back to powerpc32 file.
25738 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25739 (memrchr): Add __memrchr_power8 to ifunc list.
25740 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25741 extra bytes for unaligned inputs.
25742
25743 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25744
25745 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25746 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25747 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25748 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25749 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25750
25751 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25752
25753 * sysdeps/arm/libm-test-ulps: Update.
25754
25755 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25756 <libm-alias-ldouble.h>.
25757 (asinhl): Define using libm_alias_ldouble.
25758 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25759 <libm-alias-ldouble.h>.
25760 (cbrtl): Define using libm_alias_ldouble.
25761 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25762 <libm-alias-ldouble.h>.
25763 (copysignl): Define using libm_alias_ldouble.
25764 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25765 <libm-alias-ldouble.h>.
25766 (cosl): Define using libm_alias_ldouble.
25767 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25768 <libm-alias-ldouble.h>.
25769 (erfl): Define using libm_alias_ldouble.
25770 (erfcl): Likewise.
25771 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25772 <libm-alias-ldouble.h>.
25773 (fmal): Define using libm_alias_ldouble.
25774 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25775 <libm-alias-ldouble.h>.
25776 (frexpl): Define using libm_alias_ldouble.
25777 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25778 libm_alias_ldouble.
25779 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25780 <libm-alias-ldouble.h>.
25781 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25782 libm_alias_ldouble.
25783 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25784 <libm-alias-ldouble.h>.
25785 (getpayloadl): Define using libm_alias_ldouble.
25786 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25787 <libm-alias-ldouble.h>.
25788 (llrintl): Define using libm_alias_ldouble.
25789 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25790 <libm-alias-ldouble.h>.
25791 (llroundl): Define using libm_alias_ldouble.
25792 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25793 <libm-alias-ldouble.h>.
25794 (lrintl): Define using libm_alias_ldouble.
25795 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25796 <libm-alias-ldouble.h>.
25797 (lroundl): Define using libm_alias_ldouble.
25798 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25799 <libm-alias-ldouble.h>.
25800 (modfl): Define using libm_alias_ldouble.
25801 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25802 <libm-alias-ldouble.h>.
25803 (nextupl): Define using libm_alias_ldouble.
25804 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25805 <libm-alias-ldouble.h>.
25806 (remquol): Define using libm_alias_ldouble.
25807 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25808 <libm-alias-ldouble.h>.
25809 (roundevenl): Define using libm_alias_ldouble.
25810 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25811 <libm-alias-ldouble.h>.
25812 (roundl): Define using libm_alias_ldouble.
25813 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25814 using libm_alias_ldouble.
25815 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25816 <libm-alias-ldouble.h>.
25817 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25818 <libm-alias-ldouble.h>.
25819 (setpayloadsigl): Define using libm_alias_ldouble.
25820 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25821 <libm-alias-ldouble.h>.
25822 (sincosl): Define using libm_alias_ldouble.
25823 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25824 <libm-alias-ldouble.h>.
25825 (sinl): Define using libm_alias_ldouble.
25826 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25827 <libm-alias-ldouble.h>.
25828 (tanhl): Define using libm_alias_ldouble.
25829 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25830 <libm-alias-ldouble.h>.
25831 (tanl): Define using libm_alias_ldouble.
25832 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25833 <libm-alias-ldouble.h>.
25834 (totalorderl): Define using libm_alias_ldouble.
25835 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25836 <libm-alias-ldouble.h>.
25837 (totalordermagl): Define using libm_alias_ldouble.
25838 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25839 libm_alias_ldouble.
25840 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25841 libm_alias_ldouble.
25842
25843 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25844
25845 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25846 memmove_falkor.
25847 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25848 (__libc_ifunc_impl_list): Likewise.
25849 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25850 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25851
25852 * benchtests/bench-memmove-walk.c: New file.
25853 * benchtests/Makefile (string-benchset): Add it.
25854
25855 * benchtests/bench-memset-walk.c: New file.
25856 * benchtests/Makefile (string-benchset): Add it.
25857
25858 * benchtests/bench-memcpy-walk.c: New file.
25859 * benchtests/Makefile (string-benchset): Add it.
25860
25861 2017-10-05 Florian Weimer <fweimer@redhat.com>
25862
25863 nscd: Eliminate compilation time dependency in the build output.
25864 * nscd/nscd_stat.c (STATDATA_VERSION)
25865 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25866 (STATDATA_VERSION_FULL): New macro definitions.
25867 (compilation): Remove.
25868 (struct statdata): Adjust version member.
25869 (send_stats): Set version from STATDATA_VERSION_FULL.
25870 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25871
25872 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25873
25874 * configure.ac (--enable-add-ons): Remove option.
25875 (machine): Do not mention add-ons in comment.
25876 (LIBC_PRECONFIGURE): Likewise.
25877 (add_ons): Remove variable and sanity checks and logic to locate
25878 add-ons.
25879 (add_ons_automatic): Remove variable.
25880 (configured_add_ons): Likewise.
25881 (add_ons_sfx): Likewise.
25882 (add_ons_pfx): Likewise.
25883 (add_on_subdirs): Likewise.
25884 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25885 consideration of add-ons in Implies handling.
25886 (sysdeps_add_ons): Likewise.
25887 * configure: Regenerated.
25888 * libidn/configure.ac: Remove.
25889 * libidn/configure: Likewise.
25890 * sysdeps/unix/inet/configure.ac: New file.
25891 * sysdeps/unix/inet/configure: New generated file.
25892 * sysdeps/unix/inet/Subdirs: Add libidn.
25893 * Makeconfig (sysdeps-srcdirs): Remove variable.
25894 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25895 ($(common-objpfx)config.status): Do not depend on add-on files.
25896 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25897 comment.
25898 (all-subdirs): Do not include $(add-on-subdirs).
25899 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25900 * config.make.in (add-ons): Remove variable.
25901 (add-on-subdirs): Likewise.
25902 (sysdeps-add-ons): Likewise.
25903 * manual/Makefile (add-chapters): Remove.
25904 ($(objpfx)texis): Do not depend on $(add-chapters).
25905 (nonexamples): Do not handle $(add-chapters).
25906 (examples): Do not handle $(add-ons).
25907 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25908 libc-texinfo.sh.
25909 * manual/install.texi (Installation): Do not mention add-ons.
25910 (--enable-add-ons): Do not document configure option.
25911 * INSTALL: Regenerated.
25912 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25913 * manual/maint.texi (Hierarchy Conventions): Do not mention
25914 add-ons.
25915 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25916 --enable-add-ons.
25917 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25918 add-ons.
25919 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25920 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25921
25922 2017-10-05 Andreas Schwab <schwab@suse.de>
25923
25924 [BZ #15142]
25925 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25926 (_IO_flush_all_lockp): Always lock list_all_lock.
25927 (_IO_flush_all_linebuffered): Likewise.
25928 (_IO_unbuffer_all): Likewise.
25929
25930 2017-10-05 Florian Weimer <fweimer@redhat.com>
25931
25932 [BZ #15436]
25933 Do not flush stdio streams on abort.
25934 * stdlib/abort.c (fflush): Remove macro definition.
25935 (abort): Remove stages related to stdio flushing.
25936
25937 2017-10-05 Florian Weimer <fweimer@redhat.com>
25938
25939 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25940
25941 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25942
25943 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25944
25945 2017-10-05 Florian Weimer <fweimer@redhat.com>
25946
25947 * support/support_format_hostent.c (support_format_hostent): Add
25948 more error information for NETDB_INTERNAL.
25949
25950 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25951
25952 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25953 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25954 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25955 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25956 AC_DEFINE if multi-arch is enabled.
25957 * sysdeps/i386/configure: Regenerated.
25958
25959 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25960
25961 * Makeconfig (+link-static-before-libc): Use
25962 $(DEFAULT-LDFLAGS-$(@F)).
25963 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25964 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25965 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25966
25967 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25968
25969 * elf/Makefile (tests): Add tst-main1.
25970 (modules-names): Add tst-main1mod.
25971 ($(objpfx)tst-main1): New.
25972 (CRT-tst-main1): Likewise.
25973 (LDFLAGS-tst-main1): Likewise.
25974 (LDLIBS-tst-main1): Likewise.
25975 (tst-main1mod.so-no-z-defs): Likewise.
25976 * elf/tst-main1.c: New file.
25977 * elf/tst-main1mod.c: Likewise.
25978
25979 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25980
25981 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25982
25983 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25984
25985 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25986 (fma): Define using libm_alias_double.
25987 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25988 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25989 <math_ldbl_opt.h>.
25990 (fmal): Do not define as compat symbol here.
25991 * sysdeps/alpha/fpu/s_fma.c: New file.
25992
25993 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25994
25995 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25996
25997 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25998
25999 [BZ #22229]
26000 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
26001 <math_ldbl_opt.h>
26002 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26003 and libc.
26004 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
26005 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26006 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
26007 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
26008 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
26009 Include <math_ldbl_opt.h>
26010 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
26011 and libc.
26012 (compat_symbol): Undefine and redefine.
26013 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
26014 <math_ldbl_opt.h>
26015 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
26016 (compat_symbol): Undefine and redefine.
26017 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
26018 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
26019 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
26020 GLIBC_2_1 for libm.
26021 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
26022 GLIBC_2.0 copysignl symbol.
26023 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
26024 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
26025
26026 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
26027
26028 2017-10-04 Florian Weimer <fweimer@redhat.com>
26029
26030 * scripts/check-local-headers.sh: Ignore nspr4 header file
26031 directory in addition to nspr.
26032
26033 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
26034
26035 [BZ #17956]
26036 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
26037 * configure: Regenerate.
26038 * crypt/Makefile (nss-cpp-flags): New variable.
26039 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
26040 (CPPFLAGS-md5-crypt.c): Use it.
26041 * scripts/check-local-headers.sh: Ignore nspr header file
26042 directory.
26043
26044 2017-10-04 Andreas Schwab <schwab@suse.de>
26045
26046 * nis/Makefile (services): Remove compat.
26047 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
26048 ($(objpfx)libnss_compat.so): Remove rule.
26049 * nis/Versions (libnss_compat): Remove.
26050 * nss/Makefile (services): Add compat.
26051 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
26052 * nss/Versions (libnss_compat): Define.
26053 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
26054 Don't include <rpc/types.h>. Replace bool_t by bool.
26055 * nss/nss_compat/compat-initgroups.c: Likewise.
26056 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
26057 instead of <rpcsrv/ypclnt.h>.
26058 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
26059 yp_get_default_domain.
26060 * nss/nss_compat/compat-pwd.c: Likewise.
26061 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
26062 yp_get_default_domain.
26063 * nss/nss_compat/nisdomain.c: New file.
26064 * nss/nss_compat/nisdomain.h: Likewise.
26065
26066 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26067
26068 [BZ #22244]
26069 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
26070 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
26071
26072 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
26073
26074 [BZ #22243]
26075 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26076 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26077
26078 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26079
26080 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26081 "movl main@GOTOFF(%ebx), %eax".
26082
26083 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26084
26085 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26086 allow undefined _DYNAMIC in PIE libc.a.
26087 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26088 Likewse.
26089
26090 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26093 check _DYNAMIC.
26094
26095 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26096
26097 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26098 check _DYNAMIC.
26099
26100 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 * math/test-math-iscanonical.cc (error): Replace bool with int.
26103
26104 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26105
26106 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26107 (modf): Define using libm_alias_double, only if [!__modf].
26108 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26109 <libm-alias-double.h>.
26110 (modf): Define using libm_alias_double, only if [!__modf].
26111 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26112 compat symbol here.
26113 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26114 (weak_alias): Do not undefine and redefine.
26115 (strong_alias): Likewise.
26116 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26117 (weak_alias): Likewise.
26118 (strong_alias): Likewise.
26119
26120 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26121 (logb): Define using libm_alias_double, only if [!__logb].
26122 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26123 <libm-alias-double.h>.
26124 (logb): Define using libm_alias_double, only if [!__logb].
26125 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26126 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26127 (weak_alias): Do not undefine and redefine.
26128 (strong_alias): Likewise.
26129 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26130 (weak_alias): Likewise.
26131 (strong_alias): Likewise.
26132
26133 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26134
26135 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26136 Check SHARED instead PIC.
26137
26138 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26139
26140 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26141 [!__fmaf] (fmaf): Define using libm_alias_float.
26142
26143 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26144 (frexp): Define using libm_alias_double.
26145 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26146 <libm-alias-double.h>.
26147 (frexp): Define using libm_alias_double.
26148 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26149 compat symbol here.
26150
26151 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26152
26153 [BZ #22235]
26154 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26155 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26156 (CFLAGS-test-math-iscanonical.cc): New variable.
26157 * math/test-math-iscanonical.cc: New file.
26158 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26159 Provide a C++ implementation based on function overloading,
26160 rather than using __MATH_TG, which uses C-only builtins.
26161 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26162 Likewise.
26163 * sysdeps/powerpc/powerpc64le/Makefile
26164 (CFLAGS-test-math-iscanonical.cc): New variable.
26165
26166 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26167
26168 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26169 (ceil): Define using libm_alias_double.
26170 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26171 (floor): Define using libm_alias_double.
26172 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26173 <libm-alias-double.h>.
26174 (llround): Define using libm_alias_double.
26175 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26176 <libm-alias-double.h>.
26177 (lround): Define using libm_alias_double.
26178 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26179 <libm-alias-double.h>.
26180 (nearbyint): Define using libm_alias_double.
26181 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26182 <libm-alias-double.h>.
26183 (remquo): Define using libm_alias_double.
26184 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26185 (rint): Define using libm_alias_double.
26186 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26187 (round): Define using libm_alias_double.
26188 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26189 (trunc): Define using libm_alias_double.
26190 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26191 <libm-alias-double.h>.
26192 (ceil): Define using libm_alias_double.
26193 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26194 <libm-alias-double.h>.
26195 (floor): Define using libm_alias_double.
26196 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26197 <libm-alias-double.h>.
26198 (llround): Define using libm_alias_double.
26199 [_LP64] (lround): Likewise.
26200 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26201 <libm-alias-double.h>.
26202 [!_LP64] (lround): Define using libm_alias_double.
26203 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26204 <libm-alias-double.h>.
26205 (nearbyint): Define using libm_alias_double.
26206 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26207 <libm-alias-double.h>.
26208 (remquo): Define using libm_alias_double.
26209 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26210 <libm-alias-double.h>.
26211 (rint): Define using libm_alias_double.
26212 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26213 <libm-alias-double.h>.
26214 (round): Define using libm_alias_double.
26215 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26216 <libm-alias-double.h>.
26217 (trunc): Define using libm_alias_double.
26218 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26219 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26220 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26221 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26222 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26223 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26224 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26225 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26226 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26227
26228 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26229
26230 * math/w_remainder.c: New file.
26231 * math/w_remainderf.c: New file.
26232 * math/w_remainderl.c: New file.
26233
26234 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26235
26236 * elf/rtld.c (BOOTSTRAP_MAP): New.
26237 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26238 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26239 Likewise.
26240 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26241 Likewise.
26242 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26243 Likewise.
26244
26245 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26246
26247 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26248 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26249 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26250 rtld_hidden_data_ver): Define to empty.
26251 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26252 __assert_perror_fail): Likewise.
26253 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26254 (__rewinddir): Likewise.
26255 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26256 (__profile_frequency): Likewise.
26257 * include/setjmp.h (__sigsetjmp): Likewise.
26258 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26259 __libc_sigaction): Likewise.
26260 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26261 not set hidden attribute.
26262 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26263 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26264 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26265 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26266 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26267 __fxstatat64): Likewise.
26268 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26269 (__uname): Likewise.
26270 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26271 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26272 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26273 (NO_RTLD_HIDDEN): Set.
26274 * sysdeps/mach/hurd/configure: Refresh.
26275 * config.h.in: Refresh.
26276
26277 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26278
26279 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26280 (atan): Define using libm_alias_double.
26281 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26282 (tan): Define using libm_alias_double.
26283 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26284 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26285
26286 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26287 define as weak alias of __atan. Do not define any aliases if
26288 [__atan].
26289 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26290 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26291 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26292 as weak alias of __tan. Do not define any aliases if [__tan].
26293 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26294 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26295 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26296 __atan.
26297 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26298 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26299 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26300 and define as weak alias of __atan.
26301 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26302 __atan.
26303 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26304 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26305 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26306 define as weak alias of __tan.
26307
26308 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26309
26310 * math/w_lgamma.c: New file.
26311 * math/w_lgammaf.c: New file.
26312 * math/w_lgammal.c: New file.
26313
26314 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26315
26316 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26317 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26318 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26319 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26320 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26321 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26322 * sysdeps/i386/fpu/w_log2f.c: New file.
26323 * sysdeps/i386/fpu/w_logf.c: New file.
26324 * sysdeps/i386/fpu/w_powf.c: New file.
26325 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26326 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26327 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26328
26329 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26330 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26333 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26334 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26335 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26336 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26337 the new expf code.
26338 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26339 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26340 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26341 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26342 * sysdeps/i386/fpu/w_exp2f.c: New file.
26343 * sysdeps/i386/fpu/w_expf.c: New file.
26344 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26345 * sysdeps/x86_64/fpu/w_expf.c: New file.
26346
26347 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26348
26349 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26350 (log2f): Likewise.
26351 (powf): Likewise.
26352 * math/w_log2f.c: New file.
26353 * math/w_logf.c: New file.
26354 * math/w_powf.c: New file.
26355 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26356 * math/w_logf_compat.c (__logf_compat): Likewise.
26357 * math/w_powf_compat.c (__powf_compat): Likewise.
26358 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26359 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26360 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26361 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26362 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26363 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26364 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26365 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26366 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26367 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26368 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26369 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26370 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26371 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26372 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26374 Likewise.
26375 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26376 Likewise.
26377 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26378 Likewise.
26379 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26380 Likewise.
26381 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26382 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26383 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26384 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26385 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26386 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26387 Likewise.
26388 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26389 Likewise.
26390 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26391 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26392 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26393
26394 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26395
26396 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26397 (sysdep_routines): Add memrchr_power8.
26398 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26399 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26400 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26401 New file.
26402 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26403 (memrchr): Add __memrchr_power8 to ifunc list.
26404 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26405
26406 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26407
26408 [BZ #18822]
26409 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26410 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26411 libc_hidden_def.
26412 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26413 (__posix_fallocate64_l64): Likewise.
26414
26415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26416
26417 [BZ #18822]
26418 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26419 (__sched_setaffinity_new): Add libc_hidden_proto and
26420 libc_hidden_def.
26421
26422 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26423
26424 [BZ #18822]
26425 * include/glob.h (__glob64): Add libc_hidden_proto.
26426 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26427 libc_hidden_def.
26428
26429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26430
26431 [BZ #18822]
26432 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26433 attribute_hidden.
26434
26435 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26436
26437 [BZ #18822]
26438 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26439
26440 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26441
26442 [BZ #18822]
26443 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26444 libc_hidden_def.
26445
26446 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26447
26448 [BZ #18822]
26449 * csu/version.c (__libc_print_version): Add attribute_hidden.
26450
26451 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26452
26453 [BZ #18822]
26454 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26455
26456 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26457
26458 [BZ #18822]
26459 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26460
26461 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26462
26463 [BZ #18822]
26464 * nscd/nscd_helper.c (__nis_hash): New prototype.
26465
26466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 [BZ #18822]
26469 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26470 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26471 libc_hidden_def.
26472 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26473 * termios/tcgetattr.c (__tcgetattr): Likewise.
26474
26475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26476
26477 [BZ #18822]
26478 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26479 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26480 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26481 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26482 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26483
26484 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26485
26486 [BZ #18822]
26487 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26488
26489 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26490
26491 [BZ #18822]
26492 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26493 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26494
26495 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26496
26497 [BZ #18822]
26498 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26499
26500 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26501
26502 [BZ #18822]
26503 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26504 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26505
26506 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26507
26508 [BZ #18822]
26509 * include/ifreq.h: New file.
26510 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26511 (__ifreq): Likewise.
26512 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26513 (__ifreq): Likewise.
26514
26515 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26516
26517 [BZ #18822]
26518 * include/idna.h: New file.
26519 * inet/getnameinfo.c: Include <idna.h> instead of
26520 <libidn/idna.h>.
26521 (__idna_to_unicode_lzlz): Removed.
26522 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26523 <libidn/idna.h>.
26524 (__idna_to_ascii_lz): Removed.
26525 (__idna_to_unicode_lzlz): Likewise.
26526
26527 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26528
26529 [BZ #18822]
26530 * include/plural-exp.h: New file.
26531 * intl/plural-exp.c: Include <plural-exp.h> instead of
26532 "plural-exp.h".
26533
26534 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26535
26536 [BZ #18822]
26537 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26538 "getsourcefilter.h".
26539 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26540 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26541 "getsourcefilter.h".
26542 (__get_sol): Removed.
26543
26544 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26545
26546 [BZ #18822]
26547 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26548 to ...
26549 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26550
26551 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26552
26553 [BZ #18822]
26554 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26555 attribute_hidden.
26556
26557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26558
26559 [BZ #18822]
26560 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26561
26562 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26563
26564 [BZ #18822]
26565 * include/search.h (__tdestroy): Add libc_hidden_proto.
26566 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26567
26568 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26569
26570 [BZ #18822]
26571 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26572
26573 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26574
26575 [BZ #18822]
26576 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26577 attribute_hidden.
26578
26579 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26580
26581 [BZ #18822]
26582 * include/signal.h (__kill): Add libc_hidden_proto.
26583 (__sigblock): Likewise.
26584 (__sigprocmask): Likewise.
26585 (__sigaltstack): Likewise.
26586 * signal/kill.c (__kill): Add libc_hidden_def.
26587 * signal/sigblock.c (__sigblock): Likewise.
26588 * signal/sigprocmask.c (__sigprocmask): Likewise.
26589 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26590 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26591 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26592 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26593 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26594 Likewise.
26595 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26596 Likewise.
26597 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26598 (__sigprocmask): Likewise.
26599 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26600 Likewise.
26601 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26602 (__sigprocmask): Likewise.
26603 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26604 Likewise.
26605
26606 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26607
26608 [BZ #18822]
26609 * include/string.h (__strsep): Add libc_hidden_proto.
26610 * string/strsep.c (__strsep): Add libc_hidden_def.
26611
26612 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26613
26614 [BZ #18822]
26615 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26616 attribute_hidden.
26617 (__spawni): Likewise.
26618
26619 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26620
26621 [BZ #18822]
26622 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26623 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26624 libc_hidden_def.
26625
26626 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26627
26628 [BZ #18822]
26629 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26630
26631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26632
26633 [BZ #18822]
26634 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26635 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26636 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26637 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26638 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26639 Likewise.
26640 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26641 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26642
26643 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26644
26645 [BZ #18822]
26646 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26647 (__dcigettext): Likewise.
26648
26649 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26650
26651 [BZ #18822]
26652 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26653 libc_hidden_proto.
26654 (__get_nprocs): Likewise.
26655 (__get_phys_pages): Likewise.
26656 (__get_avphys_pages): Likewise.
26657 (__get_child_max): Add attribute_hidden.
26658 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26659 (__get_nprocs): Likewise.
26660 (__get_phys_pages): Likewise.
26661 (__get_avphys_pages): Likewise.
26662 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26663 libc_hidden_def.
26664 (__get_nprocs): Likewise.
26665 (__get_phys_pages): Likewise.
26666 (__get_avphys_pages): Likewise.
26667 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26668 libc_hidden_def.
26669 (__get_nprocs_conf): Likewise.
26670 (__get_phys_pages): Likewise.
26671 (__get_avphys_pages): Likewise.
26672
26673 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26674
26675 [BZ #18822]
26676 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26677 attribute_hidden.
26678 (__netlink_close): Likewise.
26679 (__netlink_free_handle): Likewise.
26680 (__netlink_request): Likewise.
26681
26682 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26683
26684 [BZ #18822]
26685 * include/rpc/rpc.h (__rpc_thread_variables): Add
26686 attribute_hidden.
26687 (__rpc_thread_svc_cleanup): Likewise.
26688 (__rpc_thread_clnt_cleanup): Likewise.
26689 (__rpc_thread_key_cleanup): Likewise.
26690
26691 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26692
26693 [BZ #18822]
26694 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26695 (__writev): Likewise.
26696 * misc/readv.c (__readv): Add libc_hidden_def.
26697 * misc/writev.c (__writev): Likewise.
26698 * sysdeps/posix/readv.c (__readv): Likewise.
26699 * sysdeps/posix/writev.c (__writev): Likewise.
26700 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26701 (__readv): Likewise.
26702 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26703 (__writev): Likewise.
26704
26705 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26706
26707 [BZ #18822]
26708 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26709 (__regcomp): Add libc_hidden_proto.
26710 (__regexec): Likewise.
26711 (__regfree): Likewise.
26712 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26713 (__regfree): Likewise.
26714 * posix/regexec.c (__regexec): Likewise.
26715
26716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26717
26718 [BZ #18822]
26719 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26720 (__getutent): Likewise.
26721 (__getutid): Likewise.
26722 (__getutline): Likewise.
26723 (__pututline): Likewise.
26724 (__getutent_r): Likewise.
26725 (__getutid_r): Likewise.
26726 (__getutline_r): Likewise.
26727 (__utmpname): Add attribute_hidden.
26728 (__setutent): Likewise.
26729 (__endutent): Likewise.
26730 * login/getutent.c (__getutent): Add libc_hidden_def.
26731 * login/getutent_r.c (__getutent_r): Likewise.
26732 (__pututline): Likewise.
26733 * login/getutid.c (__getutid): Likewise.
26734 * login/getutid_r.c (__getutid_r): Likewise.
26735 * login/getutline.c (__getutline): Likewise.
26736 * login/getutline_r.c (__getutline_r): Likewise.
26737 * login/updwtmp.c (__updwtmp): Likewise.
26738
26739 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26740
26741 [BZ #18822]
26742 * include/dirent.h (__opendir): Always add attribute_hidden.
26743 (__fdopendir): Likewise.
26744 (__closedir): Likewise.
26745 (__readdir): Likewise.
26746 (__readdir64): Add libc_hidden_proto.
26747 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26748 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26749 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26750 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26751 New alias.
26752
26753 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26754
26755 [BZ #18822]
26756 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26757 * include/netdb.h (__gethostbyaddr_r): Likewise.
26758 (__gethostbyname_r): Likewise.
26759 (__gethostbyname2_r): Likewise.
26760 (__getnetbyaddr_r): Likewise.
26761 (__getnetbyname_r): Likewise.
26762 (__getservbyname_r): Likewise.
26763 (__getservbyport_r): Likewise.
26764 (__getprotobyname_r): Likewise.
26765 (__getprotobynumber_r): Likewise.
26766 (__getnetgrent_r): Likewise.
26767 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26768 (__getrpcbynumber_r): Likewise.
26769 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26770
26771 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26772
26773 [BZ #18822]
26774 * include/stdio.h (__fcloseall): Add attribute_hidden.
26775 (__getline): Likewise.
26776 (__path_search): Likewise.
26777 (__gen_tempname): Likewise.
26778 (__libc_message): Likewise.
26779 (__flockfile): Likewise.
26780 (__funlockfile): Likewise.
26781 (__fxprintf): Likewise.
26782 (__fxprintf_nocancel): Likewise.
26783
26784 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26785
26786 [BZ #18822]
26787 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26788 (__sgetsgent_r): Likewise.
26789
26790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26791
26792 [BZ #18822]
26793 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26794 (__statfs64): Likewise.
26795 (__fstatfs64): Likewise.
26796 * include/sys/statvfs.h (__statvfs64): Likewise.
26797 (__fstatvfs64): Likewise.
26798 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26799 (__statfs_filesize_max): Likewise.
26800 (__statfs_symlinks): Likewise.
26801 (__statfs_chown_restricted): Likewise.
26802
26803 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26804
26805 [BZ #18822]
26806 * include/time.h (__tzstring): Add attribute_hidden.
26807 (__tzfile_read): Likewise.
26808 (__tzfile_compute): Likewise.
26809 (__tzfile_default): Likewise.
26810 (__tzset_parse_tz): Likewise.
26811 (__offtime): Likewise.
26812 (__asctime_r): Likewise.
26813 (__tzset): Likewise.
26814 (__tz_convert): Likewise.
26815 (__getdate_r): Likewise.
26816 (__getclktck): Likewise.
26817
26818 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26819
26820 [BZ #18822]
26821 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26822 (__nscd_unmap): Likewise.
26823 (__nscd_cache_search): Likewise.
26824 (__nscd_get_nl_timestamp): Likewise.
26825 (__nscd_getpwnam_r): Likewise.
26826 (__nscd_getpwuid_r): Likewise.
26827 (__nscd_getgrnam_r): Likewise.
26828 (__nscd_getgrgid_r): Likewise.
26829 (__nscd_gethostbyname_r): Likewise.
26830 (__nscd_gethostbyname2_r): Likewise.
26831 (__nscd_gethostbyaddr_r): Likewise.
26832 (__nscd_getai): Likewise.
26833 (__nscd_getgrouplist): Likewise.
26834 (__nscd_getservbyname_r): Likewise.
26835 (__nscd_getservbyport_r): Likewise.
26836 (__nscd_innetgr): Likewise.
26837 (__nscd_setnetgrent): Likewise.
26838
26839 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26840
26841 [BZ #18822]
26842 * include/gmp.h: Declare internal functions only if _ISOMAC is
26843 undefined.
26844 (__mpn_extract_double): Add attribute_hidden.
26845 (__mpn_extract_long_double): Likewise.
26846 (__mpn_extract_float128): Likewise.
26847 (__mpn_construct_float): Likewise.
26848 (__mpn_construct_double): Likewise.
26849 (__mpn_construct_long_double): Likewise.
26850 (__mpn_construct_float128): Likewise.
26851 (mpn_add_1): Likewise.
26852 (mpn_addmul_1): Likewise.
26853 (mpn_add_n): Likewise.
26854 (mpn_cmp): Likewise.
26855 (mpn_divrem): Likewise.
26856 (mpn_lshift): Likewise.
26857 (mpn_mul): Likewise.
26858 (mpn_mul_1): Likewise.
26859 (mpn_rshift): Likewise.
26860 (mpn_sub_1): Likewise.
26861 (mpn_submul_1): Likewise.
26862 (mpn_sub_n): Likewise.
26863
26864 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26865
26866 [BZ #18822]
26867 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26868 (__wcscat): Likewise.
26869 (__btowc): Likewise.
26870 (__wcrtomb): Likewise.
26871 (__mbsrtowcs): Likewise.
26872 (__wcsrtombs): Likewise.
26873 (__mbsnrtowcs): Likewise.
26874 (__wcsnrtombs): Likewise.
26875 (__wcsncpy): Likewise.
26876 (__wcpncpy): Likewise.
26877 (__wmemcpy): Likewise.
26878 (__wmempcpy): Likewise.
26879 (__wmemmove): Likewise.
26880 (__wcschrnul): Likewise.
26881 (__vfwscanf): Likewise.
26882 (__vswprintf): Likewise.
26883 (__fwprintf): Likewise.
26884 (__vfwprintf): Likewise.
26885
26886 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26887
26888 [BZ #18822]
26889 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26890 (__getgrgid_r): Likewise.
26891 (__getgrnam_r): Likewise.
26892 * include/pwd.h (__getpwuid_r): Likewise.
26893 (__getpwnam_r): Likewise.
26894 (__fgetpwent_r): Likewise.
26895 * include/shadow.h (__getspnam_r): Likewise.
26896 (__sgetspent_r): Likewise.
26897 (__fgetspent_r): Likewise.
26898
26899 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 [BZ #18822]
26902 * include/unistd.h (__access): Add attribute_hidden.
26903 (__lseek64): Likewise.
26904 (__libc_pread64): Likewise.
26905 (__pipe2): Likewise.
26906 (__sleep): Likewise.
26907 (__chdir): Likewise.
26908 (__fchdir): Likewise.
26909 (__getcwd): Likewise.
26910 (__rmdir): Likewise.
26911 (__execvpe): Likewise.
26912 (__execve): Likewise.
26913 (__setsid): Likewise.
26914 (__getuid): Likewise.
26915 (__geteuid): Likewise.
26916 (__getgid): Likewise.
26917 (__getegid): Likewise.
26918 (__getgroups): Likewise.
26919 (__group_member): Likewise.
26920 (__ttyname_r): Likewise.
26921 (__isatty): Likewise.
26922 (__readlink): Likewise.
26923 (__unlink): Likewise.
26924 (__gethostname): Likewise.
26925 (__profil): Likewise.
26926 (__getdtablesize): Likewise.
26927 (__brk): Likewise.
26928 (__ftruncate): Likewise.
26929 (__ftruncate64): Likewise.
26930
26931 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26932
26933 [BZ #18822]
26934 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26935 * argp/argp-fs-xinl.c: Likewise.
26936 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26937 * argp/argp-parse.c: Include <argp.h>.
26938 * argp/argp-xinl.c: Likewise.
26939 * include/argp-fmtstream.h: New file.
26940 * include/argp.h (__argp_error): Add attribute_hidden.
26941 (__argp_failure): Likewise.
26942 (__argp_input): Likewise.
26943 (__argp_state_help): Likewise.
26944
26945 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26946
26947 [BZ #18822]
26948 * include/wchar.h (____wcstof_l_internal): New prototype.
26949 (____wcstod_l_internal): Likewise.
26950 (____wcstold_l_internal): Likewise.
26951 (____wcstol_l_internal): Likewise.
26952 (____wcstoul_l_internal): Likewise.
26953 (____wcstoll_l_internal): Likewise.
26954 (____wcstoull_l_internal): Likewise.
26955 (____wcstof128_l_internal): Likewise.
26956 * sysdeps/ieee754/float128/wcstof128.c
26957 (____wcstof128_l_internal): Removed.
26958 * sysdeps/ieee754/float128/wcstof128_l.c
26959 (____wcstof128_l_internal): Likewise.
26960 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26961 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26962 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26963 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26964 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26965 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26966 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26967 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26968 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26969 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26970
26971 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26972
26973 [BZ #18822]
26974 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26975 instead of <sys/statvfs.h>.
26976 (__internal_statvfs): Removed.
26977 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26978 instead of <sys/statvfs.h>.
26979 (__internal_statvfs64): Removed.
26980 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26981 "internal_statvfs.h" instead of <sys/statvfs.h>.
26982 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26983 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26984 instead of <sys/statvfs.h>.
26985 (__internal_statvfs): Removed.
26986 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26987 instead of <sys/statvfs.h>.
26988 (__internal_statvfs64): Removed.
26989
26990 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26991
26992 [BZ #18822]
26993 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26994 (__gconv_close): Likewise.
26995 (__gconv): Likewise.
26996 (__gconv_find_transform): Likewise.
26997 (__gconv_lookup_cache): Likewise.
26998 (__gconv_compare_alias_cache): Likewise.
26999 (__gconv_load_cache): Likewise.
27000 (__gconv_get_path): Likewise.
27001 (__gconv_close_transform): Likewise.
27002 (__gconv_release_cache): Likewise.
27003 (__gconv_find_shlib): Likewise.
27004 (__gconv_release_shlib): Likewise.
27005 (__gconv_get_builtin_trans): Likewise.
27006 (__gconv_compare_alias): Likewise.
27007 * include/dlfcn.h (_dlerror_run): Likewise.
27008 * include/stdio.h (__fortify_fail_abort): Likewise.
27009 * include/time.h (__tz_compute): Likewise.
27010 (__strptime_internal): Likewise.
27011 * intl/gettextP.h (_nl_find_domain): Likewise.
27012 (_nl_load_domain): Likewise.
27013 (_nl_find_msg): Likewise.
27014 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
27015 (EXTRACT_PLURAL_EXPRESSION): Likewise.
27016 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
27017 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
27018 (__gai_find_request): Likewise.
27019 (__gai_remove_request): Likewise.
27020 (__gai_notify): Likewise.
27021 (__gai_notify_only): Likewise.
27022 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
27023 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
27024 (_dl_non_dynamic_init): Likewise.
27025 (_dl_aux_init): Likewise.
27026 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
27027 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
27028 Likewise.
27029 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
27030 (__wcsmbs_clone_conv): Likewise.
27031 (__wcsmbs_named_conv): Likewise.
27032
27033 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27034
27035 [BZ #18822]
27036 * include/stdlib.h (__random): Add attribute_hidden.
27037 (__random_r): Likewise.
27038 (__srandom_r): Likewise.
27039 (__initstate_r): Likewise.
27040 (__setstate_r): Likewise.
27041 (__erand48_r): Likewise.
27042 (__nrand48_r): Likewise.
27043 (__jrand48_r): Likewise.
27044 (__srand48_r): Likewise.
27045 (__seed48_r): Likewise.
27046 (__lcong48_r): Likewise.
27047 (__drand48_iterate): Likewise.
27048 (__setenv): Likewise.
27049 (__unsetenv): Likewise.
27050 (__clearenv): Likewise.
27051 (__ptsname_r): Likewise.
27052 (__posix_openpt): Likewise.
27053 (__add_to_environ): Likewise.
27054 (__realpath): Add libc_hidden_proto.
27055 (__ecvt_r): Likewise.
27056 (__fcvt_r): Likewise.
27057 (__qecvt_r): Likewise.
27058 (__qfcvt_r): Likewise.
27059 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
27060 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
27061
27062 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
27063
27064 [BZ #18822]
27065 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
27066 * include/time.h (__mktime_internal): Likewise.
27067 * libio/iolibio.h (__fopen_internal): Likewise.
27068
27069 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
27070
27071 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
27072 pointer in frame.
27073 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27074 Correct offset used to restore PIC register.
27075
27076 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27077
27078 [BZ libc/22165]
27079 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27080 code to load address of __getcontext_ret when generating PIC code.
27081
27082 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27083
27084 * elf/Makefile (tests-static-internal): Add
27085 tst-tls1-static-non-pie.
27086 (LDFLAGS-tst-tls1-static-non-pie): New.
27087 * elf/tst-tls1-static-non-pie.c: New file.
27088
27089 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27090
27091 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27092 (asinh): Define using libm_alias_double.
27093 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27094 (cbrt): Define using libm_alias_double.
27095 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27096 <libm-alias-double.h>.
27097 (copysign): Define using libm_alias_double.
27098 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27099 (erf): Define using libm_alias_double.
27100 (erfc): Likewise.
27101 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27102 (expm1): Define using libm_alias_double.
27103 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27104 (fabs): Define using libm_alias_double.
27105 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27106 libm_alias_double.
27107 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27108 <libm-alias-double.h>.
27109 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27110 libm_alias_double.
27111 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27112 <libm-alias-double.h>.
27113 (getpayload): Define using libm_alias_double.
27114 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27115 <libm-alias-double.h>.
27116 (llrint): Define using libm_alias_double.
27117 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27118 (lrint): Define using libm_alias_double.
27119 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27120 <libm-alias-double.h>.
27121 (nextup): Define using libm_alias_double.
27122 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27123 <libm-alias-double.h>.
27124 (roundeven): Define using libm_alias_double.
27125 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27126 libm_alias_double.
27127 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27128 <libm-alias-double.h>.
27129 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27130 using libm_alias_double.
27131 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27132 (cos): Define using libm_alias_double.
27133 (sin): Likewise.
27134 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27135 <libm-alias-double.h>.
27136 (sincos): Define using libm_alias_double.
27137 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27138 (tanh): Define using libm_alias_double.
27139 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27140 <libm-alias-double.h>.
27141 (totalorder): Define using libm_alias_double.
27142 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27143 <libm-alias-double.h>.
27144 (totalordermag): Define using libm_alias_double.
27145 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27146 libm_alias_double.
27147 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27148 libm_alias_double.
27149 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27150 <libm-alias-double.h>.
27151 (getpayload): Define using libm_alias_double.
27152 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27153 <libm-alias-double.h>.
27154 (roundeven): Define using libm_alias_double.
27155 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27156 <libm-alias-double.h>.
27157 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27158 <libm-alias-double.h>.
27159 (totalorder): Define using libm_alias_double.
27160 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27161 <libm-alias-double.h>.
27162 (totalordermag): Define using libm_alias_double.
27163 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27164 libc compat symbol here.
27165 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27166 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27167 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27168 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27169 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27170 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27171 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27172 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27173 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27174 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27175
27176 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27177
27178 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27179 _dl_relocate_static_pie instead of _dl_start to compute load
27180 address in static PIE. Return 0 if _DYNAMIC is undefined for
27181 static executable.
27182
27183 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27184
27185 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27186 _DYNAMIC is undefined for static executable.
27187
27188 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27189
27190 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27191
27192 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27193
27194 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27195
27196 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27197
27198 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27199 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27200 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27201 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27202 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27203 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27204 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27205 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27206 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27207 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27208 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27209 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27210 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27211 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27212 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27213 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27214 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27215
27216 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27217
27218 * math/bits/cmathcalls.h (cimag): Remove inline.
27219 (creal): Remove inline.
27220 (conj): Remove inline.
27221
27222 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27223
27224 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27225 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27226 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27227 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27228 (issignalingf_inline): Likewise.
27229 (POWF_LOG2_TABLE_BITS): Likewise.
27230 (POWF_LOG2_POLY_ORDER): Likewise.
27231 (POWF_SCALE_BITS): Likewise.
27232 (POWF_SCALE): Likewise.
27233 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27234 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27235 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27236
27237 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27238
27239 * math/Makefile (type-float-routines): Add e_log2f_data.
27240 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27241 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27242 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27243 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27244 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27245 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27246 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27247
27248 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27249
27250 * math/Makefile (type-float-routines): Add e_logf_data.
27251 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27252 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27253 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27254 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27255 * sysdeps/i386/fpu/e_logf_data.c: New file.
27256 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27257 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27258
27259 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27260
27261 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27262 undefined _DYNAMIC in PIE libc.a.
27263 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27264 Likewse.
27265
27266 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27267
27268 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27269 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27270 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27271 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27272 (__signbit): Remove.
27273 (__signbitl): Remove.
27274 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27275 (__signbit): Remove.
27276 (__signbitl): Remove.
27277 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27278 (__signbit): Remove.
27279 (__signbitl): Remove.
27280 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27281 (__signbit): Remove.
27282 (__signbitl): Remove.
27283 * sysdeps/tile/bits/mathinline.h: Delete file.
27284 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27285 (__signbit): Remove.
27286 (__signbitl): Remove.
27287
27288 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27289
27290 * math/math.h: Improve handling of C99 isgreater macros.
27291 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27292 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27293 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27294 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27295 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27296
27297 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27298
27299 * sysdeps/aarch64/libm-test-ulps: Update.
27300
27301 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27302
27303 [BZ #22225]
27304 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27305 math_opt_barrier on argument when doing arithmetic on it.
27306 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27307 Likewise. Use math_force_eval not math_opt_barrier after
27308 arithmetic.
27309 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27310 math_opt_barrier on argument when doing arithmetic on it.
27311 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27312 Likewise.
27313
27314 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27315
27316 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27317 libc_hidden_def.
27318 (__freeifaddrs): Likewise.
27319
27320 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27321
27322 * include/dirent.h (__dirfd): New declaration.
27323 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27324 alias.
27325 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27326 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27327 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27328 * include/unistd.h (__revoke): New declaration.
27329 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27330 alias.
27331 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27332 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27333 revoke.
27334 * include/dirent.h (__seekdir): New declaration.
27335 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27336 redefine as weak alias.
27337 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27338 of seekdir.
27339 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27340 and use libc_hidden_def on them.
27341 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27342 them.
27343 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27344 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27345 instead of getifaddrs and freeifaddrs.
27346
27347 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27348
27349 [BZ #18822]
27350 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27351 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27352 (__dso_handle): Remove declaration.
27353 * dlfcn/tstatexit.c (__dso_handle): Removed.
27354 (main): Don't check __dso_handle.
27355 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27356 (main): Don't check __dso_handle.
27357 * include/dso_handle.h: New file.
27358 * malloc/mtrace.c: Include <dso_handle.h>.
27359 (mtrace): Pass __dso_handle directly.
27360 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27361 (__dso_handle): Remove declaration.
27362 (__pthread_atfork): Pass __dso_handle directly.
27363 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27364 (__dso_handle): Removed.
27365 * posix/wordexp-test.c: Include <dso_handle.h>.
27366 (__dso_handle): Remove declaration.
27367 (__app_register_atfork): Pass __dso_handle directly.
27368 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27369 (__dso_handle): Remove declaration.
27370 (at_quick_exit): Pass __dso_handle directly.
27371 * stdlib/atexit.c: Include <dso_handle.h>.
27372 (__dso_handle): Remove declaration.
27373 (atexit): Pass __dso_handle directly.
27374 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27375 (__dso_handle): Removed.
27376
27377 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27378
27379 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27380 using VDSO.
27381
27382 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27383
27384 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27385 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27386 values to correct default value for given type.
27387
27388 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27389
27390 [BZ #22101]
27391 * elf/Makefile (tests): Add tst-debug1.
27392 ($(objpfx)tst-debug1): New.
27393 ($(objpfx)tst-debug1.out): Likewise.
27394 ($(objpfx)tst-debug1mod1.so): Likewise.
27395 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27396 with p_filesz == 0.
27397 * elf/tst-debug1.c: New file.
27398
27399 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27400
27401 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27402 Define using __ifunc.
27403
27404 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27405
27406 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27407 exp2f() values.
27408
27409 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27410
27411 [BZ #22156]
27412 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27413
27414 2017-09-26 Florian Weimer <fweimer@redhat.com>
27415
27416 * resolv/Makefile (tests-internal): Fix typo in comment.
27417
27418 2017-09-26 Florian Weimer <fweimer@redhat.com>
27419
27420 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27421
27422 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27423
27424 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27425 Use an union instead of a max_align_t array for __space,
27426 so that __space is the same size on all platforms.
27427 * malloc/scratch_buffer_grow_preserve.c
27428 (__libc_scratch_buffer_grow_preserve): Likewise.
27429
27430 [BZ #22183]
27431 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27432 version to 2.
27433 * posix/Makefile (routines): Add glob-lstat-compat and
27434 glob64-lstat-compat.
27435 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27436 * posix/glob-lstat-compat.c: New file.
27437 * posix/glob64-lstat-compat.c: Likewise.
27438 * posix/tst-glob_lstat_compat.c: Likewise.
27439 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27440 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27441 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27442 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27443 Likewise.
27444 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27445 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27446 * posix/glob.c (glob_lstat): New function.
27447 (glob): Rename to __glob and add versioned symbol to 2.27.
27448 (glob_in_dir): Use glob_lstat.
27449 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27450 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27451 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27452 2.27.
27453 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27454 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27455 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27456 gl_lstat on glob call.
27457 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27458 and glob64 symbols.
27459 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27460 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27461 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27462 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27463 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27464 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27465 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27466 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27467 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27468 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27469 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27470 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27471 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27472 Likewise.
27473 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27474 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27475 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27476 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27477 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27478 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27479 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27480 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27481 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27482 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27483 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27484 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27485
27486 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27487
27488 * configure.ac (AS): Require binutils 2.25 or later.
27489 * configure: Regenerated.
27490
27491 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27492
27493 [BZ #22207]
27494 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27495 VM size.
27496
27497 2017-09-25 DJ Delorie <dj@redhat.com>
27498
27499 [BZ #22161]
27500 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27501 resetting timeout.
27502
27503 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27504
27505 * sysdeps/ieee754/dbl-64/sincos32.h
27506 [SINCCOS32_H]: Remove define.
27507 [SINCOS32_H]: Define.
27508
27509 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27510
27511 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27512 (exp2f): Likewise.
27513 * math/w_exp2f.c: New file.
27514 * math/w_expf.c: New file.
27515 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27516 * math/w_expf_compat.c (__expf_compat): Likewise.
27517 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27518 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27519 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27520 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27521 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27522 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27523 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27524 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27525 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27526 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27527 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27528 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27529 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27530 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27531 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27532 Likewise.
27533 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27534 Likewise.
27535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27536 Likewise.
27537 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27538 Likewise.
27539 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27540 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27541 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27542 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27543 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27544 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27545 Likewise.
27546 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27547 Likewise.
27548 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27549 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27550 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27551
27552 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27553
27554 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27555 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27556 (roundtoint, converttoint): Likewise.
27557 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27558 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27559 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27560 * sysdeps/ieee754/flt-32/math_config.h: New file.
27561 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27562 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27563 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27564 * sysdeps/i386/fpu/math_errf.c: New file.
27565 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27566 * sysdeps/ia64/fpu/math_errf.c: New file.
27567 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27568 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27569
27570 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27571
27572 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27573 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27574 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27575 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27576 to make sure that these symbols are defined.
27577 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27578 of <limits.h>
27579 (__need_NULL): Do not define.
27580 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27581 alignment.
27582 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27583 CMGROUP_MAX, cmsgcred): Do not define.
27584 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27585 NULL.
27586 * bits/socket.h: Likewise.
27587 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27588 __gettimeofday instead of gettimeofday.
27589 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27590 instead of settimeofday.
27591
27592 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27593
27594 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27595 (asinhf): Define using libm_alias_float.
27596 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27597 (atanf): Define using libm_alias_float.
27598 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27599 (cbrtf): Define using libm_alias_float.
27600 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27601 (ceilf): Define using libm_alias_float.
27602 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27603 <libm-alias-float.h>.
27604 (copysignf): Define using libm_alias_float.
27605 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27606 (cosf): Define using libm_alias_float.
27607 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27608 (erff): Define using libm_alias_float.
27609 (erfcf): Likewise.
27610 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27611 (expm1f): Define using libm_alias_float.
27612 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27613 (fabsf): Define using libm_alias_float.
27614 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27615 (floorf): Define using libm_alias_float.
27616 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27617 (frexpf): Define using libm_alias_float.
27618 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27619 libm_alias_float.
27620 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27621 <libm-alias-float.h>.
27622 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27623 libm_alias_float.
27624 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27625 <libm-alias-float.h>.
27626 (getpayloadf): Define using libm_alias_float.
27627 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27628 <libm-alias-float.h>.
27629 (llrintf): Define using libm_alias_float.
27630 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27631 <libm-alias-float.h>.
27632 (llroundf): Define using libm_alias_float.
27633 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27634 (logbf): Define using libm_alias_float.
27635 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27636 (lrintf): Define using libm_alias_float.
27637 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27638 (lroundf): Define using libm_alias_float.
27639 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27640 (modff): Define using libm_alias_float.
27641 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27642 <libm-alias-float.h>.
27643 (nearbyintf): Define using libm_alias_float.
27644 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27645 <libm-alias-float.h>.
27646 (nextafterf): Define using libm_alias_float.
27647 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27648 <libm-alias-float.h>.
27649 (nextupf): Define using libm_alias_float.
27650 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27651 <libm-alias-float.h>.
27652 (remquof): Define using libm_alias_float.
27653 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27654 (rintf): Define using libm_alias_float.
27655 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27656 <libm-alias-float.h>.
27657 (roundevenf): Define using libm_alias_float.
27658 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27659 (roundf): Define using libm_alias_float.
27660 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27661 using libm_alias_float.
27662 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27663 <libm-alias-float.h>.
27664 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27665 Define using libm_alias_float.
27666 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27667 <libm-alias-float.h>.
27668 (sincosf): Define using libm_alias_float.
27669 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27670 (sinf): Define using libm_alias_float.
27671 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27672 (tanf): Define using libm_alias_float.
27673 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27674 (tanhf): Define using libm_alias_float.
27675 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27676 <libm-alias-float.h>.
27677 (totalorderf): Define using libm_alias_float.
27678 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27679 <libm-alias-float.h>.
27680 (totalordermagf): Define using libm_alias_float.
27681 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27682 (truncf): Define using libm_alias_float.
27683 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27684 libm_alias_float.
27685 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27686 libm_alias_float.
27687
27688 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27689
27690 [BZ #22146]
27691 math/math.h: Let fpclassify use the builtin in C++ mode, even
27692 when optimazing for size.
27693
27694 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27695
27696 * csu/Makefile (generated): Do not add version-info.h.
27697 (before-compile): Likewise.
27698 (all-Banner-files): Remove variable.
27699 ($(objpfx)version-info.h): Remove rule.
27700 * csu/version.c (banner): Do not include "version-info.h".
27701 * libidn/Banner: Remove.
27702 * manual/contrib.texi (Simon Josefsson): New entry.
27703
27704 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27705
27706 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27707 Remove conditionals on LDBL_MANT_DIG.
27708 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27709 (__ieee754_lgammal_r): Likewise.
27710
27711 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27712
27713 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27714 _Float128 and L().
27715 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27716 _Float128 and L(). Replace _Float128 with long double and L(x)
27717 with xL, throughout the file.
27718 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27719 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27720 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27721 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27722
27723 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27724
27725 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27726 sysdeps/ieee754/ldbl-128ibm.
27727 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27728 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27729 of including it. Keep _Float128 and L() intact. These will be
27730 reviewed by a separate patch.
27731 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27732 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27733 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27734 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27735
27736 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27737
27738 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27739 (__finitef128): Define to __redirect___finitef128.
27740 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27741 (__isinff128): Define to __redirect___isinff128.
27742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27743 (__isnanf128): Define to __redirect___isnanf128.
27744
27745 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27746
27747 * sysdeps/powerpc/powerpc64le/Makefile
27748 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27749 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27750
27751 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27752 Carlos O'Donell <carlos@redhat.com>
27753
27754 [BZ #22180]
27755 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27756 * stdlib/test-dlclose-exit-race.c: New file.
27757 * stdlib/test-dlclose-exit-race-helper.c: New file.
27758 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27759
27760 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27761
27762 * crypt/Banner: Remove file.
27763 * nptl/Banner: Likewise.
27764 * resolv/Banner: Likewise.
27765 * soft-fp/Banner: Likewise.
27766 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27767 ($(objpfx)version.d): Remove dependency on banner.h.
27768 ($(objpfx)version.os): Likewise.
27769 * nptl/version.c (banner): Do not include banner.h.
27770 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27771 Jelinek and BIND code.
27772
27773 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27774 Carlos O'Donell <carlos@redhat.com>
27775
27776 * support/xdlfcn.h: New file.
27777 * support/xdlfcn.c: New file.
27778 * support/Makefile (libsupport-routines): Add xdlfcn.
27779 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27780
27781 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27782
27783 [BZ #20142]
27784 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27785 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27786 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27787 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27788 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27789 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27790 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27791 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27792
27793 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27794 Ricky Zhou <rickyz@google.com>
27795 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27796
27797 [BZ #14333]
27798 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27799 Remove atomics.
27800 (__new_exitfn): Fail registration when we finished at_exit processing.
27801 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27802 * stdlib/on_exit.c (__on_exit): Likewise.
27803 * stdlib/exit.c (__exit_funcs_done): New variable.
27804 (__run_exit_handlers): Use __exit_funcs_lock.
27805 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27806 declarations.
27807 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27808 (test-cxa_atexit-race, test-on_exit-race): New tests.
27809 * stdlib/test-atexit-race-common.c: New file.
27810 * stdlib/test-atexit-race.c: New file.
27811 * stdlib/test-at_quick_exit-race.c: New file.
27812 * stdlib/test-cxa_atexit-race.c: New file.
27813 * stdlib/test-on_exit-race.c: New file.
27814
27815 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27816
27817 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27818 * benchtests/exp2f-inputs: Copy of expf-inputs.
27819 * benchtests/log2f-inputs: Copy of logf-inputs.
27820
27821 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27822
27823 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27824 Explicitly take address of first element of array arguments in
27825 call to INLINE_SYSCALL.
27826
27827 2017-09-19 Andreas Schwab <schwab@suse.de>
27828
27829 [BZ #22134]
27830 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27831 execveat first.
27832 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27833 unimplemented.
27834 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27835 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27836 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27837 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27838 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27839 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27840 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27841 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27842 * posix/Makefile (tests): Add tst-fexecve.
27843 * posix/tst-fexecve.c: New file.
27844
27845 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27846
27847 * benchtests/Makefile: Add logf benchmark.
27848 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27849
27850 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27851
27852 * benchtests/Makefile: Add expf benchmark.
27853 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27854
27855 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27856
27857 * csu/Makefile: Add -funwind-tables to libc-start.c.
27858 * debug/Makefile: Add -funwind-tables to backtrace.c.
27859 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27860 * sysdeps/arm/Makefile: Likewise.
27861 * sysdeps/i386/Makefile: Likewise.
27862 * sysdeps/m68k/Makefile: Likewise.
27863 * sysdeps/mips/Makefile: Likewise.
27864 * sysdeps/nios2/Makefile: Likewise.
27865 * sysdeps/sh/Makefile: Likewise.
27866 * sysdeps/sparc/Makefile: Likewise.
27867
27868 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27869
27870 * benchtests/Makefile (bench-math): Add trunc and truncf.
27871 (CFLAGS-bench-trunc.c): New variable.
27872 (CFLAGS-bench-truncf.c): Likewise.
27873 * benchtests/trunc-inputs: New file.
27874 * benchtests/truncf-inputs: Likewise.
27875
27876 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27877
27878 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27879
27880 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27881
27882 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27883 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27884 redefine.
27885 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27886 (exp10l): Define as weak alias.
27887 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27888 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27889 and redefine.
27890 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27891 (remainderl): Define as weak alias.
27892
27893 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27894 (fmal): Define using libm_alias_ldouble.
27895 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27896 (acoshl): Define using libm_alias_ldouble.
27897 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27898 (acosl): Define using libm_alias_ldouble.
27899 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27900 (asinl): Define using libm_alias_ldouble.
27901 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27902 (atan2l): Define using libm_alias_ldouble.
27903 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27904 (atanhl): Define using libm_alias_ldouble.
27905 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27906 (coshl): Define using libm_alias_ldouble.
27907 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27908 (exp10l): Define using libm_alias_ldouble.
27909 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27910 (exp2l): Define using libm_alias_ldouble.
27911 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27912 (expl): Define using libm_alias_ldouble.
27913 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27914 (fmodl): Define using libm_alias_ldouble.
27915 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27916 (hypotl): Define using libm_alias_ldouble.
27917 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27918 (j0l): Define using libm_alias_ldouble.
27919 (y0l): Likewise.
27920 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27921 (j1l): Define using libm_alias_ldouble.
27922 (y1l): Likewise.
27923 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27924 (jnl): Define using libm_alias_ldouble.
27925 (ynl): Likewise.
27926 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27927 (log10l): Define using libm_alias_ldouble.
27928 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27929 (log2l): Define using libm_alias_ldouble.
27930 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27931 (logl): Define using libm_alias_ldouble.
27932 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27933 (powl): Define using libm_alias_ldouble.
27934 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27935 (remainderl): Define using libm_alias_ldouble.
27936 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27937 (sinhl): Define using libm_alias_ldouble.
27938 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27939 (sqrtl): Define using libm_alias_ldouble.
27940 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27941 (tgammal): Define using libm_alias_ldouble.
27942 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27943 (exp10l): Do not use long_double_symbol here.
27944 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27945 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27946 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27947 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27948 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27949 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27950 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27951 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27952 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27953 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27954 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27955 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27956 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27957 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27958 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27959 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27960 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27961 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27962 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27963 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27964 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27965 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27966
27967 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27968
27969 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27970 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27971
27972 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27973
27974 * io/read.c (read): Add libc_hidden_weak.
27975 * sysdeps/mach/hurd/read.c (read): Likewise.
27976 * io/write.c (write): Likewise.
27977 * sysdeps/mach/hurd/write.c (write): Likewise.
27978 * io/pread64.c (__pread64): Likewise.
27979 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27980 * posix/pread64.c (__pread64): Add libc_hidden_def.
27981
27982 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27983
27984 * benchtests/scripts/compare_strings.py: New option -g.
27985 (draw_graph): Print a message that a graph is being generated.
27986 (process_results): Generate graph only if -g is passed.
27987 (main): Process option -g.
27988
27989 * benchtests/scripts/compare_strings.py (process_results):
27990 Better spacing for output.
27991
27992 * benchtests/scripts/compare_strings.py: Use argparse.
27993 * benchtests/README: Document existence of compare_strings.py.
27994
27995 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27996
27997 * math/s_fma.c: Include <libm-alias-double.h>.
27998 (fma): Define using libm_alias_double.
27999 * math/s_nextafter.c: Include <libm-alias-double.h>.
28000 (nextafter): Define using libm_alias_double.
28001 * math/w_acos_compat.c: Include <libm-alias-double.h>.
28002 (acos): Define using libm_alias_double.
28003 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
28004 (aocsh): Define using libm_alias_double.
28005 * math/w_asin_compat.c: Include <libm-alias-double.h>.
28006 (asin): Define using libm_alias_double.
28007 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
28008 (atan2): Define using libm_alias_double.
28009 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
28010 (atanh): Define using libm_alias_double.
28011 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
28012 (cosh): Define using libm_alias_double.
28013 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
28014 (exp10): Define using libm_alias_double.
28015 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
28016 (exp2): Define using libm_alias_double.
28017 * math/w_exp_compat.c: Include <libm-alias-double.h>.
28018 (exp): Define using libm_alias_double.
28019 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
28020 (fmod): Define using libm_alias_double.
28021 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
28022 (hypot): Define using libm_alias_double.
28023 * math/w_j0_compat.c: Include <libm-alias-double.h>.
28024 (j0): Define using libm_alias_double.
28025 (y0): Likewise.
28026 * math/w_j1_compat.c: Include <libm-alias-double.h>.
28027 (j1): Define using libm_alias_double.
28028 (y1): Likewise.
28029 * math/w_jn_compat.c: Include <libm-alias-double.h>.
28030 (jn): Define using libm_alias_double.
28031 (yn): Likewise.
28032 * math/w_log10_compat.c: Include <libm-alias-double.h>.
28033 (log10): Define using libm_alias_double.
28034 * math/w_log2_compat.c: Include <libm-alias-double.h>.
28035 (log2): Define using libm_alias_double.
28036 * math/w_log_compat.c: Include <libm-alias-double.h>.
28037 (log): Define using libm_alias_double.
28038 * math/w_pow_compat.c: Include <libm-alias-double.h>.
28039 (pow): Define using libm_alias_double.
28040 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
28041 (remainder): Define using libm_alias_double.
28042 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
28043 (sinh): Define using libm_alias_double.
28044 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
28045 (sqrt): Define using libm_alias_double.
28046 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
28047 (tgamma): Define using libm_alias_double.
28048 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
28049 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
28050 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
28051 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
28052 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
28053 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
28054 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
28055 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
28056 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
28057 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
28058 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
28059 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
28060 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
28061 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
28062 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
28063 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
28064 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
28065 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
28066 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
28067 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
28068 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
28069 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
28070 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
28071 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
28072 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
28073
28074 * math/e_acoshl.c: Remove.
28075 * math/e_acosl.c: Likewise.
28076 * math/e_asinl.c: Likewise.
28077 * math/e_atan2l.c: Likewise.
28078 * math/e_atanhl.c: Likewise.
28079 * math/e_coshl.c: Likewise.
28080 * math/e_expl.c: Likewise.
28081 * math/e_fmodl.c: Likewise.
28082 * math/e_gammal_r.c: Likewise.
28083 * math/e_hypotl.c: Likewise.
28084 * math/e_j0l.c: Likewise.
28085 * math/e_j1l.c: Likewise.
28086 * math/e_jnl.c: Likewise.
28087 * math/e_lgammal_r.c: Likewise.
28088 * math/e_log10l.c: Likewise.
28089 * math/e_log2l.c: Likewise.
28090 * math/e_logl.c: Likewise.
28091 * math/e_powl.c: Likewise.
28092 * math/e_rem_pio2l.c: Likewise.
28093 * math/e_sinhl.c: Likewise.
28094 * math/e_sqrtf128.c: Likewise.
28095 * math/e_sqrtl.c: Likewise.
28096 * math/k_cosl.c: Likewise.
28097 * math/k_sinl.c: Likewise.
28098 * math/k_tanl.c: Likewise.
28099 * math/s_asinhl.c: Likewise.
28100 * math/s_atanl.c: Likewise.
28101 * math/s_cbrtl.c: Likewise.
28102 * math/s_erfl.c: Likewise.
28103 * math/s_expm1l.c: Likewise.
28104 * math/s_log1pl.c: Likewise.
28105 * math/s_tanhl.c: Likewise.
28106
28107 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28108
28109 [BZ #21745]
28110 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28111 [$(subdir) = math] (sysdep_calls): New variable. Has the
28112 previous contents of sysdep_routines, but re-sorted..
28113 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28114 sysdep_calls.
28115 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28116 defined in sysdep_calls and replace by the respective m_* names.
28117 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28118 (compat_symbol): Undefine to avoid duplicated compat symbols in
28119 libc.
28120
28121 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28122
28123 * math/s_fmaf.c: Include <libm-alias-float.h>.
28124 (fmaf): Define using libm_alias_float.
28125 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28126 (acosf): Define using libm_alias_float.
28127 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28128 (acoshf): Define using libm_alias_float.
28129 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28130 (asinf): Define using libm_alias_float.
28131 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28132 (atan2f): Define using libm_alias_float.
28133 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28134 (atanhf): Define using libm_alias_float.
28135 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28136 (coshf): Define using libm_alias_float.
28137 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28138 (exp10f): Define using libm_alias_float.
28139 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28140 (fmodf): Define using libm_alias_float.
28141 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28142 (hypotf): Define using libm_alias_float.
28143 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28144 (j0f): Define using libm_alias_float.
28145 (y0f): Likewise.
28146 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28147 (j1f): Define using libm_alias_float.
28148 (y1f): Likewise.
28149 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28150 (jnf): Define using libm_alias_float.
28151 (ynf): Likewise.
28152 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28153 (log10f): Define using libm_alias_float.
28154 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28155 (log2f): Define using libm_alias_float.
28156 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28157 (logf): Define using libm_alias_float.
28158 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28159 (powf): Define using libm_alias_float.
28160 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28161 (remainderf): Define using libm_alias_float.
28162 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28163 (sinhf): Define using libm_alias_float.
28164 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28165 (sqrtf): Define using libm_alias_float.
28166 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28167 (tgammaf): Define using libm_alias_float.
28168
28169 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28170
28171 * include/math.h (roundeven): Change hidden_proto call to
28172 __roundeven.
28173 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28174 alias.
28175 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28176 (y0): Rename to __y0 and define as weak alias.
28177 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28178 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28179 alias.
28180 (y0f): Rename to __y0f and define as weak alias.
28181 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28182 alias.
28183 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28184 (y1): Rename to __y1 and define as weak alias.
28185 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28186 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28187 alias.
28188 (y1f): Rename to __y1f and define as weak alias.
28189 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28190 alias.
28191 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28192 (yn): Rename to __yn and define as weak alias.
28193 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28194 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28195 alias.
28196 (ynf): Rename to __ynf and define as weak alias.
28197 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28198 (fromfp): Define as weak alias.
28199 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28200 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28201 (fromfpx): Define as weak alias.
28202 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28203 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28204 __getpayload and define as weak alias.
28205 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28206 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28207 __roundeven and define as weak alias.
28208 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28209 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28210 __setpayload.
28211 (setpayload): Define as weak alias.
28212 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28213 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28214 __setpayloadsig.
28215 (setpayloadsig): Define as weak alias.
28216 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28217 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28218 __totalorder and define as weak alias.
28219 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28220 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28221 to __totalordermag and define as weak alias.
28222 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28223 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28224 (ufromfp): Define as weak alias.
28225 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28226 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28227 __ufromfpx.
28228 (ufromfpx): Define as weak alias.
28229 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28230 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28231 Rename to __getpayload and define as weak alias.
28232 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28233 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28234 Rename to __roundeven and define as weak alias.
28235 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28236 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28237 Rename to __totalorder and define as weak alias.
28238 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28239 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28240 (totalordermag): Rename to __totalordermag and define as weak
28241 alias.
28242 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28243 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28244 macro.
28245 (__roundevenl): Likewise.
28246 (__totalorderl): Likewise.
28247 (__totalordermagl): Likewise
28248 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28249 __fromfpf128.
28250 (fromfpf128): Define as weak alias.
28251 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28252 __fromfpxf128.
28253 (fromfpxf128): Define as weak alias.
28254 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28255 __setpayloadf128.
28256 (setpayloadf128): Define as weak alias.
28257 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28258 __setpayloadsigf128.
28259 (setpayloadsigf128): Define as weak alias.
28260 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28261 __ufromfpf128.
28262 (ufromfpf128): Define as weak alias.
28263 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28264 __ufromfpxf128.
28265 (ufromfpxf128): Define as weak alias.
28266 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28267 (fromfpf): Define as weak alias.
28268 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28269 __fromfpxf.
28270 (fromfpxf): Define as weak alias.
28271 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28272 __getpayloadf and define as weak alias.
28273 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28274 __roundevenf and define as weak alias.
28275 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28276 __setpayloadf.
28277 (setpayloadf): Define as weak alias.
28278 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28279 __setpayloadsigf.
28280 (setpayloadsigf): Define as weak alias.
28281 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28282 __totalorderf and define as weak alias.
28283 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28284 Rename to __totalordermagf and define as weak alias.
28285 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28286 __ufromfpf.
28287 (ufromfpf): Define as weak alias.
28288 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28289 __ufromfpxf.
28290 (ufromfpxf): Define as weak alias.
28291 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28292 __fromfpl.
28293 (fromfpl): Define as weak alias.
28294 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28295 __fromfpxl.
28296 (fromfpxl): Define as weak alias.
28297 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28298 to __getpayloadl and define as weak alias.
28299 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28300 __roundevenl and define as weak alias.
28301 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28302 __setpayloadl.
28303 (setpayloadl): Define as weak alias.
28304 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28305 __setpayloadsigl.
28306 (setpayloadsigl): Define as weak alias.
28307 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28308 to __totalorderl and define as weak alias.
28309 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28310 Rename to __totalordermagl and define as weak alias.
28311 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28312 __ufromfpl.
28313 (ufromfpl): Define as weak alias.
28314 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28315 __ufromfpxl.
28316 (ufromfpxl): Define as weak alias.
28317 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28318 __fromfpl.
28319 (fromfpl): Define as weak alias.
28320 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28321 __fromfpxl.
28322 (fromfpxl): Define as weak alias.
28323 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28324 Rename to __getpayloadl and define as weak alias.
28325 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28326 to __roundevenl and define as weak alias. Call __roundeven
28327 instead of roundeven.
28328 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28329 __setpayloadl.
28330 (setpayloadl): Define as weak alias.
28331 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28332 __setpayloadsigl.
28333 (setpayloadsigl): Define as weak alias.
28334 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28335 Rename to __totalorderl and define as weak alias.
28336 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28337 Rename to __totalordermagl and define as weak alias.
28338 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28339 __ufromfpl.
28340 (ufromfpl): Define as weak alias.
28341 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28342 __ufromfpxl.
28343 (ufromfpxl): Define as weak alias.
28344 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28345 __fromfpl.
28346 (fromfpl): Define as weak alias.
28347 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28348 __fromfpxl.
28349 (fromfpxl): Define as weak alias.
28350 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28351 __getpayloadl and define as weak alias.
28352 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28353 __roundevenl and define as weak alias.
28354 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28355 __setpayloadl.
28356 (setpayloadl): Define as weak alias.
28357 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28358 __setpayloadsigl.
28359 (setpayloadsigl): Define as weak alias.
28360 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28361 __totalorderl and define as weak alias.
28362 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28363 Rename to __totalordermagl and define as weak alias.
28364 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28365 __ufromfpl.
28366 (ufromfpl): Define as weak alias.
28367 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28368 __ufromfpxl.
28369 (ufromfpxl): Define as weak alias.
28370
28371 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28372
28373 * benchtests/bench-string.h (realloc_bufs): New function.
28374 (test_init): Call it.
28375 * benchtests/bench-memset-large.c (do_test): Likewise.
28376 * benchtests/bench-memset.c (do_test): Likewise.
28377
28378 * benchtests/bench-memset-large.c: Print output in JSON
28379 format.
28380 * benchtests/bench-memset.c: Likewise.
28381
28382 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28383
28384 [BZ #21084]
28385 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28386 * iconvdata/Makefile: Add IBM858.
28387 * iconvdata/gconv-modules: Likewise.
28388 * iconvdata/tst-tables.sh: Likewise.
28389 * iconvdata/ibm858.c: New file.
28390 * localedata/charmaps/IBM858: Likewise.
28391
28392 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28393
28394 [BZ #22023]
28395 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28396 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28397
28398 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28399
28400 [BZ #22112]
28401 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28402 and add tel_int_fmt.
28403
28404 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28405
28406 * sysdeps/generic/libm-alias-float128.h: New file.
28407 * sysdeps/generic/math-type-macros-float128.h: Include
28408 <libm-alias-float128.h>.
28409 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28410
28411 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28412
28413 * sysdeps/generic/libm-alias-ldouble.h: New file.
28414 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28415 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28416 * sysdeps/generic/math-type-macros-ldouble.h: Include
28417 <libm-alias-ldouble.h>.
28418 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28419 libm_alias_ldouble.
28420
28421 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28422
28423 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28424 * math/w_exp_compat.c: ... here.
28425 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28426 * math/w_expf_compat.c: ... here.
28427 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28428 * math/w_expl_compat.c: ... here.
28429 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28430 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28431 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28432 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28433
28434 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28435
28436 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28437 redefine.
28438 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28439 macro.
28440 (ldexpl): Only define as compat symbol for libc, not libm.
28441 (scalbnl): Define as compat symbol for libc here.
28442 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28443 define for [IS_IN (libc)].
28444 (__ldexpl_2): Remove alias.
28445 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28446 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28447 name in long_double_symbol call.
28448 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28449 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28450 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28451 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28452 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28453 Remove macro.
28454 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28455 Define as compat symbol.
28456
28457 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28458
28459 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28460 * sysdeps/unix/sysv/linux/alpha/Makefile
28461 [$(subdir) = csu] (sysdep_routines): Remove rule.
28462
28463 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28464
28465 * sysdeps/generic/libm-alias-double.h: New file.
28466 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28467 * sysdeps/generic/math-type-macros-double.h: Include
28468 <libm-alias-double.h>.
28469 [declare_mgen_alias] (declare_mgen_alias): Define to use
28470 libm_alias_double.
28471 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28472 (M_LIBM_NEED_COMPAT): Remove macro.
28473 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28474 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28475 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28476 code.
28477 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28478 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28479 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28480 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28481 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28482 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28483 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28484 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28485 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28486 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28487 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28488 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28489 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28490 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28491 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28492 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28493 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28494 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28495 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28496 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28497 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28498 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28499 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28500 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28501 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28502 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28503 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28504 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28505 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28506 macro.
28507 (declare_mgen_alias): New macro.
28508 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28509 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28510 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28511 (M_LIBM_NEED_COMPAT): Remove macro.
28512 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28513 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28514 <first-versions.h>.
28515 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28516 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28517
28518 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28519
28520 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28521 (declare_mgen_alias_2): Remove.
28522 * sysdeps/generic/math-type-macros-double.h
28523 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28524 Likewise.
28525 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28526 alias.
28527 (ldexp): Define with declare_mgen_alias.
28528 (scalbn): Likewise.
28529
28530 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28531
28532 * grp/initgroups.c: Include config.h.
28533 (DEFAULT_CONFIG): New macro.
28534 (internal_getgrouplist): Use DEFAULT_CONFIG.
28535 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28536 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28537 (DEFAULT_DEFCONFIG): New macro.
28538 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28539 * nss/grp-lookup.c: Include config.h
28540 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28541 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28542 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28543 * manual/nss.texi: Update default values section.
28544
28545 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28546
28547 [BZ #21967]
28548 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28549 New.
28550 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28551 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28552 Handle MathVec_Prefer_No_AVX512.
28553 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28554 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28555 is set.
28556
28557 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28558
28559 * posix/sched_primax.c (__sched_get_priority_max): Add
28560 libc_hidden_def.
28561 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28562 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28563 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28564 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28565 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28566 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28567 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28568 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28569 Add aliases.
28570
28571 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28572
28573 * sysdeps/generic/libm-alias-float.h: New file.
28574 * sysdeps/generic/math-type-macros-float.h: Include
28575 <libm-alias-float.h>.
28576 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28577
28578 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28579
28580 [BZ #22093]
28581 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28582 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28583 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28584 (HWCAP_IMPORTANT): Likewise.
28585 (HWCAP_X86_64): New enum.
28586 (HWCAP_X86_AVX512_1): Updated.
28587 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28588 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28589 (modules-names): Add x86_64/tst-x86_64mod-1.
28590 (LDFLAGS-tst-x86_64mod-1.so): New.
28591 ($(objpfx)tst-x86_64-1): Likewise.
28592 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28593 (tst-x86_64-1-clean): Likewise.
28594 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28595 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28596
28597 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28598
28599 * po/sv.po: Update translations.
28600 * po/fr.po: Likewise.
28601
28602 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28603
28604 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28605 seconds.
28606 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28607 seconds.
28608 * elf/rtld-Rules: Fix $(error) use.
28609
28610 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28611
28612 [BZ #14925]
28613 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28614 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28615 * localedata/locales/bn_BD: “Bengali” was still used in some
28616 comments. Change it to “Bangla”.
28617
28618 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28619
28620 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28621
28622 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28623
28624 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28625 thunderx2t99p1 to list of cpu names.
28626 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28627 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28628
28629 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28630
28631 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28632 Use strcmp instead of tunable_is_name.
28633
28634 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28635
28636 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28637 (F_GET_RW_HINT): New macro.
28638 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28639 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28640 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28641 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28642 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28643 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28644 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28645 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28646 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28647
28648 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28649 (F_ADD_SEALS): New macro.
28650 [__USE_GNU] (F_GET_SEALS): Likewise.
28651 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28652 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28653 [__USE_GNU] (F_SEAL_GROW): Likewise.
28654 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28655
28656 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28657
28658 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28659 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28660 * posix/glob_internal.h (__glob_pattern_type):
28661 * posix/glob.c (glob):
28662 * posix/glob_pattern_p.c (__glob_pattern_p):
28663 Use them.
28664
28665 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28666 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28667 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28668 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28669 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28670 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28671 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28672 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28673 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28674 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28675 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28676 * sysdeps/wordsize-64/glob.c: Likewise.
28677 * sysdeps/wordsize-64/glob64.c: Likewise.
28678 * sysdeps/wordsize-64/globfree.c: Likewise.
28679 * sysdeps/wordsize-64/globfree64.c: Likewise.
28680 * sysdeps/unix/sysv/linux/glob.c: New file.
28681 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28682 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28683 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28684 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28685 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28686 adds !GLOB_NO_OLD_VERSION as an extra condition.
28687 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28688 using relative path instead of absolute one.
28689 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28690 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28691 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28692 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28693 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28694 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28695
28696 [BZ #1062]
28697 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28698 (glob): Use the same scratch buffer for both getlogin_r and
28699 getpwnam_r. Don’t require preallocation of the login name. This
28700 simplifies storage allocation, and corrects the handling of
28701 long login names.
28702
28703 [BZ #1062]
28704 * posix/glob.c (glob): Port recent patches to platforms
28705 lacking getpwnam_r.
28706 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28707 returns an error number rather than setting errno.
28708
28709 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28710 instead of GCC extension.
28711 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28712 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28713 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28714
28715 [BZ #866]
28716 [BZ #1062]
28717 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28718 * posix/bug-glob1.c: Remove file.
28719 * posix/tst-glob_symlinks.c: New file.
28720 * posix/glob.c (__lstat64): New macro.
28721 (is_dir): New function.
28722 (glob, glob_in_dir): Match symlinks even if they are dangling.
28723 (link_stat, link_exists_p): Remove. All uses removed.
28724
28725 [BZ #1062]
28726 [BZ #19971]
28727 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28728 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28729 All uses removed.
28730
28731 [BZ #1062]
28732 CVE-2017-15671
28733 * posix/Makefile (routines): Add globfree, globfree64, and
28734 glob_pattern_p.
28735 * posix/flexmember.h: New file.
28736 * posix/glob_internal.h: Likewise.
28737 * posix/glob_pattern_p.c: Likewise.
28738 * posix/globfree.c: Likewise.
28739 * posix/globfree64.c: Likewise.
28740 * sysdeps/gnu/globfree64.c: Likewise.
28741 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28742 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28743 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28744 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28745 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28746 * sysdeps/wordsize-64/globfree.c: Likewise.
28747 * sysdeps/wordsize-64/globfree64.c: Likewise.
28748 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28749 [NDEBUG): Remove comments.
28750 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28751 (dirent_type): New type. Use uint_fast8_t not
28752 uint8_t, as C99 does not require uint8_t.
28753 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28754 (struct readdir_result): Use dirent_type. Do not define skip_entry
28755 unless it is needed; this saves a byte on platforms lacking d_ino.
28756 (readdir_result_type, readdir_result_skip_entry):
28757 New functions, replacing ...
28758 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28759 these functions, which were removed. This makes the callers
28760 easier to read. All callers changed.
28761 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28762 (size_add_wrapv, glob_use_alloca): New static functions.
28763 (glob, glob_in_dir): Check for size_t overflow in several places,
28764 and fix some size_t checks that were not quite right.
28765 Remove old code using SHELL since Bash no longer
28766 uses this.
28767 (glob, prefix_array): Separate MS code better.
28768 (glob_in_dir): Remove old Amiga and VMS code.
28769 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28770 separate files.
28771 (glob_in_dir): Do not rely on undefined behavior in accessing
28772 struct members beyond their bounds. Use a flexible array member
28773 instead
28774 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28775 0/1. Caller changed.
28776 (glob): Fix memory leaks.
28777 * posix/glob64 (globfree64): Move to separate file.
28778 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28779 (globfree64): Remove hidden alias.
28780 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28781 oldglob.
28782 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28783 separate file.
28784 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28785 define.
28786 Move compat code to separate file.
28787 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28788 separate file.
28789
28790 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28791
28792 * resolv/tst-resolv-qtypes.c (domain): Changed to
28793 "const char domain[] =".
28794
28795 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28796
28797 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28798 version to 3.1.6.
28799
28800 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28801 (TCP_MD5SIG_EXT): Likewise.
28802 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28803 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28804 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28805
28806 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28807
28808 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28809
28810 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28811
28812 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28813
28814 [BZ #22100]
28815 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28816
28817 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28818
28819 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28820 before assuming that the file is empty. Avoid testing buffer content
28821 when nread == 0.
28822
28823 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28824
28825 [BZ #18858]
28826 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28827 Remove define.
28828 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28829 Likewise.
28830 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28831 Likewise.
28832 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28833 Likewise.
28834 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28835 Likewise.
28836 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28837 Likewise.
28838 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28839 Likewise.
28840
28841 2017-09-06 Florian Weimer <fweimer@redhat.com>
28842
28843 * malloc/dynarray_emplace_enlarge.c
28844 (__libc_dynarray_emplace_enlarge): Add missing else.
28845
28846 2017-09-06 Florian Weimer <fweimer@redhat.com>
28847
28848 [BZ #22096]
28849 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28850 case of failure to obtain the global conf object.
28851
28852 2017-09-06 Florian Weimer <fweimer@redhat.com>
28853
28854 [BZ #22095]
28855 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28856 dynarray allocation failure.
28857
28858 2017-09-06 Florian Weimer <fweimer@redhat.com>
28859
28860 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28861 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28862 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28863 New functions.
28864 (response): Call them. Add 'p', '6' flag processing.
28865 (test_reverse): New function.
28866 (test_get2_any): Call it.
28867 (test_no_inet6): Add 'p' test.
28868 (test_inet6): Likewise.
28869
28870 2017-09-06 Florian Weimer <fweimer@redhat.com>
28871
28872 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28873 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28874 the QNAME.
28875 (test_gai): Adjust query names. Add additional tests.
28876 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28877 test_get2. Adjust query names. Add additional tests.
28878 (test_no_inet6): New function, extracted from threadfunc.
28879 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28880 Add additional tests.
28881
28882 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28883
28884 [BZ #22070]
28885 * localedata/unicode-gen/utf8_gen.py: Set the width for
28886 characters with Prepended_Concatenation_Mark property to 1
28887 * localedata/charmaps/UTF-8: Updated using the improved script.
28888
28889 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28890
28891 [BZ #21750]
28892 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28893 use the range notation for all ranges of neighbouring characters
28894 with the same width.
28895
28896 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28897
28898 * sysdeps/generic/math-type-macros-double.h: Include
28899 <math-svid-compat.h>.
28900 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28901 * sysdeps/generic/math-type-macros-float.h: Include
28902 <math-svid-compat.h>.
28903 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28904 * sysdeps/generic/math-type-macros-ldouble.h: Include
28905 <math-svid-compat.h>.
28906 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28907 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28908 condition.
28909 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28910 * math/w_acosf_compat.c: Likewise.
28911 * math/w_acosh_compat.c: Likewise.
28912 * math/w_acoshf_compat.c: Likewise.
28913 * math/w_acoshl_compat.c: Likewise.
28914 * math/w_acosl_compat.c: Likewise.
28915 * math/w_asin_compat.c: Likewise.
28916 * math/w_asinf_compat.c: Likewise.
28917 * math/w_asinl_compat.c: Likewise.
28918 * math/w_atan2_compat.c: Likewise.
28919 * math/w_atan2f_compat.c: Likewise.
28920 * math/w_atan2l_compat.c: Likewise.
28921 * math/w_atanh_compat.c: Likewise.
28922 * math/w_atanhf_compat.c: Likewise.
28923 * math/w_atanhl_compat.c: Likewise.
28924 * math/w_cosh_compat.c: Likewise.
28925 * math/w_coshf_compat.c: Likewise.
28926 * math/w_coshl_compat.c: Likewise.
28927 * math/w_exp10_compat.c: Likewise.
28928 * math/w_exp10f_compat.c: Likewise.
28929 * math/w_exp10l_compat.c: Likewise.
28930 * math/w_exp2_compat.c: Likewise.
28931 * math/w_exp2f_compat.c: Likewise.
28932 * math/w_exp2l_compat.c: Likewise.
28933 * math/w_fmod_compat.c: Likewise.
28934 * math/w_fmodf_compat.c: Likewise.
28935 * math/w_fmodl_compat.c: Likewise.
28936 * math/w_hypot_compat.c: Likewise.
28937 * math/w_hypotf_compat.c: Likewise.
28938 * math/w_hypotl_compat.c: Likewise.
28939 * math/w_j0_compat.c: Likewise.
28940 * math/w_j0f_compat.c: Likewise.
28941 * math/w_j0l_compat.c: Likewise.
28942 * math/w_j1_compat.c: Likewise.
28943 * math/w_j1f_compat.c: Likewise.
28944 * math/w_j1l_compat.c: Likewise.
28945 * math/w_jn_compat.c: Likewise.
28946 * math/w_jnf_compat.c: Likewise.
28947 * math/w_jnl_compat.c: Likewise.
28948 * math/w_lgamma_r_compat.c: Likewise.
28949 * math/w_lgammaf_r_compat.c: Likewise.
28950 * math/w_lgammal_r_compat.c: Likewise.
28951 * math/w_log10_compat.c: Likewise.
28952 * math/w_log10f_compat.c: Likewise.
28953 * math/w_log10l_compat.c: Likewise.
28954 * math/w_log2_compat.c: Likewise.
28955 * math/w_log2f_compat.c: Likewise.
28956 * math/w_log2l_compat.c: Likewise.
28957 * math/w_log_compat.c: Likewise.
28958 * math/w_logf_compat.c: Likewise.
28959 * math/w_logl_compat.c: Likewise.
28960 * math/w_pow_compat.c: Likewise.
28961 * math/w_powf_compat.c: Likewise.
28962 * math/w_powl_compat.c: Likewise.
28963 * math/w_remainder_compat.c: Likewise.
28964 * math/w_remainderf_compat.c: Likewise.
28965 * math/w_remainderl_compat.c: Likewise.
28966 * math/w_sinh_compat.c: Likewise.
28967 * math/w_sinhf_compat.c: Likewise.
28968 * math/w_sinhl_compat.c: Likewise.
28969 * math/w_sqrt_compat.c: Likewise.
28970 * math/w_sqrtf_compat.c: Likewise.
28971 * math/w_sqrtl_compat.c: Likewise.
28972 * math/w_tgamma_compat.c: Likewise.
28973 * math/w_tgammaf_compat.c: Likewise.
28974 * math/w_tgammal_compat.c: Likewise.
28975 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28976 [LIBM_SVID_COMPAT].
28977 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28978 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28979 [LIBM_SVID_COMPAT].
28980 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28981 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28982 [LIBM_SVID_COMPAT].
28983 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28984 * sysdeps/i386/fpu/w_sqrt.c: New file.
28985 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28986 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28987 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28988 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28989 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28990 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28991 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28992 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28993 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28994 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28995 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28996 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28997 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28998 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28999 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
29000 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
29001 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
29002 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
29003 * sysdeps/ia64/fpu/w_exp.c: Likewise.
29004 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
29005 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
29006 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
29007 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
29008 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
29009 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
29010 * sysdeps/ia64/fpu/w_expf.c: Likewise.
29011 * sysdeps/ia64/fpu/w_expl.c: Likewise.
29012 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
29013 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
29014 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
29015 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
29016 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
29017 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
29018 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
29019 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
29020 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
29021 * sysdeps/ia64/fpu/w_log.c: Likewise.
29022 * sysdeps/ia64/fpu/w_log10.c: Likewise.
29023 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
29024 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
29025 * sysdeps/ia64/fpu/w_log2.c: Likewise.
29026 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
29027 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
29028 * sysdeps/ia64/fpu/w_logf.c: Likewise.
29029 * sysdeps/ia64/fpu/w_logl.c: Likewise.
29030 * sysdeps/ia64/fpu/w_pow.c: Likewise.
29031 * sysdeps/ia64/fpu/w_powf.c: Likewise.
29032 * sysdeps/ia64/fpu/w_powl.c: Likewise.
29033 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
29034 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
29035 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
29036 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
29037 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
29038 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
29039 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
29040 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
29041 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
29042 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
29043 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
29044 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
29045 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
29046 [LIBM_SVID_COMPAT].
29047 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
29048 * sysdeps/ieee754/k_standard.c: Likewise.
29049 * sysdeps/ieee754/k_standardf.c: Likewise.
29050 * sysdeps/ieee754/k_standardl.c: Likewise.
29051 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
29052 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
29053 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
29054 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
29055 long_double_symbol call on [LIBM_SVID_COMPAT].
29056 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
29057 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
29058 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
29059 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
29060 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
29061 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
29062 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
29063 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
29064 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
29065 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
29066 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
29067 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
29068 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
29069 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
29070 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
29071 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
29072 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
29073 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29074 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29075 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29076 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29077 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29078
29079 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29080
29081 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29082 * malloc/tst-mallocstate.c: Convert from test-skeleton
29083 to test-driver. Ifdef code using TEST_COMPAT macro.
29084 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29085 * math/test-matherr.c: Likewise.
29086
29087 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29088
29089 [BZ #22086]
29090 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29091 comparing word with byte-swapped constant.
29092
29093 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29094
29095 [BZ #20498]
29096 * locale/iso-639.def: add Miskito.
29097 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29098 * localedata/locales/miq_NI: New file.
29099
29100 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29101
29102 [BZ #18822]
29103 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29104 (__mkdir): Likewise.
29105 * io/chmod.c (__chmod): Add libc_hidden_def.
29106 * io/mkdir.c (__mkdir): Likewise.
29107 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29108 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29109 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29110 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29111
29112 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29113
29114 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29115 version to 4.13.
29116
29117 [BZ #22082]
29118 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29119 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29120
29121 2017-09-04 Florian Weimer <fweimer@redhat.com>
29122
29123 * math/math.h: Issue warning if log is defined.
29124
29125 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29126
29127 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29128 kernel version to 4.13.
29129
29130 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29131
29132 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29133 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29134 parameter.
29135 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29136 just <bits/types.h>.
29137 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29138 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29139 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29140 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29141 * misc/preadv2.c: Include <errno.h>.
29142 * misc/preadv64v2.c: Include <errno.h>.
29143 * misc/pwritev2.c: Include <errno.h>.
29144 * misc/pwritev64v2.c: Include <errno.h>.
29145 * sysdeps/posix/preadv2.c: Include <errno.h>.
29146 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29147 Fix <unistd.h> inclusion.
29148 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29149 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29150 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29151 __strtoul_internal): New functions.
29152 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29153 * sysdeps/posix/system.c: Include <sigsetops.h>.
29154 * sysdeps/mach/hurd/i386/Makefile
29155 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29156 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29157 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29158 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29159 __feraiseexcept_renamed to feraiseexcept instead of
29160 __GI_feraiseexcept.
29161 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29162 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29163 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29164 RWF_NOWAIT): Define to 0 if undefined already.
29165 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29166 boils down to 0.
29167 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29168 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29169
29170 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29171
29172 * manual/math.texi (pow10): Do not document.
29173 (pow10f): Likewise.
29174 (pow10l): Likewise.
29175 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29176 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29177 * math/libm-test-exp10.inc (pow10_test): Remove.
29178 (do_test): Do not call pow10.
29179 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29180 [NO_LONG_DOUBLE] (pow10l): Likewise.
29181 * math/w_exp10f_compat.c (pow10f): Likewise.
29182 * math/w_exp10l_compat.c (pow10l): Likewise.
29183 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29184 (pow10): Make into compat symbol.
29185 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29186 (pow10f): Make into compat symbol.
29187 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29188 (pow10l): Make into compat symbol.
29189 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29190 pow10.
29191 (CFLAGS-nldbl-pow10.c): Remove variable..
29192 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29193 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29194 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29195 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29196 Undefine and redefine.
29197 (pow10l): Make into compat symbol.
29198 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29199 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29200 * sysdeps/arm/libm-test-ulps: Likewise.
29201 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29202 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29203 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29204 * sysdeps/microblaze/libm-test-ulps: Likewise.
29205 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29206 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29207 * sysdeps/nios2/libm-test-ulps: Likewise.
29208 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29209 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29210 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29211 * sysdeps/sh/libm-test-ulps: Likewise.
29212 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29213 * sysdeps/tile/libm-test-ulps: Likewise.
29214 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29215
29216 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29217
29218 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29219
29220 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29221
29222 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29223 "../ChangeLog.old/ChangeLog.8".
29224 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29225 "../ChangeLog.old/ChangeLog.14".
29226
29227 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29228
29229 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29230 Threads Library.
29231
29232 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29233
29234 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29235
29236 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29237
29238 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29239 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29240
29241 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29242
29243 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29244 32 atexit handlers.
29245
29246 2017-09-01 Zack Weinberg <zackw@panix.com>
29247
29248 * math/math.h (HUGE_VAL): Improve commentary.
29249
29250 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29251 Andreas Schwab <schwab@suse.de>
29252
29253 [BZ #21530]
29254 * include/stdio.h (__gen_tempfd): New function.
29255 * stdio-common/Makefile (routines): Add gentempfd.
29256 * stdio-common/gentempfd.c: New file.
29257 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29258 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29259 unnamed file first.
29260
29261 2017-09-01 Florian Weimer <fweimer@redhat.com>
29262
29263 [BZ #21915]
29264 [BZ #21922]
29265 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29266 result to determine success or failure, not the errno value.
29267 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29268 (tst-nss-files-hosts-erange): Link with -ldl.
29269 * nss/tst-nss-files-hosts-erange.c: New file.
29270 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29271 (do_test): Add NO_DATA tests.
29272 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29273 (do_test): Call it.
29274
29275 2017-09-01 Florian Weimer <fweimer@redhat.com>
29276
29277 [BZ #21922]
29278 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29279 coming from gethostbyname2_r.
29280
29281 2017-09-01 Florian Weimer <fweimer@redhat.com>
29282
29283 * support/namespace.h (struct support_chroot_configuration): Add
29284 hosts, host_conf.
29285 (struct support_chroot): Add path_hosts, path_host_conf.
29286 * support/support_chroot.c (write_file): New function.
29287 (support_chroot_create): Call it to process /etc/resolv.conf,
29288 /etc/hosts, /etc/host.conf.
29289 (support_chroot_free): Update.
29290
29291 2017-09-01 Florian Weimer <fweimer@redhat.com>
29292
29293 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29294 status indicates it is set.
29295
29296 2017-09-01 Florian Weimer <fweimer@redhat.com>
29297
29298 [BZ #20532]
29299 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29300 function lookup failures more reliable.
29301
29302 2017-09-01 Florian Weimer <fweimer@redhat.com>
29303
29304 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29305 (getcanonname): Likewise.
29306 (gaih_inet): Likewise.
29307
29308 2017-09-01 Florian Weimer <fweimer@redhat.com>
29309
29310 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29311 (getcanonname): Likewise.
29312 (gaih_inet): Likewise.
29313
29314 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29315 Richard Henderson <rth@twiddle.net>
29316
29317 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29318 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29319 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29320 (IREG_SIZE, OREG_SIZE): New macros.
29321 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29322 (IREG_SIZE, OREG_SIZE): New macros.
29323 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29324 (IREG_SIZE): New macro.
29325 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29326 (IREG_SIZE): New macro.
29327 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29328 New includes.
29329 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29330 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29331 (__CONCATX): Handle exceptions correctly on large values that may
29332 set FE_INVALID.
29333 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29334 Initialize if not already set.
29335 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29336
29337 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29338
29339 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29340 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29341 Likewise.
29342 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29343 Likewise.
29344 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29345 Likewise.
29346 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29347 Likewise.
29348 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29349 Likewise.
29350 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29351 Likewise.
29352 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29353 Likewise.
29354 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29355 (NO_CANCELLATION): Likewise.
29356 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29357 Likewise.
29358 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29359 Likewise.
29360 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29361 Likewise.
29362 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29363 (NO_CANCELLATION): Likewise.
29364 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29365 (NO_CANCELLATION): Likewise.
29366 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29367 Likewise
29368 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29369 Likewise.
29370 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29371 Likewise.
29372 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29373 Likewise.
29374 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29375 hidden prototype.
29376 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29377 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29378
29379 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29380
29381 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29382 in resolver call.
29383
29384 2017-08-31 Florian Weimer <fweimer@redhat.com>
29385
29386 * include/libc-symbols.h (internal_function): Remove.
29387
29388 2017-08-31 Florian Weimer <fweimer@redhat.com>
29389
29390 * stdlib/fmtmsg.c (internal_addseverity): Remove
29391 internal_function.
29392
29393 2017-08-31 Florian Weimer <fweimer@redhat.com>
29394
29395 * stdio-common/printf_fp.c (group_number): Remove
29396 internal_function.
29397 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29398
29399 2017-08-31 Florian Weimer <fweimer@redhat.com>
29400
29401 * posix/fnmatch.c (internal_function): Remove definition.
29402 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29403 * posix/regcomp.c (peek_token, init_word_char)
29404 (duplicate_node_closure, fetch_token, peek_token)
29405 (peek_token_bracket, build_range_exp, build_collating_symbol):
29406 Likewise.
29407 * posix/regex_internal.c (re_string_construct_common)
29408 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29409 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29410 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29411 (re_string_translate_buffer, re_string_reconstruct)
29412 (re_string_peek_byte_case, re_string_fetch_byte_case)
29413 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29414 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29415 (re_node_set_add_intersect, re_node_set_init_union)
29416 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29417 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29418 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29419 (re_acquire_state_context): Likewise.
29420 * posix/regex_internal.h (internal_function): Remove definition.
29421 (re_string_realloc_buffers, build_wcs_buffer)
29422 (build_wcs_upper_buffer, build_upper_buffer)
29423 (re_string_translate_buffer, re_string_context_at)
29424 (re_string_char_size_at, re_string_wchar_at)
29425 (re_string_elem_size_at): Likewise.
29426 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29427 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29428 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29429 (re_search_internal, re_search_2_stub, re_search_stub)
29430 (re_copy_regs, prune_impossible_nodes, check_matching)
29431 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29432 (free_fail_stack_return, sift_states_iter_mb)
29433 (sift_states_backward, build_sifted_states)
29434 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29435 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29436 (check_subexp_limits, sift_states_bkref, merge_state_array)
29437 (find_recover_state, transit_state, merge_state_with_log)
29438 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29439 (transit_state_mb, transit_state_bkref, get_subexp)
29440 (get_subexp_sub, find_subexp_node, check_arrival)
29441 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29442 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29443 (check_node_accept_bytes, find_collation_sequence_value)
29444 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29445 (acquire_init_state_context, check_halt_node_context)
29446 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29447 (sub_epsilon_src_nodes): Likewise.
29448 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29449 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29450 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29451 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29452 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29453 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29454 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29455 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29456 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29457 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29458 (PREADV): Likewise.
29459 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29460 (PREADV): Likewise.
29461 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29462 (PWRITEV): Likewise.
29463 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29464 (PWRITEV): Likewise.
29465 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29466 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29467
29468 2017-08-31 Florian Weimer <fweimer@redhat.com>
29469
29470 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29471 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29472 Remove internal_function.
29473 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29474 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29475 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29476 (__deallocate_stack, __libc_pthread_init)
29477 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29478 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29479 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29480 Likewise.
29481 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29482 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29483 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29484 Likewise.
29485 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29486 (__pthread_mutex_unlock_usercnt): Likewise.
29487
29488 2017-08-31 Florian Weimer <fweimer@redhat.com>
29489
29490 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29491 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29492 (fts_safe_changedir): Remove internal_function.
29493 * io/ftw.c (internal_function): Remove definition.
29494 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29495
29496 2017-08-31 Florian Weimer <fweimer@redhat.com>
29497
29498 * inet/deadline.c (__deadline_current_time)
29499 (__deadline_from_timeval, __deadline_to_ms): Remove
29500 internal_function.
29501 * inet/getnameinfo.c (nrl_domainname): Likewise.
29502 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29503 * inet/inet6_option.c (add_pad): Likewise.
29504 * inet/net-internal.h (__deadline_current_time)
29505 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29506 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29507 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29508 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29509
29510 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29511
29512 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29513 include <bits/nan.h>.
29514 * math/Makefile (headers): Remove bits/nan.h.
29515 * bits/nan.h: Remove.
29516 * sysdeps/ieee754/bits/nan.h: Likewise.
29517 * sysdeps/mips/bits/nan.h: Likewise.
29518
29519 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29520 not include <bits/inf.h>.
29521 * math/Makefile (headers): Remove bits/inf.h.
29522 * bits/inf.h: Remove.
29523 * sysdeps/ieee754/bits/inf.h: Likewise.
29524
29525 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29526 bits/huge_vall.h or bits/huge_val_flt128.h.
29527 (HUGE_VAL): Define directly here.
29528 [__USE_ISOC99] (HUGE_VALF): Likewise.
29529 [__USE_ISOC99] (HUGE_VALL): Likewise.
29530 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29531 (HUGE_VAL_F128): Likewise.
29532 * math/Makefile (headers): Remove bits/huge_val.h,
29533 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29534 * bits/huge_val.h: Remove.
29535 * bits/huge_val_flt128.h: Likewise.
29536 * bits/huge_valf.h: Likewise.
29537 * bits/huge_vall.h: Likewise.
29538 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29539 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29540 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29541 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29542 * sysdeps/sh/bits/huge_val.h: Likewise.
29543 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29544 * sysdeps/x86/bits/huge_vall.h: Likewise.
29545
29546 2017-08-31 Florian Weimer <fweimer@redhat.com>
29547
29548 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29549 internal_function.
29550 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29551 Likewise.
29552 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29553 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29554 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29555 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29556 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29557 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29558 * elf/dl-libc.c (dlerror_run): Likewise.
29559 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29560 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29561 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29562 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29563 Likewise.
29564 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29565 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29566 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29567 * elf/dl-profile.c (_dl_start_profile): Likewise.
29568 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29569 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29570 Likewise.
29571 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29572 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29573 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29574 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29575 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29576 (_dl_allocate_tls_storage): Likewise.
29577 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29578 (_dl_check_all_versions): Likewise.
29579 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29580 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29581 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29582 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29583 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29584 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29585 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29586 internal_function from __dl_start.
29587 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29588 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29589 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29590 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29591 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29592 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29593 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29594 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29595 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29596 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29597 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29598 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29599 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29600 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29601 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29602 Likewise.
29603 (struct rtld_global_ro): Remove internal_function from the
29604 _dl_lookup_symbol_x member.
29605 (_dl_symbol_value): Remove. No longer defined anywhere.
29606 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29607 internal_function.
29608 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29609 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29610 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29611 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29612 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29613 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29614 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29615 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29616 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29617 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29618 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29619 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29620
29621 2017-08-31 Florian Weimer <fweimer@redhat.com>
29622
29623 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29624 Remove internal_function.
29625 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29626 Likewise.
29627 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29628 Likewise.
29629
29630 2017-08-31 Florian Weimer <fweimer@redhat.com>
29631
29632 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29633 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29634 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29635
29636 2017-08-31 Florian Weimer <fweimer@redhat.com>
29637
29638 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29639 (__gai_enqueue_request): Remove internal_function.
29640 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29641 (__gai_remove_request, __gai_notify, __gai_notify_only)
29642 (__gai_sigqueue): Likewise.
29643 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29644 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29645 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29646 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29647 Likewise.
29648
29649 2017-08-31 Florian Weimer <fweimer@redhat.com>
29650
29651 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29652 * include/dirent.h (__opendirat, __getdents, __getdents64)
29653 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29654 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29655 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29656 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29657 Likewise.
29658 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29659
29660 2017-08-31 Florian Weimer <fweimer@redhat.com>
29661
29662 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29663 internal_function.
29664 (GETCWD_RETURN_TYPE): Likewise.
29665
29666 2017-08-31 Florian Weimer <fweimer@redhat.com>
29667
29668 * include/time.h (__tz_compute, __strptime_internal): Remove
29669 internal_function.
29670 * time/strptime_l.c (__strptime_internal): Likewise.
29671 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29672
29673 2017-08-31 Florian Weimer <fweimer@redhat.com>
29674
29675 * iconv/gconv.c (__gconv): Remove internal_function.
29676 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29677 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29678 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29679 (__gconv_release_cache): Likewise.
29680 * iconv/gconv_close.c (__gconv_close): Likewise.
29681 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29682 (read_conf_file, __gconv_get_path): Likewise.
29683 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29684 (__gconv_release_step, gen_steps, increment_counter)
29685 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29686 (__gconv_close_transform, free_modules_db): Likewise.
29687 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29688 Likewise.
29689 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29690 (__gconv_find_transform, __gconv_lookup_cache)
29691 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29692 (__gconv_close_transform, __gconv_release_cache)
29693 (__gconv_loaded_object, __gconv_release_shlib)
29694 (__gconv_compare_alias): Likewise.
29695 * iconv/gconv_open.c (__gconv_open): Likewise.
29696 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29697 * iconv/iconvconfig.c (add_module): Likewise.
29698 * intl/dcigettext.c (plural_lookup, guess_category_value)
29699 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29700 * intl/eval-plural.h (plural_eval): Likewise.
29701 * intl/finddomain.c (_nl_find_domain): Likewise.
29702 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29703 (_nl_load_domain, _nl_find_msg): Likewise.
29704 (internal_function): Remove definition.
29705 * intl/loadinfo.h (internal_function): Likewise.
29706 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29707 internal_function.
29708 * intl/localealias.c (internal_function): Remove definition.
29709 (read_alias_file): Remove internal_function.
29710 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29711 * intl/plural-exp.h (internal_function): Remove definition.
29712 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29713 internal_function.
29714 * intl/plural.c: Regenerate.
29715 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29716 * locale/coll-lookup.c (__collidx_table_lookup)
29717 (__collseq_table_lookup): Likewise.
29718 * locale/coll-lookup.h (__collidx_table_lookup)
29719 (__collseq_table_lookup): Likewise.
29720 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29721 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29722 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29723 (_nl_unload_locale): Likewise.
29724 * locale/localeinfo.h (struct __locale_data): Remove
29725 internal_function from cleanup member.
29726 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29727 (_nl_remove_locale, _nl_load_locale_from_archive)
29728 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29729 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29730 (_nl_cleanup_time): Remove internal_function.
29731 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29732 (_nl_parse_alt_digit): Likewise.
29733 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29734 (_nl_select_era_entry): Likewise.
29735 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29736 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29737 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29738 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29739 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29740
29741 2017-08-31 Florian Weimer <fweimer@redhat.com>
29742
29743 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29744 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29745 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29746 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29747 Likewise.
29748 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29749 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29750 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29751 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29752 Likewise.
29753 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29754
29755 2017-08-31 Florian Weimer <fweimer@redhat.com>
29756
29757 * misc/getttyent.c (skip, value): Remove internal_function.
29758 * misc/syslog.c (openlog_internal): Likewise.
29759 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29760
29761 2017-08-31 Florian Weimer <fweimer@redhat.com>
29762
29763 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29764 (__nss_rewrite_field): Remove internal_function.
29765 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29766 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29767 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29768 * nss/nsswitch.c (nss_parse_file, nss_getline)
29769 (nss_parse_service_list, nss_new_service): Likewise.
29770 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29771 * nss/valid_field.c (__nss_valid_field): Likewise.
29772 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29773
29774 2017-08-31 Florian Weimer <fweimer@redhat.com>
29775
29776 * malloc/arena.c (__malloc_fork_lock_parent)
29777 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29778 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29779 internal_function from defintions.
29780 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29781 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29782 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29783 internal_function from declarations.
29784 * malloc/malloc.c (internal_function): Do not define.
29785 (mem2mem_check): Remove internal_function from declaration.
29786 (munmap_chunk, mremap_chunk): Remove internal_function.
29787 * malloc/mtrace.c (tr_where): Likewise.
29788
29789 2017-08-31 Florian Weimer <fweimer@redhat.com>
29790
29791 * include/rpc/pmap_clnt.h (__get_socket): Remove
29792 internal_function.
29793 * sunrpc/auth_des.c (synchronize): Likewise.
29794 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29795 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29796 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29797 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29798 (key_call): Likewise.
29799 * sunrpc/pm_getport.c (__get_socket): Likewise.
29800 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29801 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29802 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29803 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29804 (invalidate): Likewise.
29805 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29806 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29807 (set_input_fragment, get_input_bytes): Likewise.
29808
29809 2017-08-31 Florian Weimer <fweimer@redhat.com>
29810
29811 * malloc/malloc.c (_int_free): Remove locked variable and related
29812 asserts.
29813
29814 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29815
29816 [BZ #22051]
29817 * Makerules (build-module-helper-objlist): Filter out
29818 $(elf-objpfx)sofini.os.
29819 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29820 needed.
29821
29822 2017-08-31 Florian Weimer <fweimer@redhat.com>
29823
29824 * libio/fcloseall.c: Assume weak_alias is defined.
29825 * libio/feof.c: Likewise.
29826 * libio/fileno.c: Likewise.
29827 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29828 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29829 definitions.
29830 (_IO_file_open): Call __open directly.
29831 (_IO_new_file_sync): Assume ESPIPE is defined.
29832 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29833 (_IO_new_file_write): Call __write directly.
29834 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29835 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29836 * libio/genops.c: Assume _LIBC is defined.
29837 (save_for_backup): Remove internal_function.
29838 * libio/getc.c: Assume weak_alias is defined.
29839 * libio/getwc.c: Likewise.
29840 * libio/iofclose.c: Assume _LIBC is defined.
29841 * libio/iofdopen.c: Likewise.
29842 (_IO_fcntl): Remove macro definition.
29843 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29844 Call __fcntl directly.
29845 * libio/iofflush.c: Assume weak_alias is defined.
29846 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29847 defined.
29848 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29849 * libio/iofgets.c: Likewise.
29850 * libio/iofopen.c: Assume _LIBC is defined.
29851 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29852 * libio/iofputs.c: Assume weak_alias is defined.
29853 * libio/iofread.c: Likewise.
29854 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29855 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29856 * libio/ioftell.c: Assume weak_alias is defined.
29857 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29858 * libio/iofwide.c: Assume _LIBC is defined.
29859 (_IO_fwide): Drop SHARED conditional because it is implied by
29860 SHLIB_COMPAT.
29861 * libio/iofwrite.c: Assume weak_alias is defined.
29862 * libio/iogetdelim.c: Likewise.
29863 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29864 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29865 (_IO_getwline): Call __wmemcpy directly.
29866 * libio/iopopen.c: Assume _LIBC is defined.
29867 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29868 (_IO_close): Remove macro definitions.
29869 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29870 _exit directly.
29871 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29872 directly.
29873 * libio/ioputs.c: Assume weak_alias is defined.
29874 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29875 * libio/iosetbuffer.c: Assume weak_alias is defined.
29876 * libio/iosetvbuf.c: Likewise.
29877 * libio/ioungetc.c: Likewise.
29878 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29879 libc_hidden_def, libc_hidden_weak, NULL are defined.
29880 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29881 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29882 defined.
29883 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29884 definitions.
29885 (_IO_old_file_init_internal): Drop SHARED conditional because it
29886 is implied by SHLIB_COMPAT.
29887 (_IO_old_file_fopen): Call __open directly.
29888 (_IO_old_file_sync): Assume ESPIPE is defined.
29889 (_IO_old_file_write): Call __write directly.
29890 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29891 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29892 Call __fcntl directly.
29893 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29894 (_IO_old_fgetpos): Assume EIO is defined.
29895 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29896 (_IO_old_fgetpos64): Assume EIO is defined.
29897 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29898 (_IO_old_fsetpos): Assume EIO is defined.
29899 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29900 (_IO_old_fsetpos64): Assume EIO is defined.
29901 * libio/oldiopopen.c: Assume _LIBC is defined.
29902 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29903 (_IO_close): Remove macro definitions.
29904 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29905 directly.
29906 (_IO_old_proc_close): Call __close, __waitpid directly.
29907 * libio/put.c: Assume weak_alias is defined.
29908 * libio/stdfiles.c: Assume _LIBC is defined.
29909 * libio/stdio.c: Likewise.
29910 * libio/wfileops.c: Likewise.
29911 (_IO_wfile_sync): Assume ESPIPE is defined.
29912 * libio/wgenops.c: Assume _LIBC is defined.
29913 (save_for_wbackup): Remove internal_function.
29914
29915 2017-08-31 Florian Weimer <fweimer@redhat.com>
29916
29917 * malloc/malloc.c (top_check): Change return type to void. Remove
29918 internal_function.
29919 * malloc/hooks.c (top_check): Likewise.
29920 (malloc_check, realloc_check, memalign_check): Adjust.
29921
29922 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29923
29924 [BZ #21457]
29925 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29926 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29927 sigcontext and namespace requirements.
29928 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29929 * sysdeps/m68k/sys/ucontext.h: Likewise.
29930 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29931 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29932 <bits/sigcontext.h>.
29933 (__ctx): Define earlier.
29934 (mcontext_t): Define structure contents rather than using struct
29935 sigcontext.
29936 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29937 __glibc_reserved1 instead of __reserved.
29938 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29939 <bits/sigcontext.h>.
29940 (__ctx): Define earlier.
29941 (mcontext_t): Define structure contents rather than using struct
29942 sigcontext.
29943 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29944 mcontext_t instead of struct sigcontext.
29945 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29946 <bits/sigcontext.h>.
29947 (__ctx): Define earlier.
29948 (mcontext_t): Define structure contents rather than using struct
29949 sigcontext.
29950 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29951 <bits/sigcontext.h>.
29952 (__ctx): Define earlier.
29953 (mcontext_t): Define structure contents rather than using struct
29954 sigcontext.
29955 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29956 mcontext_t instead of struct sigcontext.
29957 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29958 mcontext_t instead of struct sigcontext.
29959 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29960 <bits/sigcontext.h>.
29961 (__ctx): New macro.
29962 (struct __ia64_fpreg_mcontext): New type.
29963 (mcontext_t): Define structure contents rather than using struct
29964 sigcontext.
29965 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29966 (uc_sigmask): Define using __ctx.
29967 (uc_stack): Likewise.
29968 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29969 <bits/sigcontext.h>.
29970 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29971 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29972 <bits/sigcontext.h>.
29973 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29974 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29975 <bits/sigcontext.h>.
29976 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29977 <bits/sigcontext.h>.
29978 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29979 <bits/sigcontext.h>.
29980 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29981 <bits/sigcontext.h>.
29982 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29983 <bits/sigcontext.h>.
29984 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29985 <bits/sigcontext.h>.
29986 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29987 <bits/sigcontext.h>.
29988 (__ctx): Define earlier.
29989 (mcontext_t): Define structure contents rather than using struct
29990 sigcontext.
29991 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29992 <bits/sigcontext.h>. Include <bits/types.h>.
29993 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29994 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29995 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29996 (test-xfail-UNIX98/signal.h/conform): Likewise.
29997 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29998 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29999 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
30000 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
30001 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
30002 (test-xfail-POSIX2008/signal.h/conform): Likewise.
30003 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
30004 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
30005 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
30006
30007 2017-08-30 Florian Weimer <fweimer@redhat.com>
30008
30009 * malloc/dynarray_emplace_enlarge.c
30010 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
30011 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
30012 * malloc/tst-dynarray.c (test_long_overflow): New function.
30013 (do_test): Call it.
30014
30015 2017-08-30 Florian Weimer <fweimer@redhat.com>
30016
30017 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
30018 (set_arena_corrupt): Remove definitions.
30019 (mtrim): Do not check for corrupt arena.
30020 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
30021 Likewise.
30022
30023 2017-08-30 Florian Weimer <fweimer@redhat.com>
30024
30025 [BZ #21754]
30026 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
30027 check_action.
30028 (ptmalloc_init): Do not set or use check_action.
30029 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
30030 call to malloc_printerr. Remove return statement.
30031 (free_check): Likewise. Remove arena unlock.
30032 (top_check): Update comment. Adjust call to malloc_printerr.
30033 Remove heap repair code.
30034 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
30035 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
30036 (sysmalloc): Adjust call to malloc_printerr.
30037 (munmap_chunk, __libc_realloc): Likewise. Remove return
30038 statement.
30039 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
30040 Remove errout label and corresponding gotos.
30041 (_int_free): Likewise. Remove arena unlock.
30042 (do_set_mallopt_check): Do not set check_action.
30043 (malloc_printerr): Adjust parameter list. Do not mark arena as
30044 corrupt.
30045 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
30046 comment.
30047 * manual/probes.texi (Memory Allocation Probes): Remove
30048 memory_mallopt_check_action.
30049
30050 2017-08-30 Steve Ellcey <sellcey@cavium.com>
30051
30052 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
30053 Use pointer to uint64_t instead of long int for sp.
30054
30055 2017-08-30 Florian Weimer <fweimer@redhat.com>
30056
30057 [BZ #21754]
30058 * malloc/malloc.c (malloc_printerr): Always terminate the process,
30059 without printing a backtrace. Do not leak any information in the
30060 error message.
30061 * manual/memory.texi (Heap Consistency Checking): Update.
30062 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
30063
30064 2017-08-30 Florian Weimer <fweimer@redhat.com>
30065
30066 Do not scale NPTL tests with available number of CPUs.
30067 * nptl/tst-cond16.c (count): Set to constant value of 8.
30068 * nptl/tst-cond18.c (count): Likewise.
30069
30070 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30071
30072 [BZ #22035]
30073 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30074 Define to take a second argument that is a macro that
30075 concatentates a suffix, not the suffix itself.
30076 (__CONCAT_d): New macro.
30077 (__CONCAT_f): Likewise.
30078 (__CONCAT_l): Likewise.
30079
30080 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30081
30082 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30083 by child.
30084
30085 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30086 Aurelien Jarno <aurelien@aurel32.net>
30087 Maciej W. Rozycki <macro@imgtec.com>
30088
30089 [BZ #21956]
30090 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30091 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30092 `mips16-syscall6' and `mips16-syscall7'.
30093 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30094 (CFLAGS-mips16-syscall7.c): Remove.
30095 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30096 Remove `__mips16_syscall5', `__mips16_syscall6' and
30097 `__mips16_syscall7'.
30098 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30099 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30100 `__mips_syscall_return'.
30101 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30102 (__mips16_syscall1): Likewise.
30103 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30104 (__mips16_syscall2): Likewise.
30105 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30106 (__mips16_syscall3): Likewise.
30107 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30108 (__mips16_syscall4): Likewise.
30109 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30110 Remove.
30111 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30112 Remove.
30113 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30114 Remove.
30115 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30116 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30117 `__mips16_syscall5'. Remove prototype.
30118 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30119 `__mips16_syscall6'. Remove prototype.
30120 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30121 `__mips16_syscall7'. Remove prototype.
30122 (__nomips16, __mips16_syscall_return): Move to...
30123 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30124 (__nomips16, __mips_syscall_return): ... here.
30125 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30126 `__mips16_syscall_return' to `__mips_syscall_return'.
30127 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30128 `internal_syscall##nr'.
30129 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30130 `internal_syscall##nr'.
30131 (FORCE_FRAME_POINTER): Remove.
30132 (__mips_syscall5): New prototype.
30133 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30134 (__mips_syscall6): New prototype.
30135 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30136 (__mips_syscall7): New prototype.
30137 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30138 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30139 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30140 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30141 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30142 (sysdep_routines): Add libc-do-syscall.
30143 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30144 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30145
30146 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30147
30148 [BZ #21672]
30149 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30150 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30151 (advise_stack_range): New function.
30152 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30153 stack non required to advise_stack_range at allocatestack.c
30154
30155 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30156
30157 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30158
30159 2017-08-29 Florian Weimer <fweimer@redhat.com>
30160
30161 [BZ #22026]
30162 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30163 __end_fct. Mangle __end_fct after setting it to NULL.
30164 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30165 (modules-names, modules-names-tests): Add
30166 tst-gconv-init-failure-mod.
30167 (gconv-modules): New target.
30168 (tst-gconv-init-failure-mod.so): Link against libsupport.
30169 (tst-gconv-init-failure): Depend on gconv-modules,
30170 tst-gconv-init-failure-mod.so.
30171 * iconv/tst-gconv-init-failure-mod.c: New file.
30172 * iconv/tst-gconv-init-failure.c: Likewise.
30173 * iconv/test-gconv-modules: Likewise.
30174
30175 2017-08-29 Florian Weimer <fweimer@redhat.com>
30176
30177 [BZ #22025]
30178 * iconv/gconv_db.c (free_derivation): Remove redundant
30179 parentheses.
30180 (gen_steps): Unconditionally mangle __btowc_fct after
30181 initialization.
30182 (increment_counter): Likewise. Do not call init_fct for internal
30183 modules.
30184
30185 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30186
30187 [BZ #22028]
30188 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30189 (_MSUF_): Remove macro.
30190 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30191 Likewise.
30192 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30193 (__REDIRFROM_X): New macro.
30194 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30195 Likewise.
30196 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30197 (__REDIRTO_X): Likewise.
30198 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30199 arguments.
30200 (__MATH_REDIRCALL_2): Likewise.
30201 (__MATH_REDIRCALL_INTERNAL): Likewise.
30202 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30203 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30204 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30205 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30206 * math/test-finite-macros.c: New file.
30207 * math/Makefile (tests): Add test-finite-macros.
30208 (CFLAGS-test-finite-macros.c): New variable.
30209
30210 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30211 Jeff Law <law@redhat.com>
30212
30213 [BZ #22025]
30214 Mangle NULL pointers in iconv/gconv.
30215 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30216 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30217 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30218 is non-NULL before demangling the end_fct. Check for NULL
30219 end_fct after demangling.
30220 (__gconv_release_step): Demangle the end_fct before checking
30221 it for NULL. Remove assert on __shlibc_handle != NULL.
30222 (gen_steps): Don't check btowc_fct for NULL before mangling.
30223 Demangle init_fct before checking for NULL.
30224 (increment_counter): Likewise.
30225 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30226 end_fct for NULL before mangling.
30227 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30228 for NULL.
30229
30230 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30231
30232 [BZ #21971]
30233 * locale/iso-639.def: add Morisyen.
30234
30235 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30236
30237 [BZ #21930]
30238 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30239 (iszero): New C++ implementation that does not use
30240 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30241 signaling nans are enabled, since __builtin_types_compatible_p
30242 is a C-only feature.
30243 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30244 defined, include ieee754_float128.h for access to the union and
30245 member ieee854_float128.ieee.
30246 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30247 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30248 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30249 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30250 options of test-math-zero on powerpc64le.
30251
30252 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30253
30254 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30255 Change double to float.
30256
30257 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30258
30259 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30260 unconditional.
30261 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30262 conditional code; define contents only for [LIBM_SVID_COMPAT].
30263
30264 2017-08-28 Florian Weimer <fweimer@redhat.com>
30265
30266 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30267 (abi-lp64_be-options): Remove.
30268 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30269 (abi-hard-options): Likewise.
30270 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30271 (abi-o32_hard-options, abi-o32_soft_2008-options)
30272 (abi-o32_hard_2008-options, abi-n32_soft-options)
30273 (abi-n32_hard-options, abi-n32_soft_2008-options)
30274 (abi-n32_hard_2008-options, abi-n64_soft-options)
30275 (abi-n64_hard-options, abi-n64_soft_2008-options)
30276 (abi-n64_hard_2008-options): Likewise.
30277 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30278 (abi-64-v1-options, abi-64-v2-options): Likewise.
30279 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30280 (abi-64-options): Likewise.
30281 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30282 (abi-64-options): Likewise.
30283 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30284 (abi-64-options): Likewise.
30285 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30286 (abi-64-options, abi-x32-options): Likewise.
30287
30288 2017-08-28 Florian Weimer <fweimer@redhat.com>
30289
30290 Store supported list of SYS_* system calls in the source tree.
30291 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30292 (bits/syscall.h): Generate from list file.
30293 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30294 [$(subdir) = misc] (tests): Add tst-syscall-list.
30295 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30296 [$(subdir) = misc] (tst-syscall-list-macros.list)
30297 [$(subdir) = misc] (tst-syscall-list-nr.list)
30298 (tst-syscall-list-sys.list): Helper targets for new
30299 tst-syscall-list test.
30300 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30301 tst-syscall-list.sh.
30302 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30303 target. Do not include bits/syscall.d.
30304 [$(subdir) = misc] (generated): Do not update.
30305 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30306 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30307 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30308 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30309
30310 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30311
30312 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30313 (tst-cxa_atexit, tst-on_exit): Likewise.
30314 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30315 tst-cxa_atexit, and tst-on_exit.
30316 * stdlib/tst-atexit-common.c: New file.
30317 * stdlib/tst-atexit.c: New file.
30318 * stdlib/tst-at_quick_exit.c: New file.
30319 * stdlib/tst-cxa_atexit.c: New file.
30320 * stdlib/tst-on_exit.c: New file.
30321
30322 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30323
30324 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30325 * mach/stack_chk_fail_local.c: New file.
30326 * hurd/stack_chk_fail_local.c: New file.
30327 * mach/Machrules ($(interface-library)-routines): Add
30328 stack_chk_fail_local.
30329 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30330 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30331 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30332 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30333 * hurd/Makefile (CFLAGS-hurdstartup.o,
30334 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30335
30336 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30337
30338 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30339 (index_cpu_*, index_arch_*): Removed.
30340
30341 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30342
30343 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30344 Use uint64_t instead of unsigned long.
30345
30346 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30347
30348 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30349 [__HAVE_DISTINCT_FLOAT128].
30350
30351 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30352 of <bits/math-finite.h>.
30353 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30354 inclusion of <bits/math-finite.h>.
30355 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30356 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30357 __NO_LONG_DOUBLE_MATH].
30358 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30359 (__MATH_REDIRCALL_2): Likewise.
30360 (__MATH_REDIRCALL_INTERNAL): Likewise.
30361 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30362 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30363 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30364
30365 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30366 Remove file.
30367 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30368 Likewise.
30369 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30370 Likewise.
30371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30372 Likewise.
30373 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30374 Likewise.
30375 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30376 Likewise.
30377 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30378 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30379 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30380 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30381 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30382 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30383 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30384 w_sqrtf_compat-ppc32.
30385
30386 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30387
30388 * math/math.h [defined __cplusplus] (issignaling): In the long
30389 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30390 is not defined. Call __issignaling, otherwise.
30391
30392 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30393
30394 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30395 syscall definitions and replace __builtin_expect with __glibc_likely.
30396 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30397 syscall.
30398 (SYSCALL_CANCELLABLE): Removedefinition
30399 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30400 definition.
30401 (PSEUDO_END): Likewise.
30402 [IS_IN (libpthread)] (CENABLE): Likewise.
30403 [IS_IN (libpthread)] (CDISABLE): Likewise.
30404 [IS_IN (libc)] (CENABLE): Likewise.
30405 [IS_IN (libc)] (CENABLE): Likewise.
30406 [IS_IN (librt)] (CDISABLE): Likewise.
30407 [IS_IN (librt)] (CDISABLE): Likewise.
30408 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30409 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30410 definition.
30411 (PSEUDO_END): Likewise.
30412 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30413 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30414 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30415 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30416 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30417 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30418 (CENABLE): Likewise.
30419 (CDISABLE): Likewise.
30420 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30421 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30422 defintion.
30423 (PSEUDO_END): Likewise.
30424 [IS_IN (libpthread)] (CENABLE): Likewise.
30425 [IS_IN (libpthread)] (CDISABLE): Likewise.
30426 [IS_IN (libc)] (CENABLE): Likewise.
30427 [IS_IN (libc)] (CENABLE): Likewise.
30428 [IS_IN (librt)] (CDISABLE): Likewise.
30429 [IS_IN (librt)] (CDISABLE): Likewise.
30430 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30431 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30432 definition.
30433 (PSEUDO_END): Likewise.
30434 [IS_IN (libpthread)] (CENABLE): Likewise.
30435 [IS_IN (libpthread)] (CDISABLE): Likewise.
30436 [IS_IN (libc)] (CENABLE): Likewise.
30437 [IS_IN (libc)] (CENABLE): Likewise.
30438 [IS_IN (librt)] (CDISABLE): Likewise.
30439 [IS_IN (librt)] (CDISABLE): Likewise.
30440 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30441 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30442 definition.
30443 (PSEUDO_END): Likewise.
30444 [IS_IN (libpthread)] (CENABLE): Likewise.
30445 [IS_IN (libpthread)] (CDISABLE): Likewise.
30446 [IS_IN (libc)] (CENABLE): Likewise.
30447 [IS_IN (libc)] (CENABLE): Likewise.
30448 [IS_IN (librt)] (CDISABLE): Likewise.
30449 [IS_IN (librt)] (CDISABLE): Likewise.
30450 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30451 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30452 definition.
30453 (PSEUDO_END): Likewise.
30454 [IS_IN (libpthread)] (CENABLE): Likewise.
30455 [IS_IN (libpthread)] (CDISABLE): Likewise.
30456 [IS_IN (libc)] (CENABLE): Likewise.
30457 [IS_IN (libc)] (CENABLE): Likewise.
30458 [IS_IN (librt)] (CDISABLE): Likewise.
30459 [IS_IN (librt)] (CDISABLE): Likewise.
30460 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30461 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30462 definition.
30463 (PSEUDO_END): Likewise.
30464 [IS_IN (libpthread)] (CENABLE): Likewise.
30465 [IS_IN (libpthread)] (CDISABLE): Likewise.
30466 [IS_IN (libc)] (CENABLE): Likewise.
30467 [IS_IN (libc)] (CENABLE): Likewise.
30468 [IS_IN (librt)] (CDISABLE): Likewise.
30469 [IS_IN (librt)] (CDISABLE): Likewise.
30470 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30471 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30472 definition.
30473 (PSEUDO_END): Likewise.
30474 [IS_IN (libpthread)] (CENABLE): Likewise.
30475 [IS_IN (libpthread)] (CDISABLE): Likewise.
30476 [IS_IN (libc)] (CENABLE): Likewise.
30477 [IS_IN (libc)] (CENABLE): Likewise.
30478 [IS_IN (librt)] (CDISABLE): Likewise.
30479 [IS_IN (librt)] (CDISABLE): Likewise.
30480 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30481 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30482 Remove definition.
30483 (PSEUDO_END): Likewise.
30484 [IS_IN (libpthread)] (CENABLE): Likewise.
30485 [IS_IN (libpthread)] (CDISABLE): Likewise.
30486 [IS_IN (libc)] (CENABLE): Likewise.
30487 [IS_IN (libc)] (CENABLE): Likewise.
30488 [IS_IN (librt)] (CDISABLE): Likewise.
30489 [IS_IN (librt)] (CDISABLE): Likewise.
30490 (SINGLE_THREAD_P): Likewise.
30491 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30492 definition.
30493 (PSEUDO_END): Likewise.
30494 [IS_IN (libpthread)] (CENABLE): Likewise.
30495 [IS_IN (libpthread)] (CDISABLE): Likewise.
30496 [IS_IN (libc)] (CENABLE): Likewise.
30497 [IS_IN (libc)] (CENABLE): Likewise.
30498 [IS_IN (librt)] (CDISABLE): Likewise.
30499 [IS_IN (librt)] (CDISABLE): Likewise.
30500 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30501 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30502 definition.
30503 (PSEUDO_END): Likewise.
30504 [IS_IN (libpthread)] (CENABLE): Likewise.
30505 [IS_IN (libpthread)] (CDISABLE): Likewise.
30506 [IS_IN (libc)] (CENABLE): Likewise.
30507 [IS_IN (libc)] (CENABLE): Likewise.
30508 [IS_IN (librt)] (CDISABLE): Likewise.
30509 [IS_IN (librt)] (CDISABLE): Likewise.
30510 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30511 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30512 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30513 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30514 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30515 definition.
30516 (PSEUDO_END): Likewise.
30517 [IS_IN (libpthread)] (CENABLE): Likewise.
30518 [IS_IN (libpthread)] (CDISABLE): Likewise.
30519 [IS_IN (libc)] (CENABLE): Likewise.
30520 [IS_IN (libc)] (CENABLE): Likewise.
30521 [IS_IN (librt)] (CDISABLE): Likewise.
30522 [IS_IN (librt)] (CDISABLE): Likewise.
30523 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30524 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30525 definition.
30526 (PSEUDO_END): Likewise.
30527 [IS_IN (libpthread)] (CENABLE): Likewise.
30528 [IS_IN (libpthread)] (CDISABLE): Likewise.
30529 [IS_IN (libc)] (CENABLE): Likewise.
30530 [IS_IN (libc)] (CENABLE): Likewise.
30531 [IS_IN (librt)] (CDISABLE): Likewise.
30532 [IS_IN (librt)] (CDISABLE): Likewise.
30533 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30534 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30535 definition.
30536 (PSEUDO_END): Likewise.
30537 [IS_IN (libpthread)] (CENABLE): Likewise.
30538 [IS_IN (libpthread)] (CDISABLE): Likewise.
30539 [IS_IN (libc)] (CENABLE): Likewise.
30540 [IS_IN (libc)] (CENABLE): Likewise.
30541 [IS_IN (librt)] (CDISABLE): Likewise.
30542 [IS_IN (librt)] (CDISABLE): Likewise.
30543 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30544 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30545 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30546 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30547 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30548 definition.
30549 (PSEUDO_END): Likewise.
30550 [IS_IN (libpthread)] (CENABLE): Likewise.
30551 [IS_IN (libpthread)] (CDISABLE): Likewise.
30552 [IS_IN (libc)] (CENABLE): Likewise.
30553 [IS_IN (libc)] (CENABLE): Likewise.
30554 [IS_IN (librt)] (CDISABLE): Likewise.
30555 [IS_IN (librt)] (CDISABLE): Likewise.
30556 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30557 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30558 definition.
30559 (PSEUDO_END): Likewise.
30560 [IS_IN (libpthread)] (CENABLE): Likewise.
30561 [IS_IN (libpthread)] (CDISABLE): Likewise.
30562 [IS_IN (libc)] (CENABLE): Likewise.
30563 [IS_IN (libc)] (CENABLE): Likewise.
30564 [IS_IN (librt)] (CDISABLE): Likewise.
30565 [IS_IN (librt)] (CDISABLE): Likewise.
30566 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30567
30568 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30569
30570 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30571
30572 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30573
30574 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30575
30576 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30577
30578 [BZ #21982]
30579 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30580 middle and outer with size_t instead of int. Repleace %d and
30581 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30582 "MAX (outer, nchars - 64)" to support unsigned outer and
30583 nchars. Also exit loop when outer == 0.
30584
30585 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30586
30587 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30588 * include/signal.h (__sigsuspend_nocancel): Likewise.
30589 * include/time.h (__nanosleep_nocancel): Likewise.
30590 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30591 * login/utmp_file.c: Include non cancellable syscall header.
30592 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30593 prototype.
30594
30595 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30596
30597 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30598 .byte sequences with AVX512F instructions.
30599 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30600 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30601 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30602 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30603 Likewise.
30604 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30605 Likewise.
30606
30607 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30608 Steve Ellcey <sellcey@cavium.com>
30609
30610 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30611 Use PTR_REG macro in cmp instruction.
30612
30613 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30614
30615 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30616 Change the return type of the ifunc resolver to match the return
30617 type of the target function.
30618
30619 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30620
30621 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30622 (preadv64): Likewise.
30623 (pwrite64(: Likewise.
30624 (pwritev64): Likewise.
30625
30626 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30627 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30628 (LOAD_ARGS_0): Likewise.
30629 (LOAD_ARGS_1): Likewise.
30630 (LOAD_ARGS_2): Likewise.
30631 (LOAD_ARGS_3): Likewise.
30632 (LOAD_ARGS_4): Likewise.
30633 (LOAD_ARGS_5): Likewise.
30634 (LOAD_ARGS_6): Likewise.
30635 (LOAD_REGS_0): Likewise.
30636 (LOAD_REGS_1): Likewise.
30637 (LOAD_REGS_2): Likewise.
30638 (LOAD_REGS_3): Likewise.
30639 (LOAD_REGS_4): Likewise.
30640 (LOAD_REGS_5): Likewise.
30641 (LOAD_REGS_6): Likewise.
30642 (ASM_ARGS_0): Likewise.
30643 (ASM_ARGS_1): Likewise.
30644 (ASM_ARGS_2): Likewise.
30645 (ASM_ARGS_3): Likewise.
30646 (ASM_ARGS_4): Likewise.
30647 (ASM_ARGS_5): Likewise.
30648 (ASM_ARGS_6): Likewise.
30649 (LOAD_ARGS_TYPES_1): Likewise.
30650 (LOAD_ARGS_TYPES_2): Likewise.
30651 (LOAD_ARGS_TYPES_3): Likewise.
30652 (LOAD_ARGS_TYPES_4): Likewise.
30653 (LOAD_ARGS_TYPES_5): Likewise.
30654 (LOAD_ARGS_TYPES_6): Likewise.
30655 (LOAD_REGS_TYPES_1): Likewise.
30656 (LOAD_REGS_TYPES_2): Likewise.
30657 (LOAD_REGS_TYPES_3): Likewise.
30658 (LOAD_REGS_TYPES_4): Likewise.
30659 (LOAD_REGS_TYPES_5): Likewise.
30660 (LOAD_REGS_TYPES_6): Likewise.
30661 (TYPEFY): New define.
30662 (ARGIFY): Likewise.
30663 (internal_syscall0): Likewise.
30664 (internal_syscall1): Likewise.
30665 (internal_syscall2): Likewise.
30666 (internal_syscall3): Likewise.
30667 (internal_syscall4): Likewise.
30668 (internal_syscall5): Likewise.
30669 (internal_syscall6): Likewise.
30670 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30671 (INTERNAL_SYSCALL_NCS): Remove define.
30672 (internal_syscall1): Add define.
30673
30674 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30675
30676 * math/w_remainder_compat.c: Remove duplicate inclusion of
30677 math-svid-compat.h.
30678 * math/w_remainderf_compat.c: Likewise.
30679 * math/w_remainderl_compat.c: Likewise.
30680
30681 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30682
30683 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30684
30685 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30686
30687 [BZ #21684]
30688 * math/tgmath.h (__floating_type): Simplify definitions.
30689 (__real_integer_type): New macro.
30690 (__complex_integer_type): Likewise.
30691 (__expr_is_real): Likewise.
30692 (__tgmath_real_type_sub): Update comment to describe handling of
30693 complex types.
30694 (__tgmath_complex_type_sub): New macro.
30695 (__tgmath_complex_type): Likewise.
30696 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30697 (__TGMATH_CF128): Use __expr_is_real.
30698 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30699 __expr_is_real.
30700 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30701 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30702 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30703 integer types.
30704
30705 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30706
30707 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30708 macro.
30709 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30710 alias.
30711 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30712 Likewise.
30713
30714 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30715 nanosleep_not_cancel with __nanosleep_nocancel.
30716 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30717 (__nanosleep_nocancel): New macro.
30718 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30719 function.
30720 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30721 macro.
30722 (__nanosleep_nocancel): New prototype.
30723
30724 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30725 pause_not_cancel with __pause_nocancel.
30726 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30727 (__pause_nocancel): New macro.
30728 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30729 macro.
30730 (__pause_nocancel): New prototype.
30731 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30732
30733 2017-08-22 Martin Sebor <msebor@redhat.com>
30734
30735 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30736 to return a pointer to the same type as the target function.
30737
30738 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30739
30740 [BZ #18822]
30741 [BZ #21986]
30742 * include/printf.h (__printf_fphex): Add attribute_hidden.
30743 (__guess_grouping): New prototype.
30744 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30745 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30746 libc_hidden_proto and libc_hidden_def.
30747 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30748 (__vstrfmon_l): Remove the third argument passed to
30749 __guess_grouping.
30750
30751 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30752
30753 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30754 definition for issignaling that does not rely on __MATH_TG,
30755 since __MATH_TG uses __builtin_types_compatible_p, which is only
30756 available in C mode.
30757 (CFLAGS-test-math-issignaling.cc): New variable.
30758 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30759 * math/test-math-issignaling.cc: New test for C++ implementation
30760 of type-generic issignaling.
30761 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30762 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30763 options of test-math-issignaling on powerpc64le.
30764
30765 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30766
30767 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30768 building libc.a.
30769 (hidden_proto): Likewise.
30770 (hidden_tls_proto): Likewise.
30771 (__hidden_proto): Likewise.
30772
30773 2017-08-22 Florian Weimer <fweimer@redhat.com>
30774
30775 math: Statically link tests of internal functionality.
30776 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30777 atest-exp2.
30778 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30779 (gmp-objs): Remove assignment.
30780 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30781
30782 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30783
30784 [BZ #21987]
30785 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30786 and copy to ...
30787 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30788 ... here.
30789 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30790 ... and here.
30791
30792 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30793 variable definitions above inclusion of ../Rules.
30794
30795 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30796
30797 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30798 case calling __builtin_unreachable.
30799
30800 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30801
30802 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30803 __waitpid_nocancel.
30804 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30805 (__waitpid_nocancel): New macro.
30806 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30807 macro.
30808 (__waitpid_nocancel): Replace macro with a function.
30809 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30810 function.
30811
30812 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30813 __fcntl_nocancel.
30814 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30815 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30816
30817 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30818 __writev_nocancel_nostatus.
30819 (write_call_graph): Likewise.
30820 (write_bb_counts): Likewise.
30821 * resolv/herror.c (herror): Likewise.
30822 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30823 macro.
30824 (__writev_nocancel_nostatus): New macro.
30825 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30826 Remove macro.
30827 (__writev_nocancel_nostatus): New function.
30828
30829 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30830
30831 Revert:
30832 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30833
30834 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30835 building libc.a.
30836 (hidden_proto): Likewise.
30837 (hidden_tls_proto): Likewise.
30838 (__hidden_proto): Likewise.
30839
30840 [BZ #21973]
30841 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30842 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30844 Likewise.
30845 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30846 Likewise.
30847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30848 Likewise.
30849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30850 Likewise.
30851 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30852 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30853 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30854 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30855 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30856 GLIBC_2.0 sqrtl symbol.
30857
30858 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30859 [__USE_MISC] (_LIB_VERSION): Likewise.
30860 [__USE_MISC] (struct exception): Likewise.
30861 [__USE_MISC] (matherr): Likewise.
30862 [__USE_MISC] (DOMAIN): Likewise.
30863 [__USE_MISC] (SING): Likewise.
30864 [__USE_MISC] (OVERFLOW): Likewise.
30865 [__USE_MISC] (UNDERFLOW): Likewise.
30866 [__USE_MISC] (TLOSS): Likewise.
30867 [__USE_MISC] (PLOSS): Likewise.
30868 [__USE_MISC] (HUGE): Likewise.
30869 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30870 * math/math-svid-compat.h: New file.
30871 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30872 and matherrl.
30873 * include/math.h [!_ISOMAC] (__matherr): Remove.
30874 * manual/arith.texi (FP Exceptions): Do not document matherr.
30875 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30876 (tests-internal): New variable.
30877 (install-lib): Do not add libieee.a.
30878 (non-lib.a): Likewise.
30879 (extra-objs): Do not add libieee.a and ieee-math.o.
30880 (CPPFLAGS-s_lib_version.c): Remove variable.
30881 ($(objpfx)libieee.a): Remove rule.
30882 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30883 * math/ieee-math.c: Remove.
30884 * math/libm-test-support.c (matherr): Remove.
30885 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30886 and license notices. Include <math-svid-compat.h> and
30887 <shlib-compat.h>.
30888 (matherr): Undefine as macro. Use compat_symbol_reference.
30889 (_LIB_VERSION): Likewise.
30890 * math/test-matherr-2.c: New file.
30891 * math/test-matherr-3.c: Likewise.
30892 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30893 declaration.
30894 (__kernel_standard_f): Likewise.
30895 (__kernel_standard_l): Likewise.
30896 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30897 <math_private.h>. Include <math-svid-compat.h>.
30898 (_LIB_VERSION): Undefine as macro.
30899 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30900 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30901 [LIBM_SVID_COMPAT], use compat_symbol.
30902 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30903 <math_private.h>. Include <math-svid-compat.h>.
30904 (matherr): Undefine as macro.
30905 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30906 compat_symbol.
30907 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30908 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30909 compat_symbol_reference.
30910 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30911 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30912 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30913 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30914 (MATHERR_D): Remove declaration.
30915 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30916 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30917 [LIBM_BUILD] (pmatherrf): Likewise.
30918 [LIBM_BUILD] (pmatherr): Likewise.
30919 [LIBM_BUILD] (pmatherrl): Likewise.
30920 (DOMAIN): Likewise.
30921 (SING): Likewise.
30922 (OVERFLOW): Likewise.
30923 (UNDERFLOW): Likewise.
30924 (TLOSS): Likewise.
30925 (PLOSS): Likewise.
30926 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30927 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30928 compat_symbol.
30929 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30930 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30931 compat_symbol.
30932 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30933 * math/w_acos_compat.c: Likewise.
30934 * math/w_acosf_compat.c: Likewise.
30935 * math/w_acosh_compat.c: Likewise.
30936 * math/w_acoshf_compat.c: Likewise.
30937 * math/w_acoshl_compat.c: Likewise.
30938 * math/w_acosl_compat.c: Likewise.
30939 * math/w_asin_compat.c: Likewise.
30940 * math/w_asinf_compat.c: Likewise.
30941 * math/w_asinl_compat.c: Likewise.
30942 * math/w_atan2_compat.c: Likewise.
30943 * math/w_atan2f_compat.c: Likewise.
30944 * math/w_atan2l_compat.c: Likewise.
30945 * math/w_atanh_compat.c: Likewise.
30946 * math/w_atanhf_compat.c: Likewise.
30947 * math/w_atanhl_compat.c: Likewise.
30948 * math/w_cosh_compat.c: Likewise.
30949 * math/w_coshf_compat.c: Likewise.
30950 * math/w_coshl_compat.c: Likewise.
30951 * math/w_exp10_compat.c: Likewise.
30952 * math/w_exp10f_compat.c: Likewise.
30953 * math/w_exp10l_compat.c: Likewise.
30954 * math/w_exp2_compat.c: Likewise.
30955 * math/w_exp2f_compat.c: Likewise.
30956 * math/w_exp2l_compat.c: Likewise.
30957 * math/w_fmod_compat.c: Likewise.
30958 * math/w_fmodf_compat.c: Likewise.
30959 * math/w_fmodl_compat.c: Likewise.
30960 * math/w_hypot_compat.c: Likewise.
30961 * math/w_hypotf_compat.c: Likewise.
30962 * math/w_hypotl_compat.c: Likewise.
30963 * math/w_j0_compat.c: Likewise.
30964 * math/w_j0f_compat.c: Likewise.
30965 * math/w_j0l_compat.c: Likewise.
30966 * math/w_j1_compat.c: Likewise.
30967 * math/w_j1f_compat.c: Likewise.
30968 * math/w_j1l_compat.c: Likewise.
30969 * math/w_jn_compat.c: Likewise.
30970 * math/w_jnf_compat.c: Likewise.
30971 * math/w_jnl_compat.c: Likewise.
30972 * math/w_lgamma_main.c: Likewise.
30973 * math/w_lgamma_r_compat.c: Likewise.
30974 * math/w_lgammaf_main.c: Likewise.
30975 * math/w_lgammaf_r_compat.c: Likewise.
30976 * math/w_lgammal_main.c: Likewise.
30977 * math/w_lgammal_r_compat.c: Likewise.
30978 * math/w_log10_compat.c: Likewise.
30979 * math/w_log10f_compat.c: Likewise.
30980 * math/w_log10l_compat.c: Likewise.
30981 * math/w_log2_compat.c: Likewise.
30982 * math/w_log2f_compat.c: Likewise.
30983 * math/w_log2l_compat.c: Likewise.
30984 * math/w_log_compat.c: Likewise.
30985 * math/w_logf_compat.c: Likewise.
30986 * math/w_logl_compat.c: Likewise.
30987 * math/w_pow_compat.c: Likewise.
30988 * math/w_powf_compat.c: Likewise.
30989 * math/w_powl_compat.c: Likewise.
30990 * math/w_remainder_compat.c: Likewise.
30991 * math/w_remainderf_compat.c: Likewise.
30992 * math/w_remainderl_compat.c: Likewise.
30993 * math/w_scalb_compat.c: Likewise.
30994 * math/w_scalbf_compat.c: Likewise.
30995 * math/w_scalbl_compat.c: Likewise.
30996 * math/w_sinh_compat.c: Likewise.
30997 * math/w_sinhf_compat.c: Likewise.
30998 * math/w_sinhl_compat.c: Likewise.
30999 * math/w_sqrt_compat.c: Likewise.
31000 * math/w_sqrtf_compat.c: Likewise.
31001 * math/w_sqrtl_compat.c: Likewise.
31002 * math/w_tgamma_compat.c: Likewise.
31003 * math/w_tgammaf_compat.c: Likewise.
31004 * math/w_tgammal_compat.c: Likewise.
31005 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
31006 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
31007 * sysdeps/ieee754/k_standard.c: Likewise.
31008 * sysdeps/ieee754/k_standardf.c: Likewise.
31009 * sysdeps/ieee754/k_standardl.c: Likewise.
31010 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
31011 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
31012 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
31013 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
31014 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
31015 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
31016 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
31017 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
31018 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
31019 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
31020 Likewise.
31021 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
31022 Likewise.
31023 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
31024 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
31025 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
31026 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
31027
31028 2017-08-21 Florian Weimer <fweimer@redhat.com>
31029
31030 [BZ #21864]
31031 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
31032 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
31033 Move before inclusion of ../Rules.
31034
31035 2017-08-21 Florian Weimer <fweimer@redhat.com>
31036
31037 [BZ #21972]
31038 * assert/assert.h (assert): Use static_cast (bool) for C++.
31039 Use the ternary operator in the warning branch for GNU C.
31040 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
31041 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
31042 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
31043 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
31044 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
31045
31046 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31047
31048 [BZ #18822]
31049 * sysdeps/unix/sysv/linux/x86_64/init-first.c
31050 (__syscall_clock_gettime): Add attribute_hidden.
31051 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
31052 (__start_context): Likewise.
31053
31054 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31055
31056 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
31057 building libc.a.
31058 (hidden_proto): Likewise.
31059 (hidden_tls_proto): Likewise.
31060 (__hidden_proto): Likewise.
31061
31062 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31063
31064 * include/libc-symbols.h (attribute_hidden): Enable hidden
31065 visibility in libc.a compiled with PIE.
31066
31067 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31068
31069 [BZ #18822]
31070 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
31071 Add attribute_hidden.
31072
31073 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31074
31075 [BZ #21864]
31076 * Makerules (all-nonlib): Add $(others-extras).
31077 * catgets/Makefile (others-extras): New.
31078 * elf/Makefile (others-extras): Likewise.
31079 * nss/Makefile (others-extras): Likewise.
31080
31081 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31082
31083 [BZ #18822]
31084 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31085 * elf/dl-open.c: Include <libc-internal.h>.
31086 (__libc_multiple_libcs): Removed.
31087 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31088 <hp-timing.h>.
31089 * include/libc-internal.h (__libc_multiple_libcs): New.
31090 * misc/sbrk.c: Include <libc-internal.h>.
31091 (__libc_multiple_libcs): Removed.
31092
31093 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31094
31095 [BZ #18822]
31096 * grp/initgroups.c (__nss_group_database): Removed.
31097 (__nss_initgroups_database): Likewise.
31098 * nscd/gai.c (__nss_hosts_database): Likewise.
31099 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31100 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31101 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31102 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31103 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31104 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31105 attribute_hidden.
31106 * nss/nsswitch.c (__nss_database_custom): Define only if
31107 USE_NSCD is defined.
31108 (__nss_configure_lookup): Use __nss_database_custom only if
31109 USE_NSCD is defined.
31110 * nss/nsswitch.h (__nss_database_custom): Declare only if
31111 USE_NSCD is defined. Add attribute_hidden.
31112 (__nss_setent): Add attribute_hidden.
31113 (__nss_endent): Likewise.
31114 (__nss_getent_r): Likewise.
31115 (__nss_getent): Likewise.
31116 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31117
31118 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31119
31120 [BZ #18822]
31121 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31122 libc_hidden_proto and libc_hidden_def.
31123
31124 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31125
31126 [BZ #18822]
31127 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31128 Add libc_hidden_proto.
31129 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31130 Add libc_hidden_def.
31131
31132 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31133
31134 [BZ #21974]
31135 * gmon/Makefile (routines): Remove bb_init_func and
31136 bb_exit_func.
31137 (elide-routines.os): Removed.
31138 * gmon/bb_exit_func.c: Likewise.
31139 * gmon/bb_init_func.c: Likewise.
31140 * include/sys/gmon.h (__bb): Likewise.
31141 (__bb_init_func): Likewise.
31142 (__bb_exit_func): Likewise.
31143 * sysdeps/alpha/bb_init_func.S: Likewise.
31144
31145 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31146
31147 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31148 * include/setjmp.h (____longjmp_chk): Here. Add
31149 attribute_hidden.
31150
31151 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31152
31153 [BZ #18822]
31154 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31155 attribute_hidden.
31156 (__strspn_sse2): Likewise.
31157
31158 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31159
31160 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31161 (close_not_cancel_no_status): Likewise.
31162 (__close_nocancel): New macro.
31163 (__close_nocancel_nostatus): Likewise.
31164 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31165 macro.
31166 (close_not_cancel): Likewise.
31167 (close_not_cancel_no_status): Likewise.
31168 (__close_nocancel): New prototype.
31169 (__close_nocancel_nostatus): New function.
31170 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31171 * catgets/open_catalog.c (__open_catalog): Replace
31172 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31173 * gmon/gmon.c (write_gmon): Likewise.
31174 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31175 * intl/loadmsgcat.c (close): Likewise.
31176 * io/ftw.c (open_dir_stream): Likewise.
31177 (ftw_startup): Likewise.
31178 * libio/fileops.c (_IO_file_open): Likewise.
31179 (_IO_file_close_mmap): Likewise.
31180 (_IO_file_close): Likewise.
31181 * libio/iopopen.c (_IO_dup2): Likewise.
31182 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31183 * locale/loadlocale.c (_nl_load_locale): Likewise.
31184 * login/utmp_file.c (pututline_file): Likewise.
31185 (endutent_file): Likewise.
31186 * misc/daemon.c (daemon): Likewise.
31187 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31188 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31189 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31190 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31191 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31192 * nscd/nscd_helper.c (open_socket): Likewise.
31193 (__nscd_open_socket): Likewise.
31194 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31195 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31196 (__nscd_innetgr): Likewise.
31197 * nss/nss_db/db-open.c (internal_setent): Likewise.
31198 * resolv/res-close.c (__res_iclose): Likewise.
31199 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31200 * sysdeps/posix/closedir.c (__closedir): Likewise.
31201 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31202 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31203 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31204 (opendir_tail): Likewise.
31205 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31206 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31207 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31208 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31209 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31210 (gethostid): Likewise.
31211 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31212 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31213 Likewise.
31214 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31215 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31216 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31217 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31218 Likewise.
31219 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31220 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31221 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31222 Likewise.
31223 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31224 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31225 Likewise.
31226 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31227 Likewise.
31228 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31229 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31230 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31231 __close_nocancel.
31232
31233 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31234 (openat_not_cancel_3): Likewise.
31235 (openat64_not_cancel_3): Likewise).
31236 (openat_not_cancel_3): Likewise).
31237 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31238 macro.
31239 (openat_not_cancel_3): Likewise.
31240 (openat64_not_cancel): Likewise.
31241 (openat64_not_cancel_3): Likewise.
31242 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31243 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31244 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31245 __open{64}_nocancel.
31246 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31247 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31248 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31249
31250 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31251
31252 [BZ #18822]
31253 * include/argz.h (__argz_create_sep): New function prototype.
31254 (__argz_append): Likewise.
31255 (__argz_add): Likewise.
31256 (__argz_add_sep): Likewise.
31257 (__argz_delete): Likewise.
31258 (__argz_insert): Likewise.
31259 (__argz_replace): Likewise.
31260 * string/argz.h (__argz_create_sep): Removed.
31261 (__argz_append): Likewise.
31262 (__argz_add): Likewise.
31263 (__argz_add_sep): Likewise.
31264 (__argz_delete): Likewise.
31265 (__argz_insert): Likewise.
31266 (__argz_replace): Likewise.
31267
31268 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31269
31270 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31271 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31272 (GNU_PROPERTY_STACK_SIZE): Likewie.
31273 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31274 (GNU_PROPERTY_LOPROC): Likewise.
31275 (GNU_PROPERTY_HIPROC): Likewise.
31276 (GNU_PROPERTY_LOUSER): Likewise.
31277 (GNU_PROPERTY_HIUSER): Likewise.
31278 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31279 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31280 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31281 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31282 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31283 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31284 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31285 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31286 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31287 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31288 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31289 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31290 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31291 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31292 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31293 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31294 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31295 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31296 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31297 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31298 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31299 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31300 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31301
31302 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31303
31304 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31305 in C++ mode.
31306
31307 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31308
31309 [BZ #21930]
31310 * math/math.h (isinf): Check if in C or C++ mode before using
31311 __builtin_types_compatible_p, since this is a C mode feature.
31312
31313 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31314
31315 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31316 (__write_nocancel): New macro.
31317 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31318 Rewrite as a function prototype.
31319 (write_not_cancel): Remove macro.
31320 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31321 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31322 (write_gmon): Likewise.
31323 * libio/fileops.c (_IO_new_file_write): Likewise.
31324 * login/utmp_file.c (pututline_file): Likewise.
31325 (updwtmp_file): Likewise.
31326 * stdio-common/psiginfo.c (psiginfo): Likewise.
31327 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31328 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31329 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31330 Likewise.
31331 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31332 Likewise.
31333
31334 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31335 (__read_nocancel): New macro.
31336 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31337 __read_nocancel.
31338 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31339 macro.
31340 (__read_nocancel): New prototype.
31341 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31342 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31343 with __read_nocancel.
31344 * intl/loadmsgcat.c (read): Likewise.
31345 * libio/fileops.c (_IO_file_read): Likewise.
31346 * locale/loadlocale.c (_nl_load_locale): Likewise.
31347 * login/utmp_file.c (getutent_r_file): Likewise.
31348 (internal_getut_r): Likewise.
31349 (getutline_r_file): Likewise.
31350 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31351 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31352 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31353 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31354 Likewise.
31355 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31356 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31357 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31358 Likewise.
31359 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31360 Likewise.
31361 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31362 Likewise.
31363 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31364 Likewise.
31365 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31366
31367 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31368
31369 [BZ #21966]
31370 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31371 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31372 usable.
31373
31374 2017-08-17 DJ Delorie <dj@redhat.com>
31375
31376 * bug17079.c: Update to new test harness.
31377 * test-digits-dots.c: Likewise.
31378 * test-netdb.c: Likewise.
31379 * tst-field.c: Likewise.
31380 * tst-nss-getpwent.c: Likewise.
31381 * tst-nss-static.c: Likewise.
31382 * tst-nss-test1.c: Likewise.
31383 * tst-nss-test2.c: Likewise.
31384 * tst-nss-test3.c: Likewise.
31385 * tst-nss-test4.c: Likewise.
31386 * tst-nss-test5.c: Likewise.
31387
31388 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31389
31390 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31391 (open_not_cancel_2): Likewise.
31392 (open_nocancel): New macro.
31393 (open64_nocancel): Likewise.
31394 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31395 (open_not_cancel_2): Likewise.
31396 (__open_nocancel): New prototype.
31397 (__open64_nocancel): Likewise.
31398 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31399 __open_nocancel.
31400 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31401 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31402 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31403 with __open_nocancel.
31404 * csu/check_fds.c (check_one_fd): Likewise.
31405 * gmon/gmon.c (write_gmon): Likewise.
31406 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31407 * intl/loadmsgcat.c (open): Likewise.
31408 * libio/fileops.c (_IO_file_open): Likewise.
31409 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31410 * locale/loadlocale.c (_nl_load_locale): Likewise.
31411 * login/utmp_file.c (setutent_file): Likewise.
31412 * misc/daemon.c (daemon): Likewise.
31413 * nss/nss_db/db-open.c (internal_setent): Likewise.
31414 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31415 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31416 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31417 (__opendir): Likewise.
31418 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31419 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31420 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31421 (gethostid): Likewise.
31422 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31423 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31424 Likewise.
31425 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31426 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31427 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31428 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31429 Likewise.
31430 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31431 Likewise.
31432 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31433 Likewise.
31434 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31435 Likewise.
31436 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31437 Likewise.
31438 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31439 Likewise.
31440 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31441 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31442
31443 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31444
31445 * benchtests/bench-skeleton.c (main): Add support for
31446 latency benchmarking.
31447 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31448
31449 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31450
31451 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31452 the startup object.
31453
31454 2017-08-17 Florian Weimer <fweimer@redhat.com>
31455
31456 * include/sys/socket.h (__opensock): Remove internal_function.
31457 * socket/opensock.c (__opensock): Likewise.
31458 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31459
31460 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31461
31462 [BZ #21944]
31463 * signal/bits/types/__sigval_t.h: New file.
31464 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31465 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31466 and define sigval_t using __sigval_t.
31467 * include/bits/types/__sigval_t.h: New file.
31468 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31469 instead of <bits/types/__sigval_t.h>.
31470 (struct sigevent): Use __sigval_t instead of sigval_t.
31471 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31472 instead of <bits/types/__sigval_t.h>.
31473 (siginfo_t): Use __sigval_t instead of sigval_t.
31474 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31475 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31476 (struct sigevent): Use __sigval_t instead of sigval_t.
31477 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31478 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31479 (siginfo_t): Use __sigval_t instead of sigval_t.
31480 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31481
31482 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31483
31484 * NEWS: Remove "[Add new features here]" for 2.27.
31485
31486 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31487
31488 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31489 libc.so.
31490
31491 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31492
31493 * NEWS: Mention x86-64 FMA optimization.
31494
31495 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31496
31497 [BZ #21912]
31498 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31499 Add e_expf-fma.
31500 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31501 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31502 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31503
31504 2017-08-16 Andreas Schwab <schwab@suse.de>
31505
31506 [BZ #16750]
31507 CVE-2009-5064
31508 * elf/ldd.bash.in: Never run file directly.
31509
31510 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31511
31512 [BZ #21955]
31513 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31514 (L(SP_INF_0)): Likewise.
31515
31516 2017-08-15 Florian Weimer <fweimer@redhat.com>
31517
31518 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31519 run-built-tests.
31520
31521 2017-08-15 Florian Weimer <fweimer@redhat.com>
31522
31523 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31524 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31525 BROKEN_THREAD_SIGNALS code.
31526 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31527 request_list): Remove caller_pid member used for
31528 BROKEN_THREAD_SIGNALS.
31529 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31530 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31531 Remove BROKEN_THREAD_SIGNALS support.
31532 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31533 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31534
31535 2017-08-15 Florian Weimer <fweimer@redhat.com>
31536
31537 * gmon/Makefile (tests): Add tst-gmon.
31538 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31539 Set.
31540 (tests-special): Add tst-gmon-prof.out.
31541 (tst-gmon.out): Depend on clean-tst-gmon-data.
31542 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31543 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31544 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31545 startup object.
31546 * aclocal.m4 (GPROF): Set and substitute.
31547 * config.amke.in (GPROF): Set.
31548 * configure: Regenerate.
31549
31550 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31551
31552 * elf/elf.h A (NT_PPC_TAR): New macro.
31553 (NT_PPC_PPR): Likewise.
31554 (NT_PPC_DSCR): Likewise.
31555 (NT_PPC_EBB): Likewise.
31556 (NT_PPC_PMU): Likewise.
31557 (NT_PPC_TM_CGPR): Likewise.
31558 (NT_PPC_TM_CFPR): Likewise.
31559 (NT_PPC_TM_CVMX): Likewise.
31560 (NT_PPC_TM_CVSX): Likewise.
31561 (NT_PPC_TM_SPR): Likewise.
31562 (NT_PPC_TM_CTAR): Likewise.
31563 (NT_PPC_TM_CPPR): Likewise.
31564 (NT_PPC_TM_CDSCR): Likewise.
31565
31566 2017-08-15 Florian Weimer <fweimer@redhat.com>
31567
31568 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31569 regparm (2) instead of internal_function.
31570 (_MCOUNT_DECL): Adjust.
31571
31572 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31573
31574 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31575 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31576
31577 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31578
31579 * conform/data/sys/wait.h-data (si_value): Do not expect for
31580 XPG42.
31581
31582 2017-08-14 Florian Weimer <fweimer@redhat.com>
31583
31584 [BZ #21962]
31585 NSS: Create stubs for accidentally exported lookup functions.
31586 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31587 Remove declaration.
31588 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31589 (ether_hostton): Call __nss_ethers_lookup2 instead.
31590 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31591 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31592 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31593 (setup): Call __nss_netgroup_lookup2 instead.
31594 * nss/Makefile (routines): Add compat-lookup.
31595 * nss/Versions (GLIBC_2.27): Add symbol version.
31596 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31597 (DB_COMPAT_FCT): Remove.
31598 * nss/compat-lookup.c: New file.
31599 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31600 from databases.def.
31601 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31602 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31603 (netname2user): Call __nss_publickey_lookup2 instead.
31604 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31605 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31606 instead.
31607
31608 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31609 Sergei Trofimovich <slyfox@inbox.ru>
31610
31611 [BZ #21908]
31612 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31613 Rename to MMAP2_PAGE_UNIT.
31614 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31615 __OFF_T_MATCHES_OFF64_T is not defined.
31616 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31617 uint64_t.
31618 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31619 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31620
31621 2017-08-14 Florian Weimer <fweimer@redhat.com>
31622
31623 i386: Do not set internal_function.
31624 * config.h.in (USE_REGPARMS, internal_function): Remove.
31625 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31626 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31627
31628 2017-08-14 Florian Weimer <fweimer@redhat.com>
31629
31630 * elf/dl-init.c (_dl_init): Remove internal_function.
31631 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31632 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31633
31634 2017-08-14 Florian Weimer <fweimer@redhat.com>
31635
31636 * elf/rtld.c (_dl_start): Remove internal_function.
31637 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31638 _dl_start.
31639
31640 2017-08-14 Florian Weimer <fweimer@redhat.com>
31641
31642 * elf/dl-fini.c (_dl_fini): Remove internal_function
31643 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31644
31645 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31646
31647 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31648 (bit_cpu_SHSTK): Likewise.
31649 (index_cpu_IBT): Likewise.
31650 (index_cpu_SHSTK): Likewise.
31651 (reg_IBT): Likewise.
31652 (reg_SHSTK): Likewise.
31653 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31654 Handle index_cpu_IBT and index_cpu_SHSTK.
31655
31656 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31657
31658 [BZ #19982]
31659 * po/fr.po: Fix spelling mistake.
31660
31661 2017-08-13 Florian Weimer <fweimer@redhat.com>
31662
31663 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31664 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31665 (_dl_catch_error, _dl_receive_error): Likewise.
31666 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31667 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31668 (_dl_deallocate_tls): Likewise.
31669 * include/dlfcn.h (_dl_addr): Likewise.
31670 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31671 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31672 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31673 Likewise.
31674
31675 2017-08-13 Florian Weimer <fweimer@redhat.com>
31676
31677 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31678 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31679 internal_function.
31680 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31681
31682 2017-08-13 Florian Weimer <fweimer@redhat.com>
31683
31684 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31685 internal_function.
31686 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31687 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31688 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31689 internal_function from _dl_make_stack_executable_hook member.
31690 (_dl_make_stack_executable): Remove internal_function.
31691 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31692 Likewise.
31693 * sysdeps/unix/sysv/linux/dl-execstack.c
31694 (_dl_make_stack_executable): Likewise.
31695
31696 2017-08-13 Florian Weimer <fweimer@redhat.com>
31697
31698 * sysdeps/unix/sysv/linux/netlinkaccess.h
31699 (__netlink_assert_response): Remove internal_function.
31700 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31701 (__netlink_assert_response): Likewise.
31702
31703 2017-08-13 Florian Weimer <fweimer@redhat.com>
31704
31705 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31706 internal_function.
31707 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31708
31709 2017-08-13 Florian Weimer <fweimer@redhat.com>
31710
31711 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31712 internal_function.
31713 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31714 * inet/netgroup.h (__internal_setnetgrent)
31715 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31716 * inet/getnetgrent_r.c (__internal_setnetgrent)
31717 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31718 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31719 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31720 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31721 * nss/nsswitch.h (db_lookup_function): Likewise.
31722
31723 2017-08-13 Florian Weimer <fweimer@redhat.com>
31724
31725 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31726 Remove internal_function.
31727 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31728 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31729 message argument on the stack.
31730 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31731 Likeweise.
31732
31733 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31734
31735 Adapt test case data to the changes in the thousands
31736 separators.
31737
31738 [BZ #20756]
31739 * localedata/tst-langinfo.sh: Adapt test case data.
31740 * stdlib/tst-strfmon_l.c: Likewise.
31741 * stdlib/tst-strtod4.c: Likewise.
31742 * stdlib/tst-strtod5i.c: Likewise.
31743
31744 2017-08-11 Florian Weimer <fweimer@redhat.com>
31745
31746 [BZ #21242]
31747 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31748 Suppress pedantic warning resulting from statement expression.
31749 (__ASSERT_FUNCTION): Add missing __extension__.
31750
31751 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31752
31753 * benchtests/bench-memmove-large.c: Print output in JSON
31754 format.
31755 * benchtests/bench-memmove.c: Likewise.
31756
31757 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31758 * benchtests/bench-memchr.c (do_one_test): Likewise.
31759 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31760 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31761 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31762 * benchtests/bench-memmove.c (do_one_test): Likewise.
31763 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31764 * benchtests/bench-memset.c (do_one_test): Likewise.
31765 * benchtests/bench-string.h (test_init): Remove memsets.
31766
31767 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31768
31769 * manual/lang.texi
31770 (Computing the Width of an Integer Data Type): Rename section to
31771 "Width of an Integer Type". Remove inaccurate statement regarding
31772 lack of C language facilities for determining width of integer
31773 types, and reorder content to improve flow and context of
31774 discussion.
31775
31776 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31777
31778 * lang.texi (va_copy): Change standard from ISO to C99.
31779 (__va_copy): Add standard and header annotation.
31780 Update description for clarity of origins and current use.
31781
31782 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31783
31784 [BZ #21941]
31785 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31786 xssqrtqp requires operands to be in Vector Registers
31787 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31788 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31789 (__ieee754_sqrtf128): Likewise.
31790
31791 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31792
31793 * sysdeps/aarch64/memcmp.S (memcmp):
31794 Rewrite of optimized memcmp.
31795
31796 2017-08-10 Florian Weimer <fweimer@redhat.com>
31797
31798 Introduce ld.so exceptions.
31799 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31800 (_dl_exception_create, _dl_exception_create_format)
31801 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31802 (_dl_catch_exception): Declare.
31803 (_dl_catch_error): Update comment.
31804 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31805 errstring, malloced members with exception member.
31806 (_dl_out_of_memory): Remove.
31807 (fatal_error): New function, extracted from _dl_signal_error.
31808 (_dl_signal_exception, _dl_signal_cexception): New functions.
31809 (_dl_signal_error): Call _dl_exception_create to allocate an
31810 exception object.
31811 (_dl_catch_exception): New function, based on _dl_catch_error.
31812 (_dl_catch_error): Implement using _dl_catch_exception.
31813 * elf/dl-exception.c: New file.
31814 * elf/Makefile (dl-routines): Add dl-exception.
31815 (elide-routines.os): Likewise.
31816 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31817 _dl_exception_create_format, _dl_exception_free.
31818 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31819 _dl_signal_exception.
31820 * elf/dl-lookup.c (make_string): Remove.
31821 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31822 _dl_signal_cexception, _dl_exception_free.
31823 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31824 _dl_signal_exception.
31825 * elf/dl-sym.c (do_sym): Likewise.
31826 * elf/dl-version.c (make_string): Remove.
31827 (match_symbol): Use _dl_exception_create_format,
31828 _dl_signal_cexception, _dl_exception_free.
31829 (_dl_check_map_versions): Likewise.
31830 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31831 _dl_catch_exception.
31832 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31833 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31834 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31835 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31836 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31837 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31838 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31839 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31840 Likewise.
31841 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31843 (ld.so): Likewise.
31844 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31845 (ld.so): Likewise.
31846 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31847 Likewise.
31848 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31849 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31850 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31851 Likewise.
31852 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31853 Likewise.
31854 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31855
31856 2017-08-10 Florian Weimer <fweimer@redhat.com>
31857
31858 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31859 attribute_hidden, internal_function.
31860 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31861 internal_function.
31862
31863 2017-08-10 Florian Weimer <fweimer@redhat.com>
31864
31865 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31866 function which calls __builtin_unreachable.
31867
31868 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31869
31870 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31871 Indian monetary formatting
31872 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31873 test cases.
31874
31875 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31876
31877 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31878 Fix typo in comment.
31879
31880 [BZ #21928]
31881 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31882 PTRACE_SEIZE_DEVEL): Remove.
31883 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31884 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31885 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31886 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31887 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31888
31889 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31890
31891 * posix/bits/types.h (__qaddr_t): Remove.
31892
31893 [BZ #21457]
31894 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31895 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31896 __glibc_reserved1.
31897 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31898 (ucontext_t): Use __ctx with uc_flags.
31899 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31900 (__ctxt): Likewise.
31901 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31902 __glibc_reserved1.
31903 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31904 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31905 __glibc_reserved1.
31906 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31907 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31908 __glibc_reserved1.
31909 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31910 macro.
31911 (ucontext_t): Use __ctx with uc_flags.
31912 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31913 (ucontext_t): Use __ctx with uc_flags.
31914 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31915 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31916 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31917 (ucontext_t): Use __ctx with uc_flags.
31918 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31919 undefine further down.
31920 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31921 __glibc_reserved1.
31922 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31923 undefine further down.
31924 (ucontext_t): Use __ctx with uc_flags.
31925 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31926 undefine further down.
31927 (ucontext_t): Use __ctx with uc_flags.
31928 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31929 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31930 Rename uc_pad to __glibc_reserved1.
31931 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31932 undefine further down.
31933 (ucontext_t): Use __ctx with uc_flags.
31934 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31935 further down.
31936 (ucontext_t): Use __ctx with uc_flags.
31937 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31938 __ctx with uc_flags.
31939 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31940 (ucontext_t): Use __ctx with uc_flags.
31941 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31942 __ctx with uc_flags.
31943
31944 2017-08-09 Florian Weimer <fweimer@redhat.com>
31945
31946 [BZ #21932]
31947 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31948 before early return.
31949
31950 2017-08-09 Andreas Schwab <schwab@suse.de>
31951
31952 [BZ #21041]
31953 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31954 renamed alias.
31955
31956 [BZ #21041]
31957 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31958 tst-compat-forwarder.
31959 (modules-names): Add tst-compat-forwarder-mod.
31960 ($(objpfx)tst-compat-forwarder): Depend on
31961 $(objpfx)tst-compat-forwarder-mod.so.
31962 * nptl/tst-compat-forwarder.c: New file.
31963 * nptl/tst-compat-forwarder-mod.c: New file.
31964
31965 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31966
31967 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31968 comments.
31969
31970 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31971 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31972 memcpy_falkor.
31973 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31974 Bump.
31975 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31976 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31977 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31978 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31979 Add falkor.
31980 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31981 New macro.
31982
31983 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31984
31985 [BZ #759]
31986 * manual/setjmp.texi (getcontex): Document uc_stack value
31987 compatibility differences.
31988
31989 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31990
31991 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31992 (old_malloc_hook): Likewise.
31993 (old_memalign_hook): Likewise.
31994 (old_realloc_hook): Likewise.
31995 (struct hdr): Likewise.
31996 (flood): Likewise.
31997 (freehook): Likewise.
31998 (mallochook): Likewise.
31999 (memalignhook): Likewise.
32000 (reallochook): Likewise.
32001 (mprobe): Likewise.
32002 * malloc/mtrace.c (mallwatch): Likewise.
32003 (tr_old_free_hook): Likewise.
32004 (tr_old_malloc_hook): Likewise.
32005 (tr_old_realloc_hook): Likewise.
32006 (tr_old_memalign_hook): Likewise.
32007 (tr_where): Likewise.
32008 (lock_and_info): Likewise.
32009 (tr_freehook): Likewise.
32010 (tr_mallochook): Likewise.
32011 (tr_reallochook): Likewise.
32012 (tr_memalignhook): Likewise.
32013 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
32014 * misc/mmap.c (__mmap): Likewise.
32015 * misc/mmap64.c (__mmap64): Likewise.
32016 * misc/mprotect.c (__mprotect): Likewise.
32017 * misc/msync.c (msync): Likewise.
32018 * misc/munmap.c (__munmap): Likewise.
32019 * posix/posix_madvise.c (posix_madvise): Likewise.
32020 * socket/send.c (__send): Likewise.
32021 * socket/sendto.c (__sendto): Likewise.
32022 * socket/setsockopt.c (__setsockopt): Likewise.
32023 * string/memcmp.c (__ptr_t): Remove macro.
32024 (MEMCMP): Use void * instead of ptr_t.
32025 * string/memrchr.c (__ptr_t): Remove macro.
32026 (__memrchr): Use void * instead of ptr_t.
32027 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
32028 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
32029 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
32030 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
32031 * sysdeps/mach/msync.c (msync): Likewise.
32032 * sysdeps/mach/munmap.c (__munmap): Likewise.
32033 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
32034 Likewise.
32035 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
32036 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
32037 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
32038 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
32039 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
32040 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
32041 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
32042 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
32043 Likewise.
32044 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
32045 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
32046 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
32047 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
32048 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
32049 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
32050 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
32051 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
32052 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
32053 Likewise.
32054 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
32055 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
32056 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
32057 (MEMCMP): Use void * instead of ptr_t.
32058 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
32059 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
32060
32061 2017-08-08 Florian Weimer <fweimer@redhat.com>
32062
32063 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
32064 return statement.
32065
32066 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
32067
32068 [BZ #21913]
32069 * csu/libc-tls.c: Include <startup.h> first.
32070 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
32071 * elf/dl-tunables.c: Include <startup.h> first.
32072 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
32073 * sysdeps/generic/startup.h: New file.
32074 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32075 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32076 (I386_USE_SYSENTER): New. Defined to 0.
32077
32078 2017-08-08 Andreas Schwab <schwab@suse.de>
32079
32080 [BZ #21041]
32081 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32082 * nptl/pt-system.c (system): Likewise.
32083
32084 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32085
32086 [BZ #21780]
32087 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32088 EOPNOTSUPP.
32089 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32090 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32091 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32092 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32093 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32094 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32095 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32096
32097 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32098
32099 [BZ #21899]
32100 * bits/sigaction.h (struct sigaction): Define sa_handler and
32101 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32102 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32103 [__USE_XOPEN_EXTENDED].
32104 (SA_RESTART): Likewise.
32105 (SA_NODEFER): Likewise.
32106 (SA_RESETHAND): Likewise.
32107 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32108 (struct sigaction): Define sa_handler and sa_sigaction using union
32109 also for [__USE_XOPEN_EXTENDED].
32110 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32111 [__USE_XOPEN_EXTENDED].
32112 (SA_RESTART): Likewise.
32113 (SA_NODEFER): Likewise.
32114 (SA_RESETHAND): Likewise.
32115 * sysdeps/unix/sysv/linux/bits/sigaction.h
32116 (struct sigaction): Define sa_handler and sa_sigaction using union
32117 also for [__USE_XOPEN_EXTENDED].
32118 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32119 [__USE_XOPEN_EXTENDED].
32120 (SA_RESTART): Likewise.
32121 (SA_NODEFER): Likewise.
32122 (SA_RESETHAND): Likewise.
32123 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32124 (struct sigaction): Define sa_handler and sa_sigaction using union
32125 also for [__USE_XOPEN_EXTENDED].
32126 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32127 [__USE_XOPEN_EXTENDED].
32128 (SA_RESTART): Likewise.
32129 (SA_NODEFER): Likewise.
32130 (SA_RESETHAND): Likewise.
32131 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32132 (struct sigaction): Define sa_handler and sa_sigaction using union
32133 also for [__USE_XOPEN_EXTENDED].
32134 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32135 [__USE_XOPEN_EXTENDED].
32136 (SA_RESTART): Likewise.
32137 (SA_NODEFER): Likewise.
32138 (SA_RESETHAND): Likewise.
32139 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32140 (struct sigaction): Define sa_handler and sa_sigaction using union
32141 also for [__USE_XOPEN_EXTENDED].
32142 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32143 [__USE_XOPEN_EXTENDED].
32144 (SA_RESTART): Likewise.
32145 (SA_NODEFER): Likewise.
32146 (SA_RESETHAND): Likewise.
32147 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32148 (struct sigaction): Define sa_handler and sa_sigaction using union
32149 also for [__USE_XOPEN_EXTENDED].
32150 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32151 [__USE_XOPEN_EXTENDED].
32152 (SA_RESTART): Likewise.
32153 (SA_NODEFER): Likewise.
32154 (SA_RESETHAND): Likewise.
32155 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32156 (struct sigaction): Define sa_handler and sa_sigaction using union
32157 also for [__USE_XOPEN_EXTENDED].
32158 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32159 [__USE_XOPEN_EXTENDED].
32160 (SA_RESTART): Likewise.
32161 (SA_NODEFER): Likewise. Define directly rather than as alias.
32162 (SA_RESETHAND): Likewise.
32163 (SA_INTERRUPT): Define only for [__USE_MISC].
32164 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32165 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32166 [__USE_MISC].
32167 (SA_STACK): Define only for [__USE_MISC].
32168 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32169 (struct sigaction): Define sa_handler and sa_sigaction using union
32170 also for [__USE_XOPEN_EXTENDED].
32171 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32172 [__USE_XOPEN_EXTENDED].
32173 (SA_RESTART): Likewise.
32174 (SA_NODEFER): Likewise.
32175 (SA_RESETHAND): Likewise.
32176 (SA_NOPTRACE): Define only for [__USE_MISC].
32177
32178 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32179 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32180 (struct catalog_info): Likewise.
32181 * inet/htontest.c (lo): Likewise.
32182 (foo): Likewise.
32183 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32184 * inet/inet_net.c (inet_network): Likewise.
32185 * inet/inet_netof.c (inet_netof): Likewise.
32186 * inet/rcmd.c (__ivaliduser): Likewise.
32187 (iruserok): Likewise.
32188 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32189 * locale/programs/locale-spec.c (locale_special): Likewise.
32190 * nis/nis_findserv.c (struct findserv_req): Likewise.
32191 (__nis_findfastest_with_timeout): Likewise.
32192 * nss/test-netdb.c (test_network): Likewise.
32193 * resolv/inet_neta.c (inet_neta): Likewise.
32194 * resolv/ns_date.c (ns_datetosecs): Likewise.
32195 (SECS_PER_DAY): Likewise.
32196 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32197 Likewise.
32198 * resolv/res_comp.c (__putlong): Likewise.
32199 (__putshort): Likewise.
32200 (_getlong): Likewise.
32201 (_getshort): Likewise.
32202 * resolv/res_debug.c (p_time): Likewise.
32203 (precsize_ntoa): Likewise.
32204 (precsize_aton): Likewise.
32205 (latlon2ul): Likewise.
32206 (loc_aton): Likewise.
32207 (loc_ntoa): Likewise.
32208 * resolv/res_hconf.c (struct netaddr): Likewise.
32209 (_res_hconf_reorder_addrs): Likewise.
32210 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32211 (clnttcp_control): Likewise.
32212 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32213 (clntudp_control): Likewise.
32214 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32215 (clntunix_control): Likewise.
32216 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32217 * sunrpc/rpc/auth.h (union des_block): Likewise.
32218 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32219 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32220 (xdrrec_create): Likewise.
32221 (xdrrec_endofrecord): Likewise.
32222 (flush_out): Likewise.
32223 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32224 (xdrstdio_putlong): Likewise.
32225 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32226 Likewise.
32227
32228 * misc/sys/cdefs.h (__long_double_t): Remove.
32229 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32230 instead of __long_double_t,
32231 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32232
32233 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32234
32235 * benchtests/scripts/compare_strings.py: Avoid display error when
32236 running on a text terminal.
32237
32238 * benchtests/scripts/compare_strings.py (main): Add an
32239 optional -base option.
32240 (process_results): New argument base_func.
32241
32242 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32243 hardcoding memcpy.
32244 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32245 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32246
32247 2017-08-07 Andreas Schwab <schwab@suse.de>
32248
32249 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32250 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32251 * intl/Makefile ($(objpfx)tst-gettext.out)
32252 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32253 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32254 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32255 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32256 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32257 * posix/Makefile ($(objpfx)globtest.out)
32258 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32259 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32260 ($(objpfx)tst-printf.out): Likewise.
32261 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32262 ($(objpfx)tst-setcontext3.out): Likewise.
32263
32264 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32265
32266 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32267 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32268 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32269 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32270 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32271 and mptan-fma.
32272 (CFLAGS-doasin-fma.c): New.
32273 (CFLAGS-dosincos-fma.c): Likewise.
32274 (CFLAGS-e_asin-fma.c): Likewise.
32275 (CFLAGS-e_atan2-fma.c): Likewise.
32276 (CFLAGS-e_exp-fma.c): Likewise.
32277 (CFLAGS-e_log-fma.c): Likewise.
32278 (CFLAGS-e_pow-fma.c): Likewise.
32279 (CFLAGS-halfulp-fma.c): Likewise.
32280 (CFLAGS-mpa-fma.c): Likewise.
32281 (CFLAGS-mpatan-fma.c): Likewise.
32282 (CFLAGS-mpatan2-fma.c): Likewise.
32283 (CFLAGS-mpexp-fma.c): Likewise.
32284 (CFLAGS-mplog-fma.c): Likewise.
32285 (CFLAGS-mpsqrt-fma.c): Likewise.
32286 (CFLAGS-mptan-fma.c): Likewise.
32287 (CFLAGS-s_atan-fma.c): Likewise.
32288 (CFLAGS-sincos32-fma.c): Likewise.
32289 (CFLAGS-slowexp-fma.c): Likewise.
32290 (CFLAGS-slowpow-fma.c): Likewise.
32291 (CFLAGS-s_sin-fma.c): Likewise.
32292 (CFLAGS-s_tan-fma.c): Likewise.
32293 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32294 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32295 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32296 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32297 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32298 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32299 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32300 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32301 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32302 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32303 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32304 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32305 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32306 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32307 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32308 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32309 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32310 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32311 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32312 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32313 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32314 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32315 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32316 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32317 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32318 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32319 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32320 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32321 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32322 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32323 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32324
32325 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32326
32327 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32328 (min_of_type_f): New macro.
32329 (min_of_type_): Likewise.
32330 (min_of_type_l): Likewise.
32331 (min_of_type_f128): Likewise.
32332 (min_of_type): Define using __MATH_TG and taking an expression
32333 argument.
32334 (math_check_force_underflow): Pass expression instead of type to
32335 min_of_type.
32336 (math_check_force_underflow_nonneg): Likewise.
32337
32338 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32339
32340 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32341 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32342 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32343
32344 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32345
32346 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32347 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32348 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32349 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32350 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32351 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32352 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32353 memmove_chk-nonshared and memset_chk-nonshared
32354 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32355 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32356 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32357 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32358 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32359 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32360 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32361 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32362 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32363 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32364 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32365 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32366 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32367 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32368 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32369 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32370 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32371 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32372 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32373 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32374 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32375 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32376 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32377 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32378 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32379 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32380 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32381 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32382 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32383 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32384 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32385 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32386 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32387 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32388 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32389 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32390 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32391 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32392 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32393 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32394 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32395 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32396 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32397 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32398 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32399 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32400 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32401 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32402 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32403 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32404 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32405 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32406 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32407 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32408 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32409 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32410 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32411 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32412 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32413 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32414 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32415 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32416 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32417 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32418 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32419 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32420 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32421 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32422 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32423 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32424 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32425 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32426 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32427 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32428 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32429 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32430 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32431 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32432 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32433 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32434 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32435 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32436 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32437 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32438 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32439 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32440 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32441 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32442 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32443 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32444 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32445 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32446 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32447 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32448 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32449 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32450 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32451 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32452 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32453 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32454 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32455 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32456 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32457 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32458 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32459 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32460 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32461 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32462
32463 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32464
32465 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32466 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32467 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32468 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32469 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32470 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32471 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32472 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32473 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32474 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32475 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32476 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32477 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32478 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32479 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32480 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32481 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32482 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32483 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32484 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32485 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32486 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32487 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32488 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32489 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32490 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32491 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32492 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32493 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32494 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32495 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32496 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32497 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32498 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32499 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32500 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32501 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32502 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32503 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32504 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32505 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32506 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32507 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32508 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32509 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32510 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32511 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32512 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32513 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32514 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32515 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32516 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32517 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32518 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32519 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32520 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32521 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32522 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32523 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32524 ...
32525 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32526 Don't include <sysdep.h> nor <init-arch.h>.
32527 (_ZGVbN2v_cos): Removed.
32528 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32529 ...
32530 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32531 Don't include <sysdep.h> nor <init-arch.h>.
32532 (_ZGVdN4v_cos): Removed.
32533 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32534 ...
32535 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32536 Don't include <sysdep.h> nor <init-arch.h>.
32537 (_ZGVeN8v_cos): Removed.
32538 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32539 ...
32540 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32541 Don't include <sysdep.h> nor <init-arch.h>.
32542 (_ZGVbN2v_exp): Removed.
32543 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32544 ...
32545 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32546 Don't include <sysdep.h> nor <init-arch.h>.
32547 (_ZGVdN4v_exp): Removed.
32548 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32549 ...
32550 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32551 Don't include <sysdep.h> nor <init-arch.h>.
32552 (_ZGVeN8v_exp): Removed.
32553 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32554 ...
32555 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32556 Don't include <sysdep.h> nor <init-arch.h>.
32557 (_ZGVbN2v_log): Removed.
32558 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32559 ...
32560 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32561 Don't include <sysdep.h> nor <init-arch.h>.
32562 (_ZGVdN4v_log): Removed.
32563 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32564 ...
32565 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32566 Don't include <sysdep.h> nor <init-arch.h>.
32567 (_ZGVeN8v_log): Removed.
32568 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32569 ...
32570 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32571 Don't include <sysdep.h> nor <init-arch.h>.
32572 (_ZGVbN2vv_pow): Removed.
32573 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32574 ...
32575 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32576 Don't include <sysdep.h> nor <init-arch.h>.
32577 (_ZGVdN4vv_pow): Removed.
32578 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32579 ...
32580 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32581 Don't include <sysdep.h> nor <init-arch.h>.
32582 (_ZGVeN8vv_pow): Removed.
32583 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32584 ...
32585 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32586 Don't include <sysdep.h> nor <init-arch.h>.
32587 (_ZGVbN2v_sin): Removed.
32588 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32589 ...
32590 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32591 Don't include <sysdep.h> nor <init-arch.h>.
32592 (_ZGVbN4v_sin): Removed.
32593 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32594 ...
32595 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32596 Don't include <sysdep.h> nor <init-arch.h>.
32597 (_ZGVbN8v_sin): Removed.
32598 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32599 ...
32600 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32601 Don't include <sysdep.h> nor <init-arch.h>.
32602 (_ZGVbN2vvv_sincos): Removed.
32603 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32604 ...
32605 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32606 Don't include <sysdep.h> nor <init-arch.h>.
32607 (_ZGVdN4vvv_sincos): Removed.
32608 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32609 ...
32610 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32611 Don't include <sysdep.h> nor <init-arch.h>.
32612 (_ZGVeN8vvv_sincos): Removed.
32613 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32614 ...
32615 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32616 Don't include <sysdep.h> nor <init-arch.h>.
32617 (_ZGVeN16v_cosf): Removed.
32618 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32619 ...
32620 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32621 Don't include <sysdep.h> nor <init-arch.h>.
32622 (_ZGVbN4v_cosf): Removed.
32623 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32624 ...
32625 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32626 Don't include <sysdep.h> nor <init-arch.h>.
32627 (_ZGVdN8v_cosf): Removed.
32628 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32629 ...
32630 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32631 Don't include <sysdep.h> nor <init-arch.h>.
32632 (_ZGVeN16v_expf): Removed.
32633 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32634 ...
32635 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32636 Don't include <sysdep.h> nor <init-arch.h>.
32637 (_ZGVbN4v_expf): Removed.
32638 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32639 ...
32640 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32641 Don't include <sysdep.h> nor <init-arch.h>.
32642 (_ZGVdN8v_expf): Removed.
32643 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32644 ...
32645 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32646 Don't include <sysdep.h> nor <init-arch.h>.
32647 (_ZGVeN16v_logf): Removed.
32648 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32649 ...
32650 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32651 Don't include <sysdep.h> nor <init-arch.h>.
32652 (_ZGVbN4v_logf): Removed.
32653 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32654 ...
32655 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32656 Don't include <sysdep.h> nor <init-arch.h>.
32657 (_ZGVdN8v_logf): Removed.
32658 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32659 ...
32660 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32661 Don't include <sysdep.h> nor <init-arch.h>.
32662 (_ZGVeN16vv_powf): Removed.
32663 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32664 ...
32665 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32666 Don't include <sysdep.h> nor <init-arch.h>.
32667 (_ZGVbN4vv_powf): Removed.
32668 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32669 ...
32670 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32671 Don't include <sysdep.h> nor <init-arch.h>.
32672 (_ZGVdN8vv_powf): Removed.
32673 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32674 ...
32675 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32676 Don't include <sysdep.h> nor <init-arch.h>.
32677 (_ZGVeN16vvv_sincosf): Removed.
32678 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32679 ...
32680 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32681 Don't include <sysdep.h> nor <init-arch.h>.
32682 (_ZGVbN4vvv_sincosf): Removed.
32683 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32684 ...
32685 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32686 Don't include <sysdep.h> nor <init-arch.h>.
32687 (_ZGVdN8vvv_sincosf): Removed.
32688 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32689 ...
32690 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32691 Don't include <sysdep.h> nor <init-arch.h>.
32692 (_ZGVeN16v_sinf): Removed.
32693 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32694 ...
32695 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32696 Don't include <sysdep.h> nor <init-arch.h>.
32697 (_ZGVbN4v_sinf): Removed.
32698 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32699 ...
32700 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32701 Don't include <sysdep.h> nor <init-arch.h>.
32702 (_ZGVdN8v_sinf): Removed.
32703
32704 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32705
32706 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32707 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32708 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32709 s_rint-sse4_1 and s_rintf-sse4_1.
32710 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32711 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32712 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32713 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32714 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32715 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32716 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32717 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32718 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32719 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32720 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32721 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32722 (__ceil): Removed.
32723 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32724 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32725 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32726 (__ceilf): Removed.
32727 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32728 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32729 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32730 (__floor): Removed.
32731 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32732 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32733 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32734 (__floorf): Removed.
32735 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32736 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32737 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32738 (__nearbyint): Removed.
32739 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32740 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32741 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32742 (__nearbyintf): Removed.
32743 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32744 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32745 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32746 (__rint): Removed.
32747 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32748 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32749 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32750 (__rintf): Removed.
32751
32752 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32753
32754 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32755 SHARED. Avoid dynamic relocation against main in static PIE.
32756
32757 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32758
32759 [BZ #21815]
32760 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32761 (LDFLAGS-tst-prelink): Likewise.
32762
32763 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32764
32765 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32766 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32767 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32768 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32769 (INTERNAL_SYSCALL_NCS): Likewise.
32770 (LOADARGS_1): Likewise.
32771 (LOADARGS_5): Likewise.
32772 (RESTOREARGS_1): Likewise.
32773 (RESTOREARGS_5): Likewise.
32774
32775 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32776
32777 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32778 (MEMPCPY_SYMBOL): Likewise.
32779 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32780 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32781 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32782 in libc.a.
32783 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32784 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32785 Likewise.
32786 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32787 (__hidden_ver1): Don't use in libc.a.
32788 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32789 (__mempcpy): Don't create a weak alias in libc.a.
32790 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32791 libc.a.
32792 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32793 (__hidden_ver1): Don't use in libc.a.
32794
32795 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32796
32797 * config.make.in (have-insert): New.
32798 * configure.ac (libc_cv_insert): New. Set to yes if linker
32799 supports INSERT in linker script.
32800 (AC_SUBST(libc_cv_insert): New.
32801 * configure: Regenerated.
32802 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32803 if $(have-insert) == yes.
32804
32805 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32806
32807 * elf/Makefile (tests): Add vismain only if
32808 $(have-protected-data) == yes.
32809 (tests-pie): Likewise.
32810
32811 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32812
32813 [BZ #21871]
32814 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32815 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32816
32817 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32818
32819 [BZ #21790]
32820 * sysdeps/i386/i586/memset.S
32821 (__memset_zero_constant_len_parameter): Removed.
32822 * sysdeps/i386/i686/memset.S
32823 (__memset_zero_constant_len_parameter): Likewise.
32824 * sysdeps/i386/i686/multiarch/memset_chk.S
32825 (__memset_zero_constant_len_parameter): Likewise.
32826 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32827 Likewise.
32828
32829 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32830
32831 * stdlib/getentropy.c (getentropy): Change return type to int.
32832
32833 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32834
32835 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32836
32837 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32838
32839 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32840 u_intN_t.
32841 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32842 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32843 Likewise.
32844 (ieee_float_shape_type): Likewise.
32845 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32846 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32847 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32848 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32849 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32850 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32851 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32852 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32853 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32854 Likewise.
32855 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32856 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32857 (__ieee754_yn): Likewise.
32858 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32859 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32860 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32861 Likewise.
32862 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32863 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32864 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32865 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32866 (__erfc): Likewise.
32867 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32868 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32869 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32870 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32871 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32872 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32873 Likewise.
32874 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32875 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32876 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32877 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32878 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32879 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32880 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32881 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32882 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32883 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32884 (__issignaling): Likewise.
32885 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32886 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32887 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32888 Likewise.
32889 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32890 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32891 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32892 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32893 Likewise.
32894 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32895 Likewise.
32896 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32897 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32898 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32899 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32900 (__erfcf): Likewise.
32901 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32902 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32903 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32904 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32905 Likewise.
32906 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32907 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32908 Likewise.
32909 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32910 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32911 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32912 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32913 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32914 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32915 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32916 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32917 Likewise.
32918 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32919 Likewise.
32920 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32921 Likewise.
32922 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32923 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32924 Likewise.
32925 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32926 Likewise.
32927 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32928 (__ieee754_ynl): Likewise.
32929 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32930 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32931 Likewise.
32932 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32933 Likewise.
32934 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32935 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32936 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32937 Likewise.
32938 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32939 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32940 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32941 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32942 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32943 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32944 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32945 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32946 Likewise.
32947 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32948 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32949 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32950 Likewise.
32951 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32952 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32953 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32954 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32955 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32956 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32957 Likewise.
32958 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32959 Likewise.
32960 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32961 Likewise.
32962 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32963 Likewise.
32964 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32965 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32966 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32967 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32968 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32969 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32970 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32971 Likewise.
32972 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32973 Likewise.
32974 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32975 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32976 Likewise.
32977 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32978 (__ieee754_remainderl): Likewise.
32979 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32980 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32981 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32982 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32983 Likewise.
32984 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32985 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32986 Likewise.
32987 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32988 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32989 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32990 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32991 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32992 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32993 Likewise.
32994 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32995 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32996 (__ieee754_y0l): Likewise.
32997 (pzero): Likewise.
32998 (qzero): Likewise.
32999 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
33000 (__ieee754_y1l): Likewise.
33001 (pone): Likewise.
33002 (qone): Likewise.
33003 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
33004 (__ieee754_ynl): Likewise.
33005 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
33006 (__ieee754_lgammal_r): Likewise.
33007 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
33008 Likewise.
33009 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
33010 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
33011 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
33012 (__erfcl): Likewise.
33013 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
33014 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
33015 Likewise.
33016 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
33017 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
33018 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
33019 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
33020 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
33021 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
33022 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
33023 Likewise.
33024 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
33025 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
33026 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
33027 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
33028 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
33029 Likewise.
33030 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
33031 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
33032 Likewise.
33033 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
33034 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
33035 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
33036 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
33037 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
33038
33039 2017-08-03 Florian Weimer <fweimer@redhat.com>
33040
33041 [BZ #21885]
33042 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
33043 on memory allocation failure.
33044
33045 2017-08-03 Alan Modra <amodra@gmail.com>
33046
33047 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
33048 tst-tlsopt-powerpc.c with function name change and no test harness.
33049 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
33050 Call tls_get_addr_opt_test.
33051 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
33052 (modules-names): Add mod-tlsopt-powerpc.
33053 (mod-tlsopt-powerpc.so-no-z-defs): Define.
33054 (tst-tlsopt-powerpc): Depend on .so.
33055 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
33056 define. Expand use in TLS_GD and TLS_LD.
33057
33058 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
33059
33060 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
33061 function.
33062 * sysdeps/posix/shm_open.c: Include <pthread.h>.
33063
33064 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33065
33066 [BZ #21686]
33067 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
33068 comparing size with that of double.
33069 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33070 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33071 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33072 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33073 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33074 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33075 unsigned __int128 types.
33076
33077 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33078
33079 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33080 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33081 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33082 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33083 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33084
33085 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33086
33087 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33088
33089 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33090
33091 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33092 of SHARED.
33093 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33094 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33095 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33096 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33097 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33098 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33099 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33100
33101 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33102
33103 [BZ #21685]
33104 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33105 bit-field expressions passed to sizeof or typeof.
33106 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33107 (__TGMATH_F128): Likewise.
33108 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33109 (__TGMATH_CF128): Likewise.
33110 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33111 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33112 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33113 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33114 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33115 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33116 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33117 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33118 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33119 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33120 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33121 (__TGMATH_UNARY_IMAG): Likewise.
33122 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33123 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33124 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33125 type.
33126 (define_vars_for_type): Handle bit_field type specially.
33127 (Tests.__init__): Declare structure with bit-field element.
33128
33129 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33130
33131 [BZ #21791]
33132 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33133 (MEMCPY_CHK): Define only if SHARED is defined.
33134 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33135 Likewise.
33136 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33137 Likewise.
33138
33139 See ChangeLog.18 for earlier changes.