]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
C-SKY: remove user_regs definition
[thirdparty/glibc.git] / ChangeLog
1 2019-03-11 Mao Han <han_mao@c-sky.com>
2
3 * sysdeps/unix/sysv/linux/csky/sys/procfs.h: Use linux definition
4 directly.
5 * sysdeps/unix/sysv/linux/csky/sys/user.h: Remove user_regs
6 definition.
7
8 2019-03-11 Mao Han <han_mao@c-sky.com>
9
10 * sysdeps/unix/sysv/linux/csky/register-dump.h: Adjust offset change.
11 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Remove __mask field
12 in mcontext_t
13
14 2019-03-08 Mike FABIAN <mfabian@redhat.com>
15
16 [BZ #24307]
17 * localedata/unicode-gen/Makefile (UNICODE_VERSION): Set to 12.0.0.
18 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to
19 Unicode 12.0.0.
20 * localedata/unicode-gen/EastAsianWidth.txt: Likewise.
21 * localedata/unicode-gen/PropList.txt: Likewise.
22 * localedata/unicode-gen/UnicodeData.txt: Likewise.
23 * localedata/unicode-gen/ctype_compatibility_test_cases.py: U+108D
24 became "Alphabetic" in Unicode 12.0.0. Adapt test case.
25 * localedata/charmaps/UTF-8: Regenerate.
26 * localedata/locales/i18n_ctype: Likewise.
27 * localedata/locales/tr_TR: Likewise.
28 * localedata/locales/translit_circle: Likewise.
29 * localedata/locales/translit_cjk_compat: Likewise.
30 * localedata/locales/translit_combining: Likewise.
31 * localedata/locales/translit_compat: Likewise.
32 * localedata/locales/translit_font: Likewise.
33 * localedata/locales/translit_fraction: Likewise.
34
35 2019-03-07 Joseph Myers <joseph@codesourcery.com>
36
37 * stdio-common/vfscanf-internal.c (ARG): Break lines before rather
38 than after operators.
39 * sysdeps/mach/hurd/setitimer.c (timer_thread): Likewise.
40 (setitimer_locked): Likewise.
41 * sysdeps/mach/hurd/sigaction.c (__sigaction): Likewise.
42 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
43 * sysdeps/mach/pagecopy.h (PAGE_COPY_FWD): Likewise.
44 * sysdeps/mach/thread_state.h (machine_get_basic_state): Likewise.
45 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c
46 (PPC_CPU_SUPPORTED): Likewise.
47 * sysdeps/unix/sysv/linux/alpha/a.out.h (N_TXTOFF): Likewise.
48 * sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h
49 (stat_overflow): Likewise.
50 (statfs_overflow): Likewise.
51 * sysdeps/unix/sysv/linux/tst-personality.c (do_test): Likewise.
52 * sysdeps/unix/sysv/linux/tst-ttyname.c (eq_ttyname): Likewise.
53 (eq_ttyname_r): Likewise.
54 (run_chroot_tests): Likewise.
55
56 2019-03-07 Florian Weimer <fweimer@redhat.com>
57
58 * scripts/check-wrapper-headers.py (check_headers): Adjust Fortran
59 header check.
60
61 2019-03-07 Martin Liska <mliska@suse.cz>
62
63 * math/Makefile: Change location where math-vector-fortran.h is
64 installed.
65 * math/finclude/math-vector-fortran.h: Move from bits/math-vector-fortran.h.
66 * sysdeps/x86/fpu/finclude/math-vector-fortran.h: Move
67 from sysdeps/x86/fpu/bits/math-vector-fortran.h.
68 * scripts/check-installed-headers.sh: Skip Fortran header files.
69 * scripts/check-wrapper-headers.py: Likewise.
70
71 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
72
73 * nptl/nptl-init.c (__have_futex_clock_realtime,
74 __have_futex_clock_realtime): Remove definition.
75 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
76 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
77 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
78 __ASSUME_FUTEX_CLOCK_REALTIME support.
79 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
80 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
81 * sysdeps/unix/sysv/linux/kernel-features.h
82 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
83 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
84 Adjust comment.
85
86 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
87
88 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
89 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
90 __GI___wcscpy and wcscpy.
91
92 2019-03-04 Florian Weimer <fweimer@redhat.com>
93
94 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
95 declaration.
96 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
97 defined.
98
99 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
100
101 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
102 * sysdeps/s390/s390-32/sysdep.h: Likewise.
103
104 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
105
106 [BZ #24162]
107 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
108 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
109
110 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
111
112 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
113 tests.
114 (do_test): Likewise.
115 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
116 (do_test_call_varg): Likewise.
117 (do_test_call_rarg): Likewise.
118 * sysdeps/ieee754/ldbl-opt/Makefile
119 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
120 tst-nldbl-error.
121 ($(objpfx)tst-nldbl-warn.c): New rule.
122 ($(objpfx)tst-nldbl-error.c): Likewise.
123 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
124 New variables.
125
126 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
127
128 [BZ #23984]
129 * include/bits/error-ldbl.h: New file.
130 * include/error.h: Include stdarg.h. Declare internal functions
131 __error_internal and __error_at_line_internal.
132 * misc/Makefile (headers): Add bits/error-ldbl.h.
133 * misc/bits/error-ldbl.h: New file.
134 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
135 avoid the inclusion of bits/error.h.
136 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
137 and __nldbl_error_at_line.
138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
139 (__nldbl_error, __ndlbl_error_at_line): New functions.
140 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
141 Redirect error and error_at_line.
142 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
144 Likewise.
145 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
146 Likewise.
147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
148 Likewise.
149 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
150 Likewise.
151 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
152 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
153 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
154
155 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
156
157 [BZ #23984]
158 * include/bits/err-ldbl.h: New file.
159 * include/err.h: Add prototypes for the internal functions:
160 __vwarnx_internal and __vwarn_internal.
161 * misc/Makefile (headers): Add bits/err-ldbl.h.
162 * misc/bits/err-ldbl.h: New file.
163 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
164 defined, i.e.: when -mlong-double-64 is in use.
165 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
166 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
167 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
168 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
169 (VA_CALL): New macro.
170 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
171 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
172 functions.
173 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
174 declare prototypes for the new functions.
175 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
177 Likewise.
178 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
179 Likewise.
180 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
181 Likewise.
182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
183 Likewise.
184 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
185 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
186 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
187
188 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
189
190 * sysdeps/ieee754/ldbl-opt/Makefile
191 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
192 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
193 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
194
195 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
196
197 [BZ #23983]
198 * argp/Makefile (headers): Add bits/argp-ldbl.h.
199 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
200 * argp/bits/argp-ldbl.h: New file.
201 * include/argp.h: Include stdarg.h. Add prototypes for internal
202 functions: __argp_error_internal and __argp_failure_internal.
203 * include/bits/argp-ldbl.h: New file.
204 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
205 __nldbl_argp_error and __nldbl_argp_failure.
206 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
207 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
208 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
209 Redirect argp_error and argp_failure calls.
210 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
211 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
212 Likewise.
213 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
214 Likewise.
215 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
216 Likewise.
217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
218 Likewise.
219 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
220 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
221 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
222
223 2019-03-01 Florian Weimer <fweimer@redhat.com>
224
225 [BZ #20419]
226 * elf/tst-big-note-lib.S: Create a syntactically valid note.
227 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
228 code, to avoid creating an ABI tag note.
229 (modules-names-nobuild): Add tst-big-note-lib.
230
231 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
232
233 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
234 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
235
236 2019-03-01 Florian Weimer <fweimer@redhat.com>
237
238 [BZ #20271]
239 * sysdeps/unix/sysv/linux/netlink_assert_response.c
240 (__netlink_assert_response): Add additional missing newlines.
241
242 2019-02-28 Joseph Myers <joseph@codesourcery.com>
243
244 * sysdeps/powerpc/powerpc32/dl-machine.c
245 (__elf_machine_fixup_plt): Use space before '('.
246 (__process_machine_rela): Likewise.
247 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
248 Likewise.
249 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
250 Likewise.
251 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
252 Likewise.
253 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
254 (pattern): Likewise.
255 (delta): Likewise.
256 (check_result): Likewise.
257 (check_excepts): Likewise.
258 (check_op): Likewise.
259 (fail_xr): Likewise.
260 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
261 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
262 (SCNHSZ): Likewise.
263 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
264 Likewise.
265 (ARGS): Likewise.
266 (__makecontext): Likewise.
267 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
268 Likewise.
269
270 2019-02-28 Florian Weimer <fweimer@redhat.com>
271
272 [BZ #23937]
273 elf: Add test with a local IFUNC resolver.
274 * elf/ifuncmain9.c: New file.
275 * elf/ifuncmain9pic.c: Likewise.
276 * elf/ifuncmain9picstatic.c: Likewise.
277 * elf/ifuncmain9pie.c: Likewise.
278 * elf/ifuncmain9static.c: Likewise.
279 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
280 ifuncmain9static, ifuncmain9picstatic.
281 * elf/Makefile [multi-arch && build-shared] (tests-internal):
282 Add ifuncmain9, ifuncmain9pic.
283 * elf/Makefile [multi-arch && build-shared && have-fpie]
284 (ifunc-pie-tests): Add ifuncmain9pie.
285 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
286 (CFLAGS-ifuncmain9picstatic.c): Likewise.
287 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
288
289 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
290
291 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
292 * configure: Regenerated.
293 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
294
295 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
296
297 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
298 symbol as __wcspcy instead of wcscpy.
299
300 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
301
302 * include/stdio.h (__renameat2): New hidden prototype.
303 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
304 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
305 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
306 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
307
308 2019-02-27 Joseph Myers <joseph@codesourcery.com>
309
310 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
311 if statement.
312
313 * benchtests/bench-strcpy.c (do_test): Use space before '('.
314 * benchtests/bench-string.h (cmdline_process_function): Likewise.
315 * benchtests/bench-strlen.c (do_test): Likewise.
316 (test_main): Likewise.
317 * catgets/gencat.c (read_old): Likewise.
318 * elf/cache.c (load_aux_cache): Likewise.
319 * iconvdata/bug-iconv8.c (do_test): Likewise.
320 * math/test-tgmath-ret.c (do_test): Likewise.
321 * nis/nis_call.c (rec_dirsearch): Likewise.
322 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
323 * nptl/tst-audit-threads.c (do_test): Likewise.
324 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
325 * nss/nss_test1.c (init): Likewise.
326 * nss/test-netdb.c (test_hosts): Likewise.
327 * posix/execvpe.c (maybe_script_execute): Likewise.
328 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
329 * stdio-common/tst-printf.c (do_test): Likewise.
330 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
331 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
332 * stdlib/qsort.c (STACK_SIZE): Likewise.
333 * stdlib/test-canon.c (do_test): Likewise.
334 * stdlib/tst-swapcontext1.c (do_test): Likewise.
335 * string/memcmp.c (OPSIZ): Likewise.
336 * string/test-strcpy.c (do_test): Likewise.
337 (do_random_tests): Likewise.
338 * string/test-strlen.c (do_test): Likewise.
339 (test_main): Likewise.
340 * string/test-strrchr.c (do_test): Likewise.
341 (do_random_tests): Likewise.
342 * string/tester.c (test_memrchr): Likewise.
343 (test_memchr): Likewise.
344 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
345 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
346 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
347 (read_encoded_value_with_base): Likewise.
348 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
349 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
350 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
351 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
352 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
353 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
354 Likewise.
355 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
356 Likewise.
357 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
358 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
359 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
360 Likewise.
361 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
362 Likewise.
363 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
364 Likewise.
365 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
366 Likewise.
367 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
368 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
369 (FP_XSTATE_MAGIC2_SIZE): Likewise.
370 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
371 * time/test_time.c (main): Likewise.
372
373 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
374
375 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
376
377 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
378 wmemcpy.
379
380 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
381 wmemcpy.
382
383 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
384
385 * include/wchar.h (__wcscpy): New prototype.
386 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
387 (__wcscpy): Route internal symbol to generic implementation.
388 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
389 Add internal __wcscpy alias.
390 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
391 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
392 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
393 * wcsmbs/wcscpy.c (wcscpy): Add
394 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
395 use generic implementation.
396 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
397
398 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
399 wmemset.
400
401 * sysdeps/m68k/wcpcpy.c: Remove file.
402 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
403
404 2019-02-26 Joseph Myers <joseph@codesourcery.com>
405
406 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
407 than after operators.
408 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
409 * sysdeps/mach/hurd/getcwd.c
410 (__hurd_canonicalize_directory_name_internal): Likewise.
411 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
412 (pthread_mutex_consistent): Likewise.
413 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
414 Likewise.
415 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
416 (__pthread_mutex_transfer_np): Likewise.
417 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
418 (__pthread_mutex_unlock): Likewise.
419 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
420 (mtx_owned_p): Likewise.
421 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
422 (pthread_mutexattr_getrobust): Likewise.
423 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
424 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
425 Likewise.
426 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
427 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
428 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
429 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
430 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
431 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
432 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
433 Likewise.
434 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
435 Likewise.
436 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
437 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
438 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
439 (____longjmp_chk): Likewise.
440 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
441 Likewise.
442 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
443 (INTERNAL_SYSCALL): Likewise.
444 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
445 (INTERNAL_SYSCALL): Likewise.
446 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
447 (__get_clockfreq_via_cpuinfo): Likewise.
448
449 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
450 comments.
451 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
452 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
453 (WORD_COPY_BWD): Likewise.
454 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
455 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
456 Likewise.
457 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
458 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
459 comment.
460 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
461
462 2019-02-25 Joseph Myers <joseph@codesourcery.com>
463
464 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
465 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
466 rather than after operators.
467 * elf/cache.c (print_cache): Likewise.
468 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
469 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
470 * hurd/hurdinit.c (_hurd_setproc): Likewise.
471 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
472 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
473 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
474 (reauth_proc): Likewise.
475 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
476 (__file_name_split_at): Likewise.
477 (__directory_name_split_at): Likewise.
478 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
479 * hurd/port2fd.c (_hurd_port2fd): Likewise.
480 * iconv/gconv_dl.c (do_print): Likewise.
481 * inet/netinet/in.h (struct sockaddr_in): Likewise.
482 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
483 * locale/setlocale.c (new_composite_name): Likewise.
484 * malloc/memusagestat.c (main): Likewise.
485 * misc/fstab.c (fstab_convert): Likewise.
486 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
487 Likewise.
488 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
489 (getgrent_next_file): Likewise.
490 (internal_getgrnam_r): Likewise.
491 (internal_getgrgid_r): Likewise.
492 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
493 Likewise.
494 (internal_getgrent_r): Likewise.
495 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
496 (getpwent_next_nss): Likewise.
497 (getpwent_next_file): Likewise.
498 (internal_getpwnam_r): Likewise.
499 (internal_getpwuid_r): Likewise.
500 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
501 Likewise.
502 (getspent_next_nss): Likewise.
503 (internal_getspnam_r): Likewise.
504 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
505 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
506 * string/strchr.c (STRCHR): Likewise.
507 * string/strchrnul.c (STRCHRNUL): Likewise.
508 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
509 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
510 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
511 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
512 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
513 Likewise.
514 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
515 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
516 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
517 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
518 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
519 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
520 (open_file): Likewise.
521 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
522 (pthread_mutexattr_setprotocol): Likewise.
523 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
524 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
525 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
526 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
527 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
528 Likewise.
529 (elf_machine_rela): Likewise.
530 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
531 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
532 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
533 * sysdeps/posix/rename.c (rename): Likewise.
534 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
535 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
536 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
537 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
538 * sysdeps/unix/grantpt.c (grantpt): Likewise.
539 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
540 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
541 Likewise.
542 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
543 Likewise.
544 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
545 * time/tzfile.c (__tzfile_compute): Likewise.
546
547 2019-02-22 Joseph Myers <joseph@codesourcery.com>
548
549 * benchtests/bench-memmem.c (simple_memmem): Break lines before
550 rather than after operators.
551 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
552 * crypt/md5.c (md5_finish_ctx): Likewise.
553 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
554 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
555 * elf/cache.c (load_aux_cache): Likewise.
556 * elf/dl-load.c (open_verify): Likewise.
557 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
558 * elf/readelflib.c (process_elf_file): Likewise.
559 * elf/rtld.c (dl_main): Likewise.
560 * elf/sprof.c (generate_call_graph): Likewise.
561 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
562 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
563 * hurd/dtable.c (reauth_dtable): Likewise.
564 * hurd/getdport.c (__getdport): Likewise.
565 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
566 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
567 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
568 Likewise.
569 * hurd/hurdioctl.c (fioctl): Likewise.
570 * hurd/hurdselect.c (_hurd_select): Likewise.
571 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
572 (STOPSIGS): Likewise.
573 * hurd/hurdstartup.c (_hurd_startup): Likewise.
574 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
575 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
576 * hurd/msgportdemux.c (msgport_server): Likewise.
577 * hurd/setauth.c (_hurd_setauth): Likewise.
578 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
579 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
580 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
581 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
582 * login/tst-utmp.c (do_check): Likewise.
583 (simulate_login): Likewise.
584 * mach/lowlevellock.h (lll_lock): Likewise.
585 (lll_trylock): Likewise.
586 * math/test-fenv.c (ALL_EXC): Likewise.
587 * math/test-fenvinline.c (ALL_EXC): Likewise.
588 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
589 * nis/nis_call.c (__do_niscall3): Likewise.
590 * nis/nis_callback.c (cb_prog_1): Likewise.
591 * nis/nis_defaults.c (searchaccess): Likewise.
592 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
593 * nis/nis_ismember.c (internal_ismember): Likewise.
594 * nis/nis_local_names.c (nis_local_principal): Likewise.
595 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
596 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
597 Likewise.
598 * nis/ypclnt.c (yp_match): Likewise.
599 (yp_first): Likewise.
600 (yp_next): Likewise.
601 (yp_master): Likewise.
602 (yp_order): Likewise.
603 * nscd/hstcache.c (cache_addhst): Likewise.
604 * nscd/initgrcache.c (addinitgroupsX): Likewise.
605 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
606 (internal_getpwuid_r): Likewise.
607 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
608 * posix/glob.h (__GLOB_FLAGS): Likewise.
609 * posix/regcomp.c (peek_token): Likewise.
610 (peek_token_bracket): Likewise.
611 (parse_expression): Likewise.
612 * posix/regexec.c (sift_states_iter_mb): Likewise.
613 (check_node_accept_bytes): Likewise.
614 * posix/tst-spawn3.c (do_test): Likewise.
615 * posix/wordexp-test.c (testit): Likewise.
616 * posix/wordexp.c (parse_tilde): Likewise.
617 (exec_comm): Likewise.
618 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
619 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
620 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
621 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
622 * stdio-common/tst-fileno.c (do_test): Likewise.
623 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
624 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
625 * stdlib/strtod_l.c (round_and_return): Likewise.
626 (____STRTOF_INTERNAL): Likewise.
627 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
628 * string/strcspn.c (STRCSPN): Likewise.
629 * string/test-memmem.c (simple_memmem): Likewise.
630 * termios/tcsetattr.c (tcsetattr): Likewise.
631 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
632 * time/asctime.c (asctime_internal): Likewise.
633 * time/strptime_l.c (__strptime_internal): Likewise.
634 * time/sys/time.h (timercmp): Likewise.
635 * time/tzfile.c (__tzfile_compute): Likewise.
636
637 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
638
639 [BZ #21915]
640 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
641
642 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
643
644 * argp/argp-help.c (__argp_error_internal): New function,
645 renamed from __argp_error, but that takes a 'mode_flags'
646 parameter to control the format of long double parameters.
647 (__argp_error): Converted into a call __argp_error_internal.
648 (__argp_failure_internal): New function, renamed from
649 __argp_failure, but that takes a 'mode_flags' parameter.
650 (__argp_failure): Converted into a call __argp_failure_internal.
651 * misc/err.c (__vwarnx_internal): New function, renamed from
652 vwarnx, but that takes a 'mode_flags' parameter.
653 (vwarnx): Converted into a call to __vwarnx_internal.
654 (__vwarn_internal): New function, renamed from vwarn, but that
655 takes a 'mode_flags' parameter.
656 (vwarn): Converted into a call to __vwarn_internal.
657 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
658 call to __vfxprintf with 'mode_flags'.
659 (__error_internal): New function, renamed from error, but that
660 takes a 'mode_flags' parameter.
661 (error): Converted into a call to __error_internal.
662 (__error_at_line_internal): New function, renamed from
663 error_at_line, but that takes a 'mode_flags' parameter.
664 (error_at_line): Converted into a call to
665 __error_at_line_internal.
666 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
667 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
668 Likewise.
669
670 2019-02-20 Martin Liska <mliska@suse.cz>
671
672 * math/Makefile: Install math-vector-fortran.h.
673 * bits/math-vector-fortran.h: New file.
674 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
675
676 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
677
678 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
679 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
680
681 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
682
683 * nptl/pthread_mutex_trylock.c: Fix comment.
684
685 2019-02-19 Carlos O'Donell <carlos@redhat.com>
686
687 * nptl/pthread_tryjoin.c: Fix comment.
688
689 2019-02-18 Joseph Myers <joseph@codesourcery.com>
690
691 [BZ #24231]
692 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
693 after R_SPARC_H34 case.
694
695 2019-02-18 Florian Weimer <fweimer@redhat.com>
696
697 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
698 (getanswer): Do not call Dprintf.
699 (res_gethostbyname2_context): Likewise.
700 (res_gethostbyaddr_context): Likewise.
701
702 2019-02-18 Florian Weimer <fweimer@redhat.com>
703
704 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
705 declaration.
706 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
707 Remove definitions.
708 * libio/stdfiles.c: Update comment.
709 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
710 set _IO_stdin, _IO_stdout, _IO_stderr.
711 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
712 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
713 inline function.
714 (_IO_deallocate_file): New inline function.
715 * libio/iolibio.h (_IO_vprintf): Remove definition.
716 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
717 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
718 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
719 _IO_legacy_file.
720 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
721 __builtin_expect. Use _IO_legacy_file.
722
723 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
724
725 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
726 Initialize ctid with a known value and remove update of ctid
727 after clone.
728 (wait_tid): Adjust arguments and call futex_wait with ctid_val
729 as assumed current value of ctid_ptr.
730
731 2019-02-15 Florian Weimer <fweimer@redhat.com>
732
733 Check that non-sysdeps headers have wrapper headers.
734 * scripts/check-wrapper-headers.py: New file.
735 * Makefile (tests-special): Add check-wrapper-headers.out.
736 (check-wrapper-headers.out): New target.
737 * Rules (tests-special): Add check-wrapper-headers.out.
738 (check-wrapper-headers.out): New target.
739
740 2019-02-15 Florian Weimer <fweimer@redhat.com>
741
742 Add missing header wrappers under include/.
743 * include/ar.h: New file.
744 * include/bits/mqueue2.h: Likewise.
745 * include/bits/stdio.h: Likewise.
746 * include/bits/stdio2.h: Likewise.
747 * include/fstab.h: Likewise.
748 * include/fts.h: Likewise.
749 * include/lastlog.h: Likewise.
750 * include/netinet/icmp6.h: Likewise.
751 * include/netinet/igmp.h: Likewise.
752 * include/netinet/ip6.h: Likewise.
753 * include/re_comp.h: Likewise.
754 * include/regexp.h: Likewise.
755 * include/rpcsvc/bootparam.h: Likewise.
756 * include/rpcsvc/yp_prot.h: Likewise.
757 * include/sys/random.h: Likewise.
758 * include/sys/stropts.h: Likewise.
759 * include/sys/ttychars.h: Likewise.
760 * include/sys/vfs.h: Likewise.
761 * include/wait.h: Likewise.
762
763 2019-02-15 Florian Weimer <fweimer@redhat.com>
764
765 * nptl_db/proc_service.h: Move to ...
766 * sysdeps/nptl/proc_service.h: ... here.
767 * nptl_db/thread_db.h: Move to ...
768 * sysdeps/nptl/thread_db.h: ... here.
769 * nptl/descr.h: Include <thread_db.h>.
770
771 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
772
773 * io/Makefile (tests): Add tst-lockf.
774 * io/lockf.c (lockf): Use __fcntl and only define for
775 !__OFF_T_MATCHES_OFF64_T.
776 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
777 __OFF_T_MATCHES_OFF64_T case.
778 * io/tst-lockf.c: New file.
779 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
780 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
781 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
782 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
783 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
784 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
785 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
786 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
787 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
788
789 2019-02-15 Florian Weimer <fweimer@redhat.com>
790
791 [BZ #24211]
792 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
793 pd->result after the thread descriptor has been freed.
794
795 2019-02-15 Joseph Myers <joseph@codesourcery.com>
796
797 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
798 from function return type.
799
800 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
801
802 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 * scripts/test_printers_common.py: Set TERM to a known harmless
805 value.
806
807 2019-02-14 Joseph Myers <joseph@codesourcery.com>
808
809 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
810 (xdr_u_int): Likewise.
811 (xdr_enum): Likewise.
812 (xdr_bytes): Reword fall-through comment.
813 (xdr_string): Likewise.
814
815 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
816
817 [BZ #2421]
818 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
819 (tests): Add tst-join8 tst-join9.
820 * nptl/lll_timedwait_tid.c: Remove file.
821 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
822 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
823 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
824 * nptl/pthread_join_common.c (timedwait_tid): New function.
825 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
826 is set.
827 * nptl/tst-join5.c (thread_join): New function.
828 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
829 check.
830 * nptl/tst-join8.c: New file.
831 * nptl/tst-join9.c: Likewise.
832 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
833 lll_futex_timed_wait_cancel): Add generic macros.
834 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
835 Remove definitions.
836 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
837 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
838 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
839 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
840 Remove function.
841 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
842 Likewise.
843 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
844 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
845 (lll_futex_timed_wait_cancel): New macro.
846
847 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
848
849 * benchtests/Makefile: Add malloc-simple benchmark.
850 * benchtests/bench-malloc-simple.c: New benchmark.
851
852 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
853
854 * benchtests/bench-memmove.c (do_one_test): Remove unused
855 ORIG_SRC.
856 (do_test): Adjust.
857 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
858 ORIG_SRC.
859 (do_test): Adjust.
860
861 2019-01-13 Jim Wilson <jimw@sifive.com>
862
863 [BZ #24040]
864 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
865 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
866 (func): New.
867 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
868 call func directly.
869 * nptl/Makefile (tests): Add tst-unwind-thread.
870 (CFLAGS-tst-unwind-thread.c): Define.
871 * nptl/tst-unwind-thread.c: New file.
872 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
873 as undefined.
874
875 2019-02-13 Joseph Myers <joseph@codesourcery.com>
876
877 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
878 comment wording.
879 * nis/nis_call.c (__do_niscall3): Likewise.
880
881 * catgets/gencat.c (normalize_line): Use braces around empty
882 'else' body.
883 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
884 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
885 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
886 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
887 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
888 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
889 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
890 definition.
891
892 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
893 execlp returns.
894
895 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
896
897 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
898 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
899 * benchtests/bench-strchr.c (stupid_strchr): Remove.
900 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
901 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
902 * benchtests/bench-strlen.c (builtin_strlen): Remove.
903 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
904 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
905 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
906 * benchtests/bench-strspn.c (stupid_strspn): Remove.
907 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
908 * benchtests/bench-bcopy.c: Delete file.
909 * benchtests/bench-bzero.c: Likewise.
910 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
911 (simple_memccpy): Remove.
912 (generic_memccpy): Add function.
913 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
914 * benchtests/bench-memmove.c (simple_bcopy): Remove.
915 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
916 (generic_mempcpy): Add new function.
917 * benchtests/bench-memset.c (simple_bzero): Remove.
918 (builtin_bzero): Remove.
919 (builtin_memset): Remove.
920 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
921 (generic_rawmemchr): Add new function.
922
923 2019-02-12 Florian Weimer <fweimer@redhat.com>
924
925 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
926
927 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
928
929 [BZ #24122]
930 * elf/Makefile (tests): Add tst-audit13.
931 (modules-names): Add tst-audit13mod1.
932 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
933 rule.
934 * elf/tst-audit13.c: New file.
935 * elf/tst-audit13mod1.c: Likewise.
936
937 2019-02-12 Florian Weimer <fweimer@redhat.com>
938
939 [BZ #24122]
940 * elf/rtld.c (unload_audit_module): New function.
941 (report_audit_module_load_error): Likewise.
942 (load_audit_module): Likewise. Extracted from dl_main. Call
943 _dl_close if the laversion symbol cannot be found. Use early
944 returns for error handling. Add malloc error check. Check for a
945 zero return value from la_version. Remove spurious comment about
946 static TLS initialization. Remove useless casts.
947 (notify_audit_modules_of_loaded_object): New function. Extracted
948 from dl_main.
949 (load_audit_module): Likewise.
950 (dl_main): Call load_audit_modules.
951
952 2019-02-12 Joseph Myers <joseph@codesourcery.com>
953
954 * elf/dl-exception.c (_dl_exception_create_format): Add
955 fall-through comments.
956 * elf/ldconfig.c (parse_conf_include): Likewise.
957 * elf/rtld.c (print_statistics): Likewise.
958 * locale/programs/charmap.c (parse_charmap): Likewise.
959 * misc/mntent_r.c (__getmntent_r): Likewise.
960 * posix/wordexp.c (parse_arith): Likewise.
961 (parse_backtick): Likewise.
962 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
963 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
964 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
965
966 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
967
968 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
969 Use float instead of double.
970
971 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
972
973 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
974
975 2019-02-08 Joseph Myers <joseph@codesourcery.com>
976
977 * sysdeps/powerpc/bits/mathinline.h: Remove.
978
979 2019-02-08 Florian Weimer <fweimer@redhat.com>
980
981 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
982 * math/bits/math-finite.h: Move to ...
983 * bits/math-finite.h: ... here.
984
985 2019-02-08 Florian Weimer <fweimer@redhat.com>
986
987 * sysdeps/generic/bits/unistd_ext.h: Move to ...
988 * bits/unistd_ext.h: here.
989
990 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
991
992 [BZ #21915]
993 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
994 * nss/tst-nss-files-hosts-long.c: New file.
995 * nss/tst-nss-files-hosts-long.root: New directory.
996 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
997 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
998
999 2019-02-08 Florian Weimer <fweimer@redhat.com>
1000
1001 * include/bits/unistd_ext.h: Remove file.
1002 * posix/bits/unistd_ext.h: Move to ...
1003 * sysdeps/generic/bits/unistd_ext.h: ... here.
1004
1005 2019-02-08 Florian Weimer <fweimer@redhat.com>
1006
1007 * include/bits/unistd_ext.h: New file.
1008
1009 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
1010
1011 * time/tst-strftime2.c: Use array_length macros instead of magic
1012 numbers.
1013
1014 2019-02-08 Florian Weimer <fweimer@redhat.com>
1015
1016 [BZ #24161]
1017 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
1018 argument.
1019 * nptl/register-atfork.c (__run_fork_handlers): Only perform
1020 locking if the new do_locking argument is true.
1021 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
1022 __run_fork_handlers.
1023
1024 2019-02-08 Florian Weimer <fweimer@redhat.com>
1025
1026 [BZ #6399]
1027 Linux: Add gettid system call wrapper.
1028 * posix/Makefile (headers): Add bits/unistd_ext.h.
1029 * posix/bits/unistd_ext.h: New file.
1030 * posix/unistd.h: Include it.
1031 * manual/process.texi (Process Identification): Document gettid.
1032 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
1033 tst-gettid, tst-gettid-kill.
1034 (tst-gettid): Link with $(shared-thread-library).
1035 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
1036 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
1037 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
1038 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
1039 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
1040 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
1041 Add gettid.
1042 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
1043 Likewise.
1044 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
1045 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
1046 Likewise.
1047 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
1048 Likewise.
1049 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
1050 Likewise.
1051 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
1052 Likewise.
1053 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
1054 Likewise.
1055 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
1056 Likewise.
1057 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
1058 Likewise.
1059 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
1060 (GLIBC_2.30): Likewise.
1061 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
1062 (GLIBC_2.30): Likewise.
1063 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
1064 (GLIBC_2.30): Likewise.
1065 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
1066 (GLIBC_2.30): Likewise.
1067 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
1068 Likewise.
1069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1070 (GLIBC_2.30): Likewise.
1071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1072 (GLIBC_2.30): Likewise.
1073 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1074 (GLIBC_2.30): Likewise.
1075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1076 (GLIBC_2.30): Likewise.
1077 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1078 Likewise.
1079 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1080 Likewise.
1081 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1082 Likewise.
1083 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1084 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1085 Likewise.
1086 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1087 Likewise.
1088 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1089 Likewise.
1090 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1091 Likewise.
1092 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1093
1094 2019-02-07 Florian Weimer <fweimer@redhat.com>
1095
1096 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1097 compatibility symbols.
1098
1099 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1100
1101 [BZ #24180]
1102 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1103 Add compiler barriers and comments.
1104
1105 2019-02-07 Florian Weimer <fweimer@redhat.com>
1106
1107 * include/array_length.h (array_length): Do not use a statement
1108 expression and _Static_assert, so that array_length can be used at
1109 file scope and as a constant expression.
1110
1111 2019-02-07 Florian Weimer <fweimer@redhat.com>
1112
1113 * support/xdlfcn.h (xdlmopen): Declare.
1114 * support/xdlmopen.c: New file.
1115 * support/Makefile (libsupport-routines): Add xdlmopen.
1116
1117 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1118
1119 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1120 before return type, without separate inline.
1121 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1122 * elf/dl-tunables.h (tunable_is_name): Likewise.
1123 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1124 (do_set_top_pad): Likewise.
1125 (do_set_mmap_threshold): Likewise.
1126 (do_set_mmaps_max): Likewise.
1127 (do_set_mallopt_check): Likewise.
1128 (do_set_perturb_byte): Likewise.
1129 (do_set_arena_test): Likewise.
1130 (do_set_arena_max): Likewise.
1131 (do_set_tcache_max): Likewise.
1132 (do_set_tcache_count): Likewise.
1133 (do_set_tcache_unsorted_limit): Likewise.
1134 * nis/nis_subr.c (count_dots): Likewise.
1135 * nptl/allocatestack.c (advise_stack_range): Likewise.
1136 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1137 (do_sin): Likewise.
1138 (reduce_sincos): Likewise.
1139 (do_sincos): Likewise.
1140 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1141 (do_set_elision_enable): Likewise.
1142 (TUNABLE_CALLBACK_FNDECL): Likewise.
1143
1144 2019-02-06 Florian Weimer <fweimer@redhat.com>
1145
1146 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1147 (xdlsym): Use dlerror to detect a NULL symbol.
1148
1149 2019-02-06 Florian Weimer <fweimer@redhat.com>
1150
1151 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1152 <stap-probe.h>.
1153 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1154
1155 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1156
1157 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1158
1159 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1160
1161 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1162 __wmemcmp and weak alias to wmemcmp.
1163
1164 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1165
1166 [BZ #23403]
1167 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1168 TLS_TCB_AT_TP tls variant.
1169 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1170 Add alignment checks.
1171 * support/Makefile (libsupport-routines): Add xposix_memalign and
1172 xpthread_setstack.
1173 * support/support.h: Add xposix_memalign.
1174 * support/xthread.h: Add xpthread_attr_setstack.
1175 * support/xposix_memalign.c: New File.
1176 * support/xpthread_attr_setstack.c: Likewise.
1177
1178 2019-02-05 Florian Weimer <fweimer@redhat.com>
1179
1180 [BZ #24164]
1181 arm: Use "nr" constraint for Systemtap probes, to avoid the
1182 compiler using memory operands for constants, due to the "o"
1183 alternative in the default "nor" constraint.
1184 * include/stap-probe.h [USE_STAP_PROBE]: Include
1185 <stap-probe-machine.h>
1186 * sysdeps/generic/stap-probe-machine.h: New file.
1187 * sysdeps/arm/stap-probe-machine.h: Likewise.
1188
1189 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1190
1191 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1192 with 0, not tcache->entries[tc_idx].
1193
1194 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1195 once.
1196
1197 2019-02-04 Andreas Schwab <schwab@suse.de>
1198
1199 [BZ #16976]
1200 [BZ #17396]
1201 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1202 looking up collating elements match against (wide) character
1203 sequence instead of name. Correct alignment adjustment.
1204 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1205 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1206 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1207 (LOCALES): Add cs_CZ.ISO-8859-2.
1208 * posix/tst-fnmatch4.c: New file.
1209 * posix/tst-fnmatch5.c: New file.
1210 * include/wchar.h (__wmemcmp): Declare.
1211 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1212 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1213 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1214 * sysdeps/s390/wmemcmp.c: Likewise.
1215
1216 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1217
1218 [BZ #24155]
1219 CVE-2019-7309
1220 * NEWS: Updated for CVE-2019-7309.
1221 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1222 upper 32 bits of RDX register for x32. Use unsigned Jcc
1223 instructions, instead of signed.
1224 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1225 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1226
1227 2019-02-04 Florian Weimer <fweimer@redhat.com>
1228
1229 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1230 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1231 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1232 Likewise.
1233 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1234 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1235 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1236 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1237 Likewise.
1238 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1239 Likewise.
1240 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1241 Likewise.
1242 (posix_spawn_file_actions_addopen): Likewise.
1243 (posix_spawn_file_actions_addclose): Likewise.
1244 (posix_spawn_file_actions_adddup2): Likewise.
1245 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1246 qualifiers.
1247 (posix_spawn_file_actions_addfchdir_np): Likewise.
1248
1249 2019-02-04 David Newall <glibc@davidnewall.com>
1250
1251 elf: Implement --preload option for the dynamic linker.
1252 * elf/rtld.c (preloadarg): New variable.
1253 (handle_preload_list): Pass through “where” argument to
1254 do_preload.
1255 (dl_main): Handle "--preload" and add second call to
1256 handle_preload_list.
1257 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1258 (tst-rtld-preload-OBJS): Set variable.
1259 (tst-rtld-preload.out): New target.
1260 * elf/tst-rtld-preload.sh: New file.
1261
1262 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1263
1264 * Makefile (testrun.sh): Exit in case of incorrect argument.
1265
1266 2019-02-04 Florian Weimer <fweimer@redhat.com>
1267
1268 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1269 alignment gaps.
1270
1271 2019-02-03 Florian Weimer <fweimer@redhat.com>
1272
1273 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1274 implicit overflow checks.
1275
1276 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1277
1278 * stdlib/isomac.c: Include <unistd.h>.
1279
1280 2019-02-03 Florian Weimer <fweimer@redhat.com>
1281
1282 * include/time.h (__tzfile_default): Use int, not long int, for
1283 the GMT offsets.
1284 * time/tzfile.c (struct ttinfo): Change type of the offset member
1285 to int.
1286 (__tzfile_read): Remove useless cast.
1287 (__tzfile_default): Adjust prototype.
1288 * time/tzset.c (tz_rule): Change type of the offset member to int.
1289 (parse_offset): Change the type of the sign variable to int.
1290
1291 2019-02-03 Florian Weimer <fweimer@redhat.com>
1292
1293 [BZ #24153]
1294 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1295 * libio/getchar.c (getchar): Likewise.
1296 * libio/getchar_u.c (getchar_unlocked): Likewise.
1297 * libio/getwchar.c (getwchar): Likewise.
1298 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1299 * libio/iogets.c (_IO_gets): Likewise.
1300 * libio/vscanf.c (_IO_vscanf): Likewise.
1301 * libio/vwscanf.c (__vwscanf): Likewise.
1302 * libio/tst-bz24153.c: New file.
1303 * libio/Makefile (tests): Add it.
1304
1305 2019-02-02 Florian Weimer <fweimer@redhat.com>
1306
1307 [BZ #14829]
1308 * manual/resource.texi (Basic Scheduling Functions): Add
1309 portability note. Change process to task throughout the section.
1310 Remove incorrect comment about sched_yield as it affects
1311 tasks/threads, not entire processes.
1312 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1313 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1314
1315 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1316
1317 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1318 * configure: Regenerated.
1319 * manual/install.texi (Tools for Compilation): Update minimum GCC
1320 version.
1321 * INSTALL: Regenerated.
1322
1323 2019-02-01 Florian Weimer <fweimer@redhat.com>
1324
1325 * support/support_test_compare_string.c
1326 (support_test_compare_string): Use "string" in error message.
1327 * support/tst-test_compare_string.c (do_test): Adjust.
1328
1329 2019-02-01 Florian Weimer <fweimer@redhat.com>
1330
1331 * support/support_format_address_family.c
1332 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1333
1334 2019-02-01 Florian Weimer <fweimer@redhat.com>
1335
1336 * manual/socket.texi (Internet Address Formats): Clarify the byte
1337 order of struct sockaddr_in, struct sockaddr_in6. Document
1338 sin6_flowinfo and sin6_scope_id.
1339
1340 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1341
1342 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1343 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1344 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1345 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1346 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1347 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1348
1349 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1350
1351 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1352 [!MEMCHR](MEMCHR): Set to __memchr.
1353 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1354 Add memchr_generic and memchr_nosimd.
1355 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1356 (__libc_ifunc_impl_list): Add memchr ifuncs.
1357 * sysdeps/aarch64/multiarch/memchr.c: New file.
1358 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1359 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1360
1361 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1362
1363 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1364 Add memset_emag.
1365 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1366 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1367 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1368 Add IS_EMAG check for ifunc dispatch.
1369 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1370 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1371
1372 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1373
1374 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1375 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1376 Add emag.
1377 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1378 New macro.
1379
1380 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1381
1382 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1383
1384 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1385
1386 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1387 syscall-template file.
1388
1389 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1390 Torvald Riegel <triegel@redhat.com>
1391 Rik Prohaska <prohaska7@gmail.com>
1392
1393 [BZ# 23844]
1394 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1395 tst-rwlock-trywrlock-stall.
1396 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1397 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1398 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1399 Set __wrphase_fute to 1 only if we started the write phase.
1400 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1401 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1402 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1403 * support/xpthread_rwlock_destroy.c: New file.
1404 * support/xthread.h: Declare xpthread_rwlock_destroy.
1405
1406 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1407
1408 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1409 version to 4.0.2.
1410
1411 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1412
1413 [BZ #24051]
1414 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1415 * libio/fileops.c (_IO_new_file_underflow): Likewise
1416 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1417 * libio/putchar.c (putchar): Likewise.
1418 * libio/putchar_u.c (putchar_unlocked): Likewise.
1419 * libio/putwchar.c (putchar): Likewise.
1420 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1421 * libio/tst-bz24051.c: New test.
1422 * libio/Makefile (tests): Add tst-bz24051
1423
1424 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1425
1426 regex: fix read overrun [BZ #24114]
1427 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1428 https://debbugs.gnu.org/34140
1429 * posix/regexec.c (proceed_next_node):
1430 Do not read past end of input buffer.
1431
1432 2019-01-31 Florian Weimer <fweimer@redhat.com>
1433
1434 [BZ #24059]
1435 * nss/nss_files/files-alias.c (get_next_alias): Handle
1436 continuation line without newline at the end.
1437 * nss/tst-nss-files-alias-truncated.c: New file.
1438 * nss/Makefile [$(build-shared)] (tests): Add
1439 tst-nss-files-alias-truncated.
1440 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1441 * support/namespace.h (struct support_chroot_configuration): Add
1442 aliases member.
1443 (struct support_chroot): Add path_aliases member.
1444 * support/support_chroot.c (support_chroot_create): Handle
1445 aliases.
1446 (support_chroot_free): Free path_aliases.
1447
1448 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1449
1450 * version.h (RELEASE): Set to "development".
1451 (VERSION): Set to "2.29.9000".
1452 * NEWS: Add section for 2.30.
1453
1454 * version.h (RELEASE): Set to "stable".
1455 (VERSION): Set to "2.29".
1456 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1457
1458 * NEWS: Add the list of bugs fixed in 2.29.
1459 * manual/contrib.texi: Update contributors list with some more
1460 names.
1461 * manual/install.texi: Update latest versions of packages
1462 tested.
1463 * INSTALL: Regenerated.
1464
1465 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1466
1467 * po/be.po: Update translations.
1468 * po/bg.po: Likewise.
1469 * po/ca.po: Likewise.
1470 * po/cs.po: Likewise.
1471 * po/da.po: Likewise.
1472 * po/de.po: Likewise.
1473 * po/el.po: Likewise.
1474 * po/eo.po: Likewise.
1475 * po/es.po: Likewise.
1476 * po/fi.po: Likewise.
1477 * po/fr.po: Likewise.
1478 * po/gl.po: Likewise.
1479 * po/hr.po: Likewise.
1480 * po/hu.po: Likewise.
1481 * po/ia.po: Likewise.
1482 * po/id.po: Likewise.
1483 * po/it.po: Likewise.
1484 * po/ja.po: Likewise.
1485 * po/ko.po: Likewise.
1486 * po/lt.po: Likewise.
1487 * po/nb.po: Likewise.
1488 * po/nl.po: Likewise.
1489 * po/pl.po: Likewise.
1490 * po/pt_BR.po: Likewise.
1491 * po/ru.po: Likewise.
1492 * po/rw.po: Likewise.
1493 * po/sk.po: Likewise.
1494 * po/sl.po: Likewise.
1495 * po/sv.po: Likewise.
1496 * po/tr.po: Likewise.
1497 * po/uk.po: Likewise.
1498 * po/vi.po: Likewise.
1499 * po/zh_CN.po: Likewise.
1500 * po/zh_TW.po: Likewise.
1501
1502 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1503
1504 [BZ #24130]
1505 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1506 of $f3 register on $y_is_neg path.
1507
1508 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1509
1510 [BZ #24110]
1511 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1512 sigaltstack.ss_flags.
1513
1514 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1515
1516 [BZ #23758]
1517 * manual/time.texi (strftime): Document "%Ey".
1518 * time/strftime_l.c (__strftime_internal): Set the default width
1519 padding with zero of "%Ey" to 2.
1520
1521 [BZ #24096]
1522 * manual/time.texi (strftime): Document "%EC" and "%EY".
1523 * time/Makefile (tests): Add tst-strftime2.
1524 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1525 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1526 override padding for "%Ey".
1527 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1528 "%Ey" in the subformat as if decorated with that flag.
1529 * time/tst-strftime2.c: New file.
1530
1531 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1532
1533 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1534 are not defined.
1535
1536 [BZ #24122]
1537 * elf/Makefile (tests): Add tst-audit13.
1538 (modules-names): Add tst-audit13mod1.
1539 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1540 rule.
1541 * elf/rtld.c (dl_main): Handle invalid audit module version.
1542 * elf/tst-audit13.c: New file.
1543 * elf/tst-audit13mod1.c: Likewise.
1544
1545 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1546
1547 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1548 returned by __hurd_at_flags.
1549 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1550 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1551 directly instead of __hurd_file_name_lookup.
1552
1553 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1554
1555 * scripts/build-many-glibcs.py (Context.checkout): Default
1556 binutils version to 2.32 branch.
1557
1558 2019-01-21 Florian Weimer <fweimer@redhat.com>
1559
1560 [BZ #20018]
1561 CVE-2016-10739
1562 resolv: Reject trailing characters in host names
1563 * include/arpa/inet.h (__inet_aton_exact): Declare.
1564 (inet_aton): Remove hidden prototype. No longer used internally.
1565 * nscd/gai.c (__inet_aton): Do not define.
1566 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1567 * nss/digits_dots.c (__inet_aton): Likewise.
1568 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1569 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1570 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1571 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1572 (tst-resolv-trailing): Likewise.
1573 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1574 libc.
1575 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1576 Make static. Add endp parameter.
1577 (__inet_aton_exact): New function.
1578 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1579 (__inet_addr): Call inet_aton_end.
1580 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1581 not just IPv6. Call __inet_aton_exact.
1582 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1583 (tests): Make const. Add additional test cases with trailing
1584 characters.
1585 (do_test): Use array_length.
1586 * resolv/tst-inet_aton_exact.c: New file.
1587 * resolv/tst-resolv-trailing.c: Likewise.
1588 * resolv/tst-resolv-nondecimal.c: Likewise.
1589 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1590
1591 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1592
1593 [BZ# 24097]
1594 CVE-2019-6488
1595 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1596 Clear the upper 32 bits of RSI register.
1597 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1598 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1599 and tst-size_t-wcsnlen.
1600 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1601 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1602
1603 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1604
1605 [BZ# 24097]
1606 CVE-2019-6488
1607 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1608 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1609 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1610 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1611 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1612
1613 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1614
1615 [BZ# 24097]
1616 CVE-2019-6488
1617 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1618 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1619 * sysdeps/x86_64/strcmp.S: Likewise.
1620 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1621 tst-size_t-strncmp and tst-size_t-wcsncmp.
1622 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1623 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1624 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1625
1626 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1627
1628 [BZ# 24097]
1629 CVE-2019-6488
1630 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1631 RDX_LP for length. Clear the upper 32 bits of RDX register.
1632 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1633 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1634 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1635 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1636
1637 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1638
1639 [BZ# 24097]
1640 CVE-2019-6488
1641 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1642 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1643 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1644 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1645
1646 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1647
1648 [BZ# 24097]
1649 CVE-2019-6488
1650 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1651 length. Clear the upper 32 bits of RDX register.
1652 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1653 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1654 Likewise.
1655 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1656 Likewise.
1657 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1658 tst-size_t-wmemchr.
1659 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1660
1661 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1662
1663 [BZ# 24097]
1664 CVE-2019-6488
1665 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1666 length. Clear the upper 32 bits of RDX register.
1667 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1668 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1669 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1670 tst-size_t-wmemcmp.
1671 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1672 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1673
1674 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1675
1676 [BZ# 24097]
1677 CVE-2019-6488
1678 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1679 upper 32 bits of RDX register.
1680 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1681 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1682 tst-size_t-wmemchr.
1683 * sysdeps/x86_64/x32/test-size_t.h: New file.
1684 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1685 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1686
1687 2019-01-18 Florian Weimer <fweimer@redhat.com>
1688
1689 [BZ #24112]
1690 resolv: Do not send queries for non-host-names in nss_dns.
1691 * resolv/nss_dns/dns-host.c (check_name): New function.
1692 (_nss_dns_gethostbyname2_r): Use it.
1693 (_nss_dns_gethostbyname_r): Likewise.
1694 (_nss_dns_gethostbyname4_r): Likewise.
1695
1696 2019-01-21 Florian Weimer <fweimer@redhat.com>
1697
1698 * resolv/inet_addr.c: Reformat to GNU style.
1699 (__inet_addr, __inet_aton): Update comment.
1700
1701 2019-01-18 Florian Weimer <fweimer@redhat.com>
1702
1703 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1704 ("malloc: Use current (C11-style) atomics for fastbin access").
1705 This commit introduces a substantial performance regression on
1706 POWER and Aarch64.
1707 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1708 (REMOVE_FB): Define.
1709 (_int_malloc): Use it and reindent.
1710 (_int_free): Use CAS loop with
1711 catomic_compare_and_exchange_val_rel.
1712 (malloc_consolidate): Use atomic_exchange_acq.
1713
1714
1715 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1716
1717 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1718 -Wl,-z,now.
1719 (LDFLAGS-tst-minsigstksz-2): Likewise.
1720 (LDFLAGS-tst-minsigstksz-3): Likewise.
1721 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1722 (LDFLAGS-tst-minsigstksz-4): Likewise.
1723
1724 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1725
1726 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1727 than "alternate".
1728
1729 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1730
1731 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1732
1733 2019-01-16 Zack Weinberg <zackw@panix.com>
1734
1735 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1736 (xget_sigstack_location): New test support functions.
1737 * support/xsigstack.c: New file, implementing them.
1738 * support/tst-xsigstack.c: New test for them.
1739 * support/Makefile: Update.
1740
1741 * signal/tst-minsigstksz-1.c
1742 * signal/tst-minsigstksz-2.c
1743 * signal/tst-minsigstksz-3.c
1744 * signal/tst-minsigstksz-3a.c
1745 * signal/tst-minsigstksz-4.c: New tests.
1746 * signal/Makefile: Run them.
1747
1748 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1749
1750 * po/libc.pot: Regenerate.
1751
1752 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1753
1754 * math/libm-test-fma.inc (fma_test_data): Set
1755 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1756
1757 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1758
1759 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1760 (do_test): Changed __vector __int128_t to __vector unsigned int.
1761
1762 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1763
1764 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1765 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1766 stpcpy-avx2 and stpncpy-avx2.
1767 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1768 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1769 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1770 and __stpncpy_avx2.
1771 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1772 ifunc-strcpy.h}: rename header for a more generic name.
1773 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1774 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1775 AVX unaligned load is fast and vzeroupper is preferred.
1776 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1777 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1778 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1779 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1780 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1781 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1782
1783 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1784
1785 * argp/argp-help.c: Fix typo in comment.
1786 * misc/sys/cdefs.h: Likewise.
1787 * posix/regexec.c (sift_states_iter_mb): Likewise.
1788 * socket/sockatmark.c: Likewise.
1789 * socket/sys/socket.h: Likewise.
1790 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1791 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1792 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1793 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1794 * sysdeps/unix/sockatmark.c: Likewise.
1795 * time/strptime_l.c: Likewise.
1796
1797 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1798
1799 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1800 missing space after the cast of "_NL_CURRENT".
1801
1802 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1803
1804 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1805 ifdef to fix read of VSCR.
1806 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1807 tst-ucontext-ppc64-vscr.c to test list.
1808 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1809
1810 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1811
1812 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1813 fall-through.
1814
1815 2019-01-09 Jim Wilson <jimw@sifive.com>
1816
1817 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1818
1819 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1820
1821 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1822 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1823 __memcpy_falkor for ares.
1824 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1825 Add new define.
1826 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1827 Add ares cpu.
1828
1829 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1830
1831 [BZ #24066]
1832 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1833 4_FP_W_TYPEs are used for IEEE quad precision.
1834 * soft-fp/extendhftf2.c: Likewise.
1835 * soft-fp/extendsftf2.c: Likewise.
1836 * soft-fp/extendxftf2.c: Likewise.
1837 * soft-fp/trunctfdf2.c: Likewise.
1838 * soft-fp/trunctfhf2.c: Likewise.
1839 * soft-fp/trunctfsf2.c: Likewise.
1840 * soft-fp/trunctfxf2.c: Likewise.
1841 * sysdeps/alpha/ots_cvttx.c: Likewise.
1842 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1843 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1844 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1845 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1846 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1847 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1848 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1849 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1850 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1851 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1852 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1853 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1854 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1855 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1856 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1857 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1858 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1859
1860 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1861
1862 [BZ #24024]
1863 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1864 code with -fmath-errno.
1865 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1866 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1867 * string/test-strerror-errno.c: New file.
1868
1869 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1870
1871 [BZ #24046]
1872 * localedata/locales/en_US (date_fmt): Add, set to
1873 "%a %d %b %Y %r %Z".
1874
1875 2019-01-07 Florian Weimer <fweimer@redhat.com>
1876
1877 [BZ #24063]
1878 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1879 instead of @var{errno}.
1880 (Parsing of Integers): Likewise.
1881 (Parsing of Floats): Likewise.
1882 * manual/filesys.texi (Working with Directory Trees): Likewise.
1883 (Temporary Files): Likewise.
1884 * manual/job.texi (Terminal Access Functions): Likewise.
1885 * manual/llio.texi (Synchronizing I/O): Likewise.
1886 * manual/math.texi (SVID Random): Likewise.
1887 * manual/message.texi (The catgets Functions): Likewise.
1888 (Translation with gettext): Likewise.
1889 (Locating gettext catalog): Likewise.
1890 (Charset conversion in gettext): Likewise.
1891 * manual/nss.texi (NSS Module Function Internals): Likewise.
1892 * manual/search.texi (Hash Search Function): Likewise.
1893 * manual/setjmp.texi (System V contexts): Likewise.
1894 * manual/time.texi (Sleeping): Likewise.
1895 * manual/users.texi (Lookup User): Likewise.
1896 (Lookup Group): Likewise.
1897
1898 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1899
1900 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1901 fix typo.
1902
1903 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1904
1905 [BZ #19444]
1906 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1907 __builtin_unreachable for default case in switch.
1908 (__ieee754_yn): Likewise.
1909 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1910 (__ieee754_ynl): Likewise.
1911 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1912 (__ieee754_ynl): Likewise.
1913 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1914 (__ieee754_ynl): Likewise.
1915
1916 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1917
1918 * manual/maint.texi: Use @{ and @}.
1919
1920 2019-01-04 Florian Weimer <fweimer@redhat.com>
1921
1922 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1923 function.
1924 (do_in_chroot_1): Call it.
1925 (run_chroot_tests):
1926 Improve error reporting in case it is not possible to create a
1927 collision for the PTY name required by the test.
1928
1929 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1930
1931 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1932 lll_wait_tid with timeout.
1933 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1934 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1935 futex_reltimed_wait_cancelable for cancelabla mode.
1936 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1937 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1938 macros.
1939 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1940 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1941 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1942 SYSCALL_CANCEL_NCS): New macro.
1943 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1944 (lll_timedwait_tid): Remove macro.
1945 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1946 Likewise.
1947 (lll_timedwait_tid): Likewise.
1948 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1949 Likewise.
1950 (lll_timedwait_tid): Likewise.
1951 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1952 Likewise.
1953 (lll_timedwait_tid): Likewise.
1954 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1955 Use INTERNAL_SYSCALL_CANCEL.
1956 * sysdeps/unix/sysv/linux/futex-internal.h
1957 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1958 instead of __pthread_{enable,disable}_asynccancel.
1959 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1960 (lll_futex_wait_cancel): New macro.
1961
1962 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1963 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1964
1965 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1966 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1967
1968 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1969 in backtrace analysis.
1970 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1971 side-effects.
1972 (tf_send): Likewise.
1973
1974 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1975 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1976 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1977 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1978 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1979 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1980 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1981 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1982 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1983 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1984 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1985 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1986 Likewise.
1987 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1988 tst-cancel-wrappers.sh.
1989 (generated): Remove tst-cancel-wrappers.out.
1990 (tst-cancel-wrappers.out): Remove rule.
1991 * nptl/tst-cancel-wrappers.sh: Remove file.
1992
1993 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1994
1995 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1996 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1997 Update.
1998
1999 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2000
2001 [BZ #23640]
2002 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
2003 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
2004 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
2005 close-on-exec reset for adddup2 file action.
2006 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
2007
2008 2019-01-03 Zack Weinberg <zackw@panix.com>
2009
2010 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
2011 parameter. Only use deprecated scanf when __USE_GNU is defined
2012 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
2013 than 201103L, whichever is relevant for the language being compiled.
2014
2015 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
2016 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
2017 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
2018 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
2019 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
2020
2021 * libio/iovsscanf.c
2022 * libio/fwscanf.c
2023 * libio/iovswscanf.c
2024 * libio/swscanf.c
2025 * libio/vscanf.c
2026 * libio/vwscanf.c
2027 * libio/wscanf.c
2028 * stdio-common/fscanf.c
2029 * stdio-common/scanf.c
2030 * stdio-common/vfscanf.c
2031 * stdio-common/vfwscanf.c
2032 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
2033 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
2034 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
2035 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
2036 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
2037 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
2038 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
2039 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
2040 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
2041 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
2042 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
2043 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
2044 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
2045 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
2046 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
2047
2048 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
2049 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
2050 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
2051 not sscanf.
2052 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
2053 with a preprocessor macro.
2054
2055 * stdio-common/bug21.c, stdio-common/scanf14.c:
2056 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
2057 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2058 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
2059 to xscanf, xfscanf, xsscanf.
2060
2061 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
2062 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
2063 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
2064 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
2065 xfscanf, xsscanf.
2066 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
2067 override feature selection macros or provide definitions of u_char etc.
2068 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
2069 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2070 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2071 with -std=gnu89.
2072
2073 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2074
2075 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2076 bits/termios-misc.h.
2077 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2078 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2079 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2080 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2081 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2082 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2083
2084 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2085 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2086 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2087 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2088 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2089 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2090 termios-misc.h.
2091 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2092 (sysdep_headers): Add termios-misc.h.
2093
2094 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2095 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2096 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2097
2098 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2099 termios-tcflow.h.
2100 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2101 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2102 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2103 TCSAFLUSH): Move to termios-tcflow.h.
2104 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2105 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2106 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2107 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2108
2109 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2110 termios-c_lflag.h.
2111 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2112 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2113 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2114 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2115 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2116 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2117 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2118 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2119 Likewise.
2120 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2121 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2122 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2123 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2124
2125 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2126 termios-c_cflag.h.
2127 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2128 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2129 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2130 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2131 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2132 termios-c_cflag.h.
2133 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2134 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2135 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2136 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2137
2138 [BZ #23783]
2139 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2140 termios-baud.h.
2141 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2142 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2143 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2144 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2145 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2146 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2147 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2148 __MAX_BAUD): Move to termios-baud.h.
2149 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2150 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2151 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2152 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2153 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2154
2155 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2156 termios-c_oflag.h.
2157 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2158 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2159 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2160 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2161 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2162 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2163 termios-c_oflag.h.
2164 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2165 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2166 FFR1): Likewise.
2167 [USE_MISC] (XTABS): Likewise.
2168 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2169 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2170 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2171 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2172
2173 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2174 termios-c_iflag.h.
2175 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2176 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2177 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2178 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2179 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2180 IUTF8): Move to termios-c_iflag.h.
2181 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2182 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2183 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2184 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2185
2186 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2187 termios-cc.h.
2188 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2189 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2190 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2191 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2192 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2193 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2194 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2195 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2196 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2197 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2198 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2199 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2200
2201 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2202 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2203 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2204 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2205 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2206 termios-struct.h.
2207 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2208 termios-struct.h.
2209 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2210 Likewise.
2211 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2212 Likewise.
2213 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2214 Likewise.
2215 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2216 Likewise.
2217 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2218 _HAVE_C_OSPEED): Define.
2219 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2220 _HAVE_C_OSPEED): Likewise.
2221 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2222 _HAVE_C_OSPEED): Likewise.
2223 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2224 (cfsetospeed): Check for define value instead of existence.
2225 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2226 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2227 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2228 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2229 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2230
2231 [BZ #17783]
2232 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2233 Define.
2234 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2235 (TIOCSER_TEMT): Likewise.
2236 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2237 (TEOCSER_TEMT): Likewise.
2238
2239 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2240
2241 [BZ #24011]
2242 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2243
2244 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2245
2246 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2247
2248 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2249
2250 * sysdeps/htl/pt-barrierattr-setpshared.c
2251 (pthread_barrierattr_setpshared): Add stub warning.
2252 * sysdeps/htl/pt-condattr-setpshared.c
2253 (pthread_condattr_setpshared): Likewise.
2254 * sysdeps/htl/pt-mutexattr-setpshared.c
2255 (pthread_mutexattr_setpshared): Likewise.
2256 * sysdeps/htl/pt-rwlockattr-setpshared.c
2257 (pthread_rwlockattr_setpshared): Likewise.
2258 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2259 (pthread_mutexattr_setpshared): Likewise.
2260
2261 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2262
2263 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2264 constants to match with Linux 4.20.
2265
2266 * sysdeps/mips/mips32/libm-test-ulps: Update.
2267 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2268
2269 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2270
2271 [BZ #24034]
2272 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2273 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2274 than __typeof (...) for the a_ptr variable.
2275
2276 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2277
2278 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2279 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2280 * libio/Makefile (tests): Add tst-sprintf-ub and
2281 tst-sprintf-chk-ub.
2282 (CFLAGS-tst-sprintf-ub.c): New variable.
2283 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2284 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2285 destination buffer and check for overflows in fortified mode.
2286 * libio/libioP.h (PRINTF_CHK): New macro.
2287 * libio/tst-sprintf-chk-ub.c: New file.
2288 * libio/tst-sprintf-ub.c: Likewise.
2289
2290 2019-01-02 Florian Weimer <fweimer@redhat.com>
2291
2292 [BZ #24018]
2293 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2294 failure.
2295
2296 2019-01-02 Florian Weimer <fweimer@redhat.com>
2297
2298 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2299
2300 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2301
2302 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2303 macro.
2304
2305 * sysdeps/unix/sysv/linux/netpacket/packet.h
2306 (PACKET_IGNORE_OUTGOING): New macro.
2307
2308 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2309 macro.
2310
2311 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2312 version to 4.20.
2313 (riscv_flush_icache): New syscall.
2314
2315 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2316 trailing whitespace removed.
2317 * scripts/config.guess: Update to version 2019-01-01.
2318 * scripts/config.sub: Update to version 2019-01-01.
2319 * scripts/move-if-change: Update from gnulib.
2320
2321 * NEWS: Update copyright dates.
2322 * catgets/gencat.c (print_version): Likewise.
2323 * csu/version.c (banner): Likewise.
2324 * debug/catchsegv.sh: Likewise.
2325 * debug/pcprofiledump.c (print_version): Likewise.
2326 * debug/xtrace.sh (do_version): Likewise.
2327 * elf/ldconfig.c (print_version): Likewise.
2328 * elf/ldd.bash.in: Likewise.
2329 * elf/pldd.c (print_version): Likewise.
2330 * elf/sotruss.sh: Likewise.
2331 * elf/sprof.c (print_version): Likewise.
2332 * iconv/iconv_prog.c (print_version): Likewise.
2333 * iconv/iconvconfig.c (print_version): Likewise.
2334 * locale/programs/locale.c (print_version): Likewise.
2335 * locale/programs/localedef.c (print_version): Likewise.
2336 * login/programs/pt_chown.c (print_version): Likewise.
2337 * malloc/memusage.sh (do_version): Likewise.
2338 * malloc/memusagestat.c (print_version): Likewise.
2339 * malloc/mtrace.pl: Likewise.
2340 * manual/libc.texinfo: Likewise.
2341 * nptl/version.c (banner): Likewise.
2342 * nscd/nscd.c (print_version): Likewise.
2343 * nss/getent.c (print_version): Likewise.
2344 * nss/makedb.c (print_version): Likewise.
2345 * posix/getconf.c (main): Likewise.
2346 * scripts/test-installation.pl: Likewise.
2347 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2348
2349 * All files with FSF copyright notices: Update copyright dates
2350 using scripts/update-copyrights.
2351 * locale/programs/charmap-kw.h: Regenerated.
2352 * locale/programs/locfile-kw.h: Likewise.
2353
2354 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2355
2356 * timezone/zdump.c: Update from tzcode 2018i.
2357 * timezone/zic.c: Likewise.
2358
2359 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2360
2361 regex: improve Gnulib port to AIX
2362 From the glibc point of view, this removes duplicate macro
2363 definitions and is obviously safe.
2364 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2365 * posix/regex_internal.h:
2366 (__attribute__, __attribute_warn_unused_result__):
2367 Remove; already defined elsewhere.
2368
2369 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2370
2371 [BZ #24027]
2372 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2373 copying operation. (ncopies had the wrong type, resulting in an
2374 integer wraparound and too few elements being copied.)
2375
2376 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2377
2378 [BZ #24022]
2379 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2380 <asm/syscalls.h> exists with __has_include__ before including it.
2381
2382 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2383
2384 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2385 version to 4.20.
2386
2387 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2388
2389 * hurd/lookup-retry: Include <unistd.h>.
2390 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2391 Release it on return. Handle "pid" magical lookup retry.
2392
2393 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2394
2395 [BZ #10496]
2396 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2397 (t_fmt_ampm): Likewise.
2398 * localedata/locales/aa_ER (t_fmt): Likewise.
2399 (t_fmt_ampm): Likewise.
2400 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2401 (t_fmt_ampm): Likewise.
2402 * localedata/locales/aa_ET (t_fmt): Likewise.
2403 (t_fmt_ampm): Likewise.
2404 * localedata/locales/am_ET (t_fmt): Likewise.
2405 (t_fmt_ampm): Likewise.
2406 * localedata/locales/byn_ER (t_fmt): Likewise.
2407 (t_fmt_ampm): Likewise.
2408 * localedata/locales/om_ET (t_fmt): Likewise.
2409 (t_fmt_ampm): Likewise.
2410 * localedata/locales/sid_ET (t_fmt): Likewise.
2411 (t_fmt_ampm): Likewise.
2412 * localedata/locales/so_DJ (t_fmt): Likewise.
2413 (t_fmt_ampm): Likewise.
2414 * localedata/locales/so_ET (t_fmt): Likewise.
2415 (t_fmt_ampm): Likewise.
2416 * localedata/locales/so_SO (t_fmt): Likewise.
2417 (t_fmt_ampm): Likewise.
2418 * localedata/locales/ti_ER (t_fmt): Likewise.
2419 (t_fmt_ampm): Likewise.
2420 * localedata/locales/ti_ET (t_fmt): Likewise.
2421 (t_fmt_ampm): Likewise.
2422 * localedata/locales/tig_ER (t_fmt): Likewise.
2423 (t_fmt_ampm): Likewise.
2424 * localedata/locales/wal_ET (t_fmt): Likewise.
2425 (t_fmt_ampm): Likewise.
2426
2427 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2428 * localedata/locales/ar_IN (t_fmt): Likewise.
2429 * localedata/locales/bhb_IN (t_fmt): Likewise.
2430 * localedata/locales/bho_IN (t_fmt): Likewise.
2431 * localedata/locales/bi_VU (t_fmt): Likewise.
2432 * localedata/locales/bn_BD (t_fmt): Likewise.
2433 * localedata/locales/bn_IN (t_fmt): Likewise.
2434 * localedata/locales/brx_IN (t_fmt): Likewise.
2435 * localedata/locales/doi_IN (t_fmt): Likewise.
2436 * localedata/locales/en_HK (t_fmt): Likewise.
2437 (t_fmt_ampm): Likewise.
2438 * localedata/locales/en_IN (t_fmt): Likewise.
2439 * localedata/locales/en_PH (t_fmt): Likewise.
2440 * localedata/locales/gu_IN (t_fmt): Likewise.
2441 * localedata/locales/hi_IN (t_fmt): Likewise.
2442 * localedata/locales/hif_FJ (t_fmt): Likewise.
2443 * localedata/locales/hne_IN (t_fmt): Likewise.
2444 * localedata/locales/kn_IN (t_fmt): Likewise.
2445 * localedata/locales/kok_IN (t_fmt): Likewise.
2446 * localedata/locales/ks_IN (t_fmt): Likewise.
2447 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2448 * localedata/locales/mag_IN (t_fmt): Likewise.
2449 * localedata/locales/mai_IN (t_fmt): Likewise.
2450 * localedata/locales/mjw_IN (t_fmt): Likewise.
2451 * localedata/locales/ml_IN (t_fmt): Likewise.
2452 * localedata/locales/mni_IN (t_fmt): Likewise.
2453 * localedata/locales/mr_IN (t_fmt): Likewise.
2454 * localedata/locales/ms_MY (t_fmt): Likewise.
2455 * localedata/locales/pa_IN (t_fmt): Likewise.
2456 * localedata/locales/raj_IN (t_fmt): Likewise.
2457 * localedata/locales/sa_IN (t_fmt): Likewise.
2458 * localedata/locales/sat_IN (t_fmt): Likewise.
2459 * localedata/locales/sd_IN (t_fmt): Likewise.
2460 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2461 * localedata/locales/tcy_IN (t_fmt): Likewise.
2462 * localedata/locales/the_NP (t_fmt): Likewise.
2463 * localedata/locales/to_TO (t_fmt): Likewise.
2464 * localedata/locales/ur_IN (t_fmt): Likewise.
2465
2466 * localedata/locales/hif_FJ (d_t_fmt): Set to
2467 "%A %d %b %Y %I:%M:%S %p".
2468 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2469
2470 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2471 * localedata/locales/ar_BH (t_fmt): Likewise.
2472 * localedata/locales/ar_DZ (t_fmt): Likewise.
2473 * localedata/locales/ar_EG (t_fmt): Likewise.
2474 * localedata/locales/ar_IQ (t_fmt): Likewise.
2475 * localedata/locales/ar_JO (t_fmt): Likewise.
2476 * localedata/locales/ar_KW (t_fmt): Likewise.
2477 * localedata/locales/ar_LB (t_fmt): Likewise.
2478 * localedata/locales/ar_LY (t_fmt): Likewise.
2479 * localedata/locales/ar_OM (t_fmt): Likewise.
2480 * localedata/locales/ar_QA (t_fmt): Likewise.
2481 * localedata/locales/ar_SD (t_fmt): Likewise.
2482 * localedata/locales/ar_SS (t_fmt): Likewise.
2483 * localedata/locales/ar_SY (t_fmt): Likewise.
2484 * localedata/locales/ar_TN (t_fmt): Likewise.
2485 * localedata/locales/ar_YE (t_fmt): Likewise.
2486
2487 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2488 (t_fmt_ampm): Likewise.
2489 * localedata/locales/gez_ET (t_fmt): Likewise.
2490 (t_fmt_ampm): Likewise.
2491
2492 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2493 (t_fmt_ampm): Likewise.
2494 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2495
2496 * localedata/locales/zh_HK (t_fmt):
2497 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2498
2499 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2500 because this locale does not use the 12-hour clock.
2501 (t_fmt): Set to "%Z %H:%M:%S".
2502 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2503
2504 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2505 because this locale does not use the 12-hour clock.
2506 (t_fmt): Set to "%H:%M:%S %Z".
2507 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2508
2509 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2510 because this locale does not use the 12-hour clock.
2511 (t_fmt): Set to "%T".
2512 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2513 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2514
2515 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2516 because this locale does not use the 12-hour clock.
2517 (t_fmt): Set to "%H:%M:%S %Z".
2518 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2519
2520 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2521 because this locale does not use the 12-hour clock.
2522 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2523 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2524
2525 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2526
2527 [BZ #10496]
2528 [BZ #23724]
2529 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2530 (t_fmt_ampm): Likewise.
2531 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2532 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2533 (d_fmt): Set to "%-d.%-m.%y".
2534
2535 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2536
2537 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2538 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2539 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2540 Likewise.
2541 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2542 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2543 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2544 function.
2545 * support/blob_repeat.c (check_mul_overflow_size_t,
2546 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2547
2548 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2549
2550 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2551
2552 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2553
2554 regex: simplify Gnulib port
2555 This simplifies the code, by removing stuff intended for porting
2556 to Gnulib but no longer needed there.
2557 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2558 uses of libc_hidden_def, weak_alias.
2559 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2560 _Restrict_ except for public-facing headers.
2561 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2562 Remove; already defined elsewhere.
2563 * posix/regex.c, posix/regex_internal.h:
2564 Use __GNUC_PREREQ instead of rolling our own.
2565 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2566
2567 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2568
2569 * benchtests/bench-strlen.c (generic_strlen): New function.
2570 (memchr_strlen): New function.
2571
2572 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2573
2574 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2575 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2576 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2577
2578 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2579
2580 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2581
2582 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2583
2584 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2585 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2586 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2587 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2588 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2589 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2590 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2591
2592 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2593
2594 [BZ #24023]
2595 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2596 PLT reference in libc.so.
2597 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2598 _Q_lltoq and _Q_qtod PLT references in libc.so.
2599
2600 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2601
2602 * benchtests/bench-memchr.c: Cleanup defines.
2603 * benchtests/bench-memcmp.c: Likewise.
2604 * benchtests/bench-memset.c: Likewise.
2605 * benchtests/bench-memset-large.c: Likewise.
2606 * benchtests/bench-memset-walk.c: Likewise.
2607 * benchtests/bench-stpcpy.c: Likewise.
2608 * benchtests/bench-stpncpy.c: Likewise.
2609 * benchtests/bench-strcat.c: Likewise.
2610 * benchtests/bench-strchr.c: Likewise.
2611 * benchtests/bench-strcmp.c: Likewise.
2612 * benchtests/bench-strcpy.c: Likewise.
2613 * benchtests/bench-strcspn.c: Likewise.
2614 * benchtests/bench-string.h: Likewise.
2615 * benchtests/bench-strlen.c: Likewise.
2616 * benchtests/bench-strncat.c: Likewise.
2617 * benchtests/bench-strncmp.c: Likewise.
2618 * benchtests/bench-strncpy.c: Likewise.
2619 * benchtests/bench-strnlen.c: Likewise.
2620 * benchtests/bench-strpbrk.c: Likewise.
2621 * benchtests/bench-strrchr.c: Likewise.
2622 * benchtests/bench-strspn.c: Likewise.
2623
2624 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2625
2626 * stdlib/longlong.h: Update from GCC.
2627
2628 [BZ #23993]
2629 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2630 * configure: Regenerated.
2631 * manual/install.texi (Tools for Compilation): Update minimum GCC
2632 version.
2633 * INSTALL: Regenerated.
2634
2635 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2636
2637 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2638
2639 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2640
2641 * malloc/malloc.c (mremap_chunk): Additional checks.
2642
2643 2018-12-21 Mao Han <han_mao@c-sky.com>
2644
2645 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2646 * scripts/build-many-glibcs.py: Add C-SKY targets.
2647 * sysdeps/csky/Implies: New file.
2648 * sysdeps/csky/Makefile: Likewise.
2649 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2650 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2651 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2652 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2653 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2654 * sysdeps/csky/abiv2/memmove.S: Likewise.
2655 * sysdeps/csky/abiv2/memset.S: Likewise.
2656 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2657 * sysdeps/csky/abiv2/start.S: Likewise.
2658 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2659 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2660 * sysdeps/csky/abiv2/strlen.S: Likewise.
2661 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2662 * sysdeps/csky/abort-instr.h: Likewise.
2663 * sysdeps/csky/atomic-machine.h: Likewise.
2664 * sysdeps/csky/bits/endian.h: Likewise.
2665 * sysdeps/csky/bits/fenv.h: Likewise.
2666 * sysdeps/csky/bits/link.h: Likewise.
2667 * sysdeps/csky/bits/setjmp.h: Likewise.
2668 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2669 * sysdeps/csky/bsd-setjmp.S: Likewise.
2670 * sysdeps/csky/configure: Likewise.
2671 * sysdeps/csky/configure.ac: Likewise.
2672 * sysdeps/csky/dl-machine.h: Likewise.
2673 * sysdeps/csky/dl-procinfo.c: Likewise.
2674 * sysdeps/csky/dl-procinfo.h: Likewise.
2675 * sysdeps/csky/dl-sysdep.h: Likewise.
2676 * sysdeps/csky/dl-tls.h: Likewise.
2677 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2678 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2679 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2680 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2681 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2682 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2683 * sysdeps/csky/fpu/fegetround.c: Likewise.
2684 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2685 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2686 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2687 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2688 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2689 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2690 * sysdeps/csky/fpu/fesetround.c: Likewise.
2691 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2692 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2693 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2694 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2695 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2696 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2697 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2698 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2699 * sysdeps/csky/fpu_control.h: Likewise.
2700 * sysdeps/csky/gccframe.h: Likewise.
2701 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2702 * sysdeps/csky/ldsodefs.h: Likewise.
2703 * sysdeps/csky/libc-tls.c: Likewise.
2704 * sysdeps/csky/linkmap.h: Likewise.
2705 * sysdeps/csky/machine-gmon.h: Likewise.
2706 * sysdeps/csky/memusage.h: Likewise.
2707 * sysdeps/csky/nofpu/Implies: Likewise.
2708 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2709 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2710 * sysdeps/csky/nptl/Makefile: Likewise.
2711 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2712 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2713 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2714 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2715 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2716 * sysdeps/csky/nptl/tls.h: Likewise.
2717 * sysdeps/csky/preconfigure: Likewise.
2718 * sysdeps/csky/sfp-machine.h: Likewise.
2719 * sysdeps/csky/sotruss-lib.c: Likewise.
2720 * sysdeps/csky/stackinfo.h: Likewise.
2721 * sysdeps/csky/sysdep.h: Likewise.
2722 * sysdeps/csky/tininess.h: Likewise.
2723 * sysdeps/csky/tst-audit.h: Likewise.
2724 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2725 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2726 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2727 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2728 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2729 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2730 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2731 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2732 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2733 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2734 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2735 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2736 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2737 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2738 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2739 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2740 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2741 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2742 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2743 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2744 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2745 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2746 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2747 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2748 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2749 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2750 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2751 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2752 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2753 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2754 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2755 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2756 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2757 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2758 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2759 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2760 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2761 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2762 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2763 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2764 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2765 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2766 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2767 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2768
2769 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2770
2771 * include/time.h (__difftime64): Add.
2772 * time/difftime.c (subtract): convert to 64-bit time.
2773 * time/difftime.c (__difftime64): Add.
2774 * time/difftime.c (__difftime): Wrap around __difftime64.
2775
2776 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2777
2778 * manual/examples/add.c: Remove redundant "if not".
2779 * manual/examples/argp-ex1.c: Likewise.
2780 * manual/examples/argp-ex2.c: Likewise.
2781 * manual/examples/argp-ex3.c: Likewise.
2782 * manual/examples/argp-ex4.c: Likewise.
2783 * manual/examples/atexit.c: Likewise.
2784 * manual/examples/db.c: Likewise.
2785 * manual/examples/dir.c: Likewise.
2786 * manual/examples/dir2.c: Likewise.
2787 * manual/examples/execinfo.c: Likewise.
2788 * manual/examples/filecli.c: Likewise.
2789 * manual/examples/filesrv.c: Likewise.
2790 * manual/examples/fmtmsgexpl.c: Likewise.
2791 * manual/examples/genpass.c: Likewise.
2792 * manual/examples/inetcli.c: Likewise.
2793 * manual/examples/inetsrv.c: Likewise.
2794 * manual/examples/isockad.c: Likewise.
2795 * manual/examples/longopt.c: Likewise.
2796 * manual/examples/memopen.c: Likewise.
2797 * manual/examples/memstrm.c: Likewise.
2798 * manual/examples/mkdirent.c: Likewise.
2799 * manual/examples/mkfsock.c: Likewise.
2800 * manual/examples/mkisock.c: Likewise.
2801 * manual/examples/mygetpass.c: Likewise.
2802 * manual/examples/pipe.c: Likewise.
2803 * manual/examples/popen.c: Likewise.
2804 * manual/examples/rprintf.c: Likewise.
2805 * manual/examples/search.c: Likewise.
2806 * manual/examples/select.c: Likewise.
2807 * manual/examples/setjmp.c: Likewise.
2808 * manual/examples/sigh1.c: Likewise.
2809 * manual/examples/sigusr.c: Likewise.
2810 * manual/examples/stpcpy.c: Likewise.
2811 * manual/examples/strdupa.c: Likewise.
2812 * manual/examples/strftim.c: Likewise.
2813 * manual/examples/subopt.c: Likewise.
2814 * manual/examples/swapcontext.c: Likewise.
2815 * manual/examples/termios.c: Likewise.
2816 * manual/examples/testopt.c: Likewise.
2817 * manual/examples/testpass.c: Likewise.
2818 * manual/examples/timeval_subtract.c: Likewise.
2819
2820 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2821
2822 * sysdeps/x86/fpu/math_private.h: New file.
2823 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2824
2825 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2826 definition.
2827 (cosh): Likewise.
2828 (tanh): Likewise.
2829
2830 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2831
2832 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2833 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2834 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2835 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2836 fields.
2837 (_dl_show_auxv): Give a special treatment to
2838 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2839 and AT_L3_CACHEGEOMETRY.
2840 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2841 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2842 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2843 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2844
2845 2018-12-19 Andreas Schwab <schwab@suse.de>
2846
2847 * nscd/connections.c (check_use): Don't abort on invalid len.
2848
2849 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2850
2851 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2852 values in the 64bit value cases.
2853
2854 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2855
2856 * include/time.h
2857 (__ctime64_r): Add.
2858 * time/ctime_r.c
2859 (__ctime64_r): Add.
2860 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2861
2862 * include/time.h
2863 (__ctime64): Add.
2864 * time/gmtime.c
2865 (__ctime64): Add.
2866 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2867
2868 * include/time.h
2869 (__gmtime64_r): Add.
2870 * time/gmtime.c
2871 (__gmtime64_r): Add.
2872 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2873
2874 * include/time.h
2875 (__gmtime64): Add.
2876 * time/gmtime.c
2877 (__gmtime64): Add.
2878 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2879
2880 * include/time.h
2881 (__localtime64_r): Add.
2882 * time/localtime.c
2883 (__localtime64_r): Add.
2884 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2885
2886 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2887
2888 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2889 kernel_sigction definition.
2890
2891 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2892
2893 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2894
2895 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2896 __syscall_rt_sigaction.
2897 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2898 (kernel_sigaction): Use Linux generic defintion.
2899 (STUB): Define.
2900 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2901 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2902 (__syscall_rt_sigaction): Remove implementation.
2903 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2904 hidden.
2905 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2906 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2907 INTERNAL_SYSCALL): Remove definitions.
2908 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2909 action and signal set size.
2910 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2911 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2912
2913 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2914 James Clarke <jrtc27@jrtc27.com>
2915
2916 [BZ #23967]
2917 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2918 Define if SA_RESTORER is defined.
2919 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2920 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2921 already defined.
2922 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2923 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2924 definitions.
2925 (HAS_SA_RESTORER): Define.
2926 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2927 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2928 (HAS_SA_RESTORER): Define.
2929 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2930 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2931 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2932 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2933 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2934
2935 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2936
2937 * sysdeps/unix/sysv/linux/kernel-features.h
2938 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2939 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2940 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2941 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2942 (__ASSUME_ST_INO_64_BIT): Likewise.
2943 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2944 <kernel-features.h>.
2945 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2946 Remove conditional code.
2947 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2948 <kernel-features.h>.
2949 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2950 Remove conditional code.
2951 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2952 <kernel-features.h>.
2953 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2954 Remove conditional code.
2955 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2956 <kernel-features.h>.
2957 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2958 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2959
2960 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2961
2962 * sysdeps/s390/multiarch/ifunc-resolve.h
2963 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2964 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2965 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2966 Delete macro definition.
2967 (s390_libc_ifunc_init): Rename to
2968 s390_libc_ifunc_expr_stfle_init.
2969 * sysdeps/s390/bzero: Use
2970 s390_libc_ifunc_expr_stfle_init instead of
2971 s390_libc_ifunc_init.
2972 * sysdeps/s390/memcmp.c: Likewise.
2973 * sysdeps/s390/memcpy.c: Likewise.
2974 * sysdeps/s390/mempcpy.c: Likewise.
2975 * sysdeps/s390/memset.c: Likewise.
2976
2977 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2978
2979 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2980 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2981
2982 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2983
2984 * sysdeps/s390/multiarch/Makefile
2985 (sysdep_routines): Remove wmemcmp variants.
2986 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2987 * sysdeps/s390/multiarch/ifunc-impl-list.c
2988 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2989 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2990 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2991 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2992 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2993 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2994 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2995 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2996
2997 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2998
2999 * sysdeps/s390/multiarch/Makefile
3000 (sysdep_routines): Remove wmemset variants.
3001 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
3002 * sysdeps/s390/multiarch/ifunc-impl-list.c
3003 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
3004 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
3005 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
3006 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
3007 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
3008 * sysdeps/s390/multiarch/wmemset.c: Move to ...
3009 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
3010 * sysdeps/s390/ifunc-wmemset.h: New file.
3011
3012 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3013
3014 * sysdeps/s390/multiarch/Makefile
3015 (sysdep_routines): Remove wmemchr variants.
3016 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
3017 * sysdeps/s390/multiarch/ifunc-impl-list.c
3018 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
3019 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
3020 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
3021 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
3022 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
3023 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
3024 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
3025 * sysdeps/s390/ifunc-wmemchr.h: New file.
3026
3027 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3028
3029 * sysdeps/s390/multiarch/Makefile
3030 (sysdep_routines): Remove wcscspn variants.
3031 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
3032 * sysdeps/s390/multiarch/ifunc-impl-list.c
3033 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
3034 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
3035 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
3036 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
3037 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
3038 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
3039 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
3040 * sysdeps/s390/ifunc-wcscspn.h: New file.
3041
3042 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3043
3044 * sysdeps/s390/multiarch/Makefile
3045 (sysdep_routines): Remove wcspbrk variants.
3046 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
3047 * sysdeps/s390/multiarch/ifunc-impl-list.c
3048 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
3049 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
3050 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
3051 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
3052 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
3053 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
3054 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
3055 * sysdeps/s390/ifunc-wcspbrk.h: New file.
3056
3057 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3058
3059 * sysdeps/s390/multiarch/Makefile
3060 (sysdep_routines): Remove wcsspn variants.
3061 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
3062 * sysdeps/s390/multiarch/ifunc-impl-list.c
3063 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
3064 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
3065 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
3066 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
3067 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
3068 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
3069 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3070 * sysdeps/s390/ifunc-wcsspn.h: New file.
3071
3072 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3073
3074 * sysdeps/s390/multiarch/Makefile
3075 (sysdep_routines): Remove wcsrchr variants.
3076 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3077 * sysdeps/s390/multiarch/ifunc-impl-list.c
3078 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3079 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3080 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3081 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3082 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3083 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3084 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3085 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3086
3087 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3088
3089 * sysdeps/s390/multiarch/Makefile
3090 (sysdep_routines): Remove wcschrnul variants.
3091 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3092 * sysdeps/s390/multiarch/ifunc-impl-list.c
3093 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3094 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3095 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3096 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3097 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3098 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3099 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3100 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3101
3102 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3103
3104 * sysdeps/s390/multiarch/Makefile
3105 (sysdep_routines): Remove wcschr variants.
3106 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3107 * sysdeps/s390/multiarch/ifunc-impl-list.c
3108 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3109 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3110 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3111 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3112 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3113 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3114 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3115 * sysdeps/s390/ifunc-wcschr.h: New file.
3116
3117 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3118
3119 * sysdeps/s390/multiarch/Makefile
3120 (sysdep_routines): Remove wcsncmp variants.
3121 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3122 * sysdeps/s390/multiarch/ifunc-impl-list.c
3123 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3124 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3125 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3126 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3127 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3128 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3129 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3130 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3131
3132 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3133
3134 * sysdeps/s390/multiarch/Makefile
3135 (sysdep_routines): Remove wcscmp variants.
3136 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3137 * sysdeps/s390/multiarch/ifunc-impl-list.c
3138 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3139 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3140 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3141 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3142 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3143 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3144 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3145 * sysdeps/s390/ifunc-wcscmp.h: New file.
3146
3147 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3148
3149 * sysdeps/s390/multiarch/Makefile
3150 (sysdep_routines): Remove wcsncat variants.
3151 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3152 * sysdeps/s390/multiarch/ifunc-impl-list.c
3153 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3154 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3155 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3156 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3157 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3158 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3159 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3160 * sysdeps/s390/ifunc-wcsncat.h: New file.
3161
3162 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3163
3164 * sysdeps/s390/multiarch/Makefile
3165 (sysdep_routines): Remove wcscat variants.
3166 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3167 * sysdeps/s390/multiarch/ifunc-impl-list.c
3168 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3169 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3170 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3171 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3172 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3173 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3174 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3175 * sysdeps/s390/ifunc-wcscat.h: New file.
3176
3177 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3178
3179 * sysdeps/s390/multiarch/Makefile
3180 (sysdep_routines): Remove wcpncpy variants.
3181 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3182 * sysdeps/s390/multiarch/ifunc-impl-list.c
3183 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3184 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3185 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3186 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3187 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3188 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3189 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3190 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3191
3192 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3193
3194 * sysdeps/s390/multiarch/Makefile
3195 (sysdep_routines): Remove wcsncpy variants.
3196 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3197 * sysdeps/s390/multiarch/ifunc-impl-list.c
3198 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3199 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3200 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3201 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3202 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3203 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3204 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3205 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3206
3207 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3208
3209 * sysdeps/s390/multiarch/Makefile
3210 (sysdep_routines): Remove wcpcpy variants.
3211 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3212 * sysdeps/s390/multiarch/ifunc-impl-list.c
3213 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3214 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3215 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3216 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3217 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3218 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3219 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3220 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3221
3222 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3223
3224 * sysdeps/s390/multiarch/Makefile
3225 (sysdep_routines): Remove wcscpy variants.
3226 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3227 * sysdeps/s390/multiarch/ifunc-impl-list.c
3228 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3229 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3230 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3231 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3232 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3233 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3234 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3235 * sysdeps/s390/ifunc-wcscpy.h: New file.
3236
3237 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3238
3239 * sysdeps/s390/multiarch/Makefile
3240 (sysdep_routines): Remove wcsnlen variants.
3241 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3242 * sysdeps/s390/multiarch/ifunc-impl-list.c
3243 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3244 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3245 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3246 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3247 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3248 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3249 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3250 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3251
3252 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3253
3254 * sysdeps/s390/multiarch/Makefile
3255 (sysdep_routines): Remove wcslen variants.
3256 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3257 * sysdeps/s390/multiarch/ifunc-impl-list.c
3258 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3259 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3260 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3261 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3262 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3263 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3264 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3265 * sysdeps/s390/ifunc-wcslen.h: New file.
3266
3267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3268
3269 * sysdeps/s390/multiarch/Makefile
3270 (sysdep_routines): Remove memrchr variants.
3271 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3272 * sysdeps/s390/multiarch/ifunc-impl-list.c
3273 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3274 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3275 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3276 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3277 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3278 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3279 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3280 * sysdeps/s390/ifunc-memrchr.h: New file.
3281
3282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3283
3284 * sysdeps/s390/multiarch/Makefile
3285 (sysdep_routines): Remove memccpy variants.
3286 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3287 * sysdeps/s390/multiarch/ifunc-impl-list.c
3288 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3289 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3290 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3291 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3292 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3293 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3294 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3295 * sysdeps/s390/ifunc-memccpy.h: New file.
3296
3297 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3298
3299 * sysdeps/s390/multiarch/Makefile
3300 (sysdep_routines): Remove rawmemchr variants.
3301 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3302 * sysdeps/s390/multiarch/ifunc-impl-list.c
3303 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3304 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3305 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3306 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3307 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3308 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3309 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3310 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3311
3312 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3313
3314 * sysdeps/s390/multiarch/Makefile
3315 (sysdep_routines): Remove memchr variants.
3316 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3317 * sysdeps/s390/multiarch/ifunc-impl-list.c
3318 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3319 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3320 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3321 * sysdeps/s390/multiarch/memchr.c: Move to ...
3322 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3323 * sysdeps/s390/ifunc-memchr.h: New file.
3324 * sysdeps/s390/s390-64/memchr.S: Move to ...
3325 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3326 for 31/64bit and ifunc handling.
3327 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3328 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3329 * sysdeps/s390/s390-32/memchr.S: Likewise.
3330
3331 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3332
3333 * sysdeps/s390/multiarch/Makefile
3334 (sysdep_routines): Remove strcspn variants.
3335 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3336 * sysdeps/s390/multiarch/ifunc-impl-list.c
3337 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3338 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3339 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3340 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3341 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3342 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3343 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3344 * sysdeps/s390/ifunc-strcspn.h: New file.
3345
3346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3347
3348 * sysdeps/s390/multiarch/Makefile
3349 (sysdep_routines): Remove strpbrk variants.
3350 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3351 * sysdeps/s390/multiarch/ifunc-impl-list.c
3352 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3353 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3354 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3355 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3356 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3357 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3358 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3359 * sysdeps/s390/ifunc-strpbrk.h: New file.
3360
3361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3362
3363 * sysdeps/s390/multiarch/Makefile
3364 (sysdep_routines): Remove strspn variants.
3365 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3366 * sysdeps/s390/multiarch/ifunc-impl-list.c
3367 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3368 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3369 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3370 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3371 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3372 * sysdeps/s390/multiarch/strspn.c: Move to ...
3373 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3374 * sysdeps/s390/ifunc-strspn.h: New file.
3375
3376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3377
3378 * sysdeps/s390/multiarch/Makefile
3379 (sysdep_routines): Remove strrchr variants.
3380 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3381 * sysdeps/s390/multiarch/ifunc-impl-list.c
3382 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3383 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3384 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3385 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3386 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3387 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3388 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3389 * sysdeps/s390/ifunc-strrchr.h: New file.
3390
3391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3392
3393 * sysdeps/s390/multiarch/Makefile
3394 (sysdep_routines): Remove strchrnul variants.
3395 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3396 * sysdeps/s390/multiarch/ifunc-impl-list.c
3397 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3398 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3399 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3400 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3401 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3402 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3403 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3404 * sysdeps/s390/ifunc-strchrnul.h: New file.
3405
3406 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3407
3408 * sysdeps/s390/multiarch/Makefile
3409 (sysdep_routines): Remove strchr variants.
3410 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3411 * sysdeps/s390/multiarch/ifunc-impl-list.c
3412 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3413 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3414 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3415 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3416 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3417 * sysdeps/s390/multiarch/strchr.c: Move to ...
3418 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3419 * sysdeps/s390/ifunc-strchr.h: New file.
3420
3421 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3422
3423 * sysdeps/s390/multiarch/Makefile
3424 (sysdep_routines): Remove strncmp variants.
3425 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3426 * sysdeps/s390/multiarch/ifunc-impl-list.c
3427 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3428 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3429 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3430 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3431 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3432 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3433 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3434 * sysdeps/s390/ifunc-strncmp.h: New file.
3435
3436 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3437
3438 * sysdeps/s390/multiarch/Makefile
3439 (sysdep_routines): Remove strcmp variants.
3440 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3441 * sysdeps/s390/multiarch/ifunc-impl-list.c
3442 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3443 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3444 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3445 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3446 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3447 * sysdeps/s390/ifunc-strcmp.h: New file.
3448 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3449 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3450 for 31/64bit and ifunc handling.
3451 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3452 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3453 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3454
3455 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3456
3457 * sysdeps/s390/multiarch/Makefile
3458 (sysdep_routines): Remove strncat variants.
3459 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3460 * sysdeps/s390/multiarch/ifunc-impl-list.c
3461 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3462 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3463 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3464 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3465 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3466 * sysdeps/s390/multiarch/strncat.c: Move to ...
3467 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3468 * sysdeps/s390/ifunc-strncat.h: New file.
3469
3470 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3471
3472 * sysdeps/s390/multiarch/Makefile
3473 (sysdep_routines): Remove strcat variants.
3474 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3475 * sysdeps/s390/multiarch/ifunc-impl-list.c
3476 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3477 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3478 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3479 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3480 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3481 * sysdeps/s390/multiarch/strcat.c: Move to ...
3482 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3483 * sysdeps/s390/ifunc-strcat.h: New file.
3484
3485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3486
3487 * sysdeps/s390/multiarch/Makefile
3488 (sysdep_routines): Remove stpncpy variants.
3489 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3492 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3493 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3494 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3495 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3496 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3497 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/ifunc-stpncpy.h: New file.
3499
3500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3501
3502 * sysdeps/s390/multiarch/Makefile
3503 (sysdep_routines): Remove strncpy variants.
3504 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3505 * sysdeps/s390/multiarch/ifunc-impl-list.c
3506 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3507 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3508 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3509 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3510 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3511 * sysdeps/s390/ifunc-strncpy.h: New file.
3512 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3513 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3514 and adjust ifunc handling.
3515 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3516 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3517 and adjust ifunc handling.
3518 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3519 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3520
3521 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3522
3523 * sysdeps/s390/multiarch/Makefile
3524 (sysdep_routines): Remove stpcpy variants.
3525 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3526 * sysdeps/s390/multiarch/ifunc-impl-list.c
3527 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3528 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3529 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3530 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3531 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3532 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3533 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3534 * sysdeps/s390/ifunc-stpcpy.h: New file.
3535
3536 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3537
3538 * sysdeps/s390/multiarch/Makefile
3539 (sysdep_routines): Remove strcpy variants.
3540 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3541 * sysdeps/s390/multiarch/ifunc-impl-list.c
3542 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3543 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3544 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3545 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3546 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3547 * sysdeps/s390/ifunc-strcpy.h: New file.
3548 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3549 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3550 for 31/64bit and ifunc handling.
3551 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3552 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3553 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3554
3555 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3556
3557 * sysdeps/s390/multiarch/Makefile
3558 (sysdep_routines): Remove strnlen variants.
3559 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3560 * sysdeps/s390/multiarch/ifunc-impl-list.c
3561 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3562 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3563 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3564 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3565 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3566 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3567 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3568 * sysdeps/s390/ifunc-strnlen.h: New file.
3569
3570 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3571
3572 * sysdeps/s390/multiarch/Makefile
3573 (sysdep_routines): Remove strlen variants.
3574 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3575 * sysdeps/s390/multiarch/ifunc-impl-list.c
3576 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3577 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3578 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3579 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3580 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3581 * sysdeps/s390/multiarch/strlen.c: Move to ...
3582 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3583 * sysdeps/s390/ifunc-strlen.h: New file.
3584
3585 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3586
3587 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3588 * sysdeps/s390/multiarch/ifunc-impl-list.c
3589 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3590 * sysdeps/s390/ifunc-memmem.h: New file.
3591 * sysdeps/s390/memmem.c: Likewise.
3592 * sysdeps/s390/memmem-c.c: Likewise.
3593 * sysdeps/s390/memmem-vx.c: Likewise.
3594
3595 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3596
3597 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3598 * sysdeps/s390/multiarch/ifunc-impl-list.c
3599 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3600 * sysdeps/s390/ifunc-strstr.h: New file.
3601 * sysdeps/s390/strstr.c: Likewise.
3602 * sysdeps/s390/strstr-c.c: Likewise.
3603 * sysdeps/s390/strstr-vx.c: Likewise.
3604
3605 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3606
3607 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3608 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3609 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3610 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3611 New defines.
3612 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3613 * sysdeps/s390/memmove-c.c: New file.
3614 * sysdeps/s390/memmove.c: Likewise.
3615 * sysdeps/s390/multiarch/ifunc-impl-list.c
3616 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3617
3618 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3619
3620 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3621 * sysdeps/s390/configure.ac: Add check for z13 support.
3622 * sysdeps/s390/configure: Regenerated.
3623
3624 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3625
3626 * sysdeps/s390/memcopy.h: New file.
3627
3628 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3629
3630 * sysdeps/s390/s390-32/bcopy.S: Remove.
3631 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3632
3633 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3634
3635 * sysdeps/s390/ifunc-memcpy.h: New File.
3636 * sysdeps/s390/memcpy.S: Move to ...
3637 * sysdeps/s390/memcpy-z900.S ... here.
3638 Move implementations from memcpy-s390x.s to here.
3639 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3640 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3641 Remove memcpy/mempcpy variants.
3642 * sysdeps/s390/Makefile (sysdep_routines):
3643 Add memcpy/mempcpy variants.
3644 * sysdeps/s390/multiarch/ifunc-impl-list.c
3645 (__libc_ifunc_impl_list): Adjust ifunc variants for
3646 memcpy and mempcpy.
3647 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3648 to ...
3649 * sysdeps/s390/memcpy.c: ... here.
3650 Adjust ifunc variants for memcpy.
3651 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3652 * sysdeps/s390/mempcpy.c: ... here.
3653 Adjust ifunc variants for mempcpy.
3654 * sysdeps/s390/mempcpy.S: Delete file.
3655
3656 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3657
3658 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3659 * sysdeps/s390/memcpy.S: ... here.
3660 Adjust to be usable for 31/64bit.
3661 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3662 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3663 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3664 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3665 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3666 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3667 Adjust to be usable for 31/64bit.
3668 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3669 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3670 * sysdeps/s390/multiarch/memcpy.c: ... here.
3671 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3672
3673 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3674
3675 * sysdeps/s390/ifunc-memcmp.h: New File.
3676 * sysdeps/s390/memcmp.S: Move to ...
3677 * sysdeps/s390/memcmp-z900.S ... here.
3678 Move implementations from memcmp-s390x.s to here.
3679 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3680 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3681 Remove memcmp variants.
3682 * sysdeps/s390/Makefile (sysdep_routines):
3683 Add memcmp variants.
3684 * sysdeps/s390/multiarch/ifunc-impl-list.c
3685 (__libc_ifunc_impl_list): Adjust ifunc variants for
3686 memcmp.
3687 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3688 to ...
3689 * sysdeps/s390/memcmp.c: ... here.
3690 Adjust ifunc variants for memcmp.
3691
3692 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3693
3694 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3695 * sysdeps/s390/memcmp.S: ... here.
3696 Adjust to be usable for 31/64bit.
3697 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3698 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3699 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3700 Remove memcmp.
3701 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3702 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3703 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3704 Adjust to be usable for 31/64bit.
3705 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3706 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3707 * sysdeps/s390/multiarch/memcmp.c: ... here.
3708 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3709
3710 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3711
3712 * sysdeps/s390/s390-32/bzero.S: Delete file.
3713 * sysdeps/s390/s390-64/bzero.S: Likewise.
3714 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3715 * sysdeps/s390/bzero.c: New file.
3716 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3717 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3718 * sysdeps/s390/multiarch/ifunc-impl-list.c
3719 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3720
3721 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3722
3723 * sysdeps/s390/ifunc-memset.h: New File.
3724 * sysdeps/s390/memset.S: Move to ...
3725 * sysdeps/s390/memset-z900.S ... here.
3726 Move implementations from memset-s390x.s to here.
3727 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3728 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3729 Remove memset variants.
3730 * sysdeps/s390/Makefile (sysdep_routines):
3731 Add memset variants.
3732 * sysdeps/s390/multiarch/ifunc-impl-list.c
3733 (__libc_ifunc_impl_list): Adjust ifunc variants for
3734 memset.
3735 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3736 to ...
3737 * sysdeps/s390/memset.c: ... here.
3738 Adjust ifunc variants for memset.
3739
3740 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3741
3742 * sysdeps/s390/s390-64/memset.S: Move to ...
3743 * sysdeps/s390/memset.S: ... here.
3744 Adjust to be usable for 31/64bit.
3745 * sysdeps/s390/s390-32/memset.S: Delete File.
3746 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3747 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3748 Remove memset.
3749 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3750 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3751 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3752 Adjust to be usable for 31/64bit.
3753 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3754 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3755 * sysdeps/s390/multiarch/memset.c: ... here.
3756 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3757
3758 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3759
3760 * sysdeps/s390/multiarch/ifunc-resolve.h
3761 (s390_libc_ifunc_init, s390_libc_ifunc,
3762 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3763
3764 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3765
3766 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3767 * sysdeps/s390/configure.ac: Add check for z10 support.
3768 * sysdeps/s390/configure: Regenerated.
3769
3770 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3771
3772 * sysdeps/i386/atomic-machine.h: Merged with ...
3773 * sysdeps/x86_64/atomic-machine.h: To ...
3774 * sysdeps/x86/atomic-machine.h: This. New file.
3775
3776 2018-12-18 Florian Weimer <fweimer@redhat.com>
3777
3778 Rewrite locale/gen-translit.pl in Python.
3779 * locale/Makefile (generated): Add C-translit.h.
3780 (before-compile): Add $(objpfx)C-translit.h.
3781 (C-translit.h): Move to $(objpfx). Create target directory.
3782 Build using Python script.
3783 * locale/gen-translit.py: New file.
3784 * locale/gen-translit.pl: Remove file.
3785 * locale/C-translit.h.in: Change comment character to '#' for
3786 easier parsing without a C preprocessor.
3787 * locale/C-translit.h: Remove generated file.
3788 * manual/install.texi (Tools for Compilation): Do not mention
3789 C-translit.h.
3790 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3791 Remove locale/C-translit.h.
3792 * scripts/update-copyrights: Likewise.
3793 * INSTALL: Regenerate.
3794
3795 2018-12-18 Florian Weimer <fweimer@redhat.com>
3796
3797 [BZ #23995]
3798 * localedata/locales/bi_VU: Remove executable bit from file.
3799
3800 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3801
3802 * include/time.h
3803 (__localtime64): Add.
3804 * manual/maint.texi: Document Y2038 symbol handling.
3805 * time/localtime.c
3806 (__localtime64): Add.
3807 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3808
3809 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3810
3811 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3812 Do not clobber r12.
3813
3814 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3815 to allow extra macros from first or second sources.
3816 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3817 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3818 (tests-special): Add $(objpfx)tst-mman-consts.out.
3819 ($(objpfx)tst-mman-consts.out): New makefile target.
3820
3821 2018-12-17 Mao Han <han_mao@c-sky.com>
3822
3823 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3824 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3825 without stat64 system call support.
3826 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3827 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3828 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3829 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3830 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3831 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3832 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3833 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3834 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3835 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3836 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3837
3838 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3839
3840 regex: fix storage-exhaustion error
3841 [BZ #18040]
3842 * posix/regexec.c (get_subexp):
3843 Do not continue if storage is exhausted.
3844
3845 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3846
3847 regex: fix heap-use-after-free error
3848 [BZ #18040]
3849 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3850 https://debbugs.gnu.org/32592
3851 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3852 call extend_buffers which reallocates the re_string_t internal buffer.
3853 Local variable 'buf' was not updated in such case, resulting in
3854 use-after-free.
3855 * posix/regexec.c (get_subexp): Update 'buf' after call to
3856 get_subexp_sub.
3857
3858 2018-12-15 Florian Weimer <fweimer@redhat.com>
3859
3860 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3861 (minimum_stride_size): Use it.
3862 (support_blob_repeat_allocate): Likewise.
3863
3864 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3865
3866 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3867 definition.
3868 (acosh): Likewise.
3869 (atanh): Likewise.
3870
3871 2018-12-14 Florian Weimer <fweimer@redhat.com>
3872
3873 * manual/process.texi (Process Creation Concepts): Remove
3874 documentation of process (ID) lifetime. List more process
3875 creation functions. Reference Process Identification section.
3876 (Process Identification): Add information about process ID
3877 lifetime. Describe Linux thread/task IDs.
3878 * manual/signal.texi (Signaling Another Process): Mention that the
3879 signal is always sent to the process.
3880
3881 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3882
3883 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3884 and tst-ldbl-efgcvt.
3885 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3886 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3887 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3888 (fcvt_tests, output_error, output_r_error, do_test): Use the
3889 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3890 select the type of floating-point variables and arguments; to
3891 produce extra tests for double and conversion specifiers for
3892 printf; and to set the names of called functions.
3893 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3894 in tst-efgcvt-template.c.
3895 * misc/tst-ldbl-efgcvt.c: Likewise.
3896
3897 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3898
3899 * nss/Makefile (tst-nss-test3.out): New rule.
3900
3901 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3902
3903 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3904 clobber sp.
3905
3906 2018-12-13 fanjinke <fanjinke@hygon.cn>
3907
3908 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3909 "HygonGenuine".
3910
3911 2018-12-13 Andreas Schwab <schwab@suse.de>
3912
3913 [BZ #23861]
3914 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3915 (__pthread_rwlock_rdlock_full): Update expected value for
3916 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3917 * nptl/tst-rwlock-pwn.c: New file.
3918 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3919
3920 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3921
3922 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3923 definition.
3924
3925 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3926
3927 * benchtests/scripts/compare_bench.py (do_compare): write to
3928 stderr in casestat is not present.
3929 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3930 stderr in case timings field is not present. Also string showing
3931 the output filename goes into the stderr.
3932
3933 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3934
3935 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3936 and ZeroDivisorError exceptions.
3937 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3938 argument to loop through user provided statistics.
3939 * benchtests/scripts/compare_bench.py (main): Include the --stats
3940 argument.
3941
3942 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3943
3944 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3945 instead of return.
3946
3947 2018-12-12 Florian Weimer <fweimer@redhat.com>
3948
3949 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3950 clause to copyright header.
3951
3952 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3953
3954 [BZ #23614]
3955 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3956 registers saved in the stack frame.
3957 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3958 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3959
3960 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3961
3962 * include/bits/monetary-ldbl.h: New file.
3963 * include/bits/printf-ldbl.h: Likewise.
3964 * include/bits/stdio-ldbl.h: Likewise.
3965 * include/bits/stdlib-ldbl.h: Likewise.
3966 * include/bits/syslog-ldbl.h: Likewise.
3967 * include/bits/wchar-ldbl.h: Likewise.
3968
3969 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3970
3971 * libio/libio.h: Remove redirection for _IO_vfprintf.
3972
3973 2018-12-11 Andreas Schwab <schwab@suse.de>
3974
3975 * Makerules: Remove all references to abilist-pattern.
3976 (update-all-abi): Simplify find expression.
3977
3978 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3979
3980 [BZ #23961]
3981 * math/auto-libm-test-in: Add new test case.
3982 * math/auto-libm-test-out-pow: Regenerated.
3983 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3984
3985 2018-12-10 DJ Delorie <dj@redhat.com>
3986
3987 [BZ #23948]
3988 * support/test-container.c: Move postclean step to before we
3989 change namespaces.
3990
3991 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3992
3993 * scripts/gen-as-const.py (main): Handle --python option.
3994 * scripts/gen-py-const.awk: Remove.
3995 * Makerules (py-const-script): Use gen-as-const.py.
3996 ($(py-const)): Likewise.
3997 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3998 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3999 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
4000 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
4001 ~PTHREAD_MUTEX_NO_ELISION_NP.
4002 * manual/README.pretty-printers: Update reference to
4003 gen-py-const.awk.
4004
4005 * scripts/glibcextract.py: New file.
4006 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
4007 or tempfile. Import glibcexctract.
4008 (compute_c_consts): Remove. Moved to glibcextract.py.
4009 (gen_test): Update reference to compute_c_consts.
4010 (main): Likewise.
4011 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
4012 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
4013 * sysdeps/unix/sysv/linux/Makefile
4014 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
4015 Redirect stderr as well as stdout.
4016
4017 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
4018
4019 [BZ #19767]
4020 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
4021 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
4022 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
4023 ALWAYS_USE_VSYSCALL.
4024 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
4025 ALWAYS_USE_VSYSCALL.
4026 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
4027 ALWAYS_USE_VSYSCALL.
4028
4029 2018-12-10 Florian Weimer <fweimer@redhat.com>
4030
4031 [BZ #23972]
4032 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
4033 offset instead of count for clarity. Fix typo in comment.
4034 (__old_getdents64): Keep track of previous offset. Use it to call
4035 handle_overflow.
4036 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
4037 that d_off is never zero.
4038
4039 2018-12-10 Andreas Schwab <schwab@suse.de>
4040
4041 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
4042 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
4043 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
4044 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
4045 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
4046
4047 2018-12-10 Joseph Myers <joseph@codesourcery.com>
4048
4049 * timezone/private.h: Update from tzcode 2018g.
4050 * timezone/tzfile.h: Likewise.
4051 * timezone/tzselect.ksh: Likewise.
4052 * timezone/zdump.c: Likewise.
4053 * timezone/zic.c: Likewise.
4054
4055 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
4056
4057 [BZ #23490]
4058 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
4059 (do_test): Adjust buffer size and fix format.
4060
4061 2018-12-07 DJ Delorie <dj@redhat.com>
4062
4063 [BZ #23907]
4064 * malloc/tst-tcfree3.c: New.
4065 * malloc/Makefile: Add it.
4066
4067 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4068
4069 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4070
4071 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4072
4073 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4074 used as a mask for the mode argument of __vfscanf_internal and
4075 __vfwscanf_internal.
4076 * stdio-common/vfscanf-internal.c
4077 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4078 (__strtof128_internal): Define to __wcstof128_internal.
4079 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4080 __strtof128_internal or __wcstof128_internal when the format of
4081 long double is the same as _Float128.
4082
4083 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4084
4085 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4086 * posix/confstr.c (confstr): Rename to __confstr.
4087 (__confstr): Add hidden def.
4088 (confstr): Add weak alias for __confstr.
4089 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4090 confstr.
4091
4092 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4093
4094 * NEWS: Mention getcpu.
4095 * include/sched.h (__getcpu): New libc_hidden_proto.
4096 * manual/resource.texi: Document getcpu.
4097 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4098 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4099 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4100 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4101 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4102 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4103 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4104 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4105 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4106 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4107 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4108 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4109 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4110 Likewise.
4111 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4112 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4113 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4114 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4115 Likewise.
4116 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4117 Likewise.
4118 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4119 Likewise.
4120 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4121 Likewise.
4122 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4123 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4124 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4125 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4126 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4127 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4128 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4129 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4130 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4131 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4132 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4133 Also check getcpu.
4134
4135 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4136
4137 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4138 functions.
4139 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4140
4141 2018-12-07 Florian Weimer <fweimer@redhat.com>
4142
4143 [BZ #17405]
4144 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4145 * posix/Versions (GLIBC_2.29): Export
4146 posix_spawn_file_actions_addfchdir_np.
4147 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4148 * posix/spawn_faction_destroy.c
4149 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4150 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4151 and the field action.fchdir_action.
4152 * posix/tst-spawn-chdir.c (add_chdir): New function.
4153 (do_test): Add do_fchdir loop. Call add_chdir.
4154 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4155 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4156 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4157 posix_spawn_file_actions_addfchdir_np.
4158 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4159 Likewise.
4160 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4161 Likewise.
4162 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4163 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4164 Likewise.
4165 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4166 Likewise.
4167 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4168 Likewise.
4169 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4170 Likewise.
4171 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4172 Likewise.
4173 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4174 Likewise.
4175 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4176 (GLIBC_2.29): Likewise.
4177 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4178 (GLIBC_2.29): Likewise.
4179 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4180 (GLIBC_2.29): Likewise.
4181 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4182 (GLIBC_2.29): Likewise.
4183 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4184 Likewise.
4185 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4186 (GLIBC_2.29): Likewise.
4187 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4188 (GLIBC_2.29): Likewise.
4189 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4190 (GLIBC_2.29): Likewise.
4191 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4192 (GLIBC_2.29): Likewise.
4193 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4194 Likewise.
4195 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4196 Likewise.
4197 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4198 Likewise.
4199 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4200 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4201 Likewise.
4202 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4203 Likewise.
4204 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4205 Likewise.
4206 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4207 Likewise.
4208
4209 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4210
4211 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4212 trailing whitespace removed.
4213 * scripts/config.guess: Update to version 2018-11-28.
4214 * scripts/config.sub: Update to version 2018-11-28.
4215 * scripts/install-sh: Update to version 2018-03-11.20.
4216 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4217 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4218
4219 2018-12-07 Florian Weimer <fweimer@redhat.com>
4220
4221 [BZ #23927]
4222 CVE-2018-19591
4223 * inet/tst-if_index-long.c: New file.
4224 * inet/Makefile (tests): Add tst-if_index-long.
4225
4226 2018-12-07 Florian Weimer <fweimer@redhat.com>
4227
4228 * support/check.h (support_record_failure_is_failed): Declare.
4229 * support/descriptors.h: New file.
4230 * support/support_descriptors.c: Likewise.
4231 * support/tst-support_descriptors.c: Likewise.
4232 * support/support_record_failure.c
4233 (support_record_failure_is_failed): New function.
4234 * support/Makefile (libsupport-routines): Add support_descriptors.
4235 (tests): Add tst-support_descriptors.
4236
4237 2018-12-05 Zack Weinberg <zackw@panix.com>
4238 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4239
4240 * stdio-common/vfprintf-internal.c
4241 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4242 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4243 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4244 and __no_long_double.
4245 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4246 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4247 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4248 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4249 and __nldbl_*syslog* functions.
4250 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4251 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4252 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4253 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4254 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4255 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4256 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4257 (__nldbl_vwprintf, __nldbl_wprintf):
4258 Directly call the appropriate __v*printf_internal routine, passing
4259 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4260 variable names.
4261 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4262 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4263 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4264 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4265 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4266 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4267 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4268 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4269 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4270 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4271 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4272 (__nldbl_syslog, __nldbl_vsyslog):
4273 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4274 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4275 appropriate.
4276 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4277 appropriate.
4278
4279 2018-12-05 Zack Weinberg <zackw@panix.com>
4280 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4281
4282 [BZ #11319]
4283 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4284 Moved here from debug/vsprintf_chk.c.
4285 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4286 and completion logic for the strfile to match exactly what
4287 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4288 _IO_str_init_static_internal instead of maxlen-1.
4289 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4290 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4291 __vsprintf_internal.
4292
4293 * debug/vsprintf_chk.c (__vsprintf_chk)
4294 * debug/sprintf_chk.c (__sprintf_chk):
4295 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4296 'flags' argument is positive, and slen as maxlen. No need to lock
4297 the FILE and/or construct a temporary FILE. Minimize and normalize
4298 header inclusions and variable names. Do not libc_hidden_def anything.
4299
4300 * debug/asprintf_chk.c (__asprintf_chk)
4301 * debug/dprintf_chk.c (__dprintf_chk)
4302 * debug/fprintf_chk.c (__fprintf_chk)
4303 * debug/fwprintf_chk.c (__fwprintf_chk)
4304 * debug/printf_chk.c (__printf_chk)
4305 * debug/snprintf_chk.c (__snprintf_chk)
4306 * debug/swprintf_chk.c (__swprintf_chk)
4307 * debug/vasprintf_chk.c (__vasprintf_chk)
4308 * debug/vdprintf_chk.c (__vdprintf_chk)
4309 * debug/vfprintf_chk.c (__vfprintf_chk)
4310 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4311 * debug/vprintf_chk.c (__vprintf_chk)
4312 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4313 * debug/vswprintf_chk.c (__vswprintf_chk)
4314 * debug/vwprintf_chk.c (__vwprintf_chk)
4315 * debug/wprintf_chk.c (__wprintf_chk):
4316 Directly call the corresponding vxxprintf_internal function, passing
4317 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4318 the FILE and/or construct a temporary FILE. Minimize and normalize
4319 header inclusions and variable names. Do not libc_hidden_def anything.
4320
4321 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4322 __obstack_vprintf_internal.
4323 (__obstack_vprintf_chk): Convert into a wrapper that calls
4324 __obstack_vprintf_internal (these two functions already had the
4325 same code) and move to new file...
4326 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4327 file.
4328 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4329 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4330 * debug/Makefile (routines): Add vobprintf_chk.
4331
4332 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4333 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4334 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4335 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4336 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4337 (__nldbl___obstack_vfprintf_chk):
4338 Directly call the corresponding vxxprintf_internal function,
4339 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4340 duplicate comparison of slen with 0 or maxlen from the corresponding
4341 non-__nldbl function.
4342
4343 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4344 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4345 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4346 Remove libc_hidden_proto.
4347
4348 * stdio-common/vfprintf-internal.c
4349 (__vfprintf_internal, __vfwprintf_internal):
4350 Do not check _IO_FLAGS2_FORTIFY.
4351 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4352 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4353 a comment explaining why it has the maxlen argument.
4354 (_IO_acquire_lock_clear_flags2_fct): Remove.
4355 (_IO_acquire_lock_clear_flags2): Remove.
4356 (_IO_release_lock): Remove conditional statement which will
4357 now never execute.
4358 (_IO_acquire_lock): Remove variable which is now unused.
4359 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4360 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4361
4362 * stdio-common/Makefile (tests): Add tst-bz11319 and
4363 tst-bz11319-fortify2.
4364 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4365 * stdio-common/tst-bz11319-fortify2.c: New file.
4366 * stdio-common/tst-bz11319.c: Likewise.
4367
4368 2018-12-05 Zack Weinberg <zackw@panix.com>
4369 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4370
4371 * misc/syslog.c: Include libioP.h, not iolibio.h.
4372 (__vsyslog_internal): New function with the former body of
4373 __vsyslog_chk; takes mode_flags argument same as
4374 __v*printf_internal. Call __vfprintf_internal directly.
4375
4376 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4377 Remove libc_hidden_def.
4378 (__syslog, __syslog_chk): Use __vsyslog_internal.
4379 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4380
4381 * include/sys/syslog.h: Add multiple inclusion guard.
4382 Add prototype for __vsyslog_internal.
4383 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4384
4385 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4386 Use __vsyslog_internal.
4387
4388 2018-12-05 Zack Weinberg <zackw@panix.com>
4389 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4390
4391 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4392 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4393 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4394 New functions.
4395 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4396 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4397
4398 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4399 Include wctype.h here if COMPILE_WPRINTF is defined.
4400 Define __vfprintf_internal or __vfwprintf_internal, depending
4401 on COMPILE_WPRINTF.
4402 Temporarily, on entry to this function, update mode_flags
4403 according to the environmental settings corresponding to
4404 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4405 Throughout, check mode_flags instead of __ldbl_is_dbl and
4406 _IO_FLAGS2_FORTIFY on the destination FILE.
4407 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4408 Include vfprintf-internal.c. Don't include wctype.h.
4409 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4410 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4411 and vfprintf.
4412 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4413 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4414 and vfwprintf.
4415 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4416
4417 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4418 and add mode_flags argument; use __vfprintf_internal.
4419 (__vdprintf): New function. Alias vdprintf to this.
4420 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4421 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4422 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4423 (__obstack_printf): Use __obstack_printf_internal.
4424 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4425 public aliases __vsnprintf and vsnprintf.
4426 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4427 called internally.
4428 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4429 public aliases _IO_vsprintf and vsprintf.
4430 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4431 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4432 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4433 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4434 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4435
4436 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4437 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4438 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4439 * stdio-common/printf.c: Use __vfprintf_internal.
4440
4441 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4442 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4443 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4444
4445 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4446 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4447 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4448 __vfwprintf_internal.
4449
4450 * libio/libio.h: Remove libc_hidden_proto and declaration for
4451 _IO_vfprintf.
4452 Remove declaration of _IO_vfwprintf.
4453 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4454 _IO_vsprintf.
4455 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4456 _IO_obstack_printf.
4457 * include/stdio.h: Add prototype for __vasprintf.
4458 (__vsnprintf): Remove declaration, because there are no more
4459 internal calls.
4460 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4461 declaration, because there are no more internal calls.
4462
4463 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4464 __vsnprintf_internal, instead of _IO_vsnprintf.
4465 * argp/argp-help.c (__argp_error, __argp_failure): Use
4466 __vasprintf_internal, instead of _IO_vasprintf.
4467 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4468 redefine, because there are no more internal calls.
4469
4470 2018-12-05 Zack Weinberg <zackw@panix.com>
4471 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4472
4473 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4474 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4475 Include libio/strfile.h instead of libioP.h.
4476 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4477 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4478 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4479 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4480 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4481 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4482 necessary. Do not set __no_long_double. Normalize variable names.
4483 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4484 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4485 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4486 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4487 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4488 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4489 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4490 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4491 Do not set __no_long_double. Normalize variable names.
4492
4493 2018-12-05 Zack Weinberg <zackw@panix.com>
4494 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4495
4496 * stdio-common/isoc99_scanf.c
4497 * stdio-common/isoc99_fscanf.c
4498 * stdio-common/isoc99_sscanf.c
4499 * stdio-common/isoc99_vscanf.c
4500 * stdio-common/isoc99_vfscanf.c
4501 * stdio-common/isoc99_vsscanf.c
4502 * wcsmbs/isoc99_wscanf.c
4503 * wcsmbs/isoc99_fwscanf.c
4504 * wcsmbs/isoc99_swscanf.c
4505 * wcsmbs/isoc99_vwscanf.c
4506 * wcsmbs/isoc99_vfwscanf.c
4507 * wcsmbs/isoc99_vswscanf.c:
4508 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4509 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4510 No need to lock and unlock the FILE passed to that function.
4511
4512 * stdio-common/vfscanf-internal.c
4513 (__vfscanf_internal, __vfwscanf_internal):
4514 Don't look at _IO_FLAGS2_SCANF_STD.
4515 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4516 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4517 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4518
4519 2018-12-05 Zack Weinberg <zackw@panix.com>
4520 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4521
4522 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4523 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4524 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4525 * libio/strfile.h: Add multiple inclusion guard.
4526 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4527
4528 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4529 consistency with the other version of this file.
4530 (ldbl_compat_symbol): New macro.
4531 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4532 New macro.
4533
4534 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4535 Define __vfscanf_internal or __vfwscanf_internal, depending on
4536 COMPILE_WSCANF; don't define any other public symbols.
4537 Remove errval and code to set errp.
4538 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4539 as the mode_flags argument.
4540 (encode_error, conv_error, input_error): Don't set errval.
4541 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4542 Include vfscanf-internal.c.
4543 * stdio-common/vfscanf.c: New file defining the public entry
4544 point vfscanf, which calls __vfscanf_internal.
4545 * stdio-common/vfwscanf.c: New file defining the public entry
4546 point vfwscanf, which calls __vfwscanf_internal.
4547
4548 * stdio-common/iovfscanf.c: New file.
4549 * stdio-common/iovfwscanf.c: Likewise.
4550
4551 * stdio-common/Makefile (routines): Add vfscanf-internal,
4552 vfwscanf-internal, iovfscanf, iovfwscanf.
4553 * stdio-common/Versions: Mention GLIBC_2.29, so that
4554 it can be used in SHLIB_COMPAT expressions.
4555 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4556 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4557 Call __vfscanf_internal, instead of _IO_vfscanf.
4558 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4559 _IO_vfscanf.
4560 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4561 _IO_vfwscanf.
4562
4563 * libio/iovsscanf.c: Clean up includes, when possible. Use
4564 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4565 __vfscanf_internal or __vfwscanf_internal directly.
4566 * libio/iovswscanf.c: Likewise.
4567 * libio/swscanf.c: Likewise.
4568 * libio/vscanf.c: Likewise.
4569 * libio/vwscanf.c: Likewise.
4570 * libio/wscanf.c: Likewise.
4571 * stdio-common/isoc99_fscanf.c: Likewise.
4572 * stdio-common/isoc99_scanf.c: Likewise.
4573 * stdio-common/isoc99_sscanf.c: Likewise.
4574 * stdio-common/isoc99_vfscanf.c: Likewise.
4575 * stdio-common/isoc99_vscanf.c: Likewise.
4576 * stdio-common/isoc99_vsscanf.c: Likewise.
4577 * stdio-common/scanf.c: Likewise.
4578 * stdio-common/sscanf.c: Likewise.
4579 * wcsmbs/isoc99_fwscanf.c: Likewise.
4580 * wcsmbs/isoc99_swscanf.c: Likewise.
4581 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4582 * wcsmbs/isoc99_vswscanf.c: Likewise.
4583 * wcsmbs/isoc99_vwscanf.c: Likewise.
4584 * wcsmbs/isoc99_wscanf.c: Likewise.
4585
4586 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4587
4588 * include/time.h
4589 (__tz_compute): Replace time_t with __time64_t.
4590 (__tz_convert): Replace time_t* with __time64_t.
4591 (__offtime): Replace time_t* with __time64_t.
4592 * time/gmtime.c
4593 (__gmtime_r): Adjust call to __tz_convert.
4594 (gmtime): Likewise.
4595 * time/localtime.c
4596 (__localtime_r): Likewise.
4597 (localtime): Likewise.
4598 * time/offtime.c: Replace time_t with __time64_t.
4599 * time/tzset.c: Likewise.
4600
4601 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4602
4603 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4604 dynamic linker unless [$(run-built-tests) = yes].
4605
4606 2018-12-03 DJ Delorie <dj@delorie.com>
4607
4608 * support/test-container.c (check_for_unshare_hints): New.
4609 (main): Call it if unshare fails. Add support for "su" scriptlet
4610 command.
4611
4612 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4613
4614 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4615 'START' to indicate that start text should be output.
4616 (gen_test): Likewise.
4617 (main): Generate 'START' for first symbol or '--' line, or at end
4618 of input if not previously generated.
4619
4620 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4621
4622 [BZ #19767]
4623 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4624 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4625 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4626 ALWAYS_USE_VSYSCALL.
4627
4628 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4629
4630 [BZ #23913]
4631 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4632 new_argv by one.
4633
4634 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4635
4636 [BZ #23923]
4637 * locale/programs/localedef.c: Declare boolean hard_links default true.
4638 (options): Add --no-hard-links option.
4639 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4640 * locale/programs/localedef.h: Declare prototype for hard_links.
4641 * locale/programs/locfile.c (write_locale_data): Don't use hard
4642 links if hard_links is false.
4643
4644 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4645
4646 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4647 cpu_features_basic.
4648 (__cache_sysconf): Likewise.
4649 (init_cacheinfo): Likewise.
4650 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4651 populate COMMON_CPUID_INDEX_80000007 and
4652 COMMON_CPUID_INDEX_80000008.
4653 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4654 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4655 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4656 (init_cpu_features): Use _Static_assert on
4657 index_arch_Fast_Unaligned_Load.
4658 __get_cpuid_registers and __get_arch_feature. Updated for
4659 cpu_features_basic. Set stepping in cpu_features.
4660 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4661 (FEATURE_INDEX_2): New.
4662 (FEATURE_INDEX_MAX): Changed to enum.
4663 (COMMON_CPUID_INDEX_D_ECX_1): New.
4664 (COMMON_CPUID_INDEX_80000007): Likewise.
4665 (COMMON_CPUID_INDEX_80000008): Likewise.
4666 (cpuid_registers): Likewise.
4667 (cpu_features_basic): Likewise.
4668 (CPU_FEATURE_USABLE): Likewise.
4669 (bit_arch_XXX_Usable): Likewise.
4670 (cpu_features): Use cpuid_registers and cpu_features_basic.
4671 (bit_arch_XXX): Reweritten.
4672 (bit_cpu_XXX): Likewise.
4673 (index_cpu_XXX): Likewise.
4674 (reg_XXX): Likewise.
4675 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4676 <support/check.h>.
4677 (CHECK_CPU_FEATURE): New.
4678 (CHECK_CPU_FEATURE_USABLE): Likewise.
4679 (cpu_kinds): Likewise.
4680 (do_test): Print vendor, family, model and stepping. Check
4681 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4682 (TEST_FUNCTION): Removed.
4683 Include <support/test-driver.c> instead of
4684 "../../test-skeleton.c".
4685 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4686 Check POPCNT instead of POPCOUNT.
4687 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4688
4689 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4690
4691 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4692 there is no element in `consts'.
4693
4694 2018-12-01 Florian Weimer <fweimer@redhat.com>
4695
4696 * support/support_capture_subprocess.c
4697 (support_capture_subprocess): Check that pipe descriptors have
4698 expected values. Close original pipe descriptors in subprocess.
4699
4700 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4701
4702 [BZ #23032]
4703 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4704 attr with __pthread_default_barrierattr.
4705 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4706 attr with __pthread_default_condattr.
4707 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4708 attr with __pthread_default_mutexattr.
4709 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4710 attr with __pthread_default_rwlockattr.
4711
4712 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4713
4714 * manual/tunables.texi (POSIX Thread Tunables): New node.
4715 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4716 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4717 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4718 __pthread_tunables_init.
4719 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4720 (max_adaptive_count): Define.
4721 * nptl/pthread_mutex_conf.c: New file.
4722 * nptl/pthread_mutex_conf.h: New file.
4723 * sysdeps/generic/adaptive_spin_count.h: New file.
4724 * sysdeps/nptl/dl-tunables.list: New file.
4725 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4726 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4727 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4728 Likewise.
4729
4730 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4731
4732 [BZ #20544]
4733 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4734 * stdlib/on_exit.c (__on_exit): Likewise.
4735 * stdlib/Makefile (tests): Add tst-bz20544.
4736 * stdlib/tst-bz20544.c: New test.
4737
4738 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4739
4740 [BZ #19767]
4741 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4742 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4743 New.
4744
4745 2018-11-30 Florian Weimer <fweimer@redhat.com>
4746
4747 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4748 Extend error logging.
4749 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4750 symbol.
4751
4752 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4753
4754 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4755 __sigismember instead of sigismember.
4756 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4757 cancel_handler): New definitions.
4758 (do_system): Use posix_spawn instead of fork and execl and remove
4759 reentracy code.
4760 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4761 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4762 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4763 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4764 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4765 * sysdeps/unix/sysv/linux/system.c: Likewise.
4766
4767 [BZ #22834]
4768 [BZ #17490]
4769 * NEWS: Add new semantic for atfork with popen and system.
4770 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4771 fork and execl.
4772
4773 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4774
4775 [BZ #23690]
4776 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4777 modification order when accessing reloc_result->addr.
4778 * include/link.h (reloc_result): Add field init.
4779 * nptl/Makefile (tests): Add tst-audit-threads.
4780 (modules-names): Add tst-audit-threads-mod1 and
4781 tst-audit-threads-mod2.
4782 Add rules to build tst-audit-threads.
4783 * nptl/tst-audit-threads-mod1.c: New file.
4784 * nptl/tst-audit-threads-mod2.c: Likewise.
4785 * nptl/tst-audit-threads.c: Likewise.
4786 * nptl/tst-audit-threads.h: Likewise.
4787
4788 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4789
4790 * scripts/gen-as-const.py: New file.
4791 * scripts/gen-as-const.awk: Remove.
4792 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4793 gen-as-const.py.
4794 ($(objpfx)test-as-const-%.c): Likewise.
4795
4796 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4797
4798 * elf/dl-exception.c: Include <_itoa.h>.
4799
4800 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4801
4802 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4803 returned by __f_setlk.
4804
4805 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4806 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4807
4808 * elf/Makefile (tests-internal): Add tst-create_format1.
4809 * elf/dl-exception.c (_dl_exception_create_format): Support
4810 %x, %lx and %zx.
4811 * elf/tst-create_format1.c: New file.
4812
4813 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4814
4815 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4816 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4817 gnulib.)
4818 * argp/argp-help.c (__argp_failure): Likewise.
4819
4820 2018-11-29 Mao Han <han_mao@c-sky.com>
4821
4822 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4823 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4824 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4825 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4826 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4827 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4828 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4829 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4830 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4831 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4832 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4833 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4834 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4835 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4836 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4837 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4838 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4839 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4840 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4841 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4842 (R_CKCORE_TLS_TPOFF32): New defines.
4843
4844 2018-11-29 Florian Weimer <fweimer@redhat.com>
4845
4846 * posix/Makefile (before-compile): Remove testcases.h and
4847 ptestcases.h.
4848 (generated): Add testcases.h and ptestcases.h.
4849 (testcases.h, ptestcases.h): Move to $(objpfx).
4850 (runtests.o): Add dependency on testcases.h.
4851 (runptests.o): Add dependency on ptestcases.h.
4852 * posix/testcases.h, posix/ptestcases.h: Remove files.
4853 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4854 not touch posix/testcases.h and posix/ptestcases.h.
4855
4856 2018-11-28 Florian Weimer <fweimer@redhat.com>
4857
4858 support: Add signal support to support_capture_subprocess_check.
4859 * support/capture_subprocess.h (support_capture_subprocess_check):
4860 Adjust comment and rename parameter.
4861 * support/support_capture_subprocess_check.c
4862 (print_actual_status): New function.
4863 (support_capture_subprocess_check): Support negative
4864 status_or_signal. Call print_actual_status.
4865 * support/tst-support_capture_subprocess.c (do_test): Call
4866 support_capture_subprocess_check.
4867 * libio/tst-vtables-common.c (termination_status)
4868 (init_termination_status): Remove.
4869 (check_for_termination): Adjust support_capture_subprocess_check
4870 call.
4871 (do_test): Remove call to init_termination_status.
4872
4873 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4874
4875 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4876 source directory instead of a copy.
4877 (CommandList.create_copy_dir): Remove.
4878
4879 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4880
4881 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4882
4883 2018-11-28 Florian Weimer <fweimer@redhat.com>
4884
4885 * support/support.h (support_quote_string): Do not use str
4886 parameter name.
4887
4888 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4889
4890 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4891 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4892
4893 2018-11-27 Florian Weimer <fweimer@redhat.com>
4894
4895 * support/support.h (support_quote_string): Declare.
4896 * support/support_quote_string.c: New file.
4897 * support/tst-support_quote_string.c: Likewise.
4898 * support/Makefile (libsupport-routines): Add
4899 support_quote_string.
4900 (tests): Add tst-support_quote_string.
4901
4902 2018-11-27 Florian Weimer <fweimer@redhat.com>
4903
4904 [BZ #23927]
4905 CVE-2018-19591
4906 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4907 descriptor leak in case of ENODEV error.
4908
4909 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4910
4911 [BZ #19767]
4912 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4913 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4914 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4915
4916 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4917
4918 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4919 Error for unknown lines.
4920
4921 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4922
4923 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4924 Touch additional files.
4925
4926 2018-11-26 Florian Weimer <fweimer@redhat.com>
4927
4928 [BZ #23907]
4929 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4930 double-frees.
4931
4932 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4933
4934 [BZ #19767]
4935 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4936 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4937 SHARED. Include sysdep.h.
4938 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4939 ALWAYS_USE_VSYSCALL.
4940 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4941 ALWAYS_USE_VSYSCALL.
4942
4943 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4944
4945 [BZ #19767]
4946 * nptl/Makefile (tests-static): Add tst-cond11-static.
4947 (tests): Likewise.
4948 * nptl/tst-cond11-static.c: New File.
4949 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4950 tst-affinity-static.
4951 (tests): Likewise.
4952 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4953 instead of SHARED.
4954 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4955 (USE_VSYSCALL): Likewise.
4956 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4957 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4958 instead of SHARED.
4959 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4960 SHARED.
4961 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4962 New.
4963
4964 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4965
4966 [BZ #23915]
4967 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4968 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4969 Undefine.
4970
4971 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4972
4973 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4974 (tst-cet-legacy-1a-ARGS): New.
4975 ($(objpfx)tst-cet-legacy-1a): New target.
4976 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4977
4978 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4979
4980 * conform/conformtest.py (CompileSubTest.__init__): Set
4981 self.run_early to False.
4982 (ExecuteSubTest.__init__): Likewise.
4983 (HeaderTests.run): Try running all non-optional, non-XFAILed
4984 compilation tests in a single execution of the compiler.
4985
4986 * conform/conformtest.py (CompileSubTest): New class.
4987 (ExecuteSubTest): Likewise.
4988 (ElementTest.run): Rename to gen_subtests. Append tests to
4989 self.subtests instead of running them.
4990 (ConstantTest.run): Likewise.
4991 (SymbolTest.run): Likewise.
4992 (TypeTest.run): Likewise.
4993 (TagTest.run): Likewise.
4994 (FunctionTest.run): Likewise.
4995 (VariableTest.run): Likewise.
4996 (MacroFunctionTest.run): Likewise.
4997 (MacroStrTest.run): Likewise.
4998 (HeaderTests.handle_test_line): Generate subtests for tests.
4999 (HeaderTests.run): Run subtests for tests.
5000
5001 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5002
5003 * math/Versions (GLIBC_2.29): Add pow.
5004 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
5005 symbol.
5006 * math/w_pow.c: New file.
5007 * sysdeps/i386/fpu/w_pow.c: New file.
5008 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
5009 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
5010 and add necessary aliases.
5011 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
5012 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
5013 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5014 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5015 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5016 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5017 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5018 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5019 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5020 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5021 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5022 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5023 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5024 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5025 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5026 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5027 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5028 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5029 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5030 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5031 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5032 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5033 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5034 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5035 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5036 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5037 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
5038 __pow.
5039 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
5040 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
5041 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
5042
5043 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5044
5045 * math/Versions (GLIBC_2.29): Add log2.
5046 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
5047 symbol.
5048 * math/w_log2.c: New file.
5049 * sysdeps/i386/fpu/w_log2.c: New file.
5050 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
5051 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
5052 and add necessary aliases.
5053 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
5054 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
5055 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5056 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5057 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5058 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5059 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5060 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5061 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5062 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5063 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5064 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5065 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5066 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5067 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5068 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5069 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5070 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5071 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5072 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5073 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5074 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5075 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5076 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5077 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5078 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5079
5080 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5081
5082 * math/Versions (GLIBC_2.29): Add log.
5083 * math/w_log_compat.c (__log_compat): Change to versioned compat
5084 symbol.
5085 * math/w_log.c: New file.
5086 * sysdeps/i386/fpu/w_log.c: New file.
5087 * sysdeps/ia64/fpu/e_log.S: Update.
5088 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5089 and add necessary aliases.
5090 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5091 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5092 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5093 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5094 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5095 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5096 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5097 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5098 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5099 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5100 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5101 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5102 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5103 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5104 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5107 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5109 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5110 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5111 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5112 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5113 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5114 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5115 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5116 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5117 __log.
5118 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5119 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5120 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5121 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5122
5123 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5124
5125 * math/Versions (GLIBC_2.29): Add exp and exp2.
5126 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5127 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5128 * math/w_exp_compat.c (__exp_compat): Likewise.
5129 * math/w_exp.c: New file.
5130 * math/w_exp2.c: New file.
5131 * sysdeps/i386/fpu/w_exp.c: New file.
5132 * sysdeps/i386/fpu/w_exp2.c: New file.
5133 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5134 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5135 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5136 and add necessary aliases.
5137 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5138 and add necessary aliases.
5139 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5140 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5141 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5142 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5143 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5144 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5145 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5146 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5147 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5148 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5149 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5150 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5151 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5152 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5153 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5154 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5155 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5156 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5157 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5158 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5159 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5160 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5161 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5162 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5163 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5164 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5165 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5166 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5167 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5168 (__ieee754_exp): Rename to __exp.
5169 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5170 (__ieee754_exp): Rename to __exp.
5171 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5172 (__ieee754_exp): Rename to __exp.
5173 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5174 __exp.
5175 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5176
5177 2018-11-20 DJ Delorie <dj@redhat.com>
5178
5179 * malloc/malloc.c (tcache_entry): Add key field.
5180 (tcache_put): Set it.
5181 (tcache_get): Likewise.
5182 (_int_free): Check for double free in tcache.
5183 * malloc/tst-tcfree1.c: New.
5184 * malloc/tst-tcfree2.c: New.
5185 * malloc/Makefile: Run the new tests.
5186 * manual/probes.texi: Document memory_tcache_double_free probe.
5187
5188 * dlfcn/dlerror.c (check_free): Prevent double frees.
5189
5190 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5191
5192 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5193
5194 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5195
5196 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5197 in tests. Use names for format arguments.
5198 (ConstantTest.run): Likewise.
5199 (SymbolTest.run): Likewise.
5200 (TypeTest.run): Likewise.
5201 (TagTest.run): Likewise.
5202 (FunctionTest.run): Likewise.
5203 (VariableTest.run): Likewise.
5204 (MacroFunctionTest.run): Likewise.
5205 (MacroStrTest.run): Likewise.
5206 (HeaderTests.__init__): Set self.num_tests.
5207 (HeaderTests.handle_test_line): Set test.num. Increment
5208 self.num_tests.
5209
5210 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5211
5212 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5213 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5214 SEEK_SET.
5215
5216 2018-11-19 Mao Han <han_mao@c-sky.com>
5217
5218 * scripts/config.guess: Update to version 2018-08-29.
5219 * scripts/config.sub: Update to version 2018-08-29.
5220
5221 2018-11-19 Florian Weimer <fweimer@redhat.com>
5222
5223 support: Print timestamps in timeout handler.
5224 * support/support_test_main.c (print_timestamp): New function.
5225 (signal_handler): Use it to print the termination time and the
5226 time of the last write to standard output.
5227
5228 2018-11-16 Zack Weinberg <zackw@panix.com>
5229 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5230
5231 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5232 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5233 argument.
5234 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5235 and add flags argument. Check flags instead of __ldbl_is_dbl when
5236 deciding whether to set is_long_double.
5237 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5238 passing zero for flags argument.
5239 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5240
5241 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5242 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5243 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5244 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5245 variable names. Remove libc_hidden_def/libc_hidden_proto from
5246 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5247 longer called from within the library.
5248 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5249 for __nldbl___vstrfmon_l, declare it explicitly.
5250
5251 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5252
5253 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5254
5255 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5256 macros
5257 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5258 F_SETLK64, F_SETLKW64, respectively.
5259 * sysdeps/mach/hurd/f_setlk.c: New file.
5260 * sysdeps/mach/hurd/f_setlk.h: New file.
5261 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5262 f_setlk.
5263 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5264 (__libc_fcntl): Move non-flock operations to...
5265 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5266 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5267
5268 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5269
5270 mktime: DEBUG_MKTIME cleanup
5271 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5272 And it’s no longer needed now that glibc and Gnulib both have
5273 their own testing mechanisms for mktime.
5274 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5275
5276 mktime: fix non-EOVERFLOW errno handling
5277 [BZ#23789]
5278 mktime was not properly reporting failures when the underlying
5279 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5280 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5281 The problem could happen on non-glibc platforms, with Gnulib.
5282 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5283 (tm_diff): ... this simpler function, which does not change errno.
5284 All callers changed to deal with errno themselves.
5285 (ranged_convert, __mktime_internal): Return failure immediately if
5286 the underlying function reports any failure other than EOVERFLOW.
5287 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5288 gap code fails.
5289
5290 mktime: fix bug with Y2038 DST transition
5291 [BZ#23789]
5292 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5293 mishandle a DST transition that jumps over the Y2038 boundary.
5294 No such DST transitions are known so this is only a theoretical
5295 bug, but we might as well do things right.
5296
5297 mktime: make more room for overflow
5298 [BZ#23789]
5299 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5300 This is so that we can add tm_diff results to a previous guess,
5301 which will be useful in a later patch.
5302
5303 mktime: simplify offset guess
5304 [BZ#23789]
5305 * time/mktime.c (__mktime_internal): Omit excess precision.
5306
5307 mktime: new test for mktime failure
5308 [BZ#23789]
5309 Based on a test suggested by Albert Aribaud in:
5310 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5311 * time/Makefile (tests): Add bug-mktime4.
5312 * time/bug-mktime4.c: New file.
5313
5314 mktime: fix EOVERFLOW bug
5315 [BZ#23789]
5316 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5317 Include libc-config.h, not config.h, for __set_errno.
5318 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5319
5320 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5321
5322 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5323 __attribute_copy__ to copy attributes from name. Drop static qualifier
5324 to avoid warnings about leaf attribute not having effect on static
5325 functions.
5326
5327 2018-11-13 Florian Weimer <fweimer@redhat.com>
5328
5329 * malloc/malloc.c (fastbin_push_entry): New function.
5330 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5331 (REMOVE_FB): Remove macro.
5332 (_int_malloc): Use fastbin_pop_entry and reindent.
5333 (_int_free): Use fastbin_push_entry.
5334 (malloc_consolidate): Use atomic_exchange_acquire.
5335
5336 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5337
5338 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5339 alias attribute, not with strong_alias.
5340
5341 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5342 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5343 with additional parameter thread.
5344 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5345 in terms of __hidden_ver2.
5346 (hidden_tls_def): New macro.
5347 (libc_hidden_tls_def): Likewise.
5348 (rtld_hidden_tls_def): Likewise.
5349 (libm_hidden_tls_def): Likewise.
5350 (libmvec_hidden_tls_def): Likewise.
5351 (libresolv_hidden_tls_def): Likewise.
5352 (librt_hidden_tls_def): Likewise.
5353 (libdl_hidden_tls_def): Likewise.
5354 (libnss_files_hidden_tls_def): Likewise.
5355 (libnsl_hidden_tls_def): Likewise.
5356 (libnss_nisplus_hidden_tls_def): Likewise.
5357 (libutil_hidden_tls_def): Likewise.
5358 (libutil_hidden_tls_def): Likweise.
5359 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5360 libc_hidden_tls_def.
5361 (__sim_disabled_exceptions_thread): Likewise.
5362 (__sim_round_mode_thread): Likewise.
5363
5364 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5365 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5366 copy attributes from name.
5367
5368 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5369
5370 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5371 Use __attribute_copy__ to copy attributes from name.
5372
5373 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5374 with __hidden_ver1 call.
5375 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5376 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5377 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5378 (__cosf): Do not declare here.
5379 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5380 (__sincosf): Do not declare here.
5381 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5382 (__sinf): Do not declare here.
5383
5384 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5385 (__BIG_ENDIAN): Likewise.
5386 (__BYTE_ORDER): Likewise.
5387 (strong_alias): Likewise.
5388 (_strong_alias): Likewise.
5389
5390 2018-11-12 Florian Weimer <fweimer@redhat.com>
5391
5392 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5393 function. Move after the definition of in_smallbin_range. Do not
5394 use __builtin_expect for paths that lead to a noreturn function.
5395 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5396 because it is unclear whether this is in fact an unlikely
5397 condition.
5398 (_int_malloc, _int_free): Adjust.
5399 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5400 variables.
5401 * malloc/arena.c (heap_trim): Likewise.
5402
5403 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5404
5405 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5406 it, free it if needed.
5407 (reauthenticate): Test and use ccwdir.
5408 (child_init_port): In non-resetids case, test and use ccwdir.
5409 (child_chdir): New nested function to set ccwdir.
5410 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5411 * hurd/hurd/port.h (_hurd_port_move): New function.
5412 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5413 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5414 * hurd/Versions (_hurd_port_move): Export function.
5415 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5416 symbol.
5417 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5418 of dtablesize for allocating dtable_cloexec.
5419
5420 2018-11-09 Martin Sebor <msebor@redhat.com>
5421
5422 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5423 it's already defined.
5424 (_strong_alias): Use __attribute_copy__.
5425 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5426 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5427 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5428 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5429 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5430 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5431 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5432 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5433 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5434 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5435 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5436 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5437 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5438 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5439 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5440 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5441 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5442 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5443 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5444
5445 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5446
5447 * misc/tst-efgcvt.c: Include support/check.h and
5448 support/test-driver.c. Do not include test-skeleton.c.
5449 (error_count): Remove.
5450 (output_error): Replace increments to error_count with calls to
5451 support_record_failure.
5452 (output_r_error): Likewise.
5453 (special): Likewise.
5454 (do_test): Unconditionally return zero.
5455 (TEST_FUNCTION): Remove.
5456
5457 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5458
5459 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5460 not $(@D)/scratch.
5461 ($(linknamespace-header-tests)): Likewise.
5462
5463 * conform/conformtest.py: New file.
5464 * conform/conformtest.pl: Remove.
5465 * conform/GlibcConform.pm: Likewise.
5466 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5467 (KEYWORDS_C99): Likewise.
5468 (KEYWORDS): Likewise.
5469 * conform/Makefile ($(conformtest-header-tests)): Use
5470 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5471 option. Use --header instead of --headers.
5472 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5473 function entries.
5474 * conform/data/spawn.h-data: Likewise.
5475 * conform/data/fcntl.h-data (openat): Add space after function
5476 name.
5477 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5478 (wcscasecmp_l): Likewise.
5479 * conform/data/termios.h-data (c_cc): Add space after element
5480 name.
5481
5482 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5483
5484 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5485 instead of manually comparing and reporting mismatching strings.
5486 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5487 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5488
5489 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5490
5491 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5492 __ASSUME_SOCKETCALL.
5493 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5494 (__ASSUME_SOCKETCALL): Remove.
5495 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5496 (__ASSUME_SOCKETCALL): Likewise.
5497 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5498 (__ASSUME_SOCKETCALL): Likewise.
5499 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5500 (__ASSUME_SOCKETCALL): Likewise.
5501 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5502 (__ASSUME_SOCKETCALL): Likewise.
5503 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5504 (__ASSUME_SOCKETCALL): Likewise.
5505 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5506 (__ASSUME_SOCKETCALL): Likewise.
5507
5508 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5509
5510 [BZ #23509]
5511 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5512 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5513 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5514 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5515 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5516 lc_unknown.
5517
5518 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5519
5520 [BZ #17630]
5521 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5522
5523 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5524
5525 [BZ #23867]
5526 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5527 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5528 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5529 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5530
5531 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5532
5533 * support/support_test_compare_string.c
5534 (support_test_compare_string): Fix printf format.
5535
5536 2018-11-07 Florian Weimer <fweimer@redhat.com>
5537
5538 Implement TEST_COMPARE_STRING.
5539 * support/check.h (TEST_COMPARE_STRING): Define.
5540 (support_test_compare_string): Declare.
5541 * support/Makefile (libsupport-routines): Add
5542 support_test_compare_string.
5543 (tests): Add tst-test_compare_string.
5544 * support/support_test_compare_string.c: New file.
5545 * support/tst-test_compare_string.c: Likewise.
5546
5547 2018-11-07 Andreas Schwab <schwab@suse.de>
5548
5549 [BZ #23864]
5550 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5551 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5552 Undef.
5553
5554 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5555
5556 [BZ #23862]
5557 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5558 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5559 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5560 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5561 Likewise.
5562
5563 2018-11-06 Florian Weimer <fweimer@redhat.com>
5564
5565 [BZ #17405]
5566 * posix/Makefile (routines): Add spawn_faction_addchdir.
5567 (tests): Add tst-spawn-chdir.
5568 * posix/Versions (GLIBC_2.29): Add
5569 posix_spawn_file_actions_addchdir_np.
5570 * posix/spawn_faction_addchdir.c: New file.
5571 * posix/spawn_faction_destroy.c
5572 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5573 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5574 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5575 chdir_action.
5576 * posix/tst-spawn-chdir.c: New file.
5577 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5578 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5579 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5580 posix_spawn_file_actions_addchdir_np.
5581 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5582 Likewise.
5583 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5584 Likewise.
5585 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5586 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5587 Likewise.
5588 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5589 Likewise.
5590 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5591 Likewise.
5592 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5593 Likewise.
5594 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5595 Likewise.
5596 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5597 Likewise.
5598 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5599 (GLIBC_2.29): Likewise.
5600 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5601 (GLIBC_2.29): Likewise.
5602 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5603 (GLIBC_2.29): Likewise.
5604 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5605 (GLIBC_2.29): Likewise.
5606 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5607 Likewise.
5608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5609 (GLIBC_2.29): Likewise.
5610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5611 (GLIBC_2.29): Likewise.
5612 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5613 (GLIBC_2.29): Likewise.
5614 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5615 (GLIBC_2.29): Likewise.
5616 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5617 Likewise.
5618 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5619 Likewise.
5620 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5621 Likewise.
5622 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5623 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5624 Likewise.
5625 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5626 Likewise.
5627 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5628 Likewise.
5629 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5630 Likewise.
5631
5632 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5633
5634 * misc/Makefile (tests): Add tst-ldbl-error.
5635 * misc/tst-ldbl-error.c: New file.
5636
5637 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5638
5639 * misc/Makefile (tests): Add tst-ldbl-warn.
5640 * misc/tst-ldbl-warn.c: New file.
5641
5642 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5643
5644 * argp/Makefile (tests): Add tst-ldbl-argp.
5645 * argp/tst-ldbl-argp.c: New file.
5646
5647 2018-11-05 Arjun Shankar <arjun@redhat.com>
5648
5649 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5650 __gconv_path_elem and call __gconv_get_path unconditionally.
5651
5652 2018-11-05 Andreas Schwab <schwab@suse.de>
5653
5654 [BZ #22927]
5655 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5656 creating the first helper thread failed.
5657
5658 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5659
5660 * sysdeps/mach/hurd/msync.c: New file.
5661
5662 2018-11-02 Florian Weimer <fweimer@redhat.com>
5663
5664 * support/shell-container.c (copy_func): Call
5665 support_copy_file_range instead of copy_file_range to support
5666 cross-device copies.
5667
5668 2018-11-02 Florian Weimer <fweimer@redhat.com>
5669
5670 * support/test-container.c: Include <libc-pointer-arith.h> for
5671 ALIGN_UP.
5672
5673 2018-11-01 Zong Li <zong@andestech.com>
5674
5675 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5676 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5677 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5678 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5679
5680 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5681 variable to avoid overlap arguments.
5682
5683 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5684
5685 * posix/bug-regex22.c (main): Use puts with distinct error
5686 messages for unexpected success of re_compile_pattern, not printf
5687 with NULL argument to %s.
5688
5689 * stdio-common/bug22.c: Include <libc-diag.h>.
5690 (do_test): Disable -Wformat-overflow= warnings around fprintf
5691 calls outputting more than INT_MAX characters.
5692 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5693 around printf call with NULL %s argument.
5694
5695 [BZ #23848]
5696 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5697 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5698 Undefine.
5699 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5700 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5701 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5702 (__ASSUME_SENDTO_SYSCALL): Likewise.
5703 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5704 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5705 [!__arch64__].
5706 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5707 (__ASSUME_CONNECT_SYSCALL): Likewise.
5708 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5709 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5710 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5711 Define.
5712 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5713 Likewise.
5714 [__LINUX_KERNEL_VERSION >= 0x040400]
5715 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5716 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5717 Remove.
5718 (listen): Likewise.
5719 (setsockopt): Likewise.
5720
5721 2018-11-01 Fredrik Noring <noring@nocrew.org>
5722
5723 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5724 with the ISA override.
5725
5726 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5727
5728 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5729 #endif.
5730
5731 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5732
5733 * manual/errno.texi (EIEIO): Document how translators should
5734 translate the error message.
5735 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5736 printing trailing whitespaces refused by git.
5737 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5738 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5739 * hurd/Makefile (user-interfaces): Add pci.
5740
5741 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5742
5743 * conform/linknamespace.py: New file.
5744 * conform/linknamespace.pl: Remove file.
5745 * conform/Makefile ($(linknamespace-header-tests)): Use
5746 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5747 option.
5748
5749 2018-10-30 Florian Weimer <fweimer@redhat.com>
5750
5751 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5752 memory leaks.
5753
5754 2018-10-30 Florian Weimer <fweimer@redhat.com>
5755
5756 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5757
5758 2018-10-30 Florian Weimer <fweimer@redhat.com>
5759
5760 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5761 support_blob_repeat.
5762
5763 2018-10-30 Florian Weimer <fweimer@redhat.com>
5764
5765 Avoid spurious test failures in stdlib/test-bz22786.
5766 * support/Makefile (libsupport-routines): Add blob_repeat.
5767 (tests): Add tst-support_blob_repeat.
5768 * support/blob_repeat.h: New file.
5769 * support/blob_repeat.c: Likewise.
5770 * support/tst-support_blob_repeat.c: Likewise.
5771 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5772 support_blob_repeat_allocate.
5773
5774 2018-10-30 Andreas Schwab <schwab@suse.de>
5775
5776 [BZ #23125]
5777 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5778 Don't use tail call.
5779 * elf/tst-unwind-main.c: New file.
5780 * elf/Makefile (tests): Add tst-unwind-main.
5781 (CFLAGS-tst-unwind-main.c): Define.
5782
5783 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5784
5785 [BZ #23791]
5786 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5787 n_cs_precedes to 0.
5788 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5789
5790 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5791
5792 * conform/glibcconform.py: Do not import shutil.
5793 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5794 of mkdtemp.
5795
5796 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5797 critic_missing for versions before 3.4.
5798 * configure: Regenerated.
5799 * manual/install.texi (Tools for Compilation): Document
5800 requirement for Python to build glibc.
5801 * INSTALL: Regenerated.
5802 * Rules [PYTHON]: Make code unconditional.
5803 * benchtests/Makefile [PYTHON]: Likewise.
5804 * conform/Makefile [PYTHON]: Likewise.
5805 * manual/Makefile [PYTHON]: Likewise.
5806 * math/Makefile [PYTHON]: Likewise.
5807
5808 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5809
5810 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5811 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5812 answer to interrupt_operation, return EIEIO instead of EINTR.
5813 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5814 _hurd_intr_rpc_msg_about_to global point to start of controlled
5815 assembly snippet. Make it check canceled flag.
5816 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5817 the _hurd_intr_rpc_msg_about_to point.
5818 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5819 issue, remove cancel flag check.
5820
5821 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5822
5823 * scripts/build-many-glibcs.py: Remove compatibility for missing
5824 os.cpu_count and re.fullmatch.
5825
5826 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5827
5828 [BZ #23822]
5829 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5830 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5831 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5832
5833 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5834
5835 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5836 macro.
5837
5838 2018-10-25 Florian Weimer <fweimer@redhat.com>
5839
5840 [BZ #23562]
5841 [BZ #23821]
5842 XFAIL siginfo_t si_band conform test on sparc64.
5843 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5844 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5845 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5846 (conformtest-xfail-conds): Add sparc64-linux.
5847 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5848 sparc64.
5849 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5850
5851 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5852
5853 * elf/elf.h (NT_MIPS_DSP): New macro.
5854 (NT_MIPS_FP_MODE): Likewise.
5855
5856 2018-10-25 Zong Li <zong@andestech.com>
5857
5858 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5859 name by adding the file extension (.so).
5860
5861 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5862
5863 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5864 (test-xfail-ISO11/threads.h/linknamespace,
5865 test-xfail-ISO11/threads.h/conform): Add.
5866
5867 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5868
5869 * math/gen-libm-test.py: Import os.
5870 (ALL_FLOATS_MANUAL): New constant.
5871 (ALL_FLOATS_SUFFIX): Likewise.
5872 (Ulps.all_functions): New function.
5873 (real_all_ulps): Likewise.
5874 (generate_err_table_sub): Likewise.
5875 (generate_err_table): Likewise.
5876 (main): Handle -s and -m options.
5877 * manual/libm-err-tab.pl: Remove.
5878 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5879 instead of libm-err-tab.pl.
5880 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5881 != no].
5882 * manual/install.texi (Tools for Compilation): Document
5883 requirement for Python to build manual.
5884 * INSTALL: Regenerated.
5885
5886 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5887
5888 * bits/time64.h: New file.
5889 * include/time.h: Replace internal_time_t with __time64_t.
5890 * posix/bits/types (__time64_t): Add.
5891 * stdlib/Makefile: Add bits/time64.h to includes.
5892 * time/tzfile.c: Replace internal_time_t with __time64_t.
5893
5894 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5895
5896 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5897 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5898 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5899 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5900 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5901 prototype.
5902 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5903 * posix/spawn_faction_addclose.c
5904 (__posix_spawn_file_actions_addclose): Add hidden definition.
5905 * posix/spawn_faction_adddup2.c
5906 (__posix_spawn_file_actions_adddup2): Likewise.
5907 * posix/spawn_faction_destroy.c
5908 (__posix_spawn_file_actions_destroy): Likewise.
5909 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5910 Likewise.
5911 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5912 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5913 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5914 Likewise.
5915 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5916 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5917 Likewise.
5918
5919 2018-10-24 Andreas Schwab <schwab@suse.de>
5920
5921 [BZ #18093]
5922 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5923 format cache.
5924 * elf/cache.c (print_cache): Likewise.
5925
5926 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5927
5928 * bits/timesize.h: New file.
5929 * stdlib/Makefile (headers): Add bits/timesize.h.
5930 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5931 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5932 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5933 (__SEM_PAD_AFTER_TIME): Likewise.
5934 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5935 (__SHM_PAD_AFTER_TIME): Likewise.
5936 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5937 (__MSQ_PAD_BEFORE_TIME): Likewise.
5938 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5939 (__SEM_PAD_BEFORE_TIME): Likewise.
5940 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5941 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5942 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5943 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5944 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5945 (__MSQ_PAD_BEFORE_TIME): Likewise.
5946 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5947 (__SEM_PAD_BEFORE_TIME): Likewise.
5948 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5949 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5950 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5951 (__MSQ_PAD_BEFORE_TIME): Likewise.
5952 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5953 (__SEM_PAD_BEFORE_TIME): Likewise.
5954 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5955 (__SHM_PAD_BEFORE_TIME): Likewise.
5956 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5957 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5958 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5959
5960 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5961
5962 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5963 USE_RDTSCP is defined.
5964 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5965 USE_RDTSCP is defined.
5966
5967 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5968
5969 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5970 defined.
5971
5972 [BZ #23709]
5973 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5974 independently of other flags.
5975
5976 2018-10-23 Florian Weimer <fweimer@redhat.com>
5977
5978 * time/tst-mktime2.c (N_STRINGS): Remove.
5979 (set_timezone): New function.
5980 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5981 (mktime_test1): Report localtime failure and check errno value.
5982 Use TEST_COMPARE.
5983 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5984 (do_test): Remove alarm call. Use set_timezone and array_length.
5985
5986 2018-10-23 Andreas Schwab <schwab@suse.de>
5987
5988 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5989 (__start_context): Use END instead of PSEUDO_END.
5990
5991 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5992
5993 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5994 version to 4.19.
5995
5996 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5997 version to 4.19.
5998
5999 [BZ #23793]
6000 * wcsmbs/c32rtomb.c: New file.
6001 * wcsmbs/mbrtoc32.c: Likewise.
6002 * wcsmbs/tst-c32-state.c: Likewise.
6003 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
6004 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
6005 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
6006 (tests): Add tst-c32-state.
6007 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
6008 $(gen-locales).
6009
6010 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
6011
6012 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
6013 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
6014
6015 2018-10-19 Joseph Myers <joseph@codesourcery.com>
6016
6017 [BZ #23794]
6018 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
6019 pair and return 0 in that case, and use saved character to
6020 interpret following character.
6021 * wcsmbs/tst-c16-surrogate.c: New file.
6022 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
6023 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
6024 Depend on $(gen-locales)
6025
6026 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
6027
6028 [BZ #23562]
6029 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
6030 (struct siginfo_t): Use correct type for si_band.
6031
6032 2018-10-19 Florian Weimer <fweimer@redhat.com>
6033
6034 [BZ #23689]
6035 * resource/bits/types/struct_rusage.h (struct rusage): Update
6036 comment on struct. Remove extraneous field comment.
6037
6038 2018-10-18 David S. Miller <davem@davemloft.net>
6039
6040 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
6041 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
6042 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
6043 sysdep_routines in subdir elf.
6044 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
6045 version for __vdso_clock_gettime.
6046 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
6047 Define.
6048 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
6049 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
6050
6051 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
6052
6053 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
6054
6055 * sysdeps/i386/init-arch.h: Removed.
6056 * sysdeps/i386/i586/init-arch.h: Likewise.
6057 * sysdeps/i386/i686/init-arch.h: Likewise.
6058 * sysdeps/i386/i686/hp-timing.h: Likewise.
6059 * sysdeps/x86_64/hp-timing.h: Likewise.
6060 * sysdeps/i386/isa.h: New file.
6061 * sysdeps/i386/i586/isa.h: Likewise.
6062 * sysdeps/i386/i686/isa.h: Likewise.
6063 * sysdeps/x86_64/isa.h: Likewise.
6064 * sysdeps/x86/hp-timing.h: New file.
6065 * sysdeps/x86/init-arch.h: Include <isa.h>.
6066
6067 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6068
6069 * math/libm-test-pow.inc (pow_test_data): Do not allow
6070 divide-by-zero exception for pow(+/- 0, -Inf).
6071
6072 2018-10-17 Zack Weinberg <zackw@panix.com>
6073
6074 * manual/job.texi (Job Control is Optional): Remove node, as
6075 job control has not been optional in quite some time.
6076 (Job Control): Mention briefly that systems older than
6077 POSIX.1-2001 might not support job control.
6078 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6079 defined on systems conforming to POSIX.1-2001.
6080
6081 2018-10-17 Arjun Shankar <arjun@redhat.com>
6082
6083 [BZ #22062]
6084 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6085 indentation.
6086 * (__gconv_read_conf): Mark function static.
6087 * (once): New static variable.
6088 * (__gconv_load_conf): New function.
6089 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6090 * iconv/gconv_db.c (once): Remove static variable.
6091 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6092 __gconv_read_conf.
6093 * (__gconv_find_transform): Likewise.
6094 * iconv/tst-iconv-mt.c: New test.
6095 * iconv/Makefile: Add tst-iconv_mt.
6096
6097 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6098
6099 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6100 bits/shm-pad.h.
6101 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6102 (shmatt_t): Define as __syscall_ulong_t.
6103 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6104 and [__SHM_PAD_AFTER_TIME].
6105 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6106 Define shm_segsz and associated padding based on
6107 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6108 Use __syscall_ulong_t instead of unsigned long int.
6109 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6110 unsigned long int.
6111 [__USE_MISC] (struct shm_info): Likewise.
6112 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6113 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6114 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6115 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6116 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6117 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6118 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6119 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6120 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6121 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6122 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6123
6124 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6125 bits/shmlba.h.
6126 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6127 (SHMLBA): Remove macro.
6128 (__getpagesize): Remove function declaration.
6129 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6130 <bits/shmlba.h>.
6131 (SHMLBA): Remove macro.
6132 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6133 <bits/shmlba.h>.
6134 (SHMLBA): Remove macro.
6135 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6136 <bits/shmlba.h>.
6137 (SHMLBA): Remove macro.
6138 (__getpagesize): Remove function declaration.
6139 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6140 <bits/shmlba.h>.
6141 (SHMLBA): Remove macro.
6142 (__getshmlba): Remove function declaration.
6143 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6144 (SHMLBA): Remove macro.
6145 (__getpagesize): Remove function declaration.
6146 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6147 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6148 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6149 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6150 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6151 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6152 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6153 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6154 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6155 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6156
6157 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6158
6159 [BZ #23275]
6160 * nptl/tst-mutex10.c: New File.
6161 * nptl/Makefile (tests): Add tst-mutex10.
6162 (tst-mutex10-ENV): New variable.
6163 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6164 Ensure that elision path is used if elision is available.
6165 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6166 Likewise.
6167 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6168 Likewise.
6169 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6170 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6171 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6172 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6173 Likewise.
6174 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6175 (__pthread_mutex_cond_lock_adjust): Likewise.
6176 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6177 Likewise.
6178 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6179 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6180 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6181 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6182 Add comments.
6183 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6184 Use atomic_load_relaxed and atomic_store_relaxed.
6185 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6186 Use atomic_store_relaxed.
6187
6188 2018-10-17 Andreas Schwab <schwab@suse.de>
6189
6190 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6191 * crypt/badsalttest.c (TIMEOUT): Likewise.
6192 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6193 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6194 * io/test-lfs.c (TIMEOUT): Likewise.
6195 * libio/tst-atime.c (TIMEOUT): Likewise.
6196 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6197 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6198 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6199 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6200 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6201 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6202 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6203 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6204 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6205 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6206 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6207 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6208 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6209 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6210 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6211 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6212 * nptl/tst-once2.c (TIMEOUT): Likewise.
6213 * nptl/tst-once3.c (TIMEOUT): Likewise.
6214 * nptl/tst-once4.c (TIMEOUT): Likewise.
6215 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6216 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6217 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6218 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6219 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6220 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6221 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6222 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6223 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6224 * posix/tst-chmod.c (TIMEOUT): Likewise.
6225 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6226 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6227 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6228 * posix/tst-regex2.c (TIMEOUT): Likewise.
6229 * posix/tst-waitid.c (TIMEOUT): Likewise.
6230 * rt/tst-aio.c (TIMEOUT): Likewise.
6231 * rt/tst-aio10.c (TIMEOUT): Likewise.
6232 * rt/tst-aio4.c (TIMEOUT): Likewise.
6233 * rt/tst-aio5.c (TIMEOUT): Likewise.
6234 * rt/tst-aio6.c (TIMEOUT): Likewise.
6235 * rt/tst-aio64.c (TIMEOUT): Likewise.
6236 * rt/tst-aio7.c (TIMEOUT): Likewise.
6237 * rt/tst-aio9.c (TIMEOUT): Likewise.
6238 * rt/tst-clock.c (TIMEOUT): Likewise.
6239 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6240 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6241 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6242 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6243 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6244 * rt/tst-timer4.c (TIMEOUT): Likewise.
6245 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6246 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6247 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6248 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6249 * time/tst-ftime.c (TIMEOUT): Likewise.
6250 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6251
6252 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6253
6254 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6255 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6256 for thunderX2.
6257
6258 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6259
6260 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6261 bits/sem-pad.h.
6262 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6263 instead of <bits/wordsize.h>.
6264 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6265 and [__SEM_PAD_AFTER_TIME].
6266 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6267 __syscall_ulong_t instead of unsigned long int.
6268 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6269 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6270 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6271 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6272 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6273 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6274 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6275 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6276 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6277 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6278 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6279
6280 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6281
6282 regex: simplify by using intprops.h
6283 [BZ#23744]
6284 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6285 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6286 intprops.h defines them.
6287
6288 regex: __builtin_expect → __glibc_unlikely
6289 [BZ#23744]
6290 This refactoring was prompted by a problem when the regex code is
6291 used as part of Gnulib and when the builder’s compiler does not grok
6292 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6293 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6294 Although this refactoring does not fix the problem directly,
6295 we might as well have Gawk use the now-preferred glibc style for when
6296 __builtin_expect is unavailable.
6297 * posix/regex_internal.h (BE): Remove.
6298 All uses replaced by __glibc_unlikely or __glibc_likely.
6299
6300 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6301
6302 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6303 bits/msq-pad.h.
6304 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6305 instead of <bits/wordsize.h>.
6306 (msgqnum_t): Define as __syscall_ulong_t.
6307 (msglen_t): Likewise.
6308 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6309 and [__MSQ_PAD_AFTER_TIME].
6310 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6311 __syscall_ulong_t instead of unsigned long int.
6312 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6313 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6314 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6315 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6316 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6317 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6318 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6319 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6320 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6321 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6322 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6323
6324 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6325
6326 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6327 (struct shmid_ds): Condition padding after time fields on
6328 [__WORDSIZE == 32].
6329 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6330 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6331 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6332
6333 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6334 (struct semid_ds): Condition padding after time fields on
6335 [__WORDSIZE == 32].
6336 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6337 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6338 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6339 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6340
6341 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6342 (struct msqid_ds): Condition padding after time fields on
6343 [__WORDSIZE == 32].
6344 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6345 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6346 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6347 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6348
6349 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6350
6351 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6352
6353 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6354
6355 * libio/tst-readline.c (TIMEOUT): Define.
6356
6357 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6358
6359 mktime fix for Gnulib + coreutils
6360 [BZ#23745]
6361 This fix affects only Gnulib. Problem discovered when
6362 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6363 * time/mktime.c:
6364 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6365 Do not define since it is not used. Defining an unused static
6366 function prompts a warning from GCC when Coreutils is configured
6367 with --enable-gcc-warnings.
6368
6369 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6370
6371 * benchtests/scripts/compare_bench.py (main): set float type on
6372 threshold argument.
6373
6374 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6375
6376 [BZ #23740]
6377 * localedata/locales/kl_GL (mon): Update, the relative case.
6378 (alt_mon): Add, fill with month names in the nominative case.
6379 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6380 (d_fmt): Set to "%b %d %Y".
6381
6382 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6383
6384 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6385 <bits/mman-linux.h>.
6386 (PROT_READ): Don't define here.
6387 (PROT_WRITE): Likewise.
6388 (PROT_EXEC): Likewise.
6389 (PROT_NONE): Likewise.
6390 (PROT_GROWSDOWN): Likewise.
6391 (PROT_GROWSUP): Likewise.
6392 (MAP_SHARED): Likewise.
6393 (MAP_PRIVATE): Likewise.
6394 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6395 [__USE_MISC] (MAP_FILE): Likewise.
6396 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6397 [__USE_MISC] (MAP_ANON): Likewise.
6398 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6399 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6400 (MCL_CURRENT): Likewise.
6401 (MCL_FUTURE): Likewise.
6402 (MCL_ONFAULT): Likewise.
6403 [__USE_MISC] (MADV_NORMAL): Likewise.
6404 [__USE_MISC] (MADV_RANDOM): Likewise.
6405 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6406 [__USE_MISC] (MADV_WILLNEED): Likewise.
6407 [__USE_MISC] (MADV_DONTNEED): Likewise.
6408 [__USE_MISC] (MADV_FREE): Likewise.
6409 [__USE_MISC] (MADV_REMOVE): Likewise.
6410 [__USE_MISC] (MADV_DONTFORK): Likewise.
6411 [__USE_MISC] (MADV_DOFORK): Likewise.
6412 [__USE_MISC] (MADV_HWPOISON): Likewise.
6413 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6414 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6415 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6416 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6417 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6418 (__MAP_ANONYMOUS): New macro.
6419 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6420 <bits/mman-linux.h> inclusion.
6421 (MAP_FIXED): Likewise.
6422 (MS_SYNC): Likewise.
6423 (MS_ASYNC): Likewise.
6424 (MS_INVALIDATE): Likewise.
6425 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6426 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6427 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6428 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6429 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6430 [__USE_MISC] (MADV_DODUMP): Likewise.
6431 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6432 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6433
6434 [BZ #23735]
6435 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6436 Define.
6437 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6438 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6439 Add test-nldbl-redirect.
6440 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6441 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6442 $(objpfx)libnldbl_nonshared.a.
6443
6444 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6445
6446 * support/support.h (support_objdir_elf_ldso): New variable.
6447 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6448 * support/Makefile (CFLAGS-support_paths.c): Add definition
6449 for OBJDIR_ELF_LDSO_PATH.
6450 * support/test-container.c (main): Search for the ld.so
6451 which is also used by the testsuite.
6452
6453 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6454
6455 [BZ #20209]
6456 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6457 should be "sap" rather than "sab".
6458 (day): Fix spelling of Sunday, should be "sapaat" rather than
6459 "sabaat".
6460
6461 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6462
6463 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6464
6465 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6466
6467 [BZ #19444]
6468 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6469 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6470 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6471
6472 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6473
6474 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6475
6476 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6477
6478 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6479 Add -mrtm.
6480 (CFLAGS-elision-unlock.c): Likewise.
6481 (CFLAGS-elision-timed.c): Likewise.
6482 (CFLAGS-elision-trylock.c): Likewise.
6483 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6484
6485 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6486
6487 [BZ #21037]
6488 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6489 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6490 new fd_to_filename interface.
6491 * libio/freopen64.c (freopen64): Likewise.
6492 * libio/tst-memstream.h: New file.
6493 * libio/tst-memstream4.c: Likewise.
6494 * libio/tst-wmemstream4.c: Likewise.
6495 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6496 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6497 and remove internal dynamic allocation.
6498
6499 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6500
6501 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6502 (MREMAP_MAYMOVE): Do not define here.
6503 [__USE_GNU] (MREMAP_FIXED): Likewise.
6504 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6505 (MREMAP_MAYMOVE): Define here instead.
6506 [__USE_GNU] (MREMAP_FIXED): Likewise.
6507 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6508 (MREMAP_MAYMOVE): Remove.
6509 [__USE_GNU] (MREMAP_FIXED): Likewise.
6510
6511 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6512
6513 * math/fromfp.h: Do not include <math_private.h>.
6514 * math/s_cacosh_template.c: Likewise.
6515 * math/s_casin_template.c: Likewise.
6516 * math/s_casinh_template.c: Likewise.
6517 * math/s_ccos_template.c: Likewise.
6518 * math/s_cproj_template.c: Likewise.
6519 * math/s_fdim_template.c: Likewise.
6520 * math/s_fmaxmag_template.c: Likewise.
6521 * math/s_fminmag_template.c: Likewise.
6522 * math/s_iseqsig_template.c: Likewise.
6523 * math/s_ldexp_template.c: Likewise.
6524 * math/s_nextdown_template.c: Likewise.
6525 * math/w_log1p_template.c: Likewise.
6526 * math/w_scalbln_template.c: Likewise.
6527 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6528 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6529 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6530 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6531 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6532 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6533 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6534 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6535 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6536 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6537 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6538 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6539 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6540 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6541 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6542 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6543 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6544 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6545 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6546 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6547 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6548 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6549 * sysdeps/ieee754/k_standardf.c: Likewise.
6550 * sysdeps/ieee754/k_standardl.c: Likewise.
6551 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6552 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6553 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6554 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6555 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6556 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6557 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6558 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6559 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6560 * sysdeps/ieee754/s_signgam.c: Likewise.
6561 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6562 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6563 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6564 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6565 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6566 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6567 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6568 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6569 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6570 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6571 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6572 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6573 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6574 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6575 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6576 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6577 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6578 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6579 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6580 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6581 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6582 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6583 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6584 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6585 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6586 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6587 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6588 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6589 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6590 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6591 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6592 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6593 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6594 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6595 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6596 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6597 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6598 <math_private.h>.
6599 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6600
6601 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6602
6603 [BZ #23716]
6604 * sysdeps/i386/dl-cet.c: Removed.
6605 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6606 prototype.
6607 (_dl_runtime_profile_shstk): Likewise.
6608 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6609 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6610
6611 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6612
6613 [BZ #23579]
6614 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6615 do_test_with_invalid_iov): New tests.
6616 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6617 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6618 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6619 errno is ENOSYS.
6620 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6621 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6622 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6623
6624 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6625
6626 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6627 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6628 (MATH_REDIRECT_BINARY_ARGS): New macro.
6629 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6630 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6631 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6632 header inclusion.
6633 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6634 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6635 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6636 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6637 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6638 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6639 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6640 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6641 Likewise.
6642 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6643 Likewise.
6644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6646 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6647 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6648 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6649 Likewise.
6650 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6651 Likewise.
6652 * sysdeps/generic/math_private_calls.h
6653 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6654 Do not declare and define as an inline function.
6655 * math/divtc3.c (__divtc3): Use copysign functions instead of
6656 __copysign variants.
6657 * math/multc3.c (__multc3): Likewise.
6658 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6659 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6660 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6661 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6662 Likewise.
6663 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6664 (__ieee754_yn): Likewise.
6665 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6666 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6667 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6668 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6669 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6670 (__sin): Likewise.
6671 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6672 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6673 Likewise.
6674 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6675 Likewise.
6676 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6677 Likewise.
6678 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6679 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6680 Likewise.
6681 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6682 (__ieee754_ynf): Likewise.
6683 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6684 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6685 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6686 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6687 Likewise.
6688 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6689 (__ieee754_ynl): Likewise.
6690 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6691 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6692 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6693 Likewise.
6694 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6695 (__ieee754_ynl): Likewise.
6696 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6697 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6698 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6699 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6700 Likewise.
6701 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6702 (__ieee754_ynl)
6703 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6704 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6705 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6706 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6707 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6708
6709 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6710 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6711 using MATH_REDIRECT.
6712 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6713 header inclusion.
6714 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6715 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6716 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6717 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6718 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6719 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6720 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6721 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6722 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6723 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6725 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6726 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6727 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6728 (round): Redirect to __round.
6729 (__roundl): Call round instead of __round.
6730 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6731 Remove macro.
6732 [_ARCH_PWR5X] (__roundf): Likewise.
6733 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6734 functions instead of __round variants.
6735 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6736 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6737 Likewise.
6738 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6739 Likewise.
6740 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6741 Likewise.
6742 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6743 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6744 __lroundl.
6745 (__ieee754_expl): Call roundl instead of __roundl.
6746
6747 2018-09-27 Andreas Schwab <schwab@suse.de>
6748
6749 [BZ #23717]
6750 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6751 (do_test): Make st1 static.
6752
6753 2018-09-26 Andreas Schwab <schwab@suse.de>
6754
6755 [BZ #23707]
6756 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6757 * elf/Makefile (tests): Add tst-unwind-ctor.
6758 (modules-names): Add tst-unwind-ctor-lib.
6759 ($(objpfx)tst-unwind-ctor): Depend on
6760 $(objpfx)tst-unwind-ctor-lib.so.
6761
6762 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6763
6764 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6765 file. Most contents moved from ....
6766 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6767 and include <bits/mman-map-flags-generic.h>.
6768 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6769 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6770 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6771 <bits/mman-map-flags-generic.h>.
6772 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6773 macros defined in <bits/mman-map-flags-generic.h>.
6774 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6775 <bits/mman-map-flags-generic.h>.
6776 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6777 defined in <bits/mman-map-flags-generic.h>.
6778
6779 2018-09-26 Andreas Schwab <schwab@suse.de>
6780
6781 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6782 output.
6783
6784 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6785 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6786 Fangrui Song <maskray@google.com>
6787
6788 [BZ #20480]
6789 * config.make.in (have-textrel_ifunc): New define.
6790 * configure.ac: Add check if linker supports textrel relocation with
6791 ifunc.
6792 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6793 tst-ifunc-textrel.
6794 (CFLAGS-tst-ifunc-textrel.c): New rule.
6795 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6796 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6797 * elf/tst-ifunc-textrel.c: New file.
6798
6799 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6800
6801 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6802 <bits/procfs-prregset.h>.
6803 (prgregset_t): Define using __prgregset_t.
6804 (prfpregset_t): Define using __prfpregset_t.
6805 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6806 (sysdep_headers): Add bits/procfs-prregset.h.
6807 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6808 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6809 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6810 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6811
6812 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6813 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6814 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6815 pr_uid and pr_gid.
6816 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6817 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6818 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6819 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6820 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6821 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6822 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6823 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6824 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6825 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6826 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6827 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6828 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6829 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6830 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6831 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6832 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6833 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6834 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6835 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6836 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6837 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6838 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6839 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6840
6841 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6842 AArch64 version. Include <bits/procfs.h>.
6843 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6844 (sysdep_headers): Add bits/procfs.h.
6845 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6846 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6847 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6848 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6849 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6850 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6851 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6852 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6853 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6854 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6855 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6856 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6857 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6858 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6859 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6860 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6861 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6862
6863 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6864
6865 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6866 Use libsupport.
6867
6868 2018-09-25 Arjun Shankar <arjun@redhat.com>
6869
6870 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6871 (__gconv_max_path_elem_len): Likewise.
6872 (__gconv_nmodules): Likewise.
6873 (__gconv_get_path): Likewise.
6874 (path_elem): Move to ...
6875 * iconv/gconv_conf.c: ... here.
6876 (__gconv_get_path): Mark function static.
6877 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6878 * iconv/gconv_open.c: ... here.
6879
6880 2018-09-24 Andreas Schwab <schwab@suse.de>
6881
6882 * scripts/haveversions.awk: New file.
6883 * Makerules ($(common-objpfx)Versions.def)
6884 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6885 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6886 Move rules ...
6887 * Makeconfig ($(common-objpfx)Versions.def)
6888 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6889 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6890 ... here.
6891 ($(common-objpfx)Versions.mk): New rule. Include it.
6892 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6893 Emit error if build-obsolete-nsl = yes.
6894 * manual/install.texi (Configuring and compiling): Describe
6895 --enable-obsolete-nsl as unavaiable after version 2.28.
6896 * INSTALL: Regenerate.
6897
6898 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6899
6900 * NEWS: Add note about new TLE support on powerpc64le.
6901 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6902 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6903 __ununsed1.
6904 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6905 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6906 * sysdeps/powerpc/powerpc32/sysdep.h,
6907 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6908 ABORT_TRANSACTION): Remove macros.
6909 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6910 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6911 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6912 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6913 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6914 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6915 usage.
6916 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6917
6918 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6919
6920 [BZ #10425]
6921 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6922 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6923 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6924 which is the same as in it_IT.
6925 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6926 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6927
6928 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6929
6930 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6931 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6932 using MATH_REDIRECT.
6933 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6934 header inclusion.
6935 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6936 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6937 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6938 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6939 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6940 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6941 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6942 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6943 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6944 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6945 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6946 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6947 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6948 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6949 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6950 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6951 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6952 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6953 (ceil): Redirect to __ceil.
6954 (floor): Redirect to __floor.
6955 (trunc): Redirect to __trunc.
6956 (__truncl): Call trunc instead of __trunc.
6957 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6958 Remove macro.
6959 [_ARCH_PWR5X] (__truncf): Likewise.
6960 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6961 trunc functions instead of __trunc variants.
6962 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6963 Likewise.
6964 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6965 Likewise.
6966 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6967 Likewise.
6968 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6969 Likewise.
6970
6971 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6972 [__i586__ || __pentium__].
6973 [__i486__]: Handle explicitly.
6974 (HAS_CPUID): Define to 1 if above macros are undefined.
6975 (HAS_I586): Likewise.
6976 (HAS_I686): Likewise.
6977
6978 2018-09-20 Florian Weimer <fweimer@redhat.com>
6979
6980 * misc/tst-gethostid.c: New file.
6981 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6982 (tst-gethostid): Link with -ldl.
6983
6984 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6985
6986 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6987 value from gethostbyname_r.
6988
6989 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6990
6991 * stdlib/tst-setcontext9.c (f1): Rename to...
6992 (f1a): ... this.
6993 (f1b): New function implementing lower half of f1 in alternate stack.
6994
6995 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6996
6997 Fix mktime localtime offset confusion
6998 [BZ #23603]
6999 * include/time.h (__mktime_internal): The localtime offset is now
7000 of type long int instead of time_t. This is the longstanding type
7001 in glibc, and it is more than enough to represent difference
7002 between localtime and gmtime even if it is 32 bits and time_t is
7003 64. Changing it now will let us avoid an unnecessary change when
7004 time_t is widened to 64 bits on 32-bit platforms.
7005 * time/mktime-internal.h (mktime_offset_t): Now long int.
7006
7007 Merge mktime, timegm from upstream Gnulib
7008 [BZ #23603][BZ #16346]
7009 This fixes some obscure problems with integer overflow.
7010 Although it looks scary, it is almost all a byte-for-byte copy
7011 from Gnulib, and the Gnulib code has been tested reasonably well.
7012 * include/intprops.h: New file, copied from Gnulib.
7013 * include/verify.h, time/mktime-internal.h:
7014 New tiny files, simplified from Gnulib.
7015 * time/mktime.c: Copy from Gnulib. This has the following changes:
7016 Do not include config.h if DEBUG_MKTIME is nonzero.
7017 Include stdbool.h, intprops.h, verify.h.
7018 Include string.h only if needed.
7019 Include stdlib.h on MS-Windows.
7020 Include mktime-internal.h.
7021 (DEBUG_MKTIME): Default to 0, and simplify later uses.
7022 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
7023 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
7024 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
7025 simplify later conditionals; default the others to zero. Use
7026 these conditionals to express only the code needed on the current
7027 platform. In uses of these conditionals, explicitly spell out how
7028 _LIBC affects things, so it’s easier to review from a glibc
7029 viewpoint.
7030 (WRAPV): Remove; no longer needed now that we have
7031 systematic overflow checking.
7032 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
7033 compartmentalize tzset issues. Move system-dependent tzsettish
7034 code here from mktime.
7035 (verify): Remove; now done by verify.h. All uses changed.
7036 (long_int): Use a more-conservative definition, to avoid
7037 integer overflow.
7038 (SHR): Remove, replacing with ...
7039 (shr): New function, which means we needn’t worry about side
7040 effects in args, and conversion analysis is simpler.
7041 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
7042 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
7043 (time_t_avg, time_t_add_ok): Remove.
7044 (mktime_min, mktime_max): New constants.
7045 (leapyear, isdst_differ): Use bool for booleans.
7046 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
7047 Use long_int, not time_t, for mktime differences.
7048 (long_int_avg): New function, replacing time_t_avg.
7049 INT_ADD_WRAPV replaces time_t_add_ok.
7050 (guess_time_tm): 6th arg is now long_int, not time_t const *.
7051 All uses changed.
7052 (convert_time): New function.
7053 (ranged_convert): Use it.
7054 (__mktime_internal): Last arg now points to mktime_offset_t, not
7055 time_t. All uses changed. This is a no-op on glibc, where
7056 mktime_offset_t is always time_t. Use int, not time_t, for UTC
7057 offset guess. Directly check for integer overflow instead of
7058 using a heuristic that works only 99.9...% of the time.
7059 Access *OFFSET only once, to avoid an unlikely race if the
7060 compiler delays a load and if this cascades into a signed integer
7061 overflow.
7062 (mktime): Move tzsettish code to my_tzset, and move
7063 localtime_offset to within mktime so that it doesn’t
7064 need a separate ifdef.
7065 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
7066 instead of localtime.
7067 * time/timegm.c: Copy from Gnulib. This has the following changes:
7068 Include mktime-internal.h.
7069 [!_LIBC]: Include config.h and time.h. Do not include
7070 timegm.h or time_r.h. Make __mktime_internal a macro,
7071 and include mktime-internal.h to get its declaration.
7072 (timegm): Temporary is now mktime_offset_t, not time_t.
7073 This affects only Gnulib.
7074
7075 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7076
7077 [BZ #23637]
7078 * string/test-strstr.c (pr23637): New function.
7079 (test_main): Add tests with longer needles.
7080 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7081 * string/strstr.c (AVAILABLE): Likewise.
7082
7083 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7084
7085 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7086
7087 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7088
7089 * NEWS: Mention pow improvements.
7090 * math/Makefile (type-double-routines): Add e_pow_log_data.
7091 * sysdeps/generic/math_private.h (__exp1): Remove.
7092 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7093 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7094 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7095 contraction.
7096 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7097 (exp_inline): Remove.
7098 (__ieee754_exp): Only single double input is handled.
7099 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7100 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7101 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7102 (__pow_log_data): Define.
7103 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7104 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7105 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7106 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7107 contraction.
7108 (CFLAGS-e_pow-fma4.c): Likewise.
7109
7110 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7111
7112 Simplify tzfile fstat failure code
7113 [BZ #21716]
7114 * time/tzfile.c (__tzfile_read): Simplify slightly.
7115
7116 Fix tzfile low-memory assertion failure
7117 [BZ #21716]
7118 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7119 when registering time zone abbreviations.
7120
7121 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7122
7123 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7124 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7125 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7126 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7127 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7128 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7129 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7130 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7131 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7132
7133 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7134 __ceil.
7135 (__ceill): Call ceil instead of __ceil.
7136 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7137 __floor.
7138 (__floorl): Call floor instead of __floor.
7139
7140 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7141
7142 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7143 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7144 using MATH_REDIRECT.
7145 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7146 header inclusion.
7147 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7148 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7149 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7150 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7151 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7152 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7153 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7154 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7155 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7156 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7157 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7158 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7159 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7160 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7161 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7162 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7163 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7164 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7165 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7166 Remove macro.
7167 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7168 functions instead of __ceil variants.
7169 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7170 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7171 Likewise.
7172 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7173 Likewise.
7174 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7175 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7176 Likewise.
7177 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7178 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7179
7180 [BZ #21286]
7181 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7182 constant.
7183 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7184 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7185 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7186 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7187 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7188 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7189 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7190 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7191 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7192 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7193 (ILL_BADIADDR): Remove constant.
7194 (TRAP_BRANCH): Likewise.
7195 (TRAP_HWBKPT): Likewise.
7196
7197 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7198
7199 [BZ #23656]
7200 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7201 Remove [_MIPS_SIM = _ABIN32] conditional case.
7202 (struct elf_prpsinfo): Likewise.
7203
7204 [BZ #23649]
7205 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7206 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7207 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7208 Likewise.
7209 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7210 elf_prpsinfo): Likewise.
7211 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7212 elf_prpsinfo): Likewise.
7213 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7214 Likewise.
7215
7216 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7217 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7218 using MATH_REDIRECT.
7219 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7220 header inclusion.
7221 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7222 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7223 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7224 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7225 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7226 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7227 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7228 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7229 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7230 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7231 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7232 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7233 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7234 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7235 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7236 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7237 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7238 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7239 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7240 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7241 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7242 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7243 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7244 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7245 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7246 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7247 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7248 __rint variants.
7249 * math/e_scalbf.c (invalid_fn): Likewise.
7250 * math/e_scalbl.c (invalid_fn): Likewise.
7251 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7252 Likewise.
7253 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7254 Likewise.
7255 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7256 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7257 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7258 Likewise.
7259 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7260 Likewise.
7261 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7262 Likewise.
7263 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7264 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7265
7266 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7267 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7268 New macro.
7269 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7270 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7271 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7272 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7273 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7274 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7275 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7276 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7277 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7278 && !NO_MATH_REDIRECT] (floor): Likewise.
7279 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7280 header inclusion.
7281 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7282 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7283 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7284 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7285 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7286 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7287 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7288 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7289 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7291 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7292 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7293 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7294 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7295 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7296 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7297 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7298 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7299 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7300 Remove macro.
7301 [_ARCH_PWR5X] (__floorf): Likewise.
7302 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7303 inline function.
7304 [__SSE4_1__] (__floorf): Likewise.
7305 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7306 instead of __floor variants.
7307 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7308 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7309 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7310 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7311 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7312 * math/w_tgamma_compat.c (__tgamma): Likewise.
7313 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7314 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7315 * math/w_tgammal_compat.c (__tgammal): Likewise.
7316 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7317 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7318 Likewise.
7319 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7320 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7321 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7322 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7323 Likewise.
7324 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7325 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7326 Likewise.
7327 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7328 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7329 Likewise.
7330 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7331 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7332 Likewise.
7333 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7334 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7335 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7336 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7337 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7338 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7339
7340 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7341
7342 * elf/Makefile (modules-names-tests): New variable.
7343
7344 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7345
7346 * NEWS: Mention log2 improvements.
7347 * math/Makefile (type-double-routines): Add e_log2_data.
7348 * sysdeps/i386/fpu/e_log2_data.c: New file.
7349 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7350 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7351 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7352 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7353 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7354 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7355
7356 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7357
7358 * NEWS: Mention log improvement.
7359 * math/Makefile (type-double-routines): Add e_log_data.
7360 * sysdeps/i386/fpu/e_log_data.c: New file.
7361 * sysdeps/ia64/fpu/e_log_data.c: New file.
7362 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7363 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7364 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7365 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7366 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7367 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7368
7369 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7370 Xuepeng Guo <xuepeng.guo@intel.com>
7371
7372 [BZ #23606]
7373 * sysdeps/i386/start.S: Include <sysdep.h>
7374 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7375 enabled. Add cfi_undefined (eip).
7376
7377 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7378
7379 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7380 (MOVQ): Likewise.
7381 (EXTRACT_WORDS64): Likewise.
7382 (INSERT_WORDS64): Likewise.
7383 (GET_FLOAT_WORD): Likewise.
7384 (SET_FLOAT_WORD): Likewise.
7385
7386 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7387 argument.
7388 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7389 build, but not for second build if --full-gcc. Use
7390 --enable-languages=all for second build if --full-gcc.
7391 (get_parser): Add --full-gcc option.
7392 (main): Update call to Context.
7393
7394 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7395
7396 [BZ #10797]
7397 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7398 Single Quotation Mark).
7399 (thousands_sep): Likewise.
7400 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7401 * localedata/locales/it_IT (thousands_sep): Use ".".
7402 (grouping): Use "3;3".
7403
7404 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7405
7406 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7407 x86_64 and i686 configs using --enable-obsolete-rpc
7408 --enable-obsolete-nsl.
7409
7410 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7411
7412 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7413
7414 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7415
7416 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7417 Increment size of new_argv by one.
7418
7419 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7420
7421 [BZ #17426]
7422 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7423 * localedata/locales/ar_IN (d_fmt): Likewise.
7424 * localedata/locales/bhb_IN (d_fmt): Likewise.
7425 * localedata/locales/bho_IN (d_fmt): Likewise.
7426 * localedata/locales/bn_BD (d_fmt): Likewise.
7427 * localedata/locales/bn_IN (d_fmt): Likewise.
7428 * localedata/locales/doi_IN (d_fmt): Likewise.
7429 * localedata/locales/gu_IN (d_fmt): Likewise.
7430 * localedata/locales/hi_IN (d_fmt): Likewise.
7431 * localedata/locales/hne_IN (d_fmt): Likewise.
7432 * localedata/locales/kn_IN (d_fmt): Likewise.
7433 * localedata/locales/mag_IN (d_fmt): Likewise.
7434 * localedata/locales/mai_IN (d_fmt): Likewise.
7435 * localedata/locales/mjw_IN (d_fmt): Likewise.
7436 * localedata/locales/ml_IN (d_fmt): Likewise.
7437 * localedata/locales/mni_IN (d_fmt): Likewise.
7438 * localedata/locales/mr_IN (d_fmt): Likewise.
7439 * localedata/locales/pa_IN (d_fmt): Likewise.
7440 * localedata/locales/raj_IN (d_fmt): Likewise.
7441 * localedata/locales/sat_IN (d_fmt): Likewise.
7442 * localedata/locales/sd_IN (d_fmt): Likewise.
7443 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7444 * localedata/locales/ta_IN (d_fmt): Likewise.
7445 * localedata/locales/ta_LK (d_fmt): Likewise.
7446 * localedata/locales/tcy_IN (d_fmt): Likewise.
7447 * localedata/locales/ur_IN (d_fmt): Likewise.
7448
7449 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7450 * localedata/locales/ks_IN (d_fmt): Likewise.
7451 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7452
7453 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7454 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7455 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7456 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7457
7458 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7459
7460 * NEWS: Mention exp and exp2 improvements.
7461 * math/Makefile (libm-support): Remove t_exp.
7462 (type-double-routines): Add math_err and e_exp_data.
7463 * sysdeps/aarch64/libm-test-ulps: Update.
7464 * sysdeps/arm/libm-test-ulps: Update.
7465 * sysdeps/i386/fpu/e_exp_data.c: New file.
7466 * sysdeps/i386/fpu/math_err.c: New file.
7467 * sysdeps/i386/fpu/t_exp.c: Remove.
7468 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7469 * sysdeps/ia64/fpu/math_err.c: New file.
7470 * sysdeps/ia64/fpu/t_exp.c: Remove.
7471 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7472 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7473 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7474 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7475 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7476 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7477 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7478 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7479 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7480 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7481 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7482 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7483 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7484 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7485 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7486 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7487
7488 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7489
7490 * sysdeps/alpha/fpu/math_private.h: Remove.
7491
7492 * sysdeps/generic/math_private.h
7493 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7494 Move this inline function ....
7495 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7496 * include/math.h [!_ISOMAC]: To here....
7497
7498 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7499
7500 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7501 code ....
7502 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7503 * include/fenv.h [!_ISOMAC]: ... to here.
7504 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7505 (feraiseexcept): Likewise.
7506 * math/fromfp.h: Do not include <fenv_private.h>.
7507 * math/s_cexp_template.c: Likewise.
7508 * math/s_csin_template.c: Likewise.
7509 * math/s_csinh_template.c: Likewise.
7510 * math/s_ctan_template.c: Likewise.
7511 * math/s_ctanh_template.c: Likewise.
7512 * math/s_iseqsig_template.c: Likewise.
7513 * math/w_acos_compat.c: Likewise.
7514 * math/w_acosf_compat.c: Likewise.
7515 * math/w_acosl_compat.c: Likewise.
7516 * math/w_asin_compat.c: Likewise.
7517 * math/w_asinf_compat.c: Likewise.
7518 * math/w_asinl_compat.c: Likewise.
7519 * math/w_j0_compat.c: Likewise.
7520 * math/w_j0f_compat.c: Likewise.
7521 * math/w_j0l_compat.c: Likewise.
7522 * math/w_j1_compat.c: Likewise.
7523 * math/w_j1f_compat.c: Likewise.
7524 * math/w_j1l_compat.c: Likewise.
7525 * math/w_jn_compat.c: Likewise.
7526 * math/w_jnf_compat.c: Likewise.
7527 * math/w_log10_compat.c: Likewise.
7528 * math/w_log10f_compat.c: Likewise.
7529 * math/w_log10l_compat.c: Likewise.
7530 * math/w_log2_compat.c: Likewise.
7531 * math/w_log2f_compat.c: Likewise.
7532 * math/w_log2l_compat.c: Likewise.
7533 * math/w_log_compat.c: Likewise.
7534 * math/w_logf_compat.c: Likewise.
7535 * math/w_logl_compat.c: Likewise.
7536 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7537 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7538 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7539 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7540 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7541 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7542 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7543 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7544 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7545 * sysdeps/ieee754/k_standardl.c: Likewise.
7546 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7547 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7548 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7549 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7550 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7551 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7552 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7553 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7554 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7555 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7556 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7557 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7558 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7559 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7560 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7561 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7562 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7563 * math/w_ilogb_template.c: Include <fenv.h> instead of
7564 <fenv_private.h>.
7565 * math/w_llogb_template.c: Likewise.
7566 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7567 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7568
7569 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7570
7571 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7572 * math/fromfp.h: Include <fenv_private.h>.
7573 * math/math-narrow.h: Likewise.
7574 * math/s_cexp_template.c: Likewise.
7575 * math/s_csin_template.c: Likewise.
7576 * math/s_csinh_template.c: Likewise.
7577 * math/s_ctan_template.c: Likewise.
7578 * math/s_ctanh_template.c: Likewise.
7579 * math/s_iseqsig_template.c: Likewise.
7580 * math/w_acos_compat.c: Likewise.
7581 * math/w_acosf_compat.c: Likewise.
7582 * math/w_acosl_compat.c: Likewise.
7583 * math/w_asin_compat.c: Likewise.
7584 * math/w_asinf_compat.c: Likewise.
7585 * math/w_asinl_compat.c: Likewise.
7586 * math/w_ilogb_template.c: Likewise.
7587 * math/w_j0_compat.c: Likewise.
7588 * math/w_j0f_compat.c: Likewise.
7589 * math/w_j0l_compat.c: Likewise.
7590 * math/w_j1_compat.c: Likewise.
7591 * math/w_j1f_compat.c: Likewise.
7592 * math/w_j1l_compat.c: Likewise.
7593 * math/w_jn_compat.c: Likewise.
7594 * math/w_jnf_compat.c: Likewise.
7595 * math/w_llogb_template.c: Likewise.
7596 * math/w_log10_compat.c: Likewise.
7597 * math/w_log10f_compat.c: Likewise.
7598 * math/w_log10l_compat.c: Likewise.
7599 * math/w_log2_compat.c: Likewise.
7600 * math/w_log2f_compat.c: Likewise.
7601 * math/w_log2l_compat.c: Likewise.
7602 * math/w_log_compat.c: Likewise.
7603 * math/w_logf_compat.c: Likewise.
7604 * math/w_logl_compat.c: Likewise.
7605 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7606 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7607 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7608 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7609 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7610 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7611 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7612 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7613 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7614 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7615 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7616 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7617 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7618 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7619 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7620 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7621 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7622 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7623 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7624 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7625 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7626 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7627 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7628 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7629 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7630 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7631 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7632 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7633 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7634 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7635 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7636 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7637 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7638 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7639 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7640 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7641 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7642 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7643 * sysdeps/ieee754/k_standardl.c: Likewise.
7644 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7645 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7646 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7647 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7648 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7649 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7650 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7651 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7652 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7653 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7654 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7655 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7656 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7657 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7658 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7659 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7660 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7661 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7662 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7663 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7664 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7665 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7666 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7667 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7668 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7669 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7670 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7671 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7672 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7673 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7674 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7675 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7676 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7677 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7678 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7679 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7680 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7681 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7682 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7683 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7684 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7685 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7686 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7687 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7688 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7689 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7690 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7691 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7692 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7693 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7694 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7695 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7696 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7697 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7698 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7699 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7700 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7701 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7702 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7703 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7704 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7705 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7706 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7707 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7708 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7709 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7710 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7711 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7712 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7713 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7714 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7715
7716 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7717
7718 [BZ #20271]
7719 * include/stdio.h (__libc_fatal): Mention newline in comment.
7720 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7721 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7722 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7723 * nss/nsswitch.c (__nss_next2): Likewise.
7724 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7725 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7726 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7727 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7728 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7729 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7730 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7731 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7732 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7733 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7734 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7735 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7736 (__netlink_assert_response): Likewise.
7737
7738 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7739
7740 * conform/glibcconform.py: New file.
7741 * conform/list-header-symbols.py: Likewise.
7742 * conform/list-header-symbols.pl: Remove.
7743 * conform/Makefile (tests-special): Only add linknamespace tests
7744 if [PYTHON].
7745 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7746
7747 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7748
7749 [BZ #23597]
7750 * support/Makefile (libsupport-routines): Add
7751 support_copy_file_range and xcopy_file_range.
7752 * support/support.h: Include <sys/types.h>.
7753 (support_copy_file_range): New prototype.
7754 * support/support_copy_file_range.c: New file. Copied and
7755 modified from io/copy_file_range-compat.c.
7756 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7757 instead of copy_file_range.
7758 * support/xcopy_file_range.c: New file.
7759 * support/xunistd.h (xcopy_file_range): New prototype.
7760
7761 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7762
7763 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7764 xpthread_create and xpthread_join.
7765
7766 2018-08-30 Florian Weimer <fweimer@redhat.com>
7767
7768 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7769
7770 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7771
7772 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7773 if malloc fails.
7774
7775 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7776
7777 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7778 and minus_oflow as non-finite.
7779
7780 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7781
7782 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7783 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7784 moved to fenv_private.h except for ...
7785 (TOINT_INTRINSICS): Kept in math_private.h.
7786 (roundtoint): Likewise.
7787 (converttoint): Likewise.
7788 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7789 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7790 * sysdeps/arm/math_private.h: Remove.
7791 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7792 ....
7793 * sysdeps/generic/math_private.h: ... this file. Include
7794 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7795 Include <fenv_private.h>. Remove functions and macros moved to
7796 fenv_private.h.
7797 * sysdeps/i386/fpu/math_private.h: Remove.
7798 * sysdeps/mips/math_private.h: Move to ....
7799 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7800 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7801 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7802 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7803 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7804 * sysdeps/powerpc/fpu/math_private.h: Do not include
7805 <fenv_private.h>.
7806 * sysdeps/riscv/rvf/math_private.h: Move to ....
7807 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7808 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7809 <fenv_private.h>.
7810 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7811 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7812 * sysdeps/sparc/fpu/math_private.h: Remove.
7813 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7814 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7815 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7816 <fenv_private.h>.
7817 * sysdeps/x86_64/fpu/math_private.h: Do not include
7818 <sysdeps/i386/fpu/fenv_private.h>.
7819
7820 2018-08-28 Florian Weimer <fweimer@redhat.com>
7821
7822 [BZ #23578]
7823 * posix/tst-regcomp-truncated.c: New file.
7824 * posix/Makefile (tests): Add it.
7825 (tst-regcomp-truncated.out): Depend on generated locales.
7826
7827 2018-08-28 Florian Weimer <fweimer@redhat.com>
7828
7829 * support/test-container.c (main): Treat unshare failure with
7830 EPERM as an unsupported test.
7831
7832 2018-08-28 Florian Weimer <fweimer@redhat.com>
7833
7834 [BZ #23520]
7835 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7836 * nscd/netgroupcache.c
7837 (addgetnetgrentX): Add tofreep parameter. Do not free
7838 heap-allocated buffer.
7839 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7840 (addgetnetgrentX_ignore): New function.
7841 (addgetnetgrent): Call it.
7842 (readdgetnetgrent): Likewise.
7843
7844 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7845
7846 * string/memmem.c: Use memcmp for first match.
7847
7848 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7849
7850 [BZ #17426]
7851 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7852
7853 2018-08-27 DJ Delorie <dj@redhat.com>
7854
7855 * support/Makefile (others): Don't list programs explicitly as a
7856 dependency of "others".
7857
7858 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7859
7860 * sysdeps/generic/math-tests-trap-force.h: New file.
7861 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7862 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7863 * sysdeps/powerpc/math-tests.h: Remove file.
7864 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7865
7866 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7867 Torvald Riegel <triegel@redhat.com>
7868
7869 [BZ #23538]
7870 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7871 Update r to include the set wake-request flag if waiters are
7872 remaining after spinning.
7873
7874 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7875
7876 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7877
7878 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7879
7880 [BZ #23578]
7881 regex: fix uninitialized memory access
7882 I introduced this bug into gnulib in commit
7883 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7884 eventually it was merged into glibc. The bug was found by
7885 project-repo <bugs@feusi.co> and reported here:
7886 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7887 Diagnosis and draft fix reported by Assaf Gordon here:
7888 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7889 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7890 * posix/regex_internal.c (build_wcs_upper_buffer):
7891 Fix bug when mbrtowc returns 0.
7892
7893 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7894
7895 * po/be.po: Update translation.
7896
7897 2018-08-24 DJ Delorie <dj@delorie.com>
7898
7899 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7900 $(libunwind).
7901
7902 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7903
7904 [BZ #23400]
7905 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7906 create temporary files in source tree.
7907
7908 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7909
7910 * sysdeps/generic/math-tests-trap.h: New file.
7911 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7912 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7913 * sysdeps/aarch64/math-tests.h: Remove file.
7914 * sysdeps/arm/math-tests.h: Likewise.
7915 * sysdeps/riscv/math-tests.h: Likewise.
7916 * sysdeps/aarch64/math-tests-trap.h: New file.
7917 * sysdeps/arm/math-tests-trap.h: Likewise.
7918 * sysdeps/riscv/math-tests-trap.h: Likewise.
7919
7920 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7921
7922 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7923 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7924 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7925 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7926 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7927 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7928 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7929 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7930 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7931 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7932 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7933 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7934 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7935 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7936 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7937 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7938 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7939 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7940
7941 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7942
7943 * sysdeps/generic/math-tests-exceptions.h: New file.
7944 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7945 (EXCEPTION_TESTS_float): Do not define here.
7946 (EXCEPTION_TESTS_double): Likewise.
7947 (EXCEPTION_TESTS_long_double): Likewise.
7948 (EXCEPTION_TESTS_float128): Likewise.
7949 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7950 Likewise.
7951 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7952 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7953 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7954 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7955 * sysdeps/mips/math-tests.h: Likewise.
7956 * sysdeps/nios2/math-tests.h: Likewise.
7957 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7958 (EXCEPTION_TESTS_float): Do not define here.
7959 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7960 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7961 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7962
7963 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7964
7965 * NEWS: Move optimized sinf entry to 2.29.
7966
7967 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7968
7969 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7970
7971 2018-08-22 DJ Delorie <dj@redhat.com>
7972
7973 * Makefile (testroot.pristine): New rules to initialize the
7974 test-in-container "testroot".
7975 * Makerules (all-testsuite): Add tests-container.
7976 * Rules (tests-expected): Add tests-container.
7977 (binaries-all-tests): Likewise.
7978 (tests-container): New, run these tests in the testroot container.
7979 * support/Makefile (others): Add *-container, support_paths.c,
7980 xmkdirp, and links-dso-program.
7981 * support/links-dso-program-c.c: New.
7982 * support/links-dso-program.cc: New.
7983 * support/test-container.c: New.
7984 * support/shell-container.c: New.
7985 * support/echo-container.c: New.
7986 * support/true-container.c: New.
7987 * support/xmkdirp.c: New.
7988 * support/xsymlink.c: New.
7989 * support/support_paths.c: New.
7990 * support/support.h: Add support paths prototypes.
7991 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7992
7993 * nss/tst-nss-test3.c: Convert to test-in-container.
7994 * nss/tst-nss-test3.root/: New.
7995
7996 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7997
7998 regex: port Gnulib code to z/OS POSIX environment
7999 Problem reported by Arnold Robbins in:
8000 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
8001 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
8002 Undef.
8003
8004 2018-08-22 Joseph Myers <joseph@codesourcery.com>
8005
8006 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
8007 (ROUNDING_TESTS_double): Remove.
8008 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
8009 (ROUNDING_TESTS_double): Remove.
8010 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
8011 (ROUNDING_TESTS_double): Remove.
8012 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
8013 (ROUNDING_TESTS_float): Remove.
8014 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
8015 (ROUNDING_TESTS_float): Remove.
8016 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
8017 (ROUNDING_TESTS_float): Remove.
8018 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
8019 !TEST_MATHVEC here.
8020 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
8021 (IF_ROUND_INIT_FE_UPWARD): Likewise.
8022
8023 * sysdeps/generic/math-tests-rounding.h: New file.
8024 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
8025 (ROUNDING_TESTS_float): Do not define here.
8026 (ROUNDING_TESTS_double): Likewise.
8027 (ROUNDING_TESTS_long_double): Likewise.
8028 (ROUNDING_TESTS_float128): Likewise.
8029 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
8030 (ROUNDING_TESTS_double): Undefine before defining.
8031 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
8032 (ROUNDING_TESTS_double): Undefine before defining.
8033 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
8034 (ROUNDING_TESTS_double): Undefine before defining.
8035 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
8036 (ROUNDING_TESTS_float): Undefine before defining.
8037 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
8038 (ROUNDING_TESTS_float): Undefine before defining.
8039 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
8040 (ROUNDING_TESTS_float): Undefine before defining.
8041 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
8042 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
8043 not define here.
8044 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
8045 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
8046 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
8047 * sysdeps/riscv/math-tests.h [!__riscv_flen]
8048 (ROUNDING_TESTS_float): Do not define here.
8049 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
8050 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
8051 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
8052 (ROUNDING_TESTS_float): Likewise.
8053 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
8054 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
8055 * sysdeps/mips/math-tests.h [__mips_soft_float]
8056 (ROUNDING_TESTS_float): Likewise.
8057 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
8058 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
8059 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
8060 (ROUNDING_TESTS_double): Likewise.
8061 (ROUNDING_TESTS_long_double): Likewise.
8062
8063 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
8064
8065 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
8066 (PF_XDP): New macro.
8067 (AF_XDP): New macro.
8068 (SOL_XDP): New macro.
8069
8070 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8071
8072 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8073 (TCP_INQ): Likewise.
8074 (TCP_CM_INQ): Likewise.
8075 (TCP_REPAIR_ON): Likewise.
8076 (TCP_REPAIR_OFF): Likewise.
8077 (TCP_REPAIR_OFF_NO_WP): Likewise.
8078 (struct tcp_zerocopy_receive): New type.
8079
8080 2018-08-21 Florian Weimer <fweimer@redhat.com>
8081
8082 * support/support.h (support_descriptor_supports_holes): Declare.
8083 * support/Makefile (libsupport-routines): Add
8084 support_descriptor_supports_holes.
8085 * support/support_descriptor_supports_holes.c: New file.
8086 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8087 and stop testing if holes are not supported.
8088 * io/test-lfs.c (do_prepare): Likewise.
8089 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8090 Likewise.
8091 * timezone/tst-tzset.c (create_tz_file): Likewise.
8092 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8093 variable.
8094 (do_prepare): Set it.
8095 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8096
8097 2018-08-21 Florian Weimer <fweimer@redhat.com>
8098
8099 [BZ #17248]
8100 * Makeconfig (+cflags): Do not sort (and deduplicate).
8101
8102 2018-08-21 Florian Weimer <fweimer@redhat.com>
8103
8104 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8105 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8106
8107 2018-08-20 Florian Weimer <fweimer@redhat.com>
8108
8109 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8110 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8111
8112 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8113
8114 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8115 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8116 and ssi_arch members.
8117
8118 * elf/elf.c (NT_VMCOREDD): New macro.
8119 (AT_MINSIGSTKSZ): Likewise.
8120
8121 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8122
8123 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8124 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8125 s_cosf-ppc64 and s_cosf-power8.
8126 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8127 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8128 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8129 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8130 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8131 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8132 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8133 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8134 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8135 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8136 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8137 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8138
8139 2018-08-17 Florian Weimer <fweimer@redhat.com>
8140
8141 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8142
8143 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8144
8145 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8146
8147 2018-08-16 Florian Weimer <fweimer@redhat.com>
8148
8149 * configure.ac: Add --with-nonshared-cflags option.
8150 * config.make.in (extra-nonshared-cflags): Set variable.
8151 * Makeconfig (CFLAGS-.oS): Use it.
8152 * manual/install.texi (Configuring and compiling): Document
8153 --with-nonshared-cflags.
8154 * configure: Regenerate.
8155 * INSTALL: Likewise.
8156
8157 2018-08-16 Florian Weimer <fweimer@redhat.com>
8158
8159 * Makeconfig (ASFLAGS): Always append required assembler flags.
8160
8161 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8162
8163 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8164 (malloc_consolidate): Likewise.
8165
8166 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8167
8168 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8169
8170 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8171
8172 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8173 every strlen call.
8174
8175 * benchtests/bench-strlen.c: Print performance numbers in json.
8176
8177 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8178
8179 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8180 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8181 only for little endian.
8182 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8183 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8184 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8185 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8186 Add check for little endian.
8187 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8188 (__strcmp_power9): Add check for little endian.
8189 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8190 Add check for little endian.
8191 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8192 (__strncmp_power9): Add check for little endian.
8193 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8194 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8195 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8196 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8197 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8198
8199 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8200
8201 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8202 [!STRLEN](STRLEN): Set to __strlen.
8203 * sysdeps/aarch64/multiarch/strlen.c: New file.
8204 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8205 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8206 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8207 (__libc_ifunc_impl_list): Add strlen.
8208 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8209 strlen_generic and strlen_asimd.
8210
8211 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8212
8213 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8214 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8215 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8216
8217 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8218
8219 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8220
8221 2018-08-14 Florian Weimer <fweimer@redhat.com>
8222
8223 [BZ #23519]
8224 * include/stdio.h (__vfxprintf): Declare.
8225 * stdio-common/fxprintf.c (__vfxprintf): New function.
8226 (__fxprintf): Call it.
8227 * misc/err.c (convert_and_print): Remove function.
8228 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8229 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8230 * misc/Makefile (tests): Add tst-warn-wide.
8231 * misc/tst-warn-wide.c: New file.
8232
8233 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8234 Szabolcs Nagy <szabolcs.nagy@arm.com>
8235
8236 * NEWS: Mention sinf, cosf, sincosf.
8237 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8238 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8239 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8240 constants rather than including generic sincosf.h.
8241 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8242 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8243 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8244 (reduced_cos): Remove.
8245 (sinf_poly): New function.
8246 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8247
8248 2018-08-14 Florian Weimer <fweimer@redhat.com>
8249
8250 [BZ #23521]
8251 [BZ #23522]
8252 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8253 processing, bail out if no room, and close the stream before
8254 returning ERANGE.
8255 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8256 (tst-nss-files-alias-leak): Link with libdl.
8257 (tst-nss-files-alias-leak.out): Depend on nss_files.
8258
8259 * nss/tst-nss-files-alias-leak.c: New file.
8260
8261 2018-08-14 Florian Weimer <fweimer@redhat.com>
8262
8263 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8264 server_user, stat_user.
8265
8266 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8267
8268 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8269 version to 4.18.
8270 (io_pgetevents): New syscall.
8271 (rseq): Likewise.
8272
8273 * manual/install.texi (Configuring and compiling): Do not list
8274 tools used for testing pretty printers here.
8275 (Tools for Compilation): List Python, PExpect and GDB here.
8276 Update descriptions of uses of Perl and Python.
8277 * INSTALL: Regenerate.
8278
8279 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8280 version to 4.18.
8281
8282 2018-08-13 Florian Weimer <fweimer@redhat.com>
8283
8284 * misc/error.c (error): Add missing va_end call.
8285 (error_at_line): Likewise.
8286
8287 2018-08-13 Florian Weimer <fweimer@redhat.com>
8288
8289 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8290
8291 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8292
8293 * benchtests/scripts/benchout.schema.json (properties): Add
8294 new properties.
8295
8296 * benchtests/bench-skeleton.c (main): Add duration and
8297 iterations attributes.
8298
8299 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8300
8301 regex: Gnulib unibyte RRI uses bytes not chars
8302 Adjust the non-glibc code to agree with what Gawk needs for
8303 rational range interpretation (RRI) for regular expression ranges.
8304 In unibyte locales, Gawk wants ranges to use the underlying byte
8305 rather than the character code point. This change does not affect
8306 glibc proper.
8307 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8308 In unibyte locales, use the byte value rather than
8309 running it through btowc.
8310
8311 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8312
8313 * sysdeps/generic/math-tests-snan.h: New file.
8314 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8315 (SNAN_TESTS_float): Do not define here.
8316 (SNAN_TESTS_double): Likewise.
8317 (SNAN_TESTS_long_double): Likewise.
8318 (SNAN_TESTS_float128): Likewise.
8319 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8320 * sysdeps/i386/fpu/math-tests.h: Remove file.
8321 * sysdeps/ia64/math-tests-snan.h: New file.
8322 * sysdeps/ia64/math-tests.h: Remove file.
8323 * sysdeps/x86/math-tests.h: Likewise.
8324 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8325
8326 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8327 Szabolcs Nagy <szabolcs.nagy@arm.com>
8328
8329 * math/Makefile: Add s_sincosf_data.c.
8330 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8331 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8332 (sincosf_poly): Likewise.
8333 (reduce_small): Likewise.
8334 (reduce_large): Likewise.
8335 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8336 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8337 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8338 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8339
8340 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8341 Szabolcs Nagy <szabolcs.nagy@arm.com>
8342
8343 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8344 (converttoint): Use lround.
8345 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8346 document the semantics when TOINT_INTRINSICS is set.
8347 (converttoint): Likewise.
8348 (TOINT_RINT): Remove.
8349 (TOINT_SHIFT): Remove.
8350 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8351 path.
8352
8353 2018-08-10 Florian Weimer <fweimer@redhat.com>
8354
8355 [BZ #23497]
8356 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8357 function.
8358 (__old_getdents64): Use getdents64. Convert entries without
8359 moving them.
8360 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8361 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8362 tst-readdir64-compat.
8363
8364 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8365
8366 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8367 Fix unwind.
8368
8369 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8370
8371 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8372 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8373 code to s390x-mcount.h and #include it.
8374 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8375 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8376 (__fentry__): Add.
8377
8378 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8379
8380 * stdlib/Versions: Remove __fentry__.
8381 * sysdeps/i386/Versions: Add __fentry__.
8382 * sysdeps/x86_64/Versions: Add __fentry__.
8383
8384 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8385
8386 * sysdeps/s390/Makefile: Register the new tests.
8387 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8388 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8389 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8390 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8391 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8392 * sysdeps/s390/tst-dl-runtime.c: New file.
8393
8394 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8395
8396 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8397 Do not clobber R0.
8398
8399 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8400
8401 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8402 Do not clobber R0.
8403
8404 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8405
8406 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8407 Do not clobber R0.
8408
8409 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8410
8411 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8412 Do not clobber R0.
8413
8414 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8415
8416 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8417 Use symbolic offsets for stack variables.
8418
8419 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8420
8421 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8422 Use symbolic offsets for stack variables.
8423
8424 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8425
8426 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8427 Use symbolic offsets for stack variables.
8428
8429 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8430
8431 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8432 Use symbolic offsets for stack variables.
8433
8434 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8435
8436 * math/gen-libm-test.py: New file.
8437 * math/gen-libm-test.pl: Remove.
8438 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8439 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8440 gen-libm-test.pl.
8441 ($(libm-test-c-noauto-obj)): Likewise.
8442 ($(libm-test-c-auto-obj)): Likewise.
8443 ($(libm-test-c-narrow-obj)): Likewise.
8444 (regen-ulps): Likewise.
8445 * math/README.libm-test: Update references to gen-libm-test.pl.
8446 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8447 referencing gen-libm-test.pl.
8448 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8449 * math/libm-test-support.c: Likewise.
8450 * math/libm-test-support.h: Likewise.
8451 * sysdeps/generic/libm-test-ulps: Likewise.
8452
8453 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8454
8455 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8456 Fix value.
8457
8458 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8459
8460 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8461 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8462
8463 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8464
8465 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8466 symbols.
8467 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8468 __pthread_setspecific): Add hidden proto.
8469 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8470 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8471
8472 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8473
8474 * benchtests/bench-string.h (buf1_size, buf2_size): New
8475 variables.
8476 (init_sizes): New function.
8477 (test_init): Use it.
8478 (alloc_buf, exit_error): New functions.
8479 (alloc_bufs): Use ALLOC_BUF.
8480 (realloc_bufs): Remove.
8481 * benchtests/bench-memcmp.c (do_test): Adjust.
8482 * benchtests/bench-memset-large.c (do_test): Likewise.
8483 * benchtests/bench-memset-walk.c (do_test): Likewise.
8484 * benchtests/bench-memset.c (do_test): Likewise.
8485 * benchtests/bench-strncmp.c (do_test): Likewise.
8486
8487 2018-08-06 Andreas Schwab <schwab@suse.de>
8488
8489 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8490 of CONST_THREAD_AREA.
8491
8492 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8493
8494 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8495 (STATE_SAVE_MASK): Likewise.
8496 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8497 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8498 (STATE_SAVE_MASK): Likewise.
8499 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8500 instead of <cpu-features.h>.
8501
8502 2018-08-03 DJ Delorie <dj@redhat.com>
8503
8504 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8505 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8506
8507 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8508
8509 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8510
8511 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8512 after TEST_* calls.
8513 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8514 * math/libm-test-logb.inc (logb_test_data): Likewise.
8515
8516 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8517
8518 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8519 * string/strstr.c (AVAILABLE): Likewise.
8520
8521 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8522
8523 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8524 <init-arch.h>.
8525 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8526 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8527 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8528
8529 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8530
8531 * po/be.po: Update translation.
8532
8533 * po/be.po: Update translation.
8534
8535 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8536
8537 * sysdeps/x86/cpu-features-offsets.sym
8538 (rtld_global_ro_offsetof): Removed.
8539 (CPU_FEATURES_SIZE): Likewise.
8540 (CPUID_OFFSET): Likewise.
8541 (CPUID_SIZE): Likewise.
8542 (CPUID_EAX_OFFSET): Likewise.
8543 (CPUID_EBX_OFFSET): Likewise.
8544 (CPUID_ECX_OFFSET): Likewise.
8545 (CPUID_EDX_OFFSET): Likewise.
8546 (FAMILY_OFFSET): Likewise.
8547 (MODEL_OFFSET): Likewise.
8548 (FEATURE_OFFSET): Likewise.
8549 (FEATURE_SIZ): Likewise.
8550 (COMMON_CPUID_INDEX_1): Likewise.
8551 (COMMON_CPUID_INDEX_7): Likewise.
8552 (FEATURE_INDEX_1): Likewise.
8553 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8554
8555 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8556
8557 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8558 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8559 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8560 (install-locales): Depend on install-locale-archive.
8561 (install-locale-archive): Define.
8562 (install-locale-files): Define.
8563 (build-one-locale): Define macro.
8564 * manual/install.texi (Running make install): Document.
8565 * manual/INSTALL: Regenerate.
8566
8567 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8568
8569 * benchtests/scripts/compare_strings.py: Import traceback.
8570 (parse_file): Pretty-print error.
8571
8572 * NEWS: Mention the change.
8573 * elf/dl-tunables.list: Rename tune namespace to cpu.
8574 * sysdeps/powerpc/dl-tunables.list: Likewise.
8575 * sysdeps/x86/dl-tunables.list: Likewise.
8576 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8577 cpu.name.
8578 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8579 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8580 * manual/README.tunables: Likewise.
8581 * manual/tunables.texi: Likewise.
8582 * sysdeps/powerpc/cpu-features.c: Likewise.
8583 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8584 (init_cpu_features): Likewise.
8585 * sysdeps/x86/cpu-features.c: Likewise.
8586 * sysdeps/x86/cpu-features.h: Likewise.
8587 * sysdeps/x86/cpu-tunables.c: Likewise.
8588 * sysdeps/x86_64/Makefile: Likewise.
8589 * sysdeps/x86/dl-cet.c: Likewise.
8590
8591 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8592
8593 [BZ #23479]
8594 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8595 [__mips_hard_float].
8596 (FE_UNDERFLOW): Likewise.
8597 (FE_OVERFLOW): Likewise.
8598 (FE_DIVBYZERO): Likewise.
8599 (FE_INVALID): Likewise.
8600 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8601 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8602 (FE_UPWARD): Likewise.
8603 (FE_DOWNWARD): Likewise.
8604 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8605 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8606 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8607 [__mips_hard_float].
8608 (FP_ROUNDMODE): Likewise.
8609 (FP_RND_NEAREST): Likewise.
8610 (FP_RND_ZERO): Likewise.
8611 (FP_RND_PINF): Likewise.
8612 (FP_RND_MINF): Likewise.
8613 (FP_EX_INVALID): Likewise.
8614 (FP_EX_OVERFLOW): Likewise.
8615 (FP_EX_UNDERFLOW): Likewise.
8616 (FP_EX_DIVZERO): Likewise.
8617 (FP_EX_INEXACT): Likewise.
8618 (FP_INIT_ROUNDMODE): Likewise.
8619 * sysdeps/mips/nofpu/fesetenv.c: New file.
8620 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8621
8622 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8623
8624 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8625 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8626 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8627 conditional on [FE_UPWARD].
8628
8629 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8630
8631 regex: fix memory leak in Gnulib
8632 Problem and fix reported by Assaf Gordon in:
8633 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8634 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8635 range_ends members too, as they are defined in 'struct
8636 re_charset_t' even if not _LIBC. This affects only Gnulib.
8637
8638 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8639
8640 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8641 ...
8642 (get_common_indices): This.
8643 (init_cpu_features): Updated.
8644
8645 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8646
8647 * sysdeps/generic/math-tests-snan-payload.h: New file.
8648 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8649 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8650 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8651 * sysdeps/generic/math-tests.h: Include
8652 <math-tests-snan-payload.h>.
8653 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8654 * sysdeps/hppa/math-tests.h: Remove file.
8655 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8656 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8657 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8658 Likewise.
8659
8660 * sysdeps/generic/math-tests-snan-cast.h: New file.
8661 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8662 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8663 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8664 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8665
8666 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8667
8668 * version.h (RELEASE): Set to "development".
8669 (VERSION): Set to "2.28.9000".
8670 * NEWS (2.29): New section.
8671
8672 * version.h (RELEASE): Set to "stable".
8673 (VERSION): Set to "2.28".
8674 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8675 * NEWS: Add the list of bugs fixed in 2.28.
8676
8677 * po/ca.po: Update to latest version.
8678 * po/cs.po: Likewise
8679 * po/da.po: Likewise
8680 * po/el.po: Likewise
8681 * po/eo.po: Likewise
8682 * po/es.po: Likewise
8683 * po/fi.po: Likewise
8684 * po/fr.po: Likewise
8685 * po/gl.po: Likewise
8686 * po/hu.po: Likewise
8687 * po/ia.po: Likewise
8688 * po/id.po: Likewise
8689 * po/it.po: Likewise
8690 * po/ja.po: Likewise
8691 * po/ko.po: Likewise
8692 * po/lt.po: Likewise
8693 * po/nb.po: Likewise
8694 * po/nl.po: Likewise
8695 * po/pt_BR.po: Likewise
8696 * po/ru.po: Likewise
8697 * po/rw.po: Likewise
8698 * po/sk.po: Likewise
8699 * po/sl.po: Likewise
8700 * po/tr.po: Likewise
8701 * po/zh_CN.po: Likewise
8702 * po/zh_TW.po: Likewise
8703
8704 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8705
8706 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8707 initialization...
8708 (init): ... before initializing libpthread.
8709
8710 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8711 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8712 (__mach_setup_tls): ... new function.
8713 (mach_setup_tls): New alias.
8714 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8715 __mach_setup_thread.
8716 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8717 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8718 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8719 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8720
8721 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8722
8723 * manual/install.texi: Update versions.
8724 * INSTALL: Regenerate.
8725
8726 * manual/contrib.texi (Contributors): Update contributions.
8727
8728 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8729
8730 * po/be.po: Update translations.
8731
8732 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8733
8734 * sysdeps/sh/libm-test-ulps: Update.
8735
8736 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8737
8738 * po/bg.po: Update translations.
8739 * po/de.po: Likewise.
8740 * po/hr.po: Likewise.
8741 * po/pt_BR.po: Likewise.
8742 * po/sv.po: Likewise.
8743 * po/vi.po: Likewise.
8744
8745 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 [BZ #23467]
8748 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8749 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8750 (CFLAGS-tst-cet-property-1.o): New.
8751 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8752 ($(objpfx)tst-cet-property-2): Likewise.
8753 ($(objpfx)tst-cet-property-2.out): Likewise.
8754 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8755 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8756 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8757 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8758 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8759
8760 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 [BZ #23458]
8763 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8764
8765 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8766
8767 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8768 __sbrk): Do not set attribute_hidden.
8769 * sysdeps/mach/hurd/not-errno.h: New file.
8770 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8771 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8772
8773 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8774
8775 * po/uk.po: Update translations.
8776 * po/cs.po: Likewise.
8777 * po/pl.po: Likewise.
8778
8779 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8780
8781 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8782 parse beyond the note end.
8783
8784 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8785
8786 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8787 kernel does not support OFD locks.
8788 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8789
8790 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8791
8792 * sysdeps/mach/hurd/Versions (libc): Make __access and
8793 __access_noerrno external so they can override the ld symbols.
8794 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8795 __writev, __open64, __access_noerrno extern so they can be overrided.
8796 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8797 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8798
8799 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8800
8801 * po/libc.pot: Regenerate.
8802
8803 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8804
8805 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8806
8807 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8808
8809 [BZ #23459]
8810 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8811 function.
8812 (init_cpu_features): Call get_extended_indices for both Intel
8813 and AMD CPUs.
8814 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8815 Remove "for AMD" comment.
8816
8817 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8818
8819 [BZ # 23456]
8820 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8821 COMMON_CPUID_INDEX_80000001.
8822
8823 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8824
8825 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8826 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8827
8828 2018-07-26 Florian Weimer <fweimer@redhat.com>
8829
8830 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8831 aliases for symbols not in the implementation namespace.
8832
8833 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8834
8835 [BZ #23393]
8836 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8837 lowercase in LATIN script.
8838 * localedata/Makefile (test-input): Add en_US.UTF-8.
8839 * localedata/en_US.UTF-8.in: New file.
8840 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8841 and restore old tests.
8842 * posix/tst-regexloc.c (do_test): Add back range expression test.
8843
8844 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8845
8846 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8847
8848 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8849
8850 * nptl/threads.h: Move to ...
8851 * sysdeps/nptl/threads.h: ... here.
8852 * sysdeps/hurd/stdc-predef.h: New file.
8853
8854 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8855
8856 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8857 tst-cet-setcontext-1 if CET is enabled.
8858 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8859 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8860
8861 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8862
8863 * include/threads.h: Move to ...
8864 * sysdeps/nptl/threads.h: ... here.
8865 * sysdeps/htl/threads.h: New file.
8866 * conform/Makefile (linknamespace-libs-ISO11): Use
8867 static-thread-library instead of linking libpthread.
8868 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8869
8870 2018-07-25 Florian Weimer <fweimer@redhat.com>
8871
8872 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8873 nanoseconds into seconds.
8874 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8875 (do_test): Likewise.
8876 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8877 (do_test): Likewise. Avoid nanosecond overflow and spurious
8878 timeouts due to system load.
8879 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8880 (child_wait): Increment it.
8881 (do_test): Wait as long as necessary until all expected threads
8882 have arrived.
8883
8884 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8885 H.J. Lu <hongjiu.lu@intel.com>
8886
8887 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8888 __ssp.
8889 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8890 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8891 (__push___start_context): New.
8892 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8893 <asm/prctl.h>.
8894 (__getcontext): Record the current shadow stack base. Save the
8895 caller's shadow stack pointer and base.
8896 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8897 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8898 (__push___start_context): New prototype.
8899 (__makecontext): Call __push___start_context to allocate a new
8900 shadow stack, push __start_context onto the new stack as well
8901 as the new shadow stack.
8902 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8903 <asm/prctl.h>.
8904 (__setcontext): Restore the target shadow stack.
8905 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8906 <asm/prctl.h>.
8907 (__swapcontext): Record the current shadow stack base. Save
8908 the caller's shadow stack pointer and base. Restore the target
8909 shadow stack.
8910 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8911 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8912 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8913
8914 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8915
8916 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8917 tst-setcontext8 and tst-setcontext9.
8918 * stdlib/tst-setcontext6.c: New file.
8919 * stdlib/tst-setcontext7.c: Likewise.
8920 * stdlib/tst-setcontext8.c: Likewise.
8921 * stdlib/tst-setcontext9.c: Likewise.
8922
8923 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8924
8925 * stdlib/Makefile ((tests): Add tst-setcontext5.
8926 * stdlib/tst-setcontext5.c: New file.
8927
8928 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8929
8930 * stdlib/Makefile (tests): Add tst-setcontext4.
8931 * stdlib/tst-setcontext4.c: New file.
8932
8933 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8934
8935 * stdlib/Makefile (tests): Add tst-swapcontext1.
8936 * stdlib/tst-swapcontext1.c: New test.
8937
8938 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8939
8940 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8941 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8942 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8943 and tst-cet-legacy-4c.
8944 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8945 and tst-cet-legacy-mod-4.
8946 (CFLAGS-tst-cet-legacy-2.c): New.
8947 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8948 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8949 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8950 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8951 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8952 ($(objpfx)tst-cet-legacy-1): Likewise.
8953 ($(objpfx)tst-cet-legacy-2): Likewise.
8954 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8955 ($(objpfx)tst-cet-legacy-2a): Likewise.
8956 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8957 ($(objpfx)tst-cet-legacy-4): Likewise.
8958 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8959 ($(objpfx)tst-cet-legacy-4a): Likewise.
8960 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8961 (tst-cet-legacy-4a-ENV): Likewise.
8962 ($(objpfx)tst-cet-legacy-4b): Likewise.
8963 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8964 (tst-cet-legacy-4b-ENV): Likewise.
8965 ($(objpfx)tst-cet-legacy-4c): Likewise.
8966 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8967 (tst-cet-legacy-4c-ENV): Likewise.
8968 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8969 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8970 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8971 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8972 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8973 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8974 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8975 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8976 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8977 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8978 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8979
8980 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8981
8982 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8983 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8984 with ssp_base.
8985 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8986 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8987 with ssp_base.
8988
8989 2018-07-25 Andreas Schwab <schwab@suse.de>
8990
8991 [BZ #23442]
8992 * locale/weightwc.h (findidx): Handle the case where usrc is a
8993 prefix of cp but one character too short.
8994
8995 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8996
8997 * NEWS: Add ISO C threads addition.
8998
8999 2018-07-24 Florian Weimer <fweimer@redhat.com>
9000
9001 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9002 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
9003 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
9004 4.13.
9005
9006 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9007
9008 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
9009 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
9010 <sys/prctl.h> and <asm/prctl.h>.
9011 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
9012 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
9013 and <asm/prctl.h>.
9014 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
9015 ARCH_CET_LEGACY_BITMAP.
9016 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
9017 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
9018 * sysdeps/x86/libc-start.c: Include <startup.h>.
9019
9020 2018-07-24 Florian Weimer <fweimer@redhat.com>
9021
9022 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
9023 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
9024
9025 2018-07-24 Rical Jasan <rj@2c3t.io>
9026 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9027 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9028
9029 [BZ #14092]
9030 * manual/debug.texi: Update adjacent chapter name.
9031 * manual/probes.texi: Likewise.
9032 * manual/threads.texi (ISO C Threads): New section.
9033 (POSIX Threads): Convert to a section.
9034
9035 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9036 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
9037
9038 [BZ# 14092]
9039 * nptl/Makefile (tests): Add new test files.
9040 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
9041 * nptl/tst-cnd-basic.c: Likewise.
9042 * nptl/tst-cnd-broadcast.c: Likewise.
9043 * nptl/tst-cnd-timedwait.c: Likewise.
9044 * nptl/tst-mtx-basic.c: Likewise.
9045 * nptl/tst-mtx-recursive.c: Likewise.
9046 * nptl/tst-mtx-timedlock.c: Likewise.
9047 * nptl/tst-mtx-trylock.c: Likewise.
9048 * nptl/tst-thrd-basic.c: Likewise.
9049 * nptl/tst-thrd-detach.c: Likewise.
9050 * nptl/tst-thrd-sleep.c: Likewise.
9051 * nptl/tst-tss-basic.c: Likewise.
9052
9053 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9054
9055 [BZ #14092]
9056 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
9057 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
9058 symbols.
9059 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
9060 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
9061 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
9062 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
9063 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
9064 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
9065 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
9066 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
9067 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
9068 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
9069 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9070 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9071 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9072 Likewise.
9073 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9074 Likewise.
9075 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9076 Likewise.
9077 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9078 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9079 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9080 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9081 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9082 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9083 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9084 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9085 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9086 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9087 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9088 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9089 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9090 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9091 Likewise.
9092 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9093 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9094 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9095 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9096 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9097 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9098 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9099 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9100 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9101 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9102 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9103 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9104 ikewise.
9105 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9107 Likewise.
9108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9109 Likewise.
9110 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9111 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9112 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9113 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9114 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9115 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9116 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9117 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9118
9119 [BZ #14092]
9120 * conform/data/threads.h-data (thread_local): New macro.
9121 (TSS_DTOR_ITERATIONS): Likewise.
9122 (tss_t): New type.
9123 (tss_dtor_t): Likewise.
9124 (tss_create): New function.
9125 (tss_get): Likewise.
9126 (tss_set): Likewise.
9127 (tss_delete): Likewise.
9128 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9129 tss_get, and tss_set objects.
9130 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9131 * nptl/tss_create.c: New file.
9132 * nptl/tss_delete.c: Likewise.
9133 * nptl/tss_get.c: Likewise.
9134 * nptl/tss_set.c: Likewise.
9135 * sysdeps/nptl/threads.h (thread_local): New define.
9136 (TSS_DTOR_ITERATIONS): Likewise.
9137 (tss_t): New typedef.
9138 (tss_dtor_t): Likewise.
9139 (tss_create): New prototype.
9140 (tss_get): Likewise.
9141 (tss_set): Likewise.
9142 (tss_delete): Likewise.
9143
9144 [BZ #14092]
9145 * conform/data/threads.h-data (cnd_t): New type.
9146 (cnd_init): New function.
9147 (cnd_signal): Likewise.
9148 (cnd_broadcast): Likewise.
9149 (cnd_wait): Likewise.
9150 (cnd_timedwait): Likewise.
9151 (cnd_destroy): Likewise.
9152 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9153 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9154 object.
9155 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9156 * nptl/cnd_broadcast.c: New file.
9157 * nptl/cnd_destroy.c: Likewise.
9158 * nptl/cnd_init.c: Likewise.
9159 * nptl/cnd_signal.c: Likewise.
9160 * nptl/cnd_timedwait.c: Likewise.
9161 * nptl/cnd_wait.c: Likewise.
9162 * sysdeps/nptl/threads.h (cnd_t): New type.
9163 (cnd_init): New prototype.
9164 (cnd_signa): Likewise.
9165 (cnd_broadcast): Likewise.
9166 (cnd_wait): Likewise.
9167 (cnd_timedwait): Likewise.
9168 (cnd_destroy): Likewise.
9169
9170 [BZ #14092]
9171 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9172 (once_flag): New type.
9173 (call_once): New function.
9174 * nptl/Makefile (libpthread-routines): Add call_once object.
9175 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9176 * nptl/call_once.c: New file.
9177 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9178 (once_flag): New type.
9179 (call_once): New prototype.
9180
9181 [BZ #14092]
9182 * conform/data/threads.h-data (mtx_plain): New constant.
9183 (mtx_recursive): Likewise.
9184 (mtx_timed): Likewise.
9185 (mtx_t): New type.
9186 (mtx_init): New function.
9187 (mtx_lock): Likewise.
9188 (mtx_timedlock): Likewise.
9189 (mtx_trylock): Likewise.
9190 (mtx_unlock): Likewise.
9191 (mtx_destroy): Likewise.
9192 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9193 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9194 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9195 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9196 * nptl/mtx_destroy.c: New file.
9197 * nptl/mtx_init.c: Likewise.
9198 * nptl/mtx_lock.c: Likewise.
9199 * nptl/mtx_timedlock.c: Likewise.
9200 * nptl/mtx_trylock.c: Likewise.
9201 * nptl/mtx_unlock.c: Likewise.
9202 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9203 (mtx_recursive): Likewise.
9204 (mtx_timed): Likewise.
9205 (mtx_t): New type.
9206 (mtx_init): New prototype.
9207 (mtx_lock): Likewise.
9208 (mtx_timedlock): Likewise.
9209 (mtx_trylock): Likewise.
9210 (mtx_unlock): Likewise.
9211 (mtx_destroy): Likewise.
9212
9213 [BZ #14092]
9214 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9215 (linknamespace-libs-ISO11): Add libpthread.a.
9216 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9217 functions.
9218 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9219 * nptl/Makefile (headers): Add threads.h.
9220 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9221 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9222 thrd_yield.
9223 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9224 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9225 thrd_join, thrd_sleep, and thrd_yield symbols.
9226 * nptl/descr.h (struct pthread): Add c11 field.
9227 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9228 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9229 routine with expected function prototype.
9230 (__pthread_create_2_1): Add C11 threads check based on attribute
9231 value.
9232 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9233 * nptl/thrd_create.c: New file.
9234 * nptl/thrd_current.c: Likewise.
9235 * nptl/thrd_detach.c: Likewise.
9236 * nptl/thrd_equal.c: Likewise.
9237 * nptl/thrd_exit.c: Likewise.
9238 * nptl/thrd_join.c: Likewise.
9239 * nptl/thrd_priv.h: Likewise.
9240 * nptl/thrd_sleep.c: Likewise.
9241 * nptl/thrd_yield.c: Likewise.
9242 * include/threads.h: Likewise.
9243
9244 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9245
9246 * bits/indirect-return.h: New file.
9247 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9248 * sysdeps/x86/bits/indirect-return.h: Likewise.
9249 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9250 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9251 (swapcontext): Add __INDIRECT_RETURN.
9252 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9253 (prepare_test_buffer): Use it.
9254
9255 2018-07-24 Andreas Schwab <schwab@suse.de>
9256
9257 [BZ #23448]
9258 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9259 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9260
9261 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9262
9263 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9264 Redefine if shadow stack is enabled.
9265 (SYSCALL_ERROR_LABEL): Likewise.
9266 (__vfork): Pop shadow stack and jump back to to caller directly
9267 when shadow stack is in use.
9268 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9269 Redefine if shadow stack is enabled.
9270 (SYSCALL_ERROR_LABEL): Likewise.
9271 (__vfork): Pop shadow stack and jump back to to caller directly
9272 when shadow stack is in use.
9273
9274 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9275
9276 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9277 enabled.
9278 (foo): Likewise.
9279 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9280 (foo): Likewise.
9281
9282 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9283
9284 * scripts/build-many-glibcs.py (Context.checkout): Default
9285 binutils version to 2.31 branch.
9286
9287 2018-07-20 Zong Li <zong@andestech.com>
9288
9289 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9290 URL of gcc's tarball.
9291
9292 2018-07-20 Florian Weimer <fweimer@redhat.com>
9293
9294 [BZ #23396]
9295 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9296 not compare an extra byte after the end of the weights.
9297
9298 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9299
9300 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9301 to 1.
9302 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9303 hidden prototypes.
9304 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9305 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9306 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9307 list of libraries whose stack executability is expected.
9308 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9309 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9310 variable.
9311 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9312 libc.so libpthread.so.
9313
9314 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9315
9316 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9317 SOCK_NONBLOCK.
9318 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9319 and SOCK_NONBLOCK.
9320 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9321 implement __pipe2.
9322 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9323
9324 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9325
9326 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9327 library to improve command line parsing.
9328 (__main__): make schema file as optional parameter (--schema),
9329 defaulting to benchtests/scripts/benchout.schema.json.
9330 (main): move out of the parsing stuff to __main_  and leave it
9331 only as caller of main comparison functions.
9332
9333 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9334
9335 * NEWS: Add a note for Intel CET status.
9336 * manual/install.texi: Likewise.
9337 * INSTALL: Regenerated.
9338
9339 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9340
9341 [BZ #23140]
9342 * localedata/locales/oc_FR (mon): Rename to...
9343 (alt_mon): This, then update October (typo fix).
9344 (mon): New content (genitive case, month names preceded by
9345 "de" or "d’").
9346
9347 [BZ #23422]
9348 * localedata/locales/oc_FR (abday): Update all items.
9349 (day): Update Wednesday and Saturday (typo fixes).
9350 (abmon): Update all items, except May.
9351 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9352 (LC_IDENTIFICATION): Bump the revision number and date.
9353 Keep the "category" entries in alphabetic order.
9354 (LC_ADDRESS): Remove no longer needed comment.
9355 (LC_COLLATE): Use “copy "ca_ES"”.
9356 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9357 "name_mrs".
9358
9359 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9360
9361 * grp/tst_fgetgrent.c: Include <unistd.h>.
9362 (main): Use mkstemp instead of tmpnam.
9363 * io/test-utime.c (main): Likewise.
9364 * posix/annexc.c (macrofile): Change to modifiable array.
9365 (main): Remove macrofile here.
9366 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9367 macrofile here.
9368 (check_header): Do not remove macrofile here.
9369 * posix/bug-getopt1.c: Include <stdlib.h>.
9370 (do_test): Use mkstemp instead of tmpnam.
9371 * posix/bug-getopt2.c: Include <stdlib.h>.
9372 (do_test): Use mkstemp instead of tmpnam.
9373 * posix/bug-getopt3.c: Include <stdlib.h>.
9374 (do_test): Use mkstemp instead of tmpnam.
9375 * posix/bug-getopt4.c: Include <stdlib.h>.
9376 (do_test): Use mkstemp instead of tmpnam.
9377 * posix/bug-getopt5.c: Include <stdlib.h>.
9378 (do_test): Use mkstemp instead of tmpnam.
9379 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9380 (main): Use mkstemp instead of tmpnam.
9381 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9382 (main): Use mkstemp instead of tmpnam.
9383 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9384 (main): use mkstemp instead of tmpnam.
9385 * stdlib/isomac.c (macrofile): Change to modifiable array.
9386 (main): Remove macrofile here.
9387 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9388 macrofile here.
9389 (check_header): Do not remove macrofile here.
9390
9391 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9392
9393 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9394 glibc.tune.x86_shstk.
9395
9396 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9397
9398 * NEWS: Mention --enable-cet.
9399 * manual/install.texi: Document --enable-cet.
9400 * INSTALL: Regenerated.
9401
9402 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9403
9404 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9405 Add _CET_NOTRACK before indirect jump to jump table.
9406
9407 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9408
9409 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9410 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9411 to jump table.
9412
9413 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9414
9415 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9416 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9417 to jump table.
9418
9419 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9420
9421 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9422 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9423 to jump table.
9424
9425 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9426
9427 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9428 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9429 to jump table.
9430
9431 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9432
9433 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9434 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9435 to jump table.
9436 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9437
9438 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9439
9440 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9441 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9442 to jump table.
9443
9444 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9445
9446 * sysdeps/i386/i686/multiarch/memset-sse2.S
9447 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9448 to jump table.
9449
9450 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9451
9452 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9453 indirect jump to jump table.
9454
9455 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9456
9457 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9458 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9459 to jump table.
9460 (MEMCPY): Likewise.
9461
9462 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9463
9464 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9465 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9466 to jump table.
9467 (MEMCPY): Likewise.
9468
9469 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9470
9471 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9472 _CET_NOTRACK before indirect jump to jump table.
9473
9474 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9475
9476 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9477 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9478 to jump table.
9479
9480 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9481
9482 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9483 indirect jump to jump table.
9484
9485 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9486
9487 [BZ #22241]
9488 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9489 (LOCALES): Likewise.
9490 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9491 * localedata/locales/sah_RU: New file.
9492 * localedata/sah_RU.UTF-8.in: New file.
9493
9494 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9495
9496 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9497 "sysdep.h".
9498 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9499 _CET_ENDBR to indirect jump targets and adjust jump destination
9500 for _CET_ENDBR.
9501 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9502 "sysdep.h".
9503 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9504 _CET_ENDBR to indirect jump targets and adjust jump destination
9505 for _CET_ENDBR.
9506 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9507 "sysdep.h".
9508 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9509 _CET_ENDBR to indirect jump targets and adjust jump destination
9510 for _CET_ENDBR.
9511
9512 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9513
9514 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9515 _CET_ENDBR.
9516
9517 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9518
9519 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9520 _CET_ENDBR.
9521 (_dl_tlsdesc_undefweak): Likewise.
9522 (_dl_tlsdesc_dynamic): Likewise.
9523 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9524 (_dl_tlsdesc_resolve_rel): Likewise.
9525 (_dl_tlsdesc_resolve_rela): Likewise.
9526 (_dl_tlsdesc_resolve_hold): Likewise.
9527 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9528 (_dl_tlsdesc_undefweak): Likewise.
9529 (_dl_tlsdesc_dynamic): Likewise.
9530 (_dl_tlsdesc_resolve_rela): Likewise.
9531 (_dl_tlsdesc_resolve_hold): Likewise.
9532
9533 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9534
9535 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9536 (_fini): Likewise.
9537 * sysdeps/x86_64/crti.S (_init): Likewise.
9538 (_fini): Likewise.
9539
9540 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9541
9542 [BZ #23140]
9543 * localedata/locales/os_RU (mon): Rename to...
9544 (alt_mon): This.
9545 (mon): Import from CLDR (genitive case).
9546
9547 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9548
9549 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9550 cet-tunables.h> when CET is enabled.
9551
9552 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9553
9554 [BZ #21598]
9555 * configure.ac: Add --enable-cet.
9556 * configure: Regenerated.
9557 * elf/Makefille (all-built-dso): Add a comment.
9558 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9559 Include <dl-prop.h>.
9560 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9561 segment.
9562 * elf/dl-open.c: Include <dl-prop.h>.
9563 (dl_open_worker): Call _dl_open_check.
9564 * elf/rtld.c: Include <dl-prop.h>.
9565 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9566 _rtld_main_check.
9567 * sysdeps/generic/dl-prop.h: New file.
9568 * sysdeps/i386/dl-cet.c: Likewise.
9569 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9570 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9571 * sysdeps/x86/cet-tunables.h: Likewise.
9572 * sysdeps/x86/check-cet.awk: Likewise.
9573 * sysdeps/x86/configure: Likewise.
9574 * sysdeps/x86/configure.ac: Likewise.
9575 * sysdeps/x86/dl-cet.c: Likewise.
9576 * sysdeps/x86/dl-procruntime.c: Likewise.
9577 * sysdeps/x86/dl-prop.h: Likewise.
9578 * sysdeps/x86/libc-start.h: Likewise.
9579 * sysdeps/x86/link_map.h: Likewise.
9580 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9581 _CET_ENDBR.
9582 (_dl_runtime_profile): Likewise.
9583 (_dl_runtime_resolve_shstk): New.
9584 (_dl_runtime_profile_shstk): Likewise.
9585 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9586 if CET is enabled.
9587 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9588 (CFLAGS-.os): Likewise.
9589 (CFLAGS-.op): Likewise.
9590 (CFLAGS-.oS): Likewise.
9591 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9592 is enabled.
9593 (tests-special): Add $(objpfx)check-cet.out.
9594 (cet-built-dso): New.
9595 (+$(cet-built-dso:=.note)): Likewise.
9596 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9597 ($(objpfx)check-cet.out): New.
9598 (generated): Add check-cet.out.
9599 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9600 <cet-tunables.h>.
9601 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9602 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9603 (init_cpu_features): Call get_cet_status to check CET status
9604 and update dl_x86_feature_1 with CET status. Call
9605 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9606 (set_x86_shstk). Disable and lock CET in libc.a.
9607 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9608 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9609 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9610 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9611 (_CET_ENDBR): Define if not defined.
9612 (ENTRY): Add _CET_ENDBR.
9613 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9614 x86_shstk.
9615 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9616 _CET_ENDBR.
9617 (_dl_runtime_profile): Likewise.
9618
9619 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9620
9621 [BZ #21895]
9622 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9623 restore r2 on longjmp.
9624 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9625 test list.
9626 Added rules to build test tst-setjmp-bug21895-static.
9627 Added module setjmp-bug21895 and rules to build a shared object from it.
9628 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9629 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9630
9631 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9632
9633 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9634 * benchtests/bench-strstr.c: Likewise.
9635 * string/memmem.c (FASTSEARCH): Define.
9636 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9637 Add support for FASTSEARCH.
9638 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9639 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9640 (FASTSEARCH): Define.
9641 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9642 * string/test-strstr.c: Likewise.
9643
9644 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9647 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9648
9649 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9650 H.J. Lu <hongjiu.lu@intel.com>
9651
9652 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9653 (__longjmp): Restore shadow stack pointer if shadow stack is
9654 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9655 isn't defined for __longjmp_cancel.
9656 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9657 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9658 and SHADOW_STACK_POINTER_OFFSET is defined.
9659 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9660 (setjmp): Save shadow stack pointer if shadow stack is enabled
9661 and SHADOW_STACK_POINTER_OFFSET is defined.
9662 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9663 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9664 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9665 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9666 <jmp_buf-ssp.h>.
9667 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9668 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9669 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9670 Remove jmp_buf-ssp.sym.
9671 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9672 <jmp_buf-ssp.h>.
9673 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9674 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9675 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9676 jmp_buf-ssp.sym.
9677 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9678 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9679 (__longjmp): Restore shadow stack pointer if shadow stack is
9680 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9681 isn't defined for __longjmp_cancel.
9682 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9683 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9684 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9685
9686 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9687
9688 [BZ #22563]
9689 * nptl/pthread_create.c: Include <tls-setup.h>.
9690 (__pthread_create_2_1): Call tls_setup_tcbhead.
9691 * sysdeps/generic/tls-setup.h: New file.
9692 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9693 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9694 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9695 Likewise.
9696 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9697 to feature_1.
9698 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9699 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9700 (X86_FEATURE_1_SHSTK): Likewise.
9701 (CET_ENABLED): Likewise.
9702 (IBT_ENABLED): Likewise.
9703 (SHSTK_ENABLED): Likewise.
9704
9705 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9706
9707 [BZ #23208]
9708 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9709 (LOCALES): Likewise.
9710 * localedata/dsb_DE.UTF-8.in: New file.
9711 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9712
9713 2018-07-12 Florian Weimer <fweimer@redhat.com>
9714
9715 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9716 __mprotect, not mprotect.
9717
9718 2018-07-11 Florian Weimer <fweimer@redhat.com>
9719
9720 * io/Makefile (headers): Add bits/statx.h.
9721
9722 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9723
9724 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9725 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9726 and headers.
9727 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9728 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9729 for utf8_gen.py
9730
9731 2018-07-10 Florian Weimer <fweimer@redhat.com>
9732
9733 * io/Makefile (routines): Add statx.
9734 (tests-internal): Add tst-statx.
9735 * io/Versions (GLIBC_2.28): Export statx.
9736 * io/bits/statx.h: New file.
9737 * io/sys/stat.h [__USE_GNU]: Include it.
9738 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9739 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9740 Define.
9741 * io/statx.c: New file.
9742 * io/statx_generic.: Likewise.
9743 * io/tst-statx.: Likewise.
9744 * include/bits/statx.h: Likewise.
9745 * sysdeps/unix/sysv/linux/kernel-features.h
9746 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9747 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9748 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9749 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9750 Undefine.
9751 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9752 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9753 * sysdeps/unix/sysv/linux/statx.c: New file.
9754 * manual/filesys.texi: Note that statx is undocumented.
9755 * sysdeps/**/libc*.abilist: Update.
9756
9757 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9758
9759 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9760 a kernel issue which lead to test failure in some cases.
9761
9762 2018-07-10 Florian Weimer <fweimer@redhat.com>
9763
9764 [BZ #23036]
9765 * posix/regexec.c (check_node_accept_bytes): When comparing
9766 weights, do not compare an extra byte after the end of the
9767 weights.
9768
9769 2018-07-10 Florian Weimer <fweimer@redhat.com>
9770
9771 * libio/readline.c: Fix copyright year.
9772 * libio/tst-readline.c Likewise.
9773 * nss/tst-nss-files-hosts-getent.c: Likewise.
9774
9775 2018-07-06 Florian Weimer <fweimer@redhat.com>
9776
9777 [BZ #18991]
9778 * nss/nss_files/files-XXX.c (internal_getent): Use
9779 __libc_readline_unlocked. Seek back to the start of the line if
9780 parsing failes with ERANGE.
9781 (get_contents_ret, get_contents): Remove.
9782 * nss/tst-nss-files-hosts-getent.c: New file.
9783 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9784 (tst-nss-files-hosts-getent): Link with -ldl.
9785
9786 2018-07-06 Florian Weimer <fweimer@redhat.com>
9787
9788 * include/stdio.h (__libc_readline_unlocked): Declare.
9789 (__ftello64, __fseeko64): Declare aliases.
9790 * libio/readline.c: New file.
9791 * libio/tst-readline.c: Likewise.
9792 (routines): Add readline.
9793 (tests-internal): Add tst-readlime.
9794 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9795 __libc_readline_unlocked.
9796 * libio/fseeko.c (__fseeko): Rename from fseeko.
9797 (fseeko): Add alias.
9798 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9799 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9800 (fseeko64): Add alias.
9801 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9802 * libio/ftello64.c (__ftello64): Rename from ftello64.
9803 (ftello64): Add alias.
9804
9805 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9806
9807 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9808 HWCAP_ATOMICS.
9809
9810 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9811
9812 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9813 Use dl_hwcap without masking.
9814 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9815 Remove HWCAP_CPUID.
9816
9817 2018-07-06 Florian Weimer <fweimer@redhat.com>
9818
9819 * conform/conformtest.pl (checknamespace): Escape literal braces
9820 in regular expressions.
9821
9822 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9823
9824 * sysdeps/x86/cpu-features.c (get_common_indeces):
9825 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9826 * sysdeps/x86/cpu-features.c (init_cpu_features):
9827 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9828
9829 2018-07-05 Florian Weimer <fweimer@redhat.com>
9830
9831 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9832 protector.
9833 (CFLAGS-elf-init.oS): Likewise.
9834
9835 2018-07-05 Florian Weimer <fweimer@redhat.com>
9836 Carlos O'Donell <carlos@redhat.com>
9837
9838 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9839 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9840 with stack protector enabled because there is no risk of infinite
9841 recursion.
9842
9843 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9844
9845 [BZ #19818]
9846 [BZ #23307]
9847 * libc-abis (ABSOLUTE): New ABI.
9848 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9849 * NEWS: Mention the new ABI.
9850
9851 2018-07-05 Florian Weimer <fweimer@redhat.com>
9852
9853 [BZ # 17662]
9854 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9855 (RENAME_WHITEOUT): Define.
9856 [__USE_GNU] (renameat2): Declare.
9857 * stdio-common/Makefile (routines): Add renameat2.
9858 (tests): Add tst-renameat2.
9859 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9860 * stdio-common/renameat2.c: New file.
9861 * stdio-common/tst-renameat2.c: Likewise.
9862 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9863 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9864 undocumented.
9865 * sysdeps/unix/sysv/linux/kernel-features.h
9866 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9867 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9868 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9869 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9870 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9871 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9872 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9873 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9874 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9875 * include/stdio.h (__renameat): Add alias for renameat.
9876 * stdio-common/renameat.c (__renameat): Rename from renameat.
9877 Add hidden definition and alias.
9878 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9879 * sysdeps/mach/hurd/renameat.c: Likewise.
9880 * sysdeps/**/libc*.abilist: Add renameat2.
9881
9882 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9883
9884 * posix/bug-regex33.c: Fix build after regex sync.
9885
9886 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9887
9888 [BZ #23164]
9889 * localedata/tst-langinfo-setlocale.c: New file.
9890 * localedata/tst-langinfo-setlocale-static.c: New file.
9891 * localedata/tst-langinfo-newlocale.c: New file.
9892 * localedata/tst-langinfo-newlocale-static.c: New file.
9893 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9894 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9895 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9896 (tests-static): Remove tst-langinfo-static. Add
9897 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9898 (tests-special): Remove $(objpfx)tst-langinfo.out,
9899 $(objpfx)tst-langinfo-static.out. Add
9900 $(objpfx)tst-langinfo-setlocale.out,
9901 $(objpfx)tst-langinfo-newlocale.out,
9902 $(objpfx)tst-langinfo-setlocale-static.out,
9903 $(objpfx)tst-langinfo-newlocale-static.out.
9904 ($(objpfx)tst-langinfo.out): Remove.
9905 ($(objpfx)tst-langinfo-static.out): Remove.
9906 ($(objpfx)tst-langinfo-newlocale.out): New target.
9907 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9908 (test-xfail-tst-langinfo-newlocale-static): Add.
9909 ($(objpfx)tst-langinfo-setlocale.out): New target.
9910 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9911 * localedata/tst-langinfo.c: Call test_locale.
9912 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9913 data.
9914
9915 2018-07-04 Florian Weimer <fweimer@redhat.com>
9916
9917 testrun.sh: Implement --tool=strace, --tool=valgrind
9918 * Makefile (testrun-script): Define variable.
9919 (testrun.sh): Use variable.
9920 * manual/install.texi (Tools for Compilation): make 4.0 or later
9921 is required.
9922 * configure.ac: Check for make 4.0 or later.
9923 * INSTALL: Regenerate.
9924 * configure: Likewise.
9925
9926 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9927
9928 [BZ #23233]
9929 [BZ #21163]
9930 [BZ #18986]
9931 [BZ #13762]
9932 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9933 * posix/PCRE.tests: Remove invalid test.
9934 * posix/bug-regex28.c: Fix expected values for used syntax.
9935 * posix/bug-regex37.c: New file.
9936 * posix/bug-regex38.c: Likewise.
9937 * posix/regcomp.c: Sync with gnulib.
9938 * posix/regex.c: Likewise.
9939 * posix/regex.h: Likewise.
9940 * posix/regex_internal.c: Likewise.
9941 * posix/regex_internal.h: Likewise.
9942 * posix/regexec.c: Likewise.
9943
9944 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9945
9946 [BZ #23308]
9947 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9948 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9949 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9950 * localedata/unicode-gen/PropList.txt: likewise.
9951 * localedata/unicode-gen/UnicodeData.txt: likewise.
9952 * localedata/charmaps/UTF-8: Regenerate.
9953 * localedata/locales/i18n_ctype: likewise.
9954 * localedata/locales/tr_TR: likewise.
9955 * localedata/locales/translit_circle: likewise.
9956 * localedata/locales/translit_cjk_compat: likewise.
9957 * localedata/locales/translit_combining: likewise.
9958 * localedata/locales/translit_compat: likewise.
9959 * localedata/locales/translit_font: likewise.
9960 * localedata/locales/translit_fraction: likewise.
9961
9962 2018-07-03 Florian Weimer <fweimer@redhat.com>
9963
9964 [BZ #23363]
9965 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9966 * stdio-common/tst-printf.sh: Adjust expected output.
9967 * LICENSES: Update.
9968
9969 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9970
9971 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9972 symbol.
9973
9974 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9975
9976 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9977 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9978 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9979 * stdio-common/tst-printfsz-islongdouble.c: New file.
9980 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9981 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9982 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9983 [subdir == stdio-common] (tests-internal): Add
9984 test-printf-size-ieee128, and test-printf-size-ibm128.
9985 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9986 (CFLAGS-test-printf-size-ibm128.c): New variables.
9987 [subdir == stdio-common] (tests-special): Add
9988 $(objpfx)test-printf-size-ieee128.out and
9989 $(objpfx)test-printf-size-ibm128.out.
9990 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9991 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9992 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9993 __printf_sizeieee128.
9994 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9995 New file.
9996 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9997 Likewise.
9998 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9999 Likewise.
10000
10001 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10002
10003 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
10004 (exp2f_inline): Likewise.
10005 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
10006 (__math_uflowf): Likewise.
10007 (__math_may_uflowf): Likewise.
10008 (__math_divzerof): Likewise.
10009 (__math_invalidf): Likewise.
10010 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
10011 (__math_oflowf): Likewise.
10012 (__math_uflowf): Likewise.
10013 (__math_may_uflowf): Likewise.
10014 (__math_divzerof): Likewise.
10015 (__math_invalidf): Likewise.
10016
10017 2018-06-29 DJ Delorie <dj@redhat.com>
10018 Carlos O'Donell <carlos@redhat.com>
10019
10020 [BZ #23329]
10021 * include/libc-symbols.h: Comment the freeres framework.
10022 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
10023 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
10024 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
10025 * dlfcn/dlerror.c: Include libc-symbols.h
10026 (__dlerror_main_freeres): New function.
10027 * dlfcn/dlfreeres.c: New file.
10028 * dlfcn/sdlfreeres.c: New file.
10029 * include/dlfcn.h: Declare __dlerror_main_freeres.
10030 * malloc/set-freeres.c: Declare __libdl_freeres, and
10031 __libpthread_freeres.
10032 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
10033 the releavant libraries are loaded.
10034 * malloc/thread-freeres.c: Add comments.
10035 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
10036 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
10037 * nptl/allocatestack.c (__nptl_free_stacks): New function.
10038 (__free_stacks): Rename to...
10039 (free_stacks): ...this. Mark static.
10040 (queue_stack): Call free_stacks.
10041 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
10042 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
10043 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
10044 ptr_freeres element from struct.
10045 (pthread_functions): Remove .ptr_freeres from struct initializer.
10046 [SHARED] (nptl_freeres): Remove.
10047 * nptl/nptlfreeres.c: New file.
10048 * nptl/pthreadP.h
10049 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
10050 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
10051 attribute_hidden.
10052 (__free_stacks): Rename to...
10053 (__nptl_stacks_freeres): ...this.
10054 (__shm_directory_freeres): Declare.
10055 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
10056 (__nptl_unwind_freeres): ...this.
10057 * resolv/res-close.c: Add comment.
10058 * resolv/resolv_conf.c: Include libc-symbols.h.
10059 * string/strerror_l.c: Include libc-symbols.h.
10060 * sunrpc/rpc_thread.c: Include libc-symbols.h.
10061 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
10062 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
10063 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
10064
10065 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10066
10067 * stdlib/tst-strfmon_l.c: Add tests for long double.
10068
10069 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10070
10071 [BZ #23208]
10072 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10073 * localedata/locales/dsb_DE: New file.
10074
10075 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10076
10077 [BZ #23140]
10078 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10079 genitive case).
10080 (alt_mon): New entry, import from CLDR (nominative case).
10081
10082 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10083
10084 [BZ #22996]
10085 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10086
10087 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10088
10089 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10090 Use vector registers.
10091
10092 * sysdeps/aarch64/multiarch/memmove_falkor.S
10093 (__memcpy_falkor): Use vector registers.
10094
10095 2018-06-29 Martin Sebor <msebor@redhat.com>
10096
10097 * manual/stdio.texi (Customizing Printf): Mention interaction
10098 with GCC built-ins.
10099
10100 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10101
10102 [BZ #23307]
10103 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10104 `st_value' is 0 if `st_shndx' is SHN_ABS.
10105 * elf/tst-absolute-zero.c: New file.
10106 * elf/tst-absolute-zero-lib.c: New file.
10107 * elf/tst-absolute-zero-lib.lds: New file.
10108 * elf/Makefile (tests): Add `tst-absolute-zero'.
10109 (modules-names): Add `tst-absolute-zero-lib'.
10110 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10111 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10112 ($(objpfx)tst-absolute-zero: New dependency.
10113
10114 2018-06-29 Zack Weinberg <zackw@panix.com>
10115
10116 * configure.ac: New command-line option --disable-crypt.
10117 Force --disable-nss-crypt when --disable-crypt is given, with a
10118 warning if it was explicitly enabled.
10119 * configure: Regenerate.
10120 * config.make.in: New boolean substitution variable $(build-crypt).
10121 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10122 when $(build-crypt).
10123 * manual/install.texi: Document --disable-crypt.
10124 * INSTALL: Regenerate.
10125
10126 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10127 which is never set.
10128 * conform/Makefile: Only include libcrypt.a in
10129 linknamespace-libs-xsi and linknamespace-libs-XPG4
10130 when $(build-crypt).
10131 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10132 USE_CRYPT to 1 when $(build-crypt).
10133 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10134 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10135 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10136
10137 2018-06-29 Zack Weinberg <zackw@panix.com>
10138
10139 * crypt/crypt.h, posix/unistd.h: Update comments and
10140 prototypes for crypt and crypt_r.
10141
10142 * manual/crypt.texi (Cryptographic Functions): New initial
10143 exposition.
10144 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10145 (Unpredictable Bytes): Improve initial exposition. Clarify error
10146 behavior of getentropy and getrandom.
10147 * manual/examples/genpass.c: Generate a salt using getentropy
10148 instead of the current time. Use hash $5$ (SHA-2-256).
10149 * manual/examples/testpass.c: Demonstrate validation against
10150 hashes generated with three different one-way functions.
10151
10152 * manual/intro.texi: crypt.texi does not need an overview
10153 anymore.
10154
10155 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10156 * manual/terminal.texi: Consistently refer to "passphrases"
10157 * instead of "passwords", and to the "user database" instead
10158 * of the "password database".
10159 * manual/users.texi: Similarly. Add notes about how actual
10160 passphrase hashes are now stored in the shadow database.
10161 Remove 20-year-old junk todo note.
10162
10163 2018-06-29 Zack Weinberg <zackw@panix.com>
10164
10165 * manual/crypt.texi: Use a normal top-level @node declaration.
10166 Move most of the introductory text to the 'crypt' section.
10167 Move the example programs below the @deftypefun for 'crypt_r'.
10168 Move the 'getpass' section...
10169 * manual/terminal.texi: ...here.
10170
10171 2018-06-29 Zack Weinberg <zackw@panix.com>
10172 Florian Weimer <fweimer@redhat.com>
10173
10174 * posix/unistd.h: Do not declare encrypt.
10175 (_XOPEN_CRYPT): Remove macro definition.
10176 (crypt): Declare only for _USE_MISC.
10177 * stdlib/stdlib.h: Do not declare setkey.
10178 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10179 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10180
10181 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10182 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10183 into compat symbols. Don't define initial_perm if it's not
10184 going to be used.
10185 * crypt/cert.c: Link explicitly with the expected versions for
10186 setkey and encrypt. If they are not available at all, mark
10187 the test as unsupported.
10188
10189 * sunrpc/des_crypt.c: Unconditionally block linkage with
10190 cbc_crypt and ecb_crypt for new binaries.
10191 * sunrpc/des_soft.c: Unconditionally block linkage with
10192 des_setparity for new binaries.
10193
10194 * manual/crypt.texi: Remove the entire "DES Encryption"
10195 section. Also remove the paragraph talking about FIPS 140-2
10196 from the introduction.
10197 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10198 of libgcrypt for "real" encryption, not DES.
10199 * manual/conf.texi (Constants for Sysconf): Mention that
10200 _XOPEN_CRYPT is no longer impelemented.
10201
10202 * conform/data/unistd.h-data: Remove crypt function declaration.
10203
10204 2018-06-29 Florian Weimer <fweimer@redhat.com>
10205
10206 [BZ #23351]
10207 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10208 (disallow_malloc_check): Remove variable.
10209 (__malloc_check_init): Adjust.
10210 (malloc_set_state): Update comment.
10211 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10212 declarations.
10213
10214 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10215
10216 [BZ #23140]
10217 * localedata/locales/ast_ES (mon): Rename to...
10218 (alt_mon): This.
10219 (mon): Import from CLDR (genitive case).
10220
10221 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10222 Jakub Sitnicki <jkbs@redhat.com>
10223
10224 [BZ #21812]
10225 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10226 on NLM_F_DUMP_INTR.
10227
10228 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10229
10230 * manual/llio.texi: Remove spurious space.
10231
10232 2018-06-28 Florian Weimer <fweimer@redhat.com>
10233
10234 [BZ #23349]
10235 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10236 _STRUCT_TIMESPEC.
10237
10238 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10239
10240 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10241 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10242 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10243 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10244 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10245 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10246 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10247
10248 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10249
10250 [BZ #23266]
10251 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10252 Copy and null-terminate entries that are not terminated, in
10253 addition to empty ones.
10254
10255 2018-06-27 Florian Weimer <fweimer@redhat.com>
10256
10257 [BZ #18023]
10258 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10259 (extend_alloca_account): Remove.
10260 * manual/stdio.texi (Variable Arguments Output): Update comment.
10261
10262 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10263
10264 * nptl/sockperf.c: Remove file.
10265
10266 2018-06-27 Florian Weimer <fweimer@redhat.com>
10267
10268 [BZ #18023]
10269 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10270 scratch_buffer instead of extend_alloca.
10271
10272 2018-06-27 Florian Weimer <fweimer@redhat.com>
10273
10274 [BZ #18023]
10275 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10276 scratch_buffer instead of extend_alloca. Update comments.
10277
10278 2018-06-27 Florian Weimer <fweimer@redhat.com>
10279
10280 [BZ #18023]
10281 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10282 instead of extend_alloca.
10283
10284 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10285
10286 [BZ #13888]
10287 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10288 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10289 /tmp.
10290 * scripts/test-installation.pl: Put temporary files in build
10291 directory, not /tmp.
10292 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10293 (CFLAGS-bug4.c): Likewise.
10294 (CFLAGS-bug5.c): Likewise.
10295 (CFLAGS-test-fseek.c): Likewise.
10296 (CFLAGS-test-popen.c): Likewise.
10297 (CFLAGS-test_rdwr.c): Likewise.
10298 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10299 /tmp.
10300 * stdio-common/bug4.c (main): Likewise.
10301 * stdio-common/bug5.c (main): Likewise.
10302 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10303 * stdio-common/test-popen.c (do_test): Likewise.
10304 * stdio-common/test_rdwr.c (main): Likewise.
10305
10306 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10307
10308 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10309 (sem_open): Set sem.newsem.pad to zero for valgrind.
10310
10311 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10312
10313 [BZ #20251]
10314 * NEWS: Mention fcntl64 addition.
10315 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10316 * login/utmp_file.c: Likewise.
10317 * sysdeps/posix/fdopendir.c: Likewise.
10318 * sysdeps/posix/opendir.c: Likewise.
10319 * sysdeps/unix/pt-fcntl.c: Likewise.
10320 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10321 __fcntl64_nocancel_adjusted): New prototype.
10322 (__fcntl_nocancel_adjusted): Remove prototype.
10323 * io/Makefile (routines): Add fcntl64.
10324 (CFLAGS-fcntl64.c): New rule.
10325 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10326 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10327 * io/fcntl.h (fcntl64): Add prototype and redirect if
10328 __USE_FILE_OFFSET64 is defined.
10329 * io/fcntl64.c: New file.
10330 * manual/llio.text: Add a note for which commands fcntl acts a
10331 cancellation point.
10332 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10333 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10334 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10335 New symbols.
10336 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10337 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10338 non-LFS case.
10339 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10340 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10341 to __fcntl64_nocancel.
10342 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10343 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10344 to __fcntl64_nocancel.
10345 * sysdeps/generic/not-cancel.h: Likewise.
10346 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10347 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10348 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10349 (fcntl64): New symbol.
10350 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10351 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10352 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10353 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10355 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10356 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10357 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10358 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10359 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10360 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10361 fcntl64): Likewise.
10362 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10363 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10364 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10365 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10366 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10367 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10368 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10369 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10370 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10371 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10372 Likewise.
10373 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10374 Likewise.
10375 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10376 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10377 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10378
10379 2018-06-26 Florian Weimer <fweimer@redhat.com>
10380
10381 Run thread shutdown functions in an explicit order.
10382 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10383 definition.
10384 (__libc_thread_freeres): Call thread shutdown functions
10385 explicitly.
10386 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10387 * include/string.h (__strerror_thread_freeres): Declare.
10388 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10389 arena_thread_freeres. No longer static. Remove thread shutdown
10390 hook registration.
10391 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10392 Declare.
10393 * resolv/res-close.c (__res_thread_freeres): Renamed from
10394 res_thread_freeres. No longer static. Remove thread shutdown
10395 hook registration.
10396 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10397 * resolv/resolv_conf.c (freeres): Remove incorrect section
10398 attribute and use libc_freeres_fn.
10399 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10400 strerror_thread_freeres. No longer static. Remove thread
10401 shutdown hook registration.
10402 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10403 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10404 shutdown hook registration.
10405 * Makerules (shlib.lds): Do not provide section boundary symbols
10406 for __libc_thread_subfreeres.
10407 * manual/memory.texi (Basic Allocation): Update comment.
10408
10409 2018-06-26 Florian Weimer <fweimer@redhat.com>
10410
10411 Remove always-defined _RPC_THREAD_SAFE_ macro.
10412 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10413 Do not define _RPC_THREAD_SAFE_.
10414 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10415 conditional.
10416 * sunrpc/clnt_perr.c: Likewise.
10417 * sunrpc/clnt_raw.c: Likewise.
10418 * sunrpc/clnt_simp.c: Likewise.
10419 * sunrpc/key_call.c: Likewise.
10420 * sunrpc/rpc_common.c: Likewise.
10421 * sunrpc/rpc_main.c: Likewise.
10422 * sunrpc/rpc_thread.c: Likewise.
10423 * sunrpc/svc.c: Likewise.
10424 * sunrpc/svc_raw.c: Likewise.
10425 * sunrpc/svc_simple.c: Likewise.
10426 * sumrpc/svcauth_des.c: Likewise.
10427
10428 2018-06-26 Florian Weimer <fweimer@redhat.com>
10429
10430 * libio/Makefile (tests-internal): Add tst-vtables,
10431 tst-vtables-interposed.
10432 * libio/tst-vtables.c: New file.
10433 * libio/tst-vtables-common.c: Likewise.
10434 * libio/tst-vtables-interposed.c: Likewise.
10435
10436 2018-06-26 Florian Weimer <fweimer@redhat.com>
10437
10438 * support/support_test_main.c (support_test_main): Only call
10439 setvbuf if not disables.
10440 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10441 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10442
10443 2018-06-26 Florian Weimer <fweimer@redhat.com>
10444
10445 [BZ #23313]
10446 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10447
10448 2018-06-25 Florian Weimer <fweimer@redhat.com>
10449
10450 [BZ #18023]
10451 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10452 Use struct scratch_buffer instead of extend_alloca.
10453
10454 2018-06-25 Florian Weimer <fweimer@redhat.com>
10455
10456 [BZ #18023]
10457 * nss/getent.c (initgroups_keys): Use dynarray instead of
10458 extend_alloca.
10459
10460 2018-06-25 Florian Weimer <fweimer@redhat.com>
10461
10462 [BZ #18023]
10463 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10464 Use struct scratch_buffer instead of extend_alloca.
10465
10466 2018-06-25 Florian Weimer <fweimer@redhat.com>
10467
10468 [BZ #18023]
10469 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10470 back to malloc directly, without stack allocations.
10471
10472 2018-06-25 Florian Weimer <fweimer@redhat.com>
10473
10474 [BZ #18023]
10475 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10476 of extend_alloca.
10477
10478 2018-06-25 Florian Weimer <fweimer@redhat.com>
10479
10480 [BZ #18023]
10481 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10482 of extend_alloca.
10483 * nscd/hstcache.c (addhstbyX): Likewise.
10484 * nscd/pwdcache.c (addpwbyX): Likewise.
10485 * nscd/servicescache.c (addservbyX): Likewise.
10486
10487 2018-06-25 Florian Weimer <fweimer@redhat.com>
10488
10489 [BZ #18023]
10490 * nscd/connections.c (read_cmdline): New function.
10491 (restart): Use it. Update comment.
10492
10493 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10494
10495 [BZ #23140]
10496 * localedata/locales/csb_PL (mon): Rename to...
10497 (alt_mon): This.
10498 (abmon): Rename to...
10499 (ab_alt_mon): This.
10500 (mon): Add with proper genitive forms, copy from Wikipedia.
10501 (abmon): Likewise.
10502
10503 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10504
10505 [BZ #19485]
10506 * localedata/locales/csb_PL (mon): Fix typos:
10507 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10508 (yesstr): Add, value is "jo".
10509 (nostr): Add, value is "nié".
10510
10511 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10512
10513 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10514 all log1p and significand functions on m680x0.
10515 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10516 of s_significand.c..
10517 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10518 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10519 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10520 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10521 s_log1p.c and include it..
10522
10523 2018-06-21 Vincent Chen <vincentc@andestech.com>
10524
10525 * elf/elf.h (R_NDS32_NONE): New define.
10526 (R_NDS32_32_RELA): Likewise.
10527 (R_NDS32_COPY): Likewise.
10528 (R_NDS32_GLOB_DAT): Likewise.
10529 (R_NDS32_JUMP_SLOT): Likewise.
10530 (R_NDS32_RELATIVE): Likewise.
10531 (R_NDS32_TLS_TPOFF): Likewise.
10532 (R_NDS32_TLS_DESC): Likewise.
10533
10534 2018-06-21 Mark Wielaard <mark@klomp.org>
10535
10536 * elf/elf.h (R_BPF_MAP_FD): Removed.
10537 (R_BPF_64_64, R_BPF_64_32): New.
10538
10539 2018-06-21 Florian Weimer <fweimer@redhat.com>
10540
10541 [BZ #23253]
10542 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10543 Renamed from libc_feholdsetround_ctx.
10544 (default_libc_feresetround_ctx): Renamed from
10545 libc_feresetround_ctx.
10546 (default_libc_feholdsetround_noex_ctx): Renamed from
10547 libc_feholdsetround_noex_ctx.
10548 (default_libc_feresetround_noex_ctx): Renamed from
10549 libc_feresetround_noex_ctx.
10550 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10551 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10552 forwardning to the old implementations under the new names.
10553 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10554 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10555 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10556 (libc_feresetround_ctx): Forward to default implements for i386
10557 and MATH_SET_BOTH_ROUNDING_MODES.
10558 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10559 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10560
10561 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10562
10563 * string/tst-cmp.c: Include <libc-diag.h>.
10564 (strncmp_max): Disable -Wstringop-overflow= around call to
10565 strncmp.
10566 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10567 strncasecmp.
10568
10569 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10570 (main): Disable -Wunused-value around call to strpbrk.
10571 * string/bug-strspn1.c: Include <libc-diag.h>.
10572 (main): Disable -Wunused-value around call to strspn.
10573
10574 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10575 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10576
10577 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10578 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10579
10580 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10581
10582 * math/Makefile (libm-calls): Move s_significandF to...
10583 (gen-libm-calls): ... here.
10584 * math/s_significand_template.c: New file.
10585 * math/s_significand.c: Removed.
10586 * math/s_significandf.c: Removed.
10587 * math/s_significandl.c: Removed.
10588 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10589 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10590
10591 * math/e_exp2_template.c (declare_mgen_finite_alias,
10592 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10593 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10594 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10595
10596 2018-06-20 Florian Weimer <fweimer@redhat.com>
10597
10598 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10599
10600 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10601
10602 [BZ #23280]
10603 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10604 floating-point number to strtod functions rather than possibly
10605 negating result of those functions.
10606 * stdio-common/tst-scanf-round.c: New file.
10607 * stdio-common/Makefile (tests): Add tst-scanf-round.
10608 ($(objpfx)tst-scanf-round): Depend on $(libm).
10609
10610 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10611
10612 * sysdeps/mach/hurd/localplt.data: Move to...
10613 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10614 R_386_GLOB_DAT like on Linux i386.
10615
10616 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10617
10618 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10619 (SHM_STAT_ANY): New macro.
10620 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10621 (SHM_STAT_ANY): Likewise.
10622 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10623 (SHM_STAT_ANY): Likewise.
10624 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10625 (SHM_STAT_ANY): Likewise.
10626 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10627 (SHM_STAT_ANY): Likewise.
10628 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10629 (SHM_STAT_ANY): Likewise.
10630 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10631 (SHM_STAT_ANY): Likewise.
10632 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10633 (SHM_STAT_ANY): Likewise.
10634 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10635 (SHM_STAT_ANY): Likewise.
10636 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10637 (SHM_STAT_ANY): Likewise.
10638 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10639 (SHM_STAT_ANY): Likewise.
10640 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10641 (SHM_STAT_ANY): Likewise.
10642
10643 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10644 (SEM_STAT_ANY): New macro.
10645 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10646 (SEM_STAT_ANY): Likewise.
10647 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10648 (SEM_STAT_ANY): Likewise.
10649 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10650 (SEM_STAT_ANY): Likewise.
10651 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10652 (SEM_STAT_ANY): Likewise.
10653 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10654 (SEM_STAT_ANY): Likewise.
10655 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10656 (SEM_STAT_ANY): Likewise.
10657 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10658 (SEM_STAT_ANY): Likewise.
10659 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10660 (SEM_STAT_ANY): Likewise.
10661 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10662 (SEM_STAT_ANY): Likewise.
10663
10664 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10665 (MSG_STAT_ANY): New macro.
10666 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10667 (MSG_STAT_ANY): Likewise.
10668 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10669 (MSG_STAT_ANY): Likewise.
10670 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10671 (MSG_STAT_ANY): Likewise.
10672 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10673 (MSG_STAT_ANY): Likewise.
10674 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10675 (MSG_STAT_ANY): Likewise.
10676 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10677 (MSG_STAT_ANY): Likewise.
10678 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10679 (MSG_STAT_ANY): Likewise.
10680 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10681 (MSG_STAT_ANY): Likewise.
10682 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10683 (MSG_STAT_ANY): Likewise.
10684
10685 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10686 (MAP_TYPE): Change value to 0x2b.
10687
10688 2018-06-18 Florian Weimer <fweimer@redhat.com>
10689
10690 [BZ #15722]
10691 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10692 socket with SOCK_CLOEXEC.
10693
10694 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10695
10696 [BZ #23303]
10697 * sysdeps/powerpc/powerpc64/le/Makefile
10698 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10699 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10700 (gnulib-tests): Also add $(f128-loader-link) for
10701 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10702
10703 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10704
10705 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10706 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10707 of sendfile.
10708 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10709 (sendfile64): New strong alias.
10710 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10711 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10712 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10713 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10714 attribute.
10715 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10716 ___pthread_get_cleanup_stack.
10717 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10718 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10719 * mach/shortcut.awk: Make syscall stubs include
10720 <mach-shortcuts-hidden.h> and add hidden definition.
10721 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10722 (__mach_msg): Add hidden prototype.
10723 * mach/msg.c: Include <mach.h>.
10724 (__mach_msg): Add hidden definition.
10725 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10726 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10727 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10728 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10729 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10730 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10731 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10732 prototype and definition.
10733 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10734 hidden target for _hurd_self_sigstate.
10735
10736 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10737
10738 [BZ #23007]
10739 * stdlib/tst-strtod-nan-sign-main.c: New file.
10740 * stdlib/tst-strtod-nan-sign.c: Likewise.
10741 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10742 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10743 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10744 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10745 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10746
10747 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10748
10749 [BZ #23007]
10750 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10751 appropriate sign.
10752
10753 2018-06-14 Florian Weimer <fweimer@redhat.com>
10754
10755 [BZ #23290]
10756 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10757 that the result stays within the ISO-8859-1 range.
10758 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10759 characters are defined in IBM273.
10760
10761 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10762
10763 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10764 __mach_task_self): Remove attribute_hidden.
10765
10766 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10767
10768 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10769 ignore -Wrestrict for one test.
10770
10771 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10772 Szabolcs Nagy <szabolcs.nagy@arm.com>
10773
10774 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10775
10776 2018-06-14 Florian Weimer <fweimer@redhat.com>
10777
10778 * scripts/update-abilist.sh: Accept empty list of files to patch.
10779
10780 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10781
10782 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10783 test-xfail-check-abi-libmachuser): Add.
10784 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10785 __libc_read and __libc_write to __read and __write.
10786 * sysdeps/hurd/include/hurd/port.h: New file.
10787 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10788 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10789 __thread_switch, __evc_wait): Move declarations to...
10790 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10791 attribute_hidden.
10792 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10793 use PLT to call _hurd_self_sigstate.
10794
10795 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10796
10797 [BZ #23279]
10798 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10799 MAX_EXP as overflowing.
10800 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10801 overflow flag.
10802 (round_str): Output also whether result overflows in each rounding
10803 mode.
10804 * stdlib/tst-strtod-round-data: Add more tests.
10805 * stdlib/tst-strtod-round-data.h: Regenerated.
10806 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10807 (TEST): Handle extra arguments for overflow flags.
10808 (struct test_overflow): New type.
10809 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10810 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10811 (test_in_one_mode): Take argument with overflow information.
10812 (do_test): Update calls to test_in_one_mode.
10813
10814 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10815
10816 * elf/dl-load (_dl_dst_substitute): Correct comment.
10817 (_dl_dst_count): Likewise.
10818
10819 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10820 lll_futex_timed_wait.
10821
10822 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10823
10824 [BZ #23277]
10825 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10826 attribute.
10827 * math/test-nan-const.c: New file.
10828 * math/Makefile (tests): Add test-nan-const.
10829 (CFLAGS-test-nan-const.c): New variable.
10830
10831 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10832
10833 * benchtests/scripts/compare_strings.py (process_results): Add
10834 funcs argument. Compare only functions which are selected.
10835 (main): Check if base function is among selected functions.
10836 Pass selected functions to process_results.
10837 (__main__): Add -f/--functions argument.
10838
10839 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10840 Hongbo Zhang <hongbo.zhang@linaro.org>
10841
10842 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10843 __memcpy_falkor for phecda core.
10844 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10845 __memmove_falkor for phecda core.
10846 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10847 __memset_falkor for phecda core.
10848 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10849 for phecda core.
10850 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10851 macro to identify phecda core.
10852
10853 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10854 Andreas Schwab <schwab@suse.de>
10855 Dmitry V. Levin <ldv@altlinux.org>
10856 Florian Weimer <fweimer@redhat.com>
10857
10858 [BZ #23102]
10859 [BZ #21942]
10860 [BZ #18018]
10861 [BZ #23259]
10862 CVE-2011-0536
10863 * elf/dl-dst.h: Remove DL_DST_COUNT.
10864 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10865 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10866 (is_dst): Comment. Support ELF gABI.
10867 (_dl_dst_count): Comment. Simplify and count DSTs.
10868 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10869 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10870 locals.
10871
10872 2018-06-12 Zack Weinberg <zackw@panix.com>
10873
10874 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10875 * sysdeps/unix/sysv/linux/dl-sysdep.c
10876 Include not-cancel.h. Use __close_nocancel instead of __close,
10877 __open64_nocancel instead of __open, __read_nocancel instead of
10878 __libc_read, and __write_nocancel instead of __libc_write.
10879
10880 * csu/check_fds.c (check_one_fd)
10881 * sysdeps/posix/fdopendir.c (__fdopendir)
10882 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10883 instead of __fcntl and/or __libc_fcntl.
10884
10885 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10886 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10887 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10888 Use __open64_nocancel instead of __open_nocancel.
10889
10890 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10891 hidden_proto declarations to the end and issue them if either
10892 IS_IN(libc) or IS_IN(rtld).
10893 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10894 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10895 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10896 read_nocancel, waitpid_nocancel, write_nocancel.
10897
10898 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10899 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10900 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10901
10902 * nptl/pt-fcntl.c: New file.
10903 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10904 (libpthread-routines): Add pt-fcntl.
10905 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10906 (__libc_fcntl): Remove attribute_hidden.
10907 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10908 __fcntl_nocancel_adjusted, not fcntl_common.
10909 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10910 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10911 to fcntl_nocancel.c.
10912 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10913 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10914 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10915 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10916
10917 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10918 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10919 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10920 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10921 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10922 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10923 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10924 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10925 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10926 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10927 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10928 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10929 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10930 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10931 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10932 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10933 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10934 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10935 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10936 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10937
10938 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10939 libpthread-routines.
10940 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10941 defines nothing.
10942
10943 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10944 __libc_read, and __write instead of __libc_write. Define
10945 __open64 in addition to __open.
10946
10947 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10948
10949 [BZ #23250]
10950 [BZ #10686]
10951 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10952 to _private_tm[3] and add __glibc_reserved2.
10953 Add _Static_assert of offset of __private_ss == 0x30.
10954 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10955 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10956
10957 2018-06-12 Florian Weimer <fweimer@redhat.com>
10958
10959 x86: Make strncmp usable from rtld.
10960 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10961 __strncmp_ia32 if in libc (and not in rtld).
10962 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10963 strncmp if not in libc (and not to __strncmp_sse2).
10964
10965 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10966
10967 [BZ #23140]
10968 * localedata/locales/gd_GB (mon): Rename to...
10969 (alt_mon): This.
10970 (mon): Import from CLDR (genitive case).
10971 * localedata/locales/hsb_DE (mon): Rename to...
10972 (alt_mon): This.
10973 (mon): Import from CLDR (genitive case).
10974 * localedata/locales/wa_BE (mon): Rename to...
10975 (alt_mon): This.
10976 (mon): Add, fill with the proper genitive forms, but CLDR data
10977 is incomplete; completed according to the comments in this file.
10978 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10979
10980 * localedata/locales/wa_BE (country_name): Reword
10981 "Beljike" -> "Beldjike".
10982
10983 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10984
10985 [BZ #23272]
10986 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10987 cases of non-finite arguments.
10988 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10989
10990 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10991
10992 [BZ #23174]
10993 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10994
10995 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10996
10997 [BZ #23264]
10998 * include/unistd.h (__execvpex): New prototype.
10999 * posix/Makefile (tests): Add tst-spawn4.
11000 (tests-internal): Add tst-spawn4-compat.
11001 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
11002 * posix/tst-spawn4-compat.c: New file.
11003 * posix/tst-spawn4.c: Likewise.
11004 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
11005 binaries as shell scripts.
11006 * sysdeps/posix/spawni.c (__spawni): Likewise.
11007
11008 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
11009
11010 [BZ #23145]
11011 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
11012 ($(all-built-dso:=.dynsym): New target.
11013 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
11014 ($(objpfx)check-initfini.out): New target.
11015 (generated): Add check-initfini.out.
11016 * scripts/check-initfini.awk: New file.
11017 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
11018 (_fini): Likewise.
11019 * sysdeps/alpha/crti.S (_init): Mark as hidden.
11020 (_fini): Likewise.
11021 * sysdeps/arm/crti.S (_init): Mark as hidden.
11022 (_fini): Likewise.
11023 * sysdeps/hppa/crti.S (_init): Mark as hidden.
11024 (_fini): Likewise.
11025 * sysdeps/i386/crti.S (_init): Mark as hidden.
11026 (_fini): Likewise.
11027 * sysdeps/ia64/crti.S (_init): Mark as hidden.
11028 (_fini): Likewise.
11029 * sysdeps/m68k/crti.S (_init): Mark as hidden.
11030 (_fini): Likewise.
11031 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
11032 (_fini): Likewise.
11033 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
11034 (_fini): Likewise.
11035 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
11036 (_fini): Likewise.
11037 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
11038 (_fini): Likewise.
11039 * sysdeps/nios2/crti.S (_init): Mark as hidden.
11040 (_fini): Likewise.
11041 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
11042 (_fini): Likewise.
11043 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
11044 (_fini): Likewise.
11045 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
11046 (_fini): Likewise.
11047 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
11048 (_fini): Likewise.
11049 * sysdeps/sh/crti.S (_init): Mark as hidden.
11050 (_fini): Likewise.
11051 * sysdeps/sparc/crti.S (_init): Mark as hidden.
11052 (_fini): Likewise.
11053 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
11054 (_fini): Likewise.
11055
11056 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11057
11058 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
11059 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
11060 and TF redirection to KFtype and KF only when the default
11061 long double type is not the IEEE 128-bit floating point type.
11062
11063 2018-06-05 Joseph Myers <joseph@codesourcery.com>
11064
11065 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
11066 macro.
11067 (HWCAP_USCAT): Likewise.
11068 (HWCAP_ILRCPC): Likewise.
11069 (HWCAP_FLAGM): Likewise.
11070 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11071 Increase to 28.
11072 (_dl_aarch64_cap_flags): Add new flag names.
11073
11074 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11075 (MAP_FIXED_NOREPLACE): New macro.
11076 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11077 (MAP_FIXED_NOREPLACE): Likewise.
11078 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11079 (MAP_FIXED_NOREPLACE): Likewise.
11080 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11081 (MAP_FIXED_NOREPLACE): Likewise.
11082 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11083 (MAP_FIXED_NOREPLACE): Likewise.
11084 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11085 (MAP_FIXED_NOREPLACE): Likewise.
11086 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11087 (MAP_FIXED_NOREPLACE): Likewise.
11088 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11089 (MAP_FIXED_NOREPLACE): Likewise.
11090 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11091 (MAP_FIXED_NOREPLACE): Likewise.
11092 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11093 (MAP_FIXED_NOREPLACE): Likewise.
11094 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11095 (MAP_FIXED_NOREPLACE): Likewise.
11096 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11097 (MAP_FIXED_NOREPLACE): Likewise.
11098 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11099 (MAP_FIXED_NOREPLACE): Likewise.
11100 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11101 (MAP_FIXED_NOREPLACE): Likewise.
11102 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11103 (MAP_FIXED_NOREPLACE): Likewise.
11104
11105 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11106 version to 4.17.
11107
11108 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11109
11110 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11111 version to 4.17
11112
11113 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11114
11115 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11116 int.
11117 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11118
11119 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11120
11121 * benchtests/scripts/compare_string.py: (process_results) Catch
11122 exception in non-existent base_func and catch exception in
11123 non-existent attribute.
11124 (parse_file) Catch exception if input file does not exist.
11125
11126 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11127
11128 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11129 options to avoid diff calculation and omit header, respectively.
11130 (main): process --no-diff and --no-header
11131
11132 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11133 H.J. Lu <hongjiu.lu@intel.com>
11134
11135 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11136 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11137 wcsncmp-sse2.
11138 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11139 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11140 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11141 and __wcsncmp_sse2.
11142 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11143 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11144 AVX unaligned load is fast and vzeroupper is preferred.
11145 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11146 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11147 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11148 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11149 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11150 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11151 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11152 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11153 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11154 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11155 is undefined.
11156
11157 2018-06-01 Florian Weimer <fweimer@redhat.com>
11158
11159 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11160 configuring with --disable-multi-arch, building with
11161 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11162 Haswell-era CPU.
11163
11164 2018-06-01 Florian Weimer <fweimer@redhat.com>
11165
11166 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11167 results from building with “-march=x86-64 -mtune=generic
11168 -mfpmath=sse” and running on a Haswell-era CPU.
11169
11170 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11171
11172 [BZ #18473]
11173 * soft-fp/sqrttf2.c: Remove file.
11174 * soft-fp/sqrtdf2.c: Move to ....
11175 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11176 <shlib-compat.h>.
11177 (__sqrtdf2): Make conditional on
11178 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11179 symbol.
11180 * soft-fp/sqrtsf2.c: Move to ....
11181 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11182 <shlib-compat.h>.
11183 (__sqrtsf2): Make conditional on
11184 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11185 symbol.
11186 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11187 (gcc-double-routines): Remove sqrtdf2.
11188 (gcc-quad-routines): Remove sqrttf2.
11189 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11190 Do not filter out sqrtsf2 and sqrtdf2.
11191 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11192 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11193
11194 2018-06-01 Florian Weimer <fweimer@redhat.com>
11195
11196 * sysdeps/generic/libcidn.abilist: Remove file.
11197
11198 2018-06-01 Florian Weimer <fweimer@redhat.com>
11199
11200 [BZ #23236]
11201 * libio/strfile.h (struct _IO_str_fields): Rename members to
11202 discourage their use and add comment.
11203 (_IO_STR_DYNAMIC): Remove unused macro.
11204 * libio/strops.c (_IO_str_init_static_internal): Do not use
11205 callback pointers. Call malloc and free.
11206 (_IO_str_overflow): Do not use callback pointers. Call malloc
11207 and free.
11208 (enlarge_userbuf): Likewise.
11209 (_IO_str_finish): Call free.
11210 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11211 _allocate_buffer_unused.
11212 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11213 and free.
11214 (enlarge_userbuf): Likewise.
11215 (_IO_wstr_finish): Call free.
11216 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11217 _allocate_buffer_unused, _free_buffer_unused.
11218 * libio/memstream.c (__open_memstream): Likewise.
11219 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11220 * libio/wmemstream.c (open_wmemstream): Likewise.
11221
11222 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11223
11224 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11225 AMD Ryzen 7 1800X.
11226
11227 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11228
11229 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11230 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11231 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11232 New file.
11233 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11234 Likewise.
11235 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11236
11237 2018-05-29 Florian Weimer <fweimer@redhat.com>
11238
11239 * support/Makefile (libsupport-routines): Add
11240 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11241 xpthread_barrierattr_setpshared.
11242 * support/xpthread_barrierattr_destroy.c: New file.
11243 * support/xpthread_barrierattr_init.c: Likewise.
11244 * support/xpthread_barrierattr_setpshared.c: Likewise.
11245
11246 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11247
11248 [BZ #23206]
11249 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11250 _r_debug and update DT_DEBUG for debugger.
11251
11252 2018-05-29 Florian Weimer <fweimer@redhat.com>
11253
11254 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11255 (tst-strtod5i.out): Likewise.
11256
11257 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11258
11259 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11260 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11261 (sparc64-quad-routines): New variable. Moved from ....
11262 [$(subdir) = soft-fp] (sysdep_routines): Add
11263 $(sparc64-quad-routines). Moved from ....
11264 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11265 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11266 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11267 moved from ....
11268 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11269 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11270 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11271 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11272 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11273 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11274 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11275 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11276 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11277 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11278 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11279 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11280 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11281 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11282 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11283 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11284 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11285 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11286 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11287 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11288 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11289 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11290 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11291 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11292 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11293 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11294 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11295 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11296 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11297 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11298 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11299 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11300 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11301 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11302 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11303 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11304 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11305 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11306 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11307 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11308 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11309 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11310 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11311 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11312 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11313 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11314 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11315 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11316 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11317 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11318 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11319 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11320 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11321 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11322 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11323 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11324 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11325 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11326
11327 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11328 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11329 (sparc32-quad-routines): New variable. Moved from ....
11330 [$(subdir) = soft-fp] (sysdep_routines): Add
11331 $(sparc32-quad-routines). Moved from ....
11332 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11333 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11334 moved from ....
11335 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11336 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11337 * sysdeps/sparc/sparc32/q_add.c: ... here.
11338 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11339 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11340 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11341 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11342 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11343 * sysdeps/sparc/sparc32/q_div.c: ... here.
11344 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11345 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11346 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11347 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11348 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11349 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11350 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11351 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11352 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11353 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11354 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11355 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11356 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11357 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11358 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11359 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11360 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11361 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11362 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11363 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11364 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11365 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11366 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11367 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11368 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11369 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11370 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11371 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11372 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11373 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11374 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11375 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11376 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11377 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11378 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11379 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11380 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11381 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11382 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11383 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11384 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11385 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11386 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11387 * sysdeps/sparc/sparc32/q_util.c: ... here.
11388 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11389 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11390 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11391 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11392
11393 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11394 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11395
11396 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11397 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11398 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11399 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11400
11401 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11402
11403 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11404 powerpc/soft-fp.
11405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11406 Likewise.
11407 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11408 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11409
11410 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11411
11412 [BZ #23171]
11413 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11414 double version.
11415
11416 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11417
11418 * sysdeps/sh/Implies: Remove sh/soft-fp.
11419 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11420 * sysdeps/sh/sfp-machine.h: ... here.
11421
11422 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11423
11424 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11425 (__mempcpy_erms): Skip zero length.
11426 (__memmove_erms): Likewise.
11427 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11428 (__memset_erms): Likewise.
11429
11430 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11431
11432 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11433 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11434 Add functions moved from ....
11435 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11436 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11437 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11438 from ....
11439 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11440 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11441 * sysdeps/alpha/e_sqrtl.c: ... here.
11442 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11443 * sysdeps/alpha/local-soft-fp.h: ... here.
11444 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11445 * sysdeps/alpha/ots_add.c: ... here.
11446 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11447 * sysdeps/alpha/ots_cmp.c: ... here.
11448 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11449 * sysdeps/alpha/ots_cmpe.c: ... here.
11450 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11451 * sysdeps/alpha/ots_cvtqux.c: ... here.
11452 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11453 * sysdeps/alpha/ots_cvtqx.c: ... here.
11454 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11455 * sysdeps/alpha/ots_cvttx.c: ... here.
11456 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11457 * sysdeps/alpha/ots_cvtxq.c: ... here.
11458 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11459 * sysdeps/alpha/ots_cvtxt.c: ... here.
11460 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11461 * sysdeps/alpha/ots_div.c: ... here.
11462 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11463 * sysdeps/alpha/ots_mul.c: ... here.
11464 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11465 * sysdeps/alpha/ots_nintxq.c: ... here.
11466 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11467 * sysdeps/alpha/ots_sub.c: ... here.
11468 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11469 * sysdeps/alpha/sfp-machine.h: ... here.
11470
11471 2018-05-23 Florian Weimer <fweimer@redhat.com>
11472
11473 [BZ #19728]
11474 [BZ #19729]
11475 [BZ #22247]
11476 CVE-2016-6261
11477 CVE-2016-6263
11478 CVE-2017-14062
11479 Switch to extern IDNA implementation (libidn2).
11480 * libidn: Remove subdirectory.
11481 * LICENSES: Do not mention licensing conditions for the removed
11482 libidn code.
11483 * config.h.in (HAVE_LIBIDN): Remove.
11484 * include/dlfcn.h (__libc_dlopen): Update comment.
11485 * include/idna.h: Remove file.
11486 * inet/Makefile (routines): Add idna.
11487 (tests-static, tests-internal): Add tst-idna_name_classify.
11488 (LOCALES): Generate locales for tests.
11489 (tst-idna_name_classify.out): Depend on generated locales.
11490 * inet/idna_name_classify.c: New file.
11491 * inet/tst-idna_name_classify.c: Likewise.
11492 * inet/net-internal.h (__idna_to_dns_encoding)
11493 (__idna_from_dns_encoding): Declare.
11494 * inet/net-internal.h (enum idna_name_classification): Define.
11495 (__idna_name_classify): Declare.
11496 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11497 __idna_from_dns_encoding.
11498 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11499 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11500 name as a fallback in case of encoding errors.
11501 (getnameinfo): Use DEPRECATED_NI_IDN.
11502 * inet/idna.c: New file.
11503 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11504 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11505 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11506 (modules-names): Add tst-no-libidn2.
11507 (extra-test-objs): Add tst-no-libidn2.os.
11508 (LDFLAGS-tst-no-libidn2.so): Set soname.
11509 (LOCALES): Set, and generate locales.
11510 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11511 (tst-resolv-ai_idn-latin1): Likewise.
11512 (tst-resolv-ai_idn-nolibidn2): Likewise.
11513 (tst-resolv-ai_idn.out): Depend on locales.
11514 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11515 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11516 tst-no-libidn2.so.
11517 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11518 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11519 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11520 * resolv/tst-resolv-ai_idn.c: New file.
11521 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11522 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11523 * resolv/tst-no-libidn2.c: Likewise.
11524 * support/support_format_addrinfo.c (format_ai_flags): Do not
11525 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11526 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11527 (gaih_inet): Call __idna_to_dns_encoding and
11528 __idna_from_dns_encoding, and use the original (punycode) name if
11529 __idna_from_dns_encoding fails due to an encoding error.
11530 (getaddrinfo): Use DEPRECATED_AI_IDN.
11531 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11532 * sysdeps/unix/inet/configure: Remove file.
11533 * sysdeps/unix/inet/configure.ac: Likewise.
11534
11535 2018-05-23 Florian Weimer <fweimer@redhat.com>
11536
11537 Implement allocate_once.
11538 * include/allocate_once.h: New file.
11539 * misc/allocate_once.c: Likewise.
11540 * misc/tst-allocate_once.c: Likewise.
11541 * misc/Makefile (routines): Add allocate_once.
11542 (tests-internal): Add tst-allocate_once.
11543 (generated): Add tst-allocate_once.mtrace,
11544 tst-allocate_once-mem.out.
11545 (tests-special): Add tst-allocate_once-mem.out.
11546 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11547 (tst-allocate_once-mem.out): Call mtrace.
11548 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11549
11550 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11551
11552 [BZ #23196]
11553 * string/test-memcpy.c (do_test1): New function.
11554 (test_main): Call it.
11555
11556 2018-05-23 Andreas Schwab <schwab@suse.de>
11557
11558 [BZ #23196]
11559 CVE-2018-11237
11560 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11561 (L(preloop_large)): Save initial destination pointer in %r11 and
11562 use it instead of %rax after the loop.
11563 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11564
11565 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11566
11567 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11568 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11569 -I../soft-fp. Moved from ....
11570 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11571 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11572 * sysdeps/aarch64/e_sqrtl.c: ... here.
11573 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11574 * sysdeps/aarch64/sfp-machine.h: ... here.
11575
11576 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11577 -Wmaybe-uninitialized around access to fq[0].
11578 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11579 Likewise.
11580
11581 [BZ #18471]
11582 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11583 aliases for non-libc case of versioned symbols.
11584 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11585 (llseek): Define as compat symbol if
11586 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11587 with link warning.
11588 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11589 Make into a compat symbol, disabled for minimum symbol version
11590 GLIBC_2.28 and later.
11591 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11592
11593 2018-05-22 Florian Weimer <fweimer@redhat.com>
11594
11595 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11596 not add -mpreferred-stack-boundary=4.
11597 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11598 (stack-align-test-flags): Likewise.
11599 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11600 Likewise.
11601 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11602 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11603 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11604 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11605 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11606 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11607 (CFLAGS-tst-align2.c): Likewise.
11608
11609 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11610
11611 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11612 (index_arch_Prefer_FSRM): Likewise.
11613 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11614 Also check Prefer_FSRM.
11615 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11616 Also return OPTIMIZE (erms) for Prefer_FSRM.
11617
11618 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11619
11620 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11621 (index_cpu_FSRM): Likewise.
11622 (reg_FSRM): Likewise.
11623
11624 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11625
11626 * math/gen-tgmath-tests.py: Import sys.
11627 (Tests.__init__): Initialize macros_seen.
11628 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11629 if requested to do so for this macro.
11630 (Tests.add_all_tests): Take argument for macro for which to
11631 generate tests.
11632 (Tests.check_macro_list): New function.
11633 (main): Handle check-list argument and argument specifying macro
11634 for which to generate tests.
11635 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11636 [PYTHON] (tgmath3-macro-tests): Likewise.
11637 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11638 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11639 not test-tgmath3.c.
11640 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11641 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11642 to CFLAGS.
11643 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11644 [PYTHON] ($(foreach
11645 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11646 rule.
11647 [PYTHON] (tests-special): Add
11648 $(objpfx)test-tgmath3-macro-list.out.
11649 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11650
11651 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11652 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11653 later.
11654
11655 [BZ #22639]
11656 * time/tzset.c (SECSPERDAY): Cast to time_t.
11657 * time/tst-y2039.c: New file.
11658 * time/Makefile (tests): Add tst-y2039.
11659
11660 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11661
11662 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11663 (PREFETCH_ONE_SET): Remove duplicate line.
11664
11665 2018-05-17 Florian Weimer <fweimer@redhat.com>
11666
11667 * sysdeps/generic/math-type-macros-double.h: Include
11668 <math-nan-payload-double.h> after <libm-alias-double.h>.
11669 * sysdeps/generic/math-type-macros-float.h: Include
11670 <math-nan-payload-float.h> after <libm-alias-float.h>.
11671 * sysdeps/generic/math-type-macros-float128.h: Include
11672 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11673 * sysdeps/generic/math-type-macros-ldouble.h: Include
11674 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11675
11676 2018-05-17 Andreas Schwab <schwab@suse.de>
11677
11678 * resolv/res_send.c (__res_context_send): Don't set errno when
11679 returing error after malloc failure.
11680
11681 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11682
11683 * nptl/allocatestack.c (allocate_stack): Remove the
11684 !__ASSUME_PRIVATE_FUTEX paths.
11685 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11686 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11687 Likewise.
11688 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11689 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11690 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11691 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11692 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11693 !__ASSUME_PRIVATE_FUTEX path.
11694 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11695 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11696 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11697 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11698 !__ASSUME_PRIVATE_FUTEX macros.
11699 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11700 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11701 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11702 * sysdeps/unix/sysv/linux/kernel-features.h
11703 (__ASSUME_PRIVATE_FUTEX): Removed.
11704
11705 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11706
11707 * math/Makefile (libm-narrow-fns): Add div.
11708 (libm-test-funcs-narrow): Likewise.
11709 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11710 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11711 * math/gen-auto-libm-tests.c (test_functions): Add div.
11712 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11713 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11714 (NARROW_DIV_TRIVIAL): Likewise.
11715 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11716 macro.
11717 (__ddivl): Likewise.
11718 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11719 ddiv.
11720 (CFLAGS-nldbl-ddiv.c): New variable.
11721 (CFLAGS-nldbl-fdiv.c): Likewise.
11722 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11723 __nldbl_ddivl.
11724 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11725 prototype.
11726 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11727 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11728 * math/auto-libm-test-in: Add tests of div.
11729 * math/auto-libm-test-out-narrow-div: New generated file.
11730 * math/libm-test-narrow-div.inc: New file.
11731 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11732 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11733 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11734 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11735 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11736 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11737 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11738 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11739 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11740 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11741 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11742 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11743 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11744 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11745 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11746 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11747 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11748 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11749 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11750 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11751 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11752 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11753 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11754 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11755 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11756 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11757 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11758 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11759 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11760 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11761 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11762 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11763 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11764 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11765 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11766 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11767 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11768 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11769 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11770 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11771 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11772 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11773 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11774 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11775
11776 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11777
11778 [BZ #23178]
11779 * nscd/nscd-client.h (sendfileall): Remove prototype.
11780 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11781 (handle_request): Use writeall instead of sendfileall.
11782 * nscd/aicache.c (addhstaiX): Likewise.
11783 * nscd/grpcache.c (cache_addgr): Likewise.
11784 * nscd/hstcache.c (cache_addhst): Likewise.
11785 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11786 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11787 * nscd/pwdcache.c (cache_addpw): Likewise.
11788 * nscd/servicescache.c (cache_addserv): Likewise.
11789 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11790 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11791 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11792 Remove define.
11793
11794 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11795
11796 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11797 Include <string/strncat.c>.
11798 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11799 alias.
11800 (__GI___strncat): New hidden alias.
11801
11802 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11803
11804 * sysdeps/mips/mips32/libm-test-ulps: Update.
11805 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11806
11807 2018-05-16 Florian Weimer <fweimer@redhat.com>
11808
11809 * support/Makefile (libsupport-routines): Add support_quote_blob,
11810 support_test_compare_blob.
11811 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11812 * support/check.h (TEST_COMPARE_BLOB): Define.
11813 (support_test_compare_blob): Declare.
11814 * support/support.h (support_quote_blob): Declare.
11815 * support/support_quote_blob.c: New file.
11816 * support/support_test_compare_blob.c: Likewise.
11817 * support/tst-support_quote_blob.c: Likewise.
11818 * support/tst-test_compare_blob.c: Likewise.
11819
11820 2018-05-16 Florian Weimer <fweimer@redhat.com>
11821
11822 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11823 of <strtod_nan_double.h>.
11824 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11825 instead of SET_MANTISSA.
11826 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11827 of include <strtod_nan_float.h>.
11828 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11829 instead of <strtod_nan_ldouble.h>.
11830 * stdlib/strtod_nan_double.h: Move to ...
11831 * sysdeps/generic/math-nan-payload-double.h: ... here.
11832 (FLOAT): Remove definition.
11833 (SET_MANTISSA): Rename to ...
11834 (SET_NAN_PAYLOAD): ... this.
11835 * stdlib/strtod_nan_float.h: Move to ...
11836 * sysdeps/generic/math-nan-payload-float.h: ... here.
11837 (FLOAT): Remove definition.
11838 (SET_MANTISSA): Rename to ...
11839 (SET_NAN_PAYLOAD): ... this.
11840 * sysdeps/generic/math-type-macros-double.h: Include
11841 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11842 instead of <math-svid-compat.h>.
11843 * sysdeps/generic/math-type-macros-float.h: Include
11844 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11845 instead of <math-svid-compat.h>.
11846 * sysdeps/generic/math-type-macros-float128.h: Include
11847 <math-nan-payload-float128.h>.
11848 * sysdeps/generic/math-type-macros-ldouble.h: Include
11849 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11850 instead of <math-svid-compat.h>.
11851 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11852 check for definition.
11853 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11854 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11855 Include <ieee754_float128.h>.
11856 (FLOAT): Remove definition.
11857 (SET_MANTISSA): Rename to ...
11858 (SET_NAN_PAYLOAD): ... this.
11859 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11860 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11861 Do not include <float128_private.h>.
11862 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11863 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11864 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11865 (FLOAT): Remove definition.
11866 (SET_MANTISSA): Rename to ...
11867 (SET_NAN_PAYLOAD): ... this.
11868 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11869 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11870 (FLOAT): Remove definition.
11871 (SET_MANTISSA): Rename to ...
11872 (SET_NAN_PAYLOAD): ... this.
11873 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11874 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11875 (FLOAT): Remove definition.
11876 (SET_MANTISSA): Rename to ...
11877 (SET_NAN_PAYLOAD): ... this.
11878 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11879 of "../stdlib/strtod_nan_double.h".
11880 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11881 of "../stdlib/strtod_nan_float.h".
11882 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11883 instead of "../stdlib/strtod_nan_ldouble.h".
11884 * manual/arith.texi (Parsing of Floats): Adjust comment.
11885
11886 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11887
11888 * math/Makefile (libm-narrow-fns): Add mul.
11889 (libm-test-funcs-narrow): Likewise.
11890 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11891 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11892 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11893 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11894 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11895 (NARROW_MUL_TRIVIAL): Likewise.
11896 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11897 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11898 macro.
11899 (__dmull): Likewise.
11900 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11901 dmul.
11902 (CFLAGS-nldbl-dmul.c): New variable.
11903 (CFLAGS-nldbl-fmul.c): Likewise.
11904 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11905 __nldbl_dmull.
11906 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11907 prototype.
11908 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11909 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11910 * math/auto-libm-test-in: Add tests of mul.
11911 * math/auto-libm-test-out-narrow-mul: New generated file.
11912 * math/libm-test-narrow-mul.inc: New file.
11913 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11914 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11915 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11916 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11917 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11918 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11919 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11920 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11921 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11922 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11923 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11924 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11925 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11926 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11927 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11928 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11929 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11930 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11931 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11932 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11933 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11934 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11935 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11936 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11937 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11938 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11939 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11940 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11941 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11942 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11943 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11944 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11945 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11946 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11947 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11948 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11949 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11950 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11951 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11952 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11953 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11954 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11955 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11956 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11957
11958 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11959
11960 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11961 with *%eax in call.
11962
11963 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11964
11965 * sysdeps/i386/ldsodefs.h: Removed.
11966 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11967 * sysdeps/x86/ldsodefs.h: This.
11968 (La_i86_regs): New.
11969 (La_i86_retval): Likewise.
11970 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11971 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11972
11973 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11974
11975 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11976 unnecessary testl.
11977
11978 2018-05-13 Alan Modra <amodra@gmail.com>
11979
11980 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11981 R_PARISC_TLS_DTPOFF32 reloc addend.
11982
11983 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11984
11985 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11986 * math/math.h: Restrict the prototype definition for the functions
11987 issignaling(_Float128) and iszero(_Float128); and template
11988 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11989 __HAVE_FLOAT128_UNLIKE_LDBL.
11990 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11991 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11992 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11993 __f128() constants; define the type _Float128 as long double;
11994 and reuse long double in __CFLOAT128.
11995
11996 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11997
11998 * sysdeps/generic/math_private.h: Do not include
11999 <math-barriers.h>.
12000 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
12001 <math_private.h>.
12002 * math/fromfp.h: Include <math-barriers.h>.
12003 * math/math-narrow.h: Likewise.
12004 * math/s_nextafter.c: Likewise.
12005 * math/s_nexttowardf.c: Likewise.
12006 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
12007 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
12008 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
12009 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
12010 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12011 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12012 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12013 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12014 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12015 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12016 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12017 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12018 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12019 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12020 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
12021 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
12022 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12023 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12024 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12025 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12026 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12027 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12028 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12029 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12030 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12031 * sysdeps/ieee754/k_standardl.c: Likewise.
12032 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12033 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12034 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12035 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
12036 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12037 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12038 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12039 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12040 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12041 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12042 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
12043 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
12044 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
12045 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
12046 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12047 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
12048 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
12049 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
12050 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
12051 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
12052 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
12053 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
12054
12055 2018-05-11 Florian Weimer <fweimer@redhat.com>
12056
12057 Use 64-bit epoch values in the time zone file parser.
12058 * include/time.h (internal_time_t): Define.
12059 (__tzfile_compute): Use it.
12060 * time/tzfile.c (struct leap): Use internal_time_t for epoch
12061 member.
12062 (transitions): Switch to internal_time_t.
12063 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
12064 types.
12065 (__tzfile_compute): Use internal_time_t for timer argument. Check
12066 for truncation before calling __offtime.
12067
12068 2018-05-11 Florian Weimer <fweimer@redhat.com>
12069
12070 [BZ #23166]
12071 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12072 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12073 Likewise.
12074 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12075 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12076 export without --enable-obsolete-rpc.
12077 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12078 symbol. This should not have been exported, ever.
12079
12080 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12081
12082 [BZ #23152]
12083 * localedata/locales/gd_GB (abmon): Fix typo in May:
12084 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12085
12086 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12087
12088 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12089 Use multiple registers to copy data in loop tail.
12090
12091 * sysdeps/aarch64/multiarch/memmove_falkor.S
12092 (__memmove_falkor): Use multiple registers to move data in
12093 loop tail.
12094
12095 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12096
12097 * math/math-underflow.h: New file.
12098 * sysdeps/generic/math_private.h: Do not include <float.h>.
12099 (fabs_tg): Remove macro. Moved to math-underflow.h.
12100 (min_of_type_f): Likewise.
12101 (min_of_type_): Likewise.
12102 (min_of_type_l): Likewise.
12103 (min_of_type_f128): Likewise.
12104 (min_of_type): Likewise.
12105 (math_check_force_underflow): Likewise.
12106 (math_check_force_underflow_nonneg): Likewise.
12107 (math_check_force_underflow_complex): Likewise.
12108 * math/e_exp2_template.c: Include <math-underflow.h>.
12109 * math/k_casinh_template.c: Likewise.
12110 * math/s_catan_template.c: Likewise.
12111 * math/s_catanh_template.c: Likewise.
12112 * math/s_ccosh_template.c: Likewise.
12113 * math/s_cexp_template.c: Likewise.
12114 * math/s_clog10_template.c: Likewise.
12115 * math/s_clog_template.c: Likewise.
12116 * math/s_csin_template.c: Likewise.
12117 * math/s_csinh_template.c: Likewise.
12118 * math/s_csqrt_template.c: Likewise.
12119 * math/s_ctan_template.c: Likewise.
12120 * math/s_ctanh_template.c: Likewise.
12121 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12122 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12123 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12124 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12125 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12126 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12127 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12128 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12129 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12130 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12131 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12132 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12133 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12134 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12135 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12136 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12137 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12138 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12139 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12140 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12141 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12142 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12143 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12144 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12145 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12146 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12147 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12148 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12149 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12150 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12151 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12152 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12153 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12154 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12155 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12156 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12157 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12158 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12159 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12160 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12161 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12162 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12163 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12164 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12165 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12166 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12167 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12168 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12169 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12170 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12171 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12172 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12173 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12174 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12175 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12176 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12177 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12178 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12179 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12180 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12181 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12182 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12183 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12184 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12185 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12186 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12187 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12188 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12189 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12190 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12191 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12192 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12193 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12194 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12195 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12196 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12197 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12198 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12199 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12200 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12201 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12202 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12203 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12204 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12205
12206 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12207
12208 * sysdeps/generic/math-barriers.h: New file.
12209 * sysdeps/generic/math_private.h [!math_opt_barrier]
12210 (math_opt_barrier): Move to math-barriers.h.
12211 [!math_opt_barrier] (math_force_eval): Likewise.
12212 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12213 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12214 math-barriers.h.
12215 (math_force_eval): Likewise.
12216 * sysdeps/alpha/fpu/math-barriers.h: New file.
12217 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12218 math-barriers.h.
12219 (math_force_eval): Likewise.
12220 * sysdeps/x86/fpu/math-barriers.h: New file.
12221 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12222 math-barriers.h.
12223 (math_force_eval): Likewise.
12224 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12225 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12226 multiple-include guard for rename.
12227 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12228 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12229 math-barriers.h.
12230 (math_force_eval): Likewise.
12231
12232 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12233
12234 [BZ #22786]
12235 CVE-2018-11236
12236 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12237 computation.
12238 * stdlib/Makefile (test-bz22786): New test.
12239 * stdlib/test-bz22786.c: New test.
12240
12241 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12242
12243 * include/math-narrow-eval.h: New file. Contents moved from ....
12244 * sysdeps/generic/math_private.h: ... here.
12245 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12246 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12247 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12248 * stdlib/strtod_l.c: Likewise.
12249 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12250 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12251 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12252 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12253 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12254 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12255 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12256 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12257 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12258 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12259 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12260 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12261 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12262 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12263 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12264 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12265 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12266 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12267 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12268 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12269 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12270 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12271 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12272 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12273 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12274 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12275 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12276 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12277 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12278
12279 2018-05-08 Andreas Schwab <schwab@suse.de>
12280
12281 * sysdeps/nptl/internaltypes.h: Fix comment.
12282
12283 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12284
12285 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12286 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12287 hidden.
12288
12289 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12290
12291 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12292 of I into loop header.
12293 * benchtests/bench-memmove-walk.c
12294 (test_main): Likewise.
12295
12296 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12297
12298 Revert:
12299 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12300 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12301
12302 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12303
12304 [BZ #20419]
12305 * elf/dl-load.c (open_verify): Fix stack overflow.
12306 * elf/Makefile (tst-big-note): New test.
12307 * elf/tst-big-note-lib.S: New.
12308 * elf/tst-big-note.c: New.
12309
12310 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12311
12312 * scripts/abilist.awk: Ignore absolute symbols.
12313 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12314 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12315 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12316 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12317 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12318 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12319 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12320 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12321 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12322 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12323 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12324 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12398 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12399 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12405 Likewise.
12406 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12419 Likewise.
12420 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12431 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12432 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12437 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12438 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12442 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12443 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12445 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12446 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12447 Likewise.
12448 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12468 Likewise.
12469 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12473 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12477 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12501 Likewise.
12502 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12503 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12504 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12507 Likewise.
12508 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12509 Likewise.
12510 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12512 Likewise.
12513 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12515 Likewise.
12516 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12517 Likewise.
12518 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12521 Likewise.
12522 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12523 Likewise.
12524 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12525 Likewise.
12526 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12530 Likewise.
12531 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12537 Likewise.
12538 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12540 Likewise.
12541 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12542 Likewise.
12543 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12544 Likewise.
12545 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12546 Likewise.
12547 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12550 Likewise.
12551 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12552 Likewise.
12553 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12554 Likewise.
12555 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12556 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12557 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12558 Likewise.
12559 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12573 Likewise.
12574 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12586 Likewise.
12587 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12589 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12591 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12595 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12596 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12597 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12598 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12599 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12600 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12601 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12602 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12603 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12604 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12605 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12606 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12607 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12608 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12609 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12610 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12611 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12612 Likewise.
12613 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12614 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12615 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12616 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12617 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12618 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12619 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12620 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12621 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12622 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12623 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12624 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12625 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12626 Likewise.
12627 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12628 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12629 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12630 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12631 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12632 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12633 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12634 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12635 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12636 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12637 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12638 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12639 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12640 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12641 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12642 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12643 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12644 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12645 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12646 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12647 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12648 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12649 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12650 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12651 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12652 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12653 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12654 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12655 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12656 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12657 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12658 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12659 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12660 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12661 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12662 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12663 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12664 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12665
12666 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12667
12668 [BZ #23137]
12669 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12670 Use atomic_load_acquire to load __tid.
12671
12672 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12673
12674 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12675 Restore the pointer into %rdx, after syscall and use %rdx,
12676 instead of %rsi, to restore context.
12677
12678 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12679
12680 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12681 Pop the pointer into %rdx after syscall and use %rdx, instead
12682 of %rsi, to restore context.
12683
12684 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12685
12686 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12687 handlers after setjmp.
12688 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12689 defined.
12690 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12691 <libc-pointer-arith.h>.
12692 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12693 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12694 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12695 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12696 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12697 * sysdeps/x86/__longjmp_cancel.S: New file.
12698 * sysdeps/x86/longjmp.c: Likewise.
12699 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12700
12701 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12702
12703 * NEWS: Add ustat.h deprecation entry.
12704 * bits/ustat.h: Remove file.
12705 * misc/sys/ustat.h: Likewise.
12706 * misc/ustat.h: Likewise.
12707 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12708 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12709 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12710 compatibility mode.
12711 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12712 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12713 generic Linux implementation.
12714
12715 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12716
12717 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12718 * math/w_expl_compat.c: Likewise.
12719 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12720
12721 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12722
12723 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12724
12725 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12726
12727 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12728 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12729 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12730 Remove.
12731 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12732 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12733 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12734 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12735 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12736 and SYSCALL_LL64.
12737
12738 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12739
12740 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12741
12742 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12743 * math/w_asin_template.c: Likewise.
12744 * math/w_atanh_template.c: Likewise.
12745
12746 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12747
12748 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12749 to powerpc/powerpc64/be for big-endian.
12750 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12751 little-endian.
12752
12753 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12754 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12755 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12756 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12757 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12758 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12759 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12760 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12761 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12762 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12763 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12764 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12765 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12766 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12767 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12768 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12769 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12770 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12771 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12772 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12773 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12774 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12775 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12776 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12777 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12778 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12779 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12780 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12781 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12782 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12783 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12784 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12785
12786 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12787 adjusted to imply powerpc64 and older processors on powerpc64/be.
12788 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12789 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12790 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12791 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12792 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12793 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12794 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12795 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12796 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12797 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12798 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12799 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12800 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12801 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12802 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12803 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12804 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12805 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12806 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12807 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12808 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12809 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12810 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12811 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12812 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12813 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12814 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12815 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12816 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12817 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12818 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12819
12820 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12821 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12822 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12823 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12824
12825 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12826 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12827 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12828 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12829
12830 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12831 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12832 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12833 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12834 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12835 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12836 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12837 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12838 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12839 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12840 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12841
12842 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12843 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12844 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12845 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12846 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12847 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12848 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12849 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12850 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12851 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12852 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12853
12854 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12855 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12856 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12857 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12858 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12859 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12860 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12861 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12862 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12863 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12864 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12865 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12866
12867 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12868 and adjusted to imply olders processors.
12869 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12870 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12871 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12872 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12873 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12874 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12875 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12876 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12877 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12878 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12879 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12880
12881 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12882 powerpc64/le.
12883 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12884 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12885
12886 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12887 powerpc64le.
12888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12890
12891 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12892 powerpc64/be.
12893 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12894 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12895 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12896
12897 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12898 powerpc64 and adjusted.
12899 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12900 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12901 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12902 Likewise.
12903
12904 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12905
12906 * sysdeps/tile: Remove.
12907 * sysdeps/unix/sysv/linux/tile: Likewise.
12908 * README (tilegx-*-linux-gnu): Remove from list of supported
12909 configurations.
12910 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12911 contribution of support for generic Linux kernel syscall
12912 interface.
12913 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12914 tilegx configurations.
12915 (Config.install_linux_headers): Do not handle tile.
12916 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12917 in comment.
12918 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12919 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12920 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12921 conditional undefine and redefine.
12922 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12923 in comment.
12924 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12925 conditional undefine and redefine.
12926
12927 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12928
12929 * signal/tst-sigaction.c: New file to test BZ #23069.
12930 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12931
12932 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12933
12934 [BZ #22766]
12935 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12936 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12937 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12938 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12939
12940 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12941
12942 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12943 _DIRENT_MATCHES_DIRENT64 is not defined.
12944 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12945 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12946 is defined.
12947 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12948 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12949
12950 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12951
12952 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12953 version to GCC 8 branch.
12954
12955 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12956
12957 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12958 (check_no_hidden): Use type of original function when declaring
12959 alias.
12960
12961 * sysdeps/unix/sysv/linux/sys/ptrace.h
12962 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12963 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12964 (struct __ptrace_seccomp_metadata): New type.
12965 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12966 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12967 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12968 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12969 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12970 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12971 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12972 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12973 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12974 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12975 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12976 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12977 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12978 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12979 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12980 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12981
12982 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12983
12984 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12985 defined.
12986 * dirent/versionsort.c (versionsort): Likewise.
12987 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12988 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12989 * dirent/versionsort64.c (versionsort64): Likewise.
12990 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12991 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12992 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12993 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12994 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12995 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12996 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12997 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12998 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12999 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
13000 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
13001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
13002 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
13003 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
13004
13005 2018-04-23 Joseph Myers <joseph@codesourcery.com>
13006
13007 * elf/elf.h (NT_PPC_PKEY): New macro.
13008
13009 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
13010
13011 [BZ #23094]
13012 * localedata/locales/hr_HR: fix thousands_sep and
13013 mon_thousands_sep
13014
13015 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13016
13017 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
13018 (XTABS): Define to TAB3.
13019
13020 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13021
13022 * sysdeps/hppa/fpu/libm-test-ulps: Update.
13023
13024 * dirent/scandir-tail-common.c: New file.
13025 * dirent/scandir-tail.c: Use scandir-tail-common.c.
13026 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
13027 * dirent/scandir.c: Use scandir-tail-common.c.
13028 * dirent/scandirat.c: Likewise.
13029 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
13030 * dirent/scandir64.c (scandir64): Always build and alias to scandir
13031 if _DIRENT_MATCHES_DIRENT64 is defined.
13032 * dirent/scandirat64.c (scandirat64): Likewise.
13033 * include/dirent.h (__scandir_tail): Only define iff
13034 _DIRENT_MATCHES_DIRENT64 is not defined.
13035 (__scandir64_tail): Define regardless.
13036 (__scandirat, scandirat64): Remove libc_hidden_proto.
13037 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
13038 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
13039 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
13040 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
13041 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
13042 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
13043 * sysdeps/unix/sysv/linux/scandir64.c: New file.
13044
13045 2018-04-20 Joseph Myers <joseph@codesourcery.com>
13046
13047 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
13048 New macro.
13049 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
13050 Increase to 24.
13051 (_dl_aarch64_cap_flags): Add asimdfhm.
13052
13053 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
13054
13055 * sysdeps/nios2/libm-test-ulps: Update.
13056
13057 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13058
13059 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
13060 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
13061
13062 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
13063 requirements.
13064 (_DIRENT_MATCHES_DIRENT64): Undef
13065 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
13066 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
13067 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
13068 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
13069 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13070 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13071 use getdents64 syscalls as base.
13072 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13073 symbol if required.
13074 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13075 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13076 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13077 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13078 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13079 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13080 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13081 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13082 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13083 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13084 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13085
13086 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13087
13088 * scripts/test_printers_common.py (init_test): Disable lock elision.
13089
13090 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13091
13092 * math/test-tgmath.c (count_double, count_float,
13093 count_ldouble, count_cdouble, count_cfloat,
13094 count_cldouble): Use volatile int.
13095
13096 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13097
13098 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13099 (conformtest-xfail-conds): Add i386-gnu.
13100 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13101 i386-gnu.
13102 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13103 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13104 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13105 msqid_ds.msg_lrpid): Likewise.
13106 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13107 Likewise.
13108 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13109 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13110 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13111 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13112 unsigned int.
13113 (struct statvfs64): Likewise.
13114 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13115 Likewise.
13116 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13117 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13118 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13119 instead of wait_queue.
13120 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13121 instead of vm_area_struct.
13122 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13123 struct sched_param definition to it.
13124 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13125 * bits/types/struct_sched_param.h: New file.
13126 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13127 <bits/types/struct_sched_param.h> instead of <sched.h>.
13128 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13129 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13130 generic version but include <bits/pthreadtypes.h> to make struct
13131 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13132 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13133 non-compliant.
13134 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13135 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13136 [__USE_XOPEN] (OFDEL): New macro.
13137 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13138 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13139 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13140 prototypes.
13141 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13142 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13143 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13144 non-compliant.
13145 * sysdeps/i386/sys/ucontext.h: Likewise.
13146 * sysdeps/m68k/sys/ucontext.h: Likewise.
13147 * sysdeps/mips/sys/ucontext.h: Likewise.
13148 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13149 * sysdeps/mach/hurd/i386/Makefile
13150 (test-xfail-POSIX/fcntl.h/conform): Add.
13151 (test-xfail-POSIX/signal.h/conform): Add.
13152 (test-xfail-POSIX/semaphore.h/conform): Add.
13153 (test-xfail-POSIX/regex.h/conform): Add.
13154 (test-xfail-POSIX/aio.h/conform): Add.
13155 (test-xfail-POSIX/mqueue.h/conform): Add.
13156 (test-xfail-POSIX/sys/types.h/conform): Add.
13157 (test-xfail-UNIX98/fcntl.h/conform): Add.
13158 (test-xfail-UNIX98/netdb.h/conform): Add.
13159 (test-xfail-UNIX98/signal.h/conform): Add.
13160 (test-xfail-UNIX98/semaphore.h/conform): Add.
13161 (test-xfail-UNIX98/regex.h/conform): Add.
13162 (test-xfail-UNIX98/aio.h/conform): Add.
13163 (test-xfail-UNIX98/ftw.h/conform): Add.
13164 (test-xfail-UNIX98/mqueue.h/conform): Add.
13165 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13166 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13167 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13168 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13169 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13170 (test-xfail-UNIX98/sys/types.h/conform): Add.
13171 (test-xfail-UNIX98/stdlib.h/conform): Add.
13172 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13173 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13174 (test-xfail-POSIX2008/netdb.h/conform): Add.
13175 (test-xfail-POSIX2008/signal.h/conform): Add.
13176 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13177 (test-xfail-POSIX2008/regex.h/conform): Add.
13178 (test-xfail-POSIX2008/aio.h/conform): Add.
13179 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13180 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13181 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13182 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13183 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13184 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13185 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13186 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13187 (test-xfail-XOPEN2K/signal.h/conform): Add.
13188 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13189 (test-xfail-XOPEN2K/regex.h/conform): Add.
13190 (test-xfail-XOPEN2K/aio.h/conform): Add.
13191 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13192 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13193 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13194 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13195 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13196 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13197 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13198 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13199 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13200 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13201 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13202 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13203 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13204 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13205 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13206 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13207 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13208 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13209 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13210 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13211 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13212 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13213 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13214 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13215 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13216 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13217 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13218 i386-gnu.
13219 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13220 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13221
13222 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13223
13224 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13225 --enable-obsolete for powerpc-linux-gnuspe.
13226
13227 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13228
13229 * conform/data/sys/un.h-data: Allow sun_ prefix.
13230 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13231 prototypes.
13232 * sysdeps/mach/include/mach.h: Likewise.
13233 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13234 * sysdeps/mach/include/mach_error.h: Likewise.
13235
13236 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13237
13238 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13239 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13240 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13241 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13242
13243 2018-04-16 Andreas Schwab <schwab@suse.de>
13244
13245 [BZ #19527]
13246 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13247
13248 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13249
13250 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13251 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13252
13253 2018-04-12 DJ Delorie <dj@redhat.com>
13254
13255 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13256 version to 4.16.
13257
13258 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13259
13260 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13261 (struct kernel_sigaction): Use the same definition on 31bit as is used
13262 on 64bit.
13263
13264 2018-04-09 Florian Weimer <fweimer@redhat.com>
13265
13266 [BZ #23037]
13267 * resolv/res_send.c (send_dg): Use designated initializers instead
13268 of assignment to zero-initialize other fields of struct mmsghdr.
13269
13270 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13271
13272 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13273 __READDIR_ALIAS): Undefine after usage.
13274 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13275 __READDIR_R_ALIAS): Likewise.
13276 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13277 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13278 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13279 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13280 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13281 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13282 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13283 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13284 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13285 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13286 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13287 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13288 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13289 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13290 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13291 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13292 * sysdeps/unix/sysv/linux/readdir.c: New file.
13293 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13294 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13295 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13296
13297 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13298
13299 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13300
13301 * manual/charset.texi (Converting a Character): Fix typo.
13302
13303 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13304
13305 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13306
13307 * sysdeps/arm/libm-test-ulps: Update.
13308
13309 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13310 as base implementation.
13311 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13312 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13313 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13314 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13315 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13316 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13317 remove unrequired definitions and update comments.
13318 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13319 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13320 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13321 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13322 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13323 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13324 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13325 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13326 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13327 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13328 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13329 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13330 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13331 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13332 and RESET_SA_RESTORER hooks.
13333
13334 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13335
13336 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13337
13338 2018-04-05 Florian Weimer <fweimer@redhat.com>
13339
13340 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13341 integer overflow, memory leak on error, and indeterminate errno
13342 value. Add a null wide character to terminate the result string.
13343 * manual/charset.texi (Converting a Character): Mention embedded
13344 null bytes in the mbrtowc input string. Explain what happens in
13345 the -2 result case. Do not claim that mbrtowc is simple or
13346 obvious to use. Adjust the description of the code example. Use
13347 @code, not @var, for concrete variables.
13348
13349 2018-04-05 Florian Weimer <fweimer@redhat.com>
13350
13351 * manual/examples/mbstouwcs.c: New file.
13352 * manual/charset.texi (Converting a Character): Include it.
13353
13354 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13355
13356 * include/dirent.h (dirfd): Add hidden proto.
13357 * dirent/dirfd.c (dirfd): Add hidden def.
13358 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13359 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13360
13361 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13362
13363 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13364 sin, cos and sincos to 1 ULP.
13365
13366 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13367
13368 [BZ #19818]
13369 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13370 symbols.
13371 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13372 * elf/tst-absolute-sym.c: New file.
13373 * elf/tst-absolute-sym-lib.c: New file.
13374 * elf/tst-absolute-sym-lib.lds: New file.
13375 * elf/Makefile (tests): Add `tst-absolute-sym'.
13376 (modules-names): Add `tst-absolute-sym-lib'.
13377 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13378 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13379 ($(objpfx)tst-absolute-sym): New dependency.
13380
13381 [BZ #19818]
13382 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13383 parameter.
13384 (SYMBOL_ADDRESS): New macro.
13385 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13386 SYMBOL_ADDRESS for symbol address calculation.
13387 * elf/dl-runtime.c (_dl_fixup): Likewise.
13388 (_dl_profile_fixup): Likewise.
13389 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13390 * elf/rtld.c (dl_main): Likewise.
13391 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13392 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13393 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13394 (elf_machine_rela): Likewise.
13395 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13396 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13397 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13398 (elf_machine_rela): Likewise.
13399 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13400 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13401 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13402 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13403 Likewise.
13404 (elf_machine_reloc): Likewise.
13405 (elf_machine_got_rel): Likewise.
13406 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13407 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13408 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13409 Likewise.
13410 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13411 Likewise.
13412 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13413 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13414 Likewise.
13415 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13416 Likewise.
13417 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13418 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13419 Likewise.
13420 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13421 Likewise.
13422 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13423 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13424
13425 2018-04-04 Zack Weinberg <zackw@panix.com>
13426
13427 * sysdeps/generic/internal-signals.h: Include signal.h,
13428 sigsetops.h, and stdbool.h.
13429 (__libc_signal_block_all): Actually block all signals.
13430 (__libc_signal_block_app): Likewise.
13431 (__libc_signal_restore_set): Actually restore the signal mask.
13432
13433 2018-04-04 Florian Weimer <fweimer@redhat.com>
13434
13435 inet: Actually build and run tst-deadline.
13436 * inet/Makefile (tests-internal): Add tst-deadline and do not
13437 overwrite the variable.
13438 (tests-static-internal): Remove variable.
13439
13440 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13441
13442 [BZ #22947]
13443 * bits/uio-ext.h (RWF_APPEND): New.
13444 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13445 * manual/llio.texi: Document RWF_APPEND.
13446 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13447 (RWF_SUPPORTED): Add RWF_APPEND.
13448
13449 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13450
13451 [BZ #22391]
13452 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13453 check for internal nptl signals.
13454 * nptl/sigaction.c (__sigaction): Likewise.
13455 * signal/sigaddset.c (sigaddset): Likewise.
13456 * signal/sigdelset.c (sigdelset): Likewise.
13457 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13458 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13459 value.
13460 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13461 to filter out internal nptl signals.
13462 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13463 also check realtime signals using standard macros.
13464 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13465 __is_internal_signal, __libc_signal_block_all,
13466 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13467 * sysdeps/nptl/sigfillset.c: Remove file.
13468 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13469 Change return to bool.
13470 (__clear_internal_signals): Remove SIGTIMER clean since it is
13471 equal to SIGCANEL on Linux.
13472 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13473 signal set was constructed using standard functions.
13474
13475 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13476
13477 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13478 ifname is too long.
13479 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13480 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13481 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13482 hidden def.
13483 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13484 * signal/sigaddset.c: Include <sigsetopts.h>.
13485 * signal/sigdelset.c: Likewise.
13486
13487 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13488
13489 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13490 (__cos): Likewise.
13491 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13492 logic as sin and cos.
13493
13494 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13495
13496 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13497 inputs. Return correct sign.
13498 (do_sincos): Remove small input check before do_sin, let do_sin set
13499 the sign.
13500 (__sin): Likewise.
13501 (__cos): Likewise.
13502
13503 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13504
13505 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13506 (do_cos_slow): Likewise.
13507 (do_sin_slow): Likewise.
13508 (reduce_and_compute): Likewise.
13509 (slow): Likewise.
13510 (slow1): Likewise.
13511 (slow2): Likewise.
13512 (sloww): Likewise.
13513 (sloww1): Likewise.
13514 (sloww2): Likewise.
13515 (bslow): Likewise.
13516 (bslow1): Likewise.
13517 (bslow2): Likewise.
13518 (cslow2): Likewise.
13519
13520 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13521
13522 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13523 (do_cos): Remove corp parameter and calculations.
13524 (do_sin): Likewise.
13525 (do_sincos): Remove cor variable.
13526 (__sin): Use do_sincos for huge inputs.
13527 (__cos): Likewise.
13528 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13529 (reduce_and_compute_sincos): Remove unused function.
13530
13531 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13532
13533 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13534 reduce_sincos, improve accuracy to 136 bits.
13535 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13536 (__sin): Use improved reduction and simplified do_sincos calculation.
13537 (__cos): Likewise.
13538 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13539
13540 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13541
13542 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13543 (do_sincos_2): Likewise.
13544 (__sin): Remove middle range reduction case.
13545 (__cos): Likewise.
13546 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13547 reduction case.
13548
13549 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13550
13551 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13552 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13553 inputs.
13554 (__cos): Likewise.
13555 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13556
13557 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13558
13559 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13560 version to 4.16
13561
13562 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13563
13564 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13565 Remove definitions.
13566 (opendir_oflags): Use O_DIRECTORY regardless.
13567 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13568 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13569
13570 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13571
13572 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13573 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13574 macros.
13575 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13576 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13577 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13578 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13579 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13580 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13581
13582 * htl/Makefile: Bump licence to LGPL 2.1+.
13583 * htl/alloca_cutoff.c: Likewise.
13584 * htl/cthreads-compat.c: Likewise.
13585 * htl/lockfile.c: Likewise.
13586 * htl/pt-alloc.c: Likewise.
13587 * htl/pt-cancel.c: Likewise.
13588 * htl/pt-cleanup.c: Likewise.
13589 * htl/pt-create.c: Likewise.
13590 * htl/pt-dealloc.c: Likewise.
13591 * htl/pt-detach.c: Likewise.
13592 * htl/pt-exit.c: Likewise.
13593 * htl/pt-getattr.c: Likewise.
13594 * htl/pt-initialize.c: Likewise.
13595 * htl/pt-internal.h: Likewise.
13596 * htl/pt-join.c: Likewise.
13597 * htl/pt-self.c: Likewise.
13598 * htl/pt-setcancelstate.c: Likewise.
13599 * htl/pt-setcanceltype.c: Likewise.
13600 * htl/pt-sigmask.c: Likewise.
13601 * htl/pt-spin-inlines.c: Likewise.
13602 * htl/pt-testcancel.c: Likewise.
13603 * htl/pt-yield.c: Likewise.
13604 * htl/tests/test-1.c: Likewise.
13605 * htl/tests/test-10.c: Likewise.
13606 * htl/tests/test-11.c: Likewise.
13607 * htl/tests/test-12.c: Likewise.
13608 * htl/tests/test-13.c: Likewise.
13609 * htl/tests/test-14.c: Likewise.
13610 * htl/tests/test-15.c: Likewise.
13611 * htl/tests/test-16.c: Likewise.
13612 * htl/tests/test-17.c: Likewise.
13613 * htl/tests/test-2.c: Likewise.
13614 * htl/tests/test-3.c: Likewise.
13615 * htl/tests/test-4.c: Likewise.
13616 * htl/tests/test-5.c: Likewise.
13617 * htl/tests/test-6.c: Likewise.
13618 * htl/tests/test-7.c: Likewise.
13619 * htl/tests/test-8.c: Likewise.
13620 * htl/tests/test-9.c: Likewise.
13621 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13622 * sysdeps/htl/bits/cancelation.h: Likewise.
13623 * sysdeps/htl/bits/pthread-np.h: Likewise.
13624 * sysdeps/htl/bits/pthread.h: Likewise.
13625 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13626 * sysdeps/htl/bits/semaphore.h: Likewise.
13627 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13628 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13629 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13630 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13631 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13632 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13633 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13634 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13635 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13636 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13637 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13638 * sysdeps/htl/old_pt-atfork.c: Likewise.
13639 * sysdeps/htl/pt-atfork.c: Likewise.
13640 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13641 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13642 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13643 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13644 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13645 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13646 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13647 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13648 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13649 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13650 * sysdeps/htl/pt-attr-init.c: Likewise.
13651 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13652 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13653 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13654 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13655 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13656 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13657 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13658 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13659 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13660 * sysdeps/htl/pt-attr.c: Likewise.
13661 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13662 * sysdeps/htl/pt-barrier-init.c: Likewise.
13663 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13664 * sysdeps/htl/pt-barrier.c: Likewise.
13665 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13666 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13667 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13668 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13669 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13670 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13671 * sysdeps/htl/pt-cond-init.c: Likewise.
13672 * sysdeps/htl/pt-cond-signal.c: Likewise.
13673 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13674 * sysdeps/htl/pt-cond-wait.c: Likewise.
13675 * sysdeps/htl/pt-cond.c: Likewise.
13676 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13677 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13678 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13679 * sysdeps/htl/pt-condattr-init.c: Likewise.
13680 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13681 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13682 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13683 * sysdeps/htl/pt-equal.c: Likewise.
13684 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13685 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13686 * sysdeps/htl/pt-getschedparam.c: Likewise.
13687 * sysdeps/htl/pt-getspecific.c: Likewise.
13688 * sysdeps/htl/pt-init-specific.c: Likewise.
13689 * sysdeps/htl/pt-key-create.c: Likewise.
13690 * sysdeps/htl/pt-key-delete.c: Likewise.
13691 * sysdeps/htl/pt-key.h: Likewise.
13692 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13693 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13694 * sysdeps/htl/pt-mutex-init.c: Likewise.
13695 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13696 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13697 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13698 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13699 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13700 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13701 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13702 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13703 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13704 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13705 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13706 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13707 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13708 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13709 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13710 * sysdeps/htl/pt-mutexattr.c: Likewise.
13711 * sysdeps/htl/pt-once.c: Likewise.
13712 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13713 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13714 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13715 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13716 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13717 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13718 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13719 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13720 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13721 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13722 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13723 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13724 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13725 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13726 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13727 * sysdeps/htl/pt-setschedparam.c: Likewise.
13728 * sysdeps/htl/pt-setschedprio.c: Likewise.
13729 * sysdeps/htl/pt-setspecific.c: Likewise.
13730 * sysdeps/htl/pt-spin.c: Likewise.
13731 * sysdeps/htl/pt-startup.c: Likewise.
13732 * sysdeps/htl/pthread.h: Likewise.
13733 * sysdeps/htl/sem-close.c: Likewise.
13734 * sysdeps/htl/sem-destroy.c: Likewise.
13735 * sysdeps/htl/sem-getvalue.c: Likewise.
13736 * sysdeps/htl/sem-init.c: Likewise.
13737 * sysdeps/htl/sem-open.c: Likewise.
13738 * sysdeps/htl/sem-post.c: Likewise.
13739 * sysdeps/htl/sem-timedwait.c: Likewise.
13740 * sysdeps/htl/sem-trywait.c: Likewise.
13741 * sysdeps/htl/sem-unlink.c: Likewise.
13742 * sysdeps/htl/sem-wait.c: Likewise.
13743 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13744 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13745 * sysdeps/mach/htl/pt-block.c: Likewise.
13746 * sysdeps/mach/htl/pt-spin.c: Likewise.
13747 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13748 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13749 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13750 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13751 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13752 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13753 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13754 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13755 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13756 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13757 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13758 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13759 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13760 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13761 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13762 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13763 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13764 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13765 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13766 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13767 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13768 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13769 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13770 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13771 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13772 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13773 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13774 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13775 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13776 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13777 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13778 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13779 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13780 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13781 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13782 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13783 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13784 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13785 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13786 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13787 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13788 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13789 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13790
13791 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13792 * README: Remove the mention of out-of-tree patches needed for
13793 GNU/Hurd.
13794
13795 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13796 (UTIME_NOW, UTIME_OMIT): Define macros.
13797
13798 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13799 instead of pthread_detach.
13800 (__cthread_fork): Call __pthread_create instead of pthread_create.
13801 (__cthread_keycreate): Call __pthread_key_create instead of
13802 pthread_key_create.
13803 (__cthread_getspecific): Call __pthread_getspecific instead of
13804 pthread_getspecific.
13805 (__cthread_setspecific): Call __pthread_setspecific instead of
13806 pthread_setspecific.
13807 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13808 __pthread_mutex_unlock instead of pthread_mutex_lock and
13809 pthread_mutex_unlock.
13810 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13811 ___pthread_get_cleanup_stack.
13812 (__pthread_get_cleanup_stack): New strong alias.
13813 * htl/pt-create.c: Include <pthreadP.h>.
13814 (entry_point): Call __pthread_exit instead of pthread_exit.
13815 (pthread_create): Rename to __pthread_create.
13816 (pthread_create): New strong alias.
13817 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13818 (pthread_detach): New strong alias.
13819 (__pthread_detach): Call __pthread_cond_broadcast instead of
13820 pthread_cond_broadcast.
13821 * htl/pt-exit.c: Include <pthreadP.h>.
13822 (__pthread_exit): Call __pthread_setcancelstate and
13823 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13824 __pthread_get_cleanup_stack.
13825 * htl/pt-testcancel.c: Include <pthreadP.h>.
13826 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13827 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13828 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13829 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13830 pthread_attr_getstacksize.
13831 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13832 Rename to __pthread_attr_getstackaddr.
13833 (pthread_attr_getstackaddr): New strong alias.
13834 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13835 Rename to __pthread_attr_getstacksize.
13836 (pthread_attr_getstacksize): New strong alias.
13837 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13838 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13839 (pthread_attr_setstack): New strong alias.
13840 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13841 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13842 pthread_attr_getstacksize, pthread_attr_setstacksize and
13843 pthread_attr_setstackaddr.
13844 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13845 Rename to __pthread_attr_setstackaddr.
13846 (pthread_attr_setstackaddr): New strong alias.
13847 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13848 Rename to __pthread_attr_setstacksize.
13849 (pthread_attr_setstacksize): New strong alias.
13850 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13851 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13852 pthread_exit.
13853 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13854 (__pthread_key_create): New hidden def.
13855 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13856 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13857 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13858 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13859 __pthread_setspecific, __pthread_setcancelstate,
13860 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13861 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13862 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13863 declarations.
13864 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13865 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13866 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13867 (pthread_attr_setstackaddr): New strong alias.
13868 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13869 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13870 (pthread_attr_setstacksize): New strong alias.
13871 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13872 (call_exit): Call __pthread_exit instead of pthread_exit.
13873 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13874 (_pthread_mutex_init): New hidden definition.
13875 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13876 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13877 instead of pthread_attr_init and pthread_attr_setstack.
13878
13879 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13880 __vm_deallocate instead of vm_allocate and vm_deallocate.
13881 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13882 setenv.
13883 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13884 of geteuid.
13885 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13886 strdup.
13887 * hurd/siginfo.c: Include <libioP.h>.
13888 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13889 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13890 munmap.
13891 * mach/devstream.c: Include <libioP.h>.
13892 (dealloc_ref): Call __mach_port_deallocate instead of
13893 mach_port_deallocate.
13894 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13895 Call __mach_port_deallocate instead of mach_port_deallocate.
13896 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13897 pathconf.
13898 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13899 munmap.
13900 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13901 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13902 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13903 of munmap.
13904 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13905 of close.
13906 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13907 instead of sysconf.
13908 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13909 __clock_gettime instead of clock_gettime.
13910 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13911 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13912 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13913 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13914 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13915 tcgetattr.
13916 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13917 __clock_gettime and __nanosleep instead of clock_gettime and
13918 nanosleep.
13919 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13920 __hurd_catch_signal.
13921 (hurd_catch_signal): New strong alias.
13922 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13923 __hurd_catch_signal instead of hurd_catch_signal.
13924 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13925 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13926 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13927 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13928 (_hurd_thread_sigstate): Add hidden def.
13929 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13930 mutex_unlock.
13931 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13932 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13933 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13934 __hurd_file_name_path_lookup.
13935 (hurd_file_name_path_lookup): New strong alias.
13936 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13937 hurd_file_name_path_lookup.
13938 * mach/errstring.c (mach_error_type): Add hidden def.
13939 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13940 * mach/mutex-init.c (__mutex_init): Add hidden def.
13941 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13942 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13943 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13944 * sysdeps/mach/hurd/getcwd.c
13945 (_hurd_canonicalize_directory_name_internal): Rename to
13946 __hurd_canonicalize_directory_name_internal.
13947 (_hurd_canonicalize_directory_name_internal): New strong alias.
13948 (__canonicalize_directory_name_internal, __getcwd): Call
13949 __hurd_canonicalize_directory_name_internal instead of
13950 _hurd_canonicalize_directory_name_internal.
13951 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13952 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13953 hidden defs.
13954 * sysdeps/hurd/include/hurd.h: New file.
13955 * sysdeps/hurd/include/hurd/fd.h: New file.
13956 * sysdeps/hurd/include/hurd/signal.h: New file.
13957 * sysdeps/mach/include/lock-intern.h: New file.
13958 * sysdeps/mach/include/mach.h: New file.
13959 * sysdeps/mach/include/mach/mig_support.h: New file.
13960 * sysdeps/mach/include/mach_error.h: New file.
13961 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13962 prototype.
13963 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13964 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13965 _HEADER_H_HIDDEN_DEF macro.
13966 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13967 _hurd_fd_error_signal): Add hidden prototype.
13968 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13969 hidden def.
13970 * libio/iolibio.h (_IO_puts): New hidden prototype.
13971 * libio/ioputs.c (_IO_puts): New hidden def.
13972 * sysdeps/mach/hurd/localplt.data: New file.
13973
13974 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13975 Amos Jeffries <squid3@treenet.co.nz>
13976 David Michael <fedora.dm0@gmail.com>
13977 Marco Gerards <marco@gnu.org>
13978 Marcus Brinkmann <marcus@gnu.org>
13979 Neal H. Walfield <neal@gnu.org>
13980 Pino Toscano <toscano.pino@tiscali.it>
13981 Richard Braun <rbraun@sceen.net>
13982 Roland McGrath <roland@gnu.org>
13983 Samuel Thibault <samuel.thibault@ens-lyon.org>
13984 Thomas DiModica <ricinwich@yahoo.com>
13985 Thomas Schwinge <tschwinge@gnu.org>
13986
13987 * htl: New directory.
13988 * sysdeps/htl: New directory.
13989 * sysdeps/hurd/htl: New directory.
13990 * sysdeps/i386/htl: New directory.
13991 * sysdeps/mach/htl: New directory.
13992 * sysdeps/mach/hurd/htl: New directory.
13993 * sysdeps/mach/hurd/i386/htl: New directory.
13994 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13995 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13996 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13997
13998 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13999
14000 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
14001 signals in thread created for runing timers.
14002
14003 2018-04-01 Florian Weimer <fweimer@redhat.com>
14004
14005 * support/support_format_addrinfo.c (support_format_addrinfo):
14006 Include unknown error number in formatted result.
14007
14008 2018-03-29 Florian Weimer <fweimer@redhat.com>
14009
14010 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
14011 capture SIGBUS.
14012
14013 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14014
14015 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
14016 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
14017 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
14018 (__ASSUME_CLONE_BACKWARDS): Define.
14019
14020 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
14021
14022 [BZ #23024]
14023 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
14024 early when linux sentinel value is set.
14025
14026 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
14027
14028 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
14029
14030 2018-03-27 Andreas Schwab <schwab@suse.de>
14031
14032 [BZ #23005]
14033 * resolv/res_send.c (__res_context_send): Return ENOMEM if
14034 allocation of private copy of nsaddr_list fails.
14035
14036 2018-03-26 Joseph Myers <joseph@codesourcery.com>
14037
14038 [BZ #16552]
14039 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
14040 * sysdeps/unix/sysv/linux/umount.c: ... here.
14041 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
14042 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
14043 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
14044 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
14045 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
14046 * sysdeps/unix/sysv/linux/umount.S: Likewise.
14047 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
14048
14049 2018-03-26 Andreas Schwab <schwab@suse.de>
14050
14051 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
14052 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
14053 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
14054 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
14055 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
14056 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
14057 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
14058 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
14059 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
14060 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
14061 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
14062 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
14063 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
14064 (R_RISCV_NUM): Define.
14065
14066 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
14067
14068 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
14069 TLS declaration of errno.
14070 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14071 __libc_setup_tls.
14072 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14073 (ARCH_SETUP_TLS): Likewise.
14074 * sysdeps/mach/hurd/libc-start.h: New file copied from
14075 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14076 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14077 instead of __libc_setup_tls.
14078 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14079 __libc_setup_tls before initializing libpthread and running _hurd_init
14080 which starts the signal thread.
14081 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14082 Declare function.
14083 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14084
14085 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14086
14087 [BZ #22998]
14088 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14089 after it is defined.
14090
14091 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14092 Max Horn <max@quendi.de>
14093
14094 [BZ #22644]
14095 CVE-2017-18269
14096 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14097 branch conditions.
14098 * string/test-memmove.c (do_test2): New testcase.
14099
14100 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14101
14102 * sysdeps/generic/frame.h: Remove file.
14103 * sysdeps/arm/frame.h: Likewise.
14104 * sysdeps/hppa/frame.h: Likewise.
14105 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14106 macro.
14107 (GET_FRAME): Likewise.
14108 (GET_STACK): Likewise.
14109 (CALL_SIGHANDLER): Likewise.
14110 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14111 Likewise.
14112 (GET_FRAME): Likewise.
14113 (GET_STACK): Likewise.
14114 (CALL_SIGHANDLER): Likewise.
14115 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14116 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14117 (GET_FRAME): Likewise.
14118 (GET_STACK): Likewise.
14119 (CALL_SIGHANDLER): Likewise.
14120 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14121 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14122 (GET_FRAME): Likewise.
14123 (GET_STACK): Likewise.
14124 (ADVANCE_STACK_FRAME): Likewise.
14125 (CALL_SIGHANDLER): Likewise.
14126 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14127 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14128 (GET_FRAME): Likewise.
14129 (GET_STACK): Likewise.
14130 (CALL_SIGHANDLER): Likewise.
14131 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14132 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14133 (GET_FRAME): Likewise.
14134 (GET_STACK): Likewise.
14135 (CALL_SIGHANDLER): Likewise.
14136 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14137 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14138 (GET_FRAME): Likewise.
14139 (GET_STACK): Likewise.
14140 (CALL_SIGHANDLER): Likewise.
14141 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14142 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14143 (GET_FRAME): Likewise.
14144 (GET_STACK): Likewise.
14145 (CALL_SIGHANDLER): Likewise.
14146 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14147 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14148 (GET_FRAME): Likewise.
14149 (GET_STACK): Likewise.
14150 (CALL_SIGHANDLER): Likewise.
14151 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14152 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14153 (GET_FRAME): Likewise.
14154 (GET_STACK): Likewise.
14155 (CALL_SIGHANDLER): Likewise.
14156 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14157 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14158 (GET_FRAME): Likewise.
14159 (GET_STACK): Likewise.
14160 (CALL_SIGHANDLER): Likewise.
14161 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14162 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14163 (GET_FRAME): Likewise.
14164 (GET_STACK): Likewise.
14165 (CALL_SIGHANDLER): Likewise.
14166 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14167 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14168 (GET_FRAME): Likewise.
14169 (GET_STACK): Likewise.
14170 (CALL_SIGHANDLER): Likewise.
14171 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14172 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14173 (FIRST_FRAME_POINTER): Likewise.
14174 (ADVANCE_STACK_FRAME): Likewise.
14175 (GET_STACK): Likewise.
14176 (GET_FRAME): Likewise.
14177 (CALL_SIGHANDLER): Likewise.
14178 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14179 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14180 (ADVANCE_STACK_FRAME): Likewise.
14181 (GET_STACK): Likewise.
14182 (GET_FRAME): Likewise.
14183 (CALL_SIGHANDLER): Likewise.
14184 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14185 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14186 (GET_FRAME): Likewise.
14187 (GET_STACK): Likewise.
14188 (CALL_SIGHANDLER): Likewise.
14189 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14190 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14191 (GET_FRAME): Likewise.
14192 (GET_STACK): Likewise.
14193 (CALL_SIGHANDLER): Likewise.
14194
14195 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14196
14197 * sysdeps/x86_64/backtrace.c: Move to ....
14198 * debug/backtrace.c: ... here.
14199 * sysdeps/aarch64/backtrace.c: Remove file.
14200 * sysdeps/alpha/backtrace.c: Likewise.
14201 * sysdeps/hppa/backtrace.c: Likewise.
14202 * sysdeps/ia64/backtrace.c: Likewise.
14203 * sysdeps/mips/backtrace.c: Likewise.
14204 * sysdeps/nios2/backtrace.c: Likewise.
14205 * sysdeps/riscv/backtrace.c: Likewise.
14206 * sysdeps/sh/backtrace.c: Likewise.
14207 * sysdeps/tile/backtrace.c: Likewise.
14208
14209 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14210
14211 [BZ #22987]
14212 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14213 function.
14214 (fdimf): Likewise.
14215 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14216
14217 [BZ #17343]
14218 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14219 possibly overflowing computations.
14220
14221 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14222
14223 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14224 values from Linux-specific section now that it is in the GNU section.
14225 * sysdeps/gnu/errlist.c: Regenerate.
14226
14227 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14228
14229 * math/Makefile (libm-narrow-fns): Add sub.
14230 (libm-test-funcs-narrow): Likewise.
14231 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14232 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14233 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14234 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14235 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14236 (NARROW_SUB_TRIVIAL): Likewise.
14237 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14238 macro.
14239 (__dsubl): Likewise.
14240 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14241 dsub.
14242 (CFLAGS-nldbl-dsub.c): New variable.
14243 (CFLAGS-nldbl-fsub.c): Likewise.
14244 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14245 __nldbl_dsubl.
14246 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14247 prototype.
14248 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14249 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14250 * math/auto-libm-test-in: Add tests of sub.
14251 * math/auto-libm-test-out-narrow-sub: New generated file.
14252 * math/libm-test-narrow-sub.inc: New file.
14253 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14254 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14255 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14256 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14257 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14258 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14259 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14260 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14261 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14262 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14263 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14264 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14265 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14266 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14267 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14268 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14269 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14270 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14271 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14272 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14273 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14274 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14275 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14276 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14277 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14278 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14279 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14280 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14281 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14282 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14283 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14284 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14285 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14286 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14287 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14288 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14289 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14290 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14291 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14292 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14293 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14294 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14295 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14296 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14297 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14298 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14299
14300 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14301
14302 [BZ #20079]
14303 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14304
14305 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14306
14307 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14308
14309 2018-03-18 Richard Braun <rbraun@sceen.net>
14310
14311 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14312 thread reference.
14313
14314 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14315
14316 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14317 (__libc_cleanup_fct): Define function.
14318 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14319 __libc_cleanup_end): Rewrite implementation using
14320 __attribute__ ((__cleanup__)).
14321 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14322 * hurd/Makefile (routines): Add hurdlock.
14323 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14324 interface.
14325 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14326 * hurd/hurdpid.c: Include <lowlevellock.h>
14327 (_S_msg_proc_newids): Use lll_wait to synchronize.
14328 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14329 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14330 * mach/Makefile (lock-headers): Remove machine-lock.h.
14331 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14332 <machine-lock.h>.
14333 (__spin_lock_t): New type.
14334 (__SPIN_LOCK_INITIALIZER): New macro.
14335 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14336 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14337 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14338 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14339 (__mutex_init): Initialize with lll.
14340 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14341 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14342 needing lll.
14343 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14344 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14345 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14346 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14347 (__setpgid): Use lll for synchronization.
14348 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14349 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14350 instead of <cthreads.h>.
14351 (_IO_lock_inexpensive): New macro
14352 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14353 (__libc_lock_self0): New declaration.
14354 (__libc_lock_owner_self): New macro.
14355 (__libc_key_t): Remove type.
14356 (_LIBC_LOCK_INITIALIZER): New macro.
14357 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14358 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14359 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14360 __libc_lock_define_initialized_recursive,
14361 __rtld_lock_define_initialized_recursive,
14362 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14363 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14364 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14365 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14366 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14367 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14368 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14369 New macros.
14370 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14371 * hurd/hurdlock.c: New file.
14372 * hurd/hurdlock.h: New file.
14373 * mach/lowlevellock.h: New file
14374
14375 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14376
14377 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14378 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14379 when opening a symlink with O_NOFOLLOW.
14380 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14381 path when flags contains O_NOFOLLOW.
14382 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14383 if flags contains O_DIRECTORY and the result is a directory.
14384 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14385 oneself when the pointer given in D is nul (as set by ext2fs).
14386 * sysdeps/mach/hurd/mlockall.c: New file.
14387 * sysdeps/mach/hurd/munlockall.c: New file.
14388
14389 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14390
14391 * hurd/hurdsig.c: Include <pthread.h>.
14392 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14393 get the signal thread stack layout.
14394 * hurd/Makefile (headers): Remove threadvar.h.
14395 (inline-headers): Remove threadvar.h.
14396 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14397 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14398 __hurd_threadvar_max, __hurd_errno_location.
14399 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14400 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14401 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14402 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14403 unless TLS is not initialized yet, in which case we do not need a
14404 critical section yet anyway.
14405 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14406 <machine-sp.h>.
14407 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14408 declarations.
14409 (__hurd_threadvar_index): Remove enum.
14410 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14411 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14412 inlines.
14413 (__hurd_reply_port0): New variable declaration.
14414 (__hurd_local_reply_port): New macro.
14415 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14416 (interrupted_reply_port_location): Add thread_t parameter. Use it
14417 with THREAD_TCB to access thread-local variables.
14418 (_hurdsig_abort_rpcs): Pass ss->thread to
14419 interrupted_reply_port_location.
14420 (_hurd_internal_post_signal): Likewise.
14421 (_hurdsig_init): Use presence of cthread_fork instead of
14422 __hurd_threadvar_stack_mask to start signal thread by hand.
14423 Remove signal thread threadvar initialization.
14424 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14425 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14426 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14427 of threadvar.
14428 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14429 __libc_lock_self0.
14430 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14431 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14432 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14433 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14434 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14435 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14436 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14437 define variables.
14438 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14439 <hurd/threadvar.h>.
14440 [IS_IN(rtld)] (rtld_errno): New variable.
14441 [IS_IN(rtld)] (__errno_location): New weak function.
14442 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14443 * sysdeps/mach/hurd/errno.c: Remove file.
14444 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14445 (__fork): Remove THREADVAR_SPACE macro and its use.
14446 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14447 variable.
14448 (init): Do not initialize threadvar.
14449 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14450 symbol.
14451 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14452 __hurd_local_reply_port instead of threadvar.
14453 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14454 _hurd_sigstate fields.
14455 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14456 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14457 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14458 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14459 instead of threadvar.
14460 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14461 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14462 (use_threadvar, global_reply_port): Remove variables.
14463 (__hurd_reply_port0): New variable.
14464 (__mig_get_reply_port): Use __hurd_local_reply_port and
14465 __hurd_reply_port0 instead of threadvar.
14466 (__mig_dealloc_reply_port): Likewise.
14467 (__mig_init): Do not initialize threadvar.
14468 * sysdeps/mach/hurd/profil.c: Fix comment.
14469 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14470 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14471 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14472 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14473 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14474 __cthread_setspecific.
14475 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14476 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14477 __cthread_t instead of cthread_fork, cthread_detach,
14478 pthread_getattr_np, pthread_attr_getstack.
14479 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14480 __cthread_keycreate.
14481 (cthread_getspecific): Rename to __cthread_getspecific.
14482 (cthread_setspecific): Rename to __cthread_setspecific.
14483 (__libc_getspecific): Use __cthread_getspecific instead of
14484 cthread_getspecific.
14485 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14486 __cthread_keycreate instead of cthread_keycreate.
14487 (__libc_setspecific): Use __cthread_setspecific instead of
14488 cthread_setspecific.
14489 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14490 Likewise.
14491 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14492 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14493 testing whether it is defined.
14494
14495 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14496
14497 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14498 Define macro.
14499 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14500 * sysdeps/mach/i386/thread_state.h
14501 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14502 i386_THREAD_STATE.
14503 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14504 i386_THREAD_STATE.
14505 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14506
14507 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14508 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14509
14510 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14511 macros.
14512 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14513 descriptor instead of creating a new one.
14514 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14515
14516 * mach/setup-thread.c: Include <ldsodefs.h>.
14517 (__mach_setup_thread): Call _dl_allocate_tls, pass
14518 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14519 MACHINE_THREAD_STATE_FLAVOR, before getting
14520 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14521 MACHINE_THREAD_STATE_FLAVOR with the result.
14522 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14523 MACHINE_THREAD_STATE_FIX_NEW.
14524 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14525 too. Add original thread parameter.
14526
14527 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14528
14529 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14530 Remove inline function.
14531
14532 * sysdeps/i386/fpu/libm-test-ulps: Update.
14533 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14534
14535 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14536
14537 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14538 commit.
14539
14540 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14541
14542 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14543 (__sincos_code): Remove define and undefine.
14544 [__FAST_MATH__] (__sincos): Remove inline function.
14545 [__FAST_MATH__] (__sincosf): Remove inline function.
14546 [__FAST_MATH__] (__sincosl): Remove inline function.
14547 (__atan2l): Remove inline functions.
14548 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14549 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14550 function.
14551 (floor): Remove inline function.
14552 (ceil): Likewise.
14553 [__FAST_MATH__] (__ldexp_code): Remove macro.
14554 [__FAST_MATH__] (ldexp): Remove inline function.
14555 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14556 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14557 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14558 [__USE_ISOC99] (__lrint_code): Remove macro.
14559 [__USE_ISOC99] (__llrint_code): Likewise.
14560 [__USE_ISOC99] (lrintf): Remove inline function.
14561 [__USE_ISOC99] (lrint): Likewise.
14562 [__USE_ISOC99] (lrintl): Likewise.
14563 [__USE_ISOC99] (llrint): Likewise.
14564 [__USE_ISOC99] (llrintf): Likewise.
14565 [__USE_ISOC99] (llrintl): Likewise.
14566
14567 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14568
14569 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14570 (__ieee754_sqrtf): Remove.
14571 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14572 (__ieee754_sqrtf): Remove.
14573 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14574 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14575 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14576 (__ieee754_sqrtf): Remove.
14577 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14578 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14579 (sqrtf): Remove.
14580 (sqrtl): Remove.
14581 (__ieee754_sqrt): Remove.
14582 (__ieee754_sqrtf): Remove.
14583 (__ieee754_sqrtl): Remove.
14584 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14585 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14586 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14587 (__ieee754_sqrtf): Remove.
14588 (__ieee754_sqrtl): Remove.
14589
14590 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14591
14592 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14593 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14594 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14595 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14596 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14597 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14598 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14599 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14600 Likewise.
14601 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14602 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14603 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14604 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14605 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14606 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14607 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14608 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14609 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14610 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14611 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14612 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14613 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14614 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14615 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14616 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14617 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14618 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14619 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14620 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14621 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14622 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14623 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14624 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14625 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14626 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14627 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14628 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14629 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14630 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14631 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14632 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14633 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14634 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14635 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14636 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14637 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14638 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14639 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14640 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14641
14642 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14643
14644 * include/math.h (sqrt): Declare with asm redirect.
14645 (sqrtf): Likewise.
14646 (sqrtl): Likewise.
14647 (sqrtf128): Likewise.
14648 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14649 nonlib and libnldbl with -fmath-errno.
14650 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14651 * math/w_sqrt_template.c: Likewise.
14652 * math/w_sqrtf_compat.c: Likewise.
14653 * math/w_sqrtl_compat.c: Likewise.
14654 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14655 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14656 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14657 complex.h.
14658
14659 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14660
14661 * benchtests/Makefile: Define _ISOMAC.
14662 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14663 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14664 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14665 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14666 * benchtests/bench-timing.h: Define attribute_hidden.
14667
14668 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14669
14670 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14671 mov + lsr.
14672
14673 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14674
14675 [BZ #22963]
14676 * localedata/locales/cs_CZ (mon): Rename to...
14677 (alt_mon): This.
14678 (mon): Import from CLDR (genitive case).
14679
14680 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14681
14682 [BZ #22937]
14683 * localedata/locales/el_CY (abmon): Rename to...
14684 (ab_alt_mon): This.
14685 (abmon): Import from CLDR (abbreviated genitive case).
14686 * localedata/locales/el_GR (abmon): Rename to...
14687 (ab_alt_mon): This.
14688 (abmon): Import from CLDR (abbreviated genitive case).
14689
14690 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14691
14692 [BZ #22932]
14693 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14694
14695 2018-03-15 Robert Buj <robert.buj@gmail.com>
14696
14697 [BZ #22848]
14698 * localedata/locales/ca_ES (abmon): Rename to...
14699 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14700 (mon): Rename to...
14701 (alt_mon): This.
14702 (abmon): Import from CLDR (genitive case, month names preceded by
14703 "de" or "d’").
14704 (mon): Likewise.
14705 (abday): Synchronize with CLDR.
14706 (d_t_fmt): Likewise.
14707 (d_fmt): Likewise.
14708 (am_pm): Likewise.
14709
14710 (LC_TIME): Improve indentation.
14711 (LC_TELEPHONE): Likewise.
14712 (LC_NAME): Likewise.
14713 (LC_ADDRESS): Likewise.
14714
14715 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14716
14717 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14718 (lrintf): Remove definitions used only with old GCC.
14719 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14720 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14721 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14722 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14723 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14724 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14725 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14726 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14727 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14728 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14729 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14730 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14731 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14732 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14733 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14734 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14735 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14736 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14737 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14738 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14739 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14740 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14741 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14742 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14743 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14744 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14745 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14746 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14747
14748 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14749
14750 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14751 instruction to unbreak builds with binutils 2.26 and older.
14752
14753 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14754
14755 * sysdeps/aarch64/strncmp.S (count): New macro.
14756 (strncmp): Store misaligned length in SRC1 in COUNT.
14757 (mutual_align): Adjust.
14758 (misaligned8): Load dword at a time when it is safe.
14759
14760 2018-03-12 Zack Weinberg <zackw@panix.com>
14761
14762 [BZ #1190]
14763 [BZ #19476]
14764 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14765 if the _IO_EOF_SEEN bit is already set; update commentary.
14766 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14767 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14768
14769 * support/support_openpty.c, support/tty.h: New files.
14770 * support/Makefile (libsupport-routines): Add support_openpty.
14771
14772 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14773 New test cases.
14774 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14775 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14776
14777 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14778
14779 * po/pt_BR.po: Update translations.
14780
14781 2018-03-12 David Michael <fedora.dm0@gmail.com>
14782
14783 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14784 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14785 get a port to the startup server.
14786
14787 2018-03-11 Zack Weinberg <zackw@panix.com>
14788
14789 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14790 before nldbl-compat.h.
14791
14792 2018-03-10 Zack Weinberg <zackw@panix.com>
14793
14794 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14795 math.h or math_private.h.
14796
14797 * sysdeps/alpha/fpu/s_isnan.c
14798 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14799 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14800 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14801 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14802 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14803 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14804 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14805 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14806 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14807 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14808 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14809 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14810 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14811 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14812 Include math_private.h.
14813
14814 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14815 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14816 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14817 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14818 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14819 * sysdeps/powerpc/power7/fpu/s_logb.c:
14820 Include math.h and math_private.h.
14821
14822 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14823 uses of $at in .set noat / .set at.
14824
14825 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14826
14827 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14828 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14829 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14830 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14831 Likewise.
14832
14833 2018-03-09 Florian Weimer <fweimer@redhat.com>
14834
14835 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14836 in comment.
14837
14838 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14839
14840 [BZ #22919]
14841 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14842 Add nop before __startcontext, add explaining comments.
14843
14844 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14845
14846 [BZ #22926]
14847 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14848 empty for __SPE__.
14849 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14850 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14851 Do not build hardware transactional code for __SPE__.
14852 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14853 (__lll_trylock_elision): Likewise.
14854 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14855 (__lll_unlock_elision): Likewise.
14856
14857 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14858 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14859 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14860 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14861 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14862 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14863 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14864 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14865 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14866 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14867 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14868 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14869 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14870 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14871 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14872 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14873 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14874 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14875 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14876 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14877 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14878 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14879 (__ASSUME_CLONE_BACKWARDS): Define.
14880 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14881 __clone2 if __NR_clone2 is defined.
14882 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14883 (__ASSUME_CLONE_BACKWARDS): Likewise.
14884 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14885 (__ASSUME_CLONE_BACKWARDS): Likewise.
14886 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14887 (__ASSUME_CLONE2): Likewise.
14888 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14889 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14890 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14891 variants and the define architecture can use.
14892 (__ASSUME_CLONE_DEFAULT): Define as default.
14893 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14894 (__ASSUME_CLONE_BACKWARDS): Likewise.
14895 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14896 (__ASSUME_CLONE_BACKWARDS): Likewise.
14897 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14898 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14899
14900 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14901
14902 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14903
14904 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14905 time.
14906
14907 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14908 (do_test_limit): Likewise.
14909
14910 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14911 for every implementation.
14912 (do_test): Likewise.
14913
14914 * benchtests/bench-strncmp.c: Convert output to json.
14915
14916 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14917
14918 * io/futimens.c: Add missing start-of-file descriptive comment.
14919 * io/utime.c: Likewise.
14920 * misc/futimesat.c: Likewise.
14921 * misc/utimes.c: Likewise.
14922 * sysdeps/mach/hurd/futimesat.c: Likewise.
14923 * sysdeps/mach/hurd/utimes.c: Likewise.
14924 * sysdeps/posix/utime.c: Likewise.
14925 * sysdeps/posix/utimes.c: Likewise.
14926 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14927 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14928 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14929 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14930
14931 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14932
14933 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14934 hurd_futimes.
14935 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14936 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14937 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14938 (__futimens): Move implementation to...
14939 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14940 utime_tvalue_from_tspec): ... new helper functions.
14941 (hurd_futimens): New function.
14942 * sysdeps/mach/hurd/futimesat.c: New file.
14943 * sysdeps/mach/hurd/utimensat.c: New file.
14944
14945 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14946
14947 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14948 UTIME_OMIT): New macros.
14949 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14950 before reverting to converting time spec to time value and calling
14951 __file_utimes.
14952 * sysdeps/mach/hurd/utime-helper.c: New file.
14953 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14954 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14955 reverting to utime_tvalue_from_tval and __file_utimes.
14956 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14957 (__lutimes): Just call hurd_futimens after lookup.
14958 * sysdeps/mach/hurd/utimes.c: Likewise.
14959
14960 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14961
14962 * bits/sigaction.h: Add include guard.
14963 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14964 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14965 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14966 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14967 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14968 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14969 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14970 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14971 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14972
14973 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14974
14975 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14976 -Wmaybe-uninitialized for -Os.
14977 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14978 this disabling.
14979
14980 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14981
14982 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14983 __INO_T_MATCHES_INO64_T is defined.
14984 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14985 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14986 of definition.
14987 * dirent/alphasort64.c: Likewise.
14988 * dirent/scandir.c: Likewise.
14989 * dirent/scandir64-tail.c: Likewise.
14990 * dirent/scandir64.c: Likewise.
14991 * dirent/scandirat.c: Likewise.
14992 * dirent/scandirat64.c: Likewise.
14993 * dirent/versionsort.c: Likewise.
14994 * dirent/versionsort64.c: Likewise.
14995 * include/dirent.h: Likewise.
14996
14997 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14998 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14999 for socketpair endpoint.
15000 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
15001 WRITE_BUFFER_SIZE as buffer size for sending socket.
15002 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
15003 issue on system where send is implemented with sendto syscall.
15004 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
15005 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
15006 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
15007 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
15008
15009 [BZ #21269]
15010 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
15011 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
15012 sa_restorer for vDSO case.
15013 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
15014
15015 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
15016
15017 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
15018 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
15019 * hurd/hurd/ioctl.h: Include <mach/port.h>
15020 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
15021 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
15022 <mach/mach_types.h> and <mach/message.h>.
15023 (headers): Move mach/param.h to bits/mach/param.h.
15024 * sysdeps/mach/i386/mach/param.h: Move file to ...
15025 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
15026 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
15027 of <mach/param.h>.
15028 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
15029 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
15030 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
15031 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
15032 trivial, for C++ conformity.
15033 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
15034 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
15035 Process mig output through $(migheadersed).
15036 * hurd/Makefile (migheadersed): Define variable.
15037 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
15038 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
15039 headers.
15040 * hurd/hurd.h: Include <bits/types/sigset_t.h>
15041 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
15042 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
15043 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
15044 <bits/types/sigset_t.h>.
15045 [!defined __USE_GNU]: Do not #error out.
15046 (struct hurd_sigstate): Use _NSIG instead of NSIG.
15047 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
15048 Include <stddef.h> and <bits/types/sigset_t.h>
15049 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
15050 instead of sighandler_t.
15051 * stdlib/errno.h (error_t): Move definition to...
15052 * bits/types/error_t.h: ... new header.
15053 * stdlib/Makefile (headers): Add bits/types/error_t.h.
15054 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
15055 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
15056 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
15057 * hurd/hurd.h: Include <bits/types/error_t.h>
15058 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
15059 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
15060 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
15061 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
15062 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
15063 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
15064 * sysdeps/mach/hurd/futimens.c: New file.
15065
15066 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
15067
15068 [BZ #22918]
15069 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15070 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15071 * nscd/gai.c (__nss_hosts_database): Readd definition.
15072 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15073 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15074 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15075
15076 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15077
15078 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15079 (ifunc_one): Likewise.
15080
15081 2018-03-01 DJ Delorie <dj@delorie.com>
15082
15083 [BZ #22342]
15084 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15085 key value.
15086
15087 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15088
15089 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15090 `match_pid' parameter.
15091 (td_ta_thr_iter): Update accordingly.
15092
15093 2018-03-01 Florian Weimer <fweimer@redhat.com>
15094
15095 * nptl/Makefile (install-lib-ldscripts): Remove.
15096 (install): Remove rule.
15097 ($(inst_libdir)/libpthread.so): Likewise.
15098
15099 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15100
15101 [BZ #22896]
15102 * localedata/locales/an_ES: update month and day names,
15103 improve d_fmt, improve postal_fmt, add country_post,
15104 add country_isbn
15105
15106 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15107
15108 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15109 Ukrainian instead of Bulgarian.
15110
15111 2018-03-01 Florian Weimer <fweimer@redhat.com>
15112
15113 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15114 reference.
15115
15116 2018-03-01 Florian Weimer <fweimer@redhat.com>
15117
15118 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15119 * nptl/Makefile (routines): Add pthread_atfork.
15120 (static-only-routines): Set to pthread_atfork.
15121 (libpthread-routines): Remove pthread_atfork.
15122 (libpthread-static-only-routines): Remove.
15123 (install): Update comment.
15124 (libpthread.so): Do not install libpthread_nonshared.a.
15125 (tests): Do not link with libpthread_nonshared.a.
15126 (generated): Remove libpthread_nonshared.a.
15127 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15128 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15129 with libpthread_nonshared.a.
15130
15131 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15132
15133 [BZ #22902]
15134 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15135 (libc_feholdexcept_setroundf128): New macro.
15136 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15137
15138 [BZ #15105]
15139 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15140 libc_hidden_def.
15141 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15142 * include/inttypes.h: New file.
15143
15144 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15145
15146 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15147 -Os in two more places.
15148
15149 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15150
15151 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15152 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15153 be sorted correctly at the moment because of a bug.
15154
15155 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15156
15157 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15158 treat ñ as a primary different character, sync the collation
15159 for Spanish with CLDR.
15160 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15161 * localedata/Makefile: Add new test files.
15162 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15163 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15164 collation order.
15165 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15166 * localedata/am_ET.UTF-8.in: New test file.
15167 * localedata/az_AZ.UTF-8.in: Likewise.
15168 * localedata/be_BY.UTF-8.in: Likewise.
15169 * localedata/ber_DZ.UTF-8.in: Likewise.
15170 * localedata/ber_MA.UTF-8.in: Likewise.
15171 * localedata/bg_BG.UTF-8.in: Likewise.
15172 * localedata/br_FR.UTF-8.in: Likewise.
15173 * localedata/cmn_TW.UTF-8.in: Likewise.
15174 * localedata/crh_UA.UTF-8.in: Likewise.
15175 * localedata/csb_PL.UTF-8.in: Likewise.
15176 * localedata/cv_RU.UTF-8.in: Likewise.
15177 * localedata/cy_GB.UTF-8.in: Likewise.
15178 * localedata/dz_BT.UTF-8.in: Likewise.
15179 * localedata/eo.UTF-8.in: Likewise.
15180 * localedata/es_ES.UTF-8.in: Likewise.
15181 * localedata/fa_IR.UTF-8.in: Likewise.
15182 * localedata/fi_FI.UTF-8.in: Likewise.
15183 * localedata/fil_PH.UTF-8.in: Likewise.
15184 * localedata/fur_IT.UTF-8.in: Likewise.
15185 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15186 * localedata/ha_NG.UTF-8.in: Likewise.
15187 * localedata/ig_NG.UTF-8.in: Likewise.
15188 * localedata/ik_CA.UTF-8.in: Likewise.
15189 * localedata/kk_KZ.UTF-8.in: Likewise.
15190 * localedata/ku_TR.UTF-8.in: Likewise.
15191 * localedata/ky_KG.UTF-8.in: Likewise.
15192 * localedata/ln_CD.UTF-8.in: Likewise.
15193 * localedata/mi_NZ.UTF-8.in: Likewise.
15194 * localedata/ml_IN.UTF-8.in: Likewise.
15195 * localedata/mn_MN.UTF-8.in: Likewise.
15196 * localedata/mr_IN.UTF-8.in: Likewise.
15197 * localedata/mt_MT.UTF-8.in: Likewise.
15198 * localedata/nb_NO.UTF-8.in: Likewise.
15199 * localedata/om_KE.UTF-8.in: Likewise.
15200 * localedata/os_RU.UTF-8.in: Likewise.
15201 * localedata/ps_AF.UTF-8.in: Likewise.
15202 * localedata/ro_RO.UTF-8.in: Likewise.
15203 * localedata/ru_RU.UTF-8.in: Likewise.
15204 * localedata/sc_IT.UTF-8.in: Likewise.
15205 * localedata/se_NO.UTF-8.in: Likewise.
15206 * localedata/sq_AL.UTF-8.in: Likewise.
15207 * localedata/sv_SE.UTF-8.in: Likewise.
15208 * localedata/szl_PL.UTF-8.in: Likewise.
15209 * localedata/tg_TJ.UTF-8.in: Likewise.
15210 * localedata/tk_TM.UTF-8.in: Likewise.
15211 * localedata/tt_RU.UTF-8.in: Likewise.
15212 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15213 * localedata/ug_CN.UTF-8.in: Likewise.
15214 * localedata/uz_UZ.UTF-8.in: Likewise.
15215 * localedata/vi_VN.UTF-8.in: Likewise.
15216 * localedata/yi_US.UTF-8.in: Likewise.
15217 * localedata/yo_NG.UTF-8.in: Likewise.
15218 * localedata/zh_CN.UTF-8.in: Likewise.
15219 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15220 file and fix bugs in the collation.
15221 * localedata/locales/az_AZ: Likewise.
15222 * localedata/locales/be_BY: Likewise.
15223 * localedata/locales/ber_DZ: Likewise.
15224 * localedata/locales/ber_MA: Likewise.
15225 * localedata/locales/bg_BG: Likewise.
15226 * localedata/locales/br_FR: Likewise.
15227 * localedata/locales/br_FR@euro: Likewise.
15228 * localedata/locales/ca_ES: Likewise.
15229 * localedata/locales/cns11643_stroke: Likewise.
15230 * localedata/locales/crh_UA: Likewise.
15231 * localedata/locales/cs_CZ: Likewise.
15232 * localedata/locales/csb_PL: Likewise.
15233 * localedata/locales/cv_RU: Likewise.
15234 * localedata/locales/cy_GB: Likewise.
15235 * localedata/locales/da_DK: Likewise.
15236 * localedata/locales/dz_BT: Likewise.
15237 * localedata/locales/en_CA: Likewise.
15238 * localedata/locales/eo: Likewise.
15239 * localedata/locales/es_CU: Likewise.
15240 * localedata/locales/es_EC: Likewise.
15241 * localedata/locales/es_ES: Likewise.
15242 * localedata/locales/es_US: Likewise.
15243 * localedata/locales/et_EE: Likewise.
15244 * localedata/locales/fa_IR: Likewise.
15245 * localedata/locales/fi_FI: Likewise.
15246 * localedata/locales/fil_PH: Likewise.
15247 * localedata/locales/fur_IT: Likewise.
15248 * localedata/locales/gez_ER@abegede: Likewise.
15249 * localedata/locales/ha_NG: Likewise.
15250 * localedata/locales/hr_HR: Likewise.
15251 * localedata/locales/hsb_DE: Likewise.
15252 * localedata/locales/hu_HU: Likewise.
15253 * localedata/locales/ig_NG: Likewise.
15254 * localedata/locales/ik_CA: Likewise.
15255 * localedata/locales/is_IS: Likewise.
15256 * localedata/locales/iso14651_t1_pinyin: Likewise.
15257 * localedata/locales/kk_KZ: Likewise.
15258 * localedata/locales/ku_TR: Likewise.
15259 * localedata/locales/ky_KG: Likewise.
15260 * localedata/locales/ln_CD: Likewise.
15261 * localedata/locales/lt_LT: Likewise.
15262 * localedata/locales/lv_LV: Likewise.
15263 * localedata/locales/mi_NZ: Likewise.
15264 * localedata/locales/ml_IN: Likewise.
15265 * localedata/locales/mn_MN: Likewise.
15266 * localedata/locales/mr_IN: Likewise.
15267 * localedata/locales/mt_MT: Likewise.
15268 * localedata/locales/nb_NO: Likewise.
15269 * localedata/locales/om_KE: Likewise.
15270 * localedata/locales/os_RU: Likewise.
15271 * localedata/locales/pl_PL: Likewise.
15272 * localedata/locales/ps_AF: Likewise.
15273 * localedata/locales/ro_RO: Likewise.
15274 * localedata/locales/ru_RU: Likewise.
15275 * localedata/locales/ru_UA: Likewise.
15276 * localedata/locales/sc_IT: Likewise.
15277 * localedata/locales/se_NO: Likewise.
15278 * localedata/locales/si_LK: Likewise.
15279 * localedata/locales/sq_AL: Likewise.
15280 * localedata/locales/sv_FI: Likewise.
15281 * localedata/locales/sv_FI@euro: Likewise.
15282 * localedata/locales/sv_SE: Likewise.
15283 * localedata/locales/szl_PL: Likewise.
15284 * localedata/locales/tg_TJ: Likewise.
15285 * localedata/locales/ti_ER: Likewise.
15286 * localedata/locales/tk_TM: Likewise.
15287 * localedata/locales/tl_PH: Likewise.
15288 * localedata/locales/tr_TR: Likewise.
15289 * localedata/locales/tt_RU: Likewise.
15290 * localedata/locales/tt_RU@iqtelif: Likewise.
15291 * localedata/locales/ug_CN: Likewise.
15292 * localedata/locales/uk_UA: Likewise.
15293 * localedata/locales/uz_UZ: Likewise.
15294 * localedata/locales/uz_UZ@cyrillic: Likewise.
15295 * localedata/locales/vi_VN: Likewise.
15296 * localedata/locales/yi_US: Likewise.
15297 * localedata/locales/yo_NG: Likewise.
15298
15299 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15300
15301 * gen-locales.mk: Make test files which contain @ modifiers in their
15302 name work.
15303 * localedata/gen-locale.sh: Likewise.
15304
15305 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15306
15307 * posix/tst-fnmatch.input: Fix results for range expressions
15308 for non C locales.
15309 * posix/tst-regexloc.c: Do not use a range expression for
15310 de_DE.ISO-8859-1 locale.
15311
15312 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15313
15314 * posix/bug-regex5.c: Fix test case because with the new
15315 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15316 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15317 file.
15318
15319 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15320
15321 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15322 downloaded from ISO, the collation order of @-. and space has changed.
15323 Therefore, this test file needed to be adapted.
15324 * localedata/fr_CA.UTF-8.in: Likewise.
15325 * localedata/fr_FR.UTF-8.in: Likewise.
15326 * localedata/uk_UA.UTF-8.in: Likewise.
15327
15328 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15329
15330 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15331 order of ȥ in the new iso14651_t1_common file.
15332 * localedata/pl_PL.UTF-8.in: Likewise.
15333
15334 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15335
15336 * localedata/locales/iso14651_t1_common: Add sections for various
15337 scripts to the iso14651_t1_common file.
15338
15339 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15340
15341 * localedata/locales/iso14651_t1_common: Use the code point of a
15342 character in the fourth collation level instead of IGNORE for all
15343 entries which have IGNORE on all 4 levels.
15344
15345 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15346
15347 * localedata/locales/iso14651_t1_common: Add some convenient collation
15348 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15349 rules similar to those in CLDR.
15350
15351 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15352
15353 * localedata/locales/iso14651_t1_common: The new version of this
15354 file downloaded from ISO contained several syntax errors which
15355 are fixed by this patch.
15356
15357 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15358
15359 * localedata/locales/iso14651_t1_common: replace all <U.....>
15360 with <U000.....> because glibc understands only 4 digit or 8 digit
15361
15362 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15363
15364 * localedata/locales/iso14651_t1_common: Necessary changes
15365 to make the file downloaded from ISO usable by glibc.
15366
15367 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15368
15369 [BZ #14095]
15370 * localedata/locales/iso14651_t1_common: Update file to
15371 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15372
15373 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15374
15375 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15376 of <nptl/pthreadP.h>
15377 (thread_attr_compare): Move function to...
15378 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15379 * sysdeps/nptl/timer_routines.h: ... new header.
15380 * sysdeps/mach/hurd/gai_misc.h: New file.
15381
15382 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15383
15384 * string/strcoll_l.c: Include <libc-diag.h>.
15385 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15386 declarations of seq1 and seq2.
15387
15388 [BZ #15105]
15389 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15390 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15391
15392 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15393
15394 [BZ #22433]
15395 [BZ #22807]
15396 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15397 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15398 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15399 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15400 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15401 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15402
15403 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15404
15405 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15406 macros used in __ptrace_request.
15407
15408 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15409
15410 [BZ #22792]
15411 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15412 to $(CC).
15413 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15414 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15415 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15416 <tcb-offsets.h>.
15417
15418 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15419
15420 [BZ #15105]
15421 * ctype/ctype.c (tolower): Use libc_hidden_def.
15422 (toupper): Likewise.
15423 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15424 [!_ISOMAC] (toupper): Likewise.
15425
15426 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15427
15428 * localedata/Makefile: Remove --quiet argument when
15429 installing locales
15430
15431 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15432
15433 [BZ #17438]
15434 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15435 in d_fmt.
15436 * localedata/locales/pt_PT (LC_TIME): likewise
15437
15438 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15439
15440 [BZ #22646]
15441 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15442 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15443 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15444
15445 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15446
15447 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15448
15449 * nptl/Makefile (routines): Remove unregister-atfork.
15450 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15451 (fork_handler_alloc): Remove function.
15452 (fork_handlers, fork_handler_init): New variables.
15453 (__fork_lock): Rename to atfork_lock.
15454 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15455 to use a dynamic array to add/remove atfork handlers.
15456 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15457 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15458 Remove declaration.
15459 (fork_handler): Remove next, refcntr, and need_signal member.
15460 (__run_fork_handler_type): New enum.
15461 (__run_fork_handlers): New prototype.
15462 * nptl/register-atfork.c: Remove file.
15463 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15464
15465 * sysdeps/nptl/nptl-signals.h: Move to ...
15466 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15467 comments.
15468 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15469 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15470 unnecessary check for SIGTIMER.
15471 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15472 remove unnecessary removal of SIGTIMER.
15473 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15474 include-signals.h rename.
15475 * nptl/pthreadP.h: Likewise.
15476 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15477 __is_internal_signal instead of __nptl_is_internal_signal.
15478
15479 2018-02-22 Andrew Waterman <andrew@sifive.com>
15480
15481 [BZ # 22884]
15482 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15483 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15484 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15485 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15486
15487 2018-02-22 DJ Delorie <dj@delorie.com>
15488
15489 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15490
15491 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15492
15493 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15494 do_misaligned, not misaligned8.
15495
15496 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15497
15498 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15499 Add memcpy_thunderx2.
15500 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15501 Increment to 4.
15502 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15503 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15504 and IS_THUNDERX2PA checks.
15505 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15506 Use macro to set name appropriately.
15507 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15508 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15509 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15510 New macro.
15511 (IS_THUNDERX2): New macro.
15512
15513 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15514
15515 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15516
15517 2018-02-21 Zack Weinberg <zackw@panix.com>
15518
15519 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15520 Define here, unconditionally.
15521 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15522 * libio/libioP.h: Remove #if 0 blocks.
15523 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15524 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15525 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15526
15527 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15528 Assume weak_alias is always defined.
15529
15530 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15531 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15532 Remove #if 0 and #ifdef TODO blocks.
15533 Assume text_set_element is always defined.
15534
15535 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15536 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15537 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15538
15539 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15540 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15541 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15542 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15543 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15544 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15545 Reformat bit flags for _flags field to make occupancy clearer.
15546 Update commentary.
15547 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15548 Keep definitions consistent with those in libio/libio.h.
15549
15550 * libio/libio.h (_IO_file_flags): Remove macro.
15551 All uses changed to _flags.
15552
15553 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15554 (__HAVE_COLUMN, _IO_BE): Don't define.
15555 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15556 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15557 * libio/libioP.h (EOF): Don't define.
15558 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15559 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15560 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15561 testing _IO_UNIFIED_JUMPTABLES.
15562
15563 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15564 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15565 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15566 (_IO_size_t): Delete; all uses changed to size_t.
15567 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15568 (_IO_off_t): Delete; all uses changed to off_t.
15569 (_IO_off64_t): Delete; all uses changed to off64_t.
15570 (_IO_pid_t): Delete; all uses changed to pid_t.
15571 (_IO_uid_t): Delete; all uses changed to uid_t.
15572 (_IO_wint_t): Delete; all uses changed to wint_t.
15573 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15574 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15575 (_IO_cookie_io_functions_t): Delete; all uses changed to
15576 cookie_io_functions_t.
15577 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15578 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15579 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15580 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15581
15582 * libio/iofopncook.c: Remove unnecessary forward declarations.
15583 * libio/iolibio.h: Correct outdated commentary.
15584 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15585 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15586 Remove unnecessary casts.
15587 * stdio-common/getline.c: Use _IO_getdelim directly.
15588 Don't redefine ssize_t.
15589 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15590 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15591 Remove outdated comments.
15592 * stdio-common/vfscanf.c: Don't redefine va_list.
15593
15594 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15595 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15596 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15597 which are always true, and __cplusplus, which is always false.
15598
15599 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15600
15601 [BZ #15105]
15602 [BZ #19463]
15603 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15604 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15605 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15606 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15607 libc_hidden_proto.
15608 [!_ISOMAC] (putc_unlocked): Likewise.
15609 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15610 define inline if [__USE_EXTERN_INLINES].
15611 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15612 putc_unlocked.
15613
15614 [BZ #15105]
15615 [BZ #19463]
15616 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15617 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15618 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15619 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15620 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15621 getc_unlocked.
15622 * time/tzfile.c (__tzfile_read): Likewise.
15623
15624 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15625
15626 [BZ #22517]
15627 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15628
15629 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15630
15631 * io/fcntl.h: Fix a typo in a comment.
15632
15633 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15634
15635 [BZ #22862]
15636 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15637 define _DEFAULT_SOURCE.
15638 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15639
15640 2018-02-21 Florian Weimer <fweimer@redhat.com>
15641
15642 [BZ #20890]
15643 * elf/cache.c (save_cache): Call fsync on temporary file before
15644 renaming it.
15645 (save_aux_cache): Call fdatasync on temporary file before renaming
15646 it.
15647
15648 2018-02-21 Florian Weimer <fweimer@redhat.com>
15649
15650 [BZ #22787]
15651 * include/caller.h: Remove file.
15652 * elf/dl-caller.c: Likewise.
15653 * elf/Makefile (dl-routines): Remove dl-caller.
15654 (shared-only-routines): Do not add dl-caller.
15655 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15656 __check_caller.
15657 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15658 member.
15659 (dl_open_worker): Do not call __check_caller.
15660 (_dl_open): Do not set caller_dl_open member.
15661 * elf/rtld.c (_rtld_global_ro): Do not initialize
15662 _dl_check_caller member.
15663 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15664 _dl_check_caller member.
15665 (_dl_check_caller): Remove declaration.
15666 * sysdeps/unix/sysv/linux/dl-execstack.c
15667 (_dl_make_stack_executable): Do not call __check_caller.
15668
15669 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15670
15671 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15672 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15673
15674 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15675
15676 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15677 description.
15678
15679 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15680
15681 [BZ #16335]
15682 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15683 of 199606L, 200112L, and 200809L.
15684 (_XOPEN_SOURCE): Document special values of 600 and 700.
15685 (_ISOC11_SOURCE): Document macro.
15686 (_ATFILE_SOURCE): Likewise.
15687 (_FORTIFY_SOURCE): Likewise.
15688
15689 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15690
15691 [BZ #15105]
15692 [BZ #19463]
15693 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15694 and define as weak alias of __ferror_unlocked. Use
15695 libc_hidden_weak.
15696 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15697 libc_hidden_proto.
15698 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15699 function if [__USE_EXTERN_INLINES].
15700 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15701 ferror_unlocked.
15702
15703 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15704
15705 [BZ #6889]
15706 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15707
15708 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15709
15710 [BZ #22818]
15711 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15712 the GLIBC_2.1 version.
15713
15714 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15715
15716 [BZ #21508]
15717 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15718 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15719 intl/tst-gettext-de.po from po/de.po by removing the
15720 POT-Creation-Date line.
15721 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15722 ../po/de.po.
15723 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15724 ../po/de.po.
15725
15726 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15727
15728 * mach/Makefile (headers): Add mach/param.h.
15729 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15730 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15731 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15732 (__ptsname_r): Move implementation to...
15733 (__ptsname_internal): ... new function. Add filling the STP
15734 structure.
15735
15736 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15737
15738 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15739 idouble to 1 ULP.
15740
15741 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15742
15743 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15744 syntax.
15745
15746 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15747
15748 * nptl/Makefile (tst-mutex8-ENV): Delete.
15749 * nptl/tst-mutex8.c (check_type):
15750 Add runtime check if mutex will be elided.
15751
15752 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15753
15754 [BZ #20980]
15755 [BZ #21234]
15756 * manual/install.texi (Configuring and compiling): Describe
15757 passing CC and CFLAGS on configure command line, not as
15758 environment variables. Use @code markup on those variables.
15759 Specify what options go in CC and what go in CFLAGS. Note the
15760 requirement to compile with optimization.
15761 * INSTALL: Regenerated.
15762
15763 [BZ #18124]
15764 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15765 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15766 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15767 __sigprocmask instead of sigprocmask.
15768 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15769 Likewise.
15770 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15771 __sigsetjmp and sigprocmask.
15772
15773 [BZ #15105]
15774 * include/argz.h (argz_next): Use libc_hidden_proto.
15775 (__argz_next): Likewise.
15776 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15777 (argz_next): Use libc_hidden_weak.
15778
15779 [BZ #15105]
15780 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15781 libc_hidden_proto.
15782 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15783 libc_hidden_def.
15784
15785 [BZ #15105]
15786 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15787 libc_hidden_proto.
15788 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15789
15790 [BZ #15105]
15791 [BZ #19463]
15792 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15793 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15794 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15795 (__feof_unlocked): New declaration, and inline function if
15796 [__USE_EXTERN_INLINES].
15797 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15798 instead of feof_unlocked.
15799 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15800 * nss/nsswitch.c (nss_parse_file): Likewise.
15801 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15802 Likewise.
15803 * time/getdate.c (__getdate_r): Likewise.
15804 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15805 Define as macro to call __feof_unlocked.
15806
15807 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15808
15809 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15810
15811 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15812
15813 * math/Makefile: Remove mpexp.c and mplog.c
15814 * sysdeps/i386/fpu/mpexp.c: Delete file.
15815 * sysdeps/i386/fpu/mplog.c: Likewise.
15816 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15817 * sysdeps/ia64/fpu/mplog.c: Likewise.
15818 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15819 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15820 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15821 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15822 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15823 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15824 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15825 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15826 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15827 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15828 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15829 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15830 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15831 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15832 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15833 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15834
15835 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15836
15837 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15838
15839 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15840
15841 * sysdeps/sh/libm-test-ulps: Update.
15842
15843 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15844
15845 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15846 idouble to 1 ULP.
15847
15848 2018-02-12 Zack Weinberg <zackw@panix.com>
15849
15850 [BZ #19239]
15851 * posix/sys/types.h: Don't include sys/sysmacros.h.
15852 * misc/sys/sysmacros.h: Remove the conditional deprecation
15853 warnings for the macros defined by this header.
15854
15855 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15856
15857 * manual/probes.texi: Remove slowexp probes.
15858 * math/Makefile: Remove slowexp.
15859 * sysdeps/generic/math_private.h (__slowexp): Remove.
15860 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15861 document error bounds.
15862 * sysdeps/i386/fpu/slowexp.c: Remove.
15863 * sysdeps/ia64/fpu/slowexp.c: Remove.
15864 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15865 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15866 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15867 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15868 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15869 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15870 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15871 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15872 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15873 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15874 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15875
15876 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15877
15878 [BZ #13932]
15879 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15880 * benchtests/pow-inputs: Update comment for slow path cases.
15881 * manual/probes.texi (slowpow_p10): Delete removed probe.
15882 (slowpow_p10): Likewise.
15883 * math/Makefile: Remove halfulp.c and slowpow.c.
15884 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15885 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15886 (__halfulp): Remove.
15887 (__slowpow): Remove.
15888 * sysdeps/i386/fpu/halfulp.c: Delete file.
15889 * sysdeps/i386/fpu/slowpow.c: Likewise.
15890 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15891 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15892 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15893 improve comments and add error analysis.
15894 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15895 (power1): Remove function:
15896 (log1): Remove error argument, add error analysis.
15897 (my_log2): Remove function.
15898 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15899 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15900 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15901 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15902 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15903 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15904 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15905 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15906 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15907 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15908 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15909 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15910 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15911 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15912
15913 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15914
15915 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15916 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15917
15918 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15919
15920 [BZ #22433]
15921 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15922 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15923 and PTRACE_SETHBPREGS.
15924
15925 2018-02-10 Zack Weinberg <zackw@panix.com>
15926
15927 [BZ #22830]
15928 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15929 correctly.
15930 * malloc/tst-malloc-stats-cancellation.c: New test case.
15931 * malloc/Makefile: Add new test case.
15932
15933 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15934
15935 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15936
15937 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15938
15939 * math/Makefile (libm-narrow-fns): Add add.
15940 (libm-test-funcs-narrow): Likewise.
15941 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15942 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15943 * math/gen-auto-libm-tests.c (test_functions): Add add.
15944 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15945 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15946 (NARROW_ADD_TRIVIAL): Likewise.
15947 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15948 macro.
15949 (__daddl): Likewise.
15950 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15951 dadd.
15952 (CFLAGS-nldbl-dadd.c): New variable.
15953 (CFLAGS-nldbl-fadd.c): Likewise.
15954 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15955 __nldbl_daddl.
15956 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15957 prototype.
15958 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15959 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15960 * math/auto-libm-test-in: Add tests of add.
15961 * math/auto-libm-test-out-narrow-add: New generated file.
15962 * math/libm-test-narrow-add.inc: New file.
15963 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15964 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15965 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15966 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15967 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15968 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15969 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15970 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15971 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15972 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15973 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15974 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15975 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15976 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15977 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15978 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15979 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15980 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15981 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15982 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15983 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15984 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15985 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15986 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15987 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15988 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15989 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15990 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15991 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15992 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15993 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15994 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15995 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15999 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16000 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
16001 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
16002 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
16003 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
16004 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
16005 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
16006 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
16007 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
16008 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
16009
16010 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
16011 (f128-pairs): New variable.
16012 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
16013 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
16014 to CFLAGS.
16015 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
16016 Also make tests add $(f128-loader-link) to gnulib-tests.
16017
16018 2018-02-09 DJ Delorie <dj@redhat.com>
16019
16020 [BZ #22827]
16021 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
16022 64-bit ELF type for 64-bit ELF objects.
16023
16024 2018-02-09 Joseph Myers <joseph@codesourcery.com>
16025
16026 * math/libm-test-driver.c (snan_tests_arg): New variable.
16027 * math/libm-test-support.h (snan_tests_arg): New declaration.
16028 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
16029
16030 * math/Makefile (test-type-pairs): New variable.
16031 (test-type-pairs-f64xf128-yes): Likewise.
16032 (tests): Add test-narrow-macros.
16033 (libm-test-funcs-narrow): New variable.
16034 (libm-test-c-narrow): Likewise.
16035 (generated): Add $(libm-test-c-narrow).
16036 (libm-tests-base-narrow): New variable.
16037 (libm-tests-narrow): Likewise.
16038 (libm-tests): Add $(libm-tests-narrow).
16039 (libm-tests-for-type): Handle $(libm-tests-narrow).
16040 (libm-test-c-narrow-obj): New variable.
16041 ($(libm-test-c-narrow-obj)): New rule.
16042 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
16043 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
16044 $(o-iterator) to set dependencies and CFLAGS.
16045 * math/gen-auto-libm-tests.c: Document use for narrowing
16046 functions.
16047 (output_for_one_input_case): Take argument NARROW.
16048 (generate_output): Likewise. Update call to
16049 output_for_one_input_case.
16050 (main): Take --narrow option. Update call to generate_output.
16051 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
16052 (apply_lit): Update call to _apply_lit.
16053 (apply_arglit): New function.
16054 (parse_args): Handle "a" arguments.
16055 (parse_auto_input): Handle format names using ":".
16056 * math/README.libm-test: Document "a" parameter type.
16057 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
16058 (ARG_TYPE_TRUE_MIN): Likewise.
16059 (ARG_TYPE_MAX): Likwise.
16060 (ARG_MIN_EXP): Likewise.
16061 (ARG_MAX_EXP): Likewise.
16062 (ARG_MANT_DIG): Likewise.
16063 (TEST_COND_arg_ibm128): Likewise.
16064 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
16065 (TEST_COND_arg_fmt): New macro.
16066 (init_max_error): Update prototype.
16067 * math/libm-test-support.c (test_ibm128): New variable.
16068 (init_max_error): Take argument testing_ibm128 and set test_ibm128
16069 instead of using [TEST_COND_ibm128] conditional.
16070 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16071 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16072 [TEST_NARROW] (TEST_MSG): New definition.
16073 (arg_plus_zero): New macro.
16074 (arg_minus_zero): Likewise.
16075 (arg_plus_infty): Likewise.
16076 (arg_minus_infty): Likewise.
16077 (arg_qnan_value_pl): Likewise.
16078 (arg_qnan_value): Likewise.
16079 (arg_snan_value_pl): Likewise.
16080 (arg_snan_value): Likewise.
16081 (arg_max_value): Likewise.
16082 (arg_min_value): Likewise.
16083 (arg_min_subnorm_value): Likewise.
16084 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16085 (RUN_TEST_LOOP_aa_f): New macro.
16086 (TEST_SUFF): New macro.
16087 (TEST_SUFF_STR): Likewise.
16088 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16089 (TEST_COND_any_ibm128): New macro.
16090 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16091 this_func. Update call to init_max_error.
16092 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16093 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16094 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16095 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16096 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16097 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16098 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16099 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16100 * math/test-math-vector.h (TEST_NARROW): Likewise.
16101 * math/test-arg-double.h: New file.
16102 * math/test-arg-float128.h: Likewise.
16103 * math/test-arg-float32x.h: Likewise.
16104 * math/test-arg-float64.h: Likewise.
16105 * math/test-arg-float64x.h: Likewise.
16106 * math/test-arg-ldouble.h: Likewise.
16107 * math/test-math-narrow.h: Likewise.
16108 * math/test-narrow-macros.c: Likewise.
16109 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16110 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16111 test-narrow-macros-ldbl-64.
16112 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16113
16114 * math/bits/mathcalls-narrow.h: New file.
16115 * include/bits/mathcalls-narrow.h: Likewise.
16116 * math/math-narrow.h: Likewise.
16117 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16118 (__MATHCALL_NARROW_ARGS_2): Likewise.
16119 (__MATHCALL_NARROW_ARGS_3): Likewise.
16120 (__MATHCALL_NARROW_NORMAL): Likewise.
16121 (__MATHCALL_NARROW_REDIR): Likewise.
16122 (__MATHCALL_NARROW): Likewise.
16123 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16124 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16125 defined.
16126 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16127 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16128 (libm-narrow-fns): New variable.
16129 (libm-narrow-types-basic): Likewise.
16130 (libm-narrow-types-ldouble-yes): Likewise.
16131 (libm-narrow-types-float128-yes): Likewise.
16132 (libm-narrow-types-float128-alias-yes): Likewise.
16133 (libm-narrow-types): Likewise.
16134 (libm-routines): Add narrowing functions.
16135 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16136 (libc_feholdexcept_setroundf128): New macro.
16137 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16138 * sysdeps/ieee754/float128/float128_private.h: Include
16139 <math/math-narrow.h>.
16140 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16141 Undefine and redefine.
16142 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16143 (libm_alias_float_ldouble): Undefine and redefine.
16144 (libm_alias_double_ldouble): Likewise.
16145
16146 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16147
16148 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16149
16150 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16151 FPCR/FPSR.
16152
16153 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16154
16155 * manual/creature.texi: Convert references to gcc.info to gcc.
16156 * manual/stdio.texi: Likewise.
16157 * manual/string.texi: Likewise.
16158
16159 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16160
16161 [BZ #17979]
16162 * posix/bits/types.h (__int_least8_t): New typedef.
16163 (__uint_least8_t): Likewise.
16164 (__int_least16_t): Likewise.
16165 (__uint_least16_t): Likewise.
16166 (__int_least32_t): Likewise.
16167 (__uint_least32_t): Likewise.
16168 (__int_least64_t): Likewise.
16169 (__uint_least64_t): Likewise.
16170 * sysdeps/generic/stdint.h (int_least8_t): Define using
16171 __int_least8_t.
16172 (int_least16_t): Define using __int_least16_t.
16173 (int_least32_t): Define using __int_least32_t.
16174 (int_least64_t): Define using __int_least64_t.
16175 (uint_least8_t): Define using __uint_least8_t.
16176 (uint_least16_t): Define using __uint_least16_t.
16177 (uint_least32_t): Define using __uint_least32_t.
16178 (uint_least64_t): Define using __uint_least64_t.
16179 * wcsmbs/uchar.h: Include <bits/types.h>.
16180 (char16_t): Define using __uint_least16_t conditional only on
16181 [!__USE_ISOCXX11].
16182 (char32_t): Define using __uint_least32_t conditional only on
16183 [!__USE_ISOCXX11].
16184 * wcsmbs/test-char-types.c: New file.
16185 * wcsmbs/Makefile (tests): Add test-char-types.
16186
16187 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16188 version to 4.0.1.
16189
16190 2018-02-07 Zack Weinberg <zackw@panix.com>
16191
16192 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16193 Delete all contents except for definitions of _G_HAVE_MMAP and
16194 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16195 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16196 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16197 change as above.
16198
16199 * libio/libio.h: Don't include bits/_G_config.h here.
16200 Include stddef.h with __need_wchar_t defined. Include
16201 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16202 Define _IO_iconv_t here, directly.
16203 Don't define _IO_HAVE_ST_BLKSIZE.
16204 * libio/libioP.h: Include _G_config.h here. Move include of
16205 shlib-compat.h up with rest of includes. Simplify conditionals
16206 controlling definition of _IO_JUMPS_OFFSET.
16207
16208 * csu/init.c: Remove always-true #if around entire file.
16209 Don't include stdio.h. Set _IO_stdin_used to hardwired
16210 constant 0x20001, and update commentary.
16211 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16212 Replace all uses of _G_va_list with __gnuc_va_list.
16213 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16214 instead of #if _IO_HAVE_ST_BLKSIZE.
16215 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16216 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16217 not #ifdef.
16218
16219 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16220 multiple-include guard to match.
16221 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16222 into this file.
16223 Remove preprocessor conditionals that are always true and/or
16224 redundant to other preprocessor conditionals in the same nest.
16225 Include shlib-compat.h unconditionally.
16226 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16227 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16228 defined after including stdio.h.
16229 Use __BEGIN_DECLS/__END_DECLS.
16230
16231 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16232 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16233 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16234
16235 2018-02-07 Zack Weinberg <zackw@panix.com>
16236
16237 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16238 New single-type headers split from _G_config.h.
16239 * libio/bits/types/cookie_io_functions_t.h
16240 * libio/bits/types/struct_FILE.h
16241 New single-type headers split from libio.h.
16242
16243 * libio/Makefile: Install the above new headers. Don't install
16244 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16245 bits/libio-ldbl.h.
16246 * libio/_G_config.h, libio/libio.h: Delete file.
16247
16248 * libio/bits/libio.h: Remove improper-inclusion guard.
16249 Include stdio.h and don't repeat anything that it does.
16250 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16251 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16252 __io_read_fn as cookie_read_function_t,
16253 __io_write_fn as cookie_write_function_t,
16254 __io_seek_fn as cookie_seek_function_t,
16255 __io_close_fn as cookie_close_function_t,
16256 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16257 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16258 here, in the "compatibility defines" section. Remove an #if 0
16259 block. Use the "body" macros from bits/types/struct_FILE.h to
16260 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16261 and _IO_ferror_unlocked.
16262 Move prototypes of __uflow and __overflow...
16263
16264 * libio/stdio.h: ...here. Don't include bits/libio.h.
16265 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16266 directly from stdarg.h. Include bits/types/__fpos_t.h,
16267 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16268 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16269 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16270 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16271 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16272 __ssize_t, not _IO_ssize_t. Unconditionally define
16273 BUFSIZ as 8192 and EOF as (-1).
16274
16275 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16276 macros from bits/types/struct_FILE.h instead of _IO_* macros
16277 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16278 instead of _IO_ssize_t.
16279 * libio/bits/stdio2.h: Similarly.
16280
16281 * libio/iolibio.h: Add multiple-include guard.
16282 Include bits/libio.h after stdio.h.
16283 * libio/libioP.h: Add multiple-include guard.
16284 Include stdio.h and bits/libio.h before iolibio.h.
16285
16286 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16287 * include/bits/types/cookie_io_functions_t.h
16288 * include/bits/types/struct_FILE.h: New wrappers.
16289
16290 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16291 Get definitions of _G_fpos_t and _G_fpos64_t from
16292 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16293 respectively. Remove improper-inclusion guards.
16294
16295 * conform/data/stdio.h-data: Update expectations of va_list.
16296 * scripts/check-installed-headers.sh: Remove special case for
16297 libio.h and _G_config.h.
16298
16299 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16300
16301 [BZ #15105]
16302 [BZ #19463]
16303 * include/sys/sysmacros.h [!_ISOMAC]
16304 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16305 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16306 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16307 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16308 libc_hidden_proto.
16309 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16310 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16311 Likewise.
16312 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16313 Undefine and redefine to add use __gnu_dev_ prefix.
16314 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16315 Likewise.
16316 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16317 and define as hidden inline function.
16318 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16319 Likewise.
16320 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16321 Likewise.
16322 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16323 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16324 (gnu_dev_minor): Likewise.
16325 (gnu_dev_makedev): Likewise.
16326 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16327 makedev.
16328 * posix/wordexp.c (exec_comm_child): Likewise.
16329 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16330 instead of minor and __gnu_dev_major instead of major.
16331 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16332 __gnu_dev_major instead of major.
16333 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16334 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16335 instead of gnu_dev_minor.
16336 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16337 (SLAVE_P): Likewise.
16338 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16339 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16340 instead of major.
16341
16342 [BZ #21313]
16343 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16344 in another place.
16345 * locale/weightwc.h (findidx): Likewise.
16346
16347 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16348
16349 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16350 (slowlog_inexact): Likewise
16351 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16352 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16353
16354 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16355
16356 [BZ #22797]
16357 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16358 missing second underscore to parameter name.
16359
16360 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16361
16362 [BZ #14508]
16363 [BZ #15512]
16364 [BZ #17082]
16365 [BZ #20530]
16366 * bits/byteswap.h: Update file comment. Do not include
16367 <bits/byteswap-16.h>.
16368 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16369 constant.
16370 (__bswap_16): Define as inline function.
16371 (__bswap_constant_32): Reformat definition.
16372 (__bswap_32): Always define as inline function, not macro, using
16373 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16374 otherwise __bswap_constant_32.
16375 (__bswap_constant_64): Reformat definition. Do not use
16376 __extension__ here.
16377 (__bswap_64): Always define as inline function, not macro. Use
16378 __extension__ on function definition. Use __builtin_bswap64 if
16379 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16380 * string/test-endian-file-scope.c: New file.
16381 * string/test-endian-sign-conversion.c: Likewise.
16382 * string/Makefile (headers): Remove bits/byteswap-16.h.
16383 (tests): Add test-endian-file-scope and
16384 test-endian-sign-conversion.
16385 (CFLAGS-test-endian-sign-conversion.c): New variable.
16386 * bits/byteswap-16.h: Remove file.
16387 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16388 * sysdeps/ia64/bits/byteswap.h: Likewise.
16389 * sysdeps/m68k/bits/byteswap.h: Likewise.
16390 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16391 * sysdeps/s390/bits/byteswap.h: Likewise.
16392 * sysdeps/tile/bits/byteswap.h: Likewise.
16393 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16394 * sysdeps/x86/bits/byteswap.h: Likewise.
16395
16396 [BZ #17721]
16397 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16398 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16399 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16400 199901L] (__restrict): Define to restrict.
16401
16402 [BZ #19667]
16403 * string/testcopy.c: Include <support/support.h>. Do not include
16404 <malloc.h>. Use <support/test-driver.c>.
16405 (main): Rename to do_test. Make static. Use xmalloc instead of
16406 malloc.
16407
16408 [BZ #13575]
16409 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16410 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16411 (SSIZE_MAX): Define to INT_MAX.
16412 * posix/test-ssize-max.c: New file.
16413 * posix/Makefile (tests): Add test-ssize-max.
16414
16415 [BZ #19668]
16416 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16417 <support/support.h>. Do not include <malloc.h>.
16418 (query_auxv): Use xmalloc instead of malloc.
16419
16420 [BZ #14553]
16421 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16422 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16423 instead of loff_t.
16424
16425 2018-02-06 Florian Weimer <fweimer@redhat.com>
16426
16427 [BZ #18023]
16428 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16429 Use scratch_buffer instead of extend_alloca.
16430
16431 2018-02-06 Zack Weinberg <zackw@panix.com>
16432
16433 * libio/stdio.h: Don't define getc or putc as macros.
16434 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16435 not _IO_getc and _IO_putc.
16436
16437 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16438 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16439
16440 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16441
16442 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16443 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16444
16445 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16446
16447 [BZ #14890]
16448 * elf/elf.h (NT_PRFPREG): New macro.
16449 (NT_S390_VXRS_LOW): Likewise.
16450 (NT_S390_VXRS_HIGH): Likewise.
16451 (NT_S390_GS_CB): Likewise.
16452 (NT_S390_GS_BC): Likewise.
16453 (NT_S390_RI_CB): Likewise.
16454
16455 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16456 (MAP_SYNC): New macro.
16457 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16458 Likewise.
16459 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16460 (MAP_SYNC): Likewise.
16461 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16462 (MAP_SYNC): Likewise.
16463 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16464 (MAP_SYNC): Likewise.
16465 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16466 (MAP_SYNC): Likewise.
16467 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16468 (MAP_SYNC): Likewise.
16469 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16470 (MAP_SYNC): Likewise.
16471 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16472 Likewise.
16473 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16474 Likewise.
16475
16476 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16477 (MAP_SHARED_VALIDATE): New macro.
16478 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16479 (MAP_SHARED_VALIDATE): Likewise.
16480
16481 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16482
16483 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16484 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16485 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16486
16487 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16488
16489 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16490 (DT_NUM): Updated to 35.
16491
16492 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16493
16494 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16495 __builtin_expect with __glibc_likely and __glibc_unlikely.
16496 (elf_machine_rela): Likewise.
16497 (elf_machine_lazy_rel): Likewise.
16498
16499 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16500
16501 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16502 __builtin_expect with __glibc_likely and __glibc_unlikely.
16503 (elf_machine_lazy_rel): Likewise.
16504
16505 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16506
16507 [BZ #22638]
16508 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16509 SHARED.
16510 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16511
16512 2018-02-05 Andreas Schwab <schwab@suse.de>
16513
16514 [BZ #22761]
16515 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16516 string.
16517
16518 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16519
16520 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16521 not check against PTHREAD_STACK_MIN.
16522
16523 2018-02-02 Sean McKean <smckean83@gmail.com>
16524
16525 [BZ #22735]
16526 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16527
16528 2018-02-02 Florian Weimer <fweimer@redhat.com>
16529
16530 [BZ #22753]
16531 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16532 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16533 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16534 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16535 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16536 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16537 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16538 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16539 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16540 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16541 * misc/tst-preadvwritev2.c (do_test): Call it.
16542 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16543
16544 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16545
16546 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16547
16548 * benchtests/bench-memcmp.c: Print json instead of plain text.
16549
16550 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16551 every test run.
16552
16553 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16554
16555 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16556 version to 4.15.
16557 (s390_sthyi): New syscall.
16558
16559 * sysdeps/generic/ldbl-classify-compat.h: New file.
16560 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16561 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16562 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16563 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16564 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16565 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16566 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16567 <ldbl-classify-compat.h>.
16568 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16569 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16570 <ldbl-classify-compat.h>.
16571 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16572 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16573 <ldbl-classify-compat.h>.
16574 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16575 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16576 <ldbl-classify-compat.h>.
16577 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16578 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16579 <ldbl-classify-compat.h>.
16580 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16581 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16582 <ldbl-classify-compat.h>.
16583 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16584 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16585 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16586 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16587 * sysdeps/microblaze/math_private.h: Likewise.
16588 * sysdeps/nios2/math_private.h: Likewise.
16589 * sysdeps/sh/math_private.h: Likewise.
16590
16591 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16592 * sysdeps/m68k/coldfire/math_private.h: ... here.
16593 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16594 * sysdeps/tile/math_private.h: Likewise.
16595 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16596 Remove macro.
16597 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16598 Likewise.
16599
16600 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16601 Remove macro.
16602 (libc_fetestexcept): Likewise.
16603 (libc_feupdateenv_test): Likewise.
16604 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16605 (libc_fetestexcept): Likewise.
16606 (libc_feupdateenv_test): Likewise.
16607 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16608 (libc_fetestexcept): Likewise.
16609 (libc_feupdateenv_test): Likewise.
16610 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16611 (libc_fetestexcept): Likewise.
16612 (libc_feupdateenv_test): Likewise.
16613
16614 * sysdeps/generic/math_private.h
16615 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16616 New inline function.
16617 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16618 Likewise.
16619
16620 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16621 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16622 * sysdeps/generic/math_private.h
16623 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16624 inline function.
16625 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16626 Likewise.
16627 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16628 Likewise.
16629 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16630 Likewise.
16631 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16632 Likewise.
16633 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16634 Likewise.
16635 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16636 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16637 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16638 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16639 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16640 (__fegetenv): Likewise.
16641 (fesetenv): Likewise.
16642 (__fesetenv): Likewise.
16643 (feupdateenv): Likewise.
16644 (__feupdateenv): Likewise.
16645 (fegetround): Likewise.
16646 (__fegetround): Likewise.
16647 (fesetround): Likewise.
16648 (__fesetround): Likewise.
16649
16650 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16651 (feraiseexcept): New macro.
16652 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16653 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16654 Remove macro.
16655 (__feraiseexcept): Likewise.
16656 (feclearexcept): Likewise.
16657 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16658 (__feraiseexcept): Likewise.
16659 (feclearexcept): Likewise.
16660 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16661 (__feraiseexcept): Likewise.
16662 (feclearexcept): Likewise.
16663 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16664 (__feraiseexcept): Likewise.
16665 (feclearexcept): Likewise.
16666 (fetestexcept): Likewise.
16667
16668 * sysdeps/m68k/coldfire/math-tests.h: New file.
16669
16670 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16671 * sysdeps/m68k/bits/fenv.h: ... here.
16672 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16673 not define.
16674 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16675 Likewise.
16676 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16677 Likewise.
16678 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16679 Likewise.
16680 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16681 Likewise.
16682 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16683 Define to 0.
16684 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16685 (__FE_UNDEFINED): New enum constant.
16686 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16687 Do not define.
16688 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16689 Likewise.
16690 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16691 Likewise.
16692 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16693 to match generic bits/fenv.h.
16694 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16695 Do not define.
16696
16697 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16698 packed on bits.
16699 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16700 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16701 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16702 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16703
16704 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16705 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16706 Joseph Myers <joseph@codesourcery.com>
16707
16708 [BZ #21314]
16709 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16710 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16711 computation using c.
16712 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16713 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16714 computation using c.
16715
16716 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16717
16718 * version.h (RELEASE): Set to "development".
16719 (VERSION): Set to "2.27.9000".
16720 * NEWS (2.28): New section.
16721
16722 * version.h (RELEASE): Set to "stable".
16723 (VERSION): Set to "2.27".
16724 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16725
16726 * NEWS: Add the list of bugs fixed in 2.27.
16727
16728 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16729
16730 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16731 against PTHREAD_STACK_MIN.
16732
16733 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16734
16735 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16736 New entries.
16737 (Rafal Luzynski, Andreas Schwab): Update.
16738
16739 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16740
16741 [BZ #10871]
16742 * NEWS: List the languages which actually use the alternative
16743 months feature in this release. Also explain that "alt_mon" and
16744 "ab_alt_mon" are optional.
16745
16746 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16747
16748 [BZ #22765]
16749 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16750
16751 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16752
16753 * manual/install.texi (Tools for Compilation): Update the newest
16754 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16755 * INSTALL: Regenerated.
16756
16757 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16758
16759 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16760 instead of __builtin_expect.
16761
16762 2018-01-30 Florian Weimer <fweimer@redhat.com>
16763
16764 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16765 data.
16766 * nss/tst-nss-getpwent.c (do_test): Likewise.
16767
16768 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16769
16770 [BZ #10871]
16771 * localedata/locales/hr_HR (mon): Rename to...
16772 (alt_mon): This.
16773 (mon): Import from CLDR (genitive case).
16774 (d_t_fmt): Update the comment.
16775
16776 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16777
16778 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16779 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16780 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16781
16782 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16783
16784 * mach/Versions: Fix version when __mach_host_self_ was added.
16785 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16786 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16787 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16788 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16789 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16790 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16791 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16792 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16793 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16794 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16795 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16796 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16797 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16798 || to respect codestyle.
16799 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16800 (do_test_bz20181): Rename accordingly.
16801 * malloc/malloc.c: Include <assert.h>.
16802 (assert): Do not define.
16803 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16804 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16805 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16806 * sysdeps/mach/hurd/hp-timing.h: New file.
16807 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16808
16809 2018-01-29 Darius Rad <darius@bluespec.com>
16810
16811 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16812
16813 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16814
16815 * sysdeps/init_array/crti.S (.section .init_array): Add
16816 PREINIT_FUNCTION when defined.
16817 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16818 * config.h.in: Regenerate.
16819 * manual/platform.texi: Add RISC-V documenation for
16820 __riscv_flush_icache.
16821 * sysdeps/riscv/__longjmp.S: New file.
16822 * sysdeps/riscv/backtrace.c: Likewise.
16823 * sysdeps/riscv/bits/endian.h: Likewise.
16824 * sysdeps/riscv/bits/setjmp.h: Likewise.
16825 * sysdeps/riscv/bits/wordsize.h: Likewise.
16826 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16827 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16828 * sysdeps/riscv/dl-trampoline.S: Likewise.
16829 * sysdeps/riscv/gccframe.h: Likewise.
16830 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16831 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16832 * sysdeps/riscv/machine-gmon.h: Likewise.
16833 * sysdeps/riscv/memusage.h: Likewise.
16834 * sysdeps/riscv/setjmp.S: Likewise.
16835 * sysdeps/riscv/sys/asm.h: Likewise.
16836 * sysdeps/riscv/tls-macros.h: Likewise.
16837 * sysdeps/riscv/dl-tls.h: New file.
16838 * sysdeps/riscv/libc-tls.c: Likewise.
16839 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16840 * sysdeps/riscv/nptl/tls.h: Likewise.
16841 * sysdeps/riscv/stackinfo.h: Likewise.
16842 * sysdeps/riscv/bits/fenv.h: New file.
16843 * sysdeps/riscv/e_sqrtl.c: Likewise.
16844 * sysdeps/riscv/fpu_control.h: Likewise.
16845 * sysdeps/riscv/math-tests.h: Likewise.
16846 * sysdeps/riscv/nofpu/Implies: Likewise.
16847 * sysdeps/riscv/sfp-machine.h: Likewise.
16848 * sysdeps/riscv/tininess.h: Likewise.
16849 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16850 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16851 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16852 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16853 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16854 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16855 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16856 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16857 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16858 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16859 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16860 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16861 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16862 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16863 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16864 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16865 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16866 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16867 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16868 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16869 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16870 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16871 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16872 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16873 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16874 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16875 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16876 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16877 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16878 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16879 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16880 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16881 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16882 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16883 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16884 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16885 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16886 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16887 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16888 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16889 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16890 * sysdeps/riscv/rvf/math_private.h: Likewise.
16891 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16892 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16893 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16894 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16895 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16896 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16897 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16898 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16899 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16900 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16901 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16902 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16903 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16904 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16905 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16906 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16907 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16908 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16909 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16910 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16911 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16912 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16913 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16914 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16915 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16916 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16917 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16918 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16919 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16920 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16921 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16922 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16923 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16924 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16925 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16926 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16927 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16928 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16929 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16930 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16931 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16932 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16933 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16934 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16935 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16936 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16937 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16938 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16939 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16940 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16941 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16942 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16943 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16944 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16945 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16946 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16947 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16948 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16949 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16950 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16951 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16952 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16953 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16954 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16955 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16956 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16957 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16958 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16959 * sysdeps/riscv/Implies: New file.
16960 * sysdeps/riscv/Makefile: Likewise.
16961 * sysdeps/riscv/configure: Likewise.
16962 * sysdeps/riscv/configure.ac: Likewise.
16963 * sysdeps/riscv/nptl/Makefile: Likewise.
16964 * sysdeps/riscv/preconfigure: Likewise.
16965 * sysdeps/riscv/rv64/Implies-after: Likewise.
16966 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16967 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16968 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16969 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16970 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16971 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16972 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16973 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16974 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16975 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16976 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16977 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16978 (Config): Likewise.
16979
16980 2018-01-29 Florian Weimer <fweimer@redhat.com>
16981
16982 [BZ #22701]
16983 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16984 libnsl_hidden_proto.
16985 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16986 libnsl_hidden_proto.
16987 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16988 * nis/Makefile (libnsl-routines): Add nss-default only for
16989 build-obsolete-nsl.
16990 * nis/nis_defaults.c (__nis_default_ttl): Add
16991 libnsl_hidden_nolink_def.
16992 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16993 declaration.
16994 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16995 * nis/ypclnt.c (yp_maplist): Likewise.
16996
16997 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16998
16999 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
17000 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
17001
17002 2018-01-29 Joseph Myers <joseph@codesourcery.com>
17003
17004 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
17005 clean -dxfq for git updates when replacing sources.
17006
17007 * scripts/build-many-glibcs.py (Config.build_gcc): Use
17008 --disable-libcilkrts unconditionally, not just for the final GCC
17009 build for Hurd.
17010
17011 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
17012 version to 4.15.
17013
17014 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17015
17016 [BZ #10871]
17017 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
17018 case).
17019
17020 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17021
17022 [BZ #10871]
17023 * localedata/locales/be_BY (mon): Rename to...
17024 (alt_mon): This, then synchronize with CLDR (nominative case).
17025 (abmon): Rename to...
17026 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
17027 (mon): Import from CLDR (genitive case).
17028 (abmon): Likewise.
17029 * localedata/locales/be_BY@latin (mon): Rename to...
17030 (alt_mon): This.
17031 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
17032
17033 * localedata/locales/be_BY@latin (lang_name): Reworded to
17034 "biełaruskaja mova".
17035
17036 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17037
17038 [BZ #10871]
17039 * localedata/locales/el_CY (mon): Renamed to...
17040 (alt_mon): This.
17041 (mon): Import from CLDR (genitive case).
17042 * localedata/locales/el_GR: Likewise.
17043
17044 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
17045
17046 [BZ #10871]
17047 * localedata/locales/ru_RU (mon): Rename to...
17048 (alt_mon): This.
17049 (abmon): Rename to...
17050 (ab_alt_mon): This.
17051 (mon): Import from CLDR (genitive case).
17052 (abmon): Copy from the old content except the 5th month which is
17053 now in the genitive case, even when abbreviated.
17054 * localedata/locales/ru_UA: Likewise.
17055 * time/tst-strptime.c (day_tests): Add an actual example of
17056 a difference between %b and %Ob in Russian.
17057
17058 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
17059
17060 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
17061 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
17062 a `c' variable.
17063 * resolv/res-close.c: Include <stdlib.h>.
17064 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
17065 <sys/wait.h>, <time.h>, <sys/uio.h>.
17066 (NOT_CANCEL_H): Add inclusion guard.
17067 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
17068 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
17069 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17070 return 0.
17071 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17072 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17073 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17074 instead of void *.
17075 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17076 timer_ptr2id to cast struct timer_node * to void *.
17077 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17078 --disable-libcilkrts to gcc configure.
17079 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17080 and make them the default for now.
17081 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17082 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17083 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17084 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17085 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17086 MACH_IPC_COMPAT.
17087 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17088 __task_terminate would ever return successfully.
17089 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17090 to global scope.
17091 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17092 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17093 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17094 critical section to make code simpler and avoid warning.
17095 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17096 critical section to make code simpler and avoid warning.
17097 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17098 const char * instead of char *.
17099 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17100 __hurd_file_name_split, hurd_file_name_split,
17101 __hurd_directory_name_split, hurd_directory_name_split,
17102 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17103 hurd_file_name_path_lookup): Make lookup function parameter take a
17104 const char *name instead of char *name.
17105 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17106 __hurd_directory_name_split): Likewise.
17107 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17108 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17109 * sysdeps/mach/hurd/check_native.c: New file.
17110 * sysdeps/mach/hurd/check_pf.c: New file.
17111 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17112 (__freeifaddrs): Define macro to freeifaddrs.
17113 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17114 * sysdeps/mach/libmachuser.abilist: New file.
17115 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17116 (do_test_bz20181): Rename accordingly.
17117 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17118 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17119 <sys/mount.h>.
17120 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17121 version only if __USE_EXTERN_INLINES is defined.
17122 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17123 __hurd_sockfail): Likewise.
17124 (_hurd_fd_get): Always declare functions, and provide inline versions
17125 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17126 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17127 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17128 _hurd_port_set): Always declare functions, and provide inline versions
17129 only if __USE_EXTERN_INLINES and _LIBC are defined and
17130 IS_IN(libc).
17131 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17132 _hurd_critical_section_unlock): Likewise.
17133 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17134 * __hurd_threadvar_location): Likewise.
17135 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17136 _hurd_userlink_clear): Likewise.
17137 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17138 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17139 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17140 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17141 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17142 __spin_lock_locked): Likewise.
17143 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17144 __spin_lock_locked): Likewise.
17145 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17146 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17147 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17148 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17149 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17150 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17151 _POSIX_NO_TRUNC): Define to 0.
17152 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17153 check size against PTHREAD_STACK_MIN.
17154 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17155 IS_IN(libpthread)]: Include <sigsetops.h>.
17156 * mach/Makefile (user-interfaces): Add mach/gnumach.
17157 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17158 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17159 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17160 instead of invalid -1.
17161 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17162 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17163 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17164 <net/ppp_defs.h>.
17165
17166 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17167
17168 * hurd/fcntl-internal.h: New file.
17169
17170 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17171
17172 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17173
17174 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17175
17176 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17177
17178 [BZ #22701]
17179 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17180 Build only shared objects.
17181
17182 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17183
17184 * README: Update for hppa.
17185
17186 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17187
17188 * sysdeps/sparc/fpu/libm-test-ulps: Update
17189 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17190
17191 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17192
17193 Revert:
17194
17195 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17196
17197 [BZ #22563]
17198 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17199 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17200 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17201 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17202 to feature_1.
17203
17204 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17205
17206 [BZ #22563]
17207 * bits/types/__cancel_jmp_buf_tag.h: New file.
17208 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17209 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17210 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17211 * nptl/Makefile (headers): Add
17212 bits/types/__cancel_jmp_buf_tag.h.
17213 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17214 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17215 * sysdeps/nptl/pthread.h: Include
17216 <bits/types/__cancel_jmp_buf_tag.h>.
17217 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17218 __cancel_jmp_buf.
17219 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17220
17221 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17222
17223 [BZ #10871]
17224 * localedata/locales/uk_UA (mon): Renamed to...
17225 (alt_mon): This.
17226 (alt_digits): "0" removed and then renamed to...
17227 (mon): This.
17228 (date_fmt): Definition changed not to use the alternative
17229 digits hack.
17230
17231 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17232
17233 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17234 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17235 * elf/elf.h (EF_RISCV_RVC): New define.
17236 (EF_RISCV_FLOAT_ABI): Likewise.
17237 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17238 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17239 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17240 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17241 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17242 define.
17243 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17244
17245 2018-01-25 Andreas Schwab <schwab@suse.de>
17246
17247 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17248 single quotes.
17249 * sysdeps/gnu/configure: Regenerate.
17250 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17251 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17252 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17253 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17254 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17255 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17256 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17257 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17258
17259 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17260
17261 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17262 URL, and run autoconf, make it the default for now.
17263
17264 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17265
17266 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17267 soft-float ColdFire configuration.
17268
17269 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17270 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17271 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17272
17273 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17274 MicroBlaze file.
17275
17276 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17277 ....
17278 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17279 ... here.
17280 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17281 New file.
17282
17283 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17284 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17285 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17286 file.
17287
17288 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17289
17290 [BZ #22742]
17291 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17292 Rename to __reserved and add comment.
17293 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17294 Rename to __reserved.
17295
17296 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17297
17298 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17299 i686-gnu configurations.
17300 (Context.run_builds): Include mig, gnumach and hurd in components
17301 considered.
17302 (Context.checkout): Add mig, gnumach and hurd to components.
17303 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17304 hurd.
17305 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17306 (Config.build): Install gnumach headers, build mig and install
17307 hurd headers for 'gnu' OS.
17308 (Config.install_gnumach_headers): New function.
17309 (Config.install_hurd_headers): Likewise.
17310 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17311 when building for 'gnu' OS.
17312
17313 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17314
17315 * manual/tunables.texi (Hardware Capability Tunables): Fix
17316 spelling.
17317
17318 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17319
17320 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17321 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17322 (ALTMON_11, ALTMON_12): Improve documentation.
17323 * manual/time.texi (strftime): Likewise.
17324
17325 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17326
17327 [BZ #10871]
17328 * localedata/locales/pl_PL: Alternative month names added,
17329 primary month names are genitive now.
17330 * time/tst-strptime.c (day_tests): Actually use a genitive case
17331 of a month name in Polish language.
17332
17333 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17334
17335 [BZ #10871]
17336 * manual/locale.texi: Document ALTMON_1..12 constants for
17337 nl_langinfo. Specify when to use ALTMON instead of MON.
17338 * manual/time.texi (strftime, strptime): Document GNU extension
17339 permitting O modifier with %B and %b. Specify when to use
17340 %OB instead of %B.
17341
17342 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17343
17344 [BZ #10871]
17345 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17346 names, define them as the same as abbreviated month names explicitly.
17347 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17348 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17349 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17350 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17351 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17352 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17353 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17354 _NL_WABALTMON_12): New enum constants.
17355 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17356 wab_alt_mon, and ab_alt_mon_defined members.
17357 (time_output): Output ab_alt_mon and wab_alt_mon members.
17358 (time_read): Read them, initialize them as copies of abmon and wabmon
17359 respectively if they are missing, initialize ab_alt_mon_defined.
17360 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17361 * locale/programs/locfile-kw.h: Regenerate.
17362 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17363 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17364 and ru_RU.UTF-8.
17365 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17366 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17367 (__strftime_internal): Handle %Ob and %Oh formats.
17368 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17369 (__strptime_internal): Handle %Ob and %Oh formats.
17370 * time/tst-strptime.c (day_tests): Add more tests to parse different
17371 forms of month names including the new %Ob format specifier.
17372
17373 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17374
17375 [BZ #10871]
17376 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17377 define them as the same as primary full month names explicitly.
17378 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17379 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17380 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17381 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17382 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17383 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17384 _NL_WALTMON_12): New enum constants.
17385 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17386 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17387 macros.
17388 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17389 walt_mon, and alt_mon_defined members.
17390 (time_output): Output alt_mon and walt_mon members.
17391 (time_read): Read them, initialize them as copies of mon and wmon
17392 respectively if they are missing, initialize alt_mon_defined.
17393 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17394 * locale/programs/locfile-kw.h: Regenerate.
17395 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17396 * localedata/tst-langinfo.c (map): Add tests for the new constants
17397 ALTMON_1 .. ALTMON_12.
17398 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17399 and pl_PL.UTF-8.
17400 * time/strftime_l.c (f_altmonth): New macro.
17401 (__strftime_internal): Handle %OB format.
17402 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17403 (__strptime_internal): Handle %OB format.
17404 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17405 of month names including the new %OB format specifier.
17406
17407 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17408
17409 [BZ #22685]
17410 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17411 from ABORT_TRANSACTION.
17412 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17413 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17414 ABORT_TRANSACTION_IMPL): Likewise.
17415 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17416 Linux code, but remove the code that aborts transactions.
17417
17418 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17419
17420 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17421
17422 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17423
17424 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17425 in date: "2004-14-09" should be "2004-09-14".
17426 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17427 "2003-15-09" should be "2003-09-15".
17428
17429 2018-01-18 Arjun Shankar <arjun@redhat.com>
17430
17431 [BZ #22343]
17432 [BZ #22774]
17433 CVE-2018-6485
17434 CVE-2018-6551
17435 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17436 after padding.
17437 (_int_memalign): check for integer overflow before calling
17438 _int_malloc.
17439 * malloc/tst-malloc-too-large.c: New test.
17440 * malloc/Makefile: Add tst-malloc-too-large.
17441
17442 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17443
17444 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17445 in date: "2017-24-07" should be "2017-07-24".
17446 * localedata/locales/mai_IN: Likewise.
17447 * localedata/locales/mai_NP: Likewise.
17448
17449 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17450
17451 * po/ru.po: Update translations.
17452
17453 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17454
17455 [BZ #22719]
17456 * sysdeps/hppa/backtrace.c: New file.
17457
17458 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17459
17460 [BZ #22715]
17461 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17462 align La_x86_64_retval to VEC_SIZE.
17463
17464 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17465
17466 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17467 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17468
17469 2018-01-16 Florian Weimer <fweimer@redhat.com>
17470
17471 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17472 Move tst-thread-exit-clobber ...
17473 [$(CXX)] (tests-unsupported): ... to here.
17474
17475 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17476
17477 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17478 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17479 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17480 (_dl_aarch64_cap_flags): Update.
17481 (_DL_HWCAP_COUNT): Update.
17482
17483 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17484
17485 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17486 (_DL_HWCAP_LAST): Remove.
17487 (_DL_HWCAP_COUNT): Move to ...
17488 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17489 (_DL_HWCAP_COUNT): ... here.
17490
17491 2018-01-16 Florian Weimer <fweimer@redhat.com>
17492
17493 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17494 mode with GNU extensions.
17495
17496 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17497
17498 * elf/elf.h (NT_ARM_SVE): Define.
17499
17500 2018-01-15 Florian Weimer <fweimer@redhat.com>
17501
17502 [BZ #22636]
17503 * nptl/tst-minstack-throw.cc: New file.
17504 * nptl/Makefile (tests): Add tst-minstack-throw.
17505 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17506 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17507
17508 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17509
17510 * scripts/build-many-glibcs.py (Context.checkout): Default
17511 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17512 version to 1.1.0.
17513
17514 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17515
17516 [BZ #22707]
17517 * elf/elf.h (DF_1_STUB): Define.
17518 (DF_1_PIE): Define.
17519
17520 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17521
17522 [BZ #22697]
17523 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17524 Do not add 0.5 to integer or out-of-range arguments.
17525
17526 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17527
17528 * po/bg.po: Update translations.
17529 * po/cs.po: Likewise.
17530 * po/de.po: Likewise.
17531 * po/ko.po: Likewise.
17532 * po/pl.po: Likewise.
17533 * po/sv.po: Likewise.
17534 * po/uk.po: Likewise.
17535 * po/vi.po: Likewise.
17536
17537 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17538
17539 * aarch64/start.S (_start): Use __wrap_main.
17540 (__wrap_main): New local symbol.
17541
17542 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17543
17544 [BZ #22679]
17545 CVE-2018-1000001
17546 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17547 generic_getcwd if the path returned by getcwd syscall is not absolute.
17548 * io/tst-getcwd-abspath.c: New test.
17549 * io/Makefile (tests): Add tst-getcwd-abspath.
17550
17551 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17552
17553 * malloc/malloc.c (malloc_consolidate): Add size check.
17554
17555 2018-01-12 Florian Weimer <fweimer@redhat.com>
17556
17557 * support/write_message.c (write_message): Preserve errno.
17558 * support/check.c (print_failure): Likewise.
17559 * support/support_test_verify_impl.c (support_test_verify_impl):
17560 Likewise.
17561 * support/support_test_compare_failure.c
17562 (support_test_compare_failure): Likewise.
17563
17564 2018-01-12 Florian Weimer <fweimer@redhat.com>
17565
17566 [BZ #22701]
17567 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17568 Prevent installation of libnsl.so.
17569 (libnsl-inhibit-o): Do not build (or install) static libraries.
17570
17571 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17572
17573 [BZ #22657]
17574 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17575 before the day number which may produce a double space.
17576 (date_fmt): Likewise.
17577
17578 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17579
17580 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17581 instead of fegetenv.
17582
17583 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17584
17585 [BZ #22702]
17586 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17587 comment to say exceptions are discarded.
17588 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17589 __fegetenv.
17590 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17591 be enabled.
17592
17593 2018-01-11 Florian Weimer <fweimer@redhat.com>
17594
17595 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17596 and error message.
17597
17598 2018-01-11 Florian Weimer <fweimer@redhat.com>
17599
17600 [BZ #22636]
17601 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17602 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17603
17604 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17605
17606 [BZ #22693]
17607 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17608 negative arguments in test for NaN or infinity argument.
17609
17610 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17611
17612 * po/libc.pot: Regenerate.
17613
17614 2018-01-10 Florian Weimer <fweimer@redhat.com>
17615
17616 [BZ #22636]
17617 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17618 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17619
17620 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17621
17622 * hurd/hurd/fd.h: Include <fcntl.h>
17623 (__hurd_at_flags): New function.
17624 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17625 with call to __hurd_at_flags.
17626 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17627 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17628 __faccessat
17629 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17630 (__access_noerrno): Use __faccessat_common instead of access_common.
17631 (__access): Likewise.
17632 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17633 with a call to __faccessat.
17634 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17635 (__faccessat_common): ... this. Move implementation of __access into it when
17636 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17637 reauthenticate_cwdir_at helper to implement AT mechanism.
17638 (__faccessat_noerrno): New function, just calls __faccessat_common.
17639 (__faccessat): New function, just calls __faccessat_common.
17640 (faccessat): Define weak alias.
17641
17642 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17643
17644 [BZ #22691]
17645 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17646 (CFLAGS-s_fmaxmagl.c): New variable.
17647 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17648
17649 [BZ #22690]
17650 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17651 long int for arguments of possibly overflowing addition or
17652 subtraction.
17653 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17654
17655 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17656
17657 [BZ #22688]
17658 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17659 (CFLAGS-e_remainderl.c): New variable.
17660
17661 [BZ #22687]
17662 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17663 variable.
17664 (CFLAGS-s_cacoshl.c): Likewise.
17665 (CFLAGS-s_casinhl.c): Likewise.
17666 (CFLAGS-s_catanl.c): Likewise.
17667 (CFLAGS-s_catanhl.c): Likewise.
17668 (CFLAGS-s_cexpl.c): Likewise.
17669 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17670 (CFLAGS-s_csinhl.c): Likewise.
17671 (CFLAGS-s_clogl.c): Likewise.
17672 (CFLAGS-s_clog10l.c): Likewise.
17673 (CFLAGS-s_csinl.c): Likewise.
17674 (CFLAGS-s_csqrtl.c): Likewise.
17675
17676 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17677 2017-01-09 Svante Signell <svante.signell@gmail.com>
17678
17679 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17680 (_hurd_exec_paths): New function.
17681 * hurd/hurd.h (_hurd_exec): Deprecate function.
17682 (_hurd_exec_paths): Declare function.
17683 * hurd/Versions: Export _hurd_exec_paths.
17684 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17685 (__execve): Use __getcwd to build absolute path, and use
17686 _hurd_exec_paths instead of _hurd_exec.
17687 * sysdeps/mach/hurd/spawni.c: Likewise.
17688 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17689 _hurd_exec.
17690
17691 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17692
17693 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17694 test instead of failing in case of ENOENT returned by posix_openpt.
17695
17696 2018-01-08 Florian Weimer <fweimer@redhat.com>
17697
17698 resolv: Support binary labels in test framework.
17699 * support/resolv_test.c (struct to_be_freed): Remove.
17700 (struct compressed_name): New.
17701 (allocate_compressed_name, ascii_tolower)
17702 (compare_compressed_name): New functions.
17703 (struct resolv_response_builder): Update type of
17704 compression_offsets for use with tsearch. Rempve to_be_freed.
17705 (response_push_pointer_to_free): Remove function.
17706 (resolv_response_add_name): Rewrite using struct compressed_name
17707 and tsearch instead of hsearch_r.
17708 (response_builder_allocate): Remove initialization of
17709 compression_offsets.
17710 (response_builder_free): Update for removal of to_be_freed. Use
17711 tdestroy instead of hdestroy_r.
17712 * resolv/Makefile (tests): Add tst-resolv-binary.
17713 (tst-resolv-binary): Link with -lresolv -lpthread.
17714
17715 2018-01-08 Florian Weimer <fweimer@redhat.com>
17716
17717 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17718 time. Pass positive flag instead of negative flag to
17719 support_test_compare_failure.
17720 (support_test_compare_failure): Change negative parameter to
17721 positive.
17722 * support/support_test_compare_failure.c (report)
17723 (support_test_compare_failure): Likewise.
17724 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17725 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17726
17727 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17728
17729 [BZ #22637]
17730 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17731 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17732 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17733 stacksize.
17734 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17735
17736 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17737
17738 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17739 Add s_sincosf-sse2 and s_sincosf-fma.
17740 (CFLAGS-s_sincosf-fma.c): New.
17741 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17742 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17743 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17744 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17745 __sincosf is defined.
17746
17747 2018-01-08 Florian Weimer <fweimer@redhat.com>
17748
17749 * nptl/tst-thread-exit-clobber.cc: New file.
17750 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17751 C++11 mode.
17752 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17753 (tests): Add tst-thread-exit-clobber.
17754 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17755
17756 2018-01-08 Florian Weimer <fweimer@redhat.com>
17757
17758 * support/check.h (support_static_assert): Define.
17759 (TEST_COMPARE): Use it.
17760
17761 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17762
17763 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17764 [!__RLIM_T_MATCHES_RLIM64_T]
17765 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17766 __getrlimit64. Add libc_hidden_weak.
17767
17768 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17769
17770 * elf/elf.h (R_RISCV_NONE): New define.
17771 (R_RISCV_32): Likewise.
17772 (R_RISCV_64): Likewise.
17773 (R_RISCV_RELATIVE): Likewise.
17774 (R_RISCV_COPY): Likewise.
17775 (R_RISCV_JUMP_SLOT): Likewise.
17776 (R_RISCV_TLS_DTPMOD32): Likewise.
17777 (R_RISCV_TLS_DTPMOD64): Likewise.
17778 (R_RISCV_TLS_DTPREL32): Likewise.
17779 (R_RISCV_TLS_DTPREL64): Likewise.
17780 (R_RISCV_TLS_TPREL32): Likewise.
17781 (R_RISCV_TLS_TPREL64): Likewise.
17782 * Makerules (make-link-multidir): Make directories before linking into
17783 them.
17784 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17785 define.
17786 (VDSO_HASH_LINUX_4_15): Likewise.
17787 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17788 in subdirectories of lib.
17789 * nptl/Makefile (/librt.so): Always depend on
17790 "$(shared-thread-library)".
17791
17792 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17793
17794 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17795 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17796 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17797 (___tls_get_addr).
17798 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17799 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17800 "-O2 -march=i686".
17801 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17802 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17803 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17804 * sysdeps/gnu/glob-lstat-compat.c: New file.
17805 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17806 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17807
17808 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17809
17810 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17811 Reserve 16 chars to reloc_addr before calling _itoa_word.
17812
17813 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17814
17815 [BZ #22678]
17816 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17817 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17818
17819 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17820 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17821
17822 * resource/tst-getrlimit.c: Add copyright header.
17823
17824 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17825 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17826
17827 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17828 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17829 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17830 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17831 instead.
17832 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17833 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17834 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17835 RLIM64_INFINITY): Fix values to match the kernel ones.
17836 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17837 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17838 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17839 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17840 getrlimit64@@GLIBC_2_27.
17841 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17842 and setrlimit64.
17843 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17844 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17845 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17846 setrlimit, getrlimit64 and setrlimit64.
17847
17848 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17849
17850 [BZ #22648]
17851 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17852 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17853
17854 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17855
17856 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17857 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17858 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17859
17860 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17861
17862 [BZ #15479]
17863 [BZ #22666]
17864 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17865 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17866
17867 [BZ #15479]
17868 [BZ #22665]
17869 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17870 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17871 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17872 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17873
17874 2018-01-04 Florian Weimer <fweimer@redhat.com>
17875
17876 [BZ #22667]
17877 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17878 Align the stack before calling exit.
17879 * stdlib/tst-makecontext-align.c: New file.
17880 * stdlib/Makefile (tests): Add tst-makecontext-align.
17881
17882 2018-01-04 Florian Weimer <fweimer@redhat.com>
17883
17884 Add support for calling dlvsym from libc.so.
17885 * include/dlfcn.h (__libc_dlvsym): Declare.
17886 * elf/Makefile (tests-static-internal): Add
17887 tst-libc_dlvsym-static.
17888 (tests-internal): Add tst-libc_dlvsym.
17889 (modules-names): Add tst-libc_dlvsym-dso.
17890 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17891 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17892 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17893 object tst-libc_dlvsym-dso.so needs to be built before running
17894 these tests.
17895 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17896 * elf/Versions: Export __libc_dlvsym.
17897 * elf/dl-libc.c (struct do_dlvsym_args): New.
17898 (do_dlvsym, __libc_dlvsym): New functions.
17899 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17900 (_dl_open_hook2): New variable.
17901 (__libc_register_dl_open_hook): Set it.
17902 * elf/tst-libc_dlvsym-dso.c: New file.
17903 * elf/tst-libc_dlvsym-static.c: Likewise.
17904 * elf/tst-libc_dlvsym.c: Likewise.
17905 * elf/tst-libc_dlvsym.h: Likewise.
17906
17907 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17908
17909 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17910 include <sys/mount.h>.
17911
17912 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17913
17914 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17915 Add __NO_MATH_ERRNO__ check.
17916
17917 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17918
17919 * sysdeps/mips/mips32/libm-test-ulps: Update.
17920 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17921
17922 2018-01-02 Florian Weimer <fweimer@redhat.com>
17923
17924 * misc/tst-pselect.c: Add copyright header.
17925
17926 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17927
17928 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17929 comment.
17930 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17931 comment.
17932 (settrlimit): Rename into setrlimit.
17933 (__sttrlimit): Rename into __setrlimit.
17934
17935 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17936 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17937 never defined in that case.
17938
17939 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17940
17941 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17942
17943 * sysdeps/arm/libm-test-ulps: Update.
17944
17945 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17946 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17947
17948 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17949
17950 * NEWS: Add cosf and sincosf to list of optimized functions.
17951
17952 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17953
17954 [BZ #22660]
17955 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17956 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17957 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17958 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17959
17960 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17961
17962 [BZ #22433]
17963 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17964
17965 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17966 making a copy of it.
17967
17968 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17969
17970 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17971 trailing whitespace removed.
17972 * scripts/config.guess: Update to version 2018-01-01.
17973 * scripts/config.sub: Update to version 2018-01-01.
17974 * scripts/move-if-change: Update from gnulib.
17975
17976 * NEWS: Update copyright dates.
17977 * catgets/gencat.c (print_version): Likewise.
17978 * csu/version.c (banner): Likewise.
17979 * debug/catchsegv.sh: Likewise.
17980 * debug/pcprofiledump.c (print_version): Likewise.
17981 * debug/xtrace.sh (do_version): Likewise.
17982 * elf/ldconfig.c (print_version): Likewise.
17983 * elf/ldd.bash.in: Likewise.
17984 * elf/pldd.c (print_version): Likewise.
17985 * elf/sotruss.sh: Likewise.
17986 * elf/sprof.c (print_version): Likewise.
17987 * iconv/iconv_prog.c (print_version): Likewise.
17988 * iconv/iconvconfig.c (print_version): Likewise.
17989 * locale/programs/locale.c (print_version): Likewise.
17990 * locale/programs/localedef.c (print_version): Likewise.
17991 * login/programs/pt_chown.c (print_version): Likewise.
17992 * malloc/memusage.sh (do_version): Likewise.
17993 * malloc/memusagestat.c (print_version): Likewise.
17994 * malloc/mtrace.pl: Likewise.
17995 * manual/libc.texinfo: Likewise.
17996 * nptl/version.c (banner): Likewise.
17997 * nscd/nscd.c (print_version): Likewise.
17998 * nss/getent.c (print_version): Likewise.
17999 * nss/makedb.c (print_version): Likewise.
18000 * posix/getconf.c (main): Likewise.
18001 * scripts/test-installation.pl: Likewise.
18002 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
18003
18004 * All files with FSF copyright notices: Update copyright dates
18005 using scripts/update-copyrights.
18006 * locale/programs/charmap-kw.h: Regenerated.
18007 * locale/programs/locfile-kw.h: Likewise.
18008
18009 2017-12-31 Zack Weinberg <zackw@panix.com>
18010
18011 * libio/bits/libio-ldbl.h: Correct check for improper
18012 inclusion. Add own multiple include guard.
18013
18014 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
18015 Dmitry V. Levin <ldv@altlinux.org>
18016
18017 [BZ #22625]
18018 CVE-2017-16997
18019 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
18020 string token expansion. Check for NULL pointer or empty string possibly
18021 returned by expand_dynamic_string_token.
18022 (decompose_rpath): Check for empty path after dynamic string
18023 token expansion.
18024
18025 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
18026
18027 [BZ #22433]
18028 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
18029
18030 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
18031 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
18032 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
18033 and PTRACE_SYSCALL.
18034 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
18035 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18036 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18037 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18038 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18039 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18040
18041 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
18042 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18043 __ptrace_peeksiginfo_flags, ptrace): Move to ...
18044 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
18045 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18046 bits/ptrace-shared.h.
18047 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
18048 <bits/ptrace-shared.h>.
18049 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
18050 __ptrace_peeksiginfo_flags, ptrace): Remove.
18051 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18052 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18053 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18054 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18055 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
18056
18057 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18058
18059 [BZ #17804]
18060 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
18061 end of the loop. Improve comments.
18062
18063 2017-12-29 Zack Weinberg <zackw@panix.com>
18064
18065 [BZ #22615]
18066 * manual/errno.texi (Checking for Errors): Explicitly say that errno
18067 might be set on success.
18068
18069 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18070
18071 [BZ #22611]
18072 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18073 is unchanged on success.
18074
18075 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18076
18077 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18078 updated.
18079 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18080 expand_dynamic_string_token): Likewise.
18081 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18082 is_path argument.
18083
18084 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18085 contains ':'.
18086
18087 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18088 is set and name contains ':', and all code depending on these checks.
18089
18090 2017-12-24 Zack Weinberg <zackw@panix.com>
18091
18092 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18093 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18094 respectively.
18095 * libio/libio.h: Rename the original version of this file to
18096 libio/bits/libio.h. Error out if not included by stdio.h or the
18097 stub libio.h.
18098 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18099 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18100 if not included by bits/libio.h or the stub _G_config.h.
18101 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18102 sysdeps/unix/sysv/linux/bits. Error out if not included by
18103 bits/libio.h or the stub _G_config.h.
18104 * libio/stdio.h: Include bits/libio.h, not libio.h.
18105 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18106 well as libio.h and _G_config.h.
18107
18108 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18109 * libio/strfile.h, stdio-common/vfscanf.c
18110 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18111 Include stdio.h, not _G_config.h nor libio.h.
18112 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18113 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18114
18115 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18116
18117 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18118
18119 [BZ #22347]
18120 * stdlib/getrandom.c (getrandom): Fix comment.
18121 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18122
18123 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18124
18125 [BZ #21161]
18126 * manual/arith.texi (strtoul): Fix a typo.
18127
18128 [BZ #22596]
18129 * manual/arith.texi (finite): Fix the description of the return
18130 value.
18131
18132 2017-12-22 Eric Blake <ebb9@byu.net>
18133
18134 Avoid gcc warnings on cygwin
18135 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18136 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18137 Avoid unused variable.
18138
18139 2017-12-22 Florian Weimer <fweimer@redhat.com>
18140
18141 * io/Makefile (routines): Add copy_file_range.
18142 (tests): Add tst-copy_file_range.
18143 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18144 * io/Versions (GLIBC_2.27): Export copy_file_range.
18145 * io/copy_file_range-compat.c: New file.
18146 * io/copy_file_range.c: Likewise.
18147 * io/tst-copy_file_range-compat.c: Likewise.
18148 * io/tst-copy_file_range.c: Likewise.
18149 * manual/llio.texi (Copying File Data): New section.
18150 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18151 * support/Makefile (libsupport-routines): Add support-xfstat,
18152 xftruncate, xlseek.
18153 * support/support-xfstat.c: New file.
18154 * support/xftruncate.c: Likewise.
18155 * support/xlseek.c: Likewise.
18156 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18157 * sysdeps/unix/sysv/linux/**.abilist: Update.
18158 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18159
18160 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18161
18162 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18163 disable-multi-arch variant to aarch64-linux-gnu.
18164
18165 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18166
18167 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18168 trailing whitespace removed.
18169 * scripts/config.guess: Update to version 2017-12-17.
18170 * scripts/config.sub: Update to version 2017-11-23.
18171 * scripts/install-sh: Update to version 2017-09-23.17.
18172 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18173
18174 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18175
18176 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18177 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18178 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18179 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18180 * sysdeps/tile/crtn.S: Likewise.
18181 * sysdeps/tile/dl-start.S (_start): Likewise.
18182 * sysdeps/tile/dl-trampoline.S: Likewise.
18183 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18184 * sysdeps/tile/start.S (_start): Likewise.
18185 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18186 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18187 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18188 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18189 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18190 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18191 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18192
18193 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18194 comment.
18195 * sysdeps/tile/preconfigure: Remove tilegx folder.
18196 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18197 * sysdeps/tile/Implies: ... here.
18198 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18199 * sysdeps/tile/Makefile: ... here.
18200 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18201 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18202 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18203 * sysdeps/tile/bits/wordsize.h: ... here.
18204 * sysdeps/tile/tilegx/*: Move to ...
18205 * sysdeps/tile/*: ... here.
18206 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18207 * sysdeps/tile/tilegx32/Implies: ... here.
18208 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18209 * sysdeps/tile/tilegx64/Implies: ... here.
18210 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18211 to ...
18212 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18213 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18214 * sysdeps/unix/sysv/linux/tile/*: ... here.
18215 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18216 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18217 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18218 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18219
18220 * README: Remove tilepro-*-linux-gnu from supported architecture.
18221 * scripts/build-many-glibcs.py: Likewise.
18222 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18223 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18224 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18225 elf_machine_matches_host, elf_machine_dynamic,
18226 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18227 howto, elf_machine_rela): Likewise.
18228 * sysdeps/tile/dl-start.S (_start): Likewise.
18229 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18230 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18231 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18232 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18233 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18234 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18235 Likewise.
18236 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18237 * sysdeps/tile/preconfigure: Likewise.
18238 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18239 POINTER_CHK_GUARD): Likewise.
18240 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18241 * sysdeps/tile/start.S (_start): Likewise.
18242 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18243 Likewise.
18244 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18245 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18246 CMOVNEZ): Remove.
18247 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18248 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18249 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18250 Likewise.
18251 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18252 * sysdeps/tile/tilepro/Implies: Remove file.
18253 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18254 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18255 * sysdeps/tile/tilepro/memchr.c: Likewise.
18256 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18257 * sysdeps/tile/tilepro/memset.c: Likewise.
18258 * sysdeps/tile/tilepro/memusage.h: Likewise.
18259 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18260 * sysdeps/tile/tilepro/strchr.c: Likewise.
18261 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18262 * sysdeps/tile/tilepro/strlen.c: Likewise.
18263 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18264 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18265 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18266 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18267 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18268 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18269 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18270 Likewise.
18271 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18272 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18273 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18274 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18275 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18276 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18277 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18278 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18279 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18280 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18281 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18282 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18283 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18284 tilepro mention in comment.
18285
18286 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18287 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18288 * nptl/pthread_join_common.c: New file: common function used on
18289 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18290 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18291 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18292 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18293 (cleanup): Move definition to pthread_join_common.c.
18294 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18295 Remove superflous checks.
18296 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18297 Likewise.
18298
18299 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18300
18301 * sysdeps/aarch64/libm-test-ulps: Update.
18302
18303 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18304
18305 * sysdeps/aarch64/memset.S (MEMSET): Define.
18306
18307 2017-12-20 Florian Weimer <fweimer@redhat.com>
18308
18309 [BZ #22635]
18310 nptl: Provide full implementation of pthread_self in libc.so.
18311 * nptl/Makefile (routines): Add pthread_self.
18312 (libpthread-routines): Replace pthread_self with
18313 compat-pthread_self.
18314 * nptl/forward.c (pthread_self): Remove.
18315 * nptl/nptl-init.c (pthread_functions): Do not initialize
18316 ptr_pthread_self.
18317 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18318 * nptl/compat-pthread_self.c: New file.
18319 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18320 Remove ptr_pthread_self.
18321
18322 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18323
18324 * posix/regcomp.c: Fix spelling in comments.
18325 * posix/regex.h: Likewise.
18326 * posix/regex_internal.c: Likewise.
18327 * posix/regexec.c: Likewise.
18328
18329 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18330
18331 [BZ #22377]
18332 * math/Makefile [C++] (tests): Add test for iseqsig.
18333 * math/math.h [C++] (iseqsig): New implementation, which does
18334 not rely on __MATH_TG/__builtin_types_compatible_p.
18335 * math/test-math-iseqsig.cc: New file.
18336 * sysdeps/powerpc/powerpc64le/Makefile
18337 (CFLAGS-test-math-iseqsig.cc): New variable.
18338
18339 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18340
18341 * elf/dl-load.c (is_trusted_path): Remove.
18342 (fillin_rpath): Remove check_trusted argument and its use,
18343 all callers changed.
18344
18345 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18346
18347 [BZ #22630]
18348 * Makeconfig (link-pie-before-libc): Replace -pie with
18349 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18350 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18351 (tst-dlopen-aout-no-pie): New.
18352 (LDFLAGS-tst-prelink): Removed.
18353 (tst-prelink-no-pie): New.
18354 (LDFLAGS-tst-main1): Removed.
18355 (tst-main1-no-pie): New.
18356 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18357 (tst-gmon-no-pie): New.
18358
18359 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18360
18361 * manual/install.texi: Document that --enable-static-pie
18362 implies PIE.
18363 * INSTALL: Regenerated.
18364
18365 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18366
18367 [BZ #21309]
18368 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18369 unsigned.
18370
18371 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18372
18373 Revert:
18374
18375 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18376
18377 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18378
18379 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18380
18381 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18382 <errno.h>. Include "eexp.tbl".
18383 (half): New constant.
18384 (one): Likewise.
18385 (__ieee754_exp): Rewrite.
18386 (__slowexp): Remove prototype.
18387 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18388 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18389 * sysdeps/i386/fpu/slowexp.c: Likewise.
18390 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18391 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18392 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18393 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18394 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18395 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18396 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18397 comment.
18398 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18399 (CPPFLAGS-slowexp.c): Remove variable.
18400 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18401 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18402 (CFLAGS-slowexp-fma.c): Remove variable.
18403 (CFLAGS-slowexp-fma4.c): Likewise.
18404 (CFLAGS-slowexp-avx.c): Likewise.
18405 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18406 define as macro.
18407 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18408 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18409 * math/Makefile (type-double-routines): Remove slowexp.
18410 * manual/probes.texi (slowexp_p6): Remove.
18411 (slowexp_p32): Likewise.
18412
18413 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18414
18415 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18416 arithmetic.
18417
18418 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18419
18420 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18421
18422 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18423
18424 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18425
18426 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18427 <errno.h>. Include "eexp.tbl".
18428 (half): New constant.
18429 (one): Likewise.
18430 (__ieee754_exp): Rewrite.
18431 (__slowexp): Remove prototype.
18432 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18433 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18434 * sysdeps/i386/fpu/slowexp.c: Likewise.
18435 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18436 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18437 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18438 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18439 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18440 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18441 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18442 comment.
18443 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18444 (CPPFLAGS-slowexp.c): Remove variable.
18445 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18446 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18447 (CFLAGS-slowexp-fma.c): Remove variable.
18448 (CFLAGS-slowexp-fma4.c): Likewise.
18449 (CFLAGS-slowexp-avx.c): Likewise.
18450 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18451 define as macro.
18452 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18453 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18454 * math/Makefile (type-double-routines): Remove slowexp.
18455 * manual/probes.texi (slowexp_p6): Remove.
18456 (slowexp_p32): Likewise.
18457
18458 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18459 James Clarke <jrtc27@jrtc27.com>
18460
18461 [BZ #22603]
18462 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18463 addition.
18464
18465 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18466
18467 [BZ #22605]
18468 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18469 code.
18470
18471 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18472
18473 [BZ #22563]
18474 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18475 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18476 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18477 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18478 to feature_1.
18479
18480 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18481
18482 [BZ #22563]
18483 * bits/types/__cancel_jmp_buf_tag.h: New file.
18484 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18485 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18486 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18487 * nptl/Makefile (headers): Add
18488 bits/types/__cancel_jmp_buf_tag.h.
18489 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18490 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18491 * sysdeps/nptl/pthread.h: Include
18492 <bits/types/__cancel_jmp_buf_tag.h>.
18493 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18494 __cancel_jmp_buf.
18495 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18496
18497 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18498
18499 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18500 --enable-static-pie variants to x86_64, x32 and i686.
18501
18502 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18503
18504 [BZ #22631]
18505 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18506 argument for attrubutes. All callers changed.
18507 (__inline_mathop1): Likewise. All callers changed.
18508 (__inline_mathop): Likewise. All callers changed.
18509 [__USE_MISC] (scalbn): Use __inline_forward instead of
18510 __inline_forward_c.
18511 [__USE_ISOC99] (scalbln): Likewise.
18512 [__USE_ISOC99] (nearbyint): Likewise.
18513 [__USE_ISOC99] (lrint): Likewise.
18514 [__USE_MISC] (scalbnf): Likewise.
18515 [__USE_ISOC99] (scalblnf): Likewise.
18516 [__USE_ISOC99] (nearbyintf): Likewise.
18517 [__USE_ISOC99] (lrintf): Likewise.
18518 [__USE_MISC] (scalbnl): Likewise.
18519 [__USE_ISOC99] (scalblnl): Likewise.
18520 [__USE_ISOC99] (nearbyintl): Likewise.
18521 [__USE_ISOC99] (lrintl): Likewise.
18522 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18523 __inline_mathop and __m81_defun changed.
18524
18525 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18526 CPU or FPU for ARM hard-float configurations.
18527
18528 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18529
18530 * nptl/tst-attr3.c: Include <libc-diag.h>.
18531 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18532
18533 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18534
18535 * string/tester.c (test_strncat): Also disable -Warray-bounds
18536 warnings for two tests.
18537
18538 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18539
18540 [BZ #22614]
18541 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18542 $(cc-pie-default) == yes.
18543 * config.make.in (cc-pie-default): New.
18544 * configure.ac (libc_cv_pie_default): Renamed to ...
18545 (libc_cv_cc_pie_default): This.
18546 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18547 * configure: Regenerated.
18548
18549 2017-12-18 Florian Weimer <fweimer@redhat.com>
18550
18551 [BZ #20204]
18552 ld.so: Harden dl-libc/libdl hooks.
18553 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18554 (rtld_active): New function.
18555 * dlfcn/dladdr.c (__dladdr): Call it.
18556 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18557 * dlfcn/dlclose.c (__dlcose): Likewise.
18558 * dlfcn/dlerror.c (__dlerror): Likewise.
18559 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18560 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18561 * dlfcn/dlopen.c (__dlopen): Likewise.
18562 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18563 * dlfcn/dlsym.c (__dlsym): Likewise.
18564 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18565 * libio/vtables.c (_IO_vtable_check): Likewise.
18566 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18567 (__libc_dlclose): Likewise.
18568 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18569 assignment.
18570
18571 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18572
18573 [BZ #22446]
18574 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18575 buffers for readlink input and output.
18576
18577 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18578
18579 [BZ #22624]
18580 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18581 inhibit_stack_protector.
18582
18583 [BZ #22624]
18584 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18585 inhibit_stack_protector.
18586
18587 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18588
18589 [BZ #22627]
18590 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18591 code and invocation.
18592
18593 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18594
18595 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18596
18597 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18598
18599 [BZ #22505]
18600 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18601
18602 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18603
18604 * sysdeps/s390/fpu/libm-test-ulps: Update.
18605
18606 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18607
18608 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18609
18610 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18611
18612 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18613 constants to s_sincosf.h file.
18614 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18615 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18616 implementation.
18617 * sysdeps/ieee754/flt-32/s_sincosf.h:
18618 New file.
18619
18620 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18621
18622 [BZ #14681]
18623 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18624 before mtrace.
18625
18626 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18627
18628 [BZ #19574]
18629 * INSTALL: Regenerated.
18630 * Makeconfig (real-static-start-installed-name): New.
18631 (pic-default): Updated for --enable-static-pie.
18632 (pie-default): New for --enable-static-pie.
18633 (default-pie-ldflag): Likewise.
18634 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18635 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18636 Replace $(static-start-installed-name) with
18637 $(real-static-start-installed-name).
18638 (+prectorT): Updated for --enable-static-pie.
18639 (+postctorT): Likewise.
18640 (CFLAGS-.o): Add $(pie-default).
18641 (CFLAGS-.op): Likewise.
18642 * NEWS: Mention --enable-static-pie.
18643 * config.h.in (ENABLE_STATIC_PIE): New.
18644 * configure.ac (--enable-static-pie): New configure option.
18645 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18646 (have-static-pie): Likewise.
18647 Enable static PIE if linker supports --no-dynamic-linker.
18648 (ENABLE_STATIC_PIE): New AC_DEFINE.
18649 (enable-static-pie): New LIBC_CONFIG_VAR.
18650 * configure: Regenerated.
18651 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18652 gr$(start-installed-name) for --enable-static-pie.
18653 (extra-objs): Likewise.
18654 (install-lib): Likewise.
18655 (extra-objs): Add static-reloc.o and static-reloc.os
18656 ($(objpfx)$(start-installed-name)): Also depend on
18657 $(objpfx)static-reloc.o.
18658 ($(objpfx)r$(start-installed-name)): New.
18659 ($(objpfx)g$(start-installed-name)): Also depend on
18660 $(objpfx)static-reloc.os.
18661 ($(objpfx)gr$(start-installed-name)): New.
18662 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18663 in libc.a.
18664 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18665 initimage.
18666 * csu/static-reloc.c: New file.
18667 * elf/Makefile (routines): Add dl-reloc-static-pie.
18668 (elide-routines.os): Likewise.
18669 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18670 (tst-tls1-static-non-pie-no-pie): New.
18671 * elf/dl-reloc-static-pie.c: New file.
18672 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18673 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18674 STATIC_PIE_BOOTSTRAP.
18675 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18676 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18677 (tests-static): Likewise.
18678 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18679 (tst-gmon-static-no-pie): New.
18680 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18681 (CRT-tst-gmon-static-pie): Likewise.
18682 (tst-gmon-static-pie-ENV): Likewise.
18683 (tests-special): Likewise.
18684 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18685 (clean-tst-gmon-static-pie-data): Likewise.
18686 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18687 * gmon/tst-gmon-static-pie.c: New file.
18688 * manual/install.texi: Document --enable-static-pie.
18689 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18690 (_dl_get_dl_main_map): Likewise.
18691 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18692 * sysdeps/x86_64/configure.ac: Likewise.
18693 * sysdeps/i386/configure: Regenerated.
18694 * sysdeps/x86_64/configure: Likewise.
18695 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18696 (ASFLAGS-.op): Likewise.
18697
18698 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18699
18700 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18701 * posix/tst-mmap-offset.c (fname): Use /tmp.
18702 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18703
18704 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18705
18706 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18707
18708 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18709
18710 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18711 errno.
18712
18713 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18714
18715 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18716 --with-float=hard for arm-linux-gnueabihf configurations.
18717
18718 [BZ #14121]
18719 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18720 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18721 ($(mo-installed)): Use $(objpfx)%.mo.
18722 (realclean): Remove rule.
18723
18724 * po/Makefile (linguas): Remove rule and dependencies.
18725 (linguas.mo): Likewise.
18726 (.PHONY): Do not depend on linguas and linguas.mo.
18727 (podir): Remove variable.
18728 (pofiles): Likewise.
18729 [$(pofiles)] (%.po): Remove rule.
18730
18731 * sysdeps/sparc/sparc32/Makefile
18732 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18733 start-of-line whitespace in argument of echo.
18734 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18735 with whitespace. Generate __wrap_.udiv alias.
18736 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18737 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18738 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18739 * sysdeps/sparc/sparc32/urem.S: Likewise.
18740
18741 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18742
18743 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18744 for aligned inputs.
18745
18746 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18747
18748 * benchtests/bench-strcmp.c: Print output in JSON format.
18749
18750 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18751
18752 2017-12-14 Florian Weimer <fweimer@redhat.com>
18753
18754 [BZ #22607]
18755 CVE-2017-1000409
18756 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18757 the expanded path string.
18758
18759 2017-12-14 Florian Weimer <fweimer@redhat.com>
18760
18761 [BZ #22606]
18762 CVE-2017-1000408
18763 * elf/dl-load.c (system_dirs): Update comment.
18764 (nsystem_dirs_len): Use array_length.
18765 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18766
18767 2017-12-14 Florian Weimer <fweimer@redhat.com>
18768
18769 Simplify compiling most of support/ outside of glibc.
18770 * support/check_addrinfo.c: Include <string.h>.
18771 * support/check_dns_packet.c: Likewise.
18772 * support/check_hostent.c: Likewise.
18773 * support/support_can_chroot.c: Include <support/xunistd.h>.
18774 * support/support_format_addrinfo.c: Include <stdlib.h>
18775 * support/support_format_dns_packet.c: Include <stdbool.h>.
18776 * support/support_format_hostent.c: Include <stdlib.h>.
18777 * support/support_format_netent.c: Likewise.
18778 * support/support_write_string.c: Include <support/xunistd.h>.
18779 * support/xdlfcn.c: Include <stddef.h>.
18780
18781 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18782
18783 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18784
18785 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18786 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18787
18788 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18789 (sysdeps_routines): Add memset-niagara7.
18790 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18791 Likewise.
18792 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18793 file.
18794 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18795 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18796 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18797 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18798 Add niagara7 option.
18799 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18800 memset.
18801
18802 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18803 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18804 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18805 Likewise.
18806 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18807 New file.
18808 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18809 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18810 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18811 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18812 and __memmove_niagara7.
18813 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18814 Add niagara7 option.
18815 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18816 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18817 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18818 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18819 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18820
18821 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18822
18823 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18824 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18825 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18826 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18827
18828 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18829 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18830 _dl_sparc_cap_flags array.
18831 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18832
18833 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18834
18835 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18836 time whenever possible.
18837
18838 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18839
18840 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18841 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18842
18843 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18844
18845 * soft-fp/fmadf4.c: Move to ....
18846 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18847 * soft-fp/fmasf4.c: Move to ....
18848 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18849 * soft-fp/fmatf4.c: Move to ....
18850 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18851 * sysdeps/ieee754/soft-fp/Makefile: New file.
18852 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18853 * sysdeps/arm/preconfigure: Regenerated.
18854 * sysdeps/arm/nofpu/Implies: New file.
18855 * sysdeps/arm/s_fma.c: Remove file.
18856 * sysdeps/arm/s_fmaf.c: Likewise.
18857 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18858 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18859 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18860 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18861 * sysdeps/microblaze/s_fma.c: Remove file.
18862 * sysdeps/microblaze/s_fmaf.c: Likewise.
18863 * sysdeps/mips/mips32/nofpu/Implies: New file.
18864 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18865 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18866 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18867 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18868 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18869 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18870 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18871 implementation.
18872 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18873 * sysdeps/nios2/s_fma.c: Remove file.
18874 * sysdeps/nios2/s_fmaf.c: Likewise.
18875 * sysdeps/sh/nofpu/Implies: New file.
18876 * sysdeps/sh/s_fma.c: Remove file.
18877 * sysdeps/sh/s_fmaf.c: Likewise.
18878 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18879 * sysdeps/tile/s_fma.c: Remove file.
18880 * sysdeps/tile/s_fmaf.c: Likewise.
18881
18882 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18883
18884 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18885 Add s_cosf-sse2 and s_cosf-fma.
18886 (CFLAGS-s_cosf-fma.c): New.
18887 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18888 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18889 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18890
18891 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18892
18893 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18894
18895 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18896
18897 * libio/Makefile (tests): Add tst-bz22415.
18898 (tst-bz22415-ENV): New rule.
18899 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18900 (tests-special): Add tst-bz22415-mem.out.
18901 ($(objpfx)tst-bz22415-mem.out): New rule.
18902 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18903 in case of a successful seek operation.
18904 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18905 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18906 buffer is required.
18907 * libio/tst-bz22415.c: New test.
18908
18909 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18910
18911 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18912
18913 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18914 __IPC_64 to 0 to avoid IPC_64 being set.
18915
18916 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18917
18918 [BZ #22593]
18919 * math/bits/mathcalls.h (nextafter): Remove const.
18920 (nexttoward): Likewise.
18921
18922 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18923
18924 * configure.ac (--with-fp): Remove configure option.
18925 (with_fp_cond): New variable.
18926 (libc_cv_with_fp): New configure test. Use this variable instead
18927 of with_fp.
18928 * configure: Regenerated.
18929 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18930 * manual/install.texi (Configuring and compiling): Remove
18931 --without-fp.
18932 * INSTALL: Regenerated.
18933 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18934 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18935 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18936 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18937 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18938 use --without-fp to configure glibc.
18939
18940 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18941
18942 * manual/locale.texi (nl_langinfo): Fix a typo.
18943
18944 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18945
18946 [BZ #22588]
18947 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18948
18949 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18950
18951 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18952 (CFLAGS-argp-parse.c): Likewise.
18953 (CFLAGS-argp-fmtstream.c): Likewise.
18954 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18955 (CPPFLAGS-sha512-crypt.c): Likewise.
18956 (CPPFLAGS-md5-crypt.c): Likewise.
18957 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18958 (CFLAGS-stack_chk_fail_local.c): Likewise.
18959 (CFLAGS-backtrace.c): Likewise.
18960 (CFLAGS-sprintf_chk.c): Likewise.
18961 (CFLAGS-snprintf_chk.c): Likewise.
18962 (CFLAGS-vsprintf_chk.c): Likewise.
18963 (CFLAGS-vsnprintf_chk.c): Likewise.
18964 (CFLAGS-asprintf_chk.c): Likewise.
18965 (CFLAGS-vasprintf_chk.c): Likewise.
18966 (CFLAGS-obprintf_chk.c): Likewise.
18967 (CFLAGS-dprintf_chk.c): Likewise.
18968 (CFLAGS-vdprintf_chk.c): Likewise.
18969 (CFLAGS-printf_chk.c): Likewise.
18970 (CFLAGS-fprintf_chk.c): Likewise.
18971 (CFLAGS-vprintf_chk.c): Likewise.
18972 (CFLAGS-vfprintf_chk.c): Likewise.
18973 (CFLAGS-gets_chk.c): Likewise.
18974 (CFLAGS-fgets_chk.c): Likewise.
18975 (CFLAGS-fgets_u_chk.c): Likewise.
18976 (CFLAGS-fread_chk.c): Likewise.
18977 (CFLAGS-fread_u_chk.c): Likewise.
18978 (CFLAGS-swprintf_chk.c): Likewise.
18979 (CFLAGS-vswprintf_chk.c): Likewise.
18980 (CFLAGS-wprintf_chk.c): Likewise.
18981 (CFLAGS-fwprintf_chk.c): Likewise.
18982 (CFLAGS-vwprintf_chk.c): Likewise.
18983 (CFLAGS-vfwprintf_chk.c): Likewise.
18984 (CFLAGS-fgetws_chk.c): Likewise.
18985 (CFLAGS-fgetws_u_chk.c): Likewise.
18986 (CFLAGS-read_chk.c): Likewise.
18987 (CFLAGS-pread_chk.c): Likewise.
18988 (CFLAGS-pread64_chk.c): Likewise.
18989 (CFLAGS-recv_chk.c): Likewise.
18990 (CFLAGS-recvfrom_chk.c): Likewise.
18991 (CFLAGS-tst-longjmp_chk.c): Likewise.
18992 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18993 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18994 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18995 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18996 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18997 (CFLAGS-tst-chk1.c): Likewise.
18998 (CFLAGS-tst-chk2.c): Likewise.
18999 (CFLAGS-tst-chk3.c): Likewise.
19000 (CFLAGS-tst-chk4.cc): Likewise.
19001 (CFLAGS-tst-chk5.cc): Likewise.
19002 (CFLAGS-tst-chk6.cc): Likewise.
19003 (CFLAGS-tst-lfschk1.c): Likewise.
19004 (CFLAGS-tst-lfschk2.c): Likewise.
19005 (CFLAGS-tst-lfschk3.c): Likewise.
19006 (CFLAGS-tst-lfschk4.cc): Likewise.
19007 (CFLAGS-tst-lfschk5.cc): Likewise.
19008 (CFLAGS-tst-lfschk6.cc): Likewise.
19009 (CFLAGS-tst-ssp-1.c): Likewise.
19010 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
19011 (CFLAGS-scandir64.c): Likewise.
19012 (CFLAGS-scandir-tail.c): Likewise.
19013 (CFLAGS-scandir64-tail.c): Likewise.
19014 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
19015 (CFLAGS-dl-tunables.c): Likewise.
19016 (CFLAGS-dl-runtime.c): Likewise.
19017 (CFLAGS-dl-lookup.c): Likewise.
19018 (CFLAGS-dl-iterate-phdr.c): Likewise.
19019 (CFLAGS-vismain.c): Likewise.
19020 (CFLAGS-tst-linkall-static.c): Likewise.
19021 (CFLAGS-tst-linkall-static.c): Likewise.
19022 (CPPFLAGS-dl-load.c): Likewise.
19023 (CFLAGS-ldconfig.c): Likewise.
19024 (CFLAGS-dl-cache.c): Likewise.
19025 (CFLAGS-cache.c): Likewise.
19026 (CFLAGS-rtld.c): Likewise.
19027 (CFLAGS-multiload.c): Likewise.
19028 (CFLAGS-filtmod1.c): Likewise.
19029 (CFLAGS-tst-align.c): Likewise.
19030 (CFLAGS-tst-align2.c): Likewise.
19031 (CFLAGS-tst-alignmod.c): Likewise.
19032 (CFLAGS-tst-alignmod2.c): Likewise.
19033 (CPPFLAGS-tst-execstack.c): Likewise.
19034 (CFLAGS-tst-ptrguard1-static.c): Likewise.
19035 (CFLAGS-tst-latepthreadmod.c): Likewise.
19036 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
19037 (CFLAGS-getgrnam_r.c): Likewise.
19038 (CFLAGS-getgrent_r.c): Likewise.
19039 (CFLAGS-getgrent.c): Likewise.
19040 (CFLAGS-fgetgrent.c): Likewise.
19041 (CFLAGS-fgetgrent_r.c): Likewise.
19042 (CFLAGS-putgrent.c): Likewise.
19043 (CFLAGS-initgroups.c): Likewise.
19044 (CFLAGS-getgrgid.c): Likewise.
19045 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
19046 (CFLAGS-getsgent.c): Likewise.
19047 (CFLAGS-fgetsgent.c): Likewise.
19048 (CFLAGS-fgetsgent_r.c): Likewise.
19049 (CFLAGS-putsgent.c): Likewise.
19050 (CFLAGS-getsgnam.c): Likewise.
19051 (CFLAGS-getsgnam_r.c): Likewise.
19052 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
19053 (CFLAGS-iconv_charmap.c): Likewise.
19054 (CFLAGS-dummy-repertoire.c): Likewise.
19055 (CFLAGS-charmap.c): Likewise.
19056 (CFLAGS-linereader.c): Likewise.
19057 (CFLAGS-simple-hash.c): Likewise.
19058 (CFLAGS-gconv_conf.c): Likewise.
19059 (CFLAGS-iconvconfig.c): Likewise.
19060 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
19061 (CFLAGS-gethstbyad.c): Likewise.
19062 (CFLAGS-gethstbynm_r.c): Likewise.
19063 (CFLAGS-gethstbynm.c): Likewise.
19064 (CFLAGS-gethstbynm2_r.c): Likewise.
19065 (CFLAGS-gethstbynm2.c): Likewise.
19066 (CFLAGS-gethstent_r.c): Likewise.
19067 (CFLAGS-gethstent.c): Likewise.
19068 (CFLAGS-rcmd.c): Likewise.
19069 (CFLAGS-getnetbynm_r.c): Likewise.
19070 (CFLAGS-getnetbynm.c): Likewise.
19071 (CFLAGS-getnetbyad_r.c): Likewise.
19072 (CFLAGS-getnetbyad.c): Likewise.
19073 (CFLAGS-getnetent_r.c): Likewise.
19074 (CFLAGS-getnetent.c): Likewise.
19075 (CFLAGS-getaliasent_r.c): Likewise.
19076 (CFLAGS-getaliasent.c): Likewise.
19077 (CFLAGS-getrpcent_r.c): Likewise.
19078 (CFLAGS-getrpcent.c): Likewise.
19079 (CFLAGS-getservent_r.c): Likewise.
19080 (CFLAGS-getservent.c): Likewise.
19081 (CFLAGS-getprtent_r.c): Likewise.
19082 (CFLAGS-getprtent.c): Likewise.
19083 (CFLAGS-either_ntoh.c): Likewise.
19084 (CFLAGS-either_hton.c): Likewise.
19085 (CFLAGS-getnetgrent.c): Likewise.
19086 (CFLAGS-getnetgrent_r.c): Likewise.
19087 (CFLAGS-tst-checks-posix.c): Likewise.
19088 (CFLAGS-tst-sockaddr.c): Likewise.
19089 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19090 (CFLAGS-tst-translit.c): Likewise.
19091 (CFLAGS-tst-gettext2.c): Likewise.
19092 (CFLAGS-tst-codeset.c): Likewise.
19093 (CFLAGS-tst-gettext3.c): Likewise.
19094 (CFLAGS-tst-gettext4.c): Likewise.
19095 (CFLAGS-tst-gettext5.c): Likewise.
19096 (CFLAGS-tst-gettext6.c): Likewise.
19097 * io/Makefile (CFLAGS-open.c): Likewise.
19098 (CFLAGS-open64.c): Likewise.
19099 (CFLAGS-creat.c): Likewise.
19100 (CFLAGS-creat64.c): Likewise.
19101 (CFLAGS-fcntl.c): Likewise.
19102 (CFLAGS-poll.c): Likewise.
19103 (CFLAGS-ppoll.c): Likewise.
19104 (CFLAGS-lockf.c): Likewise.
19105 (CFLAGS-statfs.c): Likewise.
19106 (CFLAGS-fstatfs.c): Likewise.
19107 (CFLAGS-statvfs.c): Likewise.
19108 (CFLAGS-fstatvfs.c): Likewise.
19109 (CFLAGS-fts.c): Likewise.
19110 (CFLAGS-fts64.c): Likewise.
19111 (CFLAGS-ftw.c): Likewise.
19112 (CFLAGS-ftw64.c): Likewise.
19113 (CFLAGS-lockf.c): Likewise.
19114 (CFLAGS-posix_fallocate.c): Likewise.
19115 (CFLAGS-posix_fallocate64.c): Likewise.
19116 (CFLAGS-fallocate.c): Likewise.
19117 (CFLAGS-fallocate64.c): Likewise.
19118 (CFLAGS-read.c): Likewise.
19119 (CFLAGS-write.c): Likewise.
19120 (CFLAGS-test-stat.c): Likewise.
19121 (CFLAGS-test-lfs.c): Likewise.
19122 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19123 (CFLAGS-fputc.c): Likewise.
19124 (CFLAGS-fputwc.c): Likewise.
19125 (CFLAGS-freopen64.c): Likewise.
19126 (CFLAGS-freopen.c): Likewise.
19127 (CFLAGS-fseek.c): Likewise.
19128 (CFLAGS-fseeko64.c): Likewise.
19129 (CFLAGS-fseeko.c): Likewise.
19130 (CFLAGS-ftello64.c): Likewise.
19131 (CFLAGS-ftello.c): Likewise.
19132 (CFLAGS-fwide.c): Likewise.
19133 (CFLAGS-genops.c): Likewise.
19134 (CFLAGS-getc.c): Likewise.
19135 (CFLAGS-getchar.c): Likewise.
19136 (CFLAGS-getwc.c): Likewise.
19137 (CFLAGS-getwchar.c): Likewise.
19138 (CFLAGS-iofclose.c): Likewise.
19139 (CFLAGS-iofflush.c): Likewise.
19140 (CFLAGS-iofgetpos64.c): Likewise.
19141 (CFLAGS-iofgetpos.c): Likewise.
19142 (CFLAGS-iofgets.c): Likewise.
19143 (CFLAGS-iofgetws.c): Likewise.
19144 (CFLAGS-iofputs.c): Likewise.
19145 (CFLAGS-iofputws.c): Likewise.
19146 (CFLAGS-iofread.c): Likewise.
19147 (CFLAGS-iofsetpos64.c): Likewise.
19148 (CFLAGS-iofsetpos.c): Likewise.
19149 (CFLAGS-ioftell.c): Likewise.
19150 (CFLAGS-iofwrite.c): Likewise.
19151 (CFLAGS-iogetdelim.c): Likewise.
19152 (CFLAGS-iogetline.c): Likewise.
19153 (CFLAGS-iogets.c): Likewise.
19154 (CFLAGS-iogetwline.c): Likewise.
19155 (CFLAGS-ioputs.c): Likewise.
19156 (CFLAGS-ioseekoff.c): Likewise.
19157 (CFLAGS-ioseekpos.c): Likewise.
19158 (CFLAGS-iosetbuffer.c): Likewise.
19159 (CFLAGS-iosetvbuf.c): Likewise.
19160 (CFLAGS-ioungetc.c): Likewise.
19161 (CFLAGS-ioungetwc.c): Likewise.
19162 (CFLAGS-oldfileops.c): Likewise.
19163 (CFLAGS-oldiofclose.c): Likewise.
19164 (CFLAGS-oldiofgetpos64.c): Likewise.
19165 (CFLAGS-oldiofgetpos.c): Likewise.
19166 (CFLAGS-oldiofsetpos64.c): Likewise.
19167 (CFLAGS-oldiofsetpos.c): Likewise.
19168 (CFLAGS-peekc.c): Likewise.
19169 (CFLAGS-putc.c): Likewise.
19170 (CFLAGS-putchar.c): Likewise.
19171 (CFLAGS-putwc.c): Likewise.
19172 (CFLAGS-putwchar.c): Likewise.
19173 (CFLAGS-rewind.c): Likewise.
19174 (CFLAGS-wfileops.c): Likewise.
19175 (CFLAGS-wgenops.c): Likewise.
19176 (CFLAGS-oldiofopen.c): Likewise.
19177 (CFLAGS-iofopen.c): Likewise.
19178 (CFLAGS-iofopen64.c): Likewise.
19179 (CFLAGS-oldtmpfile.c): Likewise.
19180 (CFLAGS-tst_putwc.c): Likewise.
19181 * locale/Makefile (CFLAGS-md5.c): Likewise.
19182 (CFLAGS-charmap.c): Likewise.
19183 (CFLAGS-locfile.c): Likewise.
19184 (CFLAGS-charmap-dir.c): Likewise.
19185 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19186 (CFLAGS-getpt.c): Likewise.
19187 (CFLAGS-pt_chown.c): Likewise.
19188 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19189 (CFLAGS-obstack.c): Likewise.
19190 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19191 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19192 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19193 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19194 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19195 (CFLAGS-test-tgmath.c): Likewise.
19196 (CFLAGS-test-tgmath2.c): Likewise.
19197 (CFLAGS-test-tgmath-ret.c): Likewise.
19198 (CFLAGS-test-powl.c): Likewise.
19199 (CFLAGS-test-snan.c): Likewise.
19200 (CFLAGS-test-signgam-finite.c): Likewise.
19201 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19202 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19203 (CFLAGS-test-signgam-uchar.c): Likewise.
19204 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19205 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19206 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19207 (CFLAGS-test-signgam-uint.c): Likewise.
19208 (CFLAGS-test-signgam-uint-init.c): Likewise.
19209 (CFLAGS-test-signgam-uint-static.c): Likewise.
19210 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19211 (CFLAGS-test-signgam-ullong.c): Likewise.
19212 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19213 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19214 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19215 (CFLAGS-test-math-cxx11.cc): Likewise.
19216 (CFLAGS-test-math-isinff.cc): Likewise.
19217 (CFLAGS-test-math-iszero.cc): Likewise.
19218 (CFLAGS-test-math-issignaling.cc): Likewise.
19219 (CFLAGS-test-math-iscanonical.cc): Likewise.
19220 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19221 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19222 (CFLAGS-test-flt-eval-method.c): Likewise.
19223 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19224 (CFLAGS-test-finite-macros.c): Likewise.
19225 * misc/Makefile (CFLAGS-select.c): Likewise.
19226 (CFLAGS-tsearch.c): Likewise.
19227 (CFLAGS-lsearch.c): Likewise.
19228 (CFLAGS-pselect.c): Likewise.
19229 (CFLAGS-readv.c): Likewise.
19230 (CFLAGS-writev.c): Likewise.
19231 (CFLAGS-preadv.c): Likewise.
19232 (CFLAGS-preadv64.c): Likewise.
19233 (CFLAGS-pwritev.c): Likewise.
19234 (CFLAGS-pwritev64.c): Likewise.
19235 (CFLAGS-preadv2.c): Likewise.
19236 (CFLAGS-preadv64v2.c): Likewise.
19237 (CFLAGS-pwritev2.c): Likewise.
19238 (CFLAGS-pwritev64v2.c): Likewise.
19239 (CFLAGS-usleep.c): Likewise.
19240 (CFLAGS-syslog.c): Likewise.
19241 (CFLAGS-error.c): Likewise.
19242 (CFLAGS-getpass.c): Likewise.
19243 (CFLAGS-mkstemp.c): Likewise.
19244 (CFLAGS-mkstemp64.c): Likewise.
19245 (CFLAGS-getsysstats.c): Likewise.
19246 (CFLAGS-getusershell.c): Likewise.
19247 (CFLAGS-err.c): Likewise.
19248 (CFLAGS-tst-tsearch.c): Likewise.
19249 (CFLAGS-msync.c): Likewise.
19250 (CFLAGS-fdatasync.c): Likewise.
19251 (CFLAGS-fsync.c): Likewise.
19252 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19253 (CFLAGS-unwind.c): Likewise.
19254 (CFLAGS-unwind-forcedunwind.c): Likewise.
19255 (CFLAGS-pthread_cancel.c): Likewise.
19256 (CFLAGS-pthread_setcancelstate.c): Likewise.
19257 (CFLAGS-pthread_setcanceltype.c): Likewise.
19258 (CFLAGS-cancellation.c): Likewise.
19259 (CFLAGS-libc-cancellation.c): Likewise.
19260 (CFLAGS-pthread_exit.c): Likewise.
19261 (CFLAGS-forward.c): Likewise.
19262 (CFLAGS-pthread_testcancel.c): Likewise.
19263 (CFLAGS-pthread_join.c): Likewise.
19264 (CFLAGS-pthread_timedjoin.c): Likewise.
19265 (CFLAGS-pthread_once.c): Likewise.
19266 (CFLAGS-pthread_cond_wait.c): Likewise.
19267 (CFLAGS-sem_wait.c): Likewise.
19268 (CFLAGS-sem_timedwait.c): Likewise.
19269 (CFLAGS-fcntl.c): Likewise.
19270 (CFLAGS-lockf.c): Likewise.
19271 (CFLAGS-pread.c): Likewise.
19272 (CFLAGS-pread64.c): Likewise.
19273 (CFLAGS-pwrite.c): Likewise.
19274 (CFLAGS-pwrite64.c): Likewise.
19275 (CFLAGS-wait.c): Likewise.
19276 (CFLAGS-waitpid.c): Likewise.
19277 (CFLAGS-sigwait.c): Likewise.
19278 (CFLAGS-msgrcv.c): Likewise.
19279 (CFLAGS-msgsnd.c): Likewise.
19280 (CFLAGS-tcdrain.c): Likewise.
19281 (CFLAGS-open.c): Likewise.
19282 (CFLAGS-open64.c): Likewise.
19283 (CFLAGS-pause.c): Likewise.
19284 (CFLAGS-recv.c): Likewise.
19285 (CFLAGS-send.c): Likewise.
19286 (CFLAGS-accept.c): Likewise.
19287 (CFLAGS-sendto.c): Likewise.
19288 (CFLAGS-connect.c): Likewise.
19289 (CFLAGS-recvfrom.c): Likewise.
19290 (CFLAGS-recvmsg.c): Likewise.
19291 (CFLAGS-sendmsg.c): Likewise.
19292 (CFLAGS-close.c): Likewise.
19293 (CFLAGS-read.c): Likewise.
19294 (CFLAGS-write.c): Likewise.
19295 (CFLAGS-nanosleep.c): Likewise.
19296 (CFLAGS-sigsuspend.c): Likewise.
19297 (CFLAGS-msync.c): Likewise.
19298 (CFLAGS-fdatasync.c): Likewise.
19299 (CFLAGS-fsync.c): Likewise.
19300 (CFLAGS-pt-system.c): Likewise.
19301 (CFLAGS-tst-cleanup2.c): Likewise.
19302 (CFLAGS-tst-cleanupx2.c): Likewise.
19303 (CFLAGS-flockfile.c): Likewise.
19304 (CFLAGS-ftrylockfile.c): Likewise.
19305 (CFLAGS-funlockfile.c): Likewise.
19306 (CFLAGS-tst-initializers1.c): Likewise.
19307 (CFLAGS-tst-initializers1-c89.c): Likewise.
19308 (CFLAGS-tst-initializers1-c99.c): Likewise.
19309 (CFLAGS-tst-initializers1-c11.c): Likewise.
19310 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19311 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19312 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19313 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19314 (CFLAGS-nscd_getgr_r.c): Likewise.
19315 (CFLAGS-nscd_gethst_r.c): Likewise.
19316 (CFLAGS-nscd_getai.c): Likewise.
19317 (CFLAGS-nscd_initgroups.c): Likewise.
19318 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19319 (CFLAGS-pause.c): Likewise.
19320 (CFLAGS-pread.c): Likewise.
19321 (CFLAGS-pread64.c): Likewise.
19322 (CFLAGS-pwrite.c): Likewise.
19323 (CFLAGS-pwrite64.c): Likewise.
19324 (CFLAGS-sleep.c): Likewise.
19325 (CFLAGS-wait.c): Likewise.
19326 (CFLAGS-waitid.c): Likewise.
19327 (CFLAGS-waitpid.c): Likewise.
19328 (CFLAGS-getopt.c): Likewise.
19329 (CFLAGS-wordexp.c): Likewise.
19330 (CFLAGS-sysconf.c): Likewise.
19331 (CFLAGS-pathconf.c): Likewise.
19332 (CFLAGS-fpathconf.c): Likewise.
19333 (CFLAGS-spawn.c): Likewise.
19334 (CFLAGS-spawnp.c): Likewise.
19335 (CFLAGS-spawni.c): Likewise.
19336 (CFLAGS-glob.c): Likewise.
19337 (CFLAGS-glob64.c): Likewise.
19338 (CFLAGS-getconf.c): Likewise.
19339 (CFLAGS-nanosleep.c): Likewise.
19340 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19341 (CFLAGS-getpwent.c): Likewise.
19342 (CFLAGS-getpw.c): Likewise.
19343 (CFLAGS-fgetpwent_r.c): Likewise.
19344 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19345 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19346 (CFLAGS-mq_timedreceive.c): Likewise.
19347 (CFLAGS-mq_timedsend.c): Likewise.
19348 (CFLAGS-clock_nanosleep.c): Likewise.
19349 (CFLAGS-librt-cancellation.c): Likewise.
19350 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19351 (CFLAGS-getspent.c): Likewise.
19352 (CFLAGS-fgetspent.c): Likewise.
19353 (CFLAGS-fgetspent_r.c): Likewise.
19354 (CFLAGS-putspent.c): Likewise.
19355 (CFLAGS-getspnam.c): Likewise.
19356 (CFLAGS-getspnam_r.c): Likewise.
19357 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19358 (CFLAGS-sigsuspend.c): Likewise.
19359 (CFLAGS-sigtimedwait.c): Likewise.
19360 (CFLAGS-sigwait.c): Likewise.
19361 (CFLAGS-sigwaitinfo.c): Likewise.
19362 (CFLAGS-sigreturn.c): Likewise.
19363 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19364 (CFLAGS-vfwprintf.c): Likewise.
19365 (CFLAGS-tmpfile.c): Likewise.
19366 (CFLAGS-tmpfile64.c): Likewise.
19367 (CFLAGS-tempname.c): Likewise.
19368 (CFLAGS-psignal.c): Likewise.
19369 (CFLAGS-vprintf.c): Likewise.
19370 (CFLAGS-cuserid.c): Likewise.
19371 (CFLAGS-errlist.c): Likewise.
19372 (CFLAGS-siglist.c): Likewise.
19373 (CFLAGS-scanf15.c): Likewise.
19374 (CFLAGS-scanf17.c): Likewise.
19375 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19376 (CFLAGS-msort.c): Likewise.
19377 (CFLAGS-qsort.c): Likewise.
19378 (CFLAGS-system.c): Likewise.
19379 (CFLAGS-fmtmsg.c): Likewise.
19380 (CFLAGS-strfmon.c): Likewise.
19381 (CFLAGS-strfmon_l.c): Likewise.
19382 (CFLAGS-strfromd.c): Likewise.
19383 (CFLAGS-strfromf.c): Likewise.
19384 (CFLAGS-strfroml.c): Likewise.
19385 (CFLAGS-tst-bsearch.c): Likewise.
19386 (CFLAGS-tst-qsort.c): Likewise.
19387 (CFLAGS-tst-makecontext2.c): Likewise.
19388 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19389 (CFLAGS-xnlm_prot.c): Likewise.
19390 (CFLAGS-xrstat.c): Likewise.
19391 (CFLAGS-xyppasswd.c): Likewise.
19392 (CFLAGS-xklm_prot.c): Likewise.
19393 (CFLAGS-xrex.c): Likewise.
19394 (CFLAGS-xsm_inter.c): Likewise.
19395 (CFLAGS-xmount.c): Likewise.
19396 (CFLAGS-xrusers.c): Likewise.
19397 (CFLAGS-xspray.c): Likewise.
19398 (CFLAGS-xnfs_prot.c): Likewise.
19399 (CFLAGS-xrquota.c): Likewise.
19400 (CFLAGS-xkey_prot.c): Likewise.
19401 (CFLAGS-auth_unix.c): Likewise.
19402 (CFLAGS-key_call.c): Likewise.
19403 (CFLAGS-pmap_rmt.c): Likewise.
19404 (CFLAGS-clnt_perr.c): Likewise.
19405 (CFLAGS-openchild.c): Likewise.
19406 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19407 (CFLAGS-msgsnd.c): Likewise.
19408 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19409 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19410 (CFLAGS-tzset.c): Likewise.
19411 (CFLAGS-getdate.c): Likewise.
19412 (CFLAGS-test_time.c): Likewise.
19413 (CPPFLAGS-tst-tzname.c): Likewise.
19414 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19415 (CFLAGS-zic.c): Likewise.
19416 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19417 (CFLAGS-wcswidth.c): Likewise.
19418 (CFLAGS-wcstol.c): Likewise.
19419 (CFLAGS-wcstoul.c): Likewise.
19420 (CFLAGS-wcstoll.c): Likewise.
19421 (CFLAGS-wcstoull.c): Likewise.
19422 (CFLAGS-wcstod.c): Likewise.
19423 (CFLAGS-wcstold.c): Likewise.
19424 (CFLAGS-wcstof128.c): Likewise.
19425 (CFLAGS-wcstof.c): Likewise.
19426 (CFLAGS-wcstol_l.c): Likewise.
19427 (CFLAGS-wcstoul_l.c): Likewise.
19428 (CFLAGS-wcstoll_l.c): Likewise.
19429 (CFLAGS-wcstoull_l.c): Likewise.
19430 (CFLAGS-wcstod_l.c): Likewise.
19431 (CFLAGS-wcstold_l.c): Likewise.
19432 (CFLAGS-wcstof128_l.c): Likewise.
19433 (CFLAGS-wcstof_l.c): Likewise.
19434 (CPPFLAGS-tst-wchar-h.c): Likewise.
19435 (CPPFLAGS-wcstold_l.c): Likewise.
19436
19437 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19438
19439 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19440
19441 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19442 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19443
19444 * manual/tunables.texi (Hardware Capability Tunables): Document
19445 glibc.tune.cached_memopt.
19446 * sysdeps/powerpc/cpu-features.c: New file.
19447 * sysdeps/powerpc/cpu-features.h: New file.
19448 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19449 _dl_powerpc_cpu_features.
19450 * sysdeps/powerpc/dl-tunables.list: New file.
19451 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19452 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19453 (INIT_ARCH): Initialize use_aligned_memopt.
19454 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19455 IS_IN(rtld))]: Restrict dl_platform_init availability and
19456 initialize CPU features used by tunables.
19457 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19458 Add memcpy-power8-cached.
19459 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19460 __memcpy_power8_cached.
19461 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19462 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19463 New file.
19464
19465 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19466
19467 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19468 (CFLAGS-noinl-tester.c): Likewise.
19469 (CFLAGS-tst-strlen.c): Likewise.
19470 (CFLAGS-stratcliff.c): Likewise.
19471 (CFLAGS-test-ffs.c): Likewise.
19472 (CFLAGS-tst-inlcall.c): Likewise.
19473 (CFLAGS-tst-xbzero-opt.c): Likewise.
19474 (CFLAGS-memcpy.c): Likewise.
19475 (CFLAGS-wordcopy.c): Likewise.
19476
19477 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19478
19479 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19480 Store r15 on stack and add cfi rule.
19481 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19482 Likewise.
19483
19484 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19485
19486 [BZ #22577]
19487 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19488 call.
19489
19490 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19491
19492 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19493 Add s_sinf-sse2 and s_sinf-fma.
19494 (CFLAGS-s_sinf-fma.c): New.
19495 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19496 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19497 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19498
19499 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19500
19501 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19502
19503 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19504
19505 [BZ #22568]
19506 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19507 part of result to imaginary part of argument if it is zero and the
19508 real part of the argument is not finite.
19509 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19510 of result to real part of argument if it is zero and the imaginary
19511 part of the argument is not finite.
19512
19513 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19514
19515 [BZ #22524]
19516 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19517 and to the list of locales to be built for testing.
19518 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19519 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19520 and build the collation rules upon that.
19521
19522 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19523
19524 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19525 * manual/math.texi (Mathematics): Document support for _Float32.
19526 * math/Makefile (test-types): Add float32.
19527 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19528 * stdlib/Versions (GLIBC_2.27): Likewise.
19529 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19530 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19531 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19532 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19533 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19534 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19535 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19536 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19537 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19538 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19539 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19540 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19541 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19542 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19543 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19544 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19545 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19546 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19547 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19548 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19549 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19550 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19551 Likewise.
19552 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19553 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19554 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19555 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19556 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19557 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19558 Likewise.
19559 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19560 Likewise.
19561 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19562 Likewise.
19563 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19564 Likewise.
19565
19566 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19567 Likewise.
19568 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19569 Likewise.
19570 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19571 Likewise.
19572 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19573 Likewise.
19574 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19575 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19576 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19577 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19578 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19579 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19580 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19581 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19582 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19583 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19584 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19585 Likewise.
19586 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19587 Likewise.
19588 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19589 Likewise.
19590 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19591 Likewise.
19592 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19593 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19594 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19595 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19596 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19597 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19598 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19599 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19600
19601 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19602
19603 * stdlib/strtof.c: Include <bits/floatn.h>
19604 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19605 and later undefine as macro. Define as weak alias if
19606 [!USE_WIDE_CHAR].
19607 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19608 and later undefine as macro. Define as weak alias if
19609 [USE_WIDE_CHAR].
19610 * stdlib/strtof_l.c: Include <bits/floatn.h>
19611 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19612 and later undefine as macro. Define as weak alias if
19613 [!USE_WIDE_CHAR].
19614 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19615 and later undefine as macro. Define as weak alias if
19616 [USE_WIDE_CHAR].
19617
19618 * stdlib/strfromf.c: Include <bits/floatn.h>.
19619 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19620 and later undefine as macro and define as weak alias.
19621
19622 * math/test-float32.h: New file.
19623
19624 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19625 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19626 (libm_alias_float_other_r): Create f32 alias.
19627 (libm_alias_float_r): Use semicolon before call to
19628 libm_alias_float_other_r.
19629
19630 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19631 second argument to libm_alias_float_other.
19632 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19633 second argument to libm_alias_float_other.
19634 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19635 argument to libm_alias_float_other.
19636
19637 [BZ #22561]
19638 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19639 real part of result for argument 0 + i * NaN.
19640 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19641 results for tests of 0 + i * NaN.
19642
19643 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19644
19645 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19646
19647 2017-12-06 David S. Miller <davem@davemloft.net>
19648
19649 * sysdeps/sparc/fpu/libm-test-ulps: Update
19650 exp_{downward,towardzero,upward} ulps.
19651
19652 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19653
19654 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19655 variables static.
19656
19657 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19658 (Y0_2D): Likewise.
19659 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19660 (Y0_2D): Likewise.
19661 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19662 (Y0_2D): Likewise.
19663 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19664 (Y0_2D): Likewise.
19665
19666 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19667
19668 [BZ #22515]
19669 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19670 and to the list of locales to be built for testing.
19671 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19672 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19673 and build the collation rules upon that.
19674
19675 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19676
19677 * NEWS: Add sinf to list of optimized functions.
19678
19679 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19680
19681 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19682 (__HAVE_FLOAT32X): Likewise.
19683 * manual/math.texi (Mathematics): Document support for _Float64
19684 and _Float32x.
19685 * math/Makefile (test-types): Add float64 and float32x.
19686 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19687 functions.
19688 * stdlib/Versions (GLIBC_2.27): Likewise.
19689 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19690 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19691 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19692 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19693 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19694 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19695 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19696 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19697 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19698 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19699 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19700 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19701 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19702 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19703 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19704 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19705 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19706 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19707 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19708 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19709 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19710 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19711 Likewise.
19712 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19713 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19714 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19715 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19716 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19717 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19718 Likewise.
19719 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19720 Likewise.
19721 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19722 Likewise.
19723 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19724 Likewise.
19725 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19726 Likewise.
19727 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19728 Likewise.
19729 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19730 Likewise.
19731 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19732 Likewise.
19733 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19734 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19735 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19736 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19737 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19738 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19739 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19740 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19741 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19742 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19743 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19744 Likewise.
19745 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19746 Likewise.
19747 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19748 Likewise.
19749 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19750 Likewise.
19751 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19752 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19753 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19754 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19755 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19756 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19757 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19758 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19759
19760 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19761
19762 * bits/floatn-common.h: Include <bits/long-double.h>.
19763 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19764 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19765 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19766 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19767 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19768 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19769 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19770 (__builtin_huge_valf64): Use __builtin_huge_vall.
19771 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19772 (__builtin_inff64): Use __builtin_infl.
19773 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19774 (__builtin_nanf64): Use __builtin_nanl.
19775 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19776 (__builtin_nansf64): Use __builtin_nansl.
19777
19778 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19779 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19780 Carlos O'Donnell <carlos@redhat.com>
19781
19782 * elf/dl-tunables.list: Add elision parameters.
19783 * manual/tunables.texi: Add entries about elision tunable.
19784 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19785 Add callback functions to dynamically enable/disable elision.
19786 Add multiple callbacks functions to set elision parameters.
19787 Deleted __libc_enable_secure check.
19788 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19789 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19790 * configure: Regenerated.
19791 * configure.ac: Option enable_lock_elision was deleted.
19792 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19793 * config.make.in: Remove references to enable_lock_elision.
19794 * manual/install.texi: Elision configure option was removed.
19795 * INSTALL: Regenerated to remove enable_lock_elision.
19796 * nptl/Makefile:
19797 Disable elision so it can verify error case for destroying a mutex.
19798 * sysdeps/powerpc/nptl/elide.h:
19799 Cleanup ENABLE_LOCK_ELISION check.
19800 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19801 * sysdeps/s390/configure: Regenerated.
19802 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19803 * nptl/tst-mutex8.c:
19804 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19805 * sysdeps/powerpc/powerpc32/sysdep.h:
19806 Deleted all ENABLE_LOCK_ELISION checks.
19807 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19808 * sysdeps/powerpc/sysdep.h: Likewise.
19809 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19810 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19811 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19812 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19813 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19814 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19815 enable-lock-elision.
19816
19817 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19818
19819 * stdlib/strtod.c: Include <bits/floatn.h>.
19820 (BUILD_DOUBLE): New macro.
19821 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19822 (strtof64): Define and later undefine as macro. Define as weak
19823 alias if [!USE_WIDE_CHAR].
19824 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19825 (wcstof64): Define and later undefine as macro. Define as weak
19826 alias if [USE_WIDE_CHAR].
19827 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19828 (strtof32x): Define and later undefine as macro. Define as weak
19829 alias if [!USE_WIDE_CHAR].
19830 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19831 (wcstof32x): Define and later undefine as macro. Define as weak
19832 alias if [USE_WIDE_CHAR].
19833 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19834 (BUILD_DOUBLE): New macro.
19835 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19836 (strtof64_l): Define and later undefine as macro. Define as weak
19837 alias if [!USE_WIDE_CHAR].
19838 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19839 (wcstof64_l): Define and later undefine as macro. Define as weak
19840 alias if [USE_WIDE_CHAR].
19841 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19842 (strtof32x_l): Define and later undefine as macro. Define as weak
19843 alias if [!USE_WIDE_CHAR].
19844 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19845 (wcstof32x_l): Define and later undefine as macro. Define as weak
19846 alias if [USE_WIDE_CHAR].
19847
19848 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19849
19850 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19851 (reduced): Use ones as double instead of integer.
19852
19853 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19854
19855 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19856
19857 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19858
19859 * stdlib/strfromd.c: Include <bits/floatn.h>.
19860 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19861 and later undefine as macro and define as weak alias.
19862 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19863 Likewise.
19864
19865 * math/test-float32x.h: New file.
19866 * math/test-float64.h: Likewise.
19867
19868 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19869 (libm_alias_double_other_r_f64): New macro.
19870 (libm_alias_double_other_r_f32x): Likewise.
19871 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19872 libm_alias_double_other_r_f32x.
19873 (libm_alias_double_r): Use semicolon before call to
19874 libm_alias_double_other_r.
19875 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19876 <bits/floatn.h>.
19877 (libm_alias_double_other_r_f64): New macro.
19878 (libm_alias_double_other_r_f32x): Likewise.
19879 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19880 libm_alias_double_other_r_f32x.
19881
19882 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19883
19884 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19885 int.
19886 (SINF_FUNC): Likewise. Replace floor with simple casts.
19887
19888 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19889
19890 [BZ #22517]
19891 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19892 and to the list of locales to be built for testing.
19893 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19894 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19895 and build the collation rules upon that.
19896
19897 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19898
19899 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19900 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19901 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19902 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19903 instead of __insn__xxx.
19904 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19905 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19906 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19907 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19908 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19909 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19910
19911 2017-12-05 Florian Weimer <fweimer@redhat.com>
19912
19913 Linux: Implement interfaces for memory protection keys
19914 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19915 xsignal, xsysconf.
19916 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19917 * support/xunistd.h (xsysconf): Declare.
19918 * support/xraise.c: New file.
19919 * support/xsigaction.c: Likewise.
19920 * support/xsignal.c: Likewise.
19921 * support/xsysconf.c: Likewise.
19922 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19923 pkey_set, pkey_get, pkey_mprotect.
19924 [misc] (tests): Add tst-pkey.
19925 (tst-pkey): Link with -lpthread.
19926 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19927 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19928 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19929 (PKEY_DISABLE_WRITE): Define.
19930 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19931 Declare.
19932 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19933 (SEGV_PKUERR): Add.
19934 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19935 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19936 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19937 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19938 Add.
19939 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19940 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19941 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19942 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19943 * sysdeps/unix/sysv/linux/**.abilist: Update.
19944
19945 2017-12-05 Florian Weimer <fweimer@redhat.com>
19946
19947 * support/tst-test_compare.c (subprocess): Use long long instead
19948 of long argument for consistent type width across 32-bit and
19949 64-bit architectures.
19950 (do_test): Adjust expected output.
19951
19952 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19953
19954 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19955 (cosf): Define using libm_alias_float.
19956 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19957 (fabsf): Define using libm_alias_float.
19958 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19959 (fmaf): Define using libm_alias_float.
19960 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19961 (rintf): Define using libm_alias_float.
19962 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19963 (sinf): Define using libm_alias_float.
19964 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19965 <libm-alias-float.h>.
19966 (modff): Define using libm_alias_float.
19967 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19968 <libm-alias-float.h>.
19969 (logbf): Define using libm_alias_float.
19970 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19971 <libm-alias-float.h>.
19972 (ceilf): Define using libm_alias_float.
19973 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19974 <libm-alias-float.h>.
19975 (copysignf): Define using libm_alias_float.
19976 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19977 <libm-alias-float.h>.
19978 (floorf): Define using libm_alias_float.
19979 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19980 <libm-alias-float.h>.
19981 (llrintf): Define using libm_alias_float.
19982 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19983 <libm-alias-float.h>.
19984 (llroundf): Define using libm_alias_float.
19985 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19986 <libm-alias-float.h>.
19987 (lrintf): Define using libm_alias_float.
19988 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19989 <libm-alias-float.h>.
19990 (lroundf): Define using libm_alias_float.
19991 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19992 <libm-alias-float.h>.
19993 (nearbyintf): Define using libm_alias_float.
19994 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19995 <libm-alias-float.h>.
19996 (rintf): Define using libm_alias_float.
19997 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19998 <libm-alias-float.h>.
19999 (roundf): Define using libm_alias_float.
20000 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
20001 <libm-alias-float.h>.
20002 (truncf): Define using libm_alias_float.
20003 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
20004 Include <libm-alias-float.h>.
20005 (ceilf): Define using libm_alias_float.
20006 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
20007 Include <libm-alias-float.h>.
20008 (copysignf): Define using libm_alias_float.
20009 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
20010 Include <libm-alias-float.h>.
20011 (floorf): Define using libm_alias_float.
20012 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
20013 Include <libm-alias-float.h>.
20014 (llrintf): Define using libm_alias_float.
20015 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
20016 Include <libm-alias-float.h>.
20017 (llroundf): Define using libm_alias_float.
20018 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
20019 Include <libm-alias-float.h>.
20020 (logbf): Define using libm_alias_float.
20021 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
20022 Include <libm-alias-float.h>.
20023 (lrintf): Define using libm_alias_float.
20024 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
20025 Include <libm-alias-float.h>.
20026 (lroundf): Define using libm_alias_float.
20027 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
20028 Include <libm-alias-float.h>.
20029 (modff): Define using libm_alias_float.
20030 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
20031 Include <libm-alias-float.h>.
20032 (roundf): Define using libm_alias_float.
20033 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
20034 Include <libm-alias-float.h>.
20035 (truncf): Define using libm_alias_float.
20036 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
20037 <libm-alias-float.h>.
20038 (llrintf): Define using libm_alias_float.
20039 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20040 <libm-alias-float.h>.
20041 (llroundf): Define using libm_alias_float.
20042 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
20043 <libm-alias-float.h>.
20044 (ceilf): Define using libm_alias_float.
20045 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
20046 <libm-alias-float.h>.
20047 (floorf): Define using libm_alias_float.
20048 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20049 <libm-alias-float.h>.
20050 (llroundf): Define using libm_alias_float.
20051 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20052 <libm-alias-float.h>.
20053 (lroundf): Define using libm_alias_float.
20054 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
20055 <libm-alias-float.h>.
20056 (roundf): Define using libm_alias_float.
20057 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
20058 <libm-alias-float.h>.
20059 (truncf): Define using libm_alias_float.
20060 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20061 <libm-alias-float.h>.
20062 (copysignf): Define using libm_alias_float.
20063 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
20064 <libm-alias-float.h>.
20065 (llrintf): Define using libm_alias_float.
20066 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20067 <libm-alias-float.h>.
20068 (llroundf): Define using libm_alias_float.
20069 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20070 <libm-alias-float.h>.
20071 (lrintf): Define using libm_alias_float.
20072 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20073 <libm-alias-float.h>.
20074 (lroundf): Define using libm_alias_float.
20075 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20076 <libm-alias-float.h>.
20077 (ceilf): Define using libm_alias_float.
20078 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20079 <libm-alias-float.h>.
20080 (copysignf): Define using libm_alias_float.
20081 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20082 <libm-alias-float.h>.
20083 (cosf): Define using libm_alias_float.
20084 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20085 <libm-alias-float.h>.
20086 (floorf): Define using libm_alias_float.
20087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20088 <libm-alias-float.h>.
20089 (llrintf): Define using libm_alias_float.
20090 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20091 <libm-alias-float.h>.
20092 (llroundf): Define using libm_alias_float.
20093 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20094 <libm-alias-float.h>.
20095 (logbf): Define using libm_alias_float.
20096 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20097 <libm-alias-float.h>.
20098 (modff): Define using libm_alias_float.
20099 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20100 <libm-alias-float.h>.
20101 (roundf): Define using libm_alias_float.
20102 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20103 <libm-alias-float.h>.
20104 (sinf): Define using libm_alias_float.
20105 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20106 <libm-alias-float.h>.
20107 (truncf): Define using libm_alias_float.
20108 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20109 <libm-alias-float.h>.
20110 (ceilf): Define using libm_alias_float.
20111 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20112 <libm-alias-float.h>.
20113 (copysignf): Define using libm_alias_float.
20114 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20115 <libm-alias-float.h>.
20116 (floorf): Define using libm_alias_float.
20117 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20118 <libm-alias-float.h>.
20119 (llrintf): Define using libm_alias_float.
20120 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20121 <libm-alias-float.h>.
20122 (llroundf): Define using libm_alias_float.
20123 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20124 <libm-alias-float.h>.
20125 (nearbyintf): Define using libm_alias_float.
20126 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20127 <libm-alias-float.h>.
20128 (rintf): Define using libm_alias_float.
20129 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20130 <libm-alias-float.h>.
20131 (roundf): Define using libm_alias_float.
20132 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20133 <libm-alias-float.h>.
20134 (truncf): Define using libm_alias_float.
20135 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20136 <libm-alias-float.h>.
20137 (ceilf): Define using libm_alias_float.
20138 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20139 <libm-alias-float.h>.
20140 (floorf): Define using libm_alias_float.
20141 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20142 <libm-alias-float.h>.
20143 (llroundf): Define using libm_alias_float.
20144 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20145 <libm-alias-float.h>.
20146 (roundf): Define using libm_alias_float.
20147 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20148 <libm-alias-float.h>.
20149 (truncf): Define using libm_alias_float.
20150 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20151 <libm-alias-float.h>.
20152 (copysignf): Define using libm_alias_float.
20153 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20154 <libm-alias-float.h>.
20155 (llrintf): Define using libm_alias_float.
20156 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20157 <libm-alias-float.h>.
20158 (llroundf): Define using libm_alias_float.
20159 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20160 <libm-alias-float.h>.
20161 (cosf): Define using libm_alias_float.
20162 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20163 <libm-alias-float.h>.
20164 (llrintf): Define using libm_alias_float.
20165 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20166 <libm-alias-float.h>.
20167 (llroundf): Define using libm_alias_float.
20168 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20169 <libm-alias-float.h>.
20170 (sinf): Define using libm_alias_float.
20171
20172 2017-12-04 Florian Weimer <fweimer@redhat.com>
20173
20174 * support/check.h (TEST_COMPARE): Define.
20175 (support_test_compare_failure): Declare.
20176 * support/Makefile (libsupport-routines): Add
20177 support_test_compare_failure.
20178 (tests): Add tst-test_compare.
20179 * support /support_test_compare_failure.c: New file.
20180 * support/tst-test_compare.c: Likewise.
20181
20182 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20183
20184 [BZ #22527]
20185 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20186 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20187 available, this rewrite of the collation rules does reproduce
20188 the test file in the same order.
20189
20190 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20191
20192 [BZ #10580]
20193 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20194 digraphs in the month and day names. Using single code points for
20195 digraphs is deprecated. While there are dedicated Unicode
20196 codepoints, for the digraphs, these are included for backwards
20197 compatibility and modern texts use a sequence of Basic Latin
20198 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20199 This makes the month and day names agree exactly with CLDR now,
20200 CLDR does not use the single code points for the digraphs either.
20201
20202 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20203
20204 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20205
20206 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20207
20208 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20209 of floor.
20210
20211 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20212
20213 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20214 Define only for libc.so.
20215
20216 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20217
20218 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20219 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20220 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20221 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20222 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20223
20224 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20225
20226 [BZ #5997]
20227 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20228
20229 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20230
20231 [BZ libc/19170]
20232 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20233 PREINIT_FUNCTION_WEAK is nonzero.
20234 (gmon_initializer): New function. Put procedure label for it in
20235 .init_array section.
20236 (_init): Don't call PREINIT_FUNCTION.
20237 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20238 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20239 value when map argument is null.
20240
20241 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20242 depi instruction from PIC pc-relative sequence.
20243 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20244 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20245 (elf_machine_load_address): Likewise.
20246 (elf_machine_runtime_setup): Likewise.
20247
20248 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20249
20250 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20251 <libm-alias-double.h>.
20252 (logb): Define using libm_alias_double.
20253 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20254 <libm-alias-double.h>.
20255 (copysign): Define using libm_alias_double.
20256 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20257 <libm-alias-double.h>.
20258 (llrint): Define using libm_alias_double.
20259 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20260 <libm-alias-double.h>.
20261 (llround): Define using libm_alias_double.
20262 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20263 <libm-alias-double.h>.
20264 (lrint): Define using libm_alias_double.
20265 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20266 <libm-alias-double.h>.
20267 (lround): Define using libm_alias_double.
20268 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20269 Include <libm-alias-double.h>.
20270 (copysign): Define using libm_alias_double.
20271 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20272 Include <libm-alias-double.h>.
20273 (llrint): Define using libm_alias_double.
20274 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20275 Include <libm-alias-double.h>.
20276 (llround): Define using libm_alias_double.
20277 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20278 <libm-alias-double.h>.
20279 (logb): Define using libm_alias_double.
20280 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20281 Include <libm-alias-double.h>.
20282 (lrint): Define using libm_alias_double.
20283 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20284 Include <libm-alias-double.h>.
20285 (lround): Define using libm_alias_double.
20286 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20287 <libm-alias-double.h>.
20288 (llrint): Define using libm_alias_double.
20289 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20290 <libm-alias-double.h>.
20291 (llround): Define using libm_alias_double.
20292 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20293 <libm-alias-double.h>.
20294 (llround): Define using libm_alias_double.
20295 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20296 <libm-alias-double.h>.
20297 (lround): Define using libm_alias_double.
20298 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20299 <libm-alias-double.h>.
20300 (copysign): Define using libm_alias_double.
20301 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20302 <libm-alias-double.h>.
20303 (llrint): Define using libm_alias_double.
20304 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20305 <libm-alias-double.h>.
20306 (llround): Define using libm_alias_double.
20307 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20308 <libm-alias-double.h>.
20309 (lrint): Define using libm_alias_double.
20310 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20311 <libm-alias-double.h>.
20312 (lround): Define using libm_alias_double.
20313 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20314 <libm-alias-double.h>.
20315 (copysign): Define using libm_alias_double.
20316 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20317 <libm-alias-double.h>.
20318 (llrint): Define using libm_alias_double.
20319 (lrint): Likewise.
20320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20321 <libm-alias-double.h>.
20322 (llround): Define using libm_alias_double.
20323 (lround): Likewise.
20324 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20325 <libm-alias-double.h>.
20326 (logb): Define using libm_alias_double.
20327 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20328 <libm-alias-double.h>.
20329 (copysign): Define using libm_alias_double.
20330 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20331 <libm-alias-double.h>.
20332 (llrint): Define using libm_alias_double.
20333 (lrint): Likewise.
20334 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20335 <libm-alias-double.h>.
20336 (llround): Define using libm_alias_double.
20337 (lround): Likewise.
20338 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20339 <libm-alias-double.h>.
20340 (llround): Define using libm_alias_double.
20341 (lround): Likewise.
20342 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20343 <libm-alias-double.h>.
20344 (copysign): Define using libm_alias_double.
20345 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20346 <libm-alias-double.h>.
20347 (llrint): Define using libm_alias_double.
20348 (lrint): Likewise.
20349 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20350 <libm-alias-double.h>.
20351 (llround): Define using libm_alias_double.
20352 (lround): Likewise.
20353 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20354 <libm-alias-double.h>.
20355 (llrint): Define using libm_alias_double.
20356 (lrint): Likewise.
20357 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20358 <libm-alias-double.h>.
20359 (llround): Define using libm_alias_double.
20360 (lround): Likewise.
20361
20362 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20363
20364 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20365 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20366 compat symbol based on llround.
20367
20368 * sysdeps/powerpc/power7/fpu/s_logb.c
20369 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20370 symbol based on __logb, not on logb.
20371 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20372 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20373 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20374 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20375
20376 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20377 (rint): Define using libm_alias_double.
20378 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20379 <libm-alias-double.h>.
20380 (modf): Define using libm_alias_double.
20381 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20382 <libm-alias-double.h>.
20383 (ceil): Define using libm_alias_double.
20384 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20385 <libm-alias-double.h>.
20386 (floor): Define using libm_alias_double.
20387 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20388 <libm-alias-double.h>.
20389 (nearbyint): Define using libm_alias_double.
20390 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20391 <libm-alias-double.h>.
20392 (rint): Define using libm_alias_double.
20393 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20394 <libm-alias-double.h>.
20395 (round): Define using libm_alias_double.
20396 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20397 <libm-alias-double.h>.
20398 (trunc): Define using libm_alias_double.
20399 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20400 <libm-alias-double.h>.
20401 (ceil): Define using libm_alias_double.
20402 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20403 Include <libm-alias-double.h>.
20404 (floor): Define using libm_alias_double.
20405 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20406 <libm-alias-double.h>.
20407 (modf): Define using libm_alias_double.
20408 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20409 Include <libm-alias-double.h>.
20410 (round): Define using libm_alias_double.
20411 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20412 Include <libm-alias-double.h>.
20413 (trunc): Define using libm_alias_double.
20414 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20415 <libm-alias-double.h>.
20416 (ceil): Define using libm_alias_double.
20417 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20418 <libm-alias-double.h>.
20419 (floor): Define using libm_alias_double.
20420 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20421 <libm-alias-double.h>.
20422 (round): Define using libm_alias_double.
20423 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20424 <libm-alias-double.h>.
20425 (trunc): Define using libm_alias_double.
20426 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20427 <libm-alias-double.h>.
20428 (ceil): Define using libm_alias_double.
20429 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20430 <libm-alias-double.h>.
20431 (floor): Define using libm_alias_double.
20432 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20433 <libm-alias-double.h>.
20434 (modf): Define using libm_alias_double.
20435 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20436 <libm-alias-double.h>.
20437 (round): Define using libm_alias_double.
20438 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20439 <libm-alias-double.h>.
20440 (trunc): Define using libm_alias_double.
20441 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20442 <libm-alias-double.h>.
20443 (ceil): Define using libm_alias_double.
20444 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20445 <libm-alias-double.h>.
20446 (floor): Define using libm_alias_double.
20447 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20448 <libm-alias-double.h>.
20449 (nearbyint): Define using libm_alias_double.
20450 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20451 <libm-alias-double.h>.
20452 (rint): Define using libm_alias_double.
20453 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20454 <libm-alias-double.h>.
20455 (round): Define using libm_alias_double.
20456 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20457 <libm-alias-double.h>.
20458 (trunc): Define using libm_alias_double.
20459 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20460 <libm-alias-double.h>.
20461 (ceil): Define using libm_alias_double.
20462 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20463 <libm-alias-double.h>.
20464 (floor): Define using libm_alias_double.
20465 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20466 <libm-alias-double.h>.
20467 (round): Define using libm_alias_double.
20468 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20469 <libm-alias-double.h>.
20470 (trunc): Define using libm_alias_double.
20471
20472 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20473 (fabs): Define using libm_alias_double.
20474 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20475 (fma): Define using libm_alias_double.
20476 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20477 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20478 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20479 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20480
20481 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20482
20483 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20484
20485 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20486 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20487 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20488
20489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20490 due redirect macro.
20491
20492 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20493
20494 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20495
20496 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20497
20498 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20499 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20500 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20501 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20502
20503 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20504 (libm-sysdep_routines): Add s_nearbyintf-generic and
20505 s_nearbyint-generic.
20506 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20507 New file.
20508 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20509 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20510 Likewise.
20511 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20512 Likewise.
20513 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20514 file.
20515 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20516 Likewise.
20517
20518 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20519 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20520 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20521 file.
20522 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20523 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20524 Likewise.
20525 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20526 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20527 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20528
20529 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20530 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20531 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20532 file.
20533 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20534 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20535 Likewise.
20536 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20537 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20538 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20539
20540 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20541 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20542 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20543 file.
20544 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20545 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20546 Likewise.
20547 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20548 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20549 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20550
20551 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20552 (sysdep_calls): New rule.
20553 (sysdep_routines): Use sysdep_calls as base.
20554 (libm-sysdep_routines): Add generic rule for symbols shared with
20555 libc. Add s_copysign-generic and s_copysign-generic objects.
20556 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20557 New file.
20558 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20559 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20560 Likewise.
20561 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20562 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20563 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20564
20565 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20566
20567 [BZ #22519]
20568 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20569 the list of locales to be built for testing.
20570 * localedata/is_IS.UTF-8.in: New file.
20571 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20572 on iso14651_t1.
20573
20574 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20575
20576 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20577 <libm-alias-float.h>.
20578 (fabsf): Define using libm_alias_float.
20579
20580 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20581
20582 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20583
20584 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20585
20586 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20587 <libm-alias-float.h>.
20588 (fabsf): Define using libm_alias_float.
20589 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20590 <libm-alias-float.h>.
20591 (lrintf): Define using libm_alias_float.
20592 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20593 <libm-alias-float.h>.
20594 (rintf): Define using libm_alias_float.
20595
20596 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20597 <libm-alias-double.h>.
20598 (fabs): Define using libm_alias_double.
20599 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20600 <libm-alias-double.h>.
20601 (lrint): Define using libm_alias_double.
20602 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20603 <libm-alias-double.h>.
20604 (rint): Define using libm_alias_double.
20605
20606 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20607 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20608 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20609 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20610 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20611 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20612 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20613 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20614 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20615 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20616 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20617 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20618 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20619 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20620 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20621 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20622 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20623 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20624 s_atan_template.c.
20625 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20626 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20627 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20628 s_ceil_template.c.
20629 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20630 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20631 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20632 s_cos_template.c.
20633 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20634 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20635 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20636 s_expm1_template.c.
20637 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20638 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20639 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20640 s_fabs_template.c.
20641 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20642 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20643 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20644 s_floor_template.c.
20645 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20646 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20647 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20648 s_frexp_template.c.
20649 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20650 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20651 s_lrint_template.c.
20652 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20653 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20654 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20655 s_modf_template.c.
20656 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20657 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20658 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20659 s_nearbyint_template.c.
20660 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20661 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20662 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20663 s_remquo_template.c.
20664 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20665 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20666 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20667 s_rint_template.c.
20668 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20669 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20670 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20671 s_sin_template.c.
20672 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20673 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20674 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20675 s_sincos_template.c.
20676 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20677 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20678 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20679 s_tan_template.c.
20680 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20681 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20682 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20683 s_tanh_template.c.
20684 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20685 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20686 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20687 s_trunc_template.c.
20688 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20689 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20690 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20691 s_atan.c instead of including s_atan.c.
20692 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20693 s_atanf.c instead of including s_atanf.c.
20694 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20695 s_atanl.c instead of including s_atanl.c.
20696 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20697 instead of s_atan.c.
20698 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20699 instead of s_atanf.c.
20700 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20701 instead of s_atanl.c.
20702
20703 * scripts/update-copyrights: Do not handle intl/plural.c
20704 specially.
20705
20706 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20707
20708 [BZ #22432]
20709 * configure.ac (BISON): Require to be present.
20710 * configure: Regenerated.
20711 * intl/Makefile (generated): Add plural.c.
20712 [$(BISON) != no]: Make code unconditional.
20713 (plural.c): Change rule to $(objpfx)plural.c.
20714 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20715 * intl/plural.c: Remove.
20716 * manual/install.texi (Tools for Compilation): Document bison as
20717 required.
20718 * INSTALL: Regenerated.
20719
20720 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20721
20722 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20723 <libm-alias-double.h>.
20724 (llrint): Define using libm_alias_double.
20725 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20726 <libm-alias-float.h>.
20727 (llrintf): Define using libm_alias_float.
20728 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20729 <libm-alias-ldouble.h>.
20730 (llrintl): Define using libm_alias_ldouble.
20731
20732 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20733 declare_mgen_alias instead of weak_alias.
20734 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20735 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20736 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20737
20738 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20739
20740 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20741 Add add_n-generic.
20742 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20743 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20744 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20745
20746 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20747 Add submul_1-generic.
20748 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20749 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20750 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20751
20752 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20753 Add addmul_1-generic.
20754 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20755 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20756 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20757
20758 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20759 Add sub_n-generic.
20760 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20761 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20762 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20763
20764 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20765 Add mul_1-generic.
20766 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20767 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20768 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20769
20770 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20771
20772 According to CLDR, collation rules for Serbian and Bosnian
20773 should be the same as for Croatian.
20774
20775 [BZ #22534]
20776 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20777 and to the list of locales to be built for testing.
20778 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20779 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20780 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20781 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20782
20783 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20784
20785 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20786 to make test case pass.
20787 * localedata/hr_HR.UTF-8.in: Add more test strings.
20788
20789 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20790
20791 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20792
20793 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20794
20795 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20796 the list of locales to built for testing.
20797 * localedata/hr_HR.UTF-8.in: New file.
20798
20799 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20800
20801 [BZ #10580]
20802 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20803 iso14651_t1.
20804 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20805 CLDR (except use ligatures for the digraphs, CLDR does not use
20806 the ligatures), add first_workday, some fixes in the date and time
20807 formats.
20808 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20809 for Đ and đ.
20810 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20811 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20812 Add int_p_cs_precedes and int_n_cs_precedes.
20813 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20814 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20815 LC_MONETARY now).
20816 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20817 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20818 name_miss.
20819 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20820 and lang_lib. Change postal_fmt.
20821
20822 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20823
20824 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20825 <setjmp.h>.
20826 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20827 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20828 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20829 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20830 * sysdeps/generic/setjmpP.h: New file.
20831 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20832 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20833 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20834 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20835 Add jmp_buf-ssp.sym.
20836 (tests): Add tst-saved_mask-1.
20837
20838 2017-11-30 Arjun Shankar <arjun@redhat.com>
20839
20840 [BZ #22375]
20841 CVE-2017-17426
20842 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20843 instead of request2size.
20844
20845 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20846
20847 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20848 (__lllrint): Remove alias.
20849 (lllrint): Likewise.
20850 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20851 (__lllrintf): Likewise.
20852 (lllrintf): Likewise.
20853
20854 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20855 <libm-alias-float.h>.
20856 (copysignf): Define using libm_alias_float.
20857 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20858 <libm-alias-float.h>.
20859 (fabsf): Define using libm_alias_float.
20860 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20861 Include <libm-alias-float.h>.
20862 (copysignf): Define using libm_alias_float.
20863 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20864 <libm-alias-float.h>.
20865 (fabsf): Define using libm_alias_float.
20866 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20867 <libm-alias-float.h>.
20868 (fdimf): Define using libm_alias_float.
20869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20870 <libm-alias-float.h>.
20871 (fmaf): Define using libm_alias_float.
20872 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20873 <libm-alias-float.h>.
20874 (llrintf): Define using libm_alias_float.
20875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20876 Include <libm-alias-float.h>.
20877 (nearbyintf): Define using libm_alias_float.
20878 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20879 <libm-alias-float.h>.
20880 (rintf): Define using libm_alias_float.
20881 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20882 <libm-alias-float.h>.
20883 (llrintf): Define using libm_alias_float.
20884 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20885 <libm-alias-float.h>.
20886 (lrintf): Define using libm_alias_float.
20887 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20888 <libm-alias-float.h>.
20889 (nearbyintf): Define using libm_alias_float.
20890 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20891 <libm-alias-float.h>.
20892 (rintf): Define using libm_alias_float.
20893 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20894 <libm-alias-float.h>.
20895 (ceilf): Define using libm_alias_float.
20896 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20897 <libm-alias-float.h>.
20898 (floorf): Define using libm_alias_float.
20899 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20900 <libm-alias-float.h>.
20901 (fmaf): Define using libm_alias_float.
20902 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20903 <libm-alias-float.h>.
20904 (lrintf): Define using libm_alias_float.
20905 (llrintf): Likewise.
20906 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20907 <libm-alias-float.h>.
20908 (nearbyintf): Define using libm_alias_float.
20909 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20910 <libm-alias-float.h>.
20911 (rintf): Define using libm_alias_float.
20912 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20913 <libm-alias-float.h>.
20914 (truncf): Define using libm_alias_float.
20915 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20916 <libm-alias-float.h>.
20917 (copysignf): Define using libm_alias_float.
20918 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20919 <libm-alias-float.h>.
20920 (fabsf): Define using libm_alias_float.
20921 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20922 <libm-alias-float.h>.
20923 (lrintf): Define using libm_alias_float.
20924 (llrintf): Likewise.
20925 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20926 <libm-alias-float.h>.
20927 (nearbyintf): Define using libm_alias_float.
20928 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20929 <libm-alias-float.h>.
20930 (rintf): Define using libm_alias_float.
20931
20932 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20933
20934 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20935 <libm-alias-double.h>.
20936 (copysign): Define using libm_alias_double.
20937 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20938 <libm-alias-double.h>.
20939 (fabs): Define using libm_alias_double.
20940 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20941 Include <libm-alias-double.h>.
20942 (copysign): Define using libm_alias_double.
20943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20944 <libm-alias-double.h>.
20945 (fabs): Define using libm_alias_double.
20946 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20947 <libm-alias-double.h>.
20948 (fdim): Define using libm_alias_double.
20949 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20950 <libm-alias-double.h>.
20951 (fma): Define using libm_alias_double.
20952 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20953 <libm-alias-double.h>.
20954 (llrint): Define using libm_alias_double.
20955 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20956 Include <libm-alias-double.h>.
20957 (nearbyint): Define using libm_alias_double.
20958 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20959 <libm-alias-double.h>.
20960 (rint): Define using libm_alias_double.
20961 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20962 <libm-alias-double.h>.
20963 (fabs): Define using libm_alias_double.
20964 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20965 <libm-alias-double.h>.
20966 (llrint): Define using libm_alias_double.
20967 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20968 <libm-alias-double.h>.
20969 (nearbyint): Define using libm_alias_double.
20970 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20971 <libm-alias-double.h>.
20972 (rint): Define using libm_alias_double.
20973 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20974 <libm-alias-double.h>.
20975 (ceil): Define using libm_alias_double.
20976 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20977 <libm-alias-double.h>.
20978 (floor): Define using libm_alias_double.
20979 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20980 <libm-alias-double.h>.
20981 (fma): Define using libm_alias_double.
20982 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20983 <libm-alias-double.h>.
20984 (lrint): Define using libm_alias_double.
20985 (llrint): Likewise.
20986 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20987 <libm-alias-double.h>.
20988 (nearbyint): Define using libm_alias_double.
20989 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20990 <libm-alias-double.h>.
20991 (rint): Define using libm_alias_double.
20992 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20993 <libm-alias-double.h>.
20994 (trunc): Define using libm_alias_double.
20995 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20996 <libm-alias-double.h>.
20997 (copysign): Define using libm_alias_double.
20998 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20999 <libm-alias-double.h>.
21000 (fabs): Define using libm_alias_double.
21001 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
21002 <libm-alias-double.h>.
21003 (lrint): Define using libm_alias_double.
21004 (llrint): Likewise.
21005 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
21006 <libm-alias-double.h>.
21007 (nearbyint): Define using libm_alias_double.
21008 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
21009 <libm-alias-double.h>.
21010 (rint): Define using libm_alias_double.
21011
21012 [BZ #22229]
21013 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
21014 <math_ldbl_opt.h>.
21015 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
21016
21017 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
21018 SPARC --disable-multi-arch glibc variants.
21019
21020 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
21021 <libm-alias-float.h>.
21022 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21023 if [SHARED].
21024 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
21025 <libm-alias-float.h>.
21026 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21027 if [SHARED].
21028 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
21029 <libm-alias-float.h>.
21030 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21031 if [SHARED].
21032 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
21033 <libm-alias-float.h>.
21034 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21035 if [SHARED].
21036 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
21037 <libm-alias-float.h>.
21038 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21039 if [SHARED].
21040 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
21041 <libm-alias-float.h>.
21042 (ceilf): Define using libm_alias_float.
21043 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
21044 <libm-alias-float.h>.
21045 (floorf): Define using libm_alias_float.
21046 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
21047 <libm-alias-float.h>.
21048 (fmaf): Define using libm_alias_float.
21049 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
21050 <libm-alias-float.h>.
21051 (nearbyintf): Define using libm_alias_float.
21052 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
21053 <libm-alias-float.h>.
21054 (rintf): Define using libm_alias_float.
21055 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
21056 <libm-alias-float.h>.
21057 (truncf): Define using libm_alias_float.
21058 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21059 (copysignf): Define using libm_alias_float.
21060 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
21061 (cosf): Define using libm_alias_float.
21062 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21063 (fabsf): Define using libm_alias_float.
21064 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21065 (fmaxf): Define using libm_alias_float.
21066 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
21067 (fminf): Define using libm_alias_float.
21068 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21069 (llrintf): Define using libm_alias_float.
21070 [!__ILP32__] (lrintf): Likewise.
21071 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21072 (sincosf): Define using libm_alias_float.
21073 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21074 (sinf): Define using libm_alias_float.
21075 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21076 (lrintf): Define using libm_alias_float.
21077
21078 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21079 <libm-alias-double.h>.
21080 (atan): Define using libm_alias_double.
21081 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21082 <libm-alias-double.h>.
21083 (ceil): Define using libm_alias_double.
21084 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21085 <libm-alias-double.h>.
21086 (floor): Define using libm_alias_double.
21087 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21088 <libm-alias-double.h>.
21089 (fma): Define using libm_alias_double.
21090 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21091 <libm-alias-double.h>.
21092 (nearbyint): Define using libm_alias_double.
21093 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21094 <libm-alias-double.h>.
21095 (rint): Define using libm_alias_double.
21096 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21097 <libm-alias-double.h>.
21098 (sin): Define using libm_alias_double.
21099 (cos): Likewise.
21100 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21101 <libm-alias-double.h>.
21102 (tan): Define using libm_alias_double.
21103 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21104 <libm-alias-double.h>.
21105 (trunc): Define using libm_alias_double.
21106 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21107 (copysign): Define using libm_alias_double.
21108 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21109 (fabs): Define using libm_alias_double.
21110 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21111 (fmax): Define using libm_alias_double.
21112 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21113 (fmin): Define using libm_alias_double.
21114 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21115 (llrint): Define using libm_alias_double.
21116 [!__ILP32__] (lrint): Likewise.
21117 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21118 (lrint): Define using libm_alias_double.
21119
21120 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21121
21122 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21123 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21124 objects.
21125 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21126 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21127 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21128 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21129 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21130 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21131
21132 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21133 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21134 objects.
21135 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21136 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21137 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21138 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21139 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21140 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21141
21142 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21143 (libm-sysdep_routines): Add s_nearbyint-generic and
21144 s_nearbyintf-generic objects.
21145 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21146 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21147 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21148 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21149 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21150 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21151
21152 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21153 Add s_finitef-generic and s_finite-generic objects.
21154 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21155 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21156 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21157 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21158 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21159 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21160
21161 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21162 Add s_isinff-generic and s_isinf-generic objects.
21163 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21164 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21165 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21166 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21167 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21168 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21169
21170 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21171 Add s_isnanf-generic and s_isnan-generic objects.
21172 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21173 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21174 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21175 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21176 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21177 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21178
21179 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21180 macro.
21181 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21182 rule.
21183 (sysdep_routines): Use sysdep_calls as base.
21184 (libm-sysdep_routines): Add generic rule for symbols shared with
21185 libc. Add s_signbit-generic and s_signbitf-generic objects.
21186 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21187 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21188 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21189 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21190 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21191 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21192
21193 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21194
21195 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21196 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21197 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21198 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21199 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21200 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21201 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21202 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21203 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21204 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21205 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21206 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21207 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21208 libm_alias_float_r.
21209 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21210 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21211 (logf): Likewise.
21212 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21213 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21214 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21215 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21216 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21217 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21218 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21219 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21220 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21221 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21222 libm_alias_float.
21223 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21224 (cosf): Likewise.
21225 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21226 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21227 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21228 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21229 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21230 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21231 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21232 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21233 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21234 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21235 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21236 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21237 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21238 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21239 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21240 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21241 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21242 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21243 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21244 libm_alias_float.
21245 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21246 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21247 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21248 * sysdeps/ia64/fpu/w_lgammaf_main.c
21249 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21250 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21251
21252 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21253 Alexandre Oliva <aoliva@redhat.com>
21254
21255 [BZ #17750]
21256 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21257 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21258 accents sorting.
21259 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21260 sorting.
21261 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21262 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21263 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21264 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21265 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21266 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21267 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21268 instead of “ifdef DIACRIT_BACKWARD”.
21269
21270 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21271
21272 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21273 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21274 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21275 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21276 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21277 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21278 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21279 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21280 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21281 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21282 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21283 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21284 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21285 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21286 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21287 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21288 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21289 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21290 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21291 ($(have-as-vis3) == yes): Remove conditional.
21292 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21293 Likewise.
21294 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21295 file.
21296 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21297 file.
21298 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21299 file.
21300 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21301 file.
21302 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21303 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21304 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21305 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21306 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21307 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21308 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21309 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21310
21311 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21312
21313 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21314 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21315 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21316 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21317 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21318 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21319 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21320 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21321 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21322 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21323 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21324 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21325 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21326 libm_alias_double_r.
21327 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21328 (log): Likewise.
21329 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21330 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21331 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21332 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21333 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21334 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21335 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21336 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21337 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21338 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21339 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21340 libm_alias_double.
21341 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21342 (cos): Likewise.
21343 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21344 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21345 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21346 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21347 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21348 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21349 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21350 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21351 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21352 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21353 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21354 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21355 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21356 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21357 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21358 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21359 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21360 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21361 libm_alias_double.
21362 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21363 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21364 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21365 * sysdeps/ia64/fpu/w_lgamma_main.c
21366 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21367 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21368
21369 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21370
21371 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21372 address of $global$ into %dp register earlier. Use pc-relative
21373 instruction sequence for PIC case.
21374
21375 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21376
21377 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21378 (asinhf): Define using libm_alias_float.
21379 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21380 (atanf): Define using libm_alias_float.
21381 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21382 (cbrtf): Define using libm_alias_float.
21383 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21384 (ceilf): Define using libm_alias_float.
21385 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21386 (copysignf): Define using libm_alias_float.
21387 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21388 (expm1f): Define using libm_alias_float.
21389 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21390 (fabsf): Define using libm_alias_float.
21391 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21392 (floorf): Define using libm_alias_float.
21393 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21394 (fmaxf): Define using libm_alias_float.
21395 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21396 (fminf): Define using libm_alias_float.
21397 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21398 (frexpf): Define using libm_alias_float.
21399 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21400 (llrintf): Define using libm_alias_float.
21401 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21402 (logbf): Define using libm_alias_float.
21403 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21404 (lrintf): Define using libm_alias_float.
21405 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21406 (nearbyintf): Define using libm_alias_float.
21407 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21408 (remquof): Define using libm_alias_float.
21409 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21410 (rintf): Define using libm_alias_float.
21411 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21412 (truncf): Define using libm_alias_float.
21413 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21414 <libm-alias-float.h>.
21415 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21416 if [SHARED].
21417 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21418 <libm-alias-float.h>.
21419 (expf): Define using libm_alias_float, or libm_alias_float_other
21420 if [SHARED].
21421 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21422 <libm-alias-float.h>.
21423 (log2f): Define using libm_alias_float, or libm_alias_float_other
21424 if [SHARED].
21425 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21426 <libm-alias-float.h>.
21427 (logf): Define using libm_alias_float, or libm_alias_float_other
21428 if [SHARED].
21429 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21430 <libm-alias-float.h>.
21431 (powf): Define using libm_alias_float, or libm_alias_float_other
21432 if [SHARED].
21433 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21434 <libm-alias-float.h>.
21435 (cosf): Define using libm_alias_float.
21436 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21437 <libm-alias-float.h>.
21438 (sincosf): Define using libm_alias_float.
21439 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21440 <libm-alias-float.h>.
21441 (sinf): Define using libm_alias_float.
21442 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21443 (fmaxf): Define using libm_alias_float.
21444 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21445 (fminf): Define using libm_alias_float.
21446 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21447 <libm-alias-float.h>.
21448 (fmaf): Define using libm_alias_float.
21449
21450 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21451 (asinh): Define using libm_alias_double.
21452 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21453 (atan): Define using libm_alias_double.
21454 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21455 (cbrt): Define using libm_alias_double.
21456 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21457 (ceil): Define using libm_alias_double.
21458 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21459 (copysign): Define using libm_alias_double.
21460 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21461 (expm1): Define using libm_alias_double.
21462 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21463 (fabs): Define using libm_alias_double.
21464 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21465 (fdim): Define using libm_alias_double.
21466 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21467 (floor): Define using libm_alias_double.
21468 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21469 (fmax): Define using libm_alias_double.
21470 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21471 (fmin): Define using libm_alias_double.
21472 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21473 (frexp): Define using libm_alias_double.
21474 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21475 (llrint): Define using libm_alias_double.
21476 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21477 (logb): Define using libm_alias_double.
21478 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21479 (lrint): Define using libm_alias_double.
21480 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21481 (nearbyint): Define using libm_alias_double.
21482 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21483 (remquo): Define using libm_alias_double.
21484 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21485 (rint): Define using libm_alias_double.
21486 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21487 (trunc): Define using libm_alias_double.
21488 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21489 (fmax): Define using libm_alias_double.
21490 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21491 (fmin): Define using libm_alias_double.
21492 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21493 (fma): Define using libm_alias_double.
21494
21495 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21496
21497 [BZ #22370]
21498 * elf/dl-hwcaps.c (ROUND): Removed.
21499 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21500 and ELF_NOTE_NEXT_OFFSET.
21501 * elf/dl-load.c (ROUND): Removed.
21502 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21503 * elf/readelflib.c (ROUND): Removed.
21504 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21505 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21506 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21507 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21508
21509 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21510
21511 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21512 [!__fmaf] (fmaf): Define using libm_alias_float.
21513
21514 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21515 [!__fma] (fma): Define using libm_alias_double.
21516 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21517
21518 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21519
21520 [BZ #22336]
21521 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21522 and implement the collation rules for cs from CLDR on top of that.
21523 * Makefile: Add cs_CZ.UTF-8 to test-input.
21524 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21525
21526 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21527
21528 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21529
21530 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21531 Icarus Sparry <icarus.w.sparry@intel.com>
21532
21533 * benchtests/Makefile:Add BENCHSET to allow subsets of
21534 benchmarks to be run.
21535 * benchtests/README: Add documentation for: Running subsets of
21536 benchmarks.
21537
21538 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21539
21540 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21541 range of tests names.
21542
21543 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21544 result from property and remove "max", min" and "mean" from
21545 required properties based on benchtests/bench-skeleton.c.
21546
21547 2017-11-28 Florian Weimer <fweimer@redhat.com>
21548
21549 [BZ #20826]
21550 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21551 due to Internet requirement.
21552 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21553 tst-getaddrinfo5.
21554 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21555
21556 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21557
21558 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21559 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21560 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21561 (sysdep_routines): Add memset-ultra1.
21562 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21563 file.
21564 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21565 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21566 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21567 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21568 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21569 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21570 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21571 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21572
21573 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21574 file.
21575 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21576 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21577 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21578 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21579 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21580 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21581 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21582 macro.
21583 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21584 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21585 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21586 (sysdep_routines): Add memcpy-ultra1.
21587 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21588 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21589
21590 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21591
21592 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21593 (cfloat_versions): Take function argument without trailing 'f'.
21594 Call libm_alias_float_other.
21595 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21596 * sysdeps/alpha/fpu/cargf.c: Likewise.
21597 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21598 * sysdeps/alpha/fpu/conjf.c: Likewise.
21599 * sysdeps/alpha/fpu/crealf.c: Likewise.
21600 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21601 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21602 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21603 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21604 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21605 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21606 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21607 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21608 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21609 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21610 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21611 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21612 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21613 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21614 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21615 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21616 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21617 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21618 (clog10f): Use libm_alias_float_other.
21619 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21620 (ceilf): Define using libm_alias_float.
21621 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21622 (copysignf): Define using libm_alias_float.
21623 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21624 (fabsf): Define using libm_alias_float.
21625 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21626 (floorf): Define using libm_alias_float.
21627 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21628 (fmaxf): Define using libm_alias_float.
21629 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21630 (fminf): Define using libm_alias_float.
21631 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21632 (lrintf): Define using libm_alias_float.
21633 (llrintf): Likewise.
21634 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21635 (lroundf): Define using libm_alias_float.
21636 (llroundf): Likewise.
21637 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21638 (rintf): Define using libm_alias_float.
21639 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21640 (truncf): Define using libm_alias_float.
21641
21642 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21643 (ceilf): Define using libm_alias_float.
21644 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21645 (floorf): Define using libm_alias_float.
21646 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21647 (fmaf): Define using libm_alias_float.
21648 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21649 (fmaxf): Define using libm_alias_float.
21650 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21651 (fminf): Define using libm_alias_float.
21652 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21653 (llrintf): Define using libm_alias_float.
21654 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21655 (llroundf): Define using libm_alias_float.
21656 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21657 (lrintf): Define using libm_alias_float.
21658 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21659 (lroundf): Define using libm_alias_float.
21660 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21661 <libm-alias-float.h>.
21662 (nearbyintf): Define using libm_alias_float.
21663 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21664 (rintf): Define using libm_alias_float.
21665 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21666 (roundf): Define using libm_alias_float.
21667 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21668 (truncf): Define using libm_alias_float.
21669
21670 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21671 (ceil): Define using libm_alias_double.
21672 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21673 (copysign): Define using libm_alias_double.
21674 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21675 (fabs): Define using libm_alias_double.
21676 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21677 (floor): Define using libm_alias_double.
21678 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21679 (fmax): Define using libm_alias_double.
21680 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21681 (fmin): Define using libm_alias_double.
21682 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21683 (lrint): Define using libm_alias_double.
21684 (llrint): Likewise.
21685 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21686 (lround): Define using libm_alias_double.
21687 (llround): Likewise.
21688 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21689 (rint): Define using libm_alias_double.
21690 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21691 (trunc): Define using libm_alias_double.
21692
21693 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21694 (libm_alias_double_r): Add semicolon after weak_alias call.
21695
21696 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21697
21698 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21699 (ceil): Define using libm_alias_double.
21700 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21701 (floor): Define using libm_alias_double.
21702 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21703 (fma): Define using libm_alias_double.
21704 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21705 (fmax): Define using libm_alias_double.
21706 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21707 (fmin): Define using libm_alias_double.
21708 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21709 (llrint): Define using libm_alias_double.
21710 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21711 (llround): Define using libm_alias_double.
21712 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21713 (lrint): Define using libm_alias_double.
21714 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21715 (lround): Define using libm_alias_double.
21716 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21717 (nearbyint): Define using libm_alias_double.
21718 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21719 (rint): Define using libm_alias_double.
21720 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21721 (round): Define using libm_alias_double.
21722 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21723 (trunc): Define using libm_alias_double.
21724
21725 2017-11-27 Florian Weimer <fweimer@redhat.com>
21726
21727 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21728 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21729 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21730 (tests): Add tst-mlock2.
21731 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21732 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21733 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21734 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21735 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21736 for mlock. Document mlock2.
21737
21738 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21739
21740 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21741 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21742 Likewise.
21743 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21744 Likewise.
21745 * sysdeps/x86/Makeconfig: New file.
21746 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21747 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21748 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21749 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21750 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21751 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21752 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21753 Likewise.
21754 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21755 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21756 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21757 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21758 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21759 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21760 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21761 * manual/math.texi (Mathematics): Document support for _Float64x.
21762 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21763 * stdlib/Versions (GLIBC_2.27): Likewise.
21764 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21765 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21766 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21767 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21768 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21769 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21770 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21771 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21772 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21773 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21774 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21775 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21776 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21777 Likewise.
21778 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21779 Likewise.
21780 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21781 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21782 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21783 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21784 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21785 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21786 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21787 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21788 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21789 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21790 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21791 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21792 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21793 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21794
21795 2017-11-27 Andreas Schwab <schwab@suse.de>
21796
21797 * elf/Makefile (dl-routines): Add dl-sort-maps.
21798 * elf/dl-sort-maps.c: New file.
21799 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21800 (_dl_sort_maps): Declare.
21801 * elf/dl-fini.c (_dl_sort_fini): Remove.
21802 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21803 * elf/dl-close.c (_dl_close_worker): Likewise.
21804 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21805 open-coding it.
21806 * elf/dl-open.c (dl_open_worker): Likewise.
21807
21808 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21809
21810 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21811 using libm_alias_float128.
21812 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21813 Likewise.
21814 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21815 Likewise.
21816 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21817 (setpayloadsigf128): Likewise.
21818 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21819 Likewise.
21820 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21821 Likewise.
21822
21823 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21824 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21825 -mfloat128 to CFLAGS.
21826 ($(foreach
21827 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21828 Likewise.
21829 (CFLAGS-libm-test-support-float64x.c): New variable.
21830 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21831 $(f128-loader-link) to gnulib-tests.
21832
21833 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21834 (libm_alias_float128_other_r): If
21835 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21836 alias.
21837 (libm_alias_float128_r): Add semicolon after weak_alias call.
21838 * sysdeps/generic/libm-alias-ldouble.h
21839 (libm_alias_ldouble_other_r_f128): New macro.
21840 (libm_alias_ldouble_other_r_f64x): Likewise.
21841 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21842 and libm_alias_ldouble_other_r_f64x.
21843 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21844 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21845 (libm_alias_ldouble_other_r_f128): New macro.
21846 (libm_alias_ldouble_other_r_f64x): Likewise.
21847 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21848 and libm_alias_ldouble_other_r_f64x.
21849
21850 * stdlib/strfroml.c: Always include <stdlib.h>.
21851 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21852 undefine as macro and define as weak alias.
21853 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21854 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21855 <stdlib.h>.
21856 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21857 Define and later undefine as macro and define as weak alias.
21858
21859 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21860 Define and later undefine as macro. Define as weak alias if
21861 [!USE_WIDE_CHAR].
21862 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21863 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21864 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21865 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21866 Define and later undefine as macro. Define as weak alias if
21867 [!USE_WIDE_CHAR].
21868 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21869 Define and later undefine as macro. Define as weak alias if
21870 [USE_WIDE_CHAR].
21871 * sysdeps/ieee754/float128/strtof128_l.c
21872 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21873 Define and later undefine as macro. Define as weak alias if
21874 [!USE_WIDE_CHAR].
21875 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21876 Define and later undefine as macro. Define as weak alias if
21877 [USE_WIDE_CHAR].
21878 * sysdeps/ieee754/ldbl-128/strtold_l.c
21879 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21880 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21881 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21882 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21883 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21884 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21885 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21886 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21887 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21888 * sysdeps/ieee754/ldbl-96/strtold_l.c
21889 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21890 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21891 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21892 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21893
21894 * math/test-float64x.h: New file.
21895 * math/Makefile (type-float64x-yes): New variable.
21896 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21897
21898 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21899 function-like macro.
21900 (min_of_type_): Likewise.
21901 (min_of_type_l): Likewise.
21902 (min_of_type_f128): Likewise.
21903 (min_of_type): Pass () as last argument of __MATH_TG.
21904
21905 * stdlib/tst-strtod-round-skeleton.c
21906 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21907 headers.
21908
21909 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21910 for combinations of long double with _Float64 and _Float64x.
21911
21912 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21913 (__DECL_SIMD_cosf32): Likewise.
21914 (__DECL_SIMD_cosf64): Likewise.
21915 (__DECL_SIMD_cosf32x): Likewise.
21916 (__DECL_SIMD_cosf64x): Likewise.
21917 (__DECL_SIMD_cosf128x): Likewise.
21918 (__DECL_SIMD_sinf16): Likewise.
21919 (__DECL_SIMD_sinf32): Likewise.
21920 (__DECL_SIMD_sinf64): Likewise.
21921 (__DECL_SIMD_sinf32x): Likewise.
21922 (__DECL_SIMD_sinf64x): Likewise.
21923 (__DECL_SIMD_sinf128x): Likewise.
21924 (__DECL_SIMD_sincosf16): Likewise.
21925 (__DECL_SIMD_sincosf32): Likewise.
21926 (__DECL_SIMD_sincosf64): Likewise.
21927 (__DECL_SIMD_sincosf32x): Likewise.
21928 (__DECL_SIMD_sincosf64x): Likewise.
21929 (__DECL_SIMD_sincosf128x): Likewise.
21930 (__DECL_SIMD_logf16): Likewise.
21931 (__DECL_SIMD_logf32): Likewise.
21932 (__DECL_SIMD_logf64): Likewise.
21933 (__DECL_SIMD_logf32x): Likewise.
21934 (__DECL_SIMD_logf64x): Likewise.
21935 (__DECL_SIMD_logf128x): Likewise.
21936 (__DECL_SIMD_expf16): Likewise.
21937 (__DECL_SIMD_expf32): Likewise.
21938 (__DECL_SIMD_expf64): Likewise.
21939 (__DECL_SIMD_expf32x): Likewise.
21940 (__DECL_SIMD_expf64x): Likewise.
21941 (__DECL_SIMD_expf128x): Likewise.
21942 (__DECL_SIMD_powf16): Likewise.
21943 (__DECL_SIMD_powf32): Likewise.
21944 (__DECL_SIMD_powf64): Likewise.
21945 (__DECL_SIMD_powf32x): Likewise.
21946 (__DECL_SIMD_powf64x): Likewise.
21947 (__DECL_SIMD_powf128x): Likewise.
21948
21949 * stdlib/Versions (libc): Move entries for wcstof128 and
21950 wcstof128_l to ....
21951 * wcsmbs/Versions (libc): ... here.
21952 Include <float128-abi.h>.
21953
21954 2017-11-24 Florian Weimer <fweimer@redhat.com>
21955
21956 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21957 bits/mman-shared.h.
21958 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21959 <bits/mman-shared.h>.
21960 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21961 to ...
21962 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21963 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21964 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21965 <bits/mman-shared.h>.
21966
21967 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21968
21969 [BZ #22457]
21970 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21971 posix_memalign/free.
21972 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21973
21974 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21975
21976 [BZ #22469]
21977 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21978 and implement the collation rules for pl from CLDR on top of that.
21979 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21980 of locales to be built for testing.
21981 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21982
21983 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21984
21985 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21986 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21987 libm_alias_ldouble_other.
21988 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21989 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21990 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21991 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21992 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21993 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21994 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21995 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21996 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21997 libm_alias_ldouble_r.
21998 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21999 libm_alias_ldouble_other.
22000 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
22001 (log10l): Likewise.
22002 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
22003 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
22004 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
22005 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
22006 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
22007 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
22008 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
22009 (atan2l): Likewise.
22010 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
22011 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
22012 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
22013 libm_alias_ldouble.
22014 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
22015 (cosl): Likewise.
22016 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
22017 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
22018 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
22019 (expl): Likewise.
22020 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
22021 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
22022 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
22023 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
22024 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
22025 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
22026 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
22027 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
22028 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
22029 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
22030 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
22031 libm_alias_ldouble.
22032 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
22033 libm_alias_ldouble_other.
22034 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
22035 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
22036 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
22037 libm_alias_ldouble.
22038 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
22039 libm_alias_ldouble_other.
22040 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
22041 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
22042 * sysdeps/ia64/fpu/w_lgammal_main.c
22043 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
22044 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
22045
22046 2017-11-23 Florian Weimer <fweimer@redhat.com>
22047
22048 * malloc/malloc.c (tcache_thread_shutdown): Rename from
22049 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
22050 alike. Remove freeres marker.
22051 * malloc/arena.c (arena_thread_freeres): Call
22052 tcache_thread_shutdown.
22053
22054 2017-11-23 Florian Weimer <fweimer@redhat.com>
22055
22056 [BZ #22459]
22057 Export nscd hash function as __nss_hash.
22058 * include/nss.h (__nss_hash): Declare.
22059 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
22060 symbol.
22061 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
22062 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
22063 of __nscd_hash.
22064 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
22065 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
22066 * nss/Makefiles (routines): Add nss_hash.
22067 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
22068 * nss/nss_hash.c: Rename from nis/nis_hash.c.
22069 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22070 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22071
22072 2017-11-23 Florian Weimer <fweimer@redhat.com>
22073
22074 [BZ #22478]
22075 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22076 Return error code, not -1.
22077 * signal/tst-sigwait-eintr.c: New file.
22078 * signal/Makefile (tests): Add tst-sigwait-eintr.
22079
22080 2017-11-23 Florian Weimer <fweimer@redhat.com>
22081
22082 Linux: Add memfd_create system call wrapper
22083 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22084 tst-memfd_create.
22085 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22086 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22087 [__USE_GNU] (memfd_create): Declare.
22088 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22089 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22090 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22091 * sysdeps/unix/sysv/linux/**.abilist: Update.
22092 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22093
22094 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22095
22096 * localedata/gen-locale.sh: Fix typo in variable name.
22097
22098 * resolv/res_debug.c (p_secstodate): Condition definition on
22099 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22100 directly as __p_secstodate, and as a compat symbol. Do not use
22101 libresolv_hidden_def.
22102 * resolv/resolv.h (p_secstodate): Remove macro and function
22103 declaration.
22104 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22105 using p_secstodate.
22106 * include/resolv.h (__p_secstodate): Do not use
22107 libresolv_hidden_proto.
22108 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22109 (tests-internal): ... here.
22110 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22111 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22112 and declare and use __p_secstodate and use compat_symbol_reference
22113 in that case.
22114 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22115 implementation returning 77.
22116
22117 [BZ #22463]
22118 * resolv/res_debug.c: Include <libc-diag.h>.
22119 (p_secstodate): Assert time_t at least as wide as u_long. On
22120 overflow, use integer seconds since the epoch as output, or use
22121 "<overflow>" as output and set errno to EOVERFLOW if integer
22122 seconds since the epoch would be 14 or more characters.
22123 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22124 for sprintf call.
22125 * resolv/tst-p_secstodate.c: New file.
22126 * resolv/Makefile (tests): Add tst-p_secstodate.
22127 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22128
22129 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22130 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22131 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22132
22133 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22134
22135 * posix/regcomp.c (init_word_char): Add comments.
22136
22137 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22138
22139 [BZ #22447]
22140 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22141 strlen to compute length of ut_user and set trailing NUL byte of
22142 result explicitly.
22143
22144 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22145
22146 [BZ #15537]
22147 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22148 using “copy "iso14651_t1"” and then implementing the
22149 collation rules for lv from CLDR on top of that.
22150 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22151 of locales to be built for testing.
22152 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22153 sorting.
22154
22155 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22156
22157 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22158 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22159 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22160 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22161 [__USE_MISC] (MADV_HWPOISON): New macro.
22162 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22163
22164 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22165
22166 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22167 -Wmissing-braces on GCC 4.9.
22168
22169 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22170
22171 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22172 * sysdeps/s390/s390-32/start.S (_start): Likewise
22173 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22174 (thread_start): Likewise.
22175 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22176 (thread_start): Likewise.
22177 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22178 (__makecontext_ret): Likewise.
22179 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22180 (__makecontext_ret): Likewise.
22181
22182 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22183
22184 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22185 __wcschrnul): Remove attribute_hidden.
22186
22187 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22188
22189 regex: don't assume uint64_t or uint32_t
22190 This avoids -Werror=overflow errors for 32-bit systems in
22191 the 64-bit case. Problem reported by Joseph Myers in:
22192 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22193 Also, when this code is used in Gnulib it ports to platforms
22194 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22195 them, and on some 32-bit compilers there is no uint64_t.
22196 Problem reported by Gianluigi Tiesi in:
22197 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22198 * posix/regcomp.c (init_word_char): Don't assume that the types
22199 uint64_t and uint32_t exist. Adapted from Gnulib patch
22200 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22201 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22202
22203 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22204
22205 * sysdeps/aarch64/memset-reg.h: New file.
22206 * sysdeps/aarch64/memset.S: Use it.
22207 (__memset): Rename to MEMSET macro.
22208 [ZVA_MACRO]: Use zva_macro.
22209 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22210 Add memset_generic and memset_falkor.
22211 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22212 (__libc_ifunc_impl_list): Add memset ifuncs.
22213 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22214 local variable zva_size.
22215 * sysdeps/aarch64/multiarch/memset.c: New file.
22216 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22217 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22218 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22219 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22220 (DCZID_DZP_MASK): New macro.
22221 (DCZID_BS_MASK): Likewise.
22222 (init_cpu_features): Read and set zva_size.
22223 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22224 (struct cpu_features): New member zva_size.
22225
22226 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22227 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22228 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22229
22230 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22231 backwards. Fix timing computation.
22232 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22233 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22234 on memset by N at a time. Fix timing computation.
22235
22236 2017-11-20 Florian Weimer <fweimer@redhat.com>
22237
22238 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22239 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22240
22241 2017-11-19 Florian Weimer <fweimer@redhat.com>
22242
22243 manual: Document mprotect
22244 * manual/memory.texi (Memory Protection): New section.
22245 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22246 documentation of PROT_* flags and reference the Memory Protection
22247 section instead.
22248
22249 2017-11-19 Florian Weimer <fweimer@redhat.com>
22250
22251 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22252 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22253 (Scatter-Gather): ... to here. Remove misleading comment.
22254
22255 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22256
22257 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22258 style.
22259
22260 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22261 when /proc/<pid>/setgroups does not exist.
22262
22263 2017-11-18 Florian Weimer <fweimer@redhat.com>
22264
22265 * sysdeps/unix/sysv/linux/tst-ttyname.c
22266 (become_root_in_mount_ns): Remove.
22267 (do_in_chroot_1): Call support_enter_mount_namespace.
22268 (do_in_chroot_2): Likewise.
22269 (do_test): Call support_become_root early.
22270
22271 2017-11-18 Florian Weimer <fweimer@redhat.com>
22272
22273 * support/namespace.h (support_enter_mount_namespace): Declare.
22274 * support/support_enter_mount_namespace.c: New file.
22275 * support/Makefile (libsupport-routines): Add
22276 support_enter_mount_namespace.
22277
22278 2017-11-18 Florian Weimer <fweimer@redhat.com>
22279
22280 * support/temp_file.c (support_create_temp_directory): Use
22281 test_dir and do not rely on the presence of the XXXXXX suffix.
22282 * support/temp_file.h (support_create_temp_directory): Update
22283 comment.
22284 * support/tst-xreadlink.c (do_test): Adjust.
22285 * support/support_chroot.c (support_chroot_create): Likewise.
22286
22287 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22288
22289 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22290 macro.
22291 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22292 htm-no-suspend.
22293
22294 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22295
22296 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22297 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22298 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22299 (ceill): Define using libm_alias_ldouble.
22300 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22301 <libm-alias-ldouble.h>.
22302 (copysignl): Define using libm_alias_ldouble.
22303 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22304 (fabsl): Define using libm_alias_ldouble.
22305 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22306 (floorl): Define using libm_alias_ldouble.
22307 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22308 (fmaxl): Define using libm_alias_ldouble.
22309 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22310 (fminl): Define using libm_alias_ldouble.
22311 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22312 (llrintl): Define using libm_alias_ldouble.
22313 (lrintl): Likewise.
22314 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22315 <libm-alias-ldouble.h>.
22316 (nearbyintl): Define using libm_alias_ldouble.
22317 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22318 (truncl): Define using libm_alias_ldouble.
22319 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22320 <libm-alias-ldouble.h>.
22321 (lrintl): Define using libm_alias_ldouble.
22322
22323 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22324 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22325 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22326 (asinhl): Define using libm_alias_ldouble.
22327 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22328 (atanl): Define using libm_alias_ldouble.
22329 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22330 (cbrtl): Define using libm_alias_ldouble.
22331 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22332 (ceill): Define using libm_alias_ldouble.
22333 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22334 (copysignl): Define using libm_alias_ldouble.
22335 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22336 (fabsl): Define using libm_alias_ldouble.
22337 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22338 (floorl): Define using libm_alias_ldouble.
22339 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22340 (fmaxl): Define using libm_alias_ldouble.
22341 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22342 (fminl): Define using libm_alias_ldouble.
22343 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22344 (frexpl): Define using libm_alias_ldouble.
22345 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22346 (llrintl): Define using libm_alias_ldouble.
22347 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22348 (logbl): Define using libm_alias_ldouble.
22349 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22350 (lrintl): Define using libm_alias_ldouble.
22351 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22352 (nearbyintl): Define using libm_alias_ldouble.
22353 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22354 (nextafterl): Define using libm_alias_ldouble.
22355 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22356 (remquol): Define using libm_alias_ldouble.
22357 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22358 (rintl): Define using libm_alias_ldouble.
22359 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22360 (truncl): Define using libm_alias_ldouble.
22361 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22362 (fmaxl): Define using libm_alias_ldouble.
22363 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22364 (fminl): Define using libm_alias_ldouble.
22365
22366 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22367 to C syntax instead of availability and properties of types.
22368 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22369 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22370 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22371 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22372 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22373 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22374
22375 2017-11-17 Florian Weimer <fweimer@redhat.com>
22376
22377 support_become_root: Enable file creation in namespaces.
22378 * support/support_become_root.c (setup_mapping): New function.
22379 (support_become_root): Call it.
22380
22381 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22382
22383 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22384 macro.
22385
22386 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22387
22388 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22389 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22390
22391 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22392
22393 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22394
22395 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22396 version to 4.14.
22397
22398 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22399
22400 * INSTALL: Fix botched up regeneration.
22401
22402 * NEWS: Update sourceare link to https.
22403 * configure.ac: Likewise.
22404 * crypt/md5test-giant.c: Likewise.
22405 * dlfcn/bug-atexit1.c: Likewise.
22406 * dlfcn/bug-atexit2.c: Likewise.
22407 * localedata/README: Likewise.
22408 * malloc/tst-mallocfork.c: Likewise.
22409 * manual/install.texi: Likewise.
22410 * nptl/tst-pthread-getattr.c: Likewise.
22411 * stdio-common/tst-fgets.c: Likewise.
22412 * stdio-common/tst-fwrite.c: Likewise.
22413 * sunrpc/Makefile: Likewise.
22414 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22415 * wcsmbs/tst-mbrtowc2.c: Likewise.
22416 * configure: Regenerate.
22417 * INSTALL: Regenerate.
22418
22419 2017-11-15 Martin Sebor <msebor@redhat.com>
22420
22421 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22422 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22423 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22424
22425 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22426
22427 [BZ #22145]
22428 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22429 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22430
22431 [BZ #22145]
22432 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22433 Defer is_pty check until end of the function.
22434 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22435
22436 [BZ #22145]
22437 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22438 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22439 (ttyname): Likewise.
22440 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22441 (__ttyname_r): Likewise.
22442
22443 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22444 int to bool.
22445
22446 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22447
22448 * manual/terminal.texi (Is It a Terminal):
22449 Mention ENODEV for ttyname and ttyname_r.
22450
22451 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22452
22453 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22454 constant and macro.
22455
22456 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22457 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22458 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22459 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22460 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22461 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22462
22463 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22464
22465 * signal/sigrelse.c (sigrelse): Optimize implementation.
22466
22467 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22468 (__sigpause): Rely on __sigsuspend to implement single thread
22469 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22470
22471 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22472
22473 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22474 kernel version to 4.14.
22475
22476 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22477
22478 [BZ #22442]
22479 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22480 Check if ifname is too long.
22481
22482 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22483
22484 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22485
22486 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22487
22488 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22489 was accidentally lost.
22490
22491 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22492
22493 * localedata/locales/az_IR: Add standard copyright header.
22494
22495 2017-11-15 Florian Weimer <fweimer@redhat.com>
22496
22497 [BZ #22439]
22498 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22499 not just the top one. Output a new "subheaps" statistic.
22500
22501 2017-11-15 Florian Weimer <fweimer@redhat.com>
22502
22503 [BZ #22408]
22504 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22505 under the per-arena lock.
22506 * malloc/Makefile (tests): Add tst-malloc_info.
22507 (tst-malloc_info): Link with libpthread.
22508 * malloc/tst-malloc_info.c: New file.
22509
22510 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22511
22512 [BZ #21660]
22513 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22514 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22515 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22516 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22517 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22518 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22519 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22520 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22521 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22522 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22523 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22524 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22525 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22526 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22527 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22528 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22529 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22530 (__floating_type): Likewise.
22531 (__real_integer_type): Likewise.
22532 (__complex_integer_type): Likewise.
22533 (__expr_is_real): Likewise.
22534 (__tgmath_real_type_sub): Likewise.
22535 (__tgmath_real_type): Likewise.
22536 (__tgmath_complex_type_sub): Likewise.
22537 (__tgmath_complex_type): Likewise.
22538 (__TGMATH_F128): Likewise.
22539 (__TGMATH_CF128): Likewise.
22540 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22541 new macros.
22542 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22543 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22544 Likewise.
22545 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22546 Likewise.
22547 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22548 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22549 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22550 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22551 Likewise.
22552 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22553 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22554 Likewise.
22555 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22556 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22557 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22558 Likewise.
22559 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22560 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22561 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22562 (cimag): Likewise.
22563 (creal): Likewise.
22564
22565 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22566
22567 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22568 for stpncpy calls for GCC 8.
22569 (test_strncat): Disable -Wstringop-truncation warning for strncat
22570 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22571 strncat call for GCC 7.
22572 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22573 calls for GCC 8.
22574 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22575 trailing NUL.
22576
22577 * string/bug-strncat1.c: Include <libc-diag.h>.
22578 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22579
22580 2017-11-13 Claude Paroz <claude@2xlibre.net>
22581
22582 [BZ #22387]
22583 * localedata/locales/aa_DJ: Improved readibility by replacing
22584 <Uxxxx> sequences in the ASCII printable range by their ASCII
22585 character equivalents.
22586 * localedata/locales/aa_ER: Likewise.
22587 * localedata/locales/aa_ER@saaho: Likewise.
22588 * localedata/locales/aa_ET: Likewise.
22589 * localedata/locales/af_ZA: Likewise.
22590 * localedata/locales/agr_PE: Likewise.
22591 * localedata/locales/ak_GH: Likewise.
22592 * localedata/locales/am_ET: Likewise.
22593 * localedata/locales/anp_IN: Likewise.
22594 * localedata/locales/ar_AE: Likewise.
22595 * localedata/locales/ar_BH: Likewise.
22596 * localedata/locales/ar_DZ: Likewise.
22597 * localedata/locales/ar_EG: Likewise.
22598 * localedata/locales/ar_IN: Likewise.
22599 * localedata/locales/ar_IQ: Likewise.
22600 * localedata/locales/ar_JO: Likewise.
22601 * localedata/locales/ar_KW: Likewise.
22602 * localedata/locales/ar_LB: Likewise.
22603 * localedata/locales/ar_LY: Likewise.
22604 * localedata/locales/ar_MA: Likewise.
22605 * localedata/locales/ar_OM: Likewise.
22606 * localedata/locales/ar_QA: Likewise.
22607 * localedata/locales/ar_SA: Likewise.
22608 * localedata/locales/ar_SD: Likewise.
22609 * localedata/locales/ar_SS: Likewise.
22610 * localedata/locales/ar_SY: Likewise.
22611 * localedata/locales/ar_TN: Likewise.
22612 * localedata/locales/ar_YE: Likewise.
22613 * localedata/locales/as_IN: Likewise.
22614 * localedata/locales/ast_ES: Likewise.
22615 * localedata/locales/ayc_PE: Likewise.
22616 * localedata/locales/az_AZ: Likewise.
22617 * localedata/locales/az_IR: Likewise.
22618 * localedata/locales/be_BY: Likewise.
22619 * localedata/locales/be_BY@latin: Likewise.
22620 * localedata/locales/bem_ZM: Likewise.
22621 * localedata/locales/ber_DZ: Likewise.
22622 * localedata/locales/ber_MA: Likewise.
22623 * localedata/locales/bg_BG: Likewise.
22624 * localedata/locales/bhb_IN: Likewise.
22625 * localedata/locales/bho_IN: Likewise.
22626 * localedata/locales/bi_VU: Likewise.
22627 * localedata/locales/bn_BD: Likewise.
22628 * localedata/locales/bn_IN: Likewise.
22629 * localedata/locales/bo_CN: Likewise.
22630 * localedata/locales/bo_IN: Likewise.
22631 * localedata/locales/br_FR: Likewise.
22632 * localedata/locales/brx_IN: Likewise.
22633 * localedata/locales/bs_BA: Likewise.
22634 * localedata/locales/byn_ER: Likewise.
22635 * localedata/locales/ca_AD: Likewise.
22636 * localedata/locales/ca_ES: Likewise.
22637 * localedata/locales/ca_FR: Likewise.
22638 * localedata/locales/ca_IT: Likewise.
22639 * localedata/locales/ce_RU: Likewise.
22640 * localedata/locales/chr_US: Likewise.
22641 * localedata/locales/cmn_TW: Likewise.
22642 * localedata/locales/crh_UA: Likewise.
22643 * localedata/locales/cs_CZ: Likewise.
22644 * localedata/locales/csb_PL: Likewise.
22645 * localedata/locales/cv_RU: Likewise.
22646 * localedata/locales/cy_GB: Likewise.
22647 * localedata/locales/da_DK: Likewise.
22648 * localedata/locales/de_AT: Likewise.
22649 * localedata/locales/de_BE: Likewise.
22650 * localedata/locales/de_CH: Likewise.
22651 * localedata/locales/de_DE: Likewise.
22652 * localedata/locales/de_IT: Likewise.
22653 * localedata/locales/de_LI: Likewise.
22654 * localedata/locales/de_LU: Likewise.
22655 * localedata/locales/doi_IN: Likewise.
22656 * localedata/locales/dv_MV: Likewise.
22657 * localedata/locales/dz_BT: Likewise.
22658 * localedata/locales/el_CY: Likewise.
22659 * localedata/locales/el_GR: Likewise.
22660 * localedata/locales/en_AG: Likewise.
22661 * localedata/locales/en_AU: Likewise.
22662 * localedata/locales/en_BW: Likewise.
22663 * localedata/locales/en_CA: Likewise.
22664 * localedata/locales/en_DK: Likewise.
22665 * localedata/locales/en_GB: Likewise.
22666 * localedata/locales/en_HK: Likewise.
22667 * localedata/locales/en_IE: Likewise.
22668 * localedata/locales/en_IL: Likewise.
22669 * localedata/locales/en_IN: Likewise.
22670 * localedata/locales/en_NG: Likewise.
22671 * localedata/locales/en_NZ: Likewise.
22672 * localedata/locales/en_PH: Likewise.
22673 * localedata/locales/en_SG: Likewise.
22674 * localedata/locales/en_US: Likewise.
22675 * localedata/locales/en_ZA: Likewise.
22676 * localedata/locales/en_ZM: Likewise.
22677 * localedata/locales/en_ZW: Likewise.
22678 * localedata/locales/eo: Likewise.
22679 * localedata/locales/es_AR: Likewise.
22680 * localedata/locales/es_BO: Likewise.
22681 * localedata/locales/es_CL: Likewise.
22682 * localedata/locales/es_CO: Likewise.
22683 * localedata/locales/es_CR: Likewise.
22684 * localedata/locales/es_CU: Likewise.
22685 * localedata/locales/es_DO: Likewise.
22686 * localedata/locales/es_EC: Likewise.
22687 * localedata/locales/es_ES: Likewise.
22688 * localedata/locales/es_GT: Likewise.
22689 * localedata/locales/es_HN: Likewise.
22690 * localedata/locales/es_MX: Likewise.
22691 * localedata/locales/es_NI: Likewise.
22692 * localedata/locales/es_PA: Likewise.
22693 * localedata/locales/es_PE: Likewise.
22694 * localedata/locales/es_PR: Likewise.
22695 * localedata/locales/es_PY: Likewise.
22696 * localedata/locales/es_SV: Likewise.
22697 * localedata/locales/es_US: Likewise.
22698 * localedata/locales/es_UY: Likewise.
22699 * localedata/locales/es_VE: Likewise.
22700 * localedata/locales/et_EE: Likewise.
22701 * localedata/locales/eu_ES: Likewise.
22702 * localedata/locales/eu_ES@euro: Likewise.
22703 * localedata/locales/fa_IR: Likewise.
22704 * localedata/locales/ff_SN: Likewise.
22705 * localedata/locales/fi_FI: Likewise.
22706 * localedata/locales/fil_PH: Likewise.
22707 * localedata/locales/fo_FO: Likewise.
22708 * localedata/locales/fr_BE: Likewise.
22709 * localedata/locales/fr_CA: Likewise.
22710 * localedata/locales/fr_CH: Likewise.
22711 * localedata/locales/fr_FR: Likewise.
22712 * localedata/locales/fr_LU: Likewise.
22713 * localedata/locales/fur_IT: Likewise.
22714 * localedata/locales/fy_DE: Likewise.
22715 * localedata/locales/fy_NL: Likewise.
22716 * localedata/locales/ga_IE: Likewise.
22717 * localedata/locales/gd_GB: Likewise.
22718 * localedata/locales/gez_ER: Likewise.
22719 * localedata/locales/gez_ET: Likewise.
22720 * localedata/locales/gl_ES: Likewise.
22721 * localedata/locales/gu_IN: Likewise.
22722 * localedata/locales/gv_GB: Likewise.
22723 * localedata/locales/ha_NG: Likewise.
22724 * localedata/locales/hak_TW: Likewise.
22725 * localedata/locales/he_IL: Likewise.
22726 * localedata/locales/hi_IN: Likewise.
22727 * localedata/locales/hif_FJ: Likewise.
22728 * localedata/locales/hne_IN: Likewise.
22729 * localedata/locales/hr_HR: Likewise.
22730 * localedata/locales/hsb_DE: Likewise.
22731 * localedata/locales/ht_HT: Likewise.
22732 * localedata/locales/hu_HU: Likewise.
22733 * localedata/locales/hy_AM: Likewise.
22734 * localedata/locales/i18n: Likewise.
22735 * localedata/locales/ia_FR: Likewise.
22736 * localedata/locales/id_ID: Likewise.
22737 * localedata/locales/ig_NG: Likewise.
22738 * localedata/locales/ik_CA: Likewise.
22739 * localedata/locales/is_IS: Likewise.
22740 * localedata/locales/it_CH: Likewise.
22741 * localedata/locales/it_IT: Likewise.
22742 * localedata/locales/iu_CA: Likewise.
22743 * localedata/locales/ja_JP: Likewise.
22744 * localedata/locales/ka_GE: Likewise.
22745 * localedata/locales/kk_KZ: Likewise.
22746 * localedata/locales/kl_GL: Likewise.
22747 * localedata/locales/kn_IN: Likewise.
22748 * localedata/locales/ko_KR: Likewise.
22749 * localedata/locales/kok_IN: Likewise.
22750 * localedata/locales/ks_IN: Likewise.
22751 * localedata/locales/ks_IN@devanagari: Likewise.
22752 * localedata/locales/ku_TR: Likewise.
22753 * localedata/locales/kw_GB: Likewise.
22754 * localedata/locales/ky_KG: Likewise.
22755 * localedata/locales/lb_LU: Likewise.
22756 * localedata/locales/lg_UG: Likewise.
22757 * localedata/locales/li_BE: Likewise.
22758 * localedata/locales/li_NL: Likewise.
22759 * localedata/locales/lij_IT: Likewise.
22760 * localedata/locales/ln_CD: Likewise.
22761 * localedata/locales/lo_LA: Likewise.
22762 * localedata/locales/lt_LT: Likewise.
22763 * localedata/locales/lv_LV: Likewise.
22764 * localedata/locales/lzh_TW: Likewise.
22765 * localedata/locales/mag_IN: Likewise.
22766 * localedata/locales/mai_IN: Likewise.
22767 * localedata/locales/mg_MG: Likewise.
22768 * localedata/locales/mhr_RU: Likewise.
22769 * localedata/locales/mi_NZ: Likewise.
22770 * localedata/locales/mk_MK: Likewise.
22771 * localedata/locales/ml_IN: Likewise.
22772 * localedata/locales/mn_MN: Likewise.
22773 * localedata/locales/mni_IN: Likewise.
22774 * localedata/locales/mr_IN: Likewise.
22775 * localedata/locales/ms_MY: Likewise.
22776 * localedata/locales/mt_MT: Likewise.
22777 * localedata/locales/my_MM: Likewise.
22778 * localedata/locales/nan_TW: Likewise.
22779 * localedata/locales/nan_TW@latin: Likewise.
22780 * localedata/locales/nb_NO: Likewise.
22781 * localedata/locales/nds_DE: Likewise.
22782 * localedata/locales/nds_NL: Likewise.
22783 * localedata/locales/ne_NP: Likewise.
22784 * localedata/locales/nhn_MX: Likewise.
22785 * localedata/locales/niu_NU: Likewise.
22786 * localedata/locales/niu_NZ: Likewise.
22787 * localedata/locales/nl_AW: Likewise.
22788 * localedata/locales/nl_BE: Likewise.
22789 * localedata/locales/nl_NL: Likewise.
22790 * localedata/locales/nn_NO: Likewise.
22791 * localedata/locales/nr_ZA: Likewise.
22792 * localedata/locales/nso_ZA: Likewise.
22793 * localedata/locales/oc_FR: Likewise.
22794 * localedata/locales/om_ET: Likewise.
22795 * localedata/locales/om_KE: Likewise.
22796 * localedata/locales/or_IN: Likewise.
22797 * localedata/locales/os_RU: Likewise.
22798 * localedata/locales/pa_IN: Likewise.
22799 * localedata/locales/pa_PK: Likewise.
22800 * localedata/locales/pap_AW: Likewise.
22801 * localedata/locales/pap_CW: Likewise.
22802 * localedata/locales/pl_PL: Likewise.
22803 * localedata/locales/ps_AF: Likewise.
22804 * localedata/locales/pt_BR: Likewise.
22805 * localedata/locales/pt_PT: Likewise.
22806 * localedata/locales/quz_PE: Likewise.
22807 * localedata/locales/raj_IN: Likewise.
22808 * localedata/locales/ro_RO: Likewise.
22809 * localedata/locales/ru_RU: Likewise.
22810 * localedata/locales/ru_UA: Likewise.
22811 * localedata/locales/rw_RW: Likewise.
22812 * localedata/locales/sa_IN: Likewise.
22813 * localedata/locales/sat_IN: Likewise.
22814 * localedata/locales/sc_IT: Likewise.
22815 * localedata/locales/sd_IN: Likewise.
22816 * localedata/locales/sd_IN@devanagari: Likewise.
22817 * localedata/locales/se_NO: Likewise.
22818 * localedata/locales/sgs_LT: Likewise.
22819 * localedata/locales/shs_CA: Likewise.
22820 * localedata/locales/si_LK: Likewise.
22821 * localedata/locales/sid_ET: Likewise.
22822 * localedata/locales/sk_SK: Likewise.
22823 * localedata/locales/sl_SI: Likewise.
22824 * localedata/locales/sm_WS: Likewise.
22825 * localedata/locales/so_DJ: Likewise.
22826 * localedata/locales/so_ET: Likewise.
22827 * localedata/locales/so_KE: Likewise.
22828 * localedata/locales/so_SO: Likewise.
22829 * localedata/locales/sq_AL: Likewise.
22830 * localedata/locales/sq_MK: Likewise.
22831 * localedata/locales/sr_ME: Likewise.
22832 * localedata/locales/sr_RS: Likewise.
22833 * localedata/locales/sr_RS@latin: Likewise.
22834 * localedata/locales/ss_ZA: Likewise.
22835 * localedata/locales/st_ZA: Likewise.
22836 * localedata/locales/sv_FI: Likewise.
22837 * localedata/locales/sv_SE: Likewise.
22838 * localedata/locales/sw_KE: Likewise.
22839 * localedata/locales/sw_TZ: Likewise.
22840 * localedata/locales/szl_PL: Likewise.
22841 * localedata/locales/ta_IN: Likewise.
22842 * localedata/locales/ta_LK: Likewise.
22843 * localedata/locales/tcy_IN: Likewise.
22844 * localedata/locales/te_IN: Likewise.
22845 * localedata/locales/tg_TJ: Likewise.
22846 * localedata/locales/th_TH: Likewise.
22847 * localedata/locales/the_NP: Likewise.
22848 * localedata/locales/ti_ER: Likewise.
22849 * localedata/locales/ti_ET: Likewise.
22850 * localedata/locales/tig_ER: Likewise.
22851 * localedata/locales/tk_TM: Likewise.
22852 * localedata/locales/tl_PH: Likewise.
22853 * localedata/locales/tn_ZA: Likewise.
22854 * localedata/locales/to_TO: Likewise.
22855 * localedata/locales/tpi_PG: Likewise.
22856 * localedata/locales/tr_CY: Likewise.
22857 * localedata/locales/tr_TR: Likewise.
22858 * localedata/locales/ts_ZA: Likewise.
22859 * localedata/locales/tt_RU: Likewise.
22860 * localedata/locales/tt_RU@iqtelif: Likewise.
22861 * localedata/locales/ug_CN: Likewise.
22862 * localedata/locales/uk_UA: Likewise.
22863 * localedata/locales/unm_US: Likewise.
22864 * localedata/locales/ur_IN: Likewise.
22865 * localedata/locales/ur_PK: Likewise.
22866 * localedata/locales/uz_UZ: Likewise.
22867 * localedata/locales/uz_UZ@cyrillic: Likewise.
22868 * localedata/locales/ve_ZA: Likewise.
22869 * localedata/locales/vi_VN: Likewise.
22870 * localedata/locales/wa_BE: Likewise.
22871 * localedata/locales/wae_CH: Likewise.
22872 * localedata/locales/wal_ET: Likewise.
22873 * localedata/locales/wo_SN: Likewise.
22874 * localedata/locales/xh_ZA: Likewise.
22875 * localedata/locales/yi_US: Likewise.
22876 * localedata/locales/yo_NG: Likewise.
22877 * localedata/locales/yue_HK: Likewise.
22878 * localedata/locales/yuw_PG: Likewise.
22879 * localedata/locales/zh_CN: Likewise.
22880 * localedata/locales/zh_HK: Likewise.
22881 * localedata/locales/zh_SG: Likewise.
22882 * localedata/locales/zh_TW: Likewise.
22883 * localedata/locales/zu_ZA: Likewise.
22884
22885 2017-11-13 Florian Weimer <fweimer@redhat.com>
22886
22887 * support/next_to_fault.h, support/next_to_fault.c: New files.
22888 * support/Makefile (libsupport-routines): Add next_to_fault.
22889 * resolv/tst-inet_pton.c (struct next_to_fault)
22890 (next_to_fault_allocate, next_to_fault_free): Remove.
22891 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22892
22893 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22894
22895 * elf/dl-support.c: Include <dl-procruntime.c>.
22896 * include/link.h: Include <link_map.h>.
22897 * sysdeps/generic/dl-procruntime.c: New file.
22898 * sysdeps/generic/link_map.h: Likewise.
22899 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22900 the writable ld.so namespace.
22901
22902 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22903
22904 timezone: pacify GCC -Wstringop-truncation
22905 Problem reported by Martin Sebor in:
22906 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22907 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22908
22909 2017-11-12 Florian Weimer <fweimer@redhat.com>
22910
22911 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22912 tst-xreadlink.
22913 (tests): Add tst-xreadlink.
22914 * support/support.h (xstrndup): Declare.
22915 * support/xunistd.h (xunlink, xreadlink): Declare.
22916 * support/temp_file.h (support_create_temp_directory): Declare.
22917 * support/temp_file.c (support_create_temp_directory): New function.
22918 * support/support_chroot.c (support_chroot_create): Use it.
22919 * support/xreadlink.c: New file.
22920 * support/xstrndup.c: Likewise.
22921 * support/xunlink.c: Likewise.
22922 * support/tst-xreadlink.c: Likewise.
22923
22924 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22925
22926 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22927
22928 2017-11-11 Florian Weimer <fweimer@redhat.com>
22929
22930 [BZ #22409]
22931 [BZ #22412]
22932 * resolv/res_comp.c (printable_string, binary_hnok)
22933 (binary_leading_dash): New functions.
22934 (res_hnok): Reimplement using these functions and ns_name_pton.
22935 (res_ownok): Likewise.
22936 (res_mailok): Reimplement using printable_string, ns_name_pton and
22937 binary_hnok.
22938 (res_dnok): Reimplement using printable_string and ns_name_pton.
22939 * resolv/tst-res_hnok.c (tests): Add additional tests.
22940 (LETTERDIGITS, PRINTABLE): Define.
22941 (do_test): Adjust one_char results.
22942
22943 2017-11-11 Florian Weimer <fweimer@redhat.com>
22944
22945 [BZ #22413]
22946 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22947 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22948
22949 2017-11-11 Florian Weimer <fweimer@redhat.com>
22950
22951 * resolv/tst-ns_name_pton.c: New file.
22952 * resolv/Makefile (tests): Add tst-ns_name_pton.
22953 (tst-ns_name_pton): Link against libresolv.
22954
22955 2017-11-11 Florian Weimer <fweimer@redhat.com>
22956
22957 * resolv/tst-res_hnok.c: New file.
22958 * resolv/Makefile (tests): Add tst-res_hnok.
22959 (tst-res_hnok): Link against libresolv.
22960
22961 2017-11-11 Florian Weimer <fweimer@redhat.com>
22962
22963 * resolv/tst-resolv-network.c: Use test framework instead explicit
22964 main function.
22965
22966 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22967
22968 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22969 <jmp_buf-macros.h>.
22970 [!_ISOMAC] (STR_HELPER): New.
22971 [!_ISOMAC] (STR): Likewise.
22972 [!_ISOMAC] (TEST_SIZE): Likewise.
22973 [!_ISOMAC] (TEST_ALIGN): Likewise.
22974 [!_ISOMAC] (TEST_OFFSET): Likewise.
22975 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22976 field offsets of jmp_buf as well as sigjmp_buf.
22977 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22978 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22979 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22980 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22981 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22982 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22983 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22984 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22985 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22986 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22987 Likewise.
22988 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22989 Likewise.
22990 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22991 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22992 Likewise.
22993 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22994 Likewise.
22995 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22996 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22997 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22998 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22999 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
23000 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
23001 Likewise.
23002 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
23003 Likewise.
23004 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
23005 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
23006 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
23007
23008 2017-11-07 Joseph Myers <joseph@codesourcery.com>
23009
23010 * include/float.h
23011 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23012 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
23013 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23014 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
23015 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23016 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
23017 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23018 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
23019 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23020 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
23021 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23022 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
23023 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23024 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
23025 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23026 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
23027 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23028 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
23029 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23030 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
23031 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23032 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
23033 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23034 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
23035 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23036 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
23037 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23038 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
23039 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23040 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
23041 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23042 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
23043 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23044 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
23045 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23046 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
23047 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23048 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
23049 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23050 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
23051 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23052 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
23053 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23054 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
23055 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23056 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
23057 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23058 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
23059 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23060 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
23061 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23062 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
23063 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23064 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
23065 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23066 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
23067 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23068 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
23069 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23070 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23071 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23072 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23073 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23074 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23075 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23076 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23077 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23078 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23079 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23080 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23081 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23082 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23083 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23084 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23085 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23086 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23087 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23088 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23089 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23090 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23091 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23092 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23093 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23094 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23095 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23096 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23097 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23098 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23099
23100 * stdlib/tst-strtod.h (F16): New macro.
23101 (F32): Likewise.
23102 (F64): Likewise.
23103 (F32X): Likewise.
23104 (F64X): Likewise.
23105 (F128X): Likewise.
23106 (IF_FLOAT16): Likewise.
23107 (IF_FLOAT32): Likewise.
23108 (IF_FLOAT64): Likewise.
23109 (IF_FLOAT32X): Likewise.
23110 (IF_FLOAT64X): Likewise.
23111 (IF_FLOAT128X): Likewise.
23112 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23113 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23114 (STRTOD_TEST_FOREACH): Likewise.
23115 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23116 (CHOOSE_f64): Likewise.
23117 (CHOOSE_f32x): Likewise.
23118 (CHOOSE_f64x): Likewise.
23119
23120 2017-11-07 Andreas Schwab <schwab@suse.de>
23121
23122 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23123
23124 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23125
23126 [BZ #22403]
23127 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23128 to be escaped.
23129 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23130 to be escaped.
23131
23132 2017-11-07 Claude Paroz <claude@2xlibre.net>
23133
23134 [BZ #22403]
23135 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23136 to be escaped.
23137 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23138 to be escaped.
23139 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23140 to be escaped.
23141
23142 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23143
23144 [BZ #22298]
23145 * nptl/allocatestack.c (allocate_stack): Check if
23146 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23147 __PTHREAD_MUTEX_HAVE_PREV is defined.
23148 * nptl/descr.h (pthread): Likewise.
23149 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23150 Likewise.
23151 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23152 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23153 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23154 * sysdeps/nptl/bits/thread-shared-types.h
23155 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23156 defines.
23157 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23158 of __WORDSIZE for internal layout.
23159 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23160 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23161 instead of __WORDSIZE whether to use an union for __spins and __list
23162 fields.
23163 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23164 case.
23165 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23166 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23167 defines.
23168 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23169 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23170 Likewise.
23171 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23172 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23173 Likewise.
23174 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23175 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23176 Likewise.
23177 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23178 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23179 Likewise.
23180 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23181 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23182 Likewise.
23183 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23184 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23185 Likewise.
23186 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23187 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23188 Likewise.
23189 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23190 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23191 Likewise.
23192 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23193 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23194 Likewise.
23195 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23196 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23197 Likewise.
23198 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23199 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23200 Likewise.
23201 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23202 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23203 Likewise.
23204 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23205 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23206 Likewise.
23207 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23208 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23209 Likewise.
23210
23211 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23212 New macros.
23213 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23214 checks for expected input type size.
23215 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23216 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23217 Likewise.
23218 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23219 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23220 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23221 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23222 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23223 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23224 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23225 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23226 superflous runtime assert check.
23227 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23228 Likewise.
23229 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23230 Likewise.
23231 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23232 Likewise.
23233 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23234 Likewise.
23235 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23236 Likewise.
23237 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23238 Likewise.
23239 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23240 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23241 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23242 Likewise.
23243 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23244 Likewise.
23245 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23246 Likewise.
23247 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23248 Likewise.
23249 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23250 Likewise.
23251 * nptl/pthread_attr_setinheritsched.c
23252 (__pthread_attr_setinheritsched): Likewise.
23253 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23254 Likewise.
23255 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23256 Likewise.
23257 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23258 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23259 __old_pthread_attr_setstack): Likewise.
23260 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23261 Likewise.
23262 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23263 Likewise.
23264 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23265 Likewise.
23266 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23267 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23268 Likewise.
23269 * nptl/tst-typesizes.c: Remove file.
23270
23271 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23272 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23273 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23274 checks for internal pthread_mutex_t offsets.
23275 * sysdeps/aarch64/nptl/pthread-offsets.h
23276 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23277 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23278 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23279 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23280 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23281 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23282 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23283 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23284 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23285 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23286 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23287 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23288 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23289 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23290 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23291 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23292 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23293 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23294
23295 2017-11-07 Florian Weimer <fweimer@redhat.com>
23296
23297 * bits/mman-linux.h: Move ...
23298 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23299 comment.
23300 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23301 outdated comment.
23302
23303 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23304
23305 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23306 Redefine STRNLEN as __strnlen_power8.
23307
23308 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23309
23310 * signal/sighold.c (sighold): Optimize implementation.
23311
23312 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23313 __NR_rt_sigqueueinfo.
23314
23315 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23316 __sigtimedwait.
23317 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23318 assume __NR_rt_sigtimedwait.
23319 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23320 and add LIBC_CANCEL_HANDLED for cancellation marking.
23321 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23322
23323 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23324 (sysdeps_routines): Add memchr_noneon.
23325 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23326 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23327 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23328 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23329 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23330 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23331 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23332
23333 * sysdeps/arm/arm-ifunc.h: New file.
23334 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23335 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23336 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23337 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23338 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23339 (__memcpy_neon): Avoid create hidden alias.
23340 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23341 (__memcpy_vfp): Likewise.
23342 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23343 (sysdep_routines): Add memcpy_arm.
23344 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23345
23346 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23347
23348 [BZ #22362]
23349 * Makerules (make-link-multidir): New.
23350 * config.make.in (multidir): New.
23351 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23352 * configure: Regenerated.
23353 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23354 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23355 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23356 New target.
23357
23358 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23359
23360 [BZ #22402]
23361 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23362 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23363
23364 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23365
23366 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23367 to be escaped.
23368
23369 2017-11-04 Florian Weimer <fweimer@redhat.com>
23370
23371 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23372
23373 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23374
23375 * math/math.h [__HAVE_DISTINCT_FLOAT16
23376 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23377 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23378 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23379 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23380 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23381 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23382 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23383 (__MATH_TG_F32): New macro.
23384 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23385 (__MATH_TG_F64X): Likewise.
23386 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23387 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23388
23389 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23390
23391 * po/de.po: Update translations.
23392 * po/ru.po: Likewise.
23393
23394 2017-11-03 Florian Weimer <fweimer@redhat.com>
23395
23396 * manual/filesys.texi (Hard Links): Document linkat.
23397
23398 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23399
23400 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23401 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23402 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23403 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23404 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23405 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23406 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23407 the same as _Float128.
23408 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23409 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23410 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23411
23412 * stdlib/stdlib.h
23413 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23414 Declare.
23415 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23416 Likewise.
23417 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23418 Likewise.
23419 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23420 (strtof32x): Likewise.
23421 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23422 (strtof64x): Likewise.
23423 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23424 (strtof128x): Likewise.
23425 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23426 (strfromf16): Likewise.
23427 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23428 (strfromf32): Likewise.
23429 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23430 (strfromf64): Likewise.
23431 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23432 (strfromf32x): Likewise.
23433 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23434 (strfromf64x): Likewise.
23435 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23436 (strfromf128x): Likewise.
23437 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23438 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23439 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23440 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23441 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23442 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23443
23444 2017-11-03 Richard Henderson <rth@twiddle.net>
23445
23446 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23447
23448 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23449
23450 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23451
23452 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23453
23454 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23455 DT_TLSDESC_GOT initialization.
23456 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23457 (_dl_tlsdesc_resolve_hold): Likewise.
23458 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23459 (_dl_tlsdesc_resolve_hold): Likewise.
23460 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23461 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23462
23463 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23464
23465 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23466
23467 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23468
23469 [BZ #18572]
23470 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23471 non-lazily for R_ARM_TLS_DESC.
23472
23473 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23474
23475 [BZ #17078]
23476 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23477 R_ARM_TLS_DESC case.
23478 (elf_machine_lazy_rel): Remove the prelink check.
23479
23480 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23481
23482 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23483 DT_TLSDESC_GOT initialization.
23484 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23485 (_dl_tlsdesc_resolve_rela): Likewise.
23486 (_dl_tlsdesc_resolve_hold): Likewise.
23487 (_dl_tlsdesc_undefweak): Remove ldar.
23488 (_dl_tlsdesc_dynamic): Likewise.
23489 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23490 (_dl_tlsdesc_resolve_rela): Likewise.
23491 (_dl_tlsdesc_resolve_hold): Likewise.
23492 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23493 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23494 (_dl_tlsdesc_resolve_rela): Likewise.
23495 (_dl_tlsdesc_resolve_hold): Likewise.
23496
23497 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23498
23499 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23500 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23501
23502 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23503
23504 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23505 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23506
23507 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23508
23509 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23510 Declare.
23511 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23512 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23513 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23514 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23515 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23516 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23517 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23518 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23519 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23520 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23521 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23522
23523 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23524
23525 [BZ #22382]
23526 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23527 * localedata/locales/tpi_PG: Add standard header.
23528
23529 2017-11-02 Florian Weimer <fweimer@redhat.com>
23530
23531 test-errno-linux: quotactl can fail with EPERM in containers.
23532 * sysdeps/unix/sysv/linux/test-errno-linux.c
23533 (LIST, LIST_FORWARD): New macros.
23534 (check_error_in_list): New function.
23535 (test_wrp_rv): Accept list of permitted error codes.
23536 (test_wrp_rv2): Remove.
23537 (test_wrp): Call test_wrp_rv with list of error codes.
23538 (test_wrp2): Accept list of error codes.
23539 (do_test): Adjust. Allow EPERM for quotactl.
23540
23541 2017-11-02 Florian Weimer <fweimer@redhat.com>
23542
23543 * stdio-common/bug16.c (do_test): Use array_length.
23544 * stdio-common/errlist.c (_sys_nerr): Likewise.
23545 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23546 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23547 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23548 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23549 (do_test): Use array_length.
23550 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23551 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23552 * stdio-common/tst-printf-round.c (do_test): Likewise.
23553 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23554 (CHECK): Use array_length.
23555 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23556 * stdio-common/tstscanf.c (main): Likewise.
23557 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23558
23559 2017-11-02 Florian Weimer <fweimer@redhat.com>
23560
23561 Add array_length and array_end macros.
23562 * include/array_length.h: New file.
23563
23564 2017-11-02 Florian Weimer <fweimer@redhat.com>
23565
23566 [BZ #22332]
23567 * posix/tst-glob-tilde.c (do_noescape): New variable.
23568 (one_test): Process it.
23569 (do_test): Set do_noescape. Add unescaping test case.
23570
23571 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23572
23573 * math/complex.h
23574 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23575 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23576 with appropriate macros defined and undefined.
23577 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23578 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23579 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23580 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23581 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23582 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23583 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23584 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23585 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23586 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23587
23588 * math/complex.h
23589 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23590 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23591 that for long double. Do not condition define and undefine of
23592 _Mdouble_complex_ on [__CFLOAT128].
23593
23594 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23595
23596 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23597 of <sysdeps/generic/sysdep.h>.
23598 (ALIGNARG): Removed.
23599 (ASM_SIZE_DIRECTIVE): Likewise.
23600 (ENTRY): Likewise.
23601 (END): Likewise.
23602 (ENTRY_CHK): Likewise.
23603 (END_CHK): Likewise.
23604 (syscall_error): Likewise.
23605 (mcount): Likewise.
23606 (PSEUDO_END): Likewise.
23607 (L): Likewise.
23608 (atom_text_section): Likewise.
23609 * sysdeps/x86/sysdep.h: New file.
23610 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23611 of <sysdeps/generic/sysdep.h>.
23612 (ALIGNARG): Removed.
23613 (ASM_SIZE_DIRECTIVE): Likewise.
23614 (ENTRY): Likewise.
23615 (END): Likewise.
23616 (ENTRY_CHK): Likewise.
23617 (END_CHK): Likewise.
23618 (syscall_error): Likewise.
23619 (mcount): Likewise.
23620 (PSEUDO_END): Likewise.
23621 (L): Likewise.
23622 (atom_text_section): Likewise.
23623
23624 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23625
23626 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23627 category of LC_CTYPE set to "i18n:2012".
23628 * localedata/locales/i18n_ctype: Regenerate.
23629
23630 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23631
23632 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23633 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23634 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23635 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23636
23637 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23638 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23639 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23640 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23641
23642 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23643
23644 * math/complex.h
23645 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23646 New macro.
23647 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23648 Likewise.
23649 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23650 Likewise.
23651 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23652 (CMPLXF32X): Likewise.
23653 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23654 (CMPLXF64X): Likewise.
23655 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23656 (CMPLXF128X): Likewise.
23657
23658 * math/math.h
23659 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23660 (__MATH_EVAL_FMT2): Define to add 0.0f.
23661
23662 2017-10-31 Alan Modra <amodra@gmail.com>
23663
23664 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23665 include sysdep.h.
23666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23667 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23670 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23680 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23681 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23682 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23683 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23684 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23685 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23686 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23687 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23688 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23689 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23690 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23691 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23692 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23693 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23694 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23695 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23696 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23697 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23698 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23699 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23700 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23701 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23702 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23703 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23704 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23705 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23706 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23707 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23708 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23709 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23710 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23711 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23712 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23713 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23714 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23715 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23716 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23717 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23718 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23719 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23720 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23721 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23722 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23723 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23724 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23725 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23726 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23727 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23728 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23729 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23730 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23731 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23732 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23733 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23734 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23735
23736 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23737 include sysdep.h and math_ldbl_opt.h.
23738
23739 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23740 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23741 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23742 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23743 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23744 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23745 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23746 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23747 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23748 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23749 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23750 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23751 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23752 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23753 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23754 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23755 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23756 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23757 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23758 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23759 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23760 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23761 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23762 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23763 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23764 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23765
23766 2017-10-31 Alan Modra <amodra@gmail.com>
23767
23768 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23769 string/strncase_l.c, not string/strncase.c.
23770 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23771 (libc_hidden_def): Redefine.
23772
23773 2017-10-31 Alan Modra <amodra@gmail.com>
23774
23775 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23776 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23777 (__strcasecmp): Don't define.
23778
23779 2017-10-31 Alan Modra <amodra@gmail.com>
23780
23781 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23782 IS_IN (libc).
23783 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23784 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23785 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23786
23787 2017-10-31 Alan Modra <amodra@gmail.com>
23788
23789 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23790 USE_AS_STPNCPY.
23791
23792 2017-10-31 Alan Modra <amodra@gmail.com>
23793
23794 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23795 Redefine only when SHARED.
23796
23797 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23798
23799 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23800 Include <bits/math-finite.h> with appropriate macros defined and
23801 undefined.
23802 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23803 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23804 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23805 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23806 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23807
23808 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23809 [!_Mlong_double_] (_Mlong_double_): Likewise.
23810 [!_Mfloat16_] (_Mfloat16_): Likewise.
23811 [!_Mfloat32_] (_Mfloat32_): Likewise.
23812 [!_Mfloat64_] (_Mfloat64_): Likewise.
23813 [!_Mfloat128_] (_Mfloat128_): Likewise.
23814 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23815 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23816 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23817 (_Mdouble_): Define without indirection through those macros.
23818 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23819 [!_Mfloat128_] (_Mfloat128_): Likewise.
23820 [_Mlong_double_] (_Mlong_double_): Likewise.
23821 (_Mdouble_): Define without indirection through those macros.
23822 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23823 not add -D_Mlong_double_=double.
23824 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23825 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23826
23827 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23828
23829 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23830
23831 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23832
23833 * sysdeps/x86/libc-start.c: Reformat.
23834
23835 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23836
23837 [BZ #22353]
23838 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23839 (1): Renamed to ...
23840 (L(Src0)): This.
23841 (L(Src1)): New.
23842 (L(Src2)): Likewise.
23843 (L(1)): Renamed to ...
23844 (L(Src3)): This.
23845
23846 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23847
23848 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23849 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23850 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23851 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23852 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23853 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23854 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23855 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23856 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23857 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23858 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23859 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23860 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23861 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23862 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23863 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23864 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23865 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23866 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23867 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23868 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23869 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23870 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23871 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23872 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23873 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23874 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23875 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23876 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23877 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23878 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23879 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23880 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23881 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23882 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23883 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23884 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23885 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23886 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23887 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23888 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23889 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23890 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23891 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23892 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23893 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23894 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23895 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23896 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23897 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23898 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23899 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23900 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23901 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23902 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23903 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23904 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23905 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23906 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23907 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23908 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23909 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23910 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23911 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23912 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23913 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23914
23915 2017-10-30 Florian Weimer <fweimer@redhat.com>
23916
23917 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23918 always defined.
23919 * io/tst-mkdirat.c (do_test): Likewise.
23920 * io/tst-mkfifoat.c (do_test): Likewise.
23921 * io/tst-mknodat.c (do_test): Likewise.
23922 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23923 * locale/programs/locale.c (select_dirs): Likewise.
23924 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23925 * posix/bug-glob2.c (my_readdir): Likewise.
23926 * posix/tst-dir.c (main): Likewise.
23927 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23928 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23929
23930 2017-10-30 Florian Weimer <fweimer@redhat.com>
23931
23932 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23933 just __USE_GNU.
23934
23935 2017-10-30 Florian Weimer <fweimer@redhat.com>
23936
23937 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23938 Convert to support/test-driver.c.
23939 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23940 New macro parameters.
23941 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23942 * posix/tst-gnuglob.c: New file.
23943 * posix/tst-gnuglob64.c: Likewise.
23944 * posix/Makefile (tests): Add tst-gnuglob64.
23945
23946 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23947
23948 [BZ #19485]
23949 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23950 and use a better translation for March in “mon”.
23951 * localedata/locales/csb_PL: Use more ASCII to improve the
23952 readability of the source.
23953
23954 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23955
23956 [BZ #13953]
23957 * localedata/locales/km_KH: Use ASCII as much
23958 as possible for better readability of the source and
23959 remove useless comments.
23960 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23961 was commented out and apparently wrong anyway because it was
23962 using Lao characters. If Buddhist era should be used
23963 for km_KH, a native speaker should write the correct formaat
23964 for Khmer.
23965 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23966 (According to CLDR, the first weekday for Cambodia is Sunday).
23967 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23968 (These were using Lao characters which must be wrong. If we get
23969 the correct data from a native speaker, we could add it back, until
23970 then it is better not to have name_mr and name_mrs at all than
23971 having it wrong).
23972
23973 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23974
23975 * locale/loadlocale.c: Correct size of
23976 _nl_value_type_LC_<category> arrays.
23977
23978 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23979
23980 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23981 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23982 with appropriate macros defined and undefined.
23983 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23984 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23985 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23986 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23987 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23988
23989 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23990
23991 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23992 "-O2 -march=i586".
23993
23994 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23995
23996 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23997 with lowercase letters to make it agree with CLDR.
23998
23999 2017-10-27 Mike FABIAN <mfabian@redhat.com>
24000
24001 [BZ #15260]
24002 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
24003 first letters of yesstr and nostr in yesexpr and noexpr,
24004 not for the full words.
24005 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24006 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
24007 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
24008 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
24009 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
24010 first letters of yesstr and nostr in yesexpr and noexpr,
24011 until now only English was matched in yesexpr and noexpr.
24012 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
24013 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
24014 fil but not for tl. As tl and fil are very similar, using fil
24015 is probably better than using English.
24016
24017 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
24018
24019 [BZ #21706]
24020 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
24021 in yesstr and nostr.
24022
24023 2017-10-26 Joseph Myers <joseph@codesourcery.com>
24024
24025 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24026 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
24027 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
24028 Likewise.
24029 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
24030 Likewise.
24031 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
24032 Likewise.
24033 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
24034 Likewise.
24035 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24036 (SNANF128X): Likewise.
24037
24038 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
24039 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
24040 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24041 (HUGE_VAL_F32): Likewise.
24042 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24043 (HUGE_VAL_F64): Likewise.
24044 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24045 (HUGE_VAL_F32X): Likewise.
24046 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24047 (HUGE_VAL_F64X): Likewise.
24048 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
24049 (HUGE_VAL_F128X): Likewise.
24050
24051 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24052
24053 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
24054 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
24055 for the br_FR locale.
24056
24057 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
24058
24059 [BZ #21706]
24060 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
24061
24062 2017-10-25 Carlos O'Donell <carlos@redhat.com>
24063
24064 * locale/programs/record-status.h: Define globals, and function
24065 prototypes. Move function bodies...
24066 * locale/programs/record-status.c: ... to here. New file.
24067 * iconv/Makefile (iconv_prog-modules): Add record-status.
24068 * locale/Makefile (lib-modules): Likewise.
24069 * iconv/iconv_prog.c: Remove verbose.
24070 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24071 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24072 record a warning about ASCII compatibility.
24073 * locale/programs/ld-monetary.c (monetary_finish): If
24074 warn_int_curr_symbol is true then record a warning about the symbol
24075 not being in our ISO 4217 list.
24076 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24077 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24078 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24079 (OPT_NO_WARN): Define.
24080 (OPT_WARN): Define.
24081 (options): Add entry for --no-warnings, and --warnings.
24082 (set_warnings): New function to enable/disable warnings.
24083 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24084 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24085 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24086 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24087 Pass flags to generate_locale.
24088 (generate_locale): Accept new flag argument and pass it to localedef
24089 invocation.
24090 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24091 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24092
24093 * localedata/Makefile (test-input-data): Use full file name.
24094 * localedata/da_DK.in: Rename to...
24095 * localedata/da_DK.ISO-8859-1.in: ...this.
24096 * localedata/de_DE.in: Rename to...
24097 * localedata/de_DE.ISO-8859-1.in: ...this.
24098 * localedata/en_US.in: Rename to...
24099 * localedata/en_US.ISO-8859-1.in: ...this.
24100 * localedata/fr_FR.in: Rename to...
24101 * localedata/fr_FR.UTF-8.in: ... this.
24102 * localedata/hr_HR.in: Rename to...
24103 * localedata/hr_HR.ISO-8859-2.in: ...this.
24104 * localedata/hu_HU.in: Rename to...
24105 * localedata/hu_HU.UTF-8.in: ...this.
24106 * localedata/si_LK.in: Rename to...
24107 * localedata/si_LK.UTF-8.in: ...this.
24108 * localedata/sv_SE.in: Rename to...
24109 * localedata/sv_SE.ISO-8859-1.in: ...this.
24110 * localedata/tr_TR.in: Rename to...
24111 * localedata/tr_TR.UTF-8.in: ...this.
24112 * localedata/uk_UA.in: Rename to...
24113 * localedata/uk_UA.UTF-8.in: ...this.
24114 * localedata/sort-test.sh: Test file is locale name with the
24115 suffix.
24116
24117 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24118 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24119 file.
24120 * localedata/locales/i18n_ctype: Regenerate.
24121 * localedata/locales/tr_TR: Likewise.
24122 * localedata/locales/translit_circle: Likewise.
24123 * localedata/locales/translit_cjk_compat: Likewise.
24124 * localedata/locales/translit_combining: Likewise.
24125 * localedata/locales/translit_compat: Likewise.
24126 * localedata/locales/translit_font: Likewise.
24127 * localedata/locales/translit_fraction: Likewise.
24128
24129 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24130
24131 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24132 lxvd2x/stxvd2x with lvx/stvx.
24133 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24134
24135 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24136
24137 * include/alloc_buffer.h: Replace "if if " with "if " in
24138 comments.
24139 * sysdeps/mips/memcpy.S: Likkewise.
24140 * sysdeps/mips/memset.S: Likewise.
24141 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24142 Likewise.
24143 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24144 Likewise.
24145 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24146 Likewise.
24147
24148 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24149
24150 [BZ #15261]
24151 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24152 yesexpr and noexpr.
24153 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24154 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24155 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24156 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24157 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24158 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24159 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24160
24161 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24162
24163 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24164 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24165 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24166 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24167 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24168 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24169 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24170 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24171 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24172 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24173 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24174 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24175
24176 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24177
24178 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24179 as possible for better readability of the source.
24180 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24181 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24182 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24183 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24184 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24185 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24186 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24187 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24188 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24189 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24190 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24191 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24192 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24193 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24194 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24195 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24196 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24197 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24198 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24199 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24200 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24201 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24202 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24203 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24204 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24205 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24206 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24207 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24208 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24209 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24210 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24211 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24212 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24213 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24214 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24215 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24216 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24217 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24218 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24219 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24220 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24221 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24222 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24223 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24224 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24225 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24226 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24227 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24228 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24229 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24230 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24231 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24232 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24233 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24234 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24235 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24236 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24237 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24238 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24239 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24240 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24241 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24242 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24243 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24244 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24245 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24246 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24247 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24248 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24249 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24250 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24251 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24252 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24253 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24254 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24255 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24256 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24257 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24258 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24259 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24260 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24261 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24262 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24263 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24264 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24265 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24266 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24267 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24268 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24269 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24270 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24271 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24272 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24273 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24274 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24275 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24276 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24277 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24278 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24279 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24280 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24281 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24282 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24283 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24284 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24285 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24286 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24287 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24288 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24289 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24290 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24291 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24292 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24293 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24294 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24295 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24296 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24297 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24298 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24299 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24300 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24301 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24302 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24303 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24304 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24305 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24306 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24307 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24308 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24309 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24310 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24311 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24312 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24313 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24314 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24315 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24316 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24317 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24318 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24319 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24320 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24321 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24322 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24323 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24324 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24325 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24326 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24327 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24328 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24329 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24330 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24331 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24332 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24333 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24334 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24335 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24336 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24337 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24338 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24339 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24340 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24341 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24342 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24343 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24344 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24345 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24346 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24347 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24348 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24349 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24350 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24351 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24352 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24353 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24354
24355 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24356
24357 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24358 (Use first letters of yesstr and nostr correctly instead of using
24359 full words).
24360
24361 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24362
24363 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24364 (Use first letters of yesstr and nostr correctly).
24365
24366 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24367
24368 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24369 also check for the first characters of yesstr and nostr.
24370 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24371 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24372
24373 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24374
24375 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24376 also check for Chinese characters.
24377
24378 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24379
24380 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24381 match also for the contents of yesstr and nostr. As the first letter
24382 of yesstr and nostr is equal, checking only for the first letter
24383 is not enough.
24384
24385 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24386
24387 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24388 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24389
24390 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24391
24392 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24393 of main contributor.
24394
24395 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24396
24397 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24398 instead of using English.
24399
24400 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24401
24402 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24403 by including the first letters of nostr and yesexpr in the regexp.
24404 Also make it more readable by using ASCII where possible.
24405
24406 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24407
24408 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24409 the first letter of nostr in the regexp. It agrees with CLDR now.
24410 Also make it more readable by using ASCII where possible.
24411
24412 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24413
24414 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24415 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24416 these strings contain a U+17D6 (which somewhat looks like a colon)
24417 instead of a real colon to separate the full words for “yes”
24418 and “no” from the single letter responses.
24419
24420 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24421
24422 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24423 it agree with CLDR (include the first letter of yesstr).
24424 Also make it more readable by using ASCII where possible.
24425
24426 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24427
24428 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24429 and improve yesexpr and noexpr. The yesstr and nostr apparently
24430 came from CLDR. And CLDR has a bug there: these strings contain
24431 a U+0903 (which looks like a colon) instead of a real colon
24432 to separate the full words for “yes” and “no” from the single
24433 letter responses.
24434
24435 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24436
24437 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24438 letters of the full yesstr and nostr in yesexpr and noexpr.
24439
24440 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24441
24442 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24443 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24444 * localedata/locales/an_ES: Make source more readable by using ASCII
24445 where possible.
24446
24447 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24448
24449 [BZ #20952]
24450 * localedata/locales/yuw_PG: New file.
24451 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24452 * locale/iso-639.def: Add Yau (Uruwa).
24453
24454 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24455
24456 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24457
24458 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24459
24460 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24461 (__libc_realloc): Likewise.
24462 (_mid_memalign): Likewise.
24463 (__libc_calloc): Likewise.
24464
24465 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24466
24467 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24468 by adding the generic +1 and -0 as in all other locales.
24469 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24470 day names and make it more readable by using ASCII where possible.
24471
24472 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24473
24474 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24475 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24476
24477 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24478
24479 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24480 WNOHANG in waitpid call.
24481
24482 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24483
24484 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24485 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24486
24487 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24488 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24489 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24490 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24491 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24492 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24493 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24494 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24495 variables.
24496
24497 2017-10-23 Michael Collison <michael.collison@arm.com>
24498
24499 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24500 with __builtin_sqrt.
24501 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24502 with __builtin_sqrtf.
24503 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24504 with __builtin_ceil.
24505 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24506 with __builtin_ceilf.
24507 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24508 with __builtin_floor.
24509 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24510 with __builtin_floorf.
24511 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24512 with __builtin_fma.
24513 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24514 with __builtin_fmaf.
24515 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24516 with __builtin_fmax.
24517 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24518 with __builtin_fmaxf.
24519 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24520 with __builtin_fmin.
24521 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24522 with __builtin_fminf.
24523 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24524 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24525 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24526 with builtin_rint and conversion to int.
24527 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24528 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24529 with builtin_llround.
24530 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24531 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24532 with builtin_rint and conversion to long int.
24533 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24534 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24535 with builtin_lround.
24536 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24537 with builtin_lroundf.
24538 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24539 statements with __builtin_nearbyint.
24540 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24541 statements with __builtin_nearbyintf.
24542 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24543 with __builtin_rint.
24544 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24545 with __builtin_rintf.
24546 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24547 with __builtin_round.
24548 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24549 with __builtin_roundf.
24550 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24551 with __builtin_trunc.
24552 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24553 with __builtin_truncf.
24554 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24555 and s_l[l]round[f].c too.
24556
24557 2017-10-23 Alan Modra <amodra@gmail.com>
24558
24559 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24560 Adjust stack after restoring regs. Add missing LR cfi_restore.
24561
24562 2017-10-23 Alan Modra <amodra@gmail.com>
24563
24564 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24565 Move LR save and frame setup/teardown and LR restore to
24566 immediately around memset call. Provide cfi.
24567
24568 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24569
24570 * sysdeps/i386/fpu/e_powf.S: Removed.
24571 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24572 * sysdeps/i386/fpu/w_powf.c: Likewise.
24573 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24574 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24575 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24576 Add e_powf-sse2.
24577 (CFLAGS-e_powf-sse2.c): New.
24578 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24579 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24580
24581 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24582
24583 * sysdeps/i386/fpu/e_log2f.S: Removed.
24584 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24585 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24586 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24587 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24588 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24589 Add e_log2f-sse2.
24590 (CFLAGS-e_log2f-sse2.c): New.
24591 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24592 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24593
24594 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24595
24596 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24597 Add e_powf-fma.
24598 (CFLAGS-e_powf-fma.c): New.
24599 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24600 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24601
24602 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24603
24604 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24605 Add e_log2f-fma.
24606 (CFLAGS-e_log2f-fma.c): New.
24607 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24608 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24609
24610 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24611
24612 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24613 Add e_logf-fma.
24614 (CFLAGS-e_logf-fma.c): New.
24615 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24616 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24617
24618 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24619
24620 * sysdeps/i386/fpu/e_logf.S: Removed.
24621 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24622 * sysdeps/i386/fpu/w_logf.c: Likewise.
24623 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24624 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24625 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24626 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24627 Add e_logf-sse2.
24628 (CFLAGS-e_logf-sse2.c): New.
24629 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24630 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24631
24632 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24633
24634 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24635 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24636 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24637 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24638 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24639 Add e_exp2f-sse2.
24640 (CFLAGS-e_exp2f-sse2.c): New.
24641 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24642 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24643
24644 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24645
24646 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24647 Add e_exp2f-fma.
24648 (CFLAGS-e_exp2f-fma.c): New.
24649 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24650 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24651
24652 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24653
24654 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24655 * sysdeps/i386/fpu/e_expf.S: Likewise.
24656 * sysdeps/i386/fpu/math_errf.c: Likewise.
24657 * sysdeps/i386/fpu/w_expf.c: Likewise.
24658 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24659 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24660 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24661 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24662 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24663 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24664 Remove e_expf-ia32.
24665 (CFLAGS-e_expf-sse2.c): New.
24666 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24667 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24668
24669 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24670
24671 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24672 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24673 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24674 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24675 e_expf.c.
24676 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24677 New.
24678 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24679 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24680 Renamed to ...
24681 (__redirect_expf): This.
24682 (SYMBOL_NAME): Changed to expf.
24683 (__ieee754_expf): Renamed to ...
24684 (__expf): This.
24685 (__GI___expf): This.
24686 (__ieee754_expf): Add strong_alias.
24687 (__expf_finite): Likewise.
24688 (__expf): New.
24689 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24690
24691 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24692
24693 [BZ #22332]
24694 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24695 unescaping.
24696
24697 2017-10-21 Florian Weimer <fweimer@redhat.com>
24698
24699 * posix/Makefile (tests): Add tst-glob-tilde.
24700 (tests-special): Add tst-glob-tilde-mem.out
24701 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24702 (tst-glob-tilde-mem.out): Add mtrace check.
24703 * posix/tst-glob-tilde.c: New file.
24704
24705 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24706
24707 * bits/floatn-common.h: New file.
24708 * math/Makefile (headers): Add bits/floatn-common.h.
24709 * bits/floatn.h: Include <bits/floatn-common.h>.
24710 * sysdeps/ia64/bits/floatn.h: Likewise.
24711 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24712 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24713 * sysdeps/powerpc/bits/floatn.h: Likewise.
24714 * sysdeps/x86/bits/floatn.h: Likewise.
24715
24716 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24717
24718 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24719 indicates whether compiler emits an warning for alias for
24720 functions with incompatible types.
24721
24722 [BZ #22273]
24723 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24724 the auxiliary process is terminated by a signal before calling _exit
24725 or execve.
24726
24727 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24728
24729 [BZ #21265]
24730 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24731 New.
24732 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24733 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24734 and bit_arch_XSAVEC_Usable if needed.
24735 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24736 and bit_arch_Use_dl_runtime_resolve_opt.
24737 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24738 Removed.
24739 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24740 (bit_arch_Prefer_No_AVX512): Updated.
24741 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24742 (bit_arch_XSAVEC_Usable): New.
24743 (STATE_SAVE_OFFSET): Likewise.
24744 (STATE_SAVE_MASK): Likewise.
24745 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24746 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24747 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24748 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24749 (index_arch_XSAVEC_Usable): New.
24750 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24751 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24752 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24753 is enabled.
24754 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24755 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24756 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24757 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24758 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24759 _dl_runtime_resolve_xsavec.
24760 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24761 Removed.
24762 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24763 instead of VEC_SIZE.
24764 (REGISTER_SAVE_BND0): Removed.
24765 (REGISTER_SAVE_BND1): Likewise.
24766 (REGISTER_SAVE_BND3): Likewise.
24767 (REGISTER_SAVE_RAX): Always defined to 0.
24768 (VMOV): Removed.
24769 (_dl_runtime_resolve_avx): Likewise.
24770 (_dl_runtime_resolve_avx_slow): Likewise.
24771 (_dl_runtime_resolve_avx_opt): Likewise.
24772 (_dl_runtime_resolve_avx512): Likewise.
24773 (_dl_runtime_resolve_avx512_opt): Likewise.
24774 (_dl_runtime_resolve_sse): Likewise.
24775 (_dl_runtime_resolve_sse_vex): Likewise.
24776 (USE_FXSAVE): New.
24777 (_dl_runtime_resolve_fxsave): Likewise.
24778 (USE_XSAVE): Likewise.
24779 (_dl_runtime_resolve_xsave): Likewise.
24780 (USE_XSAVEC): Likewise.
24781 (_dl_runtime_resolve_xsavec): Likewise.
24782 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24783 Removed.
24784 (_dl_runtime_resolve_avx512_opt): Likewise.
24785 (_dl_runtime_resolve_avx): Likewise.
24786 (_dl_runtime_resolve_avx_opt): Likewise.
24787 (_dl_runtime_resolve_sse): Likewise.
24788 (_dl_runtime_resolve_sse_vex): Likewise.
24789 (_dl_runtime_resolve_fxsave): New.
24790 (_dl_runtime_resolve_xsave): Likewise.
24791 (_dl_runtime_resolve_xsavec): Likewise.
24792
24793 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24794
24795 [BZ #22320]
24796 CVE-2017-15670
24797 * posix/glob.c (__glob): Fix one-byte overflow.
24798
24799 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24800
24801 * malloc/malloc.c (sysdep-cancel.h): Add include.
24802
24803 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24804
24805 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24806
24807 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24808
24809 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24810 (tests): Remove $(objpfx)ga_test depdendency.
24811 * resolv/ga_test.c: Remove file.
24812
24813 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24814
24815 [BZ #18812]
24816 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24817 * localedata/locales/kab_DZ: New file.
24818
24819 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24820
24821 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24822 _dl_relocate_static_pie instead of _dl_start to compute load
24823 address in static PIE.
24824
24825 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24826
24827 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24828
24829 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24830
24831 [BZ #13605]
24832 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24833 * localedata/locales/shn_MM: New file.
24834
24835 2017-10-20 Florian Weimer <fweimer@redhat.com>
24836
24837 [BZ #22321]
24838 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24839 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24840 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24841 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24842 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24843 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24844
24845 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24846
24847 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24848
24849 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24850
24851 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24852
24853 [BZ #22322]
24854 * sysdeps/mips/bits/long-double.h: Move to ....
24855 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24856
24857 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24858
24859 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24860
24861 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24862 H.J. Lu <hongjiu.lu@intel.com>
24863
24864 [BZ #22299]
24865 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24866 GLRO(dl_platform) to NULL.
24867 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24868 (modules-names): Add tst-platformmod-1 and
24869 x86_64/tst-platformmod-2.
24870 (CFLAGS-tst-platform-1.c): New.
24871 (CFLAGS-tst-platformmod-1.c): Likewise.
24872 (CFLAGS-tst-platformmod-2.c): Likewise.
24873 (LDFLAGS-tst-platformmod-2.so): Likewise.
24874 ($(objpfx)tst-platform-1): Likewise.
24875 ($(objpfx)tst-platform-1.out): Likewise.
24876 (tst-platform-1-ENV): Likewise.
24877 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24878 * sysdeps/x86_64/tst-platform-1.c: New file.
24879 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24880 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24881
24882 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24883
24884 [BZ #13994]
24885 * locale/iso-639.def: Add Karbi.
24886 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24887 * localedata/locales/mjw_IN: New file.
24888
24889 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24890
24891 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24892 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24893 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24894 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24895 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24896 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24897 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24898 <bits/floatn.h>.
24899 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24900 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24901 * manual/math.texi (Mathematics): Document additional architecture
24902 support for _Float128.
24903 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24904 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24905 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24906 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24907 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24908 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24909 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24910 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24911 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24912 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24913 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24914 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24915 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24916 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24917 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24918
24919 2017-10-18 Renlin Li <renlin.li@arm.com>
24920
24921 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24922 _DYNAMIC symbol to calculate load address.
24923
24924 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24925
24926 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24927 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24928 summary bits.
24929 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24930 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24931
24932 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24933
24934 [BZ #16777]
24935 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24936 and improve readability by using more ASCII.
24937 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24938 and improve readability by using more ASCII.
24939
24940 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24941
24942 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24943 not all targets support atomics on bool.
24944
24945 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24946
24947 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24948 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24949 __f128.
24950 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24951 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24952 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24953 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24954 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24955 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24956
24957 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24958
24959 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24960 defines.
24961
24962 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24963
24964 [BZ #22159]
24965 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24966 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24967 (do_check_remalloced_chunk): Fix build bug.
24968 (do_check_malloc_state): Add assert that checks arena->top.
24969 (malloc_consolidate): Remove initialization.
24970 (int_mallinfo): Remove call to malloc_consolidate.
24971 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24972
24973 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24974
24975 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24976 (have_fastchunks): Remove.
24977 (clear_fastchunks): Remove.
24978 (set_fastchunks): Remove.
24979 (malloc_state): Add have_fastchunks.
24980 (malloc_init_state): Use have_fastchunks.
24981 (do_check_malloc_state): Remove incorrect invariant checks.
24982 (_int_malloc): Use have_fastchunks.
24983 (_int_free): Likewise.
24984 (malloc_consolidate): Likewise.
24985
24986 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24987
24988 * malloc/malloc.c (tcache_put): Inline.
24989 (tcache_get): Inline.
24990
24991 2017-10-17 Jordi Mallach <jordi@gnu.org>
24992
24993 Aurelien Jarno <aurelien@aurel32.net>
24994 [BZ #2522]
24995 * localedata/locales/ca_ES@valencia: New file.
24996 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24997
24998 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24999
25000 [BZ #22296]
25001 * math/math.h: Let signbit use the builtin in C++ mode with gcc
25002 < 6.x
25003
25004 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25005
25006 * scripts/build-many-glibcs.py (Context.add_all_configs):
25007 Add arm-linux-gnueabihf multiarch extra_glibcs.
25008
25009 * sysdeps/generic/ifunc-init.h: New file.
25010 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
25011
25012 2017-10-17 Mike FABIAN <mfabian@redhat.com>
25013
25014 [BZ #22019]
25015 * localedata/locales/el_GR: Set n_cs_precedes to 0.
25016 * localedata/locales/el_CY: copy "el_GR" because it is identical.
25017 * stdlib/tst-strfmon_l.c: adapt test case.
25018
25019 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25020
25021 * sysdeps/generic/float128-abi.h: New file.
25022 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
25023 non-__prefixed symbols to ....
25024 * math/Versions: ... here. Include <float128-abi.h>.
25025 * stdlib/Versions ... and here. Include <float128-abi.h>
25026
25027 2017-10-16 Florian Weimer <fweimer@redhat.com>
25028
25029 * version.h (VERSION): Switch to ".9000" as the development
25030 version suffix.
25031
25032 2017-10-16 Florian Weimer <fweimer@redhat.com>
25033
25034 [BZ #22050]
25035 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
25036 compat_symbol_reference to access non-default version.
25037
25038 2017-10-16 Florian Weimer <fweimer@redhat.com>
25039
25040 * malloc/Makefile (others-extras): Set to mcheck-init.o.
25041
25042 2017-10-16 Carlos O'Donell <carlos@redhat.com>
25043
25044 * include/shlib-compat.h (compat_symbol_reference): Update
25045 comment.
25046
25047 2017-10-16 Joseph Myers <joseph@codesourcery.com>
25048
25049 * math/Makefile (test-types): Add
25050 $(type-float128-$(float128-alias-fcts)).
25051 * math/test-float128.h (TYPE_STR): Define conditional on
25052 [FLT128_MANT_DIG == LDBL_MANT_DIG].
25053 (ULP_IDX): Likewise.
25054 (ULP_I_IDX): Likewise.
25055
25056 * stdlib/strtold.c: Include <bits/floatn.h>
25057 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
25058 and later undefine as macro. Define as weak alias if
25059 [!USE_WIDE_CHAR].
25060 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
25061 and later undefine as macro. Define as weak alias if
25062 [USE_WIDE_CHAR].
25063 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
25064 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
25065 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
25066 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25067 Define and later undefine as macro. Define as weak alias if
25068 [USE_WIDE_CHAR].
25069 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25070 <bits/floatn.h>.
25071 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25072 Define and later undefine as macro. Define as weak alias if
25073 [!USE_WIDE_CHAR].
25074 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25075 Define and later undefine as macro. Define as weak alias if
25076 [USE_WIDE_CHAR].
25077
25078 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25079
25080 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25081 record_verbose messages.
25082
25083 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25084
25085 [BZ #22052]
25086 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25087 to silence -O3 -Wall warning with GCC 7.
25088
25089 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25090
25091 * Makeconfig (+link-static-before-libc): Use the first of
25092 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25093 * gmon/Makefile (tests): Add tst-gmon-static.
25094 (tests-static): Likewise.
25095 (CFLAGS-tst-gmon-static.c): New.
25096 (CRT-tst-gmon-static): Likewise.
25097 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25098 (tst-gmon-static-ENV): Likewise.
25099 (tests-special): Likewise.
25100 ($(objpfx)tst-gmon-static.out): Likewise.
25101 (clean-tst-gmon-static-data): Likewise.
25102 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25103 * gmon/tst-gmon-static-gprof.sh: New file.
25104 * gmon/tst-gmon-static.c: Likewise.
25105
25106 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25107
25108 [BZ #22295]
25109 * locale/programs/linereader.c (get_string): Don't warn on
25110 non-symbolic character.
25111
25112 [BZ #22294]
25113 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25114 int_curr_symbol.
25115
25116 [BZ #22292]
25117 * locale/programs/record-status.h: New file
25118 * locale/programs/locale.c: Add comment.
25119 * locale/programs/charmap-dir.c: Don't include error.h.
25120 (charmap_opendir): Use record_error.
25121 * locale/programs/charmap.c: Don't include error.h.
25122 (charmap_read): Use record_error, and record_warning.
25123 (parse_charmap): Likewise.
25124 * locale/programs/ld-address.c: Don't include error.h.
25125 (address_finish): Use record_error, and record_warning.
25126 * locale/programs/ld-collate.c: Don't include error.h.
25127 (collate_finish): Use record_error, and record_error_at_line.
25128 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25129 (ctype_class_new): Likewise.
25130 (ctype_map_new): Likewise.
25131 (set_one_default): Likewise.
25132 (set_class_defaults): Likewise.
25133 (translit_flatten): Likewise.
25134 (allocate_arrays): Use record_error, and record_verbose.
25135 * locale/programs/ld-identification.c: Don't include error.h.
25136 (indentation_finish): Use record_error and record_warning.
25137 * locale/programs/ld-measurement.c: Don't include error.h.
25138 (measurement_finish): Use record_error.
25139 * locale/programs/ld-messages.c
25140 (message_finish): Likewise.
25141 * locale/programs/ld-monetary.c
25142 (monetary_finish): Likewise.
25143 * locale/programs/ld-name.c (name_finish): Use record_error
25144 and record_warning.
25145 * locale/programs/ld-numeric.c
25146 (numeric_finish): Use record_error.
25147 * locale/programs/ld-paper.c: Don't include error.h.
25148 (paper_finish): Use record_error.
25149 * locale/programs/ld-telephone.c: Don't include error.h.
25150 (telephone_finish): Use record_error.
25151 * locale/programs/ld-time.c (time_finish): Likewise.
25152 * locale/programs/linereader.h (lr_error): Make inline func.
25153 * locale/programs/localedef.c: Define recorded_warning_count,
25154 and recorded_error_count.
25155 (main): Use record_error. Use recorded_error_count and
25156 recorded_warning_count to issue correct error returns.
25157 (add_to_readlist): Use record_error.
25158 (find_locale): Likewise.
25159 (load_locale): Likewise.
25160 * locale/programs/localedef.h: Remove be_quiet
25161 and WITH_CUR_LOCALE.
25162 * locale/programs/locarchive.c (compare_from_file): Use
25163 record_error.
25164 * locale/programs/locfile.c (write_locale_data): Use
25165 record_error.
25166 * locale/programs/repertoire.c: Dont include error.h.
25167 (repertoire_complain): Use record_error.
25168 * localedata/tst-fmon.sh: Expect failures from localedef.
25169 * localedata/tst-locale.sh: Likewise.
25170 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25171
25172 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25173 (REPORTS): Likewise.
25174 (check): Likewise.
25175 (i18n): Rename to...
25176 (i18n_ctype): ...this.
25177 (i18n-report): Rename to...
25178 (i18n_ctype-report): ...this.
25179 * localedata/locales/i18n_ctype: Regenerate.
25180 * localedata/locales/i18n: copy i18n_ctype.
25181
25182 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25183
25184 * stdlib/strfroml.c: Include <bits/floatn.h>.
25185 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25186 Define before include of <stdlib.h> and undefine afterwards, then
25187 define as weak alias.
25188
25189 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25190 Undefine and restore default definition. Use
25191 libm_alias_ldouble_other.
25192
25193 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25194
25195 [BZ #22153]
25196 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25197 in coredumps.
25198
25199 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25200
25201 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25202 Assign sym_map to be map for local symbols, as TLS relocations
25203 use sym_map to determine whether the symbol is defined and to
25204 extract the TLS information.
25205 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25206 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25207
25208 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25209
25210 [BZ #22189]
25211 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25212 (math_force_eval): Add powerpc version.
25213
25214 [BZ #22142]
25215 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25216 -DBL_MAX.
25217 (do_test): Likewise.
25218 * stdio-common/tst-printf.sh: Likewise.
25219 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25220 ifdef clause in order to set the carry bit right. Replace r0 by
25221 0 without changing the behavior.
25222
25223 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25224
25225 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25226 <libm-alias-ldouble.h>.
25227 (fabsl): Define using libm_alias_ldouble.
25228 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25229 <libm-alias-ldouble.h>.
25230 (fabsl): Define using libm_alias_ldouble.
25231
25232 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25233 Remove conditional code.
25234
25235 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25236 Rename to __clog10_internal_l.
25237 (__clog10_internal_l): Define aliases using
25238 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25239 with __clog10.
25240
25241 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25242
25243 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25244 * benchtests/sincosf-inputs: New file.
25245 * benchtests/cosf-inputs: New file.
25246 * benchtests/sinf-inputs: New file.
25247
25248 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25249
25250 * posix/tst-spawn.c (do_test): Wait for both children.
25251
25252 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25253
25254 [BZ #22284]
25255 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25256 tests-pie): Add tst-gmon-pie.
25257 (CFLAGS-tst-gmon-pie.c): New.
25258 (CRT-tst-gmon-pie): Likewise.
25259 (tst-gmon-pie-ENV): Likewise.
25260 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25261 ($(objpfx)tst-gmon-pie.out): Likewise.
25262 (clean-tst-gmon-pie-data): Likewise.
25263 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25264 * gmon/gmon.c [PIC]: Include <link.h>.
25265 [PIC] (callback): New function.
25266 (write_hist): Add an argument for load address. Subtract load
25267 address from PCs.
25268 (write_call_graph): Likewise.
25269 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25270 it to write_hist and write_call_graph.
25271 * gmon/tst-gmon-pie.c: New file.
25272
25273 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25274
25275 * math/Makefile (test-types-basic): New variable.
25276 (test-types): Likewise.
25277 (libm-test-support): Use $(test-types) instead of $(types).
25278 (libm-tests-base-normal): Likewise.
25279 (libm-tests-base-finite): Likewise.
25280 (libm-tests-base-inline): Likewise.
25281 (generated): Likewise.
25282 ($(objpfx)libm-test-support-$(t).c): Likewise.
25283 (libm-tests-for-type iterator): Likewise.
25284 (libm-test-support iterator): Likewise.
25285 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25286 (ulp_idx): Use ULP_IDX.
25287 * math/test-ldouble.h: Include <float.h>.
25288 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25289 (ULP_IDX): New macro.
25290 (ULP_I_IDX): Likewise.
25291 * math/test-double.h (ULP_IDX): Likewise.
25292 (ULP_I_IDX): Likewise.
25293 * math/test-float.h (ULP_IDX): Likewise.
25294 (ULP_I_IDX): Likewise.
25295 * math/test-float128.h (ULP_IDX): Likewise.
25296 (ULP_I_IDX): Likewise.
25297
25298 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25299
25300 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25301 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25302 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25303 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25304 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25305 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25306 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25307 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25308 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25309 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25310 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25311 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25312 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25313 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25314 (SINGLE_THREAD_BY_GLOBAL): Define.
25315 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25316 Likewise.
25317 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25318 Likewise.
25319 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25320 Likewise.
25321 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25322 Likewise.
25323 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25324 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25325 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25326 Likewise.
25327
25328 2017-10-11 Andreas Schwab <schwab@suse.de>
25329
25330 * nis/Makefile (aux): Remove.
25331 * nscd/Makefile (aux): Add nscd_hash.
25332 (nscd-modules): Likewise.
25333 ($(objpfx)nscd): Don't depend on libnsl.
25334 * nscd/nscd_hash.c: New file.
25335 * nscd/nscd_hash.h: Likewise.
25336 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25337 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25338 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25339 instead of <nis/rpcsvc/nis.h>.
25340 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25341
25342 2017-10-11 Florian Weimer <fweimer@redhat.com>
25343
25344 [BZ #22078]
25345 Avoid large NSS buffers with many addresses, aliases.
25346 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25347 using dynarrays and struct alloc_buffer.
25348 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25349 (tst-nss-files-hosts-multi): Link with -ldl.
25350 * nss/tst-nss-files-hosts-multi.c: New file.
25351
25352 2017-10-11 Florian Weimer <fweimer@redhat.com>
25353
25354 [BZ #18023]
25355 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25356 scratch_buffer. Eliminate gotos.
25357
25358 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25359
25360 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25361 libm_alias_ldouble_other.
25362 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25363 undefine and redefine.
25364 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25365 (exp10l): Do not define here.
25366 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25367 (weak_alias): Undefine and redefine.
25368 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25369 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25370 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25371 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25372
25373 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25374 [!__fma] (fma): Define using libm_alias_double.
25375 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25376 [!__fmaf] (fmaf): Define using libm_alias_float.
25377 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25378 (fmal): Define using libm_alias_ldouble.
25379
25380 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25381
25382 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25383 New macro.
25384 (libm_alias_double_other): Likewise.
25385 (libm_alias_double_r): Use libm_alias_double_other_r.
25386 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25387 New macro.
25388 (libm_alias_float_other): Likewise.
25389 (libm_alias_float_r): Use libm_alias_float_other_r.
25390 * sysdeps/generic/libm-alias-float128.h
25391 (libm_alias_float128_other_r): New macro.
25392 (libm_alias_float128_other): Likewise.
25393 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25394 * sysdeps/generic/libm-alias-ldouble.h
25395 (libm_alias_ldouble_other_r): New macro.
25396 (libm_alias_ldouble_other): Likewise.
25397 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25398 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25399 (libm_alias_double_other_r): New macro.
25400 (libm_alias_double_other): Likewise.
25401 (libm_alias_double_r): Use libm_alias_double_other_r.
25402 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25403 (libm_alias_ldouble_other_r): New macro.
25404 (libm_alias_ldouble_other): Likewise.
25405 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25406 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25407 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25408 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25409 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25410 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25411 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25412 * math/w_exp2f.c: Use libm_alias_float_other.
25413 * math/w_expf.c: Likewise.
25414 * math/w_log2f.c: Likewise.
25415 * math/w_logf.c: Likewise.
25416 * math/w_powf.c: Likewise.
25417 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25418 [!__exp2f]: Use libm_alias_float_other.
25419 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25420 [!__expf]: Use libm_alias_float_other.
25421 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25422 [!__log2f]: Use libm_alias_float_other.
25423 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25424 [!__logf]: Use libm_alias_float_other.
25425 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25426 [!__powf]: Use libm_alias_float_other.
25427
25428 2017-10-10 Florian Weimer <fweimer@redhat.com>
25429
25430 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25431 function.
25432 (_nss_files_gethostbyname3_r): Call it.
25433
25434 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25435
25436 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25437 error. Remove default definition of declare_mgen_alias.
25438 [!declare_mgen_alias_r]: Likewise.
25439 * sysdeps/generic/math-type-macros-double.h
25440 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25441 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25442 (declare_mgen_alias_r): Likewise.
25443 * sysdeps/generic/math-type-macros-float128.h
25444 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25445 * sysdeps/generic/math-type-macros-ldouble.h
25446 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25447 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25448 macro.
25449 (declare_mgen_alias_r_s): Likewise.
25450 (declare_mgen_alias_r): Likewise.
25451 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25452 (lgamma_r): Define using libm_alias_double_r.
25453 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25454 (lgammaf_r): Define using libm_alias_float_r.
25455 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25456 (lgammal_r): Define using libm_alias_ldouble_r.
25457 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25458 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25459
25460 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25461
25462 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25463 extern declaration.
25464
25465 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25466
25467 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25468
25469 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25470
25471 [BZ #21326]
25472 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25473 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25474 * math/Makefile (test-math-cxx11): New test.
25475 * math/test-math-cxx11.cc: New file.
25476
25477 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25478
25479 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25480
25481 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25482 call to allocate the slave pty file descriptor.
25483
25484 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25485
25486 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25487 [!__fma] (fma): Define using libm_alias_double.
25488 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25489 [!__fma] (fma): Define using libm_alias_double.
25490
25491 * sysdeps/ieee754/float128/float128_private.h: Include
25492 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25493 (libm_alias_ldouble_r): Undefine and redefine.
25494 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25495 <libm-alias-ldouble.h>.
25496 (asinhl): Define using libm_alias_ldouble.
25497 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25498 <libm-alias-ldouble.h>.
25499 (atanl): Define using libm_alias_ldouble.
25500 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25501 <libm-alias-ldouble.h>.
25502 (cbrtl): Define using libm_alias_ldouble.
25503 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25504 <libm-alias-ldouble.h>.
25505 (ceill): Define using libm_alias_ldouble.
25506 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25507 <libm-alias-ldouble.h>.
25508 (copysignl): Define using libm_alias_ldouble.
25509 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25510 <libm-alias-ldouble.h>.
25511 (cosl): Define using libm_alias_ldouble.
25512 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25513 <libm-alias-ldouble.h>.
25514 (erfl): Define using libm_alias_ldouble.
25515 (erfcl): Likewise.
25516 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25517 <libm-alias-ldouble.h>.
25518 (expm1l): Define using libm_alias_ldouble.
25519 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25520 <libm-alias-ldouble.h>.
25521 (fabsl): Define using libm_alias_ldouble.
25522 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25523 <libm-alias-ldouble.h>.
25524 (floorl): Define using libm_alias_ldouble.
25525 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25526 <libm-alias-ldouble.h>.
25527 (fmal): Define using libm_alias_ldouble.
25528 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25529 <libm-alias-ldouble.h>.
25530 (frexpl): Define using libm_alias_ldouble.
25531 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25532 libm_alias_ldouble.
25533 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25534 <libm-alias-ldouble.h>.
25535 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25536 libm_alias_ldouble.
25537 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25538 <libm-alias-ldouble.h>.
25539 (getpayloadl): Define using libm_alias_ldouble.
25540 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25541 <libm-alias-ldouble.h>.
25542 (llrintl): Define using libm_alias_ldouble.
25543 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25544 <libm-alias-ldouble.h>.
25545 (llroundl): Define using libm_alias_ldouble.
25546 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25547 <libm-alias-ldouble.h>.
25548 (logbl): Define using libm_alias_ldouble.
25549 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25550 <libm-alias-ldouble.h>.
25551 (lrintl): Define using libm_alias_ldouble.
25552 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25553 <libm-alias-ldouble.h>.
25554 (lroundl): Define using libm_alias_ldouble.
25555 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25556 <libm-alias-ldouble.h>.
25557 (modfl): Define using libm_alias_ldouble.
25558 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25559 <libm-alias-ldouble.h>.
25560 (nearbyintl): Define using libm_alias_ldouble.
25561 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25562 <libm-alias-ldouble.h>.
25563 (nextafterl): Define using libm_alias_ldouble.
25564 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25565 <libm-alias-ldouble.h>.
25566 (nextupl): Define using libm_alias_ldouble.
25567 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25568 <libm-alias-ldouble.h>.
25569 (remquol): Define using libm_alias_ldouble.
25570 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25571 <libm-alias-ldouble.h>.
25572 (rintl): Define using libm_alias_ldouble.
25573 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25574 <libm-alias-ldouble.h>.
25575 (roundevenl): Define using libm_alias_ldouble.
25576 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25577 <libm-alias-ldouble.h>.
25578 (roundl): Define using libm_alias_ldouble.
25579 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25580 using libm_alias_ldouble.
25581 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25582 <libm-alias-ldouble.h>.
25583 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25584 Define using libm_alias_ldouble.
25585 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25586 <libm-alias-ldouble.h>.
25587 (sincosl): Define using libm_alias_ldouble.
25588 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25589 <libm-alias-ldouble.h>.
25590 (sinl): Define using libm_alias_ldouble.
25591 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25592 <libm-alias-ldouble.h>.
25593 (tanhl): Define using libm_alias_ldouble.
25594 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25595 <libm-alias-ldouble.h>.
25596 (tanl): Define using libm_alias_ldouble.
25597 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25598 <libm-alias-ldouble.h>.
25599 (totalorderl): Define using libm_alias_ldouble.
25600 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25601 <libm-alias-ldouble.h>.
25602 (totalordermagl): Define using libm_alias_ldouble.
25603 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25604 <libm-alias-ldouble.h>.
25605 (truncl): Define using libm_alias_ldouble.
25606 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25607 libm_alias_ldouble.
25608 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25609 libm_alias_ldouble.
25610 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25611 <libm-alias-ldouble.h>.
25612 (weak_alias): Do not undefine and redefine.
25613 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25614 (copysignl): Define with long_double_symbol only if [IS_IN
25615 (libc)].
25616 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25617 <libm-alias-ldouble.h>.
25618 (weak_alias): Do not undefine and redefine.
25619 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25620 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25621 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25622 <libm-alias-ldouble.h>.
25623 (weak_alias): Do not undefine and redefine.
25624 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25625 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25626 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25627 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25628 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25629 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25630 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25631 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25632 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25633 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25634 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25635 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25636 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25637 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25638 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25639 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25640 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25641 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25642 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25643 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25644 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25645 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25646 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25647 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25648 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25649 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25650
25651 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25652
25653 [BZ #22111]
25654 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25655 (tcache_thread_freeres): Set tcache_shutting_down before
25656 freeing the tcache.
25657 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25658 * malloc/tst-malloc-tcache-leak.c: New file.
25659
25660 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25661
25662 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25663 back to powerpc32 file.
25664 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25665 (memrchr): Add __memrchr_power8 to ifunc list.
25666 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25667 extra bytes for unaligned inputs.
25668
25669 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25670
25671 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25672 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25673 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25674 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25675 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25676
25677 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25678
25679 * sysdeps/arm/libm-test-ulps: Update.
25680
25681 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25682 <libm-alias-ldouble.h>.
25683 (asinhl): Define using libm_alias_ldouble.
25684 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25685 <libm-alias-ldouble.h>.
25686 (cbrtl): Define using libm_alias_ldouble.
25687 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25688 <libm-alias-ldouble.h>.
25689 (copysignl): Define using libm_alias_ldouble.
25690 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25691 <libm-alias-ldouble.h>.
25692 (cosl): Define using libm_alias_ldouble.
25693 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25694 <libm-alias-ldouble.h>.
25695 (erfl): Define using libm_alias_ldouble.
25696 (erfcl): Likewise.
25697 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25698 <libm-alias-ldouble.h>.
25699 (fmal): Define using libm_alias_ldouble.
25700 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25701 <libm-alias-ldouble.h>.
25702 (frexpl): Define using libm_alias_ldouble.
25703 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25704 libm_alias_ldouble.
25705 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25706 <libm-alias-ldouble.h>.
25707 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25708 libm_alias_ldouble.
25709 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25710 <libm-alias-ldouble.h>.
25711 (getpayloadl): Define using libm_alias_ldouble.
25712 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25713 <libm-alias-ldouble.h>.
25714 (llrintl): Define using libm_alias_ldouble.
25715 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25716 <libm-alias-ldouble.h>.
25717 (llroundl): Define using libm_alias_ldouble.
25718 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25719 <libm-alias-ldouble.h>.
25720 (lrintl): Define using libm_alias_ldouble.
25721 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25722 <libm-alias-ldouble.h>.
25723 (lroundl): Define using libm_alias_ldouble.
25724 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25725 <libm-alias-ldouble.h>.
25726 (modfl): Define using libm_alias_ldouble.
25727 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25728 <libm-alias-ldouble.h>.
25729 (nextupl): Define using libm_alias_ldouble.
25730 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25731 <libm-alias-ldouble.h>.
25732 (remquol): Define using libm_alias_ldouble.
25733 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25734 <libm-alias-ldouble.h>.
25735 (roundevenl): Define using libm_alias_ldouble.
25736 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25737 <libm-alias-ldouble.h>.
25738 (roundl): Define using libm_alias_ldouble.
25739 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25740 using libm_alias_ldouble.
25741 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25742 <libm-alias-ldouble.h>.
25743 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25744 <libm-alias-ldouble.h>.
25745 (setpayloadsigl): Define using libm_alias_ldouble.
25746 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25747 <libm-alias-ldouble.h>.
25748 (sincosl): Define using libm_alias_ldouble.
25749 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25750 <libm-alias-ldouble.h>.
25751 (sinl): Define using libm_alias_ldouble.
25752 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25753 <libm-alias-ldouble.h>.
25754 (tanhl): Define using libm_alias_ldouble.
25755 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25756 <libm-alias-ldouble.h>.
25757 (tanl): Define using libm_alias_ldouble.
25758 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25759 <libm-alias-ldouble.h>.
25760 (totalorderl): Define using libm_alias_ldouble.
25761 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25762 <libm-alias-ldouble.h>.
25763 (totalordermagl): Define using libm_alias_ldouble.
25764 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25765 libm_alias_ldouble.
25766 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25767 libm_alias_ldouble.
25768
25769 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25770
25771 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25772 memmove_falkor.
25773 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25774 (__libc_ifunc_impl_list): Likewise.
25775 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25776 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25777
25778 * benchtests/bench-memmove-walk.c: New file.
25779 * benchtests/Makefile (string-benchset): Add it.
25780
25781 * benchtests/bench-memset-walk.c: New file.
25782 * benchtests/Makefile (string-benchset): Add it.
25783
25784 * benchtests/bench-memcpy-walk.c: New file.
25785 * benchtests/Makefile (string-benchset): Add it.
25786
25787 2017-10-05 Florian Weimer <fweimer@redhat.com>
25788
25789 nscd: Eliminate compilation time dependency in the build output.
25790 * nscd/nscd_stat.c (STATDATA_VERSION)
25791 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25792 (STATDATA_VERSION_FULL): New macro definitions.
25793 (compilation): Remove.
25794 (struct statdata): Adjust version member.
25795 (send_stats): Set version from STATDATA_VERSION_FULL.
25796 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25797
25798 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25799
25800 * configure.ac (--enable-add-ons): Remove option.
25801 (machine): Do not mention add-ons in comment.
25802 (LIBC_PRECONFIGURE): Likewise.
25803 (add_ons): Remove variable and sanity checks and logic to locate
25804 add-ons.
25805 (add_ons_automatic): Remove variable.
25806 (configured_add_ons): Likewise.
25807 (add_ons_sfx): Likewise.
25808 (add_ons_pfx): Likewise.
25809 (add_on_subdirs): Likewise.
25810 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25811 consideration of add-ons in Implies handling.
25812 (sysdeps_add_ons): Likewise.
25813 * configure: Regenerated.
25814 * libidn/configure.ac: Remove.
25815 * libidn/configure: Likewise.
25816 * sysdeps/unix/inet/configure.ac: New file.
25817 * sysdeps/unix/inet/configure: New generated file.
25818 * sysdeps/unix/inet/Subdirs: Add libidn.
25819 * Makeconfig (sysdeps-srcdirs): Remove variable.
25820 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25821 ($(common-objpfx)config.status): Do not depend on add-on files.
25822 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25823 comment.
25824 (all-subdirs): Do not include $(add-on-subdirs).
25825 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25826 * config.make.in (add-ons): Remove variable.
25827 (add-on-subdirs): Likewise.
25828 (sysdeps-add-ons): Likewise.
25829 * manual/Makefile (add-chapters): Remove.
25830 ($(objpfx)texis): Do not depend on $(add-chapters).
25831 (nonexamples): Do not handle $(add-chapters).
25832 (examples): Do not handle $(add-ons).
25833 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25834 libc-texinfo.sh.
25835 * manual/install.texi (Installation): Do not mention add-ons.
25836 (--enable-add-ons): Do not document configure option.
25837 * INSTALL: Regenerated.
25838 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25839 * manual/maint.texi (Hierarchy Conventions): Do not mention
25840 add-ons.
25841 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25842 --enable-add-ons.
25843 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25844 add-ons.
25845 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25846 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25847
25848 2017-10-05 Andreas Schwab <schwab@suse.de>
25849
25850 [BZ #15142]
25851 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25852 (_IO_flush_all_lockp): Always lock list_all_lock.
25853 (_IO_flush_all_linebuffered): Likewise.
25854 (_IO_unbuffer_all): Likewise.
25855
25856 2017-10-05 Florian Weimer <fweimer@redhat.com>
25857
25858 [BZ #15436]
25859 Do not flush stdio streams on abort.
25860 * stdlib/abort.c (fflush): Remove macro definition.
25861 (abort): Remove stages related to stdio flushing.
25862
25863 2017-10-05 Florian Weimer <fweimer@redhat.com>
25864
25865 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25866
25867 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25868
25869 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25870
25871 2017-10-05 Florian Weimer <fweimer@redhat.com>
25872
25873 * support/support_format_hostent.c (support_format_hostent): Add
25874 more error information for NETDB_INTERNAL.
25875
25876 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25877
25878 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25879 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25880 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25881 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25882 AC_DEFINE if multi-arch is enabled.
25883 * sysdeps/i386/configure: Regenerated.
25884
25885 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25886
25887 * Makeconfig (+link-static-before-libc): Use
25888 $(DEFAULT-LDFLAGS-$(@F)).
25889 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25890 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25891 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25892
25893 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25894
25895 * elf/Makefile (tests): Add tst-main1.
25896 (modules-names): Add tst-main1mod.
25897 ($(objpfx)tst-main1): New.
25898 (CRT-tst-main1): Likewise.
25899 (LDFLAGS-tst-main1): Likewise.
25900 (LDLIBS-tst-main1): Likewise.
25901 (tst-main1mod.so-no-z-defs): Likewise.
25902 * elf/tst-main1.c: New file.
25903 * elf/tst-main1mod.c: Likewise.
25904
25905 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25906
25907 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25908
25909 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25910
25911 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25912 (fma): Define using libm_alias_double.
25913 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25914 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25915 <math_ldbl_opt.h>.
25916 (fmal): Do not define as compat symbol here.
25917 * sysdeps/alpha/fpu/s_fma.c: New file.
25918
25919 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25920
25921 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25922
25923 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25924
25925 [BZ #22229]
25926 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25927 <math_ldbl_opt.h>
25928 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25929 and libc.
25930 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25931 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25932 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25933 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25934 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25935 Include <math_ldbl_opt.h>
25936 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25937 and libc.
25938 (compat_symbol): Undefine and redefine.
25939 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25940 <math_ldbl_opt.h>
25941 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25942 (compat_symbol): Undefine and redefine.
25943 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25944 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25945 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25946 GLIBC_2_1 for libm.
25947 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25948 GLIBC_2.0 copysignl symbol.
25949 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25950 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25951
25952 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25953
25954 2017-10-04 Florian Weimer <fweimer@redhat.com>
25955
25956 * scripts/check-local-headers.sh: Ignore nspr4 header file
25957 directory in addition to nspr.
25958
25959 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25960
25961 [BZ #17956]
25962 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25963 * configure: Regenerate.
25964 * crypt/Makefile (nss-cpp-flags): New variable.
25965 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25966 (CPPFLAGS-md5-crypt.c): Use it.
25967 * scripts/check-local-headers.sh: Ignore nspr header file
25968 directory.
25969
25970 2017-10-04 Andreas Schwab <schwab@suse.de>
25971
25972 * nis/Makefile (services): Remove compat.
25973 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25974 ($(objpfx)libnss_compat.so): Remove rule.
25975 * nis/Versions (libnss_compat): Remove.
25976 * nss/Makefile (services): Add compat.
25977 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25978 * nss/Versions (libnss_compat): Define.
25979 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25980 Don't include <rpc/types.h>. Replace bool_t by bool.
25981 * nss/nss_compat/compat-initgroups.c: Likewise.
25982 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25983 instead of <rpcsrv/ypclnt.h>.
25984 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25985 yp_get_default_domain.
25986 * nss/nss_compat/compat-pwd.c: Likewise.
25987 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25988 yp_get_default_domain.
25989 * nss/nss_compat/nisdomain.c: New file.
25990 * nss/nss_compat/nisdomain.h: Likewise.
25991
25992 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25993
25994 [BZ #22244]
25995 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25996 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25997
25998 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25999
26000 [BZ #22243]
26001 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
26002 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
26003
26004 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26005
26006 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
26007 "movl main@GOTOFF(%ebx), %eax".
26008
26009 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26010
26011 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
26012 allow undefined _DYNAMIC in PIE libc.a.
26013 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
26014 Likewse.
26015
26016 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26017
26018 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
26019 check _DYNAMIC.
26020
26021 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26022
26023 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
26024 check _DYNAMIC.
26025
26026 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26027
26028 * math/test-math-iscanonical.cc (error): Replace bool with int.
26029
26030 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26031
26032 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
26033 (modf): Define using libm_alias_double, only if [!__modf].
26034 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
26035 <libm-alias-double.h>.
26036 (modf): Define using libm_alias_double, only if [!__modf].
26037 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
26038 compat symbol here.
26039 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
26040 (weak_alias): Do not undefine and redefine.
26041 (strong_alias): Likewise.
26042 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
26043 (weak_alias): Likewise.
26044 (strong_alias): Likewise.
26045
26046 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
26047 (logb): Define using libm_alias_double, only if [!__logb].
26048 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
26049 <libm-alias-double.h>.
26050 (logb): Define using libm_alias_double, only if [!__logb].
26051 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
26052 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
26053 (weak_alias): Do not undefine and redefine.
26054 (strong_alias): Likewise.
26055 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
26056 (weak_alias): Likewise.
26057 (strong_alias): Likewise.
26058
26059 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26060
26061 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
26062 Check SHARED instead PIC.
26063
26064 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26065
26066 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
26067 [!__fmaf] (fmaf): Define using libm_alias_float.
26068
26069 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26070 (frexp): Define using libm_alias_double.
26071 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26072 <libm-alias-double.h>.
26073 (frexp): Define using libm_alias_double.
26074 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26075 compat symbol here.
26076
26077 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26078
26079 [BZ #22235]
26080 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26081 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26082 (CFLAGS-test-math-iscanonical.cc): New variable.
26083 * math/test-math-iscanonical.cc: New file.
26084 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26085 Provide a C++ implementation based on function overloading,
26086 rather than using __MATH_TG, which uses C-only builtins.
26087 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26088 Likewise.
26089 * sysdeps/powerpc/powerpc64le/Makefile
26090 (CFLAGS-test-math-iscanonical.cc): New variable.
26091
26092 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26093
26094 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26095 (ceil): Define using libm_alias_double.
26096 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26097 (floor): Define using libm_alias_double.
26098 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26099 <libm-alias-double.h>.
26100 (llround): Define using libm_alias_double.
26101 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26102 <libm-alias-double.h>.
26103 (lround): Define using libm_alias_double.
26104 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26105 <libm-alias-double.h>.
26106 (nearbyint): Define using libm_alias_double.
26107 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26108 <libm-alias-double.h>.
26109 (remquo): Define using libm_alias_double.
26110 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26111 (rint): Define using libm_alias_double.
26112 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26113 (round): Define using libm_alias_double.
26114 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26115 (trunc): Define using libm_alias_double.
26116 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26117 <libm-alias-double.h>.
26118 (ceil): Define using libm_alias_double.
26119 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26120 <libm-alias-double.h>.
26121 (floor): Define using libm_alias_double.
26122 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26123 <libm-alias-double.h>.
26124 (llround): Define using libm_alias_double.
26125 [_LP64] (lround): Likewise.
26126 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26127 <libm-alias-double.h>.
26128 [!_LP64] (lround): Define using libm_alias_double.
26129 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26130 <libm-alias-double.h>.
26131 (nearbyint): Define using libm_alias_double.
26132 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26133 <libm-alias-double.h>.
26134 (remquo): Define using libm_alias_double.
26135 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26136 <libm-alias-double.h>.
26137 (rint): Define using libm_alias_double.
26138 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26139 <libm-alias-double.h>.
26140 (round): Define using libm_alias_double.
26141 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26142 <libm-alias-double.h>.
26143 (trunc): Define using libm_alias_double.
26144 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26145 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26146 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26147 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26148 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26149 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26150 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26151 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26152 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26153
26154 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26155
26156 * math/w_remainder.c: New file.
26157 * math/w_remainderf.c: New file.
26158 * math/w_remainderl.c: New file.
26159
26160 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26161
26162 * elf/rtld.c (BOOTSTRAP_MAP): New.
26163 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26164 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26165 Likewise.
26166 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26167 Likewise.
26168 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26169 Likewise.
26170
26171 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26172
26173 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26174 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26175 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26176 rtld_hidden_data_ver): Define to empty.
26177 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26178 __assert_perror_fail): Likewise.
26179 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26180 (__rewinddir): Likewise.
26181 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26182 (__profile_frequency): Likewise.
26183 * include/setjmp.h (__sigsetjmp): Likewise.
26184 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26185 __libc_sigaction): Likewise.
26186 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26187 not set hidden attribute.
26188 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26189 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26190 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26191 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26192 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26193 __fxstatat64): Likewise.
26194 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26195 (__uname): Likewise.
26196 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26197 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26198 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26199 (NO_RTLD_HIDDEN): Set.
26200 * sysdeps/mach/hurd/configure: Refresh.
26201 * config.h.in: Refresh.
26202
26203 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26204
26205 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26206 (atan): Define using libm_alias_double.
26207 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26208 (tan): Define using libm_alias_double.
26209 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26210 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26211
26212 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26213 define as weak alias of __atan. Do not define any aliases if
26214 [__atan].
26215 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26216 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26217 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26218 as weak alias of __tan. Do not define any aliases if [__tan].
26219 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26220 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26221 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26222 __atan.
26223 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26224 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26225 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26226 and define as weak alias of __atan.
26227 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26228 __atan.
26229 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26230 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26231 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26232 define as weak alias of __tan.
26233
26234 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26235
26236 * math/w_lgamma.c: New file.
26237 * math/w_lgammaf.c: New file.
26238 * math/w_lgammal.c: New file.
26239
26240 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26241
26242 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26243 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26244 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26245 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26246 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26247 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26248 * sysdeps/i386/fpu/w_log2f.c: New file.
26249 * sysdeps/i386/fpu/w_logf.c: New file.
26250 * sysdeps/i386/fpu/w_powf.c: New file.
26251 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26252 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26253 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26254
26255 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26256 H.J. Lu <hongjiu.lu@intel.com>
26257
26258 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26259 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26260 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26261 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26262 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26263 the new expf code.
26264 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26265 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26266 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26267 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26268 * sysdeps/i386/fpu/w_exp2f.c: New file.
26269 * sysdeps/i386/fpu/w_expf.c: New file.
26270 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26271 * sysdeps/x86_64/fpu/w_expf.c: New file.
26272
26273 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26274
26275 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26276 (log2f): Likewise.
26277 (powf): Likewise.
26278 * math/w_log2f.c: New file.
26279 * math/w_logf.c: New file.
26280 * math/w_powf.c: New file.
26281 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26282 * math/w_logf_compat.c (__logf_compat): Likewise.
26283 * math/w_powf_compat.c (__powf_compat): Likewise.
26284 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26285 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26286 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26287 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26288 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26289 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26290 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26291 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26292 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26293 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26294 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26295 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26296 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26297 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26298 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26299 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26300 Likewise.
26301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26302 Likewise.
26303 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26304 Likewise.
26305 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26306 Likewise.
26307 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26308 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26309 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26310 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26311 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26312 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26313 Likewise.
26314 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26315 Likewise.
26316 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26317 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26318 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26319
26320 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26321
26322 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26323 (sysdep_routines): Add memrchr_power8.
26324 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26325 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26326 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26327 New file.
26328 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26329 (memrchr): Add __memrchr_power8 to ifunc list.
26330 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26331
26332 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26333
26334 [BZ #18822]
26335 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26336 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26337 libc_hidden_def.
26338 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26339 (__posix_fallocate64_l64): Likewise.
26340
26341 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26342
26343 [BZ #18822]
26344 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26345 (__sched_setaffinity_new): Add libc_hidden_proto and
26346 libc_hidden_def.
26347
26348 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26349
26350 [BZ #18822]
26351 * include/glob.h (__glob64): Add libc_hidden_proto.
26352 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26353 libc_hidden_def.
26354
26355 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26356
26357 [BZ #18822]
26358 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26359 attribute_hidden.
26360
26361 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26362
26363 [BZ #18822]
26364 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26365
26366 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26367
26368 [BZ #18822]
26369 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26370 libc_hidden_def.
26371
26372 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26373
26374 [BZ #18822]
26375 * csu/version.c (__libc_print_version): Add attribute_hidden.
26376
26377 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26378
26379 [BZ #18822]
26380 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26381
26382 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26383
26384 [BZ #18822]
26385 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26386
26387 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26388
26389 [BZ #18822]
26390 * nscd/nscd_helper.c (__nis_hash): New prototype.
26391
26392 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26393
26394 [BZ #18822]
26395 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26396 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26397 libc_hidden_def.
26398 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26399 * termios/tcgetattr.c (__tcgetattr): Likewise.
26400
26401 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26402
26403 [BZ #18822]
26404 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26405 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26406 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26407 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26408 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26409
26410 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26411
26412 [BZ #18822]
26413 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26414
26415 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26416
26417 [BZ #18822]
26418 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26419 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26420
26421 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26422
26423 [BZ #18822]
26424 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26425
26426 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26427
26428 [BZ #18822]
26429 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26430 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26431
26432 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26433
26434 [BZ #18822]
26435 * include/ifreq.h: New file.
26436 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26437 (__ifreq): Likewise.
26438 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26439 (__ifreq): Likewise.
26440
26441 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26442
26443 [BZ #18822]
26444 * include/idna.h: New file.
26445 * inet/getnameinfo.c: Include <idna.h> instead of
26446 <libidn/idna.h>.
26447 (__idna_to_unicode_lzlz): Removed.
26448 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26449 <libidn/idna.h>.
26450 (__idna_to_ascii_lz): Removed.
26451 (__idna_to_unicode_lzlz): Likewise.
26452
26453 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26454
26455 [BZ #18822]
26456 * include/plural-exp.h: New file.
26457 * intl/plural-exp.c: Include <plural-exp.h> instead of
26458 "plural-exp.h".
26459
26460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26461
26462 [BZ #18822]
26463 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26464 "getsourcefilter.h".
26465 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26466 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26467 "getsourcefilter.h".
26468 (__get_sol): Removed.
26469
26470 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26471
26472 [BZ #18822]
26473 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26474 to ...
26475 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26476
26477 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26478
26479 [BZ #18822]
26480 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26481 attribute_hidden.
26482
26483 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26484
26485 [BZ #18822]
26486 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26487
26488 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26489
26490 [BZ #18822]
26491 * include/search.h (__tdestroy): Add libc_hidden_proto.
26492 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26493
26494 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26495
26496 [BZ #18822]
26497 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26498
26499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26500
26501 [BZ #18822]
26502 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26503 attribute_hidden.
26504
26505 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26506
26507 [BZ #18822]
26508 * include/signal.h (__kill): Add libc_hidden_proto.
26509 (__sigblock): Likewise.
26510 (__sigprocmask): Likewise.
26511 (__sigaltstack): Likewise.
26512 * signal/kill.c (__kill): Add libc_hidden_def.
26513 * signal/sigblock.c (__sigblock): Likewise.
26514 * signal/sigprocmask.c (__sigprocmask): Likewise.
26515 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26516 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26517 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26518 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26519 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26520 Likewise.
26521 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26522 Likewise.
26523 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26524 (__sigprocmask): Likewise.
26525 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26526 Likewise.
26527 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26528 (__sigprocmask): Likewise.
26529 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26530 Likewise.
26531
26532 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26533
26534 [BZ #18822]
26535 * include/string.h (__strsep): Add libc_hidden_proto.
26536 * string/strsep.c (__strsep): Add libc_hidden_def.
26537
26538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26539
26540 [BZ #18822]
26541 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26542 attribute_hidden.
26543 (__spawni): Likewise.
26544
26545 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26546
26547 [BZ #18822]
26548 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26549 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26550 libc_hidden_def.
26551
26552 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26553
26554 [BZ #18822]
26555 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26556
26557 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26558
26559 [BZ #18822]
26560 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26561 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26562 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26563 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26564 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26565 Likewise.
26566 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26567 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26568
26569 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26570
26571 [BZ #18822]
26572 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26573 (__dcigettext): Likewise.
26574
26575 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26576
26577 [BZ #18822]
26578 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26579 libc_hidden_proto.
26580 (__get_nprocs): Likewise.
26581 (__get_phys_pages): Likewise.
26582 (__get_avphys_pages): Likewise.
26583 (__get_child_max): Add attribute_hidden.
26584 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26585 (__get_nprocs): Likewise.
26586 (__get_phys_pages): Likewise.
26587 (__get_avphys_pages): Likewise.
26588 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26589 libc_hidden_def.
26590 (__get_nprocs): Likewise.
26591 (__get_phys_pages): Likewise.
26592 (__get_avphys_pages): Likewise.
26593 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26594 libc_hidden_def.
26595 (__get_nprocs_conf): Likewise.
26596 (__get_phys_pages): Likewise.
26597 (__get_avphys_pages): Likewise.
26598
26599 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26600
26601 [BZ #18822]
26602 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26603 attribute_hidden.
26604 (__netlink_close): Likewise.
26605 (__netlink_free_handle): Likewise.
26606 (__netlink_request): Likewise.
26607
26608 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26609
26610 [BZ #18822]
26611 * include/rpc/rpc.h (__rpc_thread_variables): Add
26612 attribute_hidden.
26613 (__rpc_thread_svc_cleanup): Likewise.
26614 (__rpc_thread_clnt_cleanup): Likewise.
26615 (__rpc_thread_key_cleanup): Likewise.
26616
26617 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26618
26619 [BZ #18822]
26620 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26621 (__writev): Likewise.
26622 * misc/readv.c (__readv): Add libc_hidden_def.
26623 * misc/writev.c (__writev): Likewise.
26624 * sysdeps/posix/readv.c (__readv): Likewise.
26625 * sysdeps/posix/writev.c (__writev): Likewise.
26626 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26627 (__readv): Likewise.
26628 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26629 (__writev): Likewise.
26630
26631 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26632
26633 [BZ #18822]
26634 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26635 (__regcomp): Add libc_hidden_proto.
26636 (__regexec): Likewise.
26637 (__regfree): Likewise.
26638 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26639 (__regfree): Likewise.
26640 * posix/regexec.c (__regexec): Likewise.
26641
26642 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26643
26644 [BZ #18822]
26645 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26646 (__getutent): Likewise.
26647 (__getutid): Likewise.
26648 (__getutline): Likewise.
26649 (__pututline): Likewise.
26650 (__getutent_r): Likewise.
26651 (__getutid_r): Likewise.
26652 (__getutline_r): Likewise.
26653 (__utmpname): Add attribute_hidden.
26654 (__setutent): Likewise.
26655 (__endutent): Likewise.
26656 * login/getutent.c (__getutent): Add libc_hidden_def.
26657 * login/getutent_r.c (__getutent_r): Likewise.
26658 (__pututline): Likewise.
26659 * login/getutid.c (__getutid): Likewise.
26660 * login/getutid_r.c (__getutid_r): Likewise.
26661 * login/getutline.c (__getutline): Likewise.
26662 * login/getutline_r.c (__getutline_r): Likewise.
26663 * login/updwtmp.c (__updwtmp): Likewise.
26664
26665 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26666
26667 [BZ #18822]
26668 * include/dirent.h (__opendir): Always add attribute_hidden.
26669 (__fdopendir): Likewise.
26670 (__closedir): Likewise.
26671 (__readdir): Likewise.
26672 (__readdir64): Add libc_hidden_proto.
26673 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26674 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26675 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26676 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26677 New alias.
26678
26679 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26680
26681 [BZ #18822]
26682 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26683 * include/netdb.h (__gethostbyaddr_r): Likewise.
26684 (__gethostbyname_r): Likewise.
26685 (__gethostbyname2_r): Likewise.
26686 (__getnetbyaddr_r): Likewise.
26687 (__getnetbyname_r): Likewise.
26688 (__getservbyname_r): Likewise.
26689 (__getservbyport_r): Likewise.
26690 (__getprotobyname_r): Likewise.
26691 (__getprotobynumber_r): Likewise.
26692 (__getnetgrent_r): Likewise.
26693 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26694 (__getrpcbynumber_r): Likewise.
26695 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26696
26697 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26698
26699 [BZ #18822]
26700 * include/stdio.h (__fcloseall): Add attribute_hidden.
26701 (__getline): Likewise.
26702 (__path_search): Likewise.
26703 (__gen_tempname): Likewise.
26704 (__libc_message): Likewise.
26705 (__flockfile): Likewise.
26706 (__funlockfile): Likewise.
26707 (__fxprintf): Likewise.
26708 (__fxprintf_nocancel): Likewise.
26709
26710 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26711
26712 [BZ #18822]
26713 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26714 (__sgetsgent_r): Likewise.
26715
26716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26717
26718 [BZ #18822]
26719 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26720 (__statfs64): Likewise.
26721 (__fstatfs64): Likewise.
26722 * include/sys/statvfs.h (__statvfs64): Likewise.
26723 (__fstatvfs64): Likewise.
26724 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26725 (__statfs_filesize_max): Likewise.
26726 (__statfs_symlinks): Likewise.
26727 (__statfs_chown_restricted): Likewise.
26728
26729 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26730
26731 [BZ #18822]
26732 * include/time.h (__tzstring): Add attribute_hidden.
26733 (__tzfile_read): Likewise.
26734 (__tzfile_compute): Likewise.
26735 (__tzfile_default): Likewise.
26736 (__tzset_parse_tz): Likewise.
26737 (__offtime): Likewise.
26738 (__asctime_r): Likewise.
26739 (__tzset): Likewise.
26740 (__tz_convert): Likewise.
26741 (__getdate_r): Likewise.
26742 (__getclktck): Likewise.
26743
26744 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26745
26746 [BZ #18822]
26747 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26748 (__nscd_unmap): Likewise.
26749 (__nscd_cache_search): Likewise.
26750 (__nscd_get_nl_timestamp): Likewise.
26751 (__nscd_getpwnam_r): Likewise.
26752 (__nscd_getpwuid_r): Likewise.
26753 (__nscd_getgrnam_r): Likewise.
26754 (__nscd_getgrgid_r): Likewise.
26755 (__nscd_gethostbyname_r): Likewise.
26756 (__nscd_gethostbyname2_r): Likewise.
26757 (__nscd_gethostbyaddr_r): Likewise.
26758 (__nscd_getai): Likewise.
26759 (__nscd_getgrouplist): Likewise.
26760 (__nscd_getservbyname_r): Likewise.
26761 (__nscd_getservbyport_r): Likewise.
26762 (__nscd_innetgr): Likewise.
26763 (__nscd_setnetgrent): Likewise.
26764
26765 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26766
26767 [BZ #18822]
26768 * include/gmp.h: Declare internal functions only if _ISOMAC is
26769 undefined.
26770 (__mpn_extract_double): Add attribute_hidden.
26771 (__mpn_extract_long_double): Likewise.
26772 (__mpn_extract_float128): Likewise.
26773 (__mpn_construct_float): Likewise.
26774 (__mpn_construct_double): Likewise.
26775 (__mpn_construct_long_double): Likewise.
26776 (__mpn_construct_float128): Likewise.
26777 (mpn_add_1): Likewise.
26778 (mpn_addmul_1): Likewise.
26779 (mpn_add_n): Likewise.
26780 (mpn_cmp): Likewise.
26781 (mpn_divrem): Likewise.
26782 (mpn_lshift): Likewise.
26783 (mpn_mul): Likewise.
26784 (mpn_mul_1): Likewise.
26785 (mpn_rshift): Likewise.
26786 (mpn_sub_1): Likewise.
26787 (mpn_submul_1): Likewise.
26788 (mpn_sub_n): Likewise.
26789
26790 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26791
26792 [BZ #18822]
26793 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26794 (__wcscat): Likewise.
26795 (__btowc): Likewise.
26796 (__wcrtomb): Likewise.
26797 (__mbsrtowcs): Likewise.
26798 (__wcsrtombs): Likewise.
26799 (__mbsnrtowcs): Likewise.
26800 (__wcsnrtombs): Likewise.
26801 (__wcsncpy): Likewise.
26802 (__wcpncpy): Likewise.
26803 (__wmemcpy): Likewise.
26804 (__wmempcpy): Likewise.
26805 (__wmemmove): Likewise.
26806 (__wcschrnul): Likewise.
26807 (__vfwscanf): Likewise.
26808 (__vswprintf): Likewise.
26809 (__fwprintf): Likewise.
26810 (__vfwprintf): Likewise.
26811
26812 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26813
26814 [BZ #18822]
26815 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26816 (__getgrgid_r): Likewise.
26817 (__getgrnam_r): Likewise.
26818 * include/pwd.h (__getpwuid_r): Likewise.
26819 (__getpwnam_r): Likewise.
26820 (__fgetpwent_r): Likewise.
26821 * include/shadow.h (__getspnam_r): Likewise.
26822 (__sgetspent_r): Likewise.
26823 (__fgetspent_r): Likewise.
26824
26825 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26826
26827 [BZ #18822]
26828 * include/unistd.h (__access): Add attribute_hidden.
26829 (__lseek64): Likewise.
26830 (__libc_pread64): Likewise.
26831 (__pipe2): Likewise.
26832 (__sleep): Likewise.
26833 (__chdir): Likewise.
26834 (__fchdir): Likewise.
26835 (__getcwd): Likewise.
26836 (__rmdir): Likewise.
26837 (__execvpe): Likewise.
26838 (__execve): Likewise.
26839 (__setsid): Likewise.
26840 (__getuid): Likewise.
26841 (__geteuid): Likewise.
26842 (__getgid): Likewise.
26843 (__getegid): Likewise.
26844 (__getgroups): Likewise.
26845 (__group_member): Likewise.
26846 (__ttyname_r): Likewise.
26847 (__isatty): Likewise.
26848 (__readlink): Likewise.
26849 (__unlink): Likewise.
26850 (__gethostname): Likewise.
26851 (__profil): Likewise.
26852 (__getdtablesize): Likewise.
26853 (__brk): Likewise.
26854 (__ftruncate): Likewise.
26855 (__ftruncate64): Likewise.
26856
26857 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26858
26859 [BZ #18822]
26860 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26861 * argp/argp-fs-xinl.c: Likewise.
26862 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26863 * argp/argp-parse.c: Include <argp.h>.
26864 * argp/argp-xinl.c: Likewise.
26865 * include/argp-fmtstream.h: New file.
26866 * include/argp.h (__argp_error): Add attribute_hidden.
26867 (__argp_failure): Likewise.
26868 (__argp_input): Likewise.
26869 (__argp_state_help): Likewise.
26870
26871 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26872
26873 [BZ #18822]
26874 * include/wchar.h (____wcstof_l_internal): New prototype.
26875 (____wcstod_l_internal): Likewise.
26876 (____wcstold_l_internal): Likewise.
26877 (____wcstol_l_internal): Likewise.
26878 (____wcstoul_l_internal): Likewise.
26879 (____wcstoll_l_internal): Likewise.
26880 (____wcstoull_l_internal): Likewise.
26881 (____wcstof128_l_internal): Likewise.
26882 * sysdeps/ieee754/float128/wcstof128.c
26883 (____wcstof128_l_internal): Removed.
26884 * sysdeps/ieee754/float128/wcstof128_l.c
26885 (____wcstof128_l_internal): Likewise.
26886 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26887 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26888 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26889 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26890 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26891 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26892 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26893 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26894 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26895 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26896
26897 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26898
26899 [BZ #18822]
26900 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26901 instead of <sys/statvfs.h>.
26902 (__internal_statvfs): Removed.
26903 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26904 instead of <sys/statvfs.h>.
26905 (__internal_statvfs64): Removed.
26906 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26907 "internal_statvfs.h" instead of <sys/statvfs.h>.
26908 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26909 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26910 instead of <sys/statvfs.h>.
26911 (__internal_statvfs): Removed.
26912 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26913 instead of <sys/statvfs.h>.
26914 (__internal_statvfs64): Removed.
26915
26916 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26917
26918 [BZ #18822]
26919 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26920 (__gconv_close): Likewise.
26921 (__gconv): Likewise.
26922 (__gconv_find_transform): Likewise.
26923 (__gconv_lookup_cache): Likewise.
26924 (__gconv_compare_alias_cache): Likewise.
26925 (__gconv_load_cache): Likewise.
26926 (__gconv_get_path): Likewise.
26927 (__gconv_close_transform): Likewise.
26928 (__gconv_release_cache): Likewise.
26929 (__gconv_find_shlib): Likewise.
26930 (__gconv_release_shlib): Likewise.
26931 (__gconv_get_builtin_trans): Likewise.
26932 (__gconv_compare_alias): Likewise.
26933 * include/dlfcn.h (_dlerror_run): Likewise.
26934 * include/stdio.h (__fortify_fail_abort): Likewise.
26935 * include/time.h (__tz_compute): Likewise.
26936 (__strptime_internal): Likewise.
26937 * intl/gettextP.h (_nl_find_domain): Likewise.
26938 (_nl_load_domain): Likewise.
26939 (_nl_find_msg): Likewise.
26940 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26941 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26942 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26943 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26944 (__gai_find_request): Likewise.
26945 (__gai_remove_request): Likewise.
26946 (__gai_notify): Likewise.
26947 (__gai_notify_only): Likewise.
26948 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26949 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26950 (_dl_non_dynamic_init): Likewise.
26951 (_dl_aux_init): Likewise.
26952 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26953 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26954 Likewise.
26955 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26956 (__wcsmbs_clone_conv): Likewise.
26957 (__wcsmbs_named_conv): Likewise.
26958
26959 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26960
26961 [BZ #18822]
26962 * include/stdlib.h (__random): Add attribute_hidden.
26963 (__random_r): Likewise.
26964 (__srandom_r): Likewise.
26965 (__initstate_r): Likewise.
26966 (__setstate_r): Likewise.
26967 (__erand48_r): Likewise.
26968 (__nrand48_r): Likewise.
26969 (__jrand48_r): Likewise.
26970 (__srand48_r): Likewise.
26971 (__seed48_r): Likewise.
26972 (__lcong48_r): Likewise.
26973 (__drand48_iterate): Likewise.
26974 (__setenv): Likewise.
26975 (__unsetenv): Likewise.
26976 (__clearenv): Likewise.
26977 (__ptsname_r): Likewise.
26978 (__posix_openpt): Likewise.
26979 (__add_to_environ): Likewise.
26980 (__realpath): Add libc_hidden_proto.
26981 (__ecvt_r): Likewise.
26982 (__fcvt_r): Likewise.
26983 (__qecvt_r): Likewise.
26984 (__qfcvt_r): Likewise.
26985 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26986 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26987
26988 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26989
26990 [BZ #18822]
26991 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26992 * include/time.h (__mktime_internal): Likewise.
26993 * libio/iolibio.h (__fopen_internal): Likewise.
26994
26995 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26996
26997 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26998 pointer in frame.
26999 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
27000 Correct offset used to restore PIC register.
27001
27002 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
27003
27004 [BZ libc/22165]
27005 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
27006 code to load address of __getcontext_ret when generating PIC code.
27007
27008 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
27009
27010 * elf/Makefile (tests-static-internal): Add
27011 tst-tls1-static-non-pie.
27012 (LDFLAGS-tst-tls1-static-non-pie): New.
27013 * elf/tst-tls1-static-non-pie.c: New file.
27014
27015 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27016
27017 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
27018 (asinh): Define using libm_alias_double.
27019 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
27020 (cbrt): Define using libm_alias_double.
27021 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
27022 <libm-alias-double.h>.
27023 (copysign): Define using libm_alias_double.
27024 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
27025 (erf): Define using libm_alias_double.
27026 (erfc): Likewise.
27027 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
27028 (expm1): Define using libm_alias_double.
27029 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
27030 (fabs): Define using libm_alias_double.
27031 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
27032 libm_alias_double.
27033 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
27034 <libm-alias-double.h>.
27035 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
27036 libm_alias_double.
27037 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
27038 <libm-alias-double.h>.
27039 (getpayload): Define using libm_alias_double.
27040 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
27041 <libm-alias-double.h>.
27042 (llrint): Define using libm_alias_double.
27043 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
27044 (lrint): Define using libm_alias_double.
27045 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
27046 <libm-alias-double.h>.
27047 (nextup): Define using libm_alias_double.
27048 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
27049 <libm-alias-double.h>.
27050 (roundeven): Define using libm_alias_double.
27051 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
27052 libm_alias_double.
27053 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
27054 <libm-alias-double.h>.
27055 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
27056 using libm_alias_double.
27057 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
27058 (cos): Define using libm_alias_double.
27059 (sin): Likewise.
27060 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
27061 <libm-alias-double.h>.
27062 (sincos): Define using libm_alias_double.
27063 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
27064 (tanh): Define using libm_alias_double.
27065 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
27066 <libm-alias-double.h>.
27067 (totalorder): Define using libm_alias_double.
27068 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
27069 <libm-alias-double.h>.
27070 (totalordermag): Define using libm_alias_double.
27071 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27072 libm_alias_double.
27073 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27074 libm_alias_double.
27075 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27076 <libm-alias-double.h>.
27077 (getpayload): Define using libm_alias_double.
27078 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27079 <libm-alias-double.h>.
27080 (roundeven): Define using libm_alias_double.
27081 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27082 <libm-alias-double.h>.
27083 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27084 <libm-alias-double.h>.
27085 (totalorder): Define using libm_alias_double.
27086 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27087 <libm-alias-double.h>.
27088 (totalordermag): Define using libm_alias_double.
27089 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27090 libc compat symbol here.
27091 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27092 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27093 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27094 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27095 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27096 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27097 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27098 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27099 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27100 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27101
27102 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27103
27104 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27105 _dl_relocate_static_pie instead of _dl_start to compute load
27106 address in static PIE. Return 0 if _DYNAMIC is undefined for
27107 static executable.
27108
27109 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27110
27111 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27112 _DYNAMIC is undefined for static executable.
27113
27114 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27115
27116 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27117
27118 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27119
27120 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27121
27122 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27123
27124 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27125 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27126 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27127 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27128 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27129 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27130 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27131 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27132 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27133 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27134 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27135 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27136 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27137 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27138 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27139 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27140 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27141
27142 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27143
27144 * math/bits/cmathcalls.h (cimag): Remove inline.
27145 (creal): Remove inline.
27146 (conj): Remove inline.
27147
27148 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27149
27150 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27151 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27152 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27153 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27154 (issignalingf_inline): Likewise.
27155 (POWF_LOG2_TABLE_BITS): Likewise.
27156 (POWF_LOG2_POLY_ORDER): Likewise.
27157 (POWF_SCALE_BITS): Likewise.
27158 (POWF_SCALE): Likewise.
27159 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27160 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27161 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27162
27163 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27164
27165 * math/Makefile (type-float-routines): Add e_log2f_data.
27166 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27167 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27168 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27169 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27170 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27171 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27172 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27173
27174 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27175
27176 * math/Makefile (type-float-routines): Add e_logf_data.
27177 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27178 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27179 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27180 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27181 * sysdeps/i386/fpu/e_logf_data.c: New file.
27182 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27183 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27184
27185 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27186
27187 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27188 undefined _DYNAMIC in PIE libc.a.
27189 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27190 Likewse.
27191
27192 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27193
27194 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27195 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27196 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27197 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27198 (__signbit): Remove.
27199 (__signbitl): Remove.
27200 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27201 (__signbit): Remove.
27202 (__signbitl): Remove.
27203 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27204 (__signbit): Remove.
27205 (__signbitl): Remove.
27206 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27207 (__signbit): Remove.
27208 (__signbitl): Remove.
27209 * sysdeps/tile/bits/mathinline.h: Delete file.
27210 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27211 (__signbit): Remove.
27212 (__signbitl): Remove.
27213
27214 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27215
27216 * math/math.h: Improve handling of C99 isgreater macros.
27217 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27218 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27219 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27220 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27221 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27222
27223 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27224
27225 * sysdeps/aarch64/libm-test-ulps: Update.
27226
27227 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27228
27229 [BZ #22225]
27230 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27231 math_opt_barrier on argument when doing arithmetic on it.
27232 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27233 Likewise. Use math_force_eval not math_opt_barrier after
27234 arithmetic.
27235 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27236 math_opt_barrier on argument when doing arithmetic on it.
27237 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27238 Likewise.
27239
27240 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27241
27242 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27243 libc_hidden_def.
27244 (__freeifaddrs): Likewise.
27245
27246 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27247
27248 * include/dirent.h (__dirfd): New declaration.
27249 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27250 alias.
27251 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27252 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27253 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27254 * include/unistd.h (__revoke): New declaration.
27255 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27256 alias.
27257 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27258 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27259 revoke.
27260 * include/dirent.h (__seekdir): New declaration.
27261 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27262 redefine as weak alias.
27263 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27264 of seekdir.
27265 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27266 and use libc_hidden_def on them.
27267 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27268 them.
27269 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27270 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27271 instead of getifaddrs and freeifaddrs.
27272
27273 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27274
27275 [BZ #18822]
27276 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27277 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27278 (__dso_handle): Remove declaration.
27279 * dlfcn/tstatexit.c (__dso_handle): Removed.
27280 (main): Don't check __dso_handle.
27281 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27282 (main): Don't check __dso_handle.
27283 * include/dso_handle.h: New file.
27284 * malloc/mtrace.c: Include <dso_handle.h>.
27285 (mtrace): Pass __dso_handle directly.
27286 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27287 (__dso_handle): Remove declaration.
27288 (__pthread_atfork): Pass __dso_handle directly.
27289 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27290 (__dso_handle): Removed.
27291 * posix/wordexp-test.c: Include <dso_handle.h>.
27292 (__dso_handle): Remove declaration.
27293 (__app_register_atfork): Pass __dso_handle directly.
27294 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27295 (__dso_handle): Remove declaration.
27296 (at_quick_exit): Pass __dso_handle directly.
27297 * stdlib/atexit.c: Include <dso_handle.h>.
27298 (__dso_handle): Remove declaration.
27299 (atexit): Pass __dso_handle directly.
27300 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27301 (__dso_handle): Removed.
27302
27303 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27304
27305 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27306 using VDSO.
27307
27308 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27309
27310 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27311 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27312 values to correct default value for given type.
27313
27314 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27315
27316 [BZ #22101]
27317 * elf/Makefile (tests): Add tst-debug1.
27318 ($(objpfx)tst-debug1): New.
27319 ($(objpfx)tst-debug1.out): Likewise.
27320 ($(objpfx)tst-debug1mod1.so): Likewise.
27321 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27322 with p_filesz == 0.
27323 * elf/tst-debug1.c: New file.
27324
27325 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27326
27327 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27328 Define using __ifunc.
27329
27330 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27331
27332 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27333 exp2f() values.
27334
27335 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27336
27337 [BZ #22156]
27338 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27339
27340 2017-09-26 Florian Weimer <fweimer@redhat.com>
27341
27342 * resolv/Makefile (tests-internal): Fix typo in comment.
27343
27344 2017-09-26 Florian Weimer <fweimer@redhat.com>
27345
27346 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27347
27348 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27349
27350 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27351 Use an union instead of a max_align_t array for __space,
27352 so that __space is the same size on all platforms.
27353 * malloc/scratch_buffer_grow_preserve.c
27354 (__libc_scratch_buffer_grow_preserve): Likewise.
27355
27356 [BZ #22183]
27357 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27358 version to 2.
27359 * posix/Makefile (routines): Add glob-lstat-compat and
27360 glob64-lstat-compat.
27361 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27362 * posix/glob-lstat-compat.c: New file.
27363 * posix/glob64-lstat-compat.c: Likewise.
27364 * posix/tst-glob_lstat_compat.c: Likewise.
27365 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27366 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27367 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27368 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27369 Likewise.
27370 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27371 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27372 * posix/glob.c (glob_lstat): New function.
27373 (glob): Rename to __glob and add versioned symbol to 2.27.
27374 (glob_in_dir): Use glob_lstat.
27375 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27376 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27377 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27378 2.27.
27379 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27380 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27381 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27382 gl_lstat on glob call.
27383 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27384 and glob64 symbols.
27385 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27386 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27387 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27388 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27389 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27390 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27391 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27392 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27393 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27394 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27395 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27396 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27398 Likewise.
27399 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27400 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27401 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27402 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27403 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27404 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27405 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27406 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27407 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27408 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27409 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27410 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27411
27412 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27413
27414 * configure.ac (AS): Require binutils 2.25 or later.
27415 * configure: Regenerated.
27416
27417 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27418
27419 [BZ #22207]
27420 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27421 VM size.
27422
27423 2017-09-25 DJ Delorie <dj@redhat.com>
27424
27425 [BZ #22161]
27426 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27427 resetting timeout.
27428
27429 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27430
27431 * sysdeps/ieee754/dbl-64/sincos32.h
27432 [SINCCOS32_H]: Remove define.
27433 [SINCOS32_H]: Define.
27434
27435 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27436
27437 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27438 (exp2f): Likewise.
27439 * math/w_exp2f.c: New file.
27440 * math/w_expf.c: New file.
27441 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27442 * math/w_expf_compat.c (__expf_compat): Likewise.
27443 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27444 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27445 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27446 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27447 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27448 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27449 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27450 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27451 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27452 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27453 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27454 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27455 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27456 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27457 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27458 Likewise.
27459 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27460 Likewise.
27461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27462 Likewise.
27463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27464 Likewise.
27465 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27466 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27467 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27468 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27469 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27470 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27471 Likewise.
27472 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27473 Likewise.
27474 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27475 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27476 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27477
27478 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27479
27480 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27481 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27482 (roundtoint, converttoint): Likewise.
27483 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27484 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27485 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27486 * sysdeps/ieee754/flt-32/math_config.h: New file.
27487 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27488 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27489 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27490 * sysdeps/i386/fpu/math_errf.c: New file.
27491 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27492 * sysdeps/ia64/fpu/math_errf.c: New file.
27493 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27494 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27495
27496 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27497
27498 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27499 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27500 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27501 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27502 to make sure that these symbols are defined.
27503 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27504 of <limits.h>
27505 (__need_NULL): Do not define.
27506 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27507 alignment.
27508 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27509 CMGROUP_MAX, cmsgcred): Do not define.
27510 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27511 NULL.
27512 * bits/socket.h: Likewise.
27513 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27514 __gettimeofday instead of gettimeofday.
27515 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27516 instead of settimeofday.
27517
27518 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27519
27520 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27521 (asinhf): Define using libm_alias_float.
27522 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27523 (atanf): Define using libm_alias_float.
27524 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27525 (cbrtf): Define using libm_alias_float.
27526 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27527 (ceilf): Define using libm_alias_float.
27528 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27529 <libm-alias-float.h>.
27530 (copysignf): Define using libm_alias_float.
27531 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27532 (cosf): Define using libm_alias_float.
27533 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27534 (erff): Define using libm_alias_float.
27535 (erfcf): Likewise.
27536 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27537 (expm1f): Define using libm_alias_float.
27538 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27539 (fabsf): Define using libm_alias_float.
27540 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27541 (floorf): Define using libm_alias_float.
27542 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27543 (frexpf): Define using libm_alias_float.
27544 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27545 libm_alias_float.
27546 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27547 <libm-alias-float.h>.
27548 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27549 libm_alias_float.
27550 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27551 <libm-alias-float.h>.
27552 (getpayloadf): Define using libm_alias_float.
27553 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27554 <libm-alias-float.h>.
27555 (llrintf): Define using libm_alias_float.
27556 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27557 <libm-alias-float.h>.
27558 (llroundf): Define using libm_alias_float.
27559 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27560 (logbf): Define using libm_alias_float.
27561 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27562 (lrintf): Define using libm_alias_float.
27563 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27564 (lroundf): Define using libm_alias_float.
27565 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27566 (modff): Define using libm_alias_float.
27567 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27568 <libm-alias-float.h>.
27569 (nearbyintf): Define using libm_alias_float.
27570 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27571 <libm-alias-float.h>.
27572 (nextafterf): Define using libm_alias_float.
27573 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27574 <libm-alias-float.h>.
27575 (nextupf): Define using libm_alias_float.
27576 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27577 <libm-alias-float.h>.
27578 (remquof): Define using libm_alias_float.
27579 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27580 (rintf): Define using libm_alias_float.
27581 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27582 <libm-alias-float.h>.
27583 (roundevenf): Define using libm_alias_float.
27584 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27585 (roundf): Define using libm_alias_float.
27586 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27587 using libm_alias_float.
27588 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27589 <libm-alias-float.h>.
27590 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27591 Define using libm_alias_float.
27592 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27593 <libm-alias-float.h>.
27594 (sincosf): Define using libm_alias_float.
27595 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27596 (sinf): Define using libm_alias_float.
27597 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27598 (tanf): Define using libm_alias_float.
27599 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27600 (tanhf): Define using libm_alias_float.
27601 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27602 <libm-alias-float.h>.
27603 (totalorderf): Define using libm_alias_float.
27604 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27605 <libm-alias-float.h>.
27606 (totalordermagf): Define using libm_alias_float.
27607 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27608 (truncf): Define using libm_alias_float.
27609 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27610 libm_alias_float.
27611 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27612 libm_alias_float.
27613
27614 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27615
27616 [BZ #22146]
27617 math/math.h: Let fpclassify use the builtin in C++ mode, even
27618 when optimazing for size.
27619
27620 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27621
27622 * csu/Makefile (generated): Do not add version-info.h.
27623 (before-compile): Likewise.
27624 (all-Banner-files): Remove variable.
27625 ($(objpfx)version-info.h): Remove rule.
27626 * csu/version.c (banner): Do not include "version-info.h".
27627 * libidn/Banner: Remove.
27628 * manual/contrib.texi (Simon Josefsson): New entry.
27629
27630 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27631
27632 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27633 Remove conditionals on LDBL_MANT_DIG.
27634 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27635 (__ieee754_lgammal_r): Likewise.
27636
27637 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27638
27639 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27640 _Float128 and L().
27641 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27642 _Float128 and L(). Replace _Float128 with long double and L(x)
27643 with xL, throughout the file.
27644 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27645 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27646 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27647 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27648
27649 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27650
27651 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27652 sysdeps/ieee754/ldbl-128ibm.
27653 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27654 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27655 of including it. Keep _Float128 and L() intact. These will be
27656 reviewed by a separate patch.
27657 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27658 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27659 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27660 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27661
27662 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27663
27664 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27665 (__finitef128): Define to __redirect___finitef128.
27666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27667 (__isinff128): Define to __redirect___isinff128.
27668 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27669 (__isnanf128): Define to __redirect___isnanf128.
27670
27671 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27672
27673 * sysdeps/powerpc/powerpc64le/Makefile
27674 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27675 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27676
27677 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27678 Carlos O'Donell <carlos@redhat.com>
27679
27680 [BZ #22180]
27681 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27682 * stdlib/test-dlclose-exit-race.c: New file.
27683 * stdlib/test-dlclose-exit-race-helper.c: New file.
27684 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27685
27686 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27687
27688 * crypt/Banner: Remove file.
27689 * nptl/Banner: Likewise.
27690 * resolv/Banner: Likewise.
27691 * soft-fp/Banner: Likewise.
27692 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27693 ($(objpfx)version.d): Remove dependency on banner.h.
27694 ($(objpfx)version.os): Likewise.
27695 * nptl/version.c (banner): Do not include banner.h.
27696 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27697 Jelinek and BIND code.
27698
27699 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27700 Carlos O'Donell <carlos@redhat.com>
27701
27702 * support/xdlfcn.h: New file.
27703 * support/xdlfcn.c: New file.
27704 * support/Makefile (libsupport-routines): Add xdlfcn.
27705 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27706
27707 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27708
27709 [BZ #20142]
27710 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27711 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27712 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27713 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27714 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27715 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27716 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27717 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27718
27719 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27720 Ricky Zhou <rickyz@google.com>
27721 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27722
27723 [BZ #14333]
27724 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27725 Remove atomics.
27726 (__new_exitfn): Fail registration when we finished at_exit processing.
27727 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27728 * stdlib/on_exit.c (__on_exit): Likewise.
27729 * stdlib/exit.c (__exit_funcs_done): New variable.
27730 (__run_exit_handlers): Use __exit_funcs_lock.
27731 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27732 declarations.
27733 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27734 (test-cxa_atexit-race, test-on_exit-race): New tests.
27735 * stdlib/test-atexit-race-common.c: New file.
27736 * stdlib/test-atexit-race.c: New file.
27737 * stdlib/test-at_quick_exit-race.c: New file.
27738 * stdlib/test-cxa_atexit-race.c: New file.
27739 * stdlib/test-on_exit-race.c: New file.
27740
27741 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27742
27743 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27744 * benchtests/exp2f-inputs: Copy of expf-inputs.
27745 * benchtests/log2f-inputs: Copy of logf-inputs.
27746
27747 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27748
27749 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27750 Explicitly take address of first element of array arguments in
27751 call to INLINE_SYSCALL.
27752
27753 2017-09-19 Andreas Schwab <schwab@suse.de>
27754
27755 [BZ #22134]
27756 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27757 execveat first.
27758 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27759 unimplemented.
27760 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27761 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27762 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27763 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27764 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27765 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27766 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27767 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27768 * posix/Makefile (tests): Add tst-fexecve.
27769 * posix/tst-fexecve.c: New file.
27770
27771 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27772
27773 * benchtests/Makefile: Add logf benchmark.
27774 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27775
27776 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27777
27778 * benchtests/Makefile: Add expf benchmark.
27779 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27780
27781 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27782
27783 * csu/Makefile: Add -funwind-tables to libc-start.c.
27784 * debug/Makefile: Add -funwind-tables to backtrace.c.
27785 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27786 * sysdeps/arm/Makefile: Likewise.
27787 * sysdeps/i386/Makefile: Likewise.
27788 * sysdeps/m68k/Makefile: Likewise.
27789 * sysdeps/mips/Makefile: Likewise.
27790 * sysdeps/nios2/Makefile: Likewise.
27791 * sysdeps/sh/Makefile: Likewise.
27792 * sysdeps/sparc/Makefile: Likewise.
27793
27794 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27795
27796 * benchtests/Makefile (bench-math): Add trunc and truncf.
27797 (CFLAGS-bench-trunc.c): New variable.
27798 (CFLAGS-bench-truncf.c): Likewise.
27799 * benchtests/trunc-inputs: New file.
27800 * benchtests/truncf-inputs: Likewise.
27801
27802 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27803
27804 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27805
27806 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27807
27808 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27809 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27810 redefine.
27811 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27812 (exp10l): Define as weak alias.
27813 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27814 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27815 and redefine.
27816 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27817 (remainderl): Define as weak alias.
27818
27819 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27820 (fmal): Define using libm_alias_ldouble.
27821 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27822 (acoshl): Define using libm_alias_ldouble.
27823 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27824 (acosl): Define using libm_alias_ldouble.
27825 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27826 (asinl): Define using libm_alias_ldouble.
27827 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27828 (atan2l): Define using libm_alias_ldouble.
27829 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27830 (atanhl): Define using libm_alias_ldouble.
27831 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27832 (coshl): Define using libm_alias_ldouble.
27833 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27834 (exp10l): Define using libm_alias_ldouble.
27835 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27836 (exp2l): Define using libm_alias_ldouble.
27837 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27838 (expl): Define using libm_alias_ldouble.
27839 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27840 (fmodl): Define using libm_alias_ldouble.
27841 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27842 (hypotl): Define using libm_alias_ldouble.
27843 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27844 (j0l): Define using libm_alias_ldouble.
27845 (y0l): Likewise.
27846 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27847 (j1l): Define using libm_alias_ldouble.
27848 (y1l): Likewise.
27849 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27850 (jnl): Define using libm_alias_ldouble.
27851 (ynl): Likewise.
27852 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27853 (log10l): Define using libm_alias_ldouble.
27854 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27855 (log2l): Define using libm_alias_ldouble.
27856 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27857 (logl): Define using libm_alias_ldouble.
27858 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27859 (powl): Define using libm_alias_ldouble.
27860 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27861 (remainderl): Define using libm_alias_ldouble.
27862 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27863 (sinhl): Define using libm_alias_ldouble.
27864 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27865 (sqrtl): Define using libm_alias_ldouble.
27866 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27867 (tgammal): Define using libm_alias_ldouble.
27868 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27869 (exp10l): Do not use long_double_symbol here.
27870 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27871 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27872 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27873 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27874 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27875 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27876 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27877 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27878 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27879 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27880 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27881 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27882 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27883 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27884 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27885 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27886 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27887 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27888 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27889 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27890 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27891 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27892
27893 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27894
27895 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27896 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27897
27898 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27899
27900 * io/read.c (read): Add libc_hidden_weak.
27901 * sysdeps/mach/hurd/read.c (read): Likewise.
27902 * io/write.c (write): Likewise.
27903 * sysdeps/mach/hurd/write.c (write): Likewise.
27904 * io/pread64.c (__pread64): Likewise.
27905 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27906 * posix/pread64.c (__pread64): Add libc_hidden_def.
27907
27908 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27909
27910 * benchtests/scripts/compare_strings.py: New option -g.
27911 (draw_graph): Print a message that a graph is being generated.
27912 (process_results): Generate graph only if -g is passed.
27913 (main): Process option -g.
27914
27915 * benchtests/scripts/compare_strings.py (process_results):
27916 Better spacing for output.
27917
27918 * benchtests/scripts/compare_strings.py: Use argparse.
27919 * benchtests/README: Document existence of compare_strings.py.
27920
27921 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27922
27923 * math/s_fma.c: Include <libm-alias-double.h>.
27924 (fma): Define using libm_alias_double.
27925 * math/s_nextafter.c: Include <libm-alias-double.h>.
27926 (nextafter): Define using libm_alias_double.
27927 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27928 (acos): Define using libm_alias_double.
27929 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27930 (aocsh): Define using libm_alias_double.
27931 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27932 (asin): Define using libm_alias_double.
27933 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27934 (atan2): Define using libm_alias_double.
27935 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27936 (atanh): Define using libm_alias_double.
27937 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27938 (cosh): Define using libm_alias_double.
27939 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27940 (exp10): Define using libm_alias_double.
27941 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27942 (exp2): Define using libm_alias_double.
27943 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27944 (exp): Define using libm_alias_double.
27945 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27946 (fmod): Define using libm_alias_double.
27947 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27948 (hypot): Define using libm_alias_double.
27949 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27950 (j0): Define using libm_alias_double.
27951 (y0): Likewise.
27952 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27953 (j1): Define using libm_alias_double.
27954 (y1): Likewise.
27955 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27956 (jn): Define using libm_alias_double.
27957 (yn): Likewise.
27958 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27959 (log10): Define using libm_alias_double.
27960 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27961 (log2): Define using libm_alias_double.
27962 * math/w_log_compat.c: Include <libm-alias-double.h>.
27963 (log): Define using libm_alias_double.
27964 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27965 (pow): Define using libm_alias_double.
27966 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27967 (remainder): Define using libm_alias_double.
27968 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27969 (sinh): Define using libm_alias_double.
27970 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27971 (sqrt): Define using libm_alias_double.
27972 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27973 (tgamma): Define using libm_alias_double.
27974 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27975 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27976 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27977 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27978 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27979 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27980 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27981 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27982 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27983 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27984 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27985 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27986 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27987 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27988 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27989 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27990 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27991 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27992 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27993 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27994 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27995 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27996 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27997 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27998 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27999
28000 * math/e_acoshl.c: Remove.
28001 * math/e_acosl.c: Likewise.
28002 * math/e_asinl.c: Likewise.
28003 * math/e_atan2l.c: Likewise.
28004 * math/e_atanhl.c: Likewise.
28005 * math/e_coshl.c: Likewise.
28006 * math/e_expl.c: Likewise.
28007 * math/e_fmodl.c: Likewise.
28008 * math/e_gammal_r.c: Likewise.
28009 * math/e_hypotl.c: Likewise.
28010 * math/e_j0l.c: Likewise.
28011 * math/e_j1l.c: Likewise.
28012 * math/e_jnl.c: Likewise.
28013 * math/e_lgammal_r.c: Likewise.
28014 * math/e_log10l.c: Likewise.
28015 * math/e_log2l.c: Likewise.
28016 * math/e_logl.c: Likewise.
28017 * math/e_powl.c: Likewise.
28018 * math/e_rem_pio2l.c: Likewise.
28019 * math/e_sinhl.c: Likewise.
28020 * math/e_sqrtf128.c: Likewise.
28021 * math/e_sqrtl.c: Likewise.
28022 * math/k_cosl.c: Likewise.
28023 * math/k_sinl.c: Likewise.
28024 * math/k_tanl.c: Likewise.
28025 * math/s_asinhl.c: Likewise.
28026 * math/s_atanl.c: Likewise.
28027 * math/s_cbrtl.c: Likewise.
28028 * math/s_erfl.c: Likewise.
28029 * math/s_expm1l.c: Likewise.
28030 * math/s_log1pl.c: Likewise.
28031 * math/s_tanhl.c: Likewise.
28032
28033 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
28034
28035 [BZ #21745]
28036 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
28037 [$(subdir) = math] (sysdep_calls): New variable. Has the
28038 previous contents of sysdep_routines, but re-sorted..
28039 [$(subdir) = math] (sysdep_routines): Re-use the contents from
28040 sysdep_calls.
28041 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
28042 defined in sysdep_calls and replace by the respective m_* names.
28043 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
28044 (compat_symbol): Undefine to avoid duplicated compat symbols in
28045 libc.
28046
28047 2017-09-15 Joseph Myers <joseph@codesourcery.com>
28048
28049 * math/s_fmaf.c: Include <libm-alias-float.h>.
28050 (fmaf): Define using libm_alias_float.
28051 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
28052 (acosf): Define using libm_alias_float.
28053 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
28054 (acoshf): Define using libm_alias_float.
28055 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
28056 (asinf): Define using libm_alias_float.
28057 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
28058 (atan2f): Define using libm_alias_float.
28059 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
28060 (atanhf): Define using libm_alias_float.
28061 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
28062 (coshf): Define using libm_alias_float.
28063 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
28064 (exp10f): Define using libm_alias_float.
28065 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
28066 (fmodf): Define using libm_alias_float.
28067 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
28068 (hypotf): Define using libm_alias_float.
28069 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28070 (j0f): Define using libm_alias_float.
28071 (y0f): Likewise.
28072 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28073 (j1f): Define using libm_alias_float.
28074 (y1f): Likewise.
28075 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28076 (jnf): Define using libm_alias_float.
28077 (ynf): Likewise.
28078 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28079 (log10f): Define using libm_alias_float.
28080 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28081 (log2f): Define using libm_alias_float.
28082 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28083 (logf): Define using libm_alias_float.
28084 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28085 (powf): Define using libm_alias_float.
28086 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28087 (remainderf): Define using libm_alias_float.
28088 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28089 (sinhf): Define using libm_alias_float.
28090 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28091 (sqrtf): Define using libm_alias_float.
28092 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28093 (tgammaf): Define using libm_alias_float.
28094
28095 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28096
28097 * include/math.h (roundeven): Change hidden_proto call to
28098 __roundeven.
28099 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28100 alias.
28101 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28102 (y0): Rename to __y0 and define as weak alias.
28103 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28104 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28105 alias.
28106 (y0f): Rename to __y0f and define as weak alias.
28107 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28108 alias.
28109 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28110 (y1): Rename to __y1 and define as weak alias.
28111 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28112 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28113 alias.
28114 (y1f): Rename to __y1f and define as weak alias.
28115 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28116 alias.
28117 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28118 (yn): Rename to __yn and define as weak alias.
28119 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28120 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28121 alias.
28122 (ynf): Rename to __ynf and define as weak alias.
28123 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28124 (fromfp): Define as weak alias.
28125 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28126 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28127 (fromfpx): Define as weak alias.
28128 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28129 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28130 __getpayload and define as weak alias.
28131 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28132 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28133 __roundeven and define as weak alias.
28134 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28135 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28136 __setpayload.
28137 (setpayload): Define as weak alias.
28138 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28139 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28140 __setpayloadsig.
28141 (setpayloadsig): Define as weak alias.
28142 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28143 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28144 __totalorder and define as weak alias.
28145 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28146 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28147 to __totalordermag and define as weak alias.
28148 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28149 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28150 (ufromfp): Define as weak alias.
28151 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28152 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28153 __ufromfpx.
28154 (ufromfpx): Define as weak alias.
28155 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28156 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28157 Rename to __getpayload and define as weak alias.
28158 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28159 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28160 Rename to __roundeven and define as weak alias.
28161 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28162 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28163 Rename to __totalorder and define as weak alias.
28164 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28165 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28166 (totalordermag): Rename to __totalordermag and define as weak
28167 alias.
28168 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28169 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28170 macro.
28171 (__roundevenl): Likewise.
28172 (__totalorderl): Likewise.
28173 (__totalordermagl): Likewise
28174 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28175 __fromfpf128.
28176 (fromfpf128): Define as weak alias.
28177 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28178 __fromfpxf128.
28179 (fromfpxf128): Define as weak alias.
28180 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28181 __setpayloadf128.
28182 (setpayloadf128): Define as weak alias.
28183 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28184 __setpayloadsigf128.
28185 (setpayloadsigf128): Define as weak alias.
28186 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28187 __ufromfpf128.
28188 (ufromfpf128): Define as weak alias.
28189 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28190 __ufromfpxf128.
28191 (ufromfpxf128): Define as weak alias.
28192 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28193 (fromfpf): Define as weak alias.
28194 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28195 __fromfpxf.
28196 (fromfpxf): Define as weak alias.
28197 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28198 __getpayloadf and define as weak alias.
28199 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28200 __roundevenf and define as weak alias.
28201 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28202 __setpayloadf.
28203 (setpayloadf): Define as weak alias.
28204 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28205 __setpayloadsigf.
28206 (setpayloadsigf): Define as weak alias.
28207 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28208 __totalorderf and define as weak alias.
28209 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28210 Rename to __totalordermagf and define as weak alias.
28211 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28212 __ufromfpf.
28213 (ufromfpf): Define as weak alias.
28214 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28215 __ufromfpxf.
28216 (ufromfpxf): Define as weak alias.
28217 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28218 __fromfpl.
28219 (fromfpl): Define as weak alias.
28220 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28221 __fromfpxl.
28222 (fromfpxl): Define as weak alias.
28223 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28224 to __getpayloadl and define as weak alias.
28225 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28226 __roundevenl and define as weak alias.
28227 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28228 __setpayloadl.
28229 (setpayloadl): Define as weak alias.
28230 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28231 __setpayloadsigl.
28232 (setpayloadsigl): Define as weak alias.
28233 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28234 to __totalorderl and define as weak alias.
28235 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28236 Rename to __totalordermagl and define as weak alias.
28237 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28238 __ufromfpl.
28239 (ufromfpl): Define as weak alias.
28240 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28241 __ufromfpxl.
28242 (ufromfpxl): Define as weak alias.
28243 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28244 __fromfpl.
28245 (fromfpl): Define as weak alias.
28246 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28247 __fromfpxl.
28248 (fromfpxl): Define as weak alias.
28249 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28250 Rename to __getpayloadl and define as weak alias.
28251 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28252 to __roundevenl and define as weak alias. Call __roundeven
28253 instead of roundeven.
28254 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28255 __setpayloadl.
28256 (setpayloadl): Define as weak alias.
28257 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28258 __setpayloadsigl.
28259 (setpayloadsigl): Define as weak alias.
28260 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28261 Rename to __totalorderl and define as weak alias.
28262 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28263 Rename to __totalordermagl and define as weak alias.
28264 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28265 __ufromfpl.
28266 (ufromfpl): Define as weak alias.
28267 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28268 __ufromfpxl.
28269 (ufromfpxl): Define as weak alias.
28270 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28271 __fromfpl.
28272 (fromfpl): Define as weak alias.
28273 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28274 __fromfpxl.
28275 (fromfpxl): Define as weak alias.
28276 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28277 __getpayloadl and define as weak alias.
28278 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28279 __roundevenl and define as weak alias.
28280 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28281 __setpayloadl.
28282 (setpayloadl): Define as weak alias.
28283 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28284 __setpayloadsigl.
28285 (setpayloadsigl): Define as weak alias.
28286 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28287 __totalorderl and define as weak alias.
28288 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28289 Rename to __totalordermagl and define as weak alias.
28290 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28291 __ufromfpl.
28292 (ufromfpl): Define as weak alias.
28293 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28294 __ufromfpxl.
28295 (ufromfpxl): Define as weak alias.
28296
28297 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28298
28299 * benchtests/bench-string.h (realloc_bufs): New function.
28300 (test_init): Call it.
28301 * benchtests/bench-memset-large.c (do_test): Likewise.
28302 * benchtests/bench-memset.c (do_test): Likewise.
28303
28304 * benchtests/bench-memset-large.c: Print output in JSON
28305 format.
28306 * benchtests/bench-memset.c: Likewise.
28307
28308 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28309
28310 [BZ #21084]
28311 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28312 * iconvdata/Makefile: Add IBM858.
28313 * iconvdata/gconv-modules: Likewise.
28314 * iconvdata/tst-tables.sh: Likewise.
28315 * iconvdata/ibm858.c: New file.
28316 * localedata/charmaps/IBM858: Likewise.
28317
28318 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28319
28320 [BZ #22023]
28321 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28322 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28323
28324 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28325
28326 [BZ #22112]
28327 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28328 and add tel_int_fmt.
28329
28330 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28331
28332 * sysdeps/generic/libm-alias-float128.h: New file.
28333 * sysdeps/generic/math-type-macros-float128.h: Include
28334 <libm-alias-float128.h>.
28335 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28336
28337 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28338
28339 * sysdeps/generic/libm-alias-ldouble.h: New file.
28340 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28341 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28342 * sysdeps/generic/math-type-macros-ldouble.h: Include
28343 <libm-alias-ldouble.h>.
28344 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28345 libm_alias_ldouble.
28346
28347 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28348
28349 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28350 * math/w_exp_compat.c: ... here.
28351 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28352 * math/w_expf_compat.c: ... here.
28353 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28354 * math/w_expl_compat.c: ... here.
28355 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28356 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28357 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28358 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28359
28360 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28361
28362 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28363 redefine.
28364 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28365 macro.
28366 (ldexpl): Only define as compat symbol for libc, not libm.
28367 (scalbnl): Define as compat symbol for libc here.
28368 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28369 define for [IS_IN (libc)].
28370 (__ldexpl_2): Remove alias.
28371 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28372 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28373 name in long_double_symbol call.
28374 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28375 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28376 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28377 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28378 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28379 Remove macro.
28380 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28381 Define as compat symbol.
28382
28383 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28384
28385 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28386 * sysdeps/unix/sysv/linux/alpha/Makefile
28387 [$(subdir) = csu] (sysdep_routines): Remove rule.
28388
28389 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28390
28391 * sysdeps/generic/libm-alias-double.h: New file.
28392 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28393 * sysdeps/generic/math-type-macros-double.h: Include
28394 <libm-alias-double.h>.
28395 [declare_mgen_alias] (declare_mgen_alias): Define to use
28396 libm_alias_double.
28397 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28398 (M_LIBM_NEED_COMPAT): Remove macro.
28399 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28400 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28401 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28402 code.
28403 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28404 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28405 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28406 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28407 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28408 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28409 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28410 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28411 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28412 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28413 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28414 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28415 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28416 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28417 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28418 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28419 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28420 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28421 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28422 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28423 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28424 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28425 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28426 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28427 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28428 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28429 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28430 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28431 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28432 macro.
28433 (declare_mgen_alias): New macro.
28434 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28435 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28437 (M_LIBM_NEED_COMPAT): Remove macro.
28438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28439 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28440 <first-versions.h>.
28441 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28442 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28443
28444 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28445
28446 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28447 (declare_mgen_alias_2): Remove.
28448 * sysdeps/generic/math-type-macros-double.h
28449 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28450 Likewise.
28451 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28452 alias.
28453 (ldexp): Define with declare_mgen_alias.
28454 (scalbn): Likewise.
28455
28456 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28457
28458 * grp/initgroups.c: Include config.h.
28459 (DEFAULT_CONFIG): New macro.
28460 (internal_getgrouplist): Use DEFAULT_CONFIG.
28461 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28462 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28463 (DEFAULT_DEFCONFIG): New macro.
28464 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28465 * nss/grp-lookup.c: Include config.h
28466 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28467 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28468 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28469 * manual/nss.texi: Update default values section.
28470
28471 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28472
28473 [BZ #21967]
28474 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28475 New.
28476 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28477 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28478 Handle MathVec_Prefer_No_AVX512.
28479 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28480 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28481 is set.
28482
28483 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28484
28485 * posix/sched_primax.c (__sched_get_priority_max): Add
28486 libc_hidden_def.
28487 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28488 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28489 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28490 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28491 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28492 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28493 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28494 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28495 Add aliases.
28496
28497 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28498
28499 * sysdeps/generic/libm-alias-float.h: New file.
28500 * sysdeps/generic/math-type-macros-float.h: Include
28501 <libm-alias-float.h>.
28502 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28503
28504 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28505
28506 [BZ #22093]
28507 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28508 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28509 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28510 (HWCAP_IMPORTANT): Likewise.
28511 (HWCAP_X86_64): New enum.
28512 (HWCAP_X86_AVX512_1): Updated.
28513 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28514 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28515 (modules-names): Add x86_64/tst-x86_64mod-1.
28516 (LDFLAGS-tst-x86_64mod-1.so): New.
28517 ($(objpfx)tst-x86_64-1): Likewise.
28518 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28519 (tst-x86_64-1-clean): Likewise.
28520 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28521 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28522
28523 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28524
28525 * po/sv.po: Update translations.
28526 * po/fr.po: Likewise.
28527
28528 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28529
28530 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28531 seconds.
28532 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28533 seconds.
28534 * elf/rtld-Rules: Fix $(error) use.
28535
28536 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28537
28538 [BZ #14925]
28539 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28540 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28541 * localedata/locales/bn_BD: “Bengali” was still used in some
28542 comments. Change it to “Bangla”.
28543
28544 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28545
28546 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28547
28548 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28549
28550 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28551 thunderx2t99p1 to list of cpu names.
28552 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28553 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28554
28555 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28556
28557 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28558 Use strcmp instead of tunable_is_name.
28559
28560 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28561
28562 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28563 (F_GET_RW_HINT): New macro.
28564 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28565 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28566 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28567 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28568 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28569 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28570 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28571 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28572 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28573
28574 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28575 (F_ADD_SEALS): New macro.
28576 [__USE_GNU] (F_GET_SEALS): Likewise.
28577 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28578 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28579 [__USE_GNU] (F_SEAL_GROW): Likewise.
28580 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28581
28582 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28583
28584 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28585 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28586 * posix/glob_internal.h (__glob_pattern_type):
28587 * posix/glob.c (glob):
28588 * posix/glob_pattern_p.c (__glob_pattern_p):
28589 Use them.
28590
28591 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28592 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28593 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28594 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28595 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28596 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28597 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28598 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28599 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28600 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28601 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28602 * sysdeps/wordsize-64/glob.c: Likewise.
28603 * sysdeps/wordsize-64/glob64.c: Likewise.
28604 * sysdeps/wordsize-64/globfree.c: Likewise.
28605 * sysdeps/wordsize-64/globfree64.c: Likewise.
28606 * sysdeps/unix/sysv/linux/glob.c: New file.
28607 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28608 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28609 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28610 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28611 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28612 adds !GLOB_NO_OLD_VERSION as an extra condition.
28613 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28614 using relative path instead of absolute one.
28615 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28616 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28617 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28618 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28619 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28620 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28621
28622 [BZ #1062]
28623 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28624 (glob): Use the same scratch buffer for both getlogin_r and
28625 getpwnam_r. Don’t require preallocation of the login name. This
28626 simplifies storage allocation, and corrects the handling of
28627 long login names.
28628
28629 [BZ #1062]
28630 * posix/glob.c (glob): Port recent patches to platforms
28631 lacking getpwnam_r.
28632 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28633 returns an error number rather than setting errno.
28634
28635 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28636 instead of GCC extension.
28637 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28638 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28639 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28640
28641 [BZ #866]
28642 [BZ #1062]
28643 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28644 * posix/bug-glob1.c: Remove file.
28645 * posix/tst-glob_symlinks.c: New file.
28646 * posix/glob.c (__lstat64): New macro.
28647 (is_dir): New function.
28648 (glob, glob_in_dir): Match symlinks even if they are dangling.
28649 (link_stat, link_exists_p): Remove. All uses removed.
28650
28651 [BZ #1062]
28652 [BZ #19971]
28653 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28654 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28655 All uses removed.
28656
28657 [BZ #1062]
28658 CVE-2017-15671
28659 * posix/Makefile (routines): Add globfree, globfree64, and
28660 glob_pattern_p.
28661 * posix/flexmember.h: New file.
28662 * posix/glob_internal.h: Likewise.
28663 * posix/glob_pattern_p.c: Likewise.
28664 * posix/globfree.c: Likewise.
28665 * posix/globfree64.c: Likewise.
28666 * sysdeps/gnu/globfree64.c: Likewise.
28667 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28668 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28669 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28670 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28671 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28672 * sysdeps/wordsize-64/globfree.c: Likewise.
28673 * sysdeps/wordsize-64/globfree64.c: Likewise.
28674 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28675 [NDEBUG): Remove comments.
28676 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28677 (dirent_type): New type. Use uint_fast8_t not
28678 uint8_t, as C99 does not require uint8_t.
28679 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28680 (struct readdir_result): Use dirent_type. Do not define skip_entry
28681 unless it is needed; this saves a byte on platforms lacking d_ino.
28682 (readdir_result_type, readdir_result_skip_entry):
28683 New functions, replacing ...
28684 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28685 these functions, which were removed. This makes the callers
28686 easier to read. All callers changed.
28687 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28688 (size_add_wrapv, glob_use_alloca): New static functions.
28689 (glob, glob_in_dir): Check for size_t overflow in several places,
28690 and fix some size_t checks that were not quite right.
28691 Remove old code using SHELL since Bash no longer
28692 uses this.
28693 (glob, prefix_array): Separate MS code better.
28694 (glob_in_dir): Remove old Amiga and VMS code.
28695 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28696 separate files.
28697 (glob_in_dir): Do not rely on undefined behavior in accessing
28698 struct members beyond their bounds. Use a flexible array member
28699 instead
28700 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28701 0/1. Caller changed.
28702 (glob): Fix memory leaks.
28703 * posix/glob64 (globfree64): Move to separate file.
28704 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28705 (globfree64): Remove hidden alias.
28706 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28707 oldglob.
28708 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28709 separate file.
28710 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28711 define.
28712 Move compat code to separate file.
28713 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28714 separate file.
28715
28716 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28717
28718 * resolv/tst-resolv-qtypes.c (domain): Changed to
28719 "const char domain[] =".
28720
28721 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28722
28723 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28724 version to 3.1.6.
28725
28726 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28727 (TCP_MD5SIG_EXT): Likewise.
28728 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28729 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28730 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28731
28732 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28733
28734 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28735
28736 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28737
28738 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28739
28740 [BZ #22100]
28741 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28742
28743 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28744
28745 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28746 before assuming that the file is empty. Avoid testing buffer content
28747 when nread == 0.
28748
28749 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28750
28751 [BZ #18858]
28752 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28753 Remove define.
28754 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28755 Likewise.
28756 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28757 Likewise.
28758 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28759 Likewise.
28760 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28761 Likewise.
28762 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28763 Likewise.
28764 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28765 Likewise.
28766
28767 2017-09-06 Florian Weimer <fweimer@redhat.com>
28768
28769 * malloc/dynarray_emplace_enlarge.c
28770 (__libc_dynarray_emplace_enlarge): Add missing else.
28771
28772 2017-09-06 Florian Weimer <fweimer@redhat.com>
28773
28774 [BZ #22096]
28775 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28776 case of failure to obtain the global conf object.
28777
28778 2017-09-06 Florian Weimer <fweimer@redhat.com>
28779
28780 [BZ #22095]
28781 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28782 dynarray allocation failure.
28783
28784 2017-09-06 Florian Weimer <fweimer@redhat.com>
28785
28786 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28787 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28788 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28789 New functions.
28790 (response): Call them. Add 'p', '6' flag processing.
28791 (test_reverse): New function.
28792 (test_get2_any): Call it.
28793 (test_no_inet6): Add 'p' test.
28794 (test_inet6): Likewise.
28795
28796 2017-09-06 Florian Weimer <fweimer@redhat.com>
28797
28798 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28799 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28800 the QNAME.
28801 (test_gai): Adjust query names. Add additional tests.
28802 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28803 test_get2. Adjust query names. Add additional tests.
28804 (test_no_inet6): New function, extracted from threadfunc.
28805 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28806 Add additional tests.
28807
28808 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28809
28810 [BZ #22070]
28811 * localedata/unicode-gen/utf8_gen.py: Set the width for
28812 characters with Prepended_Concatenation_Mark property to 1
28813 * localedata/charmaps/UTF-8: Updated using the improved script.
28814
28815 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28816
28817 [BZ #21750]
28818 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28819 use the range notation for all ranges of neighbouring characters
28820 with the same width.
28821
28822 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28823
28824 * sysdeps/generic/math-type-macros-double.h: Include
28825 <math-svid-compat.h>.
28826 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28827 * sysdeps/generic/math-type-macros-float.h: Include
28828 <math-svid-compat.h>.
28829 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28830 * sysdeps/generic/math-type-macros-ldouble.h: Include
28831 <math-svid-compat.h>.
28832 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28833 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28834 condition.
28835 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28836 * math/w_acosf_compat.c: Likewise.
28837 * math/w_acosh_compat.c: Likewise.
28838 * math/w_acoshf_compat.c: Likewise.
28839 * math/w_acoshl_compat.c: Likewise.
28840 * math/w_acosl_compat.c: Likewise.
28841 * math/w_asin_compat.c: Likewise.
28842 * math/w_asinf_compat.c: Likewise.
28843 * math/w_asinl_compat.c: Likewise.
28844 * math/w_atan2_compat.c: Likewise.
28845 * math/w_atan2f_compat.c: Likewise.
28846 * math/w_atan2l_compat.c: Likewise.
28847 * math/w_atanh_compat.c: Likewise.
28848 * math/w_atanhf_compat.c: Likewise.
28849 * math/w_atanhl_compat.c: Likewise.
28850 * math/w_cosh_compat.c: Likewise.
28851 * math/w_coshf_compat.c: Likewise.
28852 * math/w_coshl_compat.c: Likewise.
28853 * math/w_exp10_compat.c: Likewise.
28854 * math/w_exp10f_compat.c: Likewise.
28855 * math/w_exp10l_compat.c: Likewise.
28856 * math/w_exp2_compat.c: Likewise.
28857 * math/w_exp2f_compat.c: Likewise.
28858 * math/w_exp2l_compat.c: Likewise.
28859 * math/w_fmod_compat.c: Likewise.
28860 * math/w_fmodf_compat.c: Likewise.
28861 * math/w_fmodl_compat.c: Likewise.
28862 * math/w_hypot_compat.c: Likewise.
28863 * math/w_hypotf_compat.c: Likewise.
28864 * math/w_hypotl_compat.c: Likewise.
28865 * math/w_j0_compat.c: Likewise.
28866 * math/w_j0f_compat.c: Likewise.
28867 * math/w_j0l_compat.c: Likewise.
28868 * math/w_j1_compat.c: Likewise.
28869 * math/w_j1f_compat.c: Likewise.
28870 * math/w_j1l_compat.c: Likewise.
28871 * math/w_jn_compat.c: Likewise.
28872 * math/w_jnf_compat.c: Likewise.
28873 * math/w_jnl_compat.c: Likewise.
28874 * math/w_lgamma_r_compat.c: Likewise.
28875 * math/w_lgammaf_r_compat.c: Likewise.
28876 * math/w_lgammal_r_compat.c: Likewise.
28877 * math/w_log10_compat.c: Likewise.
28878 * math/w_log10f_compat.c: Likewise.
28879 * math/w_log10l_compat.c: Likewise.
28880 * math/w_log2_compat.c: Likewise.
28881 * math/w_log2f_compat.c: Likewise.
28882 * math/w_log2l_compat.c: Likewise.
28883 * math/w_log_compat.c: Likewise.
28884 * math/w_logf_compat.c: Likewise.
28885 * math/w_logl_compat.c: Likewise.
28886 * math/w_pow_compat.c: Likewise.
28887 * math/w_powf_compat.c: Likewise.
28888 * math/w_powl_compat.c: Likewise.
28889 * math/w_remainder_compat.c: Likewise.
28890 * math/w_remainderf_compat.c: Likewise.
28891 * math/w_remainderl_compat.c: Likewise.
28892 * math/w_sinh_compat.c: Likewise.
28893 * math/w_sinhf_compat.c: Likewise.
28894 * math/w_sinhl_compat.c: Likewise.
28895 * math/w_sqrt_compat.c: Likewise.
28896 * math/w_sqrtf_compat.c: Likewise.
28897 * math/w_sqrtl_compat.c: Likewise.
28898 * math/w_tgamma_compat.c: Likewise.
28899 * math/w_tgammaf_compat.c: Likewise.
28900 * math/w_tgammal_compat.c: Likewise.
28901 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28902 [LIBM_SVID_COMPAT].
28903 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28904 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28905 [LIBM_SVID_COMPAT].
28906 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28907 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28908 [LIBM_SVID_COMPAT].
28909 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28910 * sysdeps/i386/fpu/w_sqrt.c: New file.
28911 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28912 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28913 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28914 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28915 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28916 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28917 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28918 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28919 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28920 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28921 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28922 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28923 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28924 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28925 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28926 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28927 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28928 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28929 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28930 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28931 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28932 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28933 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28934 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28935 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28936 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28937 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28938 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28939 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28940 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28941 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28942 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28943 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28944 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28945 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28946 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28947 * sysdeps/ia64/fpu/w_log.c: Likewise.
28948 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28949 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28950 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28951 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28952 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28953 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28954 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28955 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28956 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28957 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28958 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28959 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28960 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28961 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28962 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28963 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28964 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28965 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28966 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28967 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28968 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28969 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28970 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28971 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28972 [LIBM_SVID_COMPAT].
28973 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28974 * sysdeps/ieee754/k_standard.c: Likewise.
28975 * sysdeps/ieee754/k_standardf.c: Likewise.
28976 * sysdeps/ieee754/k_standardl.c: Likewise.
28977 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28978 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28979 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28980 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28981 long_double_symbol call on [LIBM_SVID_COMPAT].
28982 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28983 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28984 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28985 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28986 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28987 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28988 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28989 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28990 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28991 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28992 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28993 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28994 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28995 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28996 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28997 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28998 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28999 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
29000 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
29001 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
29002 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
29003 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
29004
29005 2017-09-05 Steve Ellcey <sellcey@cavium.com>
29006
29007 * include/shlib-compat.h (TEST_COMPAT): New Macro.
29008 * malloc/tst-mallocstate.c: Convert from test-skeleton
29009 to test-driver. Ifdef code using TEST_COMPAT macro.
29010 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
29011 * math/test-matherr.c: Likewise.
29012
29013 2017-09-05 Joseph Myers <joseph@codesourcery.com>
29014
29015 [BZ #22086]
29016 * debug/pcprofiledump.c (main): Use byte-swapped mask when
29017 comparing word with byte-swapped constant.
29018
29019 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
29020
29021 [BZ #20498]
29022 * locale/iso-639.def: add Miskito.
29023 * localedata/SUPPORTED: Add miq_NI/UTF-8.
29024 * localedata/locales/miq_NI: New file.
29025
29026 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
29027
29028 [BZ #18822]
29029 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
29030 (__mkdir): Likewise.
29031 * io/chmod.c (__chmod): Add libc_hidden_def.
29032 * io/mkdir.c (__mkdir): Likewise.
29033 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
29034 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
29035 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
29036 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
29037
29038 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29039
29040 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
29041 version to 4.13.
29042
29043 [BZ #22082]
29044 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
29045 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
29046
29047 2017-09-04 Florian Weimer <fweimer@redhat.com>
29048
29049 * math/math.h: Issue warning if log is defined.
29050
29051 2017-09-04 Joseph Myers <joseph@codesourcery.com>
29052
29053 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
29054 kernel version to 4.13.
29055
29056 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
29057
29058 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
29059 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
29060 parameter.
29061 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
29062 just <bits/types.h>.
29063 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
29064 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
29065 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
29066 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
29067 * misc/preadv2.c: Include <errno.h>.
29068 * misc/preadv64v2.c: Include <errno.h>.
29069 * misc/pwritev2.c: Include <errno.h>.
29070 * misc/pwritev64v2.c: Include <errno.h>.
29071 * sysdeps/posix/preadv2.c: Include <errno.h>.
29072 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29073 Fix <unistd.h> inclusion.
29074 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29075 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29076 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29077 __strtoul_internal): New functions.
29078 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29079 * sysdeps/posix/system.c: Include <sigsetops.h>.
29080 * sysdeps/mach/hurd/i386/Makefile
29081 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29082 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29083 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29084 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29085 __feraiseexcept_renamed to feraiseexcept instead of
29086 __GI_feraiseexcept.
29087 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29088 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29089 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29090 RWF_NOWAIT): Define to 0 if undefined already.
29091 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29092 boils down to 0.
29093 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29094 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29095
29096 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29097
29098 * manual/math.texi (pow10): Do not document.
29099 (pow10f): Likewise.
29100 (pow10l): Likewise.
29101 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29102 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29103 * math/libm-test-exp10.inc (pow10_test): Remove.
29104 (do_test): Do not call pow10.
29105 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29106 [NO_LONG_DOUBLE] (pow10l): Likewise.
29107 * math/w_exp10f_compat.c (pow10f): Likewise.
29108 * math/w_exp10l_compat.c (pow10l): Likewise.
29109 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29110 (pow10): Make into compat symbol.
29111 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29112 (pow10f): Make into compat symbol.
29113 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29114 (pow10l): Make into compat symbol.
29115 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29116 pow10.
29117 (CFLAGS-nldbl-pow10.c): Remove variable..
29118 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29119 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29120 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29121 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29122 Undefine and redefine.
29123 (pow10l): Make into compat symbol.
29124 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29125 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29126 * sysdeps/arm/libm-test-ulps: Likewise.
29127 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29128 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29129 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29130 * sysdeps/microblaze/libm-test-ulps: Likewise.
29131 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29132 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29133 * sysdeps/nios2/libm-test-ulps: Likewise.
29134 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29135 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29136 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29137 * sysdeps/sh/libm-test-ulps: Likewise.
29138 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29139 * sysdeps/tile/libm-test-ulps: Likewise.
29140 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29141
29142 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29143
29144 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29145
29146 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29147
29148 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29149 "../ChangeLog.old/ChangeLog.8".
29150 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29151 "../ChangeLog.old/ChangeLog.14".
29152
29153 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29154
29155 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29156 Threads Library.
29157
29158 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29159
29160 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29161
29162 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29163
29164 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29165 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29166
29167 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29168
29169 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29170 32 atexit handlers.
29171
29172 2017-09-01 Zack Weinberg <zackw@panix.com>
29173
29174 * math/math.h (HUGE_VAL): Improve commentary.
29175
29176 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29177 Andreas Schwab <schwab@suse.de>
29178
29179 [BZ #21530]
29180 * include/stdio.h (__gen_tempfd): New function.
29181 * stdio-common/Makefile (routines): Add gentempfd.
29182 * stdio-common/gentempfd.c: New file.
29183 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29184 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29185 unnamed file first.
29186
29187 2017-09-01 Florian Weimer <fweimer@redhat.com>
29188
29189 [BZ #21915]
29190 [BZ #21922]
29191 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29192 result to determine success or failure, not the errno value.
29193 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29194 (tst-nss-files-hosts-erange): Link with -ldl.
29195 * nss/tst-nss-files-hosts-erange.c: New file.
29196 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29197 (do_test): Add NO_DATA tests.
29198 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29199 (do_test): Call it.
29200
29201 2017-09-01 Florian Weimer <fweimer@redhat.com>
29202
29203 [BZ #21922]
29204 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29205 coming from gethostbyname2_r.
29206
29207 2017-09-01 Florian Weimer <fweimer@redhat.com>
29208
29209 * support/namespace.h (struct support_chroot_configuration): Add
29210 hosts, host_conf.
29211 (struct support_chroot): Add path_hosts, path_host_conf.
29212 * support/support_chroot.c (write_file): New function.
29213 (support_chroot_create): Call it to process /etc/resolv.conf,
29214 /etc/hosts, /etc/host.conf.
29215 (support_chroot_free): Update.
29216
29217 2017-09-01 Florian Weimer <fweimer@redhat.com>
29218
29219 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29220 status indicates it is set.
29221
29222 2017-09-01 Florian Weimer <fweimer@redhat.com>
29223
29224 [BZ #20532]
29225 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29226 function lookup failures more reliable.
29227
29228 2017-09-01 Florian Weimer <fweimer@redhat.com>
29229
29230 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29231 (getcanonname): Likewise.
29232 (gaih_inet): Likewise.
29233
29234 2017-09-01 Florian Weimer <fweimer@redhat.com>
29235
29236 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29237 (getcanonname): Likewise.
29238 (gaih_inet): Likewise.
29239
29240 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29241 Richard Henderson <rth@twiddle.net>
29242
29243 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29244 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29245 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29246 (IREG_SIZE, OREG_SIZE): New macros.
29247 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29248 (IREG_SIZE, OREG_SIZE): New macros.
29249 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29250 (IREG_SIZE): New macro.
29251 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29252 (IREG_SIZE): New macro.
29253 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29254 New includes.
29255 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29256 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29257 (__CONCATX): Handle exceptions correctly on large values that may
29258 set FE_INVALID.
29259 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29260 Initialize if not already set.
29261 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29262
29263 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29264
29265 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29266 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29267 Likewise.
29268 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29269 Likewise.
29270 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29271 Likewise.
29272 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29273 Likewise.
29274 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29275 Likewise.
29276 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29277 Likewise.
29278 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29279 Likewise.
29280 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29281 (NO_CANCELLATION): Likewise.
29282 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29283 Likewise.
29284 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29285 Likewise.
29286 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29287 Likewise.
29288 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29289 (NO_CANCELLATION): Likewise.
29290 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29291 (NO_CANCELLATION): Likewise.
29292 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29293 Likewise
29294 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29295 Likewise.
29296 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29297 Likewise.
29298 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29299 Likewise.
29300 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29301 hidden prototype.
29302 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29303 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29304
29305 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29306
29307 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29308 in resolver call.
29309
29310 2017-08-31 Florian Weimer <fweimer@redhat.com>
29311
29312 * include/libc-symbols.h (internal_function): Remove.
29313
29314 2017-08-31 Florian Weimer <fweimer@redhat.com>
29315
29316 * stdlib/fmtmsg.c (internal_addseverity): Remove
29317 internal_function.
29318
29319 2017-08-31 Florian Weimer <fweimer@redhat.com>
29320
29321 * stdio-common/printf_fp.c (group_number): Remove
29322 internal_function.
29323 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29324
29325 2017-08-31 Florian Weimer <fweimer@redhat.com>
29326
29327 * posix/fnmatch.c (internal_function): Remove definition.
29328 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29329 * posix/regcomp.c (peek_token, init_word_char)
29330 (duplicate_node_closure, fetch_token, peek_token)
29331 (peek_token_bracket, build_range_exp, build_collating_symbol):
29332 Likewise.
29333 * posix/regex_internal.c (re_string_construct_common)
29334 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29335 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29336 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29337 (re_string_translate_buffer, re_string_reconstruct)
29338 (re_string_peek_byte_case, re_string_fetch_byte_case)
29339 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29340 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29341 (re_node_set_add_intersect, re_node_set_init_union)
29342 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29343 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29344 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29345 (re_acquire_state_context): Likewise.
29346 * posix/regex_internal.h (internal_function): Remove definition.
29347 (re_string_realloc_buffers, build_wcs_buffer)
29348 (build_wcs_upper_buffer, build_upper_buffer)
29349 (re_string_translate_buffer, re_string_context_at)
29350 (re_string_char_size_at, re_string_wchar_at)
29351 (re_string_elem_size_at): Likewise.
29352 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29353 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29354 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29355 (re_search_internal, re_search_2_stub, re_search_stub)
29356 (re_copy_regs, prune_impossible_nodes, check_matching)
29357 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29358 (free_fail_stack_return, sift_states_iter_mb)
29359 (sift_states_backward, build_sifted_states)
29360 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29361 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29362 (check_subexp_limits, sift_states_bkref, merge_state_array)
29363 (find_recover_state, transit_state, merge_state_with_log)
29364 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29365 (transit_state_mb, transit_state_bkref, get_subexp)
29366 (get_subexp_sub, find_subexp_node, check_arrival)
29367 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29368 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29369 (check_node_accept_bytes, find_collation_sequence_value)
29370 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29371 (acquire_init_state_context, check_halt_node_context)
29372 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29373 (sub_epsilon_src_nodes): Likewise.
29374 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29375 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29376 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29377 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29378 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29379 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29380 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29381 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29382 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29383 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29384 (PREADV): Likewise.
29385 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29386 (PREADV): Likewise.
29387 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29388 (PWRITEV): Likewise.
29389 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29390 (PWRITEV): Likewise.
29391 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29392 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29393
29394 2017-08-31 Florian Weimer <fweimer@redhat.com>
29395
29396 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29397 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29398 Remove internal_function.
29399 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29400 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29401 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29402 (__deallocate_stack, __libc_pthread_init)
29403 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29404 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29405 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29406 Likewise.
29407 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29408 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29409 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29410 Likewise.
29411 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29412 (__pthread_mutex_unlock_usercnt): Likewise.
29413
29414 2017-08-31 Florian Weimer <fweimer@redhat.com>
29415
29416 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29417 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29418 (fts_safe_changedir): Remove internal_function.
29419 * io/ftw.c (internal_function): Remove definition.
29420 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29421
29422 2017-08-31 Florian Weimer <fweimer@redhat.com>
29423
29424 * inet/deadline.c (__deadline_current_time)
29425 (__deadline_from_timeval, __deadline_to_ms): Remove
29426 internal_function.
29427 * inet/getnameinfo.c (nrl_domainname): Likewise.
29428 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29429 * inet/inet6_option.c (add_pad): Likewise.
29430 * inet/net-internal.h (__deadline_current_time)
29431 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29432 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29433 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29434 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29435
29436 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29437
29438 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29439 include <bits/nan.h>.
29440 * math/Makefile (headers): Remove bits/nan.h.
29441 * bits/nan.h: Remove.
29442 * sysdeps/ieee754/bits/nan.h: Likewise.
29443 * sysdeps/mips/bits/nan.h: Likewise.
29444
29445 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29446 not include <bits/inf.h>.
29447 * math/Makefile (headers): Remove bits/inf.h.
29448 * bits/inf.h: Remove.
29449 * sysdeps/ieee754/bits/inf.h: Likewise.
29450
29451 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29452 bits/huge_vall.h or bits/huge_val_flt128.h.
29453 (HUGE_VAL): Define directly here.
29454 [__USE_ISOC99] (HUGE_VALF): Likewise.
29455 [__USE_ISOC99] (HUGE_VALL): Likewise.
29456 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29457 (HUGE_VAL_F128): Likewise.
29458 * math/Makefile (headers): Remove bits/huge_val.h,
29459 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29460 * bits/huge_val.h: Remove.
29461 * bits/huge_val_flt128.h: Likewise.
29462 * bits/huge_valf.h: Likewise.
29463 * bits/huge_vall.h: Likewise.
29464 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29465 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29466 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29467 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29468 * sysdeps/sh/bits/huge_val.h: Likewise.
29469 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29470 * sysdeps/x86/bits/huge_vall.h: Likewise.
29471
29472 2017-08-31 Florian Weimer <fweimer@redhat.com>
29473
29474 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29475 internal_function.
29476 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29477 Likewise.
29478 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29479 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29480 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29481 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29482 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29483 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29484 * elf/dl-libc.c (dlerror_run): Likewise.
29485 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29486 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29487 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29488 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29489 Likewise.
29490 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29491 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29492 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29493 * elf/dl-profile.c (_dl_start_profile): Likewise.
29494 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29495 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29496 Likewise.
29497 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29498 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29499 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29500 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29501 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29502 (_dl_allocate_tls_storage): Likewise.
29503 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29504 (_dl_check_all_versions): Likewise.
29505 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29506 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29507 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29508 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29509 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29510 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29511 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29512 internal_function from __dl_start.
29513 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29514 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29515 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29516 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29517 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29518 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29519 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29520 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29521 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29522 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29523 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29524 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29525 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29526 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29527 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29528 Likewise.
29529 (struct rtld_global_ro): Remove internal_function from the
29530 _dl_lookup_symbol_x member.
29531 (_dl_symbol_value): Remove. No longer defined anywhere.
29532 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29533 internal_function.
29534 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29535 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29536 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29537 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29538 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29539 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29540 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29541 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29542 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29543 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29544 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29545 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29546
29547 2017-08-31 Florian Weimer <fweimer@redhat.com>
29548
29549 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29550 Remove internal_function.
29551 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29552 Likewise.
29553 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29554 Likewise.
29555
29556 2017-08-31 Florian Weimer <fweimer@redhat.com>
29557
29558 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29559 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29560 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29561
29562 2017-08-31 Florian Weimer <fweimer@redhat.com>
29563
29564 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29565 (__gai_enqueue_request): Remove internal_function.
29566 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29567 (__gai_remove_request, __gai_notify, __gai_notify_only)
29568 (__gai_sigqueue): Likewise.
29569 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29570 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29571 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29572 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29573 Likewise.
29574
29575 2017-08-31 Florian Weimer <fweimer@redhat.com>
29576
29577 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29578 * include/dirent.h (__opendirat, __getdents, __getdents64)
29579 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29580 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29581 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29582 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29583 Likewise.
29584 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29585
29586 2017-08-31 Florian Weimer <fweimer@redhat.com>
29587
29588 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29589 internal_function.
29590 (GETCWD_RETURN_TYPE): Likewise.
29591
29592 2017-08-31 Florian Weimer <fweimer@redhat.com>
29593
29594 * include/time.h (__tz_compute, __strptime_internal): Remove
29595 internal_function.
29596 * time/strptime_l.c (__strptime_internal): Likewise.
29597 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29598
29599 2017-08-31 Florian Weimer <fweimer@redhat.com>
29600
29601 * iconv/gconv.c (__gconv): Remove internal_function.
29602 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29603 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29604 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29605 (__gconv_release_cache): Likewise.
29606 * iconv/gconv_close.c (__gconv_close): Likewise.
29607 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29608 (read_conf_file, __gconv_get_path): Likewise.
29609 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29610 (__gconv_release_step, gen_steps, increment_counter)
29611 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29612 (__gconv_close_transform, free_modules_db): Likewise.
29613 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29614 Likewise.
29615 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29616 (__gconv_find_transform, __gconv_lookup_cache)
29617 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29618 (__gconv_close_transform, __gconv_release_cache)
29619 (__gconv_loaded_object, __gconv_release_shlib)
29620 (__gconv_compare_alias): Likewise.
29621 * iconv/gconv_open.c (__gconv_open): Likewise.
29622 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29623 * iconv/iconvconfig.c (add_module): Likewise.
29624 * intl/dcigettext.c (plural_lookup, guess_category_value)
29625 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29626 * intl/eval-plural.h (plural_eval): Likewise.
29627 * intl/finddomain.c (_nl_find_domain): Likewise.
29628 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29629 (_nl_load_domain, _nl_find_msg): Likewise.
29630 (internal_function): Remove definition.
29631 * intl/loadinfo.h (internal_function): Likewise.
29632 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29633 internal_function.
29634 * intl/localealias.c (internal_function): Remove definition.
29635 (read_alias_file): Remove internal_function.
29636 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29637 * intl/plural-exp.h (internal_function): Remove definition.
29638 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29639 internal_function.
29640 * intl/plural.c: Regenerate.
29641 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29642 * locale/coll-lookup.c (__collidx_table_lookup)
29643 (__collseq_table_lookup): Likewise.
29644 * locale/coll-lookup.h (__collidx_table_lookup)
29645 (__collseq_table_lookup): Likewise.
29646 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29647 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29648 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29649 (_nl_unload_locale): Likewise.
29650 * locale/localeinfo.h (struct __locale_data): Remove
29651 internal_function from cleanup member.
29652 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29653 (_nl_remove_locale, _nl_load_locale_from_archive)
29654 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29655 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29656 (_nl_cleanup_time): Remove internal_function.
29657 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29658 (_nl_parse_alt_digit): Likewise.
29659 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29660 (_nl_select_era_entry): Likewise.
29661 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29662 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29663 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29664 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29665 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29666
29667 2017-08-31 Florian Weimer <fweimer@redhat.com>
29668
29669 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29670 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29671 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29672 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29673 Likewise.
29674 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29675 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29676 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29677 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29678 Likewise.
29679 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29680
29681 2017-08-31 Florian Weimer <fweimer@redhat.com>
29682
29683 * misc/getttyent.c (skip, value): Remove internal_function.
29684 * misc/syslog.c (openlog_internal): Likewise.
29685 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29686
29687 2017-08-31 Florian Weimer <fweimer@redhat.com>
29688
29689 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29690 (__nss_rewrite_field): Remove internal_function.
29691 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29692 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29693 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29694 * nss/nsswitch.c (nss_parse_file, nss_getline)
29695 (nss_parse_service_list, nss_new_service): Likewise.
29696 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29697 * nss/valid_field.c (__nss_valid_field): Likewise.
29698 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29699
29700 2017-08-31 Florian Weimer <fweimer@redhat.com>
29701
29702 * malloc/arena.c (__malloc_fork_lock_parent)
29703 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29704 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29705 internal_function from defintions.
29706 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29707 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29708 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29709 internal_function from declarations.
29710 * malloc/malloc.c (internal_function): Do not define.
29711 (mem2mem_check): Remove internal_function from declaration.
29712 (munmap_chunk, mremap_chunk): Remove internal_function.
29713 * malloc/mtrace.c (tr_where): Likewise.
29714
29715 2017-08-31 Florian Weimer <fweimer@redhat.com>
29716
29717 * include/rpc/pmap_clnt.h (__get_socket): Remove
29718 internal_function.
29719 * sunrpc/auth_des.c (synchronize): Likewise.
29720 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29721 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29722 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29723 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29724 (key_call): Likewise.
29725 * sunrpc/pm_getport.c (__get_socket): Likewise.
29726 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29727 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29728 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29729 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29730 (invalidate): Likewise.
29731 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29732 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29733 (set_input_fragment, get_input_bytes): Likewise.
29734
29735 2017-08-31 Florian Weimer <fweimer@redhat.com>
29736
29737 * malloc/malloc.c (_int_free): Remove locked variable and related
29738 asserts.
29739
29740 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29741
29742 [BZ #22051]
29743 * Makerules (build-module-helper-objlist): Filter out
29744 $(elf-objpfx)sofini.os.
29745 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29746 needed.
29747
29748 2017-08-31 Florian Weimer <fweimer@redhat.com>
29749
29750 * libio/fcloseall.c: Assume weak_alias is defined.
29751 * libio/feof.c: Likewise.
29752 * libio/fileno.c: Likewise.
29753 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29754 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29755 definitions.
29756 (_IO_file_open): Call __open directly.
29757 (_IO_new_file_sync): Assume ESPIPE is defined.
29758 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29759 (_IO_new_file_write): Call __write directly.
29760 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29761 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29762 * libio/genops.c: Assume _LIBC is defined.
29763 (save_for_backup): Remove internal_function.
29764 * libio/getc.c: Assume weak_alias is defined.
29765 * libio/getwc.c: Likewise.
29766 * libio/iofclose.c: Assume _LIBC is defined.
29767 * libio/iofdopen.c: Likewise.
29768 (_IO_fcntl): Remove macro definition.
29769 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29770 Call __fcntl directly.
29771 * libio/iofflush.c: Assume weak_alias is defined.
29772 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29773 defined.
29774 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29775 * libio/iofgets.c: Likewise.
29776 * libio/iofopen.c: Assume _LIBC is defined.
29777 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29778 * libio/iofputs.c: Assume weak_alias is defined.
29779 * libio/iofread.c: Likewise.
29780 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29781 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29782 * libio/ioftell.c: Assume weak_alias is defined.
29783 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29784 * libio/iofwide.c: Assume _LIBC is defined.
29785 (_IO_fwide): Drop SHARED conditional because it is implied by
29786 SHLIB_COMPAT.
29787 * libio/iofwrite.c: Assume weak_alias is defined.
29788 * libio/iogetdelim.c: Likewise.
29789 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29790 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29791 (_IO_getwline): Call __wmemcpy directly.
29792 * libio/iopopen.c: Assume _LIBC is defined.
29793 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29794 (_IO_close): Remove macro definitions.
29795 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29796 _exit directly.
29797 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29798 directly.
29799 * libio/ioputs.c: Assume weak_alias is defined.
29800 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29801 * libio/iosetbuffer.c: Assume weak_alias is defined.
29802 * libio/iosetvbuf.c: Likewise.
29803 * libio/ioungetc.c: Likewise.
29804 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29805 libc_hidden_def, libc_hidden_weak, NULL are defined.
29806 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29807 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29808 defined.
29809 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29810 definitions.
29811 (_IO_old_file_init_internal): Drop SHARED conditional because it
29812 is implied by SHLIB_COMPAT.
29813 (_IO_old_file_fopen): Call __open directly.
29814 (_IO_old_file_sync): Assume ESPIPE is defined.
29815 (_IO_old_file_write): Call __write directly.
29816 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29817 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29818 Call __fcntl directly.
29819 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29820 (_IO_old_fgetpos): Assume EIO is defined.
29821 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29822 (_IO_old_fgetpos64): Assume EIO is defined.
29823 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29824 (_IO_old_fsetpos): Assume EIO is defined.
29825 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29826 (_IO_old_fsetpos64): Assume EIO is defined.
29827 * libio/oldiopopen.c: Assume _LIBC is defined.
29828 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29829 (_IO_close): Remove macro definitions.
29830 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29831 directly.
29832 (_IO_old_proc_close): Call __close, __waitpid directly.
29833 * libio/put.c: Assume weak_alias is defined.
29834 * libio/stdfiles.c: Assume _LIBC is defined.
29835 * libio/stdio.c: Likewise.
29836 * libio/wfileops.c: Likewise.
29837 (_IO_wfile_sync): Assume ESPIPE is defined.
29838 * libio/wgenops.c: Assume _LIBC is defined.
29839 (save_for_wbackup): Remove internal_function.
29840
29841 2017-08-31 Florian Weimer <fweimer@redhat.com>
29842
29843 * malloc/malloc.c (top_check): Change return type to void. Remove
29844 internal_function.
29845 * malloc/hooks.c (top_check): Likewise.
29846 (malloc_check, realloc_check, memalign_check): Adjust.
29847
29848 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29849
29850 [BZ #21457]
29851 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29852 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29853 sigcontext and namespace requirements.
29854 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29855 * sysdeps/m68k/sys/ucontext.h: Likewise.
29856 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29857 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29858 <bits/sigcontext.h>.
29859 (__ctx): Define earlier.
29860 (mcontext_t): Define structure contents rather than using struct
29861 sigcontext.
29862 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29863 __glibc_reserved1 instead of __reserved.
29864 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29865 <bits/sigcontext.h>.
29866 (__ctx): Define earlier.
29867 (mcontext_t): Define structure contents rather than using struct
29868 sigcontext.
29869 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29870 mcontext_t instead of struct sigcontext.
29871 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29872 <bits/sigcontext.h>.
29873 (__ctx): Define earlier.
29874 (mcontext_t): Define structure contents rather than using struct
29875 sigcontext.
29876 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29877 <bits/sigcontext.h>.
29878 (__ctx): Define earlier.
29879 (mcontext_t): Define structure contents rather than using struct
29880 sigcontext.
29881 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29882 mcontext_t instead of struct sigcontext.
29883 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29884 mcontext_t instead of struct sigcontext.
29885 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29886 <bits/sigcontext.h>.
29887 (__ctx): New macro.
29888 (struct __ia64_fpreg_mcontext): New type.
29889 (mcontext_t): Define structure contents rather than using struct
29890 sigcontext.
29891 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29892 (uc_sigmask): Define using __ctx.
29893 (uc_stack): Likewise.
29894 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29895 <bits/sigcontext.h>.
29896 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29897 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29898 <bits/sigcontext.h>.
29899 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29900 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29901 <bits/sigcontext.h>.
29902 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29903 <bits/sigcontext.h>.
29904 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29905 <bits/sigcontext.h>.
29906 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29907 <bits/sigcontext.h>.
29908 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29909 <bits/sigcontext.h>.
29910 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29911 <bits/sigcontext.h>.
29912 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29913 <bits/sigcontext.h>.
29914 (__ctx): Define earlier.
29915 (mcontext_t): Define structure contents rather than using struct
29916 sigcontext.
29917 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29918 <bits/sigcontext.h>. Include <bits/types.h>.
29919 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29920 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29921 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29922 (test-xfail-UNIX98/signal.h/conform): Likewise.
29923 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29924 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29925 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29926 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29927 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29928 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29929 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29930 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29931 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29932
29933 2017-08-30 Florian Weimer <fweimer@redhat.com>
29934
29935 * malloc/dynarray_emplace_enlarge.c
29936 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29937 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29938 * malloc/tst-dynarray.c (test_long_overflow): New function.
29939 (do_test): Call it.
29940
29941 2017-08-30 Florian Weimer <fweimer@redhat.com>
29942
29943 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29944 (set_arena_corrupt): Remove definitions.
29945 (mtrim): Do not check for corrupt arena.
29946 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29947 Likewise.
29948
29949 2017-08-30 Florian Weimer <fweimer@redhat.com>
29950
29951 [BZ #21754]
29952 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29953 check_action.
29954 (ptmalloc_init): Do not set or use check_action.
29955 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29956 call to malloc_printerr. Remove return statement.
29957 (free_check): Likewise. Remove arena unlock.
29958 (top_check): Update comment. Adjust call to malloc_printerr.
29959 Remove heap repair code.
29960 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29961 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29962 (sysmalloc): Adjust call to malloc_printerr.
29963 (munmap_chunk, __libc_realloc): Likewise. Remove return
29964 statement.
29965 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29966 Remove errout label and corresponding gotos.
29967 (_int_free): Likewise. Remove arena unlock.
29968 (do_set_mallopt_check): Do not set check_action.
29969 (malloc_printerr): Adjust parameter list. Do not mark arena as
29970 corrupt.
29971 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29972 comment.
29973 * manual/probes.texi (Memory Allocation Probes): Remove
29974 memory_mallopt_check_action.
29975
29976 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29977
29978 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29979 Use pointer to uint64_t instead of long int for sp.
29980
29981 2017-08-30 Florian Weimer <fweimer@redhat.com>
29982
29983 [BZ #21754]
29984 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29985 without printing a backtrace. Do not leak any information in the
29986 error message.
29987 * manual/memory.texi (Heap Consistency Checking): Update.
29988 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29989
29990 2017-08-30 Florian Weimer <fweimer@redhat.com>
29991
29992 Do not scale NPTL tests with available number of CPUs.
29993 * nptl/tst-cond16.c (count): Set to constant value of 8.
29994 * nptl/tst-cond18.c (count): Likewise.
29995
29996 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29997
29998 [BZ #22035]
29999 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
30000 Define to take a second argument that is a macro that
30001 concatentates a suffix, not the suffix itself.
30002 (__CONCAT_d): New macro.
30003 (__CONCAT_f): Likewise.
30004 (__CONCAT_l): Likewise.
30005
30006 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
30007
30008 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
30009 by child.
30010
30011 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30012 Aurelien Jarno <aurelien@aurel32.net>
30013 Maciej W. Rozycki <macro@imgtec.com>
30014
30015 [BZ #21956]
30016 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
30017 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
30018 `mips16-syscall6' and `mips16-syscall7'.
30019 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
30020 (CFLAGS-mips16-syscall7.c): Remove.
30021 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
30022 Remove `__mips16_syscall5', `__mips16_syscall6' and
30023 `__mips16_syscall7'.
30024 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
30025 (__mips16_syscall0): Rename `__mips16_syscall_return' to
30026 `__mips_syscall_return'.
30027 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
30028 (__mips16_syscall1): Likewise.
30029 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
30030 (__mips16_syscall2): Likewise.
30031 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
30032 (__mips16_syscall3): Likewise.
30033 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
30034 (__mips16_syscall4): Likewise.
30035 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
30036 Remove.
30037 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
30038 Remove.
30039 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
30040 Remove.
30041 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
30042 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
30043 `__mips16_syscall5'. Remove prototype.
30044 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
30045 `__mips16_syscall6'. Remove prototype.
30046 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
30047 `__mips16_syscall7'. Remove prototype.
30048 (__nomips16, __mips16_syscall_return): Move to...
30049 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
30050 (__nomips16, __mips_syscall_return): ... here.
30051 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
30052 `__mips16_syscall_return' to `__mips_syscall_return'.
30053 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
30054 `internal_syscall##nr'.
30055 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
30056 `internal_syscall##nr'.
30057 (FORCE_FRAME_POINTER): Remove.
30058 (__mips_syscall5): New prototype.
30059 (internal_syscall5): Rewrite to call `__mips_syscall5'.
30060 (__mips_syscall6): New prototype.
30061 (internal_syscall6): Rewrite to call `__mips_syscall6'.
30062 (__mips_syscall7): New prototype.
30063 (internal_syscall7): Rewrite to call `__mips_syscall7'.
30064 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
30065 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
30066 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
30067 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
30068 (sysdep_routines): Add libc-do-syscall.
30069 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30070 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30071
30072 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30073
30074 [BZ #21672]
30075 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30076 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30077 (advise_stack_range): New function.
30078 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30079 stack non required to advise_stack_range at allocatestack.c
30080
30081 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30082
30083 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30084
30085 2017-08-29 Florian Weimer <fweimer@redhat.com>
30086
30087 [BZ #22026]
30088 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30089 __end_fct. Mangle __end_fct after setting it to NULL.
30090 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30091 (modules-names, modules-names-tests): Add
30092 tst-gconv-init-failure-mod.
30093 (gconv-modules): New target.
30094 (tst-gconv-init-failure-mod.so): Link against libsupport.
30095 (tst-gconv-init-failure): Depend on gconv-modules,
30096 tst-gconv-init-failure-mod.so.
30097 * iconv/tst-gconv-init-failure-mod.c: New file.
30098 * iconv/tst-gconv-init-failure.c: Likewise.
30099 * iconv/test-gconv-modules: Likewise.
30100
30101 2017-08-29 Florian Weimer <fweimer@redhat.com>
30102
30103 [BZ #22025]
30104 * iconv/gconv_db.c (free_derivation): Remove redundant
30105 parentheses.
30106 (gen_steps): Unconditionally mangle __btowc_fct after
30107 initialization.
30108 (increment_counter): Likewise. Do not call init_fct for internal
30109 modules.
30110
30111 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30112
30113 [BZ #22028]
30114 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30115 (_MSUF_): Remove macro.
30116 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30117 Likewise.
30118 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30119 (__REDIRFROM_X): New macro.
30120 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30121 Likewise.
30122 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30123 (__REDIRTO_X): Likewise.
30124 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30125 arguments.
30126 (__MATH_REDIRCALL_2): Likewise.
30127 (__MATH_REDIRCALL_INTERNAL): Likewise.
30128 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30129 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30130 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30131 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30132 * math/test-finite-macros.c: New file.
30133 * math/Makefile (tests): Add test-finite-macros.
30134 (CFLAGS-test-finite-macros.c): New variable.
30135
30136 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30137 Jeff Law <law@redhat.com>
30138
30139 [BZ #22025]
30140 Mangle NULL pointers in iconv/gconv.
30141 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30142 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30143 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30144 is non-NULL before demangling the end_fct. Check for NULL
30145 end_fct after demangling.
30146 (__gconv_release_step): Demangle the end_fct before checking
30147 it for NULL. Remove assert on __shlibc_handle != NULL.
30148 (gen_steps): Don't check btowc_fct for NULL before mangling.
30149 Demangle init_fct before checking for NULL.
30150 (increment_counter): Likewise.
30151 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30152 end_fct for NULL before mangling.
30153 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30154 for NULL.
30155
30156 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30157
30158 [BZ #21971]
30159 * locale/iso-639.def: add Morisyen.
30160
30161 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30162
30163 [BZ #21930]
30164 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30165 (iszero): New C++ implementation that does not use
30166 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30167 signaling nans are enabled, since __builtin_types_compatible_p
30168 is a C-only feature.
30169 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30170 defined, include ieee754_float128.h for access to the union and
30171 member ieee854_float128.ieee.
30172 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30173 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30174 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30175 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30176 options of test-math-zero on powerpc64le.
30177
30178 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30179
30180 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30181 Change double to float.
30182
30183 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30184
30185 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30186 unconditional.
30187 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30188 conditional code; define contents only for [LIBM_SVID_COMPAT].
30189
30190 2017-08-28 Florian Weimer <fweimer@redhat.com>
30191
30192 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30193 (abi-lp64_be-options): Remove.
30194 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30195 (abi-hard-options): Likewise.
30196 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30197 (abi-o32_hard-options, abi-o32_soft_2008-options)
30198 (abi-o32_hard_2008-options, abi-n32_soft-options)
30199 (abi-n32_hard-options, abi-n32_soft_2008-options)
30200 (abi-n32_hard_2008-options, abi-n64_soft-options)
30201 (abi-n64_hard-options, abi-n64_soft_2008-options)
30202 (abi-n64_hard_2008-options): Likewise.
30203 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30204 (abi-64-v1-options, abi-64-v2-options): Likewise.
30205 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30206 (abi-64-options): Likewise.
30207 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30208 (abi-64-options): Likewise.
30209 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30210 (abi-64-options): Likewise.
30211 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30212 (abi-64-options, abi-x32-options): Likewise.
30213
30214 2017-08-28 Florian Weimer <fweimer@redhat.com>
30215
30216 Store supported list of SYS_* system calls in the source tree.
30217 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30218 (bits/syscall.h): Generate from list file.
30219 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30220 [$(subdir) = misc] (tests): Add tst-syscall-list.
30221 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30222 [$(subdir) = misc] (tst-syscall-list-macros.list)
30223 [$(subdir) = misc] (tst-syscall-list-nr.list)
30224 (tst-syscall-list-sys.list): Helper targets for new
30225 tst-syscall-list test.
30226 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30227 tst-syscall-list.sh.
30228 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30229 target. Do not include bits/syscall.d.
30230 [$(subdir) = misc] (generated): Do not update.
30231 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30232 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30233 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30234 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30235
30236 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30237
30238 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30239 (tst-cxa_atexit, tst-on_exit): Likewise.
30240 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30241 tst-cxa_atexit, and tst-on_exit.
30242 * stdlib/tst-atexit-common.c: New file.
30243 * stdlib/tst-atexit.c: New file.
30244 * stdlib/tst-at_quick_exit.c: New file.
30245 * stdlib/tst-cxa_atexit.c: New file.
30246 * stdlib/tst-on_exit.c: New file.
30247
30248 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30249
30250 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30251 * mach/stack_chk_fail_local.c: New file.
30252 * hurd/stack_chk_fail_local.c: New file.
30253 * mach/Machrules ($(interface-library)-routines): Add
30254 stack_chk_fail_local.
30255 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30256 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30257 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30258 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30259 * hurd/Makefile (CFLAGS-hurdstartup.o,
30260 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30261
30262 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30263
30264 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30265 (index_cpu_*, index_arch_*): Removed.
30266
30267 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30268
30269 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30270 Use uint64_t instead of unsigned long.
30271
30272 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30273
30274 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30275 [__HAVE_DISTINCT_FLOAT128].
30276
30277 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30278 of <bits/math-finite.h>.
30279 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30280 inclusion of <bits/math-finite.h>.
30281 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30282 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30283 __NO_LONG_DOUBLE_MATH].
30284 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30285 (__MATH_REDIRCALL_2): Likewise.
30286 (__MATH_REDIRCALL_INTERNAL): Likewise.
30287 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30288 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30289 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30290
30291 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30292 Remove file.
30293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30294 Likewise.
30295 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30296 Likewise.
30297 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30298 Likewise.
30299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30300 Likewise.
30301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30302 Likewise.
30303 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30304 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30305 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30306 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30307 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30308 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30309 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30310 w_sqrtf_compat-ppc32.
30311
30312 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30313
30314 * math/math.h [defined __cplusplus] (issignaling): In the long
30315 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30316 is not defined. Call __issignaling, otherwise.
30317
30318 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30319
30320 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30321 syscall definitions and replace __builtin_expect with __glibc_likely.
30322 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30323 syscall.
30324 (SYSCALL_CANCELLABLE): Removedefinition
30325 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30326 definition.
30327 (PSEUDO_END): Likewise.
30328 [IS_IN (libpthread)] (CENABLE): Likewise.
30329 [IS_IN (libpthread)] (CDISABLE): Likewise.
30330 [IS_IN (libc)] (CENABLE): Likewise.
30331 [IS_IN (libc)] (CENABLE): Likewise.
30332 [IS_IN (librt)] (CDISABLE): Likewise.
30333 [IS_IN (librt)] (CDISABLE): Likewise.
30334 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30335 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30336 definition.
30337 (PSEUDO_END): Likewise.
30338 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30339 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30340 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30341 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30342 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30343 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30344 (CENABLE): Likewise.
30345 (CDISABLE): Likewise.
30346 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30347 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30348 defintion.
30349 (PSEUDO_END): Likewise.
30350 [IS_IN (libpthread)] (CENABLE): Likewise.
30351 [IS_IN (libpthread)] (CDISABLE): Likewise.
30352 [IS_IN (libc)] (CENABLE): Likewise.
30353 [IS_IN (libc)] (CENABLE): Likewise.
30354 [IS_IN (librt)] (CDISABLE): Likewise.
30355 [IS_IN (librt)] (CDISABLE): Likewise.
30356 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30357 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30358 definition.
30359 (PSEUDO_END): Likewise.
30360 [IS_IN (libpthread)] (CENABLE): Likewise.
30361 [IS_IN (libpthread)] (CDISABLE): Likewise.
30362 [IS_IN (libc)] (CENABLE): Likewise.
30363 [IS_IN (libc)] (CENABLE): Likewise.
30364 [IS_IN (librt)] (CDISABLE): Likewise.
30365 [IS_IN (librt)] (CDISABLE): Likewise.
30366 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30367 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30368 definition.
30369 (PSEUDO_END): Likewise.
30370 [IS_IN (libpthread)] (CENABLE): Likewise.
30371 [IS_IN (libpthread)] (CDISABLE): Likewise.
30372 [IS_IN (libc)] (CENABLE): Likewise.
30373 [IS_IN (libc)] (CENABLE): Likewise.
30374 [IS_IN (librt)] (CDISABLE): Likewise.
30375 [IS_IN (librt)] (CDISABLE): Likewise.
30376 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30377 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30378 definition.
30379 (PSEUDO_END): Likewise.
30380 [IS_IN (libpthread)] (CENABLE): Likewise.
30381 [IS_IN (libpthread)] (CDISABLE): Likewise.
30382 [IS_IN (libc)] (CENABLE): Likewise.
30383 [IS_IN (libc)] (CENABLE): Likewise.
30384 [IS_IN (librt)] (CDISABLE): Likewise.
30385 [IS_IN (librt)] (CDISABLE): Likewise.
30386 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30387 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30388 definition.
30389 (PSEUDO_END): Likewise.
30390 [IS_IN (libpthread)] (CENABLE): Likewise.
30391 [IS_IN (libpthread)] (CDISABLE): Likewise.
30392 [IS_IN (libc)] (CENABLE): Likewise.
30393 [IS_IN (libc)] (CENABLE): Likewise.
30394 [IS_IN (librt)] (CDISABLE): Likewise.
30395 [IS_IN (librt)] (CDISABLE): Likewise.
30396 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30397 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30398 definition.
30399 (PSEUDO_END): Likewise.
30400 [IS_IN (libpthread)] (CENABLE): Likewise.
30401 [IS_IN (libpthread)] (CDISABLE): Likewise.
30402 [IS_IN (libc)] (CENABLE): Likewise.
30403 [IS_IN (libc)] (CENABLE): Likewise.
30404 [IS_IN (librt)] (CDISABLE): Likewise.
30405 [IS_IN (librt)] (CDISABLE): Likewise.
30406 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30407 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30408 Remove definition.
30409 (PSEUDO_END): Likewise.
30410 [IS_IN (libpthread)] (CENABLE): Likewise.
30411 [IS_IN (libpthread)] (CDISABLE): Likewise.
30412 [IS_IN (libc)] (CENABLE): Likewise.
30413 [IS_IN (libc)] (CENABLE): Likewise.
30414 [IS_IN (librt)] (CDISABLE): Likewise.
30415 [IS_IN (librt)] (CDISABLE): Likewise.
30416 (SINGLE_THREAD_P): Likewise.
30417 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30418 definition.
30419 (PSEUDO_END): Likewise.
30420 [IS_IN (libpthread)] (CENABLE): Likewise.
30421 [IS_IN (libpthread)] (CDISABLE): Likewise.
30422 [IS_IN (libc)] (CENABLE): Likewise.
30423 [IS_IN (libc)] (CENABLE): Likewise.
30424 [IS_IN (librt)] (CDISABLE): Likewise.
30425 [IS_IN (librt)] (CDISABLE): Likewise.
30426 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30427 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30428 definition.
30429 (PSEUDO_END): Likewise.
30430 [IS_IN (libpthread)] (CENABLE): Likewise.
30431 [IS_IN (libpthread)] (CDISABLE): Likewise.
30432 [IS_IN (libc)] (CENABLE): Likewise.
30433 [IS_IN (libc)] (CENABLE): Likewise.
30434 [IS_IN (librt)] (CDISABLE): Likewise.
30435 [IS_IN (librt)] (CDISABLE): Likewise.
30436 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30437 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30438 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30439 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30440 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30441 definition.
30442 (PSEUDO_END): Likewise.
30443 [IS_IN (libpthread)] (CENABLE): Likewise.
30444 [IS_IN (libpthread)] (CDISABLE): Likewise.
30445 [IS_IN (libc)] (CENABLE): Likewise.
30446 [IS_IN (libc)] (CENABLE): Likewise.
30447 [IS_IN (librt)] (CDISABLE): Likewise.
30448 [IS_IN (librt)] (CDISABLE): Likewise.
30449 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30450 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30451 definition.
30452 (PSEUDO_END): Likewise.
30453 [IS_IN (libpthread)] (CENABLE): Likewise.
30454 [IS_IN (libpthread)] (CDISABLE): Likewise.
30455 [IS_IN (libc)] (CENABLE): Likewise.
30456 [IS_IN (libc)] (CENABLE): Likewise.
30457 [IS_IN (librt)] (CDISABLE): Likewise.
30458 [IS_IN (librt)] (CDISABLE): Likewise.
30459 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30460 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30461 definition.
30462 (PSEUDO_END): Likewise.
30463 [IS_IN (libpthread)] (CENABLE): Likewise.
30464 [IS_IN (libpthread)] (CDISABLE): Likewise.
30465 [IS_IN (libc)] (CENABLE): Likewise.
30466 [IS_IN (libc)] (CENABLE): Likewise.
30467 [IS_IN (librt)] (CDISABLE): Likewise.
30468 [IS_IN (librt)] (CDISABLE): Likewise.
30469 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30470 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30471 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30472 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30473 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30474 definition.
30475 (PSEUDO_END): Likewise.
30476 [IS_IN (libpthread)] (CENABLE): Likewise.
30477 [IS_IN (libpthread)] (CDISABLE): Likewise.
30478 [IS_IN (libc)] (CENABLE): Likewise.
30479 [IS_IN (libc)] (CENABLE): Likewise.
30480 [IS_IN (librt)] (CDISABLE): Likewise.
30481 [IS_IN (librt)] (CDISABLE): Likewise.
30482 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30483 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30484 definition.
30485 (PSEUDO_END): Likewise.
30486 [IS_IN (libpthread)] (CENABLE): Likewise.
30487 [IS_IN (libpthread)] (CDISABLE): Likewise.
30488 [IS_IN (libc)] (CENABLE): Likewise.
30489 [IS_IN (libc)] (CENABLE): Likewise.
30490 [IS_IN (librt)] (CDISABLE): Likewise.
30491 [IS_IN (librt)] (CDISABLE): Likewise.
30492 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30493
30494 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30495
30496 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30497
30498 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30499
30500 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30501
30502 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30503
30504 [BZ #21982]
30505 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30506 middle and outer with size_t instead of int. Repleace %d and
30507 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30508 "MAX (outer, nchars - 64)" to support unsigned outer and
30509 nchars. Also exit loop when outer == 0.
30510
30511 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30512
30513 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30514 * include/signal.h (__sigsuspend_nocancel): Likewise.
30515 * include/time.h (__nanosleep_nocancel): Likewise.
30516 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30517 * login/utmp_file.c: Include non cancellable syscall header.
30518 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30519 prototype.
30520
30521 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30522
30523 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30524 .byte sequences with AVX512F instructions.
30525 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30526 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30527 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30528 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30529 Likewise.
30530 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30531 Likewise.
30532
30533 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30534 Steve Ellcey <sellcey@cavium.com>
30535
30536 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30537 Use PTR_REG macro in cmp instruction.
30538
30539 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30540
30541 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30542 Change the return type of the ifunc resolver to match the return
30543 type of the target function.
30544
30545 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30546
30547 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30548 (preadv64): Likewise.
30549 (pwrite64(: Likewise.
30550 (pwritev64): Likewise.
30551
30552 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30553 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30554 (LOAD_ARGS_0): Likewise.
30555 (LOAD_ARGS_1): Likewise.
30556 (LOAD_ARGS_2): Likewise.
30557 (LOAD_ARGS_3): Likewise.
30558 (LOAD_ARGS_4): Likewise.
30559 (LOAD_ARGS_5): Likewise.
30560 (LOAD_ARGS_6): Likewise.
30561 (LOAD_REGS_0): Likewise.
30562 (LOAD_REGS_1): Likewise.
30563 (LOAD_REGS_2): Likewise.
30564 (LOAD_REGS_3): Likewise.
30565 (LOAD_REGS_4): Likewise.
30566 (LOAD_REGS_5): Likewise.
30567 (LOAD_REGS_6): Likewise.
30568 (ASM_ARGS_0): Likewise.
30569 (ASM_ARGS_1): Likewise.
30570 (ASM_ARGS_2): Likewise.
30571 (ASM_ARGS_3): Likewise.
30572 (ASM_ARGS_4): Likewise.
30573 (ASM_ARGS_5): Likewise.
30574 (ASM_ARGS_6): Likewise.
30575 (LOAD_ARGS_TYPES_1): Likewise.
30576 (LOAD_ARGS_TYPES_2): Likewise.
30577 (LOAD_ARGS_TYPES_3): Likewise.
30578 (LOAD_ARGS_TYPES_4): Likewise.
30579 (LOAD_ARGS_TYPES_5): Likewise.
30580 (LOAD_ARGS_TYPES_6): Likewise.
30581 (LOAD_REGS_TYPES_1): Likewise.
30582 (LOAD_REGS_TYPES_2): Likewise.
30583 (LOAD_REGS_TYPES_3): Likewise.
30584 (LOAD_REGS_TYPES_4): Likewise.
30585 (LOAD_REGS_TYPES_5): Likewise.
30586 (LOAD_REGS_TYPES_6): Likewise.
30587 (TYPEFY): New define.
30588 (ARGIFY): Likewise.
30589 (internal_syscall0): Likewise.
30590 (internal_syscall1): Likewise.
30591 (internal_syscall2): Likewise.
30592 (internal_syscall3): Likewise.
30593 (internal_syscall4): Likewise.
30594 (internal_syscall5): Likewise.
30595 (internal_syscall6): Likewise.
30596 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30597 (INTERNAL_SYSCALL_NCS): Remove define.
30598 (internal_syscall1): Add define.
30599
30600 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30601
30602 * math/w_remainder_compat.c: Remove duplicate inclusion of
30603 math-svid-compat.h.
30604 * math/w_remainderf_compat.c: Likewise.
30605 * math/w_remainderl_compat.c: Likewise.
30606
30607 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30608
30609 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30610
30611 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30612
30613 [BZ #21684]
30614 * math/tgmath.h (__floating_type): Simplify definitions.
30615 (__real_integer_type): New macro.
30616 (__complex_integer_type): Likewise.
30617 (__expr_is_real): Likewise.
30618 (__tgmath_real_type_sub): Update comment to describe handling of
30619 complex types.
30620 (__tgmath_complex_type_sub): New macro.
30621 (__tgmath_complex_type): Likewise.
30622 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30623 (__TGMATH_CF128): Use __expr_is_real.
30624 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30625 __expr_is_real.
30626 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30627 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30628 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30629 integer types.
30630
30631 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30632
30633 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30634 macro.
30635 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30636 alias.
30637 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30638 Likewise.
30639
30640 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30641 nanosleep_not_cancel with __nanosleep_nocancel.
30642 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30643 (__nanosleep_nocancel): New macro.
30644 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30645 function.
30646 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30647 macro.
30648 (__nanosleep_nocancel): New prototype.
30649
30650 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30651 pause_not_cancel with __pause_nocancel.
30652 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30653 (__pause_nocancel): New macro.
30654 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30655 macro.
30656 (__pause_nocancel): New prototype.
30657 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30658
30659 2017-08-22 Martin Sebor <msebor@redhat.com>
30660
30661 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30662 to return a pointer to the same type as the target function.
30663
30664 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30665
30666 [BZ #18822]
30667 [BZ #21986]
30668 * include/printf.h (__printf_fphex): Add attribute_hidden.
30669 (__guess_grouping): New prototype.
30670 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30671 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30672 libc_hidden_proto and libc_hidden_def.
30673 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30674 (__vstrfmon_l): Remove the third argument passed to
30675 __guess_grouping.
30676
30677 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30678
30679 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30680 definition for issignaling that does not rely on __MATH_TG,
30681 since __MATH_TG uses __builtin_types_compatible_p, which is only
30682 available in C mode.
30683 (CFLAGS-test-math-issignaling.cc): New variable.
30684 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30685 * math/test-math-issignaling.cc: New test for C++ implementation
30686 of type-generic issignaling.
30687 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30688 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30689 options of test-math-issignaling on powerpc64le.
30690
30691 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30692
30693 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30694 building libc.a.
30695 (hidden_proto): Likewise.
30696 (hidden_tls_proto): Likewise.
30697 (__hidden_proto): Likewise.
30698
30699 2017-08-22 Florian Weimer <fweimer@redhat.com>
30700
30701 math: Statically link tests of internal functionality.
30702 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30703 atest-exp2.
30704 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30705 (gmp-objs): Remove assignment.
30706 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30707
30708 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30709
30710 [BZ #21987]
30711 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30712 and copy to ...
30713 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30714 ... here.
30715 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30716 ... and here.
30717
30718 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30719 variable definitions above inclusion of ../Rules.
30720
30721 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30722
30723 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30724 case calling __builtin_unreachable.
30725
30726 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30727
30728 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30729 __waitpid_nocancel.
30730 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30731 (__waitpid_nocancel): New macro.
30732 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30733 macro.
30734 (__waitpid_nocancel): Replace macro with a function.
30735 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30736 function.
30737
30738 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30739 __fcntl_nocancel.
30740 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30741 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30742
30743 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30744 __writev_nocancel_nostatus.
30745 (write_call_graph): Likewise.
30746 (write_bb_counts): Likewise.
30747 * resolv/herror.c (herror): Likewise.
30748 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30749 macro.
30750 (__writev_nocancel_nostatus): New macro.
30751 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30752 Remove macro.
30753 (__writev_nocancel_nostatus): New function.
30754
30755 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30756
30757 Revert:
30758 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30759
30760 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30761 building libc.a.
30762 (hidden_proto): Likewise.
30763 (hidden_tls_proto): Likewise.
30764 (__hidden_proto): Likewise.
30765
30766 [BZ #21973]
30767 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30768 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30770 Likewise.
30771 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30772 Likewise.
30773 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30774 Likewise.
30775 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30776 Likewise.
30777 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30778 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30779 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30780 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30781 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30782 GLIBC_2.0 sqrtl symbol.
30783
30784 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30785 [__USE_MISC] (_LIB_VERSION): Likewise.
30786 [__USE_MISC] (struct exception): Likewise.
30787 [__USE_MISC] (matherr): Likewise.
30788 [__USE_MISC] (DOMAIN): Likewise.
30789 [__USE_MISC] (SING): Likewise.
30790 [__USE_MISC] (OVERFLOW): Likewise.
30791 [__USE_MISC] (UNDERFLOW): Likewise.
30792 [__USE_MISC] (TLOSS): Likewise.
30793 [__USE_MISC] (PLOSS): Likewise.
30794 [__USE_MISC] (HUGE): Likewise.
30795 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30796 * math/math-svid-compat.h: New file.
30797 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30798 and matherrl.
30799 * include/math.h [!_ISOMAC] (__matherr): Remove.
30800 * manual/arith.texi (FP Exceptions): Do not document matherr.
30801 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30802 (tests-internal): New variable.
30803 (install-lib): Do not add libieee.a.
30804 (non-lib.a): Likewise.
30805 (extra-objs): Do not add libieee.a and ieee-math.o.
30806 (CPPFLAGS-s_lib_version.c): Remove variable.
30807 ($(objpfx)libieee.a): Remove rule.
30808 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30809 * math/ieee-math.c: Remove.
30810 * math/libm-test-support.c (matherr): Remove.
30811 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30812 and license notices. Include <math-svid-compat.h> and
30813 <shlib-compat.h>.
30814 (matherr): Undefine as macro. Use compat_symbol_reference.
30815 (_LIB_VERSION): Likewise.
30816 * math/test-matherr-2.c: New file.
30817 * math/test-matherr-3.c: Likewise.
30818 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30819 declaration.
30820 (__kernel_standard_f): Likewise.
30821 (__kernel_standard_l): Likewise.
30822 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30823 <math_private.h>. Include <math-svid-compat.h>.
30824 (_LIB_VERSION): Undefine as macro.
30825 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30826 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30827 [LIBM_SVID_COMPAT], use compat_symbol.
30828 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30829 <math_private.h>. Include <math-svid-compat.h>.
30830 (matherr): Undefine as macro.
30831 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30832 compat_symbol.
30833 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30834 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30835 compat_symbol_reference.
30836 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30837 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30838 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30839 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30840 (MATHERR_D): Remove declaration.
30841 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30842 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30843 [LIBM_BUILD] (pmatherrf): Likewise.
30844 [LIBM_BUILD] (pmatherr): Likewise.
30845 [LIBM_BUILD] (pmatherrl): Likewise.
30846 (DOMAIN): Likewise.
30847 (SING): Likewise.
30848 (OVERFLOW): Likewise.
30849 (UNDERFLOW): Likewise.
30850 (TLOSS): Likewise.
30851 (PLOSS): Likewise.
30852 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30853 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30854 compat_symbol.
30855 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30856 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30857 compat_symbol.
30858 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30859 * math/w_acos_compat.c: Likewise.
30860 * math/w_acosf_compat.c: Likewise.
30861 * math/w_acosh_compat.c: Likewise.
30862 * math/w_acoshf_compat.c: Likewise.
30863 * math/w_acoshl_compat.c: Likewise.
30864 * math/w_acosl_compat.c: Likewise.
30865 * math/w_asin_compat.c: Likewise.
30866 * math/w_asinf_compat.c: Likewise.
30867 * math/w_asinl_compat.c: Likewise.
30868 * math/w_atan2_compat.c: Likewise.
30869 * math/w_atan2f_compat.c: Likewise.
30870 * math/w_atan2l_compat.c: Likewise.
30871 * math/w_atanh_compat.c: Likewise.
30872 * math/w_atanhf_compat.c: Likewise.
30873 * math/w_atanhl_compat.c: Likewise.
30874 * math/w_cosh_compat.c: Likewise.
30875 * math/w_coshf_compat.c: Likewise.
30876 * math/w_coshl_compat.c: Likewise.
30877 * math/w_exp10_compat.c: Likewise.
30878 * math/w_exp10f_compat.c: Likewise.
30879 * math/w_exp10l_compat.c: Likewise.
30880 * math/w_exp2_compat.c: Likewise.
30881 * math/w_exp2f_compat.c: Likewise.
30882 * math/w_exp2l_compat.c: Likewise.
30883 * math/w_fmod_compat.c: Likewise.
30884 * math/w_fmodf_compat.c: Likewise.
30885 * math/w_fmodl_compat.c: Likewise.
30886 * math/w_hypot_compat.c: Likewise.
30887 * math/w_hypotf_compat.c: Likewise.
30888 * math/w_hypotl_compat.c: Likewise.
30889 * math/w_j0_compat.c: Likewise.
30890 * math/w_j0f_compat.c: Likewise.
30891 * math/w_j0l_compat.c: Likewise.
30892 * math/w_j1_compat.c: Likewise.
30893 * math/w_j1f_compat.c: Likewise.
30894 * math/w_j1l_compat.c: Likewise.
30895 * math/w_jn_compat.c: Likewise.
30896 * math/w_jnf_compat.c: Likewise.
30897 * math/w_jnl_compat.c: Likewise.
30898 * math/w_lgamma_main.c: Likewise.
30899 * math/w_lgamma_r_compat.c: Likewise.
30900 * math/w_lgammaf_main.c: Likewise.
30901 * math/w_lgammaf_r_compat.c: Likewise.
30902 * math/w_lgammal_main.c: Likewise.
30903 * math/w_lgammal_r_compat.c: Likewise.
30904 * math/w_log10_compat.c: Likewise.
30905 * math/w_log10f_compat.c: Likewise.
30906 * math/w_log10l_compat.c: Likewise.
30907 * math/w_log2_compat.c: Likewise.
30908 * math/w_log2f_compat.c: Likewise.
30909 * math/w_log2l_compat.c: Likewise.
30910 * math/w_log_compat.c: Likewise.
30911 * math/w_logf_compat.c: Likewise.
30912 * math/w_logl_compat.c: Likewise.
30913 * math/w_pow_compat.c: Likewise.
30914 * math/w_powf_compat.c: Likewise.
30915 * math/w_powl_compat.c: Likewise.
30916 * math/w_remainder_compat.c: Likewise.
30917 * math/w_remainderf_compat.c: Likewise.
30918 * math/w_remainderl_compat.c: Likewise.
30919 * math/w_scalb_compat.c: Likewise.
30920 * math/w_scalbf_compat.c: Likewise.
30921 * math/w_scalbl_compat.c: Likewise.
30922 * math/w_sinh_compat.c: Likewise.
30923 * math/w_sinhf_compat.c: Likewise.
30924 * math/w_sinhl_compat.c: Likewise.
30925 * math/w_sqrt_compat.c: Likewise.
30926 * math/w_sqrtf_compat.c: Likewise.
30927 * math/w_sqrtl_compat.c: Likewise.
30928 * math/w_tgamma_compat.c: Likewise.
30929 * math/w_tgammaf_compat.c: Likewise.
30930 * math/w_tgammal_compat.c: Likewise.
30931 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30932 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30933 * sysdeps/ieee754/k_standard.c: Likewise.
30934 * sysdeps/ieee754/k_standardf.c: Likewise.
30935 * sysdeps/ieee754/k_standardl.c: Likewise.
30936 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30937 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30938 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30939 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30940 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30941 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30942 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30943 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30944 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30945 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30946 Likewise.
30947 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30948 Likewise.
30949 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30950 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30951 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30952 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30953
30954 2017-08-21 Florian Weimer <fweimer@redhat.com>
30955
30956 [BZ #21864]
30957 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30958 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30959 Move before inclusion of ../Rules.
30960
30961 2017-08-21 Florian Weimer <fweimer@redhat.com>
30962
30963 [BZ #21972]
30964 * assert/assert.h (assert): Use static_cast (bool) for C++.
30965 Use the ternary operator in the warning branch for GNU C.
30966 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30967 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30968 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30969 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30970 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30971
30972 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30973
30974 [BZ #18822]
30975 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30976 (__syscall_clock_gettime): Add attribute_hidden.
30977 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30978 (__start_context): Likewise.
30979
30980 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30981
30982 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30983 building libc.a.
30984 (hidden_proto): Likewise.
30985 (hidden_tls_proto): Likewise.
30986 (__hidden_proto): Likewise.
30987
30988 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30989
30990 * include/libc-symbols.h (attribute_hidden): Enable hidden
30991 visibility in libc.a compiled with PIE.
30992
30993 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30994
30995 [BZ #18822]
30996 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30997 Add attribute_hidden.
30998
30999 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31000
31001 [BZ #21864]
31002 * Makerules (all-nonlib): Add $(others-extras).
31003 * catgets/Makefile (others-extras): New.
31004 * elf/Makefile (others-extras): Likewise.
31005 * nss/Makefile (others-extras): Likewise.
31006
31007 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31008
31009 [BZ #18822]
31010 * csu/libc-start.c (__libc_multiple_libcs): Removed.
31011 * elf/dl-open.c: Include <libc-internal.h>.
31012 (__libc_multiple_libcs): Removed.
31013 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
31014 <hp-timing.h>.
31015 * include/libc-internal.h (__libc_multiple_libcs): New.
31016 * misc/sbrk.c: Include <libc-internal.h>.
31017 (__libc_multiple_libcs): Removed.
31018
31019 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
31020
31021 [BZ #18822]
31022 * grp/initgroups.c (__nss_group_database): Removed.
31023 (__nss_initgroups_database): Likewise.
31024 * nscd/gai.c (__nss_hosts_database): Likewise.
31025 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
31026 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
31027 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
31028 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
31029 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
31030 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
31031 attribute_hidden.
31032 * nss/nsswitch.c (__nss_database_custom): Define only if
31033 USE_NSCD is defined.
31034 (__nss_configure_lookup): Use __nss_database_custom only if
31035 USE_NSCD is defined.
31036 * nss/nsswitch.h (__nss_database_custom): Declare only if
31037 USE_NSCD is defined. Add attribute_hidden.
31038 (__nss_setent): Add attribute_hidden.
31039 (__nss_endent): Likewise.
31040 (__nss_getent_r): Likewise.
31041 (__nss_getent): Likewise.
31042 (DEFINE_DATABASE): Declare __nss_##arg##_database.
31043
31044 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31045
31046 [BZ #18822]
31047 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
31048 libc_hidden_proto and libc_hidden_def.
31049
31050 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31051
31052 [BZ #18822]
31053 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
31054 Add libc_hidden_proto.
31055 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
31056 Add libc_hidden_def.
31057
31058 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31059
31060 [BZ #21974]
31061 * gmon/Makefile (routines): Remove bb_init_func and
31062 bb_exit_func.
31063 (elide-routines.os): Removed.
31064 * gmon/bb_exit_func.c: Likewise.
31065 * gmon/bb_init_func.c: Likewise.
31066 * include/sys/gmon.h (__bb): Likewise.
31067 (__bb_init_func): Likewise.
31068 (__bb_exit_func): Likewise.
31069 * sysdeps/alpha/bb_init_func.S: Likewise.
31070
31071 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31072
31073 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31074 * include/setjmp.h (____longjmp_chk): Here. Add
31075 attribute_hidden.
31076
31077 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31078
31079 [BZ #18822]
31080 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31081 attribute_hidden.
31082 (__strspn_sse2): Likewise.
31083
31084 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31085
31086 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31087 (close_not_cancel_no_status): Likewise.
31088 (__close_nocancel): New macro.
31089 (__close_nocancel_nostatus): Likewise.
31090 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31091 macro.
31092 (close_not_cancel): Likewise.
31093 (close_not_cancel_no_status): Likewise.
31094 (__close_nocancel): New prototype.
31095 (__close_nocancel_nostatus): New function.
31096 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31097 * catgets/open_catalog.c (__open_catalog): Replace
31098 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31099 * gmon/gmon.c (write_gmon): Likewise.
31100 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31101 * intl/loadmsgcat.c (close): Likewise.
31102 * io/ftw.c (open_dir_stream): Likewise.
31103 (ftw_startup): Likewise.
31104 * libio/fileops.c (_IO_file_open): Likewise.
31105 (_IO_file_close_mmap): Likewise.
31106 (_IO_file_close): Likewise.
31107 * libio/iopopen.c (_IO_dup2): Likewise.
31108 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31109 * locale/loadlocale.c (_nl_load_locale): Likewise.
31110 * login/utmp_file.c (pututline_file): Likewise.
31111 (endutent_file): Likewise.
31112 * misc/daemon.c (daemon): Likewise.
31113 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31114 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31115 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31116 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31117 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31118 * nscd/nscd_helper.c (open_socket): Likewise.
31119 (__nscd_open_socket): Likewise.
31120 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31121 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31122 (__nscd_innetgr): Likewise.
31123 * nss/nss_db/db-open.c (internal_setent): Likewise.
31124 * resolv/res-close.c (__res_iclose): Likewise.
31125 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31126 * sysdeps/posix/closedir.c (__closedir): Likewise.
31127 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31128 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31129 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31130 (opendir_tail): Likewise.
31131 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31132 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31133 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31134 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31135 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31136 (gethostid): Likewise.
31137 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31138 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31139 Likewise.
31140 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31141 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31142 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31143 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31144 Likewise.
31145 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31146 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31147 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31148 Likewise.
31149 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31150 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31151 Likewise.
31152 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31153 Likewise.
31154 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31155 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31156 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31157 __close_nocancel.
31158
31159 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31160 (openat_not_cancel_3): Likewise.
31161 (openat64_not_cancel_3): Likewise).
31162 (openat_not_cancel_3): Likewise).
31163 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31164 macro.
31165 (openat_not_cancel_3): Likewise.
31166 (openat64_not_cancel): Likewise.
31167 (openat64_not_cancel_3): Likewise.
31168 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31169 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31170 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31171 __open{64}_nocancel.
31172 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31173 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31174 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31175
31176 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31177
31178 [BZ #18822]
31179 * include/argz.h (__argz_create_sep): New function prototype.
31180 (__argz_append): Likewise.
31181 (__argz_add): Likewise.
31182 (__argz_add_sep): Likewise.
31183 (__argz_delete): Likewise.
31184 (__argz_insert): Likewise.
31185 (__argz_replace): Likewise.
31186 * string/argz.h (__argz_create_sep): Removed.
31187 (__argz_append): Likewise.
31188 (__argz_add): Likewise.
31189 (__argz_add_sep): Likewise.
31190 (__argz_delete): Likewise.
31191 (__argz_insert): Likewise.
31192 (__argz_replace): Likewise.
31193
31194 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31195
31196 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31197 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31198 (GNU_PROPERTY_STACK_SIZE): Likewie.
31199 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31200 (GNU_PROPERTY_LOPROC): Likewise.
31201 (GNU_PROPERTY_HIPROC): Likewise.
31202 (GNU_PROPERTY_LOUSER): Likewise.
31203 (GNU_PROPERTY_HIUSER): Likewise.
31204 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31205 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31206 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31207 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31208 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31209 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31210 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31211 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31212 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31213 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31214 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31215 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31216 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31217 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31218 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31219 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31220 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31221 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31222 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31223 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31224 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31225 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31226 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31227
31228 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31229
31230 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31231 in C++ mode.
31232
31233 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31234
31235 [BZ #21930]
31236 * math/math.h (isinf): Check if in C or C++ mode before using
31237 __builtin_types_compatible_p, since this is a C mode feature.
31238
31239 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31240
31241 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31242 (__write_nocancel): New macro.
31243 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31244 Rewrite as a function prototype.
31245 (write_not_cancel): Remove macro.
31246 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31247 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31248 (write_gmon): Likewise.
31249 * libio/fileops.c (_IO_new_file_write): Likewise.
31250 * login/utmp_file.c (pututline_file): Likewise.
31251 (updwtmp_file): Likewise.
31252 * stdio-common/psiginfo.c (psiginfo): Likewise.
31253 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31254 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31255 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31256 Likewise.
31257 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31258 Likewise.
31259
31260 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31261 (__read_nocancel): New macro.
31262 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31263 __read_nocancel.
31264 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31265 macro.
31266 (__read_nocancel): New prototype.
31267 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31268 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31269 with __read_nocancel.
31270 * intl/loadmsgcat.c (read): Likewise.
31271 * libio/fileops.c (_IO_file_read): Likewise.
31272 * locale/loadlocale.c (_nl_load_locale): Likewise.
31273 * login/utmp_file.c (getutent_r_file): Likewise.
31274 (internal_getut_r): Likewise.
31275 (getutline_r_file): Likewise.
31276 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31277 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31278 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31279 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31280 Likewise.
31281 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31282 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31283 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31284 Likewise.
31285 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31286 Likewise.
31287 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31288 Likewise.
31289 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31290 Likewise.
31291 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31292
31293 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31294
31295 [BZ #21966]
31296 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31297 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31298 usable.
31299
31300 2017-08-17 DJ Delorie <dj@redhat.com>
31301
31302 * bug17079.c: Update to new test harness.
31303 * test-digits-dots.c: Likewise.
31304 * test-netdb.c: Likewise.
31305 * tst-field.c: Likewise.
31306 * tst-nss-getpwent.c: Likewise.
31307 * tst-nss-static.c: Likewise.
31308 * tst-nss-test1.c: Likewise.
31309 * tst-nss-test2.c: Likewise.
31310 * tst-nss-test3.c: Likewise.
31311 * tst-nss-test4.c: Likewise.
31312 * tst-nss-test5.c: Likewise.
31313
31314 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31315
31316 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31317 (open_not_cancel_2): Likewise.
31318 (open_nocancel): New macro.
31319 (open64_nocancel): Likewise.
31320 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31321 (open_not_cancel_2): Likewise.
31322 (__open_nocancel): New prototype.
31323 (__open64_nocancel): Likewise.
31324 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31325 __open_nocancel.
31326 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31327 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31328 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31329 with __open_nocancel.
31330 * csu/check_fds.c (check_one_fd): Likewise.
31331 * gmon/gmon.c (write_gmon): Likewise.
31332 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31333 * intl/loadmsgcat.c (open): Likewise.
31334 * libio/fileops.c (_IO_file_open): Likewise.
31335 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31336 * locale/loadlocale.c (_nl_load_locale): Likewise.
31337 * login/utmp_file.c (setutent_file): Likewise.
31338 * misc/daemon.c (daemon): Likewise.
31339 * nss/nss_db/db-open.c (internal_setent): Likewise.
31340 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31341 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31342 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31343 (__opendir): Likewise.
31344 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31345 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31346 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31347 (gethostid): Likewise.
31348 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31349 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31350 Likewise.
31351 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31352 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31353 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31354 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31355 Likewise.
31356 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31357 Likewise.
31358 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31359 Likewise.
31360 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31361 Likewise.
31362 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31363 Likewise.
31364 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31365 Likewise.
31366 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31367 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31368
31369 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31370
31371 * benchtests/bench-skeleton.c (main): Add support for
31372 latency benchmarking.
31373 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31374
31375 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31376
31377 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31378 the startup object.
31379
31380 2017-08-17 Florian Weimer <fweimer@redhat.com>
31381
31382 * include/sys/socket.h (__opensock): Remove internal_function.
31383 * socket/opensock.c (__opensock): Likewise.
31384 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31385
31386 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31387
31388 [BZ #21944]
31389 * signal/bits/types/__sigval_t.h: New file.
31390 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31391 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31392 and define sigval_t using __sigval_t.
31393 * include/bits/types/__sigval_t.h: New file.
31394 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31395 instead of <bits/types/__sigval_t.h>.
31396 (struct sigevent): Use __sigval_t instead of sigval_t.
31397 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31398 instead of <bits/types/__sigval_t.h>.
31399 (siginfo_t): Use __sigval_t instead of sigval_t.
31400 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31401 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31402 (struct sigevent): Use __sigval_t instead of sigval_t.
31403 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31404 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31405 (siginfo_t): Use __sigval_t instead of sigval_t.
31406 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31407
31408 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31409
31410 * NEWS: Remove "[Add new features here]" for 2.27.
31411
31412 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31413
31414 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31415 libc.so.
31416
31417 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31418
31419 * NEWS: Mention x86-64 FMA optimization.
31420
31421 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31422
31423 [BZ #21912]
31424 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31425 Add e_expf-fma.
31426 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31427 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31428 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31429
31430 2017-08-16 Andreas Schwab <schwab@suse.de>
31431
31432 [BZ #16750]
31433 CVE-2009-5064
31434 * elf/ldd.bash.in: Never run file directly.
31435
31436 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31437
31438 [BZ #21955]
31439 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31440 (L(SP_INF_0)): Likewise.
31441
31442 2017-08-15 Florian Weimer <fweimer@redhat.com>
31443
31444 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31445 run-built-tests.
31446
31447 2017-08-15 Florian Weimer <fweimer@redhat.com>
31448
31449 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31450 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31451 BROKEN_THREAD_SIGNALS code.
31452 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31453 request_list): Remove caller_pid member used for
31454 BROKEN_THREAD_SIGNALS.
31455 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31456 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31457 Remove BROKEN_THREAD_SIGNALS support.
31458 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31459 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31460
31461 2017-08-15 Florian Weimer <fweimer@redhat.com>
31462
31463 * gmon/Makefile (tests): Add tst-gmon.
31464 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31465 Set.
31466 (tests-special): Add tst-gmon-prof.out.
31467 (tst-gmon.out): Depend on clean-tst-gmon-data.
31468 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31469 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31470 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31471 startup object.
31472 * aclocal.m4 (GPROF): Set and substitute.
31473 * config.amke.in (GPROF): Set.
31474 * configure: Regenerate.
31475
31476 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31477
31478 * elf/elf.h A (NT_PPC_TAR): New macro.
31479 (NT_PPC_PPR): Likewise.
31480 (NT_PPC_DSCR): Likewise.
31481 (NT_PPC_EBB): Likewise.
31482 (NT_PPC_PMU): Likewise.
31483 (NT_PPC_TM_CGPR): Likewise.
31484 (NT_PPC_TM_CFPR): Likewise.
31485 (NT_PPC_TM_CVMX): Likewise.
31486 (NT_PPC_TM_CVSX): Likewise.
31487 (NT_PPC_TM_SPR): Likewise.
31488 (NT_PPC_TM_CTAR): Likewise.
31489 (NT_PPC_TM_CPPR): Likewise.
31490 (NT_PPC_TM_CDSCR): Likewise.
31491
31492 2017-08-15 Florian Weimer <fweimer@redhat.com>
31493
31494 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31495 regparm (2) instead of internal_function.
31496 (_MCOUNT_DECL): Adjust.
31497
31498 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31499
31500 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31501 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31502
31503 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31504
31505 * conform/data/sys/wait.h-data (si_value): Do not expect for
31506 XPG42.
31507
31508 2017-08-14 Florian Weimer <fweimer@redhat.com>
31509
31510 [BZ #21962]
31511 NSS: Create stubs for accidentally exported lookup functions.
31512 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31513 Remove declaration.
31514 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31515 (ether_hostton): Call __nss_ethers_lookup2 instead.
31516 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31517 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31518 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31519 (setup): Call __nss_netgroup_lookup2 instead.
31520 * nss/Makefile (routines): Add compat-lookup.
31521 * nss/Versions (GLIBC_2.27): Add symbol version.
31522 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31523 (DB_COMPAT_FCT): Remove.
31524 * nss/compat-lookup.c: New file.
31525 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31526 from databases.def.
31527 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31528 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31529 (netname2user): Call __nss_publickey_lookup2 instead.
31530 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31531 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31532 instead.
31533
31534 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31535 Sergei Trofimovich <slyfox@inbox.ru>
31536
31537 [BZ #21908]
31538 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31539 Rename to MMAP2_PAGE_UNIT.
31540 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31541 __OFF_T_MATCHES_OFF64_T is not defined.
31542 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31543 uint64_t.
31544 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31545 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31546
31547 2017-08-14 Florian Weimer <fweimer@redhat.com>
31548
31549 i386: Do not set internal_function.
31550 * config.h.in (USE_REGPARMS, internal_function): Remove.
31551 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31552 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31553
31554 2017-08-14 Florian Weimer <fweimer@redhat.com>
31555
31556 * elf/dl-init.c (_dl_init): Remove internal_function.
31557 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31558 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31559
31560 2017-08-14 Florian Weimer <fweimer@redhat.com>
31561
31562 * elf/rtld.c (_dl_start): Remove internal_function.
31563 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31564 _dl_start.
31565
31566 2017-08-14 Florian Weimer <fweimer@redhat.com>
31567
31568 * elf/dl-fini.c (_dl_fini): Remove internal_function
31569 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31570
31571 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31572
31573 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31574 (bit_cpu_SHSTK): Likewise.
31575 (index_cpu_IBT): Likewise.
31576 (index_cpu_SHSTK): Likewise.
31577 (reg_IBT): Likewise.
31578 (reg_SHSTK): Likewise.
31579 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31580 Handle index_cpu_IBT and index_cpu_SHSTK.
31581
31582 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31583
31584 [BZ #19982]
31585 * po/fr.po: Fix spelling mistake.
31586
31587 2017-08-13 Florian Weimer <fweimer@redhat.com>
31588
31589 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31590 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31591 (_dl_catch_error, _dl_receive_error): Likewise.
31592 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31593 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31594 (_dl_deallocate_tls): Likewise.
31595 * include/dlfcn.h (_dl_addr): Likewise.
31596 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31597 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31598 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31599 Likewise.
31600
31601 2017-08-13 Florian Weimer <fweimer@redhat.com>
31602
31603 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31604 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31605 internal_function.
31606 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31607
31608 2017-08-13 Florian Weimer <fweimer@redhat.com>
31609
31610 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31611 internal_function.
31612 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31613 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31614 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31615 internal_function from _dl_make_stack_executable_hook member.
31616 (_dl_make_stack_executable): Remove internal_function.
31617 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31618 Likewise.
31619 * sysdeps/unix/sysv/linux/dl-execstack.c
31620 (_dl_make_stack_executable): Likewise.
31621
31622 2017-08-13 Florian Weimer <fweimer@redhat.com>
31623
31624 * sysdeps/unix/sysv/linux/netlinkaccess.h
31625 (__netlink_assert_response): Remove internal_function.
31626 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31627 (__netlink_assert_response): Likewise.
31628
31629 2017-08-13 Florian Weimer <fweimer@redhat.com>
31630
31631 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31632 internal_function.
31633 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31634
31635 2017-08-13 Florian Weimer <fweimer@redhat.com>
31636
31637 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31638 internal_function.
31639 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31640 * inet/netgroup.h (__internal_setnetgrent)
31641 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31642 * inet/getnetgrent_r.c (__internal_setnetgrent)
31643 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31644 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31645 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31646 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31647 * nss/nsswitch.h (db_lookup_function): Likewise.
31648
31649 2017-08-13 Florian Weimer <fweimer@redhat.com>
31650
31651 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31652 Remove internal_function.
31653 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31654 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31655 message argument on the stack.
31656 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31657 Likeweise.
31658
31659 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31660
31661 Adapt test case data to the changes in the thousands
31662 separators.
31663
31664 [BZ #20756]
31665 * localedata/tst-langinfo.sh: Adapt test case data.
31666 * stdlib/tst-strfmon_l.c: Likewise.
31667 * stdlib/tst-strtod4.c: Likewise.
31668 * stdlib/tst-strtod5i.c: Likewise.
31669
31670 2017-08-11 Florian Weimer <fweimer@redhat.com>
31671
31672 [BZ #21242]
31673 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31674 Suppress pedantic warning resulting from statement expression.
31675 (__ASSERT_FUNCTION): Add missing __extension__.
31676
31677 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31678
31679 * benchtests/bench-memmove-large.c: Print output in JSON
31680 format.
31681 * benchtests/bench-memmove.c: Likewise.
31682
31683 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31684 * benchtests/bench-memchr.c (do_one_test): Likewise.
31685 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31686 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31687 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31688 * benchtests/bench-memmove.c (do_one_test): Likewise.
31689 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31690 * benchtests/bench-memset.c (do_one_test): Likewise.
31691 * benchtests/bench-string.h (test_init): Remove memsets.
31692
31693 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31694
31695 * manual/lang.texi
31696 (Computing the Width of an Integer Data Type): Rename section to
31697 "Width of an Integer Type". Remove inaccurate statement regarding
31698 lack of C language facilities for determining width of integer
31699 types, and reorder content to improve flow and context of
31700 discussion.
31701
31702 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31703
31704 * lang.texi (va_copy): Change standard from ISO to C99.
31705 (__va_copy): Add standard and header annotation.
31706 Update description for clarity of origins and current use.
31707
31708 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31709
31710 [BZ #21941]
31711 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31712 xssqrtqp requires operands to be in Vector Registers
31713 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31714 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31715 (__ieee754_sqrtf128): Likewise.
31716
31717 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31718
31719 * sysdeps/aarch64/memcmp.S (memcmp):
31720 Rewrite of optimized memcmp.
31721
31722 2017-08-10 Florian Weimer <fweimer@redhat.com>
31723
31724 Introduce ld.so exceptions.
31725 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31726 (_dl_exception_create, _dl_exception_create_format)
31727 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31728 (_dl_catch_exception): Declare.
31729 (_dl_catch_error): Update comment.
31730 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31731 errstring, malloced members with exception member.
31732 (_dl_out_of_memory): Remove.
31733 (fatal_error): New function, extracted from _dl_signal_error.
31734 (_dl_signal_exception, _dl_signal_cexception): New functions.
31735 (_dl_signal_error): Call _dl_exception_create to allocate an
31736 exception object.
31737 (_dl_catch_exception): New function, based on _dl_catch_error.
31738 (_dl_catch_error): Implement using _dl_catch_exception.
31739 * elf/dl-exception.c: New file.
31740 * elf/Makefile (dl-routines): Add dl-exception.
31741 (elide-routines.os): Likewise.
31742 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31743 _dl_exception_create_format, _dl_exception_free.
31744 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31745 _dl_signal_exception.
31746 * elf/dl-lookup.c (make_string): Remove.
31747 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31748 _dl_signal_cexception, _dl_exception_free.
31749 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31750 _dl_signal_exception.
31751 * elf/dl-sym.c (do_sym): Likewise.
31752 * elf/dl-version.c (make_string): Remove.
31753 (match_symbol): Use _dl_exception_create_format,
31754 _dl_signal_cexception, _dl_exception_free.
31755 (_dl_check_map_versions): Likewise.
31756 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31757 _dl_catch_exception.
31758 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31759 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31760 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31761 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31762 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31763 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31764 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31765 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31766 Likewise.
31767 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31768 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31769 (ld.so): Likewise.
31770 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31771 (ld.so): Likewise.
31772 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31773 Likewise.
31774 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31775 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31776 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31777 Likewise.
31778 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31779 Likewise.
31780 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31781
31782 2017-08-10 Florian Weimer <fweimer@redhat.com>
31783
31784 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31785 attribute_hidden, internal_function.
31786 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31787 internal_function.
31788
31789 2017-08-10 Florian Weimer <fweimer@redhat.com>
31790
31791 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31792 function which calls __builtin_unreachable.
31793
31794 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31795
31796 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31797 Indian monetary formatting
31798 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31799 test cases.
31800
31801 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31802
31803 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31804 Fix typo in comment.
31805
31806 [BZ #21928]
31807 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31808 PTRACE_SEIZE_DEVEL): Remove.
31809 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31810 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31811 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31812 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31813 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31814
31815 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31816
31817 * posix/bits/types.h (__qaddr_t): Remove.
31818
31819 [BZ #21457]
31820 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31821 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31822 __glibc_reserved1.
31823 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31824 (ucontext_t): Use __ctx with uc_flags.
31825 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31826 (__ctxt): Likewise.
31827 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31828 __glibc_reserved1.
31829 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31830 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31831 __glibc_reserved1.
31832 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31833 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31834 __glibc_reserved1.
31835 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31836 macro.
31837 (ucontext_t): Use __ctx with uc_flags.
31838 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31839 (ucontext_t): Use __ctx with uc_flags.
31840 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31841 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31842 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31843 (ucontext_t): Use __ctx with uc_flags.
31844 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31845 undefine further down.
31846 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31847 __glibc_reserved1.
31848 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31849 undefine further down.
31850 (ucontext_t): Use __ctx with uc_flags.
31851 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31852 undefine further down.
31853 (ucontext_t): Use __ctx with uc_flags.
31854 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31855 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31856 Rename uc_pad to __glibc_reserved1.
31857 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31858 undefine further down.
31859 (ucontext_t): Use __ctx with uc_flags.
31860 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31861 further down.
31862 (ucontext_t): Use __ctx with uc_flags.
31863 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31864 __ctx with uc_flags.
31865 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31866 (ucontext_t): Use __ctx with uc_flags.
31867 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31868 __ctx with uc_flags.
31869
31870 2017-08-09 Florian Weimer <fweimer@redhat.com>
31871
31872 [BZ #21932]
31873 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31874 before early return.
31875
31876 2017-08-09 Andreas Schwab <schwab@suse.de>
31877
31878 [BZ #21041]
31879 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31880 renamed alias.
31881
31882 [BZ #21041]
31883 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31884 tst-compat-forwarder.
31885 (modules-names): Add tst-compat-forwarder-mod.
31886 ($(objpfx)tst-compat-forwarder): Depend on
31887 $(objpfx)tst-compat-forwarder-mod.so.
31888 * nptl/tst-compat-forwarder.c: New file.
31889 * nptl/tst-compat-forwarder-mod.c: New file.
31890
31891 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31892
31893 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31894 comments.
31895
31896 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31897 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31898 memcpy_falkor.
31899 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31900 Bump.
31901 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31902 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31903 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31904 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31905 Add falkor.
31906 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31907 New macro.
31908
31909 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31910
31911 [BZ #759]
31912 * manual/setjmp.texi (getcontex): Document uc_stack value
31913 compatibility differences.
31914
31915 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31916
31917 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31918 (old_malloc_hook): Likewise.
31919 (old_memalign_hook): Likewise.
31920 (old_realloc_hook): Likewise.
31921 (struct hdr): Likewise.
31922 (flood): Likewise.
31923 (freehook): Likewise.
31924 (mallochook): Likewise.
31925 (memalignhook): Likewise.
31926 (reallochook): Likewise.
31927 (mprobe): Likewise.
31928 * malloc/mtrace.c (mallwatch): Likewise.
31929 (tr_old_free_hook): Likewise.
31930 (tr_old_malloc_hook): Likewise.
31931 (tr_old_realloc_hook): Likewise.
31932 (tr_old_memalign_hook): Likewise.
31933 (tr_where): Likewise.
31934 (lock_and_info): Likewise.
31935 (tr_freehook): Likewise.
31936 (tr_mallochook): Likewise.
31937 (tr_reallochook): Likewise.
31938 (tr_memalignhook): Likewise.
31939 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31940 * misc/mmap.c (__mmap): Likewise.
31941 * misc/mmap64.c (__mmap64): Likewise.
31942 * misc/mprotect.c (__mprotect): Likewise.
31943 * misc/msync.c (msync): Likewise.
31944 * misc/munmap.c (__munmap): Likewise.
31945 * posix/posix_madvise.c (posix_madvise): Likewise.
31946 * socket/send.c (__send): Likewise.
31947 * socket/sendto.c (__sendto): Likewise.
31948 * socket/setsockopt.c (__setsockopt): Likewise.
31949 * string/memcmp.c (__ptr_t): Remove macro.
31950 (MEMCMP): Use void * instead of ptr_t.
31951 * string/memrchr.c (__ptr_t): Remove macro.
31952 (__memrchr): Use void * instead of ptr_t.
31953 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31954 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31955 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31956 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31957 * sysdeps/mach/msync.c (msync): Likewise.
31958 * sysdeps/mach/munmap.c (__munmap): Likewise.
31959 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31960 Likewise.
31961 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31962 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31963 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31964 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31965 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31966 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31967 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31968 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31969 Likewise.
31970 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31971 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31972 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31973 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31974 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31975 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31976 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31977 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31978 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31979 Likewise.
31980 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31981 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31982 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31983 (MEMCMP): Use void * instead of ptr_t.
31984 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31985 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31986
31987 2017-08-08 Florian Weimer <fweimer@redhat.com>
31988
31989 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31990 return statement.
31991
31992 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31993
31994 [BZ #21913]
31995 * csu/libc-tls.c: Include <startup.h> first.
31996 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31997 * elf/dl-tunables.c: Include <startup.h> first.
31998 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31999 * sysdeps/generic/startup.h: New file.
32000 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
32001 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
32002 (I386_USE_SYSENTER): New. Defined to 0.
32003
32004 2017-08-08 Andreas Schwab <schwab@suse.de>
32005
32006 [BZ #21041]
32007 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
32008 * nptl/pt-system.c (system): Likewise.
32009
32010 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
32011
32012 [BZ #21780]
32013 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
32014 EOPNOTSUPP.
32015 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
32016 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
32017 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
32018 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
32019 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
32020 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
32021 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
32022
32023 2017-08-07 Joseph Myers <joseph@codesourcery.com>
32024
32025 [BZ #21899]
32026 * bits/sigaction.h (struct sigaction): Define sa_handler and
32027 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
32028 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32029 [__USE_XOPEN_EXTENDED].
32030 (SA_RESTART): Likewise.
32031 (SA_NODEFER): Likewise.
32032 (SA_RESETHAND): Likewise.
32033 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
32034 (struct sigaction): Define sa_handler and sa_sigaction using union
32035 also for [__USE_XOPEN_EXTENDED].
32036 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32037 [__USE_XOPEN_EXTENDED].
32038 (SA_RESTART): Likewise.
32039 (SA_NODEFER): Likewise.
32040 (SA_RESETHAND): Likewise.
32041 * sysdeps/unix/sysv/linux/bits/sigaction.h
32042 (struct sigaction): Define sa_handler and sa_sigaction using union
32043 also for [__USE_XOPEN_EXTENDED].
32044 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32045 [__USE_XOPEN_EXTENDED].
32046 (SA_RESTART): Likewise.
32047 (SA_NODEFER): Likewise.
32048 (SA_RESETHAND): Likewise.
32049 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
32050 (struct sigaction): Define sa_handler and sa_sigaction using union
32051 also for [__USE_XOPEN_EXTENDED].
32052 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32053 [__USE_XOPEN_EXTENDED].
32054 (SA_RESTART): Likewise.
32055 (SA_NODEFER): Likewise.
32056 (SA_RESETHAND): Likewise.
32057 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
32058 (struct sigaction): Define sa_handler and sa_sigaction using union
32059 also for [__USE_XOPEN_EXTENDED].
32060 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32061 [__USE_XOPEN_EXTENDED].
32062 (SA_RESTART): Likewise.
32063 (SA_NODEFER): Likewise.
32064 (SA_RESETHAND): Likewise.
32065 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
32066 (struct sigaction): Define sa_handler and sa_sigaction using union
32067 also for [__USE_XOPEN_EXTENDED].
32068 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32069 [__USE_XOPEN_EXTENDED].
32070 (SA_RESTART): Likewise.
32071 (SA_NODEFER): Likewise.
32072 (SA_RESETHAND): Likewise.
32073 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32074 (struct sigaction): Define sa_handler and sa_sigaction using union
32075 also for [__USE_XOPEN_EXTENDED].
32076 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32077 [__USE_XOPEN_EXTENDED].
32078 (SA_RESTART): Likewise.
32079 (SA_NODEFER): Likewise.
32080 (SA_RESETHAND): Likewise.
32081 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32082 (struct sigaction): Define sa_handler and sa_sigaction using union
32083 also for [__USE_XOPEN_EXTENDED].
32084 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32085 [__USE_XOPEN_EXTENDED].
32086 (SA_RESTART): Likewise.
32087 (SA_NODEFER): Likewise. Define directly rather than as alias.
32088 (SA_RESETHAND): Likewise.
32089 (SA_INTERRUPT): Define only for [__USE_MISC].
32090 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32091 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32092 [__USE_MISC].
32093 (SA_STACK): Define only for [__USE_MISC].
32094 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32095 (struct sigaction): Define sa_handler and sa_sigaction using union
32096 also for [__USE_XOPEN_EXTENDED].
32097 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32098 [__USE_XOPEN_EXTENDED].
32099 (SA_RESTART): Likewise.
32100 (SA_NODEFER): Likewise.
32101 (SA_RESETHAND): Likewise.
32102 (SA_NOPTRACE): Define only for [__USE_MISC].
32103
32104 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32105 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32106 (struct catalog_info): Likewise.
32107 * inet/htontest.c (lo): Likewise.
32108 (foo): Likewise.
32109 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32110 * inet/inet_net.c (inet_network): Likewise.
32111 * inet/inet_netof.c (inet_netof): Likewise.
32112 * inet/rcmd.c (__ivaliduser): Likewise.
32113 (iruserok): Likewise.
32114 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32115 * locale/programs/locale-spec.c (locale_special): Likewise.
32116 * nis/nis_findserv.c (struct findserv_req): Likewise.
32117 (__nis_findfastest_with_timeout): Likewise.
32118 * nss/test-netdb.c (test_network): Likewise.
32119 * resolv/inet_neta.c (inet_neta): Likewise.
32120 * resolv/ns_date.c (ns_datetosecs): Likewise.
32121 (SECS_PER_DAY): Likewise.
32122 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32123 Likewise.
32124 * resolv/res_comp.c (__putlong): Likewise.
32125 (__putshort): Likewise.
32126 (_getlong): Likewise.
32127 (_getshort): Likewise.
32128 * resolv/res_debug.c (p_time): Likewise.
32129 (precsize_ntoa): Likewise.
32130 (precsize_aton): Likewise.
32131 (latlon2ul): Likewise.
32132 (loc_aton): Likewise.
32133 (loc_ntoa): Likewise.
32134 * resolv/res_hconf.c (struct netaddr): Likewise.
32135 (_res_hconf_reorder_addrs): Likewise.
32136 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32137 (clnttcp_control): Likewise.
32138 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32139 (clntudp_control): Likewise.
32140 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32141 (clntunix_control): Likewise.
32142 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32143 * sunrpc/rpc/auth.h (union des_block): Likewise.
32144 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32145 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32146 (xdrrec_create): Likewise.
32147 (xdrrec_endofrecord): Likewise.
32148 (flush_out): Likewise.
32149 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32150 (xdrstdio_putlong): Likewise.
32151 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32152 Likewise.
32153
32154 * misc/sys/cdefs.h (__long_double_t): Remove.
32155 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32156 instead of __long_double_t,
32157 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32158
32159 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32160
32161 * benchtests/scripts/compare_strings.py: Avoid display error when
32162 running on a text terminal.
32163
32164 * benchtests/scripts/compare_strings.py (main): Add an
32165 optional -base option.
32166 (process_results): New argument base_func.
32167
32168 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32169 hardcoding memcpy.
32170 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32171 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32172
32173 2017-08-07 Andreas Schwab <schwab@suse.de>
32174
32175 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32176 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32177 * intl/Makefile ($(objpfx)tst-gettext.out)
32178 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32179 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32180 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32181 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32182 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32183 * posix/Makefile ($(objpfx)globtest.out)
32184 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32185 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32186 ($(objpfx)tst-printf.out): Likewise.
32187 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32188 ($(objpfx)tst-setcontext3.out): Likewise.
32189
32190 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32191
32192 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32193 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32194 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32195 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32196 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32197 and mptan-fma.
32198 (CFLAGS-doasin-fma.c): New.
32199 (CFLAGS-dosincos-fma.c): Likewise.
32200 (CFLAGS-e_asin-fma.c): Likewise.
32201 (CFLAGS-e_atan2-fma.c): Likewise.
32202 (CFLAGS-e_exp-fma.c): Likewise.
32203 (CFLAGS-e_log-fma.c): Likewise.
32204 (CFLAGS-e_pow-fma.c): Likewise.
32205 (CFLAGS-halfulp-fma.c): Likewise.
32206 (CFLAGS-mpa-fma.c): Likewise.
32207 (CFLAGS-mpatan-fma.c): Likewise.
32208 (CFLAGS-mpatan2-fma.c): Likewise.
32209 (CFLAGS-mpexp-fma.c): Likewise.
32210 (CFLAGS-mplog-fma.c): Likewise.
32211 (CFLAGS-mpsqrt-fma.c): Likewise.
32212 (CFLAGS-mptan-fma.c): Likewise.
32213 (CFLAGS-s_atan-fma.c): Likewise.
32214 (CFLAGS-sincos32-fma.c): Likewise.
32215 (CFLAGS-slowexp-fma.c): Likewise.
32216 (CFLAGS-slowpow-fma.c): Likewise.
32217 (CFLAGS-s_sin-fma.c): Likewise.
32218 (CFLAGS-s_tan-fma.c): Likewise.
32219 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32220 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32221 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32222 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32223 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32224 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32225 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32226 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32227 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32228 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32229 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32230 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32231 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32232 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32233 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32234 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32235 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32236 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32237 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32238 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32239 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32240 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32241 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32242 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32243 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32244 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32245 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32246 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32247 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32248 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32249 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32250
32251 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32252
32253 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32254 (min_of_type_f): New macro.
32255 (min_of_type_): Likewise.
32256 (min_of_type_l): Likewise.
32257 (min_of_type_f128): Likewise.
32258 (min_of_type): Define using __MATH_TG and taking an expression
32259 argument.
32260 (math_check_force_underflow): Pass expression instead of type to
32261 min_of_type.
32262 (math_check_force_underflow_nonneg): Likewise.
32263
32264 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32265
32266 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32267 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32268 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32269
32270 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32271
32272 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32273 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32274 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32275 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32276 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32277 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32278 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32279 memmove_chk-nonshared and memset_chk-nonshared
32280 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32281 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32282 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32283 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32284 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32285 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32286 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32287 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32288 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32289 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32290 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32291 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32292 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32293 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32294 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32295 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32296 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32297 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32298 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32299 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32300 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32301 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32302 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32303 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32304 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32305 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32306 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32307 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32308 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32309 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32310 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32311 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32312 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32313 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32314 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32315 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32316 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32317 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32318 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32319 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32320 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32321 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32322 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32323 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32324 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32325 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32326 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32327 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32328 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32329 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32330 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32331 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32332 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32333 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32334 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32335 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32336 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32337 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32338 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32339 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32340 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32341 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32342 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32343 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32344 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32345 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32346 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32347 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32348 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32349 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32350 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32351 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32352 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32353 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32354 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32355 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32356 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32357 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32358 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32359 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32360 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32361 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32362 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32363 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32364 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32365 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32366 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32367 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32368 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32369 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32370 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32371 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32372 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32373 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32374 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32375 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32376 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32377 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32378 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32379 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32380 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32381 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32382 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32383 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32384 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32385 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32386 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32387 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32388
32389 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32390
32391 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32392 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32393 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32394 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32395 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32396 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32397 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32398 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32399 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32400 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32401 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32402 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32403 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32404 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32405 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32406 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32407 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32408 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32409 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32410 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32411 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32412 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32413 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32414 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32415 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32416 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32417 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32418 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32419 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32420 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32421 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32422 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32423 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32424 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32425 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32426 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32427 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32428 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32429 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32430 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32431 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32432 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32433 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32434 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32435 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32436 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32437 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32438 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32439 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32440 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32441 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32442 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32443 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32444 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32445 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32446 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32447 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32448 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32449 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32450 ...
32451 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32452 Don't include <sysdep.h> nor <init-arch.h>.
32453 (_ZGVbN2v_cos): Removed.
32454 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32455 ...
32456 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32457 Don't include <sysdep.h> nor <init-arch.h>.
32458 (_ZGVdN4v_cos): Removed.
32459 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32460 ...
32461 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32462 Don't include <sysdep.h> nor <init-arch.h>.
32463 (_ZGVeN8v_cos): Removed.
32464 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32465 ...
32466 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32467 Don't include <sysdep.h> nor <init-arch.h>.
32468 (_ZGVbN2v_exp): Removed.
32469 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32470 ...
32471 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32472 Don't include <sysdep.h> nor <init-arch.h>.
32473 (_ZGVdN4v_exp): Removed.
32474 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32475 ...
32476 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32477 Don't include <sysdep.h> nor <init-arch.h>.
32478 (_ZGVeN8v_exp): Removed.
32479 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32480 ...
32481 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32482 Don't include <sysdep.h> nor <init-arch.h>.
32483 (_ZGVbN2v_log): Removed.
32484 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32485 ...
32486 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32487 Don't include <sysdep.h> nor <init-arch.h>.
32488 (_ZGVdN4v_log): Removed.
32489 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32490 ...
32491 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32492 Don't include <sysdep.h> nor <init-arch.h>.
32493 (_ZGVeN8v_log): Removed.
32494 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32495 ...
32496 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32497 Don't include <sysdep.h> nor <init-arch.h>.
32498 (_ZGVbN2vv_pow): Removed.
32499 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32500 ...
32501 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32502 Don't include <sysdep.h> nor <init-arch.h>.
32503 (_ZGVdN4vv_pow): Removed.
32504 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32505 ...
32506 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32507 Don't include <sysdep.h> nor <init-arch.h>.
32508 (_ZGVeN8vv_pow): Removed.
32509 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32510 ...
32511 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32512 Don't include <sysdep.h> nor <init-arch.h>.
32513 (_ZGVbN2v_sin): Removed.
32514 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32515 ...
32516 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32517 Don't include <sysdep.h> nor <init-arch.h>.
32518 (_ZGVbN4v_sin): Removed.
32519 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32520 ...
32521 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32522 Don't include <sysdep.h> nor <init-arch.h>.
32523 (_ZGVbN8v_sin): Removed.
32524 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32525 ...
32526 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32527 Don't include <sysdep.h> nor <init-arch.h>.
32528 (_ZGVbN2vvv_sincos): Removed.
32529 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32530 ...
32531 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32532 Don't include <sysdep.h> nor <init-arch.h>.
32533 (_ZGVdN4vvv_sincos): Removed.
32534 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32535 ...
32536 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32537 Don't include <sysdep.h> nor <init-arch.h>.
32538 (_ZGVeN8vvv_sincos): Removed.
32539 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32540 ...
32541 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32542 Don't include <sysdep.h> nor <init-arch.h>.
32543 (_ZGVeN16v_cosf): Removed.
32544 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32545 ...
32546 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32547 Don't include <sysdep.h> nor <init-arch.h>.
32548 (_ZGVbN4v_cosf): Removed.
32549 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32550 ...
32551 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32552 Don't include <sysdep.h> nor <init-arch.h>.
32553 (_ZGVdN8v_cosf): Removed.
32554 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32555 ...
32556 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32557 Don't include <sysdep.h> nor <init-arch.h>.
32558 (_ZGVeN16v_expf): Removed.
32559 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32560 ...
32561 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32562 Don't include <sysdep.h> nor <init-arch.h>.
32563 (_ZGVbN4v_expf): Removed.
32564 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32565 ...
32566 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32567 Don't include <sysdep.h> nor <init-arch.h>.
32568 (_ZGVdN8v_expf): Removed.
32569 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32570 ...
32571 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32572 Don't include <sysdep.h> nor <init-arch.h>.
32573 (_ZGVeN16v_logf): Removed.
32574 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32575 ...
32576 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32577 Don't include <sysdep.h> nor <init-arch.h>.
32578 (_ZGVbN4v_logf): Removed.
32579 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32580 ...
32581 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32582 Don't include <sysdep.h> nor <init-arch.h>.
32583 (_ZGVdN8v_logf): Removed.
32584 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32585 ...
32586 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32587 Don't include <sysdep.h> nor <init-arch.h>.
32588 (_ZGVeN16vv_powf): Removed.
32589 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32590 ...
32591 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32592 Don't include <sysdep.h> nor <init-arch.h>.
32593 (_ZGVbN4vv_powf): Removed.
32594 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32595 ...
32596 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32597 Don't include <sysdep.h> nor <init-arch.h>.
32598 (_ZGVdN8vv_powf): Removed.
32599 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32600 ...
32601 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32602 Don't include <sysdep.h> nor <init-arch.h>.
32603 (_ZGVeN16vvv_sincosf): Removed.
32604 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32605 ...
32606 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32607 Don't include <sysdep.h> nor <init-arch.h>.
32608 (_ZGVbN4vvv_sincosf): Removed.
32609 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32610 ...
32611 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32612 Don't include <sysdep.h> nor <init-arch.h>.
32613 (_ZGVdN8vvv_sincosf): Removed.
32614 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32615 ...
32616 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32617 Don't include <sysdep.h> nor <init-arch.h>.
32618 (_ZGVeN16v_sinf): Removed.
32619 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32620 ...
32621 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32622 Don't include <sysdep.h> nor <init-arch.h>.
32623 (_ZGVbN4v_sinf): Removed.
32624 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32625 ...
32626 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32627 Don't include <sysdep.h> nor <init-arch.h>.
32628 (_ZGVdN8v_sinf): Removed.
32629
32630 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32631
32632 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32633 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32634 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32635 s_rint-sse4_1 and s_rintf-sse4_1.
32636 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32637 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32638 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32639 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32640 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32641 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32642 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32643 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32644 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32645 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32646 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32647 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32648 (__ceil): Removed.
32649 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32650 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32651 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32652 (__ceilf): Removed.
32653 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32654 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32655 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32656 (__floor): Removed.
32657 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32658 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32659 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32660 (__floorf): Removed.
32661 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32662 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32663 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32664 (__nearbyint): Removed.
32665 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32666 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32667 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32668 (__nearbyintf): Removed.
32669 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32670 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32671 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32672 (__rint): Removed.
32673 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32674 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32675 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32676 (__rintf): Removed.
32677
32678 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32679
32680 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32681 SHARED. Avoid dynamic relocation against main in static PIE.
32682
32683 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32684
32685 [BZ #21815]
32686 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32687 (LDFLAGS-tst-prelink): Likewise.
32688
32689 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32690
32691 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32692 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32693 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32694 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32695 (INTERNAL_SYSCALL_NCS): Likewise.
32696 (LOADARGS_1): Likewise.
32697 (LOADARGS_5): Likewise.
32698 (RESTOREARGS_1): Likewise.
32699 (RESTOREARGS_5): Likewise.
32700
32701 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32702
32703 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32704 (MEMPCPY_SYMBOL): Likewise.
32705 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32706 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32707 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32708 in libc.a.
32709 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32710 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32711 Likewise.
32712 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32713 (__hidden_ver1): Don't use in libc.a.
32714 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32715 (__mempcpy): Don't create a weak alias in libc.a.
32716 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32717 libc.a.
32718 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32719 (__hidden_ver1): Don't use in libc.a.
32720
32721 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32722
32723 * config.make.in (have-insert): New.
32724 * configure.ac (libc_cv_insert): New. Set to yes if linker
32725 supports INSERT in linker script.
32726 (AC_SUBST(libc_cv_insert): New.
32727 * configure: Regenerated.
32728 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32729 if $(have-insert) == yes.
32730
32731 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32732
32733 * elf/Makefile (tests): Add vismain only if
32734 $(have-protected-data) == yes.
32735 (tests-pie): Likewise.
32736
32737 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32738
32739 [BZ #21871]
32740 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32741 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32742
32743 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32744
32745 [BZ #21790]
32746 * sysdeps/i386/i586/memset.S
32747 (__memset_zero_constant_len_parameter): Removed.
32748 * sysdeps/i386/i686/memset.S
32749 (__memset_zero_constant_len_parameter): Likewise.
32750 * sysdeps/i386/i686/multiarch/memset_chk.S
32751 (__memset_zero_constant_len_parameter): Likewise.
32752 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32753 Likewise.
32754
32755 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32756
32757 * stdlib/getentropy.c (getentropy): Change return type to int.
32758
32759 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32760
32761 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32762
32763 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32764
32765 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32766 u_intN_t.
32767 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32768 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32769 Likewise.
32770 (ieee_float_shape_type): Likewise.
32771 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32772 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32773 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32774 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32775 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32776 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32777 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32778 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32779 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32780 Likewise.
32781 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32782 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32783 (__ieee754_yn): Likewise.
32784 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32785 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32786 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32787 Likewise.
32788 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32789 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32790 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32791 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32792 (__erfc): Likewise.
32793 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32794 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32795 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32796 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32797 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32798 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32799 Likewise.
32800 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32801 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32802 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32803 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32804 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32805 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32806 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32807 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32808 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32809 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32810 (__issignaling): Likewise.
32811 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32812 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32813 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32814 Likewise.
32815 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32816 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32817 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32818 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32819 Likewise.
32820 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32821 Likewise.
32822 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32823 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32824 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32825 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32826 (__erfcf): Likewise.
32827 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32828 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32829 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32830 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32831 Likewise.
32832 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32833 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32834 Likewise.
32835 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32836 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32837 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32838 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32839 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32840 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32841 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32842 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32843 Likewise.
32844 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32845 Likewise.
32846 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32847 Likewise.
32848 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32849 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32850 Likewise.
32851 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32852 Likewise.
32853 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32854 (__ieee754_ynl): Likewise.
32855 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32856 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32857 Likewise.
32858 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32859 Likewise.
32860 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32861 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32862 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32863 Likewise.
32864 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32865 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32866 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32867 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32868 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32869 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32870 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32871 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32872 Likewise.
32873 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32874 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32875 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32876 Likewise.
32877 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32878 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32879 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32880 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32881 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32882 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32883 Likewise.
32884 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32885 Likewise.
32886 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32887 Likewise.
32888 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32889 Likewise.
32890 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32891 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32892 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32893 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32894 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32895 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32896 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32897 Likewise.
32898 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32899 Likewise.
32900 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32901 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32902 Likewise.
32903 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32904 (__ieee754_remainderl): Likewise.
32905 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32906 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32907 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32908 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32909 Likewise.
32910 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32911 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32912 Likewise.
32913 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32914 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32915 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32916 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32917 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32918 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32919 Likewise.
32920 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32921 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32922 (__ieee754_y0l): Likewise.
32923 (pzero): Likewise.
32924 (qzero): Likewise.
32925 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32926 (__ieee754_y1l): Likewise.
32927 (pone): Likewise.
32928 (qone): Likewise.
32929 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32930 (__ieee754_ynl): Likewise.
32931 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32932 (__ieee754_lgammal_r): Likewise.
32933 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32934 Likewise.
32935 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32936 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32937 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32938 (__erfcl): Likewise.
32939 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32940 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32941 Likewise.
32942 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32943 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32944 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32945 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32946 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32947 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32948 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32949 Likewise.
32950 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32951 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32952 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32953 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32954 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32955 Likewise.
32956 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32957 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32958 Likewise.
32959 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32960 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32961 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32962 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32963 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32964
32965 2017-08-03 Florian Weimer <fweimer@redhat.com>
32966
32967 [BZ #21885]
32968 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32969 on memory allocation failure.
32970
32971 2017-08-03 Alan Modra <amodra@gmail.com>
32972
32973 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32974 tst-tlsopt-powerpc.c with function name change and no test harness.
32975 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32976 Call tls_get_addr_opt_test.
32977 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32978 (modules-names): Add mod-tlsopt-powerpc.
32979 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32980 (tst-tlsopt-powerpc): Depend on .so.
32981 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32982 define. Expand use in TLS_GD and TLS_LD.
32983
32984 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32985
32986 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32987 function.
32988 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32989
32990 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32991
32992 [BZ #21686]
32993 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32994 comparing size with that of double.
32995 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32996 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32997 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32998 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32999 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33000 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
33001 unsigned __int128 types.
33002
33003 2017-08-02 Steve Ellcey <sellcey@cavium.com>
33004
33005 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
33006 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
33007 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
33008 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
33009 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
33010
33011 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33012
33013 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
33014
33015 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33016
33017 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
33018 of SHARED.
33019 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
33020 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
33021 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33022 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
33023 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
33024 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
33025 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
33026
33027 2017-08-02 Joseph Myers <joseph@codesourcery.com>
33028
33029 [BZ #21685]
33030 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
33031 bit-field expressions passed to sizeof or typeof.
33032 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33033 (__TGMATH_F128): Likewise.
33034 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
33035 (__TGMATH_CF128): Likewise.
33036 (__TGMATH_UNARY_REAL_ONLY): Likewise.
33037 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
33038 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
33039 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
33040 (__TGMATH_BINARY_REAL_ONLY): Likewise.
33041 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
33042 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
33043 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
33044 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
33045 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
33046 (__TGMATH_UNARY_REAL_IMAG): Likewise.
33047 (__TGMATH_UNARY_IMAG): Likewise.
33048 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
33049 (__TGMATH_BINARY_REAL_IMAG): Likewise.
33050 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
33051 type.
33052 (define_vars_for_type): Handle bit_field type specially.
33053 (Tests.__init__): Declare structure with bit-field element.
33054
33055 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
33056
33057 [BZ #21791]
33058 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
33059 (MEMCPY_CHK): Define only if SHARED is defined.
33060 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
33061 Likewise.
33062 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
33063 Likewise.
33064
33065 See ChangeLog.18 for earlier changes.