]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
nptl: Assume __ASSUME_FUTEX_CLOCK_REALTIME support
[thirdparty/glibc.git] / ChangeLog
1 2019-03-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2
3 * nptl/nptl-init.c (__have_futex_clock_realtime,
4 __have_futex_clock_realtime): Remove definition.
5 (__pthread_initialize_minimal_internal): Remove FUTEX_CLOCK_REALTIME
6 check test for !__ASSUME_FUTEX_CLOCK_REALTIME.
7 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Assume
8 __ASSUME_FUTEX_CLOCK_REALTIME support.
9 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Likewise.
10 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11 * sysdeps/unix/sysv/linux/kernel-features.h
12 (__ASSUME_FUTEX_CLOCK_REALTIME): Remove.
13 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_timed_wait_bitset):
14 Adjust comment.
15
16 2019-03-05 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
17
18 * sysdeps/powerpc/powerpc64/power6/wcscpy.c (WCSCPY): Define to
19 __wcscpy, then use libc_hidden_def and weak_alias to bind it to
20 __GI___wcscpy and wcscpy.
21
22 2019-03-04 Florian Weimer <fweimer@redhat.com>
23
24 * sysdeps/generic/ldsodefs.h (_dl_sysdep_open_zero_fill): Remove
25 declaration.
26 * elf/dl-load.c (_dl_map_object_from_fd): Assume MAP_ANON is
27 defined.
28
29 2019-03-04 Stefan Liebler <stli@linux.ibm.com>
30
31 * sysdeps/s390/s390-64/sysdep.h (ENTRY): Use alignment of 16byte.
32 * sysdeps/s390/s390-32/sysdep.h: Likewise.
33
34 2019-03-02 TAMUKI Shoichi <tamuki@linet.gr.jp>
35
36 [BZ #24162]
37 * localedata/locales/ja_JP (LC_TIME): Change the offset for Taisho
38 gan-nen from 2 to 1. Problem reported by Morimitsu, Junji.
39
40 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
41
42 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
43 tests.
44 (do_test): Likewise.
45 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
46 (do_test_call_varg): Likewise.
47 (do_test_call_rarg): Likewise.
48 * sysdeps/ieee754/ldbl-opt/Makefile
49 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
50 tst-nldbl-error.
51 ($(objpfx)tst-nldbl-warn.c): New rule.
52 ($(objpfx)tst-nldbl-error.c): Likewise.
53 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
54 New variables.
55
56 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
57
58 [BZ #23984]
59 * include/bits/error-ldbl.h: New file.
60 * include/error.h: Include stdarg.h. Declare internal functions
61 __error_internal and __error_at_line_internal.
62 * misc/Makefile (headers): Add bits/error-ldbl.h.
63 * misc/bits/error-ldbl.h: New file.
64 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
65 avoid the inclusion of bits/error.h.
66 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
67 and __nldbl_error_at_line.
68 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
69 (__nldbl_error, __ndlbl_error_at_line): New functions.
70 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
71 Redirect error and error_at_line.
72 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
73 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
74 Likewise.
75 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
76 Likewise.
77 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
78 Likewise.
79 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
80 Likewise.
81 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
82 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
83 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
84
85 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
86
87 [BZ #23984]
88 * include/bits/err-ldbl.h: New file.
89 * include/err.h: Add prototypes for the internal functions:
90 __vwarnx_internal and __vwarn_internal.
91 * misc/Makefile (headers): Add bits/err-ldbl.h.
92 * misc/bits/err-ldbl.h: New file.
93 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
94 defined, i.e.: when -mlong-double-64 is in use.
95 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
96 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
97 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
98 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
99 (VA_CALL): New macro.
100 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
101 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
102 functions.
103 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
104 declare prototypes for the new functions.
105 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
106 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
107 Likewise.
108 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
109 Likewise.
110 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
111 Likewise.
112 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
113 Likewise.
114 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
115 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
116 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
117
118 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
119
120 * sysdeps/ieee754/ldbl-opt/Makefile
121 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
122 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
123 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
124
125 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
126
127 [BZ #23983]
128 * argp/Makefile (headers): Add bits/argp-ldbl.h.
129 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
130 * argp/bits/argp-ldbl.h: New file.
131 * include/argp.h: Include stdarg.h. Add prototypes for internal
132 functions: __argp_error_internal and __argp_failure_internal.
133 * include/bits/argp-ldbl.h: New file.
134 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
135 __nldbl_argp_error and __nldbl_argp_failure.
136 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
137 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
139 Redirect argp_error and argp_failure calls.
140 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
141 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
142 Likewise.
143 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
144 Likewise.
145 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
146 Likewise.
147 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
148 Likewise.
149 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
150 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
151 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
152
153 2019-03-01 Florian Weimer <fweimer@redhat.com>
154
155 [BZ #20419]
156 * elf/tst-big-note-lib.S: Create a syntactically valid note.
157 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
158 code, to avoid creating an ABI tag note.
159 (modules-names-nobuild): Add tst-big-note-lib.
160
161 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
162
163 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
164 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
165
166 2019-03-01 Florian Weimer <fweimer@redhat.com>
167
168 [BZ #20271]
169 * sysdeps/unix/sysv/linux/netlink_assert_response.c
170 (__netlink_assert_response): Add additional missing newlines.
171
172 2019-02-28 Joseph Myers <joseph@codesourcery.com>
173
174 * sysdeps/powerpc/powerpc32/dl-machine.c
175 (__elf_machine_fixup_plt): Use space before '('.
176 (__process_machine_rela): Likewise.
177 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
178 Likewise.
179 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
180 Likewise.
181 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
182 Likewise.
183 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
184 (pattern): Likewise.
185 (delta): Likewise.
186 (check_result): Likewise.
187 (check_excepts): Likewise.
188 (check_op): Likewise.
189 (fail_xr): Likewise.
190 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
191 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
192 (SCNHSZ): Likewise.
193 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
194 Likewise.
195 (ARGS): Likewise.
196 (__makecontext): Likewise.
197 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
198 Likewise.
199
200 2019-02-28 Florian Weimer <fweimer@redhat.com>
201
202 [BZ #23937]
203 elf: Add test with a local IFUNC resolver.
204 * elf/ifuncmain9.c: New file.
205 * elf/ifuncmain9pic.c: Likewise.
206 * elf/ifuncmain9picstatic.c: Likewise.
207 * elf/ifuncmain9pie.c: Likewise.
208 * elf/ifuncmain9static.c: Likewise.
209 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
210 ifuncmain9static, ifuncmain9picstatic.
211 * elf/Makefile [multi-arch && build-shared] (tests-internal):
212 Add ifuncmain9, ifuncmain9pic.
213 * elf/Makefile [multi-arch && build-shared && have-fpie]
214 (ifunc-pie-tests): Add ifuncmain9pie.
215 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
216 (CFLAGS-ifuncmain9picstatic.c): Likewise.
217 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
218
219 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
220
221 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
222 * configure: Regenerated.
223 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
224
225 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
226
227 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
228 symbol as __wcspcy instead of wcscpy.
229
230 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
231
232 * include/stdio.h (__renameat2): New hidden prototype.
233 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
234 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
235 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
236 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
237
238 2019-02-27 Joseph Myers <joseph@codesourcery.com>
239
240 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
241 if statement.
242
243 * benchtests/bench-strcpy.c (do_test): Use space before '('.
244 * benchtests/bench-string.h (cmdline_process_function): Likewise.
245 * benchtests/bench-strlen.c (do_test): Likewise.
246 (test_main): Likewise.
247 * catgets/gencat.c (read_old): Likewise.
248 * elf/cache.c (load_aux_cache): Likewise.
249 * iconvdata/bug-iconv8.c (do_test): Likewise.
250 * math/test-tgmath-ret.c (do_test): Likewise.
251 * nis/nis_call.c (rec_dirsearch): Likewise.
252 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
253 * nptl/tst-audit-threads.c (do_test): Likewise.
254 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
255 * nss/nss_test1.c (init): Likewise.
256 * nss/test-netdb.c (test_hosts): Likewise.
257 * posix/execvpe.c (maybe_script_execute): Likewise.
258 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
259 * stdio-common/tst-printf.c (do_test): Likewise.
260 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
261 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
262 * stdlib/qsort.c (STACK_SIZE): Likewise.
263 * stdlib/test-canon.c (do_test): Likewise.
264 * stdlib/tst-swapcontext1.c (do_test): Likewise.
265 * string/memcmp.c (OPSIZ): Likewise.
266 * string/test-strcpy.c (do_test): Likewise.
267 (do_random_tests): Likewise.
268 * string/test-strlen.c (do_test): Likewise.
269 (test_main): Likewise.
270 * string/test-strrchr.c (do_test): Likewise.
271 (do_random_tests): Likewise.
272 * string/tester.c (test_memrchr): Likewise.
273 (test_memchr): Likewise.
274 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
275 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
276 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
277 (read_encoded_value_with_base): Likewise.
278 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
279 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
280 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
281 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
282 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
283 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
284 Likewise.
285 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
286 Likewise.
287 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
288 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
289 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
290 Likewise.
291 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
292 Likewise.
293 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
294 Likewise.
295 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
296 Likewise.
297 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
298 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
299 (FP_XSTATE_MAGIC2_SIZE): Likewise.
300 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
301 * time/test_time.c (main): Likewise.
302
303 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
304
305 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
306
307 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
308 wmemcpy.
309
310 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
311 wmemcpy.
312
313 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
314
315 * include/wchar.h (__wcscpy): New prototype.
316 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
317 (__wcscpy): Route internal symbol to generic implementation.
318 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
319 Add internal __wcscpy alias.
320 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
321 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
322 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
323 * wcsmbs/wcscpy.c (wcscpy): Add
324 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
325 use generic implementation.
326 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
327
328 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
329 wmemset.
330
331 * sysdeps/m68k/wcpcpy.c: Remove file.
332 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
333
334 2019-02-26 Joseph Myers <joseph@codesourcery.com>
335
336 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
337 than after operators.
338 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
339 * sysdeps/mach/hurd/getcwd.c
340 (__hurd_canonicalize_directory_name_internal): Likewise.
341 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
342 (pthread_mutex_consistent): Likewise.
343 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
344 Likewise.
345 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
346 (__pthread_mutex_transfer_np): Likewise.
347 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
348 (__pthread_mutex_unlock): Likewise.
349 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
350 (mtx_owned_p): Likewise.
351 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
352 (pthread_mutexattr_getrobust): Likewise.
353 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
354 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
355 Likewise.
356 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
357 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
358 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
359 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
360 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
361 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
362 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
363 Likewise.
364 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
365 Likewise.
366 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
367 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
368 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
369 (____longjmp_chk): Likewise.
370 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
371 Likewise.
372 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
373 (INTERNAL_SYSCALL): Likewise.
374 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
375 (INTERNAL_SYSCALL): Likewise.
376 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
377 (__get_clockfreq_via_cpuinfo): Likewise.
378
379 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
380 comments.
381 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
382 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
383 (WORD_COPY_BWD): Likewise.
384 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
385 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
386 Likewise.
387 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
388 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
389 comment.
390 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
391
392 2019-02-25 Joseph Myers <joseph@codesourcery.com>
393
394 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
395 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
396 rather than after operators.
397 * elf/cache.c (print_cache): Likewise.
398 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
399 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
400 * hurd/hurdinit.c (_hurd_setproc): Likewise.
401 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
402 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
403 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
404 (reauth_proc): Likewise.
405 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
406 (__file_name_split_at): Likewise.
407 (__directory_name_split_at): Likewise.
408 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
409 * hurd/port2fd.c (_hurd_port2fd): Likewise.
410 * iconv/gconv_dl.c (do_print): Likewise.
411 * inet/netinet/in.h (struct sockaddr_in): Likewise.
412 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
413 * locale/setlocale.c (new_composite_name): Likewise.
414 * malloc/memusagestat.c (main): Likewise.
415 * misc/fstab.c (fstab_convert): Likewise.
416 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
417 Likewise.
418 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
419 (getgrent_next_file): Likewise.
420 (internal_getgrnam_r): Likewise.
421 (internal_getgrgid_r): Likewise.
422 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
423 Likewise.
424 (internal_getgrent_r): Likewise.
425 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
426 (getpwent_next_nss): Likewise.
427 (getpwent_next_file): Likewise.
428 (internal_getpwnam_r): Likewise.
429 (internal_getpwuid_r): Likewise.
430 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
431 Likewise.
432 (getspent_next_nss): Likewise.
433 (internal_getspnam_r): Likewise.
434 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
435 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
436 * string/strchr.c (STRCHR): Likewise.
437 * string/strchrnul.c (STRCHRNUL): Likewise.
438 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
439 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
440 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
441 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
442 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
443 Likewise.
444 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
445 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
446 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
447 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
448 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
449 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
450 (open_file): Likewise.
451 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
452 (pthread_mutexattr_setprotocol): Likewise.
453 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
454 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
455 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
456 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
457 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
458 Likewise.
459 (elf_machine_rela): Likewise.
460 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
461 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
462 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
463 * sysdeps/posix/rename.c (rename): Likewise.
464 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
465 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
466 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
467 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
468 * sysdeps/unix/grantpt.c (grantpt): Likewise.
469 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
470 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
471 Likewise.
472 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
473 Likewise.
474 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
475 * time/tzfile.c (__tzfile_compute): Likewise.
476
477 2019-02-22 Joseph Myers <joseph@codesourcery.com>
478
479 * benchtests/bench-memmem.c (simple_memmem): Break lines before
480 rather than after operators.
481 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
482 * crypt/md5.c (md5_finish_ctx): Likewise.
483 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
484 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
485 * elf/cache.c (load_aux_cache): Likewise.
486 * elf/dl-load.c (open_verify): Likewise.
487 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
488 * elf/readelflib.c (process_elf_file): Likewise.
489 * elf/rtld.c (dl_main): Likewise.
490 * elf/sprof.c (generate_call_graph): Likewise.
491 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
492 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
493 * hurd/dtable.c (reauth_dtable): Likewise.
494 * hurd/getdport.c (__getdport): Likewise.
495 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
496 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
497 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
498 Likewise.
499 * hurd/hurdioctl.c (fioctl): Likewise.
500 * hurd/hurdselect.c (_hurd_select): Likewise.
501 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
502 (STOPSIGS): Likewise.
503 * hurd/hurdstartup.c (_hurd_startup): Likewise.
504 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
505 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
506 * hurd/msgportdemux.c (msgport_server): Likewise.
507 * hurd/setauth.c (_hurd_setauth): Likewise.
508 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
509 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
510 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
511 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
512 * login/tst-utmp.c (do_check): Likewise.
513 (simulate_login): Likewise.
514 * mach/lowlevellock.h (lll_lock): Likewise.
515 (lll_trylock): Likewise.
516 * math/test-fenv.c (ALL_EXC): Likewise.
517 * math/test-fenvinline.c (ALL_EXC): Likewise.
518 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
519 * nis/nis_call.c (__do_niscall3): Likewise.
520 * nis/nis_callback.c (cb_prog_1): Likewise.
521 * nis/nis_defaults.c (searchaccess): Likewise.
522 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
523 * nis/nis_ismember.c (internal_ismember): Likewise.
524 * nis/nis_local_names.c (nis_local_principal): Likewise.
525 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
526 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
527 Likewise.
528 * nis/ypclnt.c (yp_match): Likewise.
529 (yp_first): Likewise.
530 (yp_next): Likewise.
531 (yp_master): Likewise.
532 (yp_order): Likewise.
533 * nscd/hstcache.c (cache_addhst): Likewise.
534 * nscd/initgrcache.c (addinitgroupsX): Likewise.
535 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
536 (internal_getpwuid_r): Likewise.
537 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
538 * posix/glob.h (__GLOB_FLAGS): Likewise.
539 * posix/regcomp.c (peek_token): Likewise.
540 (peek_token_bracket): Likewise.
541 (parse_expression): Likewise.
542 * posix/regexec.c (sift_states_iter_mb): Likewise.
543 (check_node_accept_bytes): Likewise.
544 * posix/tst-spawn3.c (do_test): Likewise.
545 * posix/wordexp-test.c (testit): Likewise.
546 * posix/wordexp.c (parse_tilde): Likewise.
547 (exec_comm): Likewise.
548 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
549 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
550 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
551 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
552 * stdio-common/tst-fileno.c (do_test): Likewise.
553 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
554 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
555 * stdlib/strtod_l.c (round_and_return): Likewise.
556 (____STRTOF_INTERNAL): Likewise.
557 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
558 * string/strcspn.c (STRCSPN): Likewise.
559 * string/test-memmem.c (simple_memmem): Likewise.
560 * termios/tcsetattr.c (tcsetattr): Likewise.
561 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
562 * time/asctime.c (asctime_internal): Likewise.
563 * time/strptime_l.c (__strptime_internal): Likewise.
564 * time/sys/time.h (timercmp): Likewise.
565 * time/tzfile.c (__tzfile_compute): Likewise.
566
567 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
568
569 [BZ #21915]
570 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
571
572 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
573
574 * argp/argp-help.c (__argp_error_internal): New function,
575 renamed from __argp_error, but that takes a 'mode_flags'
576 parameter to control the format of long double parameters.
577 (__argp_error): Converted into a call __argp_error_internal.
578 (__argp_failure_internal): New function, renamed from
579 __argp_failure, but that takes a 'mode_flags' parameter.
580 (__argp_failure): Converted into a call __argp_failure_internal.
581 * misc/err.c (__vwarnx_internal): New function, renamed from
582 vwarnx, but that takes a 'mode_flags' parameter.
583 (vwarnx): Converted into a call to __vwarnx_internal.
584 (__vwarn_internal): New function, renamed from vwarn, but that
585 takes a 'mode_flags' parameter.
586 (vwarn): Converted into a call to __vwarn_internal.
587 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
588 call to __vfxprintf with 'mode_flags'.
589 (__error_internal): New function, renamed from error, but that
590 takes a 'mode_flags' parameter.
591 (error): Converted into a call to __error_internal.
592 (__error_at_line_internal): New function, renamed from
593 error_at_line, but that takes a 'mode_flags' parameter.
594 (error_at_line): Converted into a call to
595 __error_at_line_internal.
596 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
597 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
598 Likewise.
599
600 2019-02-20 Martin Liska <mliska@suse.cz>
601
602 * math/Makefile: Install math-vector-fortran.h.
603 * bits/math-vector-fortran.h: New file.
604 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
605
606 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
607
608 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
609 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
610
611 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
612
613 * nptl/pthread_mutex_trylock.c: Fix comment.
614
615 2019-02-19 Carlos O'Donell <carlos@redhat.com>
616
617 * nptl/pthread_tryjoin.c: Fix comment.
618
619 2019-02-18 Joseph Myers <joseph@codesourcery.com>
620
621 [BZ #24231]
622 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
623 after R_SPARC_H34 case.
624
625 2019-02-18 Florian Weimer <fweimer@redhat.com>
626
627 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
628 (getanswer): Do not call Dprintf.
629 (res_gethostbyname2_context): Likewise.
630 (res_gethostbyaddr_context): Likewise.
631
632 2019-02-18 Florian Weimer <fweimer@redhat.com>
633
634 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
635 declaration.
636 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
637 Remove definitions.
638 * libio/stdfiles.c: Update comment.
639 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
640 set _IO_stdin, _IO_stdout, _IO_stderr.
641 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
642 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
643 inline function.
644 (_IO_deallocate_file): New inline function.
645 * libio/iolibio.h (_IO_vprintf): Remove definition.
646 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
647 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
648 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
649 _IO_legacy_file.
650 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
651 __builtin_expect. Use _IO_legacy_file.
652
653 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
654
655 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
656 Initialize ctid with a known value and remove update of ctid
657 after clone.
658 (wait_tid): Adjust arguments and call futex_wait with ctid_val
659 as assumed current value of ctid_ptr.
660
661 2019-02-15 Florian Weimer <fweimer@redhat.com>
662
663 Check that non-sysdeps headers have wrapper headers.
664 * scripts/check-wrapper-headers.py: New file.
665 * Makefile (tests-special): Add check-wrapper-headers.out.
666 (check-wrapper-headers.out): New target.
667 * Rules (tests-special): Add check-wrapper-headers.out.
668 (check-wrapper-headers.out): New target.
669
670 2019-02-15 Florian Weimer <fweimer@redhat.com>
671
672 Add missing header wrappers under include/.
673 * include/ar.h: New file.
674 * include/bits/mqueue2.h: Likewise.
675 * include/bits/stdio.h: Likewise.
676 * include/bits/stdio2.h: Likewise.
677 * include/fstab.h: Likewise.
678 * include/fts.h: Likewise.
679 * include/lastlog.h: Likewise.
680 * include/netinet/icmp6.h: Likewise.
681 * include/netinet/igmp.h: Likewise.
682 * include/netinet/ip6.h: Likewise.
683 * include/re_comp.h: Likewise.
684 * include/regexp.h: Likewise.
685 * include/rpcsvc/bootparam.h: Likewise.
686 * include/rpcsvc/yp_prot.h: Likewise.
687 * include/sys/random.h: Likewise.
688 * include/sys/stropts.h: Likewise.
689 * include/sys/ttychars.h: Likewise.
690 * include/sys/vfs.h: Likewise.
691 * include/wait.h: Likewise.
692
693 2019-02-15 Florian Weimer <fweimer@redhat.com>
694
695 * nptl_db/proc_service.h: Move to ...
696 * sysdeps/nptl/proc_service.h: ... here.
697 * nptl_db/thread_db.h: Move to ...
698 * sysdeps/nptl/thread_db.h: ... here.
699 * nptl/descr.h: Include <thread_db.h>.
700
701 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
702
703 * io/Makefile (tests): Add tst-lockf.
704 * io/lockf.c (lockf): Use __fcntl and only define for
705 !__OFF_T_MATCHES_OFF64_T.
706 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
707 __OFF_T_MATCHES_OFF64_T case.
708 * io/tst-lockf.c: New file.
709 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
710 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
711 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
712 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
713 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
714 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
715 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
716 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
717 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
718
719 2019-02-15 Florian Weimer <fweimer@redhat.com>
720
721 [BZ #24211]
722 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
723 pd->result after the thread descriptor has been freed.
724
725 2019-02-15 Joseph Myers <joseph@codesourcery.com>
726
727 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
728 from function return type.
729
730 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
731
732 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
733
734 * scripts/test_printers_common.py: Set TERM to a known harmless
735 value.
736
737 2019-02-14 Joseph Myers <joseph@codesourcery.com>
738
739 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
740 (xdr_u_int): Likewise.
741 (xdr_enum): Likewise.
742 (xdr_bytes): Reword fall-through comment.
743 (xdr_string): Likewise.
744
745 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
746
747 [BZ #2421]
748 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
749 (tests): Add tst-join8 tst-join9.
750 * nptl/lll_timedwait_tid.c: Remove file.
751 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
752 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
753 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
754 * nptl/pthread_join_common.c (timedwait_tid): New function.
755 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
756 is set.
757 * nptl/tst-join5.c (thread_join): New function.
758 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
759 check.
760 * nptl/tst-join8.c: New file.
761 * nptl/tst-join9.c: Likewise.
762 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
763 lll_futex_timed_wait_cancel): Add generic macros.
764 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
765 Remove definitions.
766 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
767 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
768 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
769 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
770 Remove function.
771 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
772 Likewise.
773 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
774 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
775 (lll_futex_timed_wait_cancel): New macro.
776
777 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
778
779 * benchtests/Makefile: Add malloc-simple benchmark.
780 * benchtests/bench-malloc-simple.c: New benchmark.
781
782 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
783
784 * benchtests/bench-memmove.c (do_one_test): Remove unused
785 ORIG_SRC.
786 (do_test): Adjust.
787 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
788 ORIG_SRC.
789 (do_test): Adjust.
790
791 2019-01-13 Jim Wilson <jimw@sifive.com>
792
793 [BZ #24040]
794 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
795 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
796 (func): New.
797 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
798 call func directly.
799 * nptl/Makefile (tests): Add tst-unwind-thread.
800 (CFLAGS-tst-unwind-thread.c): Define.
801 * nptl/tst-unwind-thread.c: New file.
802 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
803 as undefined.
804
805 2019-02-13 Joseph Myers <joseph@codesourcery.com>
806
807 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
808 comment wording.
809 * nis/nis_call.c (__do_niscall3): Likewise.
810
811 * catgets/gencat.c (normalize_line): Use braces around empty
812 'else' body.
813 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
814 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
815 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
816 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
817 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
818 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
819 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
820 definition.
821
822 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
823 execlp returns.
824
825 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
826
827 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
828 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
829 * benchtests/bench-strchr.c (stupid_strchr): Remove.
830 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
831 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
832 * benchtests/bench-strlen.c (builtin_strlen): Remove.
833 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
834 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
835 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
836 * benchtests/bench-strspn.c (stupid_strspn): Remove.
837 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
838 * benchtests/bench-bcopy.c: Delete file.
839 * benchtests/bench-bzero.c: Likewise.
840 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
841 (simple_memccpy): Remove.
842 (generic_memccpy): Add function.
843 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
844 * benchtests/bench-memmove.c (simple_bcopy): Remove.
845 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
846 (generic_mempcpy): Add new function.
847 * benchtests/bench-memset.c (simple_bzero): Remove.
848 (builtin_bzero): Remove.
849 (builtin_memset): Remove.
850 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
851 (generic_rawmemchr): Add new function.
852
853 2019-02-12 Florian Weimer <fweimer@redhat.com>
854
855 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
856
857 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
858
859 [BZ #24122]
860 * elf/Makefile (tests): Add tst-audit13.
861 (modules-names): Add tst-audit13mod1.
862 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
863 rule.
864 * elf/tst-audit13.c: New file.
865 * elf/tst-audit13mod1.c: Likewise.
866
867 2019-02-12 Florian Weimer <fweimer@redhat.com>
868
869 [BZ #24122]
870 * elf/rtld.c (unload_audit_module): New function.
871 (report_audit_module_load_error): Likewise.
872 (load_audit_module): Likewise. Extracted from dl_main. Call
873 _dl_close if the laversion symbol cannot be found. Use early
874 returns for error handling. Add malloc error check. Check for a
875 zero return value from la_version. Remove spurious comment about
876 static TLS initialization. Remove useless casts.
877 (notify_audit_modules_of_loaded_object): New function. Extracted
878 from dl_main.
879 (load_audit_module): Likewise.
880 (dl_main): Call load_audit_modules.
881
882 2019-02-12 Joseph Myers <joseph@codesourcery.com>
883
884 * elf/dl-exception.c (_dl_exception_create_format): Add
885 fall-through comments.
886 * elf/ldconfig.c (parse_conf_include): Likewise.
887 * elf/rtld.c (print_statistics): Likewise.
888 * locale/programs/charmap.c (parse_charmap): Likewise.
889 * misc/mntent_r.c (__getmntent_r): Likewise.
890 * posix/wordexp.c (parse_arith): Likewise.
891 (parse_backtick): Likewise.
892 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
893 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
894 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
895
896 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
897
898 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
899 Use float instead of double.
900
901 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
902
903 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
904
905 2019-02-08 Joseph Myers <joseph@codesourcery.com>
906
907 * sysdeps/powerpc/bits/mathinline.h: Remove.
908
909 2019-02-08 Florian Weimer <fweimer@redhat.com>
910
911 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
912 * math/bits/math-finite.h: Move to ...
913 * bits/math-finite.h: ... here.
914
915 2019-02-08 Florian Weimer <fweimer@redhat.com>
916
917 * sysdeps/generic/bits/unistd_ext.h: Move to ...
918 * bits/unistd_ext.h: here.
919
920 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
921
922 [BZ #21915]
923 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
924 * nss/tst-nss-files-hosts-long.c: New file.
925 * nss/tst-nss-files-hosts-long.root: New directory.
926 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
927 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
928
929 2019-02-08 Florian Weimer <fweimer@redhat.com>
930
931 * include/bits/unistd_ext.h: Remove file.
932 * posix/bits/unistd_ext.h: Move to ...
933 * sysdeps/generic/bits/unistd_ext.h: ... here.
934
935 2019-02-08 Florian Weimer <fweimer@redhat.com>
936
937 * include/bits/unistd_ext.h: New file.
938
939 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
940
941 * time/tst-strftime2.c: Use array_length macros instead of magic
942 numbers.
943
944 2019-02-08 Florian Weimer <fweimer@redhat.com>
945
946 [BZ #24161]
947 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
948 argument.
949 * nptl/register-atfork.c (__run_fork_handlers): Only perform
950 locking if the new do_locking argument is true.
951 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
952 __run_fork_handlers.
953
954 2019-02-08 Florian Weimer <fweimer@redhat.com>
955
956 [BZ #6399]
957 Linux: Add gettid system call wrapper.
958 * posix/Makefile (headers): Add bits/unistd_ext.h.
959 * posix/bits/unistd_ext.h: New file.
960 * posix/unistd.h: Include it.
961 * manual/process.texi (Process Identification): Document gettid.
962 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
963 tst-gettid, tst-gettid-kill.
964 (tst-gettid): Link with $(shared-thread-library).
965 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
966 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
967 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
968 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
969 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
970 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
971 Add gettid.
972 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
973 Likewise.
974 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
975 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
976 Likewise.
977 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
978 Likewise.
979 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
980 Likewise.
981 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
982 Likewise.
983 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
984 Likewise.
985 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
986 Likewise.
987 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
988 Likewise.
989 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
990 (GLIBC_2.30): Likewise.
991 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
992 (GLIBC_2.30): Likewise.
993 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
994 (GLIBC_2.30): Likewise.
995 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
996 (GLIBC_2.30): Likewise.
997 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
998 Likewise.
999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
1000 (GLIBC_2.30): Likewise.
1001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
1002 (GLIBC_2.30): Likewise.
1003 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
1004 (GLIBC_2.30): Likewise.
1005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
1006 (GLIBC_2.30): Likewise.
1007 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
1008 Likewise.
1009 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
1010 Likewise.
1011 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
1012 Likewise.
1013 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
1014 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
1015 Likewise.
1016 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
1017 Likewise.
1018 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
1019 Likewise.
1020 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
1021 Likewise.
1022 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
1023
1024 2019-02-07 Florian Weimer <fweimer@redhat.com>
1025
1026 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
1027 compatibility symbols.
1028
1029 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
1030
1031 [BZ #24180]
1032 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
1033 Add compiler barriers and comments.
1034
1035 2019-02-07 Florian Weimer <fweimer@redhat.com>
1036
1037 * include/array_length.h (array_length): Do not use a statement
1038 expression and _Static_assert, so that array_length can be used at
1039 file scope and as a constant expression.
1040
1041 2019-02-07 Florian Weimer <fweimer@redhat.com>
1042
1043 * support/xdlfcn.h (xdlmopen): Declare.
1044 * support/xdlmopen.c: New file.
1045 * support/Makefile (libsupport-routines): Add xdlmopen.
1046
1047 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1048
1049 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1050 before return type, without separate inline.
1051 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1052 * elf/dl-tunables.h (tunable_is_name): Likewise.
1053 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1054 (do_set_top_pad): Likewise.
1055 (do_set_mmap_threshold): Likewise.
1056 (do_set_mmaps_max): Likewise.
1057 (do_set_mallopt_check): Likewise.
1058 (do_set_perturb_byte): Likewise.
1059 (do_set_arena_test): Likewise.
1060 (do_set_arena_max): Likewise.
1061 (do_set_tcache_max): Likewise.
1062 (do_set_tcache_count): Likewise.
1063 (do_set_tcache_unsorted_limit): Likewise.
1064 * nis/nis_subr.c (count_dots): Likewise.
1065 * nptl/allocatestack.c (advise_stack_range): Likewise.
1066 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1067 (do_sin): Likewise.
1068 (reduce_sincos): Likewise.
1069 (do_sincos): Likewise.
1070 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1071 (do_set_elision_enable): Likewise.
1072 (TUNABLE_CALLBACK_FNDECL): Likewise.
1073
1074 2019-02-06 Florian Weimer <fweimer@redhat.com>
1075
1076 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1077 (xdlsym): Use dlerror to detect a NULL symbol.
1078
1079 2019-02-06 Florian Weimer <fweimer@redhat.com>
1080
1081 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1082 <stap-probe.h>.
1083 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1084
1085 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1086
1087 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1088
1089 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1090
1091 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1092 __wmemcmp and weak alias to wmemcmp.
1093
1094 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1095
1096 [BZ #23403]
1097 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1098 TLS_TCB_AT_TP tls variant.
1099 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1100 Add alignment checks.
1101 * support/Makefile (libsupport-routines): Add xposix_memalign and
1102 xpthread_setstack.
1103 * support/support.h: Add xposix_memalign.
1104 * support/xthread.h: Add xpthread_attr_setstack.
1105 * support/xposix_memalign.c: New File.
1106 * support/xpthread_attr_setstack.c: Likewise.
1107
1108 2019-02-05 Florian Weimer <fweimer@redhat.com>
1109
1110 [BZ #24164]
1111 arm: Use "nr" constraint for Systemtap probes, to avoid the
1112 compiler using memory operands for constants, due to the "o"
1113 alternative in the default "nor" constraint.
1114 * include/stap-probe.h [USE_STAP_PROBE]: Include
1115 <stap-probe-machine.h>
1116 * sysdeps/generic/stap-probe-machine.h: New file.
1117 * sysdeps/arm/stap-probe-machine.h: Likewise.
1118
1119 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1120
1121 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1122 with 0, not tcache->entries[tc_idx].
1123
1124 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1125 once.
1126
1127 2019-02-04 Andreas Schwab <schwab@suse.de>
1128
1129 [BZ #16976]
1130 [BZ #17396]
1131 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1132 looking up collating elements match against (wide) character
1133 sequence instead of name. Correct alignment adjustment.
1134 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1135 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1136 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1137 (LOCALES): Add cs_CZ.ISO-8859-2.
1138 * posix/tst-fnmatch4.c: New file.
1139 * posix/tst-fnmatch5.c: New file.
1140 * include/wchar.h (__wmemcmp): Declare.
1141 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1142 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1143 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1144 * sysdeps/s390/wmemcmp.c: Likewise.
1145
1146 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1147
1148 [BZ #24155]
1149 CVE-2019-7309
1150 * NEWS: Updated for CVE-2019-7309.
1151 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1152 upper 32 bits of RDX register for x32. Use unsigned Jcc
1153 instructions, instead of signed.
1154 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1155 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1156
1157 2019-02-04 Florian Weimer <fweimer@redhat.com>
1158
1159 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1160 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1161 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1162 Likewise.
1163 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1164 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1165 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1166 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1167 Likewise.
1168 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1169 Likewise.
1170 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1171 Likewise.
1172 (posix_spawn_file_actions_addopen): Likewise.
1173 (posix_spawn_file_actions_addclose): Likewise.
1174 (posix_spawn_file_actions_adddup2): Likewise.
1175 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1176 qualifiers.
1177 (posix_spawn_file_actions_addfchdir_np): Likewise.
1178
1179 2019-02-04 David Newall <glibc@davidnewall.com>
1180
1181 elf: Implement --preload option for the dynamic linker.
1182 * elf/rtld.c (preloadarg): New variable.
1183 (handle_preload_list): Pass through “where” argument to
1184 do_preload.
1185 (dl_main): Handle "--preload" and add second call to
1186 handle_preload_list.
1187 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1188 (tst-rtld-preload-OBJS): Set variable.
1189 (tst-rtld-preload.out): New target.
1190 * elf/tst-rtld-preload.sh: New file.
1191
1192 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1193
1194 * Makefile (testrun.sh): Exit in case of incorrect argument.
1195
1196 2019-02-04 Florian Weimer <fweimer@redhat.com>
1197
1198 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1199 alignment gaps.
1200
1201 2019-02-03 Florian Weimer <fweimer@redhat.com>
1202
1203 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1204 implicit overflow checks.
1205
1206 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1207
1208 * stdlib/isomac.c: Include <unistd.h>.
1209
1210 2019-02-03 Florian Weimer <fweimer@redhat.com>
1211
1212 * include/time.h (__tzfile_default): Use int, not long int, for
1213 the GMT offsets.
1214 * time/tzfile.c (struct ttinfo): Change type of the offset member
1215 to int.
1216 (__tzfile_read): Remove useless cast.
1217 (__tzfile_default): Adjust prototype.
1218 * time/tzset.c (tz_rule): Change type of the offset member to int.
1219 (parse_offset): Change the type of the sign variable to int.
1220
1221 2019-02-03 Florian Weimer <fweimer@redhat.com>
1222
1223 [BZ #24153]
1224 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1225 * libio/getchar.c (getchar): Likewise.
1226 * libio/getchar_u.c (getchar_unlocked): Likewise.
1227 * libio/getwchar.c (getwchar): Likewise.
1228 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1229 * libio/iogets.c (_IO_gets): Likewise.
1230 * libio/vscanf.c (_IO_vscanf): Likewise.
1231 * libio/vwscanf.c (__vwscanf): Likewise.
1232 * libio/tst-bz24153.c: New file.
1233 * libio/Makefile (tests): Add it.
1234
1235 2019-02-02 Florian Weimer <fweimer@redhat.com>
1236
1237 [BZ #14829]
1238 * manual/resource.texi (Basic Scheduling Functions): Add
1239 portability note. Change process to task throughout the section.
1240 Remove incorrect comment about sched_yield as it affects
1241 tasks/threads, not entire processes.
1242 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1243 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1244
1245 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1246
1247 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1248 * configure: Regenerated.
1249 * manual/install.texi (Tools for Compilation): Update minimum GCC
1250 version.
1251 * INSTALL: Regenerated.
1252
1253 2019-02-01 Florian Weimer <fweimer@redhat.com>
1254
1255 * support/support_test_compare_string.c
1256 (support_test_compare_string): Use "string" in error message.
1257 * support/tst-test_compare_string.c (do_test): Adjust.
1258
1259 2019-02-01 Florian Weimer <fweimer@redhat.com>
1260
1261 * support/support_format_address_family.c
1262 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1263
1264 2019-02-01 Florian Weimer <fweimer@redhat.com>
1265
1266 * manual/socket.texi (Internet Address Formats): Clarify the byte
1267 order of struct sockaddr_in, struct sockaddr_in6. Document
1268 sin6_flowinfo and sin6_scope_id.
1269
1270 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1271
1272 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1273 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1274 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1275 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1276 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1277 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1278
1279 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1280
1281 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1282 [!MEMCHR](MEMCHR): Set to __memchr.
1283 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1284 Add memchr_generic and memchr_nosimd.
1285 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1286 (__libc_ifunc_impl_list): Add memchr ifuncs.
1287 * sysdeps/aarch64/multiarch/memchr.c: New file.
1288 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1289 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1290
1291 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1292
1293 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1294 Add memset_emag.
1295 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1296 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1297 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1298 Add IS_EMAG check for ifunc dispatch.
1299 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1300 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1301
1302 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1303
1304 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1305 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1306 Add emag.
1307 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1308 New macro.
1309
1310 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1311
1312 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1313
1314 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1315
1316 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1317 syscall-template file.
1318
1319 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1320 Torvald Riegel <triegel@redhat.com>
1321 Rik Prohaska <prohaska7@gmail.com>
1322
1323 [BZ# 23844]
1324 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1325 tst-rwlock-trywrlock-stall.
1326 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1327 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1328 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1329 Set __wrphase_fute to 1 only if we started the write phase.
1330 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1331 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1332 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1333 * support/xpthread_rwlock_destroy.c: New file.
1334 * support/xthread.h: Declare xpthread_rwlock_destroy.
1335
1336 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1337
1338 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1339 version to 4.0.2.
1340
1341 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1342
1343 [BZ #24051]
1344 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1345 * libio/fileops.c (_IO_new_file_underflow): Likewise
1346 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1347 * libio/putchar.c (putchar): Likewise.
1348 * libio/putchar_u.c (putchar_unlocked): Likewise.
1349 * libio/putwchar.c (putchar): Likewise.
1350 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1351 * libio/tst-bz24051.c: New test.
1352 * libio/Makefile (tests): Add tst-bz24051
1353
1354 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1355
1356 regex: fix read overrun [BZ #24114]
1357 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1358 https://debbugs.gnu.org/34140
1359 * posix/regexec.c (proceed_next_node):
1360 Do not read past end of input buffer.
1361
1362 2019-01-31 Florian Weimer <fweimer@redhat.com>
1363
1364 [BZ #24059]
1365 * nss/nss_files/files-alias.c (get_next_alias): Handle
1366 continuation line without newline at the end.
1367 * nss/tst-nss-files-alias-truncated.c: New file.
1368 * nss/Makefile [$(build-shared)] (tests): Add
1369 tst-nss-files-alias-truncated.
1370 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1371 * support/namespace.h (struct support_chroot_configuration): Add
1372 aliases member.
1373 (struct support_chroot): Add path_aliases member.
1374 * support/support_chroot.c (support_chroot_create): Handle
1375 aliases.
1376 (support_chroot_free): Free path_aliases.
1377
1378 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1379
1380 * version.h (RELEASE): Set to "development".
1381 (VERSION): Set to "2.29.9000".
1382 * NEWS: Add section for 2.30.
1383
1384 * version.h (RELEASE): Set to "stable".
1385 (VERSION): Set to "2.29".
1386 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1387
1388 * NEWS: Add the list of bugs fixed in 2.29.
1389 * manual/contrib.texi: Update contributors list with some more
1390 names.
1391 * manual/install.texi: Update latest versions of packages
1392 tested.
1393 * INSTALL: Regenerated.
1394
1395 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1396
1397 * po/be.po: Update translations.
1398 * po/bg.po: Likewise.
1399 * po/ca.po: Likewise.
1400 * po/cs.po: Likewise.
1401 * po/da.po: Likewise.
1402 * po/de.po: Likewise.
1403 * po/el.po: Likewise.
1404 * po/eo.po: Likewise.
1405 * po/es.po: Likewise.
1406 * po/fi.po: Likewise.
1407 * po/fr.po: Likewise.
1408 * po/gl.po: Likewise.
1409 * po/hr.po: Likewise.
1410 * po/hu.po: Likewise.
1411 * po/ia.po: Likewise.
1412 * po/id.po: Likewise.
1413 * po/it.po: Likewise.
1414 * po/ja.po: Likewise.
1415 * po/ko.po: Likewise.
1416 * po/lt.po: Likewise.
1417 * po/nb.po: Likewise.
1418 * po/nl.po: Likewise.
1419 * po/pl.po: Likewise.
1420 * po/pt_BR.po: Likewise.
1421 * po/ru.po: Likewise.
1422 * po/rw.po: Likewise.
1423 * po/sk.po: Likewise.
1424 * po/sl.po: Likewise.
1425 * po/sv.po: Likewise.
1426 * po/tr.po: Likewise.
1427 * po/uk.po: Likewise.
1428 * po/vi.po: Likewise.
1429 * po/zh_CN.po: Likewise.
1430 * po/zh_TW.po: Likewise.
1431
1432 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1433
1434 [BZ #24130]
1435 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1436 of $f3 register on $y_is_neg path.
1437
1438 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1439
1440 [BZ #24110]
1441 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1442 sigaltstack.ss_flags.
1443
1444 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1445
1446 [BZ #23758]
1447 * manual/time.texi (strftime): Document "%Ey".
1448 * time/strftime_l.c (__strftime_internal): Set the default width
1449 padding with zero of "%Ey" to 2.
1450
1451 [BZ #24096]
1452 * manual/time.texi (strftime): Document "%EC" and "%EY".
1453 * time/Makefile (tests): Add tst-strftime2.
1454 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1455 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1456 override padding for "%Ey".
1457 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1458 "%Ey" in the subformat as if decorated with that flag.
1459 * time/tst-strftime2.c: New file.
1460
1461 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1462
1463 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1464 are not defined.
1465
1466 [BZ #24122]
1467 * elf/Makefile (tests): Add tst-audit13.
1468 (modules-names): Add tst-audit13mod1.
1469 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1470 rule.
1471 * elf/rtld.c (dl_main): Handle invalid audit module version.
1472 * elf/tst-audit13.c: New file.
1473 * elf/tst-audit13mod1.c: Likewise.
1474
1475 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1476
1477 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1478 returned by __hurd_at_flags.
1479 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1480 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1481 directly instead of __hurd_file_name_lookup.
1482
1483 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1484
1485 * scripts/build-many-glibcs.py (Context.checkout): Default
1486 binutils version to 2.32 branch.
1487
1488 2019-01-21 Florian Weimer <fweimer@redhat.com>
1489
1490 [BZ #20018]
1491 CVE-2016-10739
1492 resolv: Reject trailing characters in host names
1493 * include/arpa/inet.h (__inet_aton_exact): Declare.
1494 (inet_aton): Remove hidden prototype. No longer used internally.
1495 * nscd/gai.c (__inet_aton): Do not define.
1496 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1497 * nss/digits_dots.c (__inet_aton): Likewise.
1498 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1499 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1500 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1501 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1502 (tst-resolv-trailing): Likewise.
1503 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1504 libc.
1505 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1506 Make static. Add endp parameter.
1507 (__inet_aton_exact): New function.
1508 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1509 (__inet_addr): Call inet_aton_end.
1510 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1511 not just IPv6. Call __inet_aton_exact.
1512 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1513 (tests): Make const. Add additional test cases with trailing
1514 characters.
1515 (do_test): Use array_length.
1516 * resolv/tst-inet_aton_exact.c: New file.
1517 * resolv/tst-resolv-trailing.c: Likewise.
1518 * resolv/tst-resolv-nondecimal.c: Likewise.
1519 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1520
1521 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1522
1523 [BZ# 24097]
1524 CVE-2019-6488
1525 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1526 Clear the upper 32 bits of RSI register.
1527 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1528 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1529 and tst-size_t-wcsnlen.
1530 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1531 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1532
1533 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1534
1535 [BZ# 24097]
1536 CVE-2019-6488
1537 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1538 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1539 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1540 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1541 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1542
1543 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1544
1545 [BZ# 24097]
1546 CVE-2019-6488
1547 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1548 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1549 * sysdeps/x86_64/strcmp.S: Likewise.
1550 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1551 tst-size_t-strncmp and tst-size_t-wcsncmp.
1552 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1553 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1554 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1555
1556 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1557
1558 [BZ# 24097]
1559 CVE-2019-6488
1560 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1561 RDX_LP for length. Clear the upper 32 bits of RDX register.
1562 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1563 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1564 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1565 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1566
1567 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 [BZ# 24097]
1570 CVE-2019-6488
1571 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1572 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1573 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1574 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1575
1576 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1577
1578 [BZ# 24097]
1579 CVE-2019-6488
1580 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1581 length. Clear the upper 32 bits of RDX register.
1582 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1583 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1584 Likewise.
1585 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1586 Likewise.
1587 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1588 tst-size_t-wmemchr.
1589 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
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/memcmp-avx2-movbe.S: Use RDX_LP for
1596 length. Clear the upper 32 bits of RDX register.
1597 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1598 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1599 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1600 tst-size_t-wmemcmp.
1601 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1602 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1603
1604 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1605
1606 [BZ# 24097]
1607 CVE-2019-6488
1608 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1609 upper 32 bits of RDX register.
1610 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1611 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1612 tst-size_t-wmemchr.
1613 * sysdeps/x86_64/x32/test-size_t.h: New file.
1614 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1615 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1616
1617 2019-01-18 Florian Weimer <fweimer@redhat.com>
1618
1619 [BZ #24112]
1620 resolv: Do not send queries for non-host-names in nss_dns.
1621 * resolv/nss_dns/dns-host.c (check_name): New function.
1622 (_nss_dns_gethostbyname2_r): Use it.
1623 (_nss_dns_gethostbyname_r): Likewise.
1624 (_nss_dns_gethostbyname4_r): Likewise.
1625
1626 2019-01-21 Florian Weimer <fweimer@redhat.com>
1627
1628 * resolv/inet_addr.c: Reformat to GNU style.
1629 (__inet_addr, __inet_aton): Update comment.
1630
1631 2019-01-18 Florian Weimer <fweimer@redhat.com>
1632
1633 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1634 ("malloc: Use current (C11-style) atomics for fastbin access").
1635 This commit introduces a substantial performance regression on
1636 POWER and Aarch64.
1637 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1638 (REMOVE_FB): Define.
1639 (_int_malloc): Use it and reindent.
1640 (_int_free): Use CAS loop with
1641 catomic_compare_and_exchange_val_rel.
1642 (malloc_consolidate): Use atomic_exchange_acq.
1643
1644
1645 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1646
1647 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1648 -Wl,-z,now.
1649 (LDFLAGS-tst-minsigstksz-2): Likewise.
1650 (LDFLAGS-tst-minsigstksz-3): Likewise.
1651 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1652 (LDFLAGS-tst-minsigstksz-4): Likewise.
1653
1654 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1655
1656 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1657 than "alternate".
1658
1659 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1660
1661 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1662
1663 2019-01-16 Zack Weinberg <zackw@panix.com>
1664
1665 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1666 (xget_sigstack_location): New test support functions.
1667 * support/xsigstack.c: New file, implementing them.
1668 * support/tst-xsigstack.c: New test for them.
1669 * support/Makefile: Update.
1670
1671 * signal/tst-minsigstksz-1.c
1672 * signal/tst-minsigstksz-2.c
1673 * signal/tst-minsigstksz-3.c
1674 * signal/tst-minsigstksz-3a.c
1675 * signal/tst-minsigstksz-4.c: New tests.
1676 * signal/Makefile: Run them.
1677
1678 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1679
1680 * po/libc.pot: Regenerate.
1681
1682 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1683
1684 * math/libm-test-fma.inc (fma_test_data): Set
1685 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1686
1687 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1688
1689 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1690 (do_test): Changed __vector __int128_t to __vector unsigned int.
1691
1692 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1693
1694 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1695 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1696 stpcpy-avx2 and stpncpy-avx2.
1697 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1698 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1699 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1700 and __stpncpy_avx2.
1701 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1702 ifunc-strcpy.h}: rename header for a more generic name.
1703 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1704 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1705 AVX unaligned load is fast and vzeroupper is preferred.
1706 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1707 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1708 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1709 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1710 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1711 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1712
1713 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1714
1715 * argp/argp-help.c: Fix typo in comment.
1716 * misc/sys/cdefs.h: Likewise.
1717 * posix/regexec.c (sift_states_iter_mb): Likewise.
1718 * socket/sockatmark.c: Likewise.
1719 * socket/sys/socket.h: Likewise.
1720 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1721 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1722 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1723 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1724 * sysdeps/unix/sockatmark.c: Likewise.
1725 * time/strptime_l.c: Likewise.
1726
1727 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1728
1729 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1730 missing space after the cast of "_NL_CURRENT".
1731
1732 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1733
1734 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1735 ifdef to fix read of VSCR.
1736 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1737 tst-ucontext-ppc64-vscr.c to test list.
1738 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1739
1740 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1741
1742 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1743 fall-through.
1744
1745 2019-01-09 Jim Wilson <jimw@sifive.com>
1746
1747 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1748
1749 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1750
1751 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1752 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1753 __memcpy_falkor for ares.
1754 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1755 Add new define.
1756 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1757 Add ares cpu.
1758
1759 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 [BZ #24066]
1762 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1763 4_FP_W_TYPEs are used for IEEE quad precision.
1764 * soft-fp/extendhftf2.c: Likewise.
1765 * soft-fp/extendsftf2.c: Likewise.
1766 * soft-fp/extendxftf2.c: Likewise.
1767 * soft-fp/trunctfdf2.c: Likewise.
1768 * soft-fp/trunctfhf2.c: Likewise.
1769 * soft-fp/trunctfsf2.c: Likewise.
1770 * soft-fp/trunctfxf2.c: Likewise.
1771 * sysdeps/alpha/ots_cvttx.c: Likewise.
1772 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1773 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1774 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1775 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1776 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1777 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1778 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1779 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1780 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1781 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1782 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1783 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1784 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1785 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1786 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1787 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1788 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1789
1790 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1791
1792 [BZ #24024]
1793 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1794 code with -fmath-errno.
1795 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1796 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1797 * string/test-strerror-errno.c: New file.
1798
1799 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1800
1801 [BZ #24046]
1802 * localedata/locales/en_US (date_fmt): Add, set to
1803 "%a %d %b %Y %r %Z".
1804
1805 2019-01-07 Florian Weimer <fweimer@redhat.com>
1806
1807 [BZ #24063]
1808 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1809 instead of @var{errno}.
1810 (Parsing of Integers): Likewise.
1811 (Parsing of Floats): Likewise.
1812 * manual/filesys.texi (Working with Directory Trees): Likewise.
1813 (Temporary Files): Likewise.
1814 * manual/job.texi (Terminal Access Functions): Likewise.
1815 * manual/llio.texi (Synchronizing I/O): Likewise.
1816 * manual/math.texi (SVID Random): Likewise.
1817 * manual/message.texi (The catgets Functions): Likewise.
1818 (Translation with gettext): Likewise.
1819 (Locating gettext catalog): Likewise.
1820 (Charset conversion in gettext): Likewise.
1821 * manual/nss.texi (NSS Module Function Internals): Likewise.
1822 * manual/search.texi (Hash Search Function): Likewise.
1823 * manual/setjmp.texi (System V contexts): Likewise.
1824 * manual/time.texi (Sleeping): Likewise.
1825 * manual/users.texi (Lookup User): Likewise.
1826 (Lookup Group): Likewise.
1827
1828 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1829
1830 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1831 fix typo.
1832
1833 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1834
1835 [BZ #19444]
1836 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1837 __builtin_unreachable for default case in switch.
1838 (__ieee754_yn): Likewise.
1839 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1840 (__ieee754_ynl): Likewise.
1841 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1842 (__ieee754_ynl): Likewise.
1843 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1844 (__ieee754_ynl): Likewise.
1845
1846 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1847
1848 * manual/maint.texi: Use @{ and @}.
1849
1850 2019-01-04 Florian Weimer <fweimer@redhat.com>
1851
1852 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1853 function.
1854 (do_in_chroot_1): Call it.
1855 (run_chroot_tests):
1856 Improve error reporting in case it is not possible to create a
1857 collision for the PTY name required by the test.
1858
1859 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1860
1861 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1862 lll_wait_tid with timeout.
1863 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1864 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1865 futex_reltimed_wait_cancelable for cancelabla mode.
1866 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1867 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1868 macros.
1869 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1870 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1871 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1872 SYSCALL_CANCEL_NCS): New macro.
1873 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1874 (lll_timedwait_tid): Remove macro.
1875 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1876 Likewise.
1877 (lll_timedwait_tid): Likewise.
1878 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1879 Likewise.
1880 (lll_timedwait_tid): Likewise.
1881 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1882 Likewise.
1883 (lll_timedwait_tid): Likewise.
1884 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1885 Use INTERNAL_SYSCALL_CANCEL.
1886 * sysdeps/unix/sysv/linux/futex-internal.h
1887 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1888 instead of __pthread_{enable,disable}_asynccancel.
1889 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1890 (lll_futex_wait_cancel): New macro.
1891
1892 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1893 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1894
1895 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1896 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1897
1898 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1899 in backtrace analysis.
1900 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1901 side-effects.
1902 (tf_send): Likewise.
1903
1904 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1905 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1906 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1907 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1908 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1909 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1910 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1911 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1912 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1913 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1914 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1915 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1916 Likewise.
1917 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1918 tst-cancel-wrappers.sh.
1919 (generated): Remove tst-cancel-wrappers.out.
1920 (tst-cancel-wrappers.out): Remove rule.
1921 * nptl/tst-cancel-wrappers.sh: Remove file.
1922
1923 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1924
1925 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1926 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1927 Update.
1928
1929 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1930
1931 [BZ #23640]
1932 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1933 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1934 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1935 close-on-exec reset for adddup2 file action.
1936 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1937
1938 2019-01-03 Zack Weinberg <zackw@panix.com>
1939
1940 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1941 parameter. Only use deprecated scanf when __USE_GNU is defined
1942 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1943 than 201103L, whichever is relevant for the language being compiled.
1944
1945 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1946 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1947 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1948 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1949 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1950
1951 * libio/iovsscanf.c
1952 * libio/fwscanf.c
1953 * libio/iovswscanf.c
1954 * libio/swscanf.c
1955 * libio/vscanf.c
1956 * libio/vwscanf.c
1957 * libio/wscanf.c
1958 * stdio-common/fscanf.c
1959 * stdio-common/scanf.c
1960 * stdio-common/vfscanf.c
1961 * stdio-common/vfwscanf.c
1962 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1963 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1964 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1965 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1966 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1967 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1968 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1969 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1970 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1971 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1972 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1973 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1974 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1975 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1976 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1977
1978 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1979 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1980 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1981 not sscanf.
1982 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1983 with a preprocessor macro.
1984
1985 * stdio-common/bug21.c, stdio-common/scanf14.c:
1986 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1987 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1988 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1989 to xscanf, xfscanf, xsscanf.
1990
1991 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1992 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1993 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1994 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1995 xfscanf, xsscanf.
1996 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1997 override feature selection macros or provide definitions of u_char etc.
1998 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1999 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
2000 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
2001 with -std=gnu89.
2002
2003 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2004
2005 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2006 bits/termios-misc.h.
2007 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
2008 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2009 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2010 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2011 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
2012 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
2013
2014 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
2015 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2016 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
2017 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
2018 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
2019 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
2020 termios-misc.h.
2021 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
2022 (sysdep_headers): Add termios-misc.h.
2023
2024 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
2025 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2026 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2027
2028 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2029 termios-tcflow.h.
2030 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
2031 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
2032 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
2033 TCSAFLUSH): Move to termios-tcflow.h.
2034 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2035 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2036 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2037 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2038
2039 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2040 termios-c_lflag.h.
2041 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2042 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2043 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2044 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2045 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2046 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2047 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2048 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2049 Likewise.
2050 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2051 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2052 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2053 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2054
2055 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2056 termios-c_cflag.h.
2057 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2058 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2059 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2060 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2061 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2062 termios-c_cflag.h.
2063 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2064 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2065 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2066 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2067
2068 [BZ #23783]
2069 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2070 termios-baud.h.
2071 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2072 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2073 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2074 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2075 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2076 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2077 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2078 __MAX_BAUD): Move to termios-baud.h.
2079 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2080 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2081 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2082 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2083 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2084
2085 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2086 termios-c_oflag.h.
2087 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2088 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2089 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2090 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2091 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2092 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2093 termios-c_oflag.h.
2094 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2095 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2096 FFR1): Likewise.
2097 [USE_MISC] (XTABS): Likewise.
2098 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2099 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2100 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2101 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2102
2103 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2104 termios-c_iflag.h.
2105 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2106 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2107 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2108 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2109 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2110 IUTF8): Move to termios-c_iflag.h.
2111 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2112 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2113 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2114 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2115
2116 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2117 termios-cc.h.
2118 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2119 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2120 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2121 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2122 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2123 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2124 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2125 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2126 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2127 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2128 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2129 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2130
2131 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2132 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2133 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2134 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2135 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2136 termios-struct.h.
2137 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2138 termios-struct.h.
2139 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2140 Likewise.
2141 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2142 Likewise.
2143 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2144 Likewise.
2145 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2146 Likewise.
2147 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2148 _HAVE_C_OSPEED): Define.
2149 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2150 _HAVE_C_OSPEED): Likewise.
2151 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2152 _HAVE_C_OSPEED): Likewise.
2153 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2154 (cfsetospeed): Check for define value instead of existence.
2155 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2156 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2157 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2158 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2159 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2160
2161 [BZ #17783]
2162 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2163 Define.
2164 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2165 (TIOCSER_TEMT): Likewise.
2166 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2167 (TEOCSER_TEMT): Likewise.
2168
2169 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2170
2171 [BZ #24011]
2172 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2173
2174 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2175
2176 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2177
2178 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2179
2180 * sysdeps/htl/pt-barrierattr-setpshared.c
2181 (pthread_barrierattr_setpshared): Add stub warning.
2182 * sysdeps/htl/pt-condattr-setpshared.c
2183 (pthread_condattr_setpshared): Likewise.
2184 * sysdeps/htl/pt-mutexattr-setpshared.c
2185 (pthread_mutexattr_setpshared): Likewise.
2186 * sysdeps/htl/pt-rwlockattr-setpshared.c
2187 (pthread_rwlockattr_setpshared): Likewise.
2188 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2189 (pthread_mutexattr_setpshared): Likewise.
2190
2191 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2192
2193 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2194 constants to match with Linux 4.20.
2195
2196 * sysdeps/mips/mips32/libm-test-ulps: Update.
2197 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2198
2199 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2200
2201 [BZ #24034]
2202 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2203 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2204 than __typeof (...) for the a_ptr variable.
2205
2206 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2207
2208 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2209 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2210 * libio/Makefile (tests): Add tst-sprintf-ub and
2211 tst-sprintf-chk-ub.
2212 (CFLAGS-tst-sprintf-ub.c): New variable.
2213 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2214 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2215 destination buffer and check for overflows in fortified mode.
2216 * libio/libioP.h (PRINTF_CHK): New macro.
2217 * libio/tst-sprintf-chk-ub.c: New file.
2218 * libio/tst-sprintf-ub.c: Likewise.
2219
2220 2019-01-02 Florian Weimer <fweimer@redhat.com>
2221
2222 [BZ #24018]
2223 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2224 failure.
2225
2226 2019-01-02 Florian Weimer <fweimer@redhat.com>
2227
2228 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2229
2230 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2231
2232 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2233 macro.
2234
2235 * sysdeps/unix/sysv/linux/netpacket/packet.h
2236 (PACKET_IGNORE_OUTGOING): New macro.
2237
2238 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2239 macro.
2240
2241 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2242 version to 4.20.
2243 (riscv_flush_icache): New syscall.
2244
2245 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2246 trailing whitespace removed.
2247 * scripts/config.guess: Update to version 2019-01-01.
2248 * scripts/config.sub: Update to version 2019-01-01.
2249 * scripts/move-if-change: Update from gnulib.
2250
2251 * NEWS: Update copyright dates.
2252 * catgets/gencat.c (print_version): Likewise.
2253 * csu/version.c (banner): Likewise.
2254 * debug/catchsegv.sh: Likewise.
2255 * debug/pcprofiledump.c (print_version): Likewise.
2256 * debug/xtrace.sh (do_version): Likewise.
2257 * elf/ldconfig.c (print_version): Likewise.
2258 * elf/ldd.bash.in: Likewise.
2259 * elf/pldd.c (print_version): Likewise.
2260 * elf/sotruss.sh: Likewise.
2261 * elf/sprof.c (print_version): Likewise.
2262 * iconv/iconv_prog.c (print_version): Likewise.
2263 * iconv/iconvconfig.c (print_version): Likewise.
2264 * locale/programs/locale.c (print_version): Likewise.
2265 * locale/programs/localedef.c (print_version): Likewise.
2266 * login/programs/pt_chown.c (print_version): Likewise.
2267 * malloc/memusage.sh (do_version): Likewise.
2268 * malloc/memusagestat.c (print_version): Likewise.
2269 * malloc/mtrace.pl: Likewise.
2270 * manual/libc.texinfo: Likewise.
2271 * nptl/version.c (banner): Likewise.
2272 * nscd/nscd.c (print_version): Likewise.
2273 * nss/getent.c (print_version): Likewise.
2274 * nss/makedb.c (print_version): Likewise.
2275 * posix/getconf.c (main): Likewise.
2276 * scripts/test-installation.pl: Likewise.
2277 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2278
2279 * All files with FSF copyright notices: Update copyright dates
2280 using scripts/update-copyrights.
2281 * locale/programs/charmap-kw.h: Regenerated.
2282 * locale/programs/locfile-kw.h: Likewise.
2283
2284 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2285
2286 * timezone/zdump.c: Update from tzcode 2018i.
2287 * timezone/zic.c: Likewise.
2288
2289 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2290
2291 regex: improve Gnulib port to AIX
2292 From the glibc point of view, this removes duplicate macro
2293 definitions and is obviously safe.
2294 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2295 * posix/regex_internal.h:
2296 (__attribute__, __attribute_warn_unused_result__):
2297 Remove; already defined elsewhere.
2298
2299 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2300
2301 [BZ #24027]
2302 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2303 copying operation. (ncopies had the wrong type, resulting in an
2304 integer wraparound and too few elements being copied.)
2305
2306 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2307
2308 [BZ #24022]
2309 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2310 <asm/syscalls.h> exists with __has_include__ before including it.
2311
2312 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2313
2314 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2315 version to 4.20.
2316
2317 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2318
2319 * hurd/lookup-retry: Include <unistd.h>.
2320 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2321 Release it on return. Handle "pid" magical lookup retry.
2322
2323 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2324
2325 [BZ #10496]
2326 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2327 (t_fmt_ampm): Likewise.
2328 * localedata/locales/aa_ER (t_fmt): Likewise.
2329 (t_fmt_ampm): Likewise.
2330 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2331 (t_fmt_ampm): Likewise.
2332 * localedata/locales/aa_ET (t_fmt): Likewise.
2333 (t_fmt_ampm): Likewise.
2334 * localedata/locales/am_ET (t_fmt): Likewise.
2335 (t_fmt_ampm): Likewise.
2336 * localedata/locales/byn_ER (t_fmt): Likewise.
2337 (t_fmt_ampm): Likewise.
2338 * localedata/locales/om_ET (t_fmt): Likewise.
2339 (t_fmt_ampm): Likewise.
2340 * localedata/locales/sid_ET (t_fmt): Likewise.
2341 (t_fmt_ampm): Likewise.
2342 * localedata/locales/so_DJ (t_fmt): Likewise.
2343 (t_fmt_ampm): Likewise.
2344 * localedata/locales/so_ET (t_fmt): Likewise.
2345 (t_fmt_ampm): Likewise.
2346 * localedata/locales/so_SO (t_fmt): Likewise.
2347 (t_fmt_ampm): Likewise.
2348 * localedata/locales/ti_ER (t_fmt): Likewise.
2349 (t_fmt_ampm): Likewise.
2350 * localedata/locales/ti_ET (t_fmt): Likewise.
2351 (t_fmt_ampm): Likewise.
2352 * localedata/locales/tig_ER (t_fmt): Likewise.
2353 (t_fmt_ampm): Likewise.
2354 * localedata/locales/wal_ET (t_fmt): Likewise.
2355 (t_fmt_ampm): Likewise.
2356
2357 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2358 * localedata/locales/ar_IN (t_fmt): Likewise.
2359 * localedata/locales/bhb_IN (t_fmt): Likewise.
2360 * localedata/locales/bho_IN (t_fmt): Likewise.
2361 * localedata/locales/bi_VU (t_fmt): Likewise.
2362 * localedata/locales/bn_BD (t_fmt): Likewise.
2363 * localedata/locales/bn_IN (t_fmt): Likewise.
2364 * localedata/locales/brx_IN (t_fmt): Likewise.
2365 * localedata/locales/doi_IN (t_fmt): Likewise.
2366 * localedata/locales/en_HK (t_fmt): Likewise.
2367 (t_fmt_ampm): Likewise.
2368 * localedata/locales/en_IN (t_fmt): Likewise.
2369 * localedata/locales/en_PH (t_fmt): Likewise.
2370 * localedata/locales/gu_IN (t_fmt): Likewise.
2371 * localedata/locales/hi_IN (t_fmt): Likewise.
2372 * localedata/locales/hif_FJ (t_fmt): Likewise.
2373 * localedata/locales/hne_IN (t_fmt): Likewise.
2374 * localedata/locales/kn_IN (t_fmt): Likewise.
2375 * localedata/locales/kok_IN (t_fmt): Likewise.
2376 * localedata/locales/ks_IN (t_fmt): Likewise.
2377 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2378 * localedata/locales/mag_IN (t_fmt): Likewise.
2379 * localedata/locales/mai_IN (t_fmt): Likewise.
2380 * localedata/locales/mjw_IN (t_fmt): Likewise.
2381 * localedata/locales/ml_IN (t_fmt): Likewise.
2382 * localedata/locales/mni_IN (t_fmt): Likewise.
2383 * localedata/locales/mr_IN (t_fmt): Likewise.
2384 * localedata/locales/ms_MY (t_fmt): Likewise.
2385 * localedata/locales/pa_IN (t_fmt): Likewise.
2386 * localedata/locales/raj_IN (t_fmt): Likewise.
2387 * localedata/locales/sa_IN (t_fmt): Likewise.
2388 * localedata/locales/sat_IN (t_fmt): Likewise.
2389 * localedata/locales/sd_IN (t_fmt): Likewise.
2390 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2391 * localedata/locales/tcy_IN (t_fmt): Likewise.
2392 * localedata/locales/the_NP (t_fmt): Likewise.
2393 * localedata/locales/to_TO (t_fmt): Likewise.
2394 * localedata/locales/ur_IN (t_fmt): Likewise.
2395
2396 * localedata/locales/hif_FJ (d_t_fmt): Set to
2397 "%A %d %b %Y %I:%M:%S %p".
2398 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2399
2400 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2401 * localedata/locales/ar_BH (t_fmt): Likewise.
2402 * localedata/locales/ar_DZ (t_fmt): Likewise.
2403 * localedata/locales/ar_EG (t_fmt): Likewise.
2404 * localedata/locales/ar_IQ (t_fmt): Likewise.
2405 * localedata/locales/ar_JO (t_fmt): Likewise.
2406 * localedata/locales/ar_KW (t_fmt): Likewise.
2407 * localedata/locales/ar_LB (t_fmt): Likewise.
2408 * localedata/locales/ar_LY (t_fmt): Likewise.
2409 * localedata/locales/ar_OM (t_fmt): Likewise.
2410 * localedata/locales/ar_QA (t_fmt): Likewise.
2411 * localedata/locales/ar_SD (t_fmt): Likewise.
2412 * localedata/locales/ar_SS (t_fmt): Likewise.
2413 * localedata/locales/ar_SY (t_fmt): Likewise.
2414 * localedata/locales/ar_TN (t_fmt): Likewise.
2415 * localedata/locales/ar_YE (t_fmt): Likewise.
2416
2417 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2418 (t_fmt_ampm): Likewise.
2419 * localedata/locales/gez_ET (t_fmt): Likewise.
2420 (t_fmt_ampm): Likewise.
2421
2422 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2423 (t_fmt_ampm): Likewise.
2424 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2425
2426 * localedata/locales/zh_HK (t_fmt):
2427 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2428
2429 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2430 because this locale does not use the 12-hour clock.
2431 (t_fmt): Set to "%Z %H:%M:%S".
2432 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2433
2434 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2435 because this locale does not use the 12-hour clock.
2436 (t_fmt): Set to "%H:%M:%S %Z".
2437 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2438
2439 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2440 because this locale does not use the 12-hour clock.
2441 (t_fmt): Set to "%T".
2442 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2443 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2444
2445 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2446 because this locale does not use the 12-hour clock.
2447 (t_fmt): Set to "%H:%M:%S %Z".
2448 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2449
2450 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2451 because this locale does not use the 12-hour clock.
2452 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2453 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2454
2455 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2456
2457 [BZ #10496]
2458 [BZ #23724]
2459 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2460 (t_fmt_ampm): Likewise.
2461 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2462 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2463 (d_fmt): Set to "%-d.%-m.%y".
2464
2465 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2466
2467 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2468 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2469 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2470 Likewise.
2471 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2472 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2473 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2474 function.
2475 * support/blob_repeat.c (check_mul_overflow_size_t,
2476 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2477
2478 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2479
2480 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2481
2482 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2483
2484 regex: simplify Gnulib port
2485 This simplifies the code, by removing stuff intended for porting
2486 to Gnulib but no longer needed there.
2487 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2488 uses of libc_hidden_def, weak_alias.
2489 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2490 _Restrict_ except for public-facing headers.
2491 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2492 Remove; already defined elsewhere.
2493 * posix/regex.c, posix/regex_internal.h:
2494 Use __GNUC_PREREQ instead of rolling our own.
2495 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2496
2497 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2498
2499 * benchtests/bench-strlen.c (generic_strlen): New function.
2500 (memchr_strlen): New function.
2501
2502 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2503
2504 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2505 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2506 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2507
2508 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2509
2510 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2511
2512 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2513
2514 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2515 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2516 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2517 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2518 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2519 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2520 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2521
2522 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2523
2524 [BZ #24023]
2525 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2526 PLT reference in libc.so.
2527 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2528 _Q_lltoq and _Q_qtod PLT references in libc.so.
2529
2530 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2531
2532 * benchtests/bench-memchr.c: Cleanup defines.
2533 * benchtests/bench-memcmp.c: Likewise.
2534 * benchtests/bench-memset.c: Likewise.
2535 * benchtests/bench-memset-large.c: Likewise.
2536 * benchtests/bench-memset-walk.c: Likewise.
2537 * benchtests/bench-stpcpy.c: Likewise.
2538 * benchtests/bench-stpncpy.c: Likewise.
2539 * benchtests/bench-strcat.c: Likewise.
2540 * benchtests/bench-strchr.c: Likewise.
2541 * benchtests/bench-strcmp.c: Likewise.
2542 * benchtests/bench-strcpy.c: Likewise.
2543 * benchtests/bench-strcspn.c: Likewise.
2544 * benchtests/bench-string.h: Likewise.
2545 * benchtests/bench-strlen.c: Likewise.
2546 * benchtests/bench-strncat.c: Likewise.
2547 * benchtests/bench-strncmp.c: Likewise.
2548 * benchtests/bench-strncpy.c: Likewise.
2549 * benchtests/bench-strnlen.c: Likewise.
2550 * benchtests/bench-strpbrk.c: Likewise.
2551 * benchtests/bench-strrchr.c: Likewise.
2552 * benchtests/bench-strspn.c: Likewise.
2553
2554 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2555
2556 * stdlib/longlong.h: Update from GCC.
2557
2558 [BZ #23993]
2559 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2560 * configure: Regenerated.
2561 * manual/install.texi (Tools for Compilation): Update minimum GCC
2562 version.
2563 * INSTALL: Regenerated.
2564
2565 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2566
2567 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2568
2569 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2570
2571 * malloc/malloc.c (mremap_chunk): Additional checks.
2572
2573 2018-12-21 Mao Han <han_mao@c-sky.com>
2574
2575 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2576 * scripts/build-many-glibcs.py: Add C-SKY targets.
2577 * sysdeps/csky/Implies: New file.
2578 * sysdeps/csky/Makefile: Likewise.
2579 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2580 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2581 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2582 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2583 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2584 * sysdeps/csky/abiv2/memmove.S: Likewise.
2585 * sysdeps/csky/abiv2/memset.S: Likewise.
2586 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2587 * sysdeps/csky/abiv2/start.S: Likewise.
2588 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2589 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2590 * sysdeps/csky/abiv2/strlen.S: Likewise.
2591 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2592 * sysdeps/csky/abort-instr.h: Likewise.
2593 * sysdeps/csky/atomic-machine.h: Likewise.
2594 * sysdeps/csky/bits/endian.h: Likewise.
2595 * sysdeps/csky/bits/fenv.h: Likewise.
2596 * sysdeps/csky/bits/link.h: Likewise.
2597 * sysdeps/csky/bits/setjmp.h: Likewise.
2598 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2599 * sysdeps/csky/bsd-setjmp.S: Likewise.
2600 * sysdeps/csky/configure: Likewise.
2601 * sysdeps/csky/configure.ac: Likewise.
2602 * sysdeps/csky/dl-machine.h: Likewise.
2603 * sysdeps/csky/dl-procinfo.c: Likewise.
2604 * sysdeps/csky/dl-procinfo.h: Likewise.
2605 * sysdeps/csky/dl-sysdep.h: Likewise.
2606 * sysdeps/csky/dl-tls.h: Likewise.
2607 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2608 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2609 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2610 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2611 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2612 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2613 * sysdeps/csky/fpu/fegetround.c: Likewise.
2614 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2615 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2616 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2617 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2618 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2619 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2620 * sysdeps/csky/fpu/fesetround.c: Likewise.
2621 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2622 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2623 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2624 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2625 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2626 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2627 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2628 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2629 * sysdeps/csky/fpu_control.h: Likewise.
2630 * sysdeps/csky/gccframe.h: Likewise.
2631 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2632 * sysdeps/csky/ldsodefs.h: Likewise.
2633 * sysdeps/csky/libc-tls.c: Likewise.
2634 * sysdeps/csky/linkmap.h: Likewise.
2635 * sysdeps/csky/machine-gmon.h: Likewise.
2636 * sysdeps/csky/memusage.h: Likewise.
2637 * sysdeps/csky/nofpu/Implies: Likewise.
2638 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2639 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2640 * sysdeps/csky/nptl/Makefile: Likewise.
2641 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2642 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2643 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2644 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2645 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2646 * sysdeps/csky/nptl/tls.h: Likewise.
2647 * sysdeps/csky/preconfigure: Likewise.
2648 * sysdeps/csky/sfp-machine.h: Likewise.
2649 * sysdeps/csky/sotruss-lib.c: Likewise.
2650 * sysdeps/csky/stackinfo.h: Likewise.
2651 * sysdeps/csky/sysdep.h: Likewise.
2652 * sysdeps/csky/tininess.h: Likewise.
2653 * sysdeps/csky/tst-audit.h: Likewise.
2654 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2655 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2656 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2657 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2658 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2659 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2660 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2661 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2662 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2663 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2664 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2665 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2666 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2667 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2668 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2669 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2670 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2671 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2672 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2673 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2674 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2675 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2676 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2677 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2678 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2679 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2680 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2681 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2682 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2683 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2684 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2685 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2686 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2687 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2688 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2689 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2690 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2691 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2692 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2693 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2694 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2695 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2696 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2697 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2698
2699 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2700
2701 * include/time.h (__difftime64): Add.
2702 * time/difftime.c (subtract): convert to 64-bit time.
2703 * time/difftime.c (__difftime64): Add.
2704 * time/difftime.c (__difftime): Wrap around __difftime64.
2705
2706 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2707
2708 * manual/examples/add.c: Remove redundant "if not".
2709 * manual/examples/argp-ex1.c: Likewise.
2710 * manual/examples/argp-ex2.c: Likewise.
2711 * manual/examples/argp-ex3.c: Likewise.
2712 * manual/examples/argp-ex4.c: Likewise.
2713 * manual/examples/atexit.c: Likewise.
2714 * manual/examples/db.c: Likewise.
2715 * manual/examples/dir.c: Likewise.
2716 * manual/examples/dir2.c: Likewise.
2717 * manual/examples/execinfo.c: Likewise.
2718 * manual/examples/filecli.c: Likewise.
2719 * manual/examples/filesrv.c: Likewise.
2720 * manual/examples/fmtmsgexpl.c: Likewise.
2721 * manual/examples/genpass.c: Likewise.
2722 * manual/examples/inetcli.c: Likewise.
2723 * manual/examples/inetsrv.c: Likewise.
2724 * manual/examples/isockad.c: Likewise.
2725 * manual/examples/longopt.c: Likewise.
2726 * manual/examples/memopen.c: Likewise.
2727 * manual/examples/memstrm.c: Likewise.
2728 * manual/examples/mkdirent.c: Likewise.
2729 * manual/examples/mkfsock.c: Likewise.
2730 * manual/examples/mkisock.c: Likewise.
2731 * manual/examples/mygetpass.c: Likewise.
2732 * manual/examples/pipe.c: Likewise.
2733 * manual/examples/popen.c: Likewise.
2734 * manual/examples/rprintf.c: Likewise.
2735 * manual/examples/search.c: Likewise.
2736 * manual/examples/select.c: Likewise.
2737 * manual/examples/setjmp.c: Likewise.
2738 * manual/examples/sigh1.c: Likewise.
2739 * manual/examples/sigusr.c: Likewise.
2740 * manual/examples/stpcpy.c: Likewise.
2741 * manual/examples/strdupa.c: Likewise.
2742 * manual/examples/strftim.c: Likewise.
2743 * manual/examples/subopt.c: Likewise.
2744 * manual/examples/swapcontext.c: Likewise.
2745 * manual/examples/termios.c: Likewise.
2746 * manual/examples/testopt.c: Likewise.
2747 * manual/examples/testpass.c: Likewise.
2748 * manual/examples/timeval_subtract.c: Likewise.
2749
2750 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2751
2752 * sysdeps/x86/fpu/math_private.h: New file.
2753 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2754
2755 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2756 definition.
2757 (cosh): Likewise.
2758 (tanh): Likewise.
2759
2760 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2761
2762 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2763 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2764 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2765 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2766 fields.
2767 (_dl_show_auxv): Give a special treatment to
2768 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2769 and AT_L3_CACHEGEOMETRY.
2770 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2771 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2772 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2773 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2774
2775 2018-12-19 Andreas Schwab <schwab@suse.de>
2776
2777 * nscd/connections.c (check_use): Don't abort on invalid len.
2778
2779 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2780
2781 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2782 values in the 64bit value cases.
2783
2784 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2785
2786 * include/time.h
2787 (__ctime64_r): Add.
2788 * time/ctime_r.c
2789 (__ctime64_r): Add.
2790 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2791
2792 * include/time.h
2793 (__ctime64): Add.
2794 * time/gmtime.c
2795 (__ctime64): Add.
2796 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2797
2798 * include/time.h
2799 (__gmtime64_r): Add.
2800 * time/gmtime.c
2801 (__gmtime64_r): Add.
2802 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2803
2804 * include/time.h
2805 (__gmtime64): Add.
2806 * time/gmtime.c
2807 (__gmtime64): Add.
2808 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2809
2810 * include/time.h
2811 (__localtime64_r): Add.
2812 * time/localtime.c
2813 (__localtime64_r): Add.
2814 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2815
2816 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2817
2818 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2819 kernel_sigction definition.
2820
2821 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2822
2823 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2824
2825 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2826 __syscall_rt_sigaction.
2827 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2828 (kernel_sigaction): Use Linux generic defintion.
2829 (STUB): Define.
2830 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2831 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2832 (__syscall_rt_sigaction): Remove implementation.
2833 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2834 hidden.
2835 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2836 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2837 INTERNAL_SYSCALL): Remove definitions.
2838 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2839 action and signal set size.
2840 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2841 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2842
2843 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2844 James Clarke <jrtc27@jrtc27.com>
2845
2846 [BZ #23967]
2847 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2848 Define if SA_RESTORER is defined.
2849 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2850 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2851 already defined.
2852 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2853 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2854 definitions.
2855 (HAS_SA_RESTORER): Define.
2856 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2857 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2858 (HAS_SA_RESTORER): Define.
2859 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2860 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2861 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2862 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2863 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2864
2865 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2866
2867 * sysdeps/unix/sysv/linux/kernel-features.h
2868 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2869 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2870 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2871 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2872 (__ASSUME_ST_INO_64_BIT): Likewise.
2873 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2874 <kernel-features.h>.
2875 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2876 Remove conditional code.
2877 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2878 <kernel-features.h>.
2879 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2880 Remove conditional code.
2881 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2882 <kernel-features.h>.
2883 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2884 Remove conditional code.
2885 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2886 <kernel-features.h>.
2887 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2888 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2889
2890 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2891
2892 * sysdeps/s390/multiarch/ifunc-resolve.h
2893 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2894 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2895 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2896 Delete macro definition.
2897 (s390_libc_ifunc_init): Rename to
2898 s390_libc_ifunc_expr_stfle_init.
2899 * sysdeps/s390/bzero: Use
2900 s390_libc_ifunc_expr_stfle_init instead of
2901 s390_libc_ifunc_init.
2902 * sysdeps/s390/memcmp.c: Likewise.
2903 * sysdeps/s390/memcpy.c: Likewise.
2904 * sysdeps/s390/mempcpy.c: Likewise.
2905 * sysdeps/s390/memset.c: Likewise.
2906
2907 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2908
2909 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2910 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2911
2912 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2913
2914 * sysdeps/s390/multiarch/Makefile
2915 (sysdep_routines): Remove wmemcmp variants.
2916 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2917 * sysdeps/s390/multiarch/ifunc-impl-list.c
2918 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2919 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2920 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2921 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2922 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2923 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2924 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2925 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2926
2927 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2928
2929 * sysdeps/s390/multiarch/Makefile
2930 (sysdep_routines): Remove wmemset variants.
2931 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2932 * sysdeps/s390/multiarch/ifunc-impl-list.c
2933 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2934 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2935 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2936 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2937 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2938 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2939 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2940 * sysdeps/s390/ifunc-wmemset.h: New file.
2941
2942 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2943
2944 * sysdeps/s390/multiarch/Makefile
2945 (sysdep_routines): Remove wmemchr variants.
2946 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2947 * sysdeps/s390/multiarch/ifunc-impl-list.c
2948 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2949 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2950 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2951 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2952 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2953 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2954 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2955 * sysdeps/s390/ifunc-wmemchr.h: New file.
2956
2957 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2958
2959 * sysdeps/s390/multiarch/Makefile
2960 (sysdep_routines): Remove wcscspn variants.
2961 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2962 * sysdeps/s390/multiarch/ifunc-impl-list.c
2963 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2964 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2965 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2966 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2967 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2968 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2969 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2970 * sysdeps/s390/ifunc-wcscspn.h: New file.
2971
2972 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2973
2974 * sysdeps/s390/multiarch/Makefile
2975 (sysdep_routines): Remove wcspbrk variants.
2976 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2977 * sysdeps/s390/multiarch/ifunc-impl-list.c
2978 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2979 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2980 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2981 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2982 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2983 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2984 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2985 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2986
2987 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2988
2989 * sysdeps/s390/multiarch/Makefile
2990 (sysdep_routines): Remove wcsspn variants.
2991 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2992 * sysdeps/s390/multiarch/ifunc-impl-list.c
2993 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2994 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2995 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2996 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2997 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2998 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2999 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
3000 * sysdeps/s390/ifunc-wcsspn.h: New file.
3001
3002 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3003
3004 * sysdeps/s390/multiarch/Makefile
3005 (sysdep_routines): Remove wcsrchr variants.
3006 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
3007 * sysdeps/s390/multiarch/ifunc-impl-list.c
3008 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
3009 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
3010 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
3011 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
3012 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
3013 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
3014 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
3015 * sysdeps/s390/ifunc-wcsrchr.h: New file.
3016
3017 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3018
3019 * sysdeps/s390/multiarch/Makefile
3020 (sysdep_routines): Remove wcschrnul variants.
3021 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
3022 * sysdeps/s390/multiarch/ifunc-impl-list.c
3023 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
3024 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
3025 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
3026 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
3027 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
3028 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
3029 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
3030 * sysdeps/s390/ifunc-wcschrnul.h: New file.
3031
3032 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3033
3034 * sysdeps/s390/multiarch/Makefile
3035 (sysdep_routines): Remove wcschr variants.
3036 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
3037 * sysdeps/s390/multiarch/ifunc-impl-list.c
3038 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3039 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3040 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3041 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3042 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3043 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3044 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3045 * sysdeps/s390/ifunc-wcschr.h: New file.
3046
3047 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3048
3049 * sysdeps/s390/multiarch/Makefile
3050 (sysdep_routines): Remove wcsncmp variants.
3051 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3052 * sysdeps/s390/multiarch/ifunc-impl-list.c
3053 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3054 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3055 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3056 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3057 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3058 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3059 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3060 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3061
3062 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3063
3064 * sysdeps/s390/multiarch/Makefile
3065 (sysdep_routines): Remove wcscmp variants.
3066 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3067 * sysdeps/s390/multiarch/ifunc-impl-list.c
3068 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3069 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3070 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3071 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3072 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3073 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3074 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3075 * sysdeps/s390/ifunc-wcscmp.h: New file.
3076
3077 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3078
3079 * sysdeps/s390/multiarch/Makefile
3080 (sysdep_routines): Remove wcsncat variants.
3081 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3082 * sysdeps/s390/multiarch/ifunc-impl-list.c
3083 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3084 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3085 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3086 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3087 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3088 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3089 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3090 * sysdeps/s390/ifunc-wcsncat.h: New file.
3091
3092 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3093
3094 * sysdeps/s390/multiarch/Makefile
3095 (sysdep_routines): Remove wcscat variants.
3096 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3097 * sysdeps/s390/multiarch/ifunc-impl-list.c
3098 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3099 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3100 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3101 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3102 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3103 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3104 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3105 * sysdeps/s390/ifunc-wcscat.h: New file.
3106
3107 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3108
3109 * sysdeps/s390/multiarch/Makefile
3110 (sysdep_routines): Remove wcpncpy variants.
3111 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3112 * sysdeps/s390/multiarch/ifunc-impl-list.c
3113 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3114 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3115 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3116 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3117 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3118 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3119 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3120 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3121
3122 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3123
3124 * sysdeps/s390/multiarch/Makefile
3125 (sysdep_routines): Remove wcsncpy variants.
3126 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3127 * sysdeps/s390/multiarch/ifunc-impl-list.c
3128 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3129 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3130 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3131 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3132 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3133 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3134 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3135 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3136
3137 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3138
3139 * sysdeps/s390/multiarch/Makefile
3140 (sysdep_routines): Remove wcpcpy variants.
3141 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3142 * sysdeps/s390/multiarch/ifunc-impl-list.c
3143 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3144 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3145 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3146 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3147 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3148 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3149 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3150 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3151
3152 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3153
3154 * sysdeps/s390/multiarch/Makefile
3155 (sysdep_routines): Remove wcscpy variants.
3156 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3157 * sysdeps/s390/multiarch/ifunc-impl-list.c
3158 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3159 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3160 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3161 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3162 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3163 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3164 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3165 * sysdeps/s390/ifunc-wcscpy.h: New file.
3166
3167 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3168
3169 * sysdeps/s390/multiarch/Makefile
3170 (sysdep_routines): Remove wcsnlen variants.
3171 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3172 * sysdeps/s390/multiarch/ifunc-impl-list.c
3173 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3174 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3175 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3176 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3177 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3178 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3179 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3180 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3181
3182 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3183
3184 * sysdeps/s390/multiarch/Makefile
3185 (sysdep_routines): Remove wcslen variants.
3186 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3187 * sysdeps/s390/multiarch/ifunc-impl-list.c
3188 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3189 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3190 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3191 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3192 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3193 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3194 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3195 * sysdeps/s390/ifunc-wcslen.h: New file.
3196
3197 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3198
3199 * sysdeps/s390/multiarch/Makefile
3200 (sysdep_routines): Remove memrchr variants.
3201 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3202 * sysdeps/s390/multiarch/ifunc-impl-list.c
3203 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3204 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3205 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3206 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3207 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3208 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3209 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3210 * sysdeps/s390/ifunc-memrchr.h: New file.
3211
3212 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3213
3214 * sysdeps/s390/multiarch/Makefile
3215 (sysdep_routines): Remove memccpy variants.
3216 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3217 * sysdeps/s390/multiarch/ifunc-impl-list.c
3218 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3219 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3220 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3221 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3222 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3223 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3224 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3225 * sysdeps/s390/ifunc-memccpy.h: New file.
3226
3227 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3228
3229 * sysdeps/s390/multiarch/Makefile
3230 (sysdep_routines): Remove rawmemchr variants.
3231 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3232 * sysdeps/s390/multiarch/ifunc-impl-list.c
3233 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3234 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3235 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3236 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3237 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3238 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3239 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3240 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3241
3242 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3243
3244 * sysdeps/s390/multiarch/Makefile
3245 (sysdep_routines): Remove memchr variants.
3246 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3247 * sysdeps/s390/multiarch/ifunc-impl-list.c
3248 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3249 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3250 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3251 * sysdeps/s390/multiarch/memchr.c: Move to ...
3252 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3253 * sysdeps/s390/ifunc-memchr.h: New file.
3254 * sysdeps/s390/s390-64/memchr.S: Move to ...
3255 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3256 for 31/64bit and ifunc handling.
3257 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3258 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3259 * sysdeps/s390/s390-32/memchr.S: Likewise.
3260
3261 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3262
3263 * sysdeps/s390/multiarch/Makefile
3264 (sysdep_routines): Remove strcspn variants.
3265 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3266 * sysdeps/s390/multiarch/ifunc-impl-list.c
3267 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3268 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3269 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3270 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3271 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3272 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3273 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3274 * sysdeps/s390/ifunc-strcspn.h: New file.
3275
3276 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3277
3278 * sysdeps/s390/multiarch/Makefile
3279 (sysdep_routines): Remove strpbrk variants.
3280 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3281 * sysdeps/s390/multiarch/ifunc-impl-list.c
3282 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3283 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3284 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3285 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3286 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3287 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3288 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3289 * sysdeps/s390/ifunc-strpbrk.h: New file.
3290
3291 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3292
3293 * sysdeps/s390/multiarch/Makefile
3294 (sysdep_routines): Remove strspn variants.
3295 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3296 * sysdeps/s390/multiarch/ifunc-impl-list.c
3297 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3298 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3299 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3300 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3301 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3302 * sysdeps/s390/multiarch/strspn.c: Move to ...
3303 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3304 * sysdeps/s390/ifunc-strspn.h: New file.
3305
3306 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3307
3308 * sysdeps/s390/multiarch/Makefile
3309 (sysdep_routines): Remove strrchr variants.
3310 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3311 * sysdeps/s390/multiarch/ifunc-impl-list.c
3312 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3313 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3314 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3315 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3316 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3317 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3318 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3319 * sysdeps/s390/ifunc-strrchr.h: New file.
3320
3321 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3322
3323 * sysdeps/s390/multiarch/Makefile
3324 (sysdep_routines): Remove strchrnul variants.
3325 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3326 * sysdeps/s390/multiarch/ifunc-impl-list.c
3327 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3328 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3329 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3330 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3331 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3332 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3333 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3334 * sysdeps/s390/ifunc-strchrnul.h: New file.
3335
3336 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3337
3338 * sysdeps/s390/multiarch/Makefile
3339 (sysdep_routines): Remove strchr variants.
3340 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3341 * sysdeps/s390/multiarch/ifunc-impl-list.c
3342 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3343 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3344 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3345 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3346 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3347 * sysdeps/s390/multiarch/strchr.c: Move to ...
3348 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3349 * sysdeps/s390/ifunc-strchr.h: New file.
3350
3351 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3352
3353 * sysdeps/s390/multiarch/Makefile
3354 (sysdep_routines): Remove strncmp variants.
3355 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3356 * sysdeps/s390/multiarch/ifunc-impl-list.c
3357 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3358 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3359 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3360 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3361 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3362 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3363 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3364 * sysdeps/s390/ifunc-strncmp.h: New file.
3365
3366 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3367
3368 * sysdeps/s390/multiarch/Makefile
3369 (sysdep_routines): Remove strcmp variants.
3370 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3371 * sysdeps/s390/multiarch/ifunc-impl-list.c
3372 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3373 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3374 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3375 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3376 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3377 * sysdeps/s390/ifunc-strcmp.h: New file.
3378 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3379 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3380 for 31/64bit and ifunc handling.
3381 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3382 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3383 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3384
3385 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3386
3387 * sysdeps/s390/multiarch/Makefile
3388 (sysdep_routines): Remove strncat variants.
3389 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3390 * sysdeps/s390/multiarch/ifunc-impl-list.c
3391 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3392 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3393 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3394 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3395 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3396 * sysdeps/s390/multiarch/strncat.c: Move to ...
3397 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3398 * sysdeps/s390/ifunc-strncat.h: New file.
3399
3400 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3401
3402 * sysdeps/s390/multiarch/Makefile
3403 (sysdep_routines): Remove strcat variants.
3404 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3405 * sysdeps/s390/multiarch/ifunc-impl-list.c
3406 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3407 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3408 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3409 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3410 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3411 * sysdeps/s390/multiarch/strcat.c: Move to ...
3412 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3413 * sysdeps/s390/ifunc-strcat.h: New file.
3414
3415 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3416
3417 * sysdeps/s390/multiarch/Makefile
3418 (sysdep_routines): Remove stpncpy variants.
3419 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3420 * sysdeps/s390/multiarch/ifunc-impl-list.c
3421 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3422 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3423 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3424 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3425 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3426 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3427 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3428 * sysdeps/s390/ifunc-stpncpy.h: New file.
3429
3430 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3431
3432 * sysdeps/s390/multiarch/Makefile
3433 (sysdep_routines): Remove strncpy variants.
3434 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3435 * sysdeps/s390/multiarch/ifunc-impl-list.c
3436 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3437 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3438 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3439 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3440 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3441 * sysdeps/s390/ifunc-strncpy.h: New file.
3442 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3443 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3444 and adjust ifunc handling.
3445 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3446 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3447 and adjust ifunc handling.
3448 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3449 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3450
3451 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3452
3453 * sysdeps/s390/multiarch/Makefile
3454 (sysdep_routines): Remove stpcpy variants.
3455 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3456 * sysdeps/s390/multiarch/ifunc-impl-list.c
3457 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3458 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3459 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3460 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3461 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3462 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3463 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3464 * sysdeps/s390/ifunc-stpcpy.h: New file.
3465
3466 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3467
3468 * sysdeps/s390/multiarch/Makefile
3469 (sysdep_routines): Remove strcpy variants.
3470 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3471 * sysdeps/s390/multiarch/ifunc-impl-list.c
3472 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3473 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3474 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3475 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3476 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3477 * sysdeps/s390/ifunc-strcpy.h: New file.
3478 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3479 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3480 for 31/64bit and ifunc handling.
3481 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3482 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3483 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3484
3485 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3486
3487 * sysdeps/s390/multiarch/Makefile
3488 (sysdep_routines): Remove strnlen variants.
3489 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3490 * sysdeps/s390/multiarch/ifunc-impl-list.c
3491 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3492 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3493 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3494 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3495 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3496 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3497 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3498 * sysdeps/s390/ifunc-strnlen.h: New file.
3499
3500 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3501
3502 * sysdeps/s390/multiarch/Makefile
3503 (sysdep_routines): Remove strlen variants.
3504 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3505 * sysdeps/s390/multiarch/ifunc-impl-list.c
3506 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3507 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3508 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3509 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3510 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3511 * sysdeps/s390/multiarch/strlen.c: Move to ...
3512 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3513 * sysdeps/s390/ifunc-strlen.h: New file.
3514
3515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3516
3517 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3518 * sysdeps/s390/multiarch/ifunc-impl-list.c
3519 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3520 * sysdeps/s390/ifunc-memmem.h: New file.
3521 * sysdeps/s390/memmem.c: Likewise.
3522 * sysdeps/s390/memmem-c.c: Likewise.
3523 * sysdeps/s390/memmem-vx.c: Likewise.
3524
3525 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3526
3527 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3528 * sysdeps/s390/multiarch/ifunc-impl-list.c
3529 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3530 * sysdeps/s390/ifunc-strstr.h: New file.
3531 * sysdeps/s390/strstr.c: Likewise.
3532 * sysdeps/s390/strstr-c.c: Likewise.
3533 * sysdeps/s390/strstr-vx.c: Likewise.
3534
3535 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3536
3537 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3538 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3539 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3540 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3541 New defines.
3542 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3543 * sysdeps/s390/memmove-c.c: New file.
3544 * sysdeps/s390/memmove.c: Likewise.
3545 * sysdeps/s390/multiarch/ifunc-impl-list.c
3546 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3547
3548 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3549
3550 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3551 * sysdeps/s390/configure.ac: Add check for z13 support.
3552 * sysdeps/s390/configure: Regenerated.
3553
3554 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3555
3556 * sysdeps/s390/memcopy.h: New file.
3557
3558 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3559
3560 * sysdeps/s390/s390-32/bcopy.S: Remove.
3561 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3562
3563 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3564
3565 * sysdeps/s390/ifunc-memcpy.h: New File.
3566 * sysdeps/s390/memcpy.S: Move to ...
3567 * sysdeps/s390/memcpy-z900.S ... here.
3568 Move implementations from memcpy-s390x.s to here.
3569 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3570 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3571 Remove memcpy/mempcpy variants.
3572 * sysdeps/s390/Makefile (sysdep_routines):
3573 Add memcpy/mempcpy variants.
3574 * sysdeps/s390/multiarch/ifunc-impl-list.c
3575 (__libc_ifunc_impl_list): Adjust ifunc variants for
3576 memcpy and mempcpy.
3577 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3578 to ...
3579 * sysdeps/s390/memcpy.c: ... here.
3580 Adjust ifunc variants for memcpy.
3581 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3582 * sysdeps/s390/mempcpy.c: ... here.
3583 Adjust ifunc variants for mempcpy.
3584 * sysdeps/s390/mempcpy.S: Delete file.
3585
3586 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3587
3588 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3589 * sysdeps/s390/memcpy.S: ... here.
3590 Adjust to be usable for 31/64bit.
3591 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3592 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3593 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3594 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3595 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3596 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3597 Adjust to be usable for 31/64bit.
3598 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3599 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3600 * sysdeps/s390/multiarch/memcpy.c: ... here.
3601 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3602
3603 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3604
3605 * sysdeps/s390/ifunc-memcmp.h: New File.
3606 * sysdeps/s390/memcmp.S: Move to ...
3607 * sysdeps/s390/memcmp-z900.S ... here.
3608 Move implementations from memcmp-s390x.s to here.
3609 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3610 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3611 Remove memcmp variants.
3612 * sysdeps/s390/Makefile (sysdep_routines):
3613 Add memcmp variants.
3614 * sysdeps/s390/multiarch/ifunc-impl-list.c
3615 (__libc_ifunc_impl_list): Adjust ifunc variants for
3616 memcmp.
3617 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3618 to ...
3619 * sysdeps/s390/memcmp.c: ... here.
3620 Adjust ifunc variants for memcmp.
3621
3622 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3623
3624 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3625 * sysdeps/s390/memcmp.S: ... here.
3626 Adjust to be usable for 31/64bit.
3627 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3628 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3629 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3630 Remove memcmp.
3631 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3632 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3633 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3634 Adjust to be usable for 31/64bit.
3635 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3636 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3637 * sysdeps/s390/multiarch/memcmp.c: ... here.
3638 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3639
3640 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3641
3642 * sysdeps/s390/s390-32/bzero.S: Delete file.
3643 * sysdeps/s390/s390-64/bzero.S: Likewise.
3644 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3645 * sysdeps/s390/bzero.c: New file.
3646 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3647 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3648 * sysdeps/s390/multiarch/ifunc-impl-list.c
3649 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3650
3651 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3652
3653 * sysdeps/s390/ifunc-memset.h: New File.
3654 * sysdeps/s390/memset.S: Move to ...
3655 * sysdeps/s390/memset-z900.S ... here.
3656 Move implementations from memset-s390x.s to here.
3657 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3658 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3659 Remove memset variants.
3660 * sysdeps/s390/Makefile (sysdep_routines):
3661 Add memset variants.
3662 * sysdeps/s390/multiarch/ifunc-impl-list.c
3663 (__libc_ifunc_impl_list): Adjust ifunc variants for
3664 memset.
3665 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3666 to ...
3667 * sysdeps/s390/memset.c: ... here.
3668 Adjust ifunc variants for memset.
3669
3670 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3671
3672 * sysdeps/s390/s390-64/memset.S: Move to ...
3673 * sysdeps/s390/memset.S: ... here.
3674 Adjust to be usable for 31/64bit.
3675 * sysdeps/s390/s390-32/memset.S: Delete File.
3676 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3677 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3678 Remove memset.
3679 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3680 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3681 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3682 Adjust to be usable for 31/64bit.
3683 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3684 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3685 * sysdeps/s390/multiarch/memset.c: ... here.
3686 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3687
3688 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3689
3690 * sysdeps/s390/multiarch/ifunc-resolve.h
3691 (s390_libc_ifunc_init, s390_libc_ifunc,
3692 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3693
3694 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3695
3696 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3697 * sysdeps/s390/configure.ac: Add check for z10 support.
3698 * sysdeps/s390/configure: Regenerated.
3699
3700 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3701
3702 * sysdeps/i386/atomic-machine.h: Merged with ...
3703 * sysdeps/x86_64/atomic-machine.h: To ...
3704 * sysdeps/x86/atomic-machine.h: This. New file.
3705
3706 2018-12-18 Florian Weimer <fweimer@redhat.com>
3707
3708 Rewrite locale/gen-translit.pl in Python.
3709 * locale/Makefile (generated): Add C-translit.h.
3710 (before-compile): Add $(objpfx)C-translit.h.
3711 (C-translit.h): Move to $(objpfx). Create target directory.
3712 Build using Python script.
3713 * locale/gen-translit.py: New file.
3714 * locale/gen-translit.pl: Remove file.
3715 * locale/C-translit.h.in: Change comment character to '#' for
3716 easier parsing without a C preprocessor.
3717 * locale/C-translit.h: Remove generated file.
3718 * manual/install.texi (Tools for Compilation): Do not mention
3719 C-translit.h.
3720 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3721 Remove locale/C-translit.h.
3722 * scripts/update-copyrights: Likewise.
3723 * INSTALL: Regenerate.
3724
3725 2018-12-18 Florian Weimer <fweimer@redhat.com>
3726
3727 [BZ #23995]
3728 * localedata/locales/bi_VU: Remove executable bit from file.
3729
3730 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3731
3732 * include/time.h
3733 (__localtime64): Add.
3734 * manual/maint.texi: Document Y2038 symbol handling.
3735 * time/localtime.c
3736 (__localtime64): Add.
3737 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3738
3739 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3740
3741 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3742 Do not clobber r12.
3743
3744 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3745 to allow extra macros from first or second sources.
3746 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3747 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3748 (tests-special): Add $(objpfx)tst-mman-consts.out.
3749 ($(objpfx)tst-mman-consts.out): New makefile target.
3750
3751 2018-12-17 Mao Han <han_mao@c-sky.com>
3752
3753 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3754 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3755 without stat64 system call support.
3756 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3757 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3758 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3759 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3760 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3761 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3762 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3763 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3764 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3765 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3766 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3767
3768 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3769
3770 regex: fix storage-exhaustion error
3771 [BZ #18040]
3772 * posix/regexec.c (get_subexp):
3773 Do not continue if storage is exhausted.
3774
3775 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3776
3777 regex: fix heap-use-after-free error
3778 [BZ #18040]
3779 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3780 https://debbugs.gnu.org/32592
3781 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3782 call extend_buffers which reallocates the re_string_t internal buffer.
3783 Local variable 'buf' was not updated in such case, resulting in
3784 use-after-free.
3785 * posix/regexec.c (get_subexp): Update 'buf' after call to
3786 get_subexp_sub.
3787
3788 2018-12-15 Florian Weimer <fweimer@redhat.com>
3789
3790 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3791 (minimum_stride_size): Use it.
3792 (support_blob_repeat_allocate): Likewise.
3793
3794 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3795
3796 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3797 definition.
3798 (acosh): Likewise.
3799 (atanh): Likewise.
3800
3801 2018-12-14 Florian Weimer <fweimer@redhat.com>
3802
3803 * manual/process.texi (Process Creation Concepts): Remove
3804 documentation of process (ID) lifetime. List more process
3805 creation functions. Reference Process Identification section.
3806 (Process Identification): Add information about process ID
3807 lifetime. Describe Linux thread/task IDs.
3808 * manual/signal.texi (Signaling Another Process): Mention that the
3809 signal is always sent to the process.
3810
3811 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3812
3813 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3814 and tst-ldbl-efgcvt.
3815 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3816 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3817 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3818 (fcvt_tests, output_error, output_r_error, do_test): Use the
3819 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3820 select the type of floating-point variables and arguments; to
3821 produce extra tests for double and conversion specifiers for
3822 printf; and to set the names of called functions.
3823 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3824 in tst-efgcvt-template.c.
3825 * misc/tst-ldbl-efgcvt.c: Likewise.
3826
3827 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3828
3829 * nss/Makefile (tst-nss-test3.out): New rule.
3830
3831 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3832
3833 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3834 clobber sp.
3835
3836 2018-12-13 fanjinke <fanjinke@hygon.cn>
3837
3838 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3839 "HygonGenuine".
3840
3841 2018-12-13 Andreas Schwab <schwab@suse.de>
3842
3843 [BZ #23861]
3844 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3845 (__pthread_rwlock_rdlock_full): Update expected value for
3846 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3847 * nptl/tst-rwlock-pwn.c: New file.
3848 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3849
3850 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3851
3852 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3853 definition.
3854
3855 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3856
3857 * benchtests/scripts/compare_bench.py (do_compare): write to
3858 stderr in casestat is not present.
3859 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3860 stderr in case timings field is not present. Also string showing
3861 the output filename goes into the stderr.
3862
3863 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3864
3865 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3866 and ZeroDivisorError exceptions.
3867 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3868 argument to loop through user provided statistics.
3869 * benchtests/scripts/compare_bench.py (main): Include the --stats
3870 argument.
3871
3872 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3873
3874 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3875 instead of return.
3876
3877 2018-12-12 Florian Weimer <fweimer@redhat.com>
3878
3879 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3880 clause to copyright header.
3881
3882 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3883
3884 [BZ #23614]
3885 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3886 registers saved in the stack frame.
3887 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3888 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3889
3890 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3891
3892 * include/bits/monetary-ldbl.h: New file.
3893 * include/bits/printf-ldbl.h: Likewise.
3894 * include/bits/stdio-ldbl.h: Likewise.
3895 * include/bits/stdlib-ldbl.h: Likewise.
3896 * include/bits/syslog-ldbl.h: Likewise.
3897 * include/bits/wchar-ldbl.h: Likewise.
3898
3899 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3900
3901 * libio/libio.h: Remove redirection for _IO_vfprintf.
3902
3903 2018-12-11 Andreas Schwab <schwab@suse.de>
3904
3905 * Makerules: Remove all references to abilist-pattern.
3906 (update-all-abi): Simplify find expression.
3907
3908 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3909
3910 [BZ #23961]
3911 * math/auto-libm-test-in: Add new test case.
3912 * math/auto-libm-test-out-pow: Regenerated.
3913 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3914
3915 2018-12-10 DJ Delorie <dj@redhat.com>
3916
3917 [BZ #23948]
3918 * support/test-container.c: Move postclean step to before we
3919 change namespaces.
3920
3921 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3922
3923 * scripts/gen-as-const.py (main): Handle --python option.
3924 * scripts/gen-py-const.awk: Remove.
3925 * Makerules (py-const-script): Use gen-as-const.py.
3926 ($(py-const)): Likewise.
3927 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3928 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3929 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3930 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3931 ~PTHREAD_MUTEX_NO_ELISION_NP.
3932 * manual/README.pretty-printers: Update reference to
3933 gen-py-const.awk.
3934
3935 * scripts/glibcextract.py: New file.
3936 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3937 or tempfile. Import glibcexctract.
3938 (compute_c_consts): Remove. Moved to glibcextract.py.
3939 (gen_test): Update reference to compute_c_consts.
3940 (main): Likewise.
3941 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3942 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3943 * sysdeps/unix/sysv/linux/Makefile
3944 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3945 Redirect stderr as well as stdout.
3946
3947 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3948
3949 [BZ #19767]
3950 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3951 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3952 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3953 ALWAYS_USE_VSYSCALL.
3954 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3955 ALWAYS_USE_VSYSCALL.
3956 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3957 ALWAYS_USE_VSYSCALL.
3958
3959 2018-12-10 Florian Weimer <fweimer@redhat.com>
3960
3961 [BZ #23972]
3962 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3963 offset instead of count for clarity. Fix typo in comment.
3964 (__old_getdents64): Keep track of previous offset. Use it to call
3965 handle_overflow.
3966 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3967 that d_off is never zero.
3968
3969 2018-12-10 Andreas Schwab <schwab@suse.de>
3970
3971 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3972 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3973 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3974 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3975 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3976
3977 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3978
3979 * timezone/private.h: Update from tzcode 2018g.
3980 * timezone/tzfile.h: Likewise.
3981 * timezone/tzselect.ksh: Likewise.
3982 * timezone/zdump.c: Likewise.
3983 * timezone/zic.c: Likewise.
3984
3985 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3986
3987 [BZ #23490]
3988 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3989 (do_test): Adjust buffer size and fix format.
3990
3991 2018-12-07 DJ Delorie <dj@redhat.com>
3992
3993 [BZ #23907]
3994 * malloc/tst-tcfree3.c: New.
3995 * malloc/Makefile: Add it.
3996
3997 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3998
3999 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
4000
4001 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4002
4003 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
4004 used as a mask for the mode argument of __vfscanf_internal and
4005 __vfwscanf_internal.
4006 * stdio-common/vfscanf-internal.c
4007 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
4008 (__strtof128_internal): Define to __wcstof128_internal.
4009 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
4010 __strtof128_internal or __wcstof128_internal when the format of
4011 long double is the same as _Float128.
4012
4013 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
4014
4015 * include/unistd.h (__confstr): Add prototype and hidden prototype.
4016 * posix/confstr.c (confstr): Rename to __confstr.
4017 (__confstr): Add hidden def.
4018 (confstr): Add weak alias for __confstr.
4019 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
4020 confstr.
4021
4022 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
4023
4024 * NEWS: Mention getcpu.
4025 * include/sched.h (__getcpu): New libc_hidden_proto.
4026 * manual/resource.texi: Document getcpu.
4027 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
4028 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
4029 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
4030 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
4031 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
4032 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
4033 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
4034 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
4035 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
4036 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
4037 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
4038 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4039 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4040 Likewise.
4041 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4042 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4043 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4044 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4045 Likewise.
4046 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4047 Likewise.
4048 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4049 Likewise.
4050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4051 Likewise.
4052 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4053 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4054 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4055 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4056 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4057 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4058 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4059 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4060 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4061 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4062 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4063 Also check getcpu.
4064
4065 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4066
4067 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4068 functions.
4069 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4070
4071 2018-12-07 Florian Weimer <fweimer@redhat.com>
4072
4073 [BZ #17405]
4074 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4075 * posix/Versions (GLIBC_2.29): Export
4076 posix_spawn_file_actions_addfchdir_np.
4077 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4078 * posix/spawn_faction_destroy.c
4079 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4080 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4081 and the field action.fchdir_action.
4082 * posix/tst-spawn-chdir.c (add_chdir): New function.
4083 (do_test): Add do_fchdir loop. Call add_chdir.
4084 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4085 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4086 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4087 posix_spawn_file_actions_addfchdir_np.
4088 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4089 Likewise.
4090 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4091 Likewise.
4092 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4093 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4094 Likewise.
4095 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4096 Likewise.
4097 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4098 Likewise.
4099 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4100 Likewise.
4101 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4102 Likewise.
4103 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4104 Likewise.
4105 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4106 (GLIBC_2.29): Likewise.
4107 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4108 (GLIBC_2.29): Likewise.
4109 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4110 (GLIBC_2.29): Likewise.
4111 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4112 (GLIBC_2.29): Likewise.
4113 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4114 Likewise.
4115 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4116 (GLIBC_2.29): Likewise.
4117 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4118 (GLIBC_2.29): Likewise.
4119 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4120 (GLIBC_2.29): Likewise.
4121 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4122 (GLIBC_2.29): Likewise.
4123 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4124 Likewise.
4125 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4126 Likewise.
4127 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4128 Likewise.
4129 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4130 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4131 Likewise.
4132 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4133 Likewise.
4134 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4135 Likewise.
4136 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4137 Likewise.
4138
4139 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4140
4141 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4142 trailing whitespace removed.
4143 * scripts/config.guess: Update to version 2018-11-28.
4144 * scripts/config.sub: Update to version 2018-11-28.
4145 * scripts/install-sh: Update to version 2018-03-11.20.
4146 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4147 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4148
4149 2018-12-07 Florian Weimer <fweimer@redhat.com>
4150
4151 [BZ #23927]
4152 CVE-2018-19591
4153 * inet/tst-if_index-long.c: New file.
4154 * inet/Makefile (tests): Add tst-if_index-long.
4155
4156 2018-12-07 Florian Weimer <fweimer@redhat.com>
4157
4158 * support/check.h (support_record_failure_is_failed): Declare.
4159 * support/descriptors.h: New file.
4160 * support/support_descriptors.c: Likewise.
4161 * support/tst-support_descriptors.c: Likewise.
4162 * support/support_record_failure.c
4163 (support_record_failure_is_failed): New function.
4164 * support/Makefile (libsupport-routines): Add support_descriptors.
4165 (tests): Add tst-support_descriptors.
4166
4167 2018-12-05 Zack Weinberg <zackw@panix.com>
4168 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4169
4170 * stdio-common/vfprintf-internal.c
4171 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4172 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4173 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4174 and __no_long_double.
4175 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4176 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4177 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4178 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4179 and __nldbl_*syslog* functions.
4180 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4181 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4182 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4183 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4184 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4185 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4186 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4187 (__nldbl_vwprintf, __nldbl_wprintf):
4188 Directly call the appropriate __v*printf_internal routine, passing
4189 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4190 variable names.
4191 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4192 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4193 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4194 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4195 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4196 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4197 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4198 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4199 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4200 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4201 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4202 (__nldbl_syslog, __nldbl_vsyslog):
4203 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4204 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4205 appropriate.
4206 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4207 appropriate.
4208
4209 2018-12-05 Zack Weinberg <zackw@panix.com>
4210 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4211
4212 [BZ #11319]
4213 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4214 Moved here from debug/vsprintf_chk.c.
4215 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4216 and completion logic for the strfile to match exactly what
4217 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4218 _IO_str_init_static_internal instead of maxlen-1.
4219 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4220 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4221 __vsprintf_internal.
4222
4223 * debug/vsprintf_chk.c (__vsprintf_chk)
4224 * debug/sprintf_chk.c (__sprintf_chk):
4225 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4226 'flags' argument is positive, and slen as maxlen. No need to lock
4227 the FILE and/or construct a temporary FILE. Minimize and normalize
4228 header inclusions and variable names. Do not libc_hidden_def anything.
4229
4230 * debug/asprintf_chk.c (__asprintf_chk)
4231 * debug/dprintf_chk.c (__dprintf_chk)
4232 * debug/fprintf_chk.c (__fprintf_chk)
4233 * debug/fwprintf_chk.c (__fwprintf_chk)
4234 * debug/printf_chk.c (__printf_chk)
4235 * debug/snprintf_chk.c (__snprintf_chk)
4236 * debug/swprintf_chk.c (__swprintf_chk)
4237 * debug/vasprintf_chk.c (__vasprintf_chk)
4238 * debug/vdprintf_chk.c (__vdprintf_chk)
4239 * debug/vfprintf_chk.c (__vfprintf_chk)
4240 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4241 * debug/vprintf_chk.c (__vprintf_chk)
4242 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4243 * debug/vswprintf_chk.c (__vswprintf_chk)
4244 * debug/vwprintf_chk.c (__vwprintf_chk)
4245 * debug/wprintf_chk.c (__wprintf_chk):
4246 Directly call the corresponding vxxprintf_internal function, passing
4247 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4248 the FILE and/or construct a temporary FILE. Minimize and normalize
4249 header inclusions and variable names. Do not libc_hidden_def anything.
4250
4251 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4252 __obstack_vprintf_internal.
4253 (__obstack_vprintf_chk): Convert into a wrapper that calls
4254 __obstack_vprintf_internal (these two functions already had the
4255 same code) and move to new file...
4256 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4257 file.
4258 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4259 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4260 * debug/Makefile (routines): Add vobprintf_chk.
4261
4262 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4263 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4264 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4265 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4266 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4267 (__nldbl___obstack_vfprintf_chk):
4268 Directly call the corresponding vxxprintf_internal function,
4269 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4270 duplicate comparison of slen with 0 or maxlen from the corresponding
4271 non-__nldbl function.
4272
4273 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4274 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4275 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4276 Remove libc_hidden_proto.
4277
4278 * stdio-common/vfprintf-internal.c
4279 (__vfprintf_internal, __vfwprintf_internal):
4280 Do not check _IO_FLAGS2_FORTIFY.
4281 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4282 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4283 a comment explaining why it has the maxlen argument.
4284 (_IO_acquire_lock_clear_flags2_fct): Remove.
4285 (_IO_acquire_lock_clear_flags2): Remove.
4286 (_IO_release_lock): Remove conditional statement which will
4287 now never execute.
4288 (_IO_acquire_lock): Remove variable which is now unused.
4289 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4290 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4291
4292 * stdio-common/Makefile (tests): Add tst-bz11319 and
4293 tst-bz11319-fortify2.
4294 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4295 * stdio-common/tst-bz11319-fortify2.c: New file.
4296 * stdio-common/tst-bz11319.c: Likewise.
4297
4298 2018-12-05 Zack Weinberg <zackw@panix.com>
4299 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4300
4301 * misc/syslog.c: Include libioP.h, not iolibio.h.
4302 (__vsyslog_internal): New function with the former body of
4303 __vsyslog_chk; takes mode_flags argument same as
4304 __v*printf_internal. Call __vfprintf_internal directly.
4305
4306 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4307 Remove libc_hidden_def.
4308 (__syslog, __syslog_chk): Use __vsyslog_internal.
4309 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4310
4311 * include/sys/syslog.h: Add multiple inclusion guard.
4312 Add prototype for __vsyslog_internal.
4313 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4314
4315 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4316 Use __vsyslog_internal.
4317
4318 2018-12-05 Zack Weinberg <zackw@panix.com>
4319 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4320
4321 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4322 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4323 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4324 New functions.
4325 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4326 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4327
4328 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4329 Include wctype.h here if COMPILE_WPRINTF is defined.
4330 Define __vfprintf_internal or __vfwprintf_internal, depending
4331 on COMPILE_WPRINTF.
4332 Temporarily, on entry to this function, update mode_flags
4333 according to the environmental settings corresponding to
4334 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4335 Throughout, check mode_flags instead of __ldbl_is_dbl and
4336 _IO_FLAGS2_FORTIFY on the destination FILE.
4337 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4338 Include vfprintf-internal.c. Don't include wctype.h.
4339 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4340 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4341 and vfprintf.
4342 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4343 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4344 and vfwprintf.
4345 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4346
4347 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4348 and add mode_flags argument; use __vfprintf_internal.
4349 (__vdprintf): New function. Alias vdprintf to this.
4350 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4351 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4352 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4353 (__obstack_printf): Use __obstack_printf_internal.
4354 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4355 public aliases __vsnprintf and vsnprintf.
4356 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4357 called internally.
4358 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4359 public aliases _IO_vsprintf and vsprintf.
4360 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4361 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4362 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4363 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4364 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4365
4366 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4367 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4368 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4369 * stdio-common/printf.c: Use __vfprintf_internal.
4370
4371 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4372 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4373 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4374
4375 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4376 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4377 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4378 __vfwprintf_internal.
4379
4380 * libio/libio.h: Remove libc_hidden_proto and declaration for
4381 _IO_vfprintf.
4382 Remove declaration of _IO_vfwprintf.
4383 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4384 _IO_vsprintf.
4385 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4386 _IO_obstack_printf.
4387 * include/stdio.h: Add prototype for __vasprintf.
4388 (__vsnprintf): Remove declaration, because there are no more
4389 internal calls.
4390 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4391 declaration, because there are no more internal calls.
4392
4393 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4394 __vsnprintf_internal, instead of _IO_vsnprintf.
4395 * argp/argp-help.c (__argp_error, __argp_failure): Use
4396 __vasprintf_internal, instead of _IO_vasprintf.
4397 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4398 redefine, because there are no more internal calls.
4399
4400 2018-12-05 Zack Weinberg <zackw@panix.com>
4401 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4402
4403 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4404 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4405 Include libio/strfile.h instead of libioP.h.
4406 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4407 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4408 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4409 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4410 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4411 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4412 necessary. Do not set __no_long_double. Normalize variable names.
4413 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4414 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4415 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4416 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4417 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4418 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4419 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4420 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4421 Do not set __no_long_double. Normalize variable names.
4422
4423 2018-12-05 Zack Weinberg <zackw@panix.com>
4424 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4425
4426 * stdio-common/isoc99_scanf.c
4427 * stdio-common/isoc99_fscanf.c
4428 * stdio-common/isoc99_sscanf.c
4429 * stdio-common/isoc99_vscanf.c
4430 * stdio-common/isoc99_vfscanf.c
4431 * stdio-common/isoc99_vsscanf.c
4432 * wcsmbs/isoc99_wscanf.c
4433 * wcsmbs/isoc99_fwscanf.c
4434 * wcsmbs/isoc99_swscanf.c
4435 * wcsmbs/isoc99_vwscanf.c
4436 * wcsmbs/isoc99_vfwscanf.c
4437 * wcsmbs/isoc99_vswscanf.c:
4438 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4439 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4440 No need to lock and unlock the FILE passed to that function.
4441
4442 * stdio-common/vfscanf-internal.c
4443 (__vfscanf_internal, __vfwscanf_internal):
4444 Don't look at _IO_FLAGS2_SCANF_STD.
4445 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4446 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4447 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4448
4449 2018-12-05 Zack Weinberg <zackw@panix.com>
4450 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4451
4452 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4453 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4454 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4455 * libio/strfile.h: Add multiple inclusion guard.
4456 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4457
4458 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4459 consistency with the other version of this file.
4460 (ldbl_compat_symbol): New macro.
4461 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4462 New macro.
4463
4464 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4465 Define __vfscanf_internal or __vfwscanf_internal, depending on
4466 COMPILE_WSCANF; don't define any other public symbols.
4467 Remove errval and code to set errp.
4468 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4469 as the mode_flags argument.
4470 (encode_error, conv_error, input_error): Don't set errval.
4471 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4472 Include vfscanf-internal.c.
4473 * stdio-common/vfscanf.c: New file defining the public entry
4474 point vfscanf, which calls __vfscanf_internal.
4475 * stdio-common/vfwscanf.c: New file defining the public entry
4476 point vfwscanf, which calls __vfwscanf_internal.
4477
4478 * stdio-common/iovfscanf.c: New file.
4479 * stdio-common/iovfwscanf.c: Likewise.
4480
4481 * stdio-common/Makefile (routines): Add vfscanf-internal,
4482 vfwscanf-internal, iovfscanf, iovfwscanf.
4483 * stdio-common/Versions: Mention GLIBC_2.29, so that
4484 it can be used in SHLIB_COMPAT expressions.
4485 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4486 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4487 Call __vfscanf_internal, instead of _IO_vfscanf.
4488 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4489 _IO_vfscanf.
4490 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4491 _IO_vfwscanf.
4492
4493 * libio/iovsscanf.c: Clean up includes, when possible. Use
4494 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4495 __vfscanf_internal or __vfwscanf_internal directly.
4496 * libio/iovswscanf.c: Likewise.
4497 * libio/swscanf.c: Likewise.
4498 * libio/vscanf.c: Likewise.
4499 * libio/vwscanf.c: Likewise.
4500 * libio/wscanf.c: Likewise.
4501 * stdio-common/isoc99_fscanf.c: Likewise.
4502 * stdio-common/isoc99_scanf.c: Likewise.
4503 * stdio-common/isoc99_sscanf.c: Likewise.
4504 * stdio-common/isoc99_vfscanf.c: Likewise.
4505 * stdio-common/isoc99_vscanf.c: Likewise.
4506 * stdio-common/isoc99_vsscanf.c: Likewise.
4507 * stdio-common/scanf.c: Likewise.
4508 * stdio-common/sscanf.c: Likewise.
4509 * wcsmbs/isoc99_fwscanf.c: Likewise.
4510 * wcsmbs/isoc99_swscanf.c: Likewise.
4511 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4512 * wcsmbs/isoc99_vswscanf.c: Likewise.
4513 * wcsmbs/isoc99_vwscanf.c: Likewise.
4514 * wcsmbs/isoc99_wscanf.c: Likewise.
4515
4516 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4517
4518 * include/time.h
4519 (__tz_compute): Replace time_t with __time64_t.
4520 (__tz_convert): Replace time_t* with __time64_t.
4521 (__offtime): Replace time_t* with __time64_t.
4522 * time/gmtime.c
4523 (__gmtime_r): Adjust call to __tz_convert.
4524 (gmtime): Likewise.
4525 * time/localtime.c
4526 (__localtime_r): Likewise.
4527 (localtime): Likewise.
4528 * time/offtime.c: Replace time_t with __time64_t.
4529 * time/tzset.c: Likewise.
4530
4531 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4532
4533 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4534 dynamic linker unless [$(run-built-tests) = yes].
4535
4536 2018-12-03 DJ Delorie <dj@delorie.com>
4537
4538 * support/test-container.c (check_for_unshare_hints): New.
4539 (main): Call it if unshare fails. Add support for "su" scriptlet
4540 command.
4541
4542 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4543
4544 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4545 'START' to indicate that start text should be output.
4546 (gen_test): Likewise.
4547 (main): Generate 'START' for first symbol or '--' line, or at end
4548 of input if not previously generated.
4549
4550 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4551
4552 [BZ #19767]
4553 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4554 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4555 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4556 ALWAYS_USE_VSYSCALL.
4557
4558 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4559
4560 [BZ #23913]
4561 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4562 new_argv by one.
4563
4564 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4565
4566 [BZ #23923]
4567 * locale/programs/localedef.c: Declare boolean hard_links default true.
4568 (options): Add --no-hard-links option.
4569 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4570 * locale/programs/localedef.h: Declare prototype for hard_links.
4571 * locale/programs/locfile.c (write_locale_data): Don't use hard
4572 links if hard_links is false.
4573
4574 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4575
4576 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4577 cpu_features_basic.
4578 (__cache_sysconf): Likewise.
4579 (init_cacheinfo): Likewise.
4580 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4581 populate COMMON_CPUID_INDEX_80000007 and
4582 COMMON_CPUID_INDEX_80000008.
4583 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4584 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4585 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4586 (init_cpu_features): Use _Static_assert on
4587 index_arch_Fast_Unaligned_Load.
4588 __get_cpuid_registers and __get_arch_feature. Updated for
4589 cpu_features_basic. Set stepping in cpu_features.
4590 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4591 (FEATURE_INDEX_2): New.
4592 (FEATURE_INDEX_MAX): Changed to enum.
4593 (COMMON_CPUID_INDEX_D_ECX_1): New.
4594 (COMMON_CPUID_INDEX_80000007): Likewise.
4595 (COMMON_CPUID_INDEX_80000008): Likewise.
4596 (cpuid_registers): Likewise.
4597 (cpu_features_basic): Likewise.
4598 (CPU_FEATURE_USABLE): Likewise.
4599 (bit_arch_XXX_Usable): Likewise.
4600 (cpu_features): Use cpuid_registers and cpu_features_basic.
4601 (bit_arch_XXX): Reweritten.
4602 (bit_cpu_XXX): Likewise.
4603 (index_cpu_XXX): Likewise.
4604 (reg_XXX): Likewise.
4605 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4606 <support/check.h>.
4607 (CHECK_CPU_FEATURE): New.
4608 (CHECK_CPU_FEATURE_USABLE): Likewise.
4609 (cpu_kinds): Likewise.
4610 (do_test): Print vendor, family, model and stepping. Check
4611 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4612 (TEST_FUNCTION): Removed.
4613 Include <support/test-driver.c> instead of
4614 "../../test-skeleton.c".
4615 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4616 Check POPCNT instead of POPCOUNT.
4617 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4618
4619 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4620
4621 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4622 there is no element in `consts'.
4623
4624 2018-12-01 Florian Weimer <fweimer@redhat.com>
4625
4626 * support/support_capture_subprocess.c
4627 (support_capture_subprocess): Check that pipe descriptors have
4628 expected values. Close original pipe descriptors in subprocess.
4629
4630 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4631
4632 [BZ #23032]
4633 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4634 attr with __pthread_default_barrierattr.
4635 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4636 attr with __pthread_default_condattr.
4637 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4638 attr with __pthread_default_mutexattr.
4639 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4640 attr with __pthread_default_rwlockattr.
4641
4642 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4643
4644 * manual/tunables.texi (POSIX Thread Tunables): New node.
4645 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4646 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4647 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4648 __pthread_tunables_init.
4649 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4650 (max_adaptive_count): Define.
4651 * nptl/pthread_mutex_conf.c: New file.
4652 * nptl/pthread_mutex_conf.h: New file.
4653 * sysdeps/generic/adaptive_spin_count.h: New file.
4654 * sysdeps/nptl/dl-tunables.list: New file.
4655 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4656 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4657 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4658 Likewise.
4659
4660 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4661
4662 [BZ #20544]
4663 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4664 * stdlib/on_exit.c (__on_exit): Likewise.
4665 * stdlib/Makefile (tests): Add tst-bz20544.
4666 * stdlib/tst-bz20544.c: New test.
4667
4668 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4669
4670 [BZ #19767]
4671 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4672 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4673 New.
4674
4675 2018-11-30 Florian Weimer <fweimer@redhat.com>
4676
4677 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4678 Extend error logging.
4679 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4680 symbol.
4681
4682 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4683
4684 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4685 __sigismember instead of sigismember.
4686 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4687 cancel_handler): New definitions.
4688 (do_system): Use posix_spawn instead of fork and execl and remove
4689 reentracy code.
4690 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4691 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4692 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4693 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4694 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4695 * sysdeps/unix/sysv/linux/system.c: Likewise.
4696
4697 [BZ #22834]
4698 [BZ #17490]
4699 * NEWS: Add new semantic for atfork with popen and system.
4700 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4701 fork and execl.
4702
4703 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4704
4705 [BZ #23690]
4706 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4707 modification order when accessing reloc_result->addr.
4708 * include/link.h (reloc_result): Add field init.
4709 * nptl/Makefile (tests): Add tst-audit-threads.
4710 (modules-names): Add tst-audit-threads-mod1 and
4711 tst-audit-threads-mod2.
4712 Add rules to build tst-audit-threads.
4713 * nptl/tst-audit-threads-mod1.c: New file.
4714 * nptl/tst-audit-threads-mod2.c: Likewise.
4715 * nptl/tst-audit-threads.c: Likewise.
4716 * nptl/tst-audit-threads.h: Likewise.
4717
4718 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4719
4720 * scripts/gen-as-const.py: New file.
4721 * scripts/gen-as-const.awk: Remove.
4722 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4723 gen-as-const.py.
4724 ($(objpfx)test-as-const-%.c): Likewise.
4725
4726 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4727
4728 * elf/dl-exception.c: Include <_itoa.h>.
4729
4730 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4731
4732 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4733 returned by __f_setlk.
4734
4735 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4736 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4737
4738 * elf/Makefile (tests-internal): Add tst-create_format1.
4739 * elf/dl-exception.c (_dl_exception_create_format): Support
4740 %x, %lx and %zx.
4741 * elf/tst-create_format1.c: New file.
4742
4743 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4744
4745 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4746 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4747 gnulib.)
4748 * argp/argp-help.c (__argp_failure): Likewise.
4749
4750 2018-11-29 Mao Han <han_mao@c-sky.com>
4751
4752 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4753 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4754 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4755 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4756 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4757 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4758 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4759 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4760 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4761 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4762 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4763 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4764 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4765 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4766 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4767 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4768 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4769 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4770 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4771 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4772 (R_CKCORE_TLS_TPOFF32): New defines.
4773
4774 2018-11-29 Florian Weimer <fweimer@redhat.com>
4775
4776 * posix/Makefile (before-compile): Remove testcases.h and
4777 ptestcases.h.
4778 (generated): Add testcases.h and ptestcases.h.
4779 (testcases.h, ptestcases.h): Move to $(objpfx).
4780 (runtests.o): Add dependency on testcases.h.
4781 (runptests.o): Add dependency on ptestcases.h.
4782 * posix/testcases.h, posix/ptestcases.h: Remove files.
4783 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4784 not touch posix/testcases.h and posix/ptestcases.h.
4785
4786 2018-11-28 Florian Weimer <fweimer@redhat.com>
4787
4788 support: Add signal support to support_capture_subprocess_check.
4789 * support/capture_subprocess.h (support_capture_subprocess_check):
4790 Adjust comment and rename parameter.
4791 * support/support_capture_subprocess_check.c
4792 (print_actual_status): New function.
4793 (support_capture_subprocess_check): Support negative
4794 status_or_signal. Call print_actual_status.
4795 * support/tst-support_capture_subprocess.c (do_test): Call
4796 support_capture_subprocess_check.
4797 * libio/tst-vtables-common.c (termination_status)
4798 (init_termination_status): Remove.
4799 (check_for_termination): Adjust support_capture_subprocess_check
4800 call.
4801 (do_test): Remove call to init_termination_status.
4802
4803 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4804
4805 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4806 source directory instead of a copy.
4807 (CommandList.create_copy_dir): Remove.
4808
4809 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4810
4811 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4812
4813 2018-11-28 Florian Weimer <fweimer@redhat.com>
4814
4815 * support/support.h (support_quote_string): Do not use str
4816 parameter name.
4817
4818 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4819
4820 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4821 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4822
4823 2018-11-27 Florian Weimer <fweimer@redhat.com>
4824
4825 * support/support.h (support_quote_string): Declare.
4826 * support/support_quote_string.c: New file.
4827 * support/tst-support_quote_string.c: Likewise.
4828 * support/Makefile (libsupport-routines): Add
4829 support_quote_string.
4830 (tests): Add tst-support_quote_string.
4831
4832 2018-11-27 Florian Weimer <fweimer@redhat.com>
4833
4834 [BZ #23927]
4835 CVE-2018-19591
4836 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4837 descriptor leak in case of ENODEV error.
4838
4839 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4840
4841 [BZ #19767]
4842 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4843 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4844 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4845
4846 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4847
4848 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4849 Error for unknown lines.
4850
4851 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4852
4853 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4854 Touch additional files.
4855
4856 2018-11-26 Florian Weimer <fweimer@redhat.com>
4857
4858 [BZ #23907]
4859 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4860 double-frees.
4861
4862 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4863
4864 [BZ #19767]
4865 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4866 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4867 SHARED. Include sysdep.h.
4868 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4869 ALWAYS_USE_VSYSCALL.
4870 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4871 ALWAYS_USE_VSYSCALL.
4872
4873 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4874
4875 [BZ #19767]
4876 * nptl/Makefile (tests-static): Add tst-cond11-static.
4877 (tests): Likewise.
4878 * nptl/tst-cond11-static.c: New File.
4879 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4880 tst-affinity-static.
4881 (tests): Likewise.
4882 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4883 instead of SHARED.
4884 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4885 (USE_VSYSCALL): Likewise.
4886 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4887 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4888 instead of SHARED.
4889 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4890 SHARED.
4891 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4892 New.
4893
4894 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4895
4896 [BZ #23915]
4897 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4898 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4899 Undefine.
4900
4901 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4902
4903 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4904 (tst-cet-legacy-1a-ARGS): New.
4905 ($(objpfx)tst-cet-legacy-1a): New target.
4906 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4907
4908 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4909
4910 * conform/conformtest.py (CompileSubTest.__init__): Set
4911 self.run_early to False.
4912 (ExecuteSubTest.__init__): Likewise.
4913 (HeaderTests.run): Try running all non-optional, non-XFAILed
4914 compilation tests in a single execution of the compiler.
4915
4916 * conform/conformtest.py (CompileSubTest): New class.
4917 (ExecuteSubTest): Likewise.
4918 (ElementTest.run): Rename to gen_subtests. Append tests to
4919 self.subtests instead of running them.
4920 (ConstantTest.run): Likewise.
4921 (SymbolTest.run): Likewise.
4922 (TypeTest.run): Likewise.
4923 (TagTest.run): Likewise.
4924 (FunctionTest.run): Likewise.
4925 (VariableTest.run): Likewise.
4926 (MacroFunctionTest.run): Likewise.
4927 (MacroStrTest.run): Likewise.
4928 (HeaderTests.handle_test_line): Generate subtests for tests.
4929 (HeaderTests.run): Run subtests for tests.
4930
4931 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4932
4933 * math/Versions (GLIBC_2.29): Add pow.
4934 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4935 symbol.
4936 * math/w_pow.c: New file.
4937 * sysdeps/i386/fpu/w_pow.c: New file.
4938 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4939 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4940 and add necessary aliases.
4941 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4942 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4943 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4944 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4945 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4946 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4947 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4948 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4949 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4950 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4951 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4952 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4953 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4954 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4955 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4956 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4957 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4958 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4959 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4960 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4961 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4962 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4963 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4964 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4965 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4966 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4967 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4968 __pow.
4969 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4970 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4971 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4972
4973 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4974
4975 * math/Versions (GLIBC_2.29): Add log2.
4976 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4977 symbol.
4978 * math/w_log2.c: New file.
4979 * sysdeps/i386/fpu/w_log2.c: New file.
4980 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4981 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4982 and add necessary aliases.
4983 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4984 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4985 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4986 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4987 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4988 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4989 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4990 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4991 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4992 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4993 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4994 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4995 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4996 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4997 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4998 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4999 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5000 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5001 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5002 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5003 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5004 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5005 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5006 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5007 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5008 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5009
5010 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5011
5012 * math/Versions (GLIBC_2.29): Add log.
5013 * math/w_log_compat.c (__log_compat): Change to versioned compat
5014 symbol.
5015 * math/w_log.c: New file.
5016 * sysdeps/i386/fpu/w_log.c: New file.
5017 * sysdeps/ia64/fpu/e_log.S: Update.
5018 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
5019 and add necessary aliases.
5020 * sysdeps/ieee754/dbl-64/w_log.c: New file.
5021 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
5022 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5023 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5024 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5025 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5026 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5027 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5028 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5029 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5030 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5031 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5032 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5033 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5034 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5036 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5037 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5039 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5040 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5041 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5042 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5043 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5044 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5045 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5046 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5047 __log.
5048 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5049 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5050 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5051 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5052
5053 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5054
5055 * math/Versions (GLIBC_2.29): Add exp and exp2.
5056 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5057 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5058 * math/w_exp_compat.c (__exp_compat): Likewise.
5059 * math/w_exp.c: New file.
5060 * math/w_exp2.c: New file.
5061 * sysdeps/i386/fpu/w_exp.c: New file.
5062 * sysdeps/i386/fpu/w_exp2.c: New file.
5063 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5064 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5065 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5066 and add necessary aliases.
5067 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5068 and add necessary aliases.
5069 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5070 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5071 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5072 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5073 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5074 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5075 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5076 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5077 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5078 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5079 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5080 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5081 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5082 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5083 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5084 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5085 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5086 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5087 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5088 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5089 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5090 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5091 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5092 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5093 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5094 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5095 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5096 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5097 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5098 (__ieee754_exp): Rename to __exp.
5099 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5100 (__ieee754_exp): Rename to __exp.
5101 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5102 (__ieee754_exp): Rename to __exp.
5103 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5104 __exp.
5105 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5106
5107 2018-11-20 DJ Delorie <dj@redhat.com>
5108
5109 * malloc/malloc.c (tcache_entry): Add key field.
5110 (tcache_put): Set it.
5111 (tcache_get): Likewise.
5112 (_int_free): Check for double free in tcache.
5113 * malloc/tst-tcfree1.c: New.
5114 * malloc/tst-tcfree2.c: New.
5115 * malloc/Makefile: Run the new tests.
5116 * manual/probes.texi: Document memory_tcache_double_free probe.
5117
5118 * dlfcn/dlerror.c (check_free): Prevent double frees.
5119
5120 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5121
5122 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5123
5124 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5125
5126 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5127 in tests. Use names for format arguments.
5128 (ConstantTest.run): Likewise.
5129 (SymbolTest.run): Likewise.
5130 (TypeTest.run): Likewise.
5131 (TagTest.run): Likewise.
5132 (FunctionTest.run): Likewise.
5133 (VariableTest.run): Likewise.
5134 (MacroFunctionTest.run): Likewise.
5135 (MacroStrTest.run): Likewise.
5136 (HeaderTests.__init__): Set self.num_tests.
5137 (HeaderTests.handle_test_line): Set test.num. Increment
5138 self.num_tests.
5139
5140 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5141
5142 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5143 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5144 SEEK_SET.
5145
5146 2018-11-19 Mao Han <han_mao@c-sky.com>
5147
5148 * scripts/config.guess: Update to version 2018-08-29.
5149 * scripts/config.sub: Update to version 2018-08-29.
5150
5151 2018-11-19 Florian Weimer <fweimer@redhat.com>
5152
5153 support: Print timestamps in timeout handler.
5154 * support/support_test_main.c (print_timestamp): New function.
5155 (signal_handler): Use it to print the termination time and the
5156 time of the last write to standard output.
5157
5158 2018-11-16 Zack Weinberg <zackw@panix.com>
5159 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5160
5161 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5162 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5163 argument.
5164 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5165 and add flags argument. Check flags instead of __ldbl_is_dbl when
5166 deciding whether to set is_long_double.
5167 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5168 passing zero for flags argument.
5169 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5170
5171 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5172 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5173 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5174 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5175 variable names. Remove libc_hidden_def/libc_hidden_proto from
5176 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5177 longer called from within the library.
5178 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5179 for __nldbl___vstrfmon_l, declare it explicitly.
5180
5181 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5182
5183 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5184
5185 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5186 macros
5187 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5188 F_SETLK64, F_SETLKW64, respectively.
5189 * sysdeps/mach/hurd/f_setlk.c: New file.
5190 * sysdeps/mach/hurd/f_setlk.h: New file.
5191 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5192 f_setlk.
5193 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5194 (__libc_fcntl): Move non-flock operations to...
5195 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5196 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5197
5198 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5199
5200 mktime: DEBUG_MKTIME cleanup
5201 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5202 And it’s no longer needed now that glibc and Gnulib both have
5203 their own testing mechanisms for mktime.
5204 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5205
5206 mktime: fix non-EOVERFLOW errno handling
5207 [BZ#23789]
5208 mktime was not properly reporting failures when the underlying
5209 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5210 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5211 The problem could happen on non-glibc platforms, with Gnulib.
5212 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5213 (tm_diff): ... this simpler function, which does not change errno.
5214 All callers changed to deal with errno themselves.
5215 (ranged_convert, __mktime_internal): Return failure immediately if
5216 the underlying function reports any failure other than EOVERFLOW.
5217 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5218 gap code fails.
5219
5220 mktime: fix bug with Y2038 DST transition
5221 [BZ#23789]
5222 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5223 mishandle a DST transition that jumps over the Y2038 boundary.
5224 No such DST transitions are known so this is only a theoretical
5225 bug, but we might as well do things right.
5226
5227 mktime: make more room for overflow
5228 [BZ#23789]
5229 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5230 This is so that we can add tm_diff results to a previous guess,
5231 which will be useful in a later patch.
5232
5233 mktime: simplify offset guess
5234 [BZ#23789]
5235 * time/mktime.c (__mktime_internal): Omit excess precision.
5236
5237 mktime: new test for mktime failure
5238 [BZ#23789]
5239 Based on a test suggested by Albert Aribaud in:
5240 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5241 * time/Makefile (tests): Add bug-mktime4.
5242 * time/bug-mktime4.c: New file.
5243
5244 mktime: fix EOVERFLOW bug
5245 [BZ#23789]
5246 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5247 Include libc-config.h, not config.h, for __set_errno.
5248 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5249
5250 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5251
5252 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5253 __attribute_copy__ to copy attributes from name. Drop static qualifier
5254 to avoid warnings about leaf attribute not having effect on static
5255 functions.
5256
5257 2018-11-13 Florian Weimer <fweimer@redhat.com>
5258
5259 * malloc/malloc.c (fastbin_push_entry): New function.
5260 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5261 (REMOVE_FB): Remove macro.
5262 (_int_malloc): Use fastbin_pop_entry and reindent.
5263 (_int_free): Use fastbin_push_entry.
5264 (malloc_consolidate): Use atomic_exchange_acquire.
5265
5266 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5267
5268 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5269 alias attribute, not with strong_alias.
5270
5271 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5272 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5273 with additional parameter thread.
5274 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5275 in terms of __hidden_ver2.
5276 (hidden_tls_def): New macro.
5277 (libc_hidden_tls_def): Likewise.
5278 (rtld_hidden_tls_def): Likewise.
5279 (libm_hidden_tls_def): Likewise.
5280 (libmvec_hidden_tls_def): Likewise.
5281 (libresolv_hidden_tls_def): Likewise.
5282 (librt_hidden_tls_def): Likewise.
5283 (libdl_hidden_tls_def): Likewise.
5284 (libnss_files_hidden_tls_def): Likewise.
5285 (libnsl_hidden_tls_def): Likewise.
5286 (libnss_nisplus_hidden_tls_def): Likewise.
5287 (libutil_hidden_tls_def): Likewise.
5288 (libutil_hidden_tls_def): Likweise.
5289 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5290 libc_hidden_tls_def.
5291 (__sim_disabled_exceptions_thread): Likewise.
5292 (__sim_round_mode_thread): Likewise.
5293
5294 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5295 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5296 copy attributes from name.
5297
5298 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5299
5300 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5301 Use __attribute_copy__ to copy attributes from name.
5302
5303 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5304 with __hidden_ver1 call.
5305 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5306 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5307 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5308 (__cosf): Do not declare here.
5309 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5310 (__sincosf): Do not declare here.
5311 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5312 (__sinf): Do not declare here.
5313
5314 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5315 (__BIG_ENDIAN): Likewise.
5316 (__BYTE_ORDER): Likewise.
5317 (strong_alias): Likewise.
5318 (_strong_alias): Likewise.
5319
5320 2018-11-12 Florian Weimer <fweimer@redhat.com>
5321
5322 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5323 function. Move after the definition of in_smallbin_range. Do not
5324 use __builtin_expect for paths that lead to a noreturn function.
5325 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5326 because it is unclear whether this is in fact an unlikely
5327 condition.
5328 (_int_malloc, _int_free): Adjust.
5329 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5330 variables.
5331 * malloc/arena.c (heap_trim): Likewise.
5332
5333 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5334
5335 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5336 it, free it if needed.
5337 (reauthenticate): Test and use ccwdir.
5338 (child_init_port): In non-resetids case, test and use ccwdir.
5339 (child_chdir): New nested function to set ccwdir.
5340 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5341 * hurd/hurd/port.h (_hurd_port_move): New function.
5342 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5343 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5344 * hurd/Versions (_hurd_port_move): Export function.
5345 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5346 symbol.
5347 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5348 of dtablesize for allocating dtable_cloexec.
5349
5350 2018-11-09 Martin Sebor <msebor@redhat.com>
5351
5352 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5353 it's already defined.
5354 (_strong_alias): Use __attribute_copy__.
5355 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5356 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5357 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5358 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5359 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5360 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5361 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5362 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5363 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5364 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5365 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5366 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5367 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5368 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5369 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5370 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5371 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5372 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5373 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5374
5375 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5376
5377 * misc/tst-efgcvt.c: Include support/check.h and
5378 support/test-driver.c. Do not include test-skeleton.c.
5379 (error_count): Remove.
5380 (output_error): Replace increments to error_count with calls to
5381 support_record_failure.
5382 (output_r_error): Likewise.
5383 (special): Likewise.
5384 (do_test): Unconditionally return zero.
5385 (TEST_FUNCTION): Remove.
5386
5387 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5388
5389 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5390 not $(@D)/scratch.
5391 ($(linknamespace-header-tests)): Likewise.
5392
5393 * conform/conformtest.py: New file.
5394 * conform/conformtest.pl: Remove.
5395 * conform/GlibcConform.pm: Likewise.
5396 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5397 (KEYWORDS_C99): Likewise.
5398 (KEYWORDS): Likewise.
5399 * conform/Makefile ($(conformtest-header-tests)): Use
5400 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5401 option. Use --header instead of --headers.
5402 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5403 function entries.
5404 * conform/data/spawn.h-data: Likewise.
5405 * conform/data/fcntl.h-data (openat): Add space after function
5406 name.
5407 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5408 (wcscasecmp_l): Likewise.
5409 * conform/data/termios.h-data (c_cc): Add space after element
5410 name.
5411
5412 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5413
5414 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5415 instead of manually comparing and reporting mismatching strings.
5416 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5417 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5418
5419 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5420
5421 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5422 __ASSUME_SOCKETCALL.
5423 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5424 (__ASSUME_SOCKETCALL): Remove.
5425 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5426 (__ASSUME_SOCKETCALL): Likewise.
5427 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5428 (__ASSUME_SOCKETCALL): Likewise.
5429 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5430 (__ASSUME_SOCKETCALL): Likewise.
5431 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5432 (__ASSUME_SOCKETCALL): Likewise.
5433 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5434 (__ASSUME_SOCKETCALL): Likewise.
5435 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5436 (__ASSUME_SOCKETCALL): Likewise.
5437
5438 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5439
5440 [BZ #23509]
5441 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5442 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5443 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5444 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5445 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5446 lc_unknown.
5447
5448 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5449
5450 [BZ #17630]
5451 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5452
5453 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5454
5455 [BZ #23867]
5456 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5457 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5458 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5459 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5460
5461 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5462
5463 * support/support_test_compare_string.c
5464 (support_test_compare_string): Fix printf format.
5465
5466 2018-11-07 Florian Weimer <fweimer@redhat.com>
5467
5468 Implement TEST_COMPARE_STRING.
5469 * support/check.h (TEST_COMPARE_STRING): Define.
5470 (support_test_compare_string): Declare.
5471 * support/Makefile (libsupport-routines): Add
5472 support_test_compare_string.
5473 (tests): Add tst-test_compare_string.
5474 * support/support_test_compare_string.c: New file.
5475 * support/tst-test_compare_string.c: Likewise.
5476
5477 2018-11-07 Andreas Schwab <schwab@suse.de>
5478
5479 [BZ #23864]
5480 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5481 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5482 Undef.
5483
5484 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5485
5486 [BZ #23862]
5487 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5488 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5489 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5490 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5491 Likewise.
5492
5493 2018-11-06 Florian Weimer <fweimer@redhat.com>
5494
5495 [BZ #17405]
5496 * posix/Makefile (routines): Add spawn_faction_addchdir.
5497 (tests): Add tst-spawn-chdir.
5498 * posix/Versions (GLIBC_2.29): Add
5499 posix_spawn_file_actions_addchdir_np.
5500 * posix/spawn_faction_addchdir.c: New file.
5501 * posix/spawn_faction_destroy.c
5502 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5503 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5504 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5505 chdir_action.
5506 * posix/tst-spawn-chdir.c: New file.
5507 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5508 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5509 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5510 posix_spawn_file_actions_addchdir_np.
5511 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5512 Likewise.
5513 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5514 Likewise.
5515 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5516 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5517 Likewise.
5518 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5519 Likewise.
5520 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5521 Likewise.
5522 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5523 Likewise.
5524 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5525 Likewise.
5526 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5527 Likewise.
5528 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5529 (GLIBC_2.29): Likewise.
5530 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5531 (GLIBC_2.29): Likewise.
5532 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5533 (GLIBC_2.29): Likewise.
5534 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5535 (GLIBC_2.29): Likewise.
5536 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5537 Likewise.
5538 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5539 (GLIBC_2.29): Likewise.
5540 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5541 (GLIBC_2.29): Likewise.
5542 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5543 (GLIBC_2.29): Likewise.
5544 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5545 (GLIBC_2.29): Likewise.
5546 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5547 Likewise.
5548 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5549 Likewise.
5550 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5551 Likewise.
5552 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5553 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5554 Likewise.
5555 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5556 Likewise.
5557 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5558 Likewise.
5559 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5560 Likewise.
5561
5562 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5563
5564 * misc/Makefile (tests): Add tst-ldbl-error.
5565 * misc/tst-ldbl-error.c: New file.
5566
5567 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5568
5569 * misc/Makefile (tests): Add tst-ldbl-warn.
5570 * misc/tst-ldbl-warn.c: New file.
5571
5572 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5573
5574 * argp/Makefile (tests): Add tst-ldbl-argp.
5575 * argp/tst-ldbl-argp.c: New file.
5576
5577 2018-11-05 Arjun Shankar <arjun@redhat.com>
5578
5579 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5580 __gconv_path_elem and call __gconv_get_path unconditionally.
5581
5582 2018-11-05 Andreas Schwab <schwab@suse.de>
5583
5584 [BZ #22927]
5585 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5586 creating the first helper thread failed.
5587
5588 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5589
5590 * sysdeps/mach/hurd/msync.c: New file.
5591
5592 2018-11-02 Florian Weimer <fweimer@redhat.com>
5593
5594 * support/shell-container.c (copy_func): Call
5595 support_copy_file_range instead of copy_file_range to support
5596 cross-device copies.
5597
5598 2018-11-02 Florian Weimer <fweimer@redhat.com>
5599
5600 * support/test-container.c: Include <libc-pointer-arith.h> for
5601 ALIGN_UP.
5602
5603 2018-11-01 Zong Li <zong@andestech.com>
5604
5605 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5606 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5607 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5608 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5609
5610 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5611 variable to avoid overlap arguments.
5612
5613 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5614
5615 * posix/bug-regex22.c (main): Use puts with distinct error
5616 messages for unexpected success of re_compile_pattern, not printf
5617 with NULL argument to %s.
5618
5619 * stdio-common/bug22.c: Include <libc-diag.h>.
5620 (do_test): Disable -Wformat-overflow= warnings around fprintf
5621 calls outputting more than INT_MAX characters.
5622 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5623 around printf call with NULL %s argument.
5624
5625 [BZ #23848]
5626 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5627 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5628 Undefine.
5629 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5630 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5631 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5632 (__ASSUME_SENDTO_SYSCALL): Likewise.
5633 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5634 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5635 [!__arch64__].
5636 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5637 (__ASSUME_CONNECT_SYSCALL): Likewise.
5638 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5639 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5640 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5641 Define.
5642 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5643 Likewise.
5644 [__LINUX_KERNEL_VERSION >= 0x040400]
5645 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5646 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5647 Remove.
5648 (listen): Likewise.
5649 (setsockopt): Likewise.
5650
5651 2018-11-01 Fredrik Noring <noring@nocrew.org>
5652
5653 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5654 with the ISA override.
5655
5656 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5657
5658 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5659 #endif.
5660
5661 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5662
5663 * manual/errno.texi (EIEIO): Document how translators should
5664 translate the error message.
5665 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5666 printing trailing whitespaces refused by git.
5667 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5668 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5669 * hurd/Makefile (user-interfaces): Add pci.
5670
5671 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5672
5673 * conform/linknamespace.py: New file.
5674 * conform/linknamespace.pl: Remove file.
5675 * conform/Makefile ($(linknamespace-header-tests)): Use
5676 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5677 option.
5678
5679 2018-10-30 Florian Weimer <fweimer@redhat.com>
5680
5681 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5682 memory leaks.
5683
5684 2018-10-30 Florian Weimer <fweimer@redhat.com>
5685
5686 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5687
5688 2018-10-30 Florian Weimer <fweimer@redhat.com>
5689
5690 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5691 support_blob_repeat.
5692
5693 2018-10-30 Florian Weimer <fweimer@redhat.com>
5694
5695 Avoid spurious test failures in stdlib/test-bz22786.
5696 * support/Makefile (libsupport-routines): Add blob_repeat.
5697 (tests): Add tst-support_blob_repeat.
5698 * support/blob_repeat.h: New file.
5699 * support/blob_repeat.c: Likewise.
5700 * support/tst-support_blob_repeat.c: Likewise.
5701 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5702 support_blob_repeat_allocate.
5703
5704 2018-10-30 Andreas Schwab <schwab@suse.de>
5705
5706 [BZ #23125]
5707 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5708 Don't use tail call.
5709 * elf/tst-unwind-main.c: New file.
5710 * elf/Makefile (tests): Add tst-unwind-main.
5711 (CFLAGS-tst-unwind-main.c): Define.
5712
5713 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5714
5715 [BZ #23791]
5716 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5717 n_cs_precedes to 0.
5718 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5719
5720 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5721
5722 * conform/glibcconform.py: Do not import shutil.
5723 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5724 of mkdtemp.
5725
5726 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5727 critic_missing for versions before 3.4.
5728 * configure: Regenerated.
5729 * manual/install.texi (Tools for Compilation): Document
5730 requirement for Python to build glibc.
5731 * INSTALL: Regenerated.
5732 * Rules [PYTHON]: Make code unconditional.
5733 * benchtests/Makefile [PYTHON]: Likewise.
5734 * conform/Makefile [PYTHON]: Likewise.
5735 * manual/Makefile [PYTHON]: Likewise.
5736 * math/Makefile [PYTHON]: Likewise.
5737
5738 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5739
5740 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5741 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5742 answer to interrupt_operation, return EIEIO instead of EINTR.
5743 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5744 _hurd_intr_rpc_msg_about_to global point to start of controlled
5745 assembly snippet. Make it check canceled flag.
5746 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5747 the _hurd_intr_rpc_msg_about_to point.
5748 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5749 issue, remove cancel flag check.
5750
5751 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5752
5753 * scripts/build-many-glibcs.py: Remove compatibility for missing
5754 os.cpu_count and re.fullmatch.
5755
5756 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5757
5758 [BZ #23822]
5759 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5760 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5761 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5762
5763 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5764
5765 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5766 macro.
5767
5768 2018-10-25 Florian Weimer <fweimer@redhat.com>
5769
5770 [BZ #23562]
5771 [BZ #23821]
5772 XFAIL siginfo_t si_band conform test on sparc64.
5773 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5774 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5775 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5776 (conformtest-xfail-conds): Add sparc64-linux.
5777 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5778 sparc64.
5779 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5780
5781 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5782
5783 * elf/elf.h (NT_MIPS_DSP): New macro.
5784 (NT_MIPS_FP_MODE): Likewise.
5785
5786 2018-10-25 Zong Li <zong@andestech.com>
5787
5788 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5789 name by adding the file extension (.so).
5790
5791 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5792
5793 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5794 (test-xfail-ISO11/threads.h/linknamespace,
5795 test-xfail-ISO11/threads.h/conform): Add.
5796
5797 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5798
5799 * math/gen-libm-test.py: Import os.
5800 (ALL_FLOATS_MANUAL): New constant.
5801 (ALL_FLOATS_SUFFIX): Likewise.
5802 (Ulps.all_functions): New function.
5803 (real_all_ulps): Likewise.
5804 (generate_err_table_sub): Likewise.
5805 (generate_err_table): Likewise.
5806 (main): Handle -s and -m options.
5807 * manual/libm-err-tab.pl: Remove.
5808 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5809 instead of libm-err-tab.pl.
5810 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5811 != no].
5812 * manual/install.texi (Tools for Compilation): Document
5813 requirement for Python to build manual.
5814 * INSTALL: Regenerated.
5815
5816 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5817
5818 * bits/time64.h: New file.
5819 * include/time.h: Replace internal_time_t with __time64_t.
5820 * posix/bits/types (__time64_t): Add.
5821 * stdlib/Makefile: Add bits/time64.h to includes.
5822 * time/tzfile.c: Replace internal_time_t with __time64_t.
5823
5824 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5825
5826 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5827 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5828 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5829 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5830 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5831 prototype.
5832 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5833 * posix/spawn_faction_addclose.c
5834 (__posix_spawn_file_actions_addclose): Add hidden definition.
5835 * posix/spawn_faction_adddup2.c
5836 (__posix_spawn_file_actions_adddup2): Likewise.
5837 * posix/spawn_faction_destroy.c
5838 (__posix_spawn_file_actions_destroy): Likewise.
5839 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5840 Likewise.
5841 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5842 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5843 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5844 Likewise.
5845 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5846 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5847 Likewise.
5848
5849 2018-10-24 Andreas Schwab <schwab@suse.de>
5850
5851 [BZ #18093]
5852 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5853 format cache.
5854 * elf/cache.c (print_cache): Likewise.
5855
5856 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5857
5858 * bits/timesize.h: New file.
5859 * stdlib/Makefile (headers): Add bits/timesize.h.
5860 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5861 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5862 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5863 (__SEM_PAD_AFTER_TIME): Likewise.
5864 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5865 (__SHM_PAD_AFTER_TIME): Likewise.
5866 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5867 (__MSQ_PAD_BEFORE_TIME): Likewise.
5868 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5869 (__SEM_PAD_BEFORE_TIME): Likewise.
5870 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5871 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5872 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5873 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5874 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5875 (__MSQ_PAD_BEFORE_TIME): Likewise.
5876 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5877 (__SEM_PAD_BEFORE_TIME): Likewise.
5878 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5879 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5880 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5881 (__MSQ_PAD_BEFORE_TIME): Likewise.
5882 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5883 (__SEM_PAD_BEFORE_TIME): Likewise.
5884 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5885 (__SHM_PAD_BEFORE_TIME): Likewise.
5886 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5887 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5888 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5889
5890 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5891
5892 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5893 USE_RDTSCP is defined.
5894 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5895 USE_RDTSCP is defined.
5896
5897 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5898
5899 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5900 defined.
5901
5902 [BZ #23709]
5903 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5904 independently of other flags.
5905
5906 2018-10-23 Florian Weimer <fweimer@redhat.com>
5907
5908 * time/tst-mktime2.c (N_STRINGS): Remove.
5909 (set_timezone): New function.
5910 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5911 (mktime_test1): Report localtime failure and check errno value.
5912 Use TEST_COMPARE.
5913 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5914 (do_test): Remove alarm call. Use set_timezone and array_length.
5915
5916 2018-10-23 Andreas Schwab <schwab@suse.de>
5917
5918 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5919 (__start_context): Use END instead of PSEUDO_END.
5920
5921 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5922
5923 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5924 version to 4.19.
5925
5926 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5927 version to 4.19.
5928
5929 [BZ #23793]
5930 * wcsmbs/c32rtomb.c: New file.
5931 * wcsmbs/mbrtoc32.c: Likewise.
5932 * wcsmbs/tst-c32-state.c: Likewise.
5933 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5934 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5935 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5936 (tests): Add tst-c32-state.
5937 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5938 $(gen-locales).
5939
5940 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5941
5942 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5943 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5944
5945 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5946
5947 [BZ #23794]
5948 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5949 pair and return 0 in that case, and use saved character to
5950 interpret following character.
5951 * wcsmbs/tst-c16-surrogate.c: New file.
5952 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5953 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5954 Depend on $(gen-locales)
5955
5956 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5957
5958 [BZ #23562]
5959 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5960 (struct siginfo_t): Use correct type for si_band.
5961
5962 2018-10-19 Florian Weimer <fweimer@redhat.com>
5963
5964 [BZ #23689]
5965 * resource/bits/types/struct_rusage.h (struct rusage): Update
5966 comment on struct. Remove extraneous field comment.
5967
5968 2018-10-18 David S. Miller <davem@davemloft.net>
5969
5970 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5971 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5972 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5973 sysdep_routines in subdir elf.
5974 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5975 version for __vdso_clock_gettime.
5976 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5977 Define.
5978 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5979 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5980
5981 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5982
5983 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 * sysdeps/i386/init-arch.h: Removed.
5986 * sysdeps/i386/i586/init-arch.h: Likewise.
5987 * sysdeps/i386/i686/init-arch.h: Likewise.
5988 * sysdeps/i386/i686/hp-timing.h: Likewise.
5989 * sysdeps/x86_64/hp-timing.h: Likewise.
5990 * sysdeps/i386/isa.h: New file.
5991 * sysdeps/i386/i586/isa.h: Likewise.
5992 * sysdeps/i386/i686/isa.h: Likewise.
5993 * sysdeps/x86_64/isa.h: Likewise.
5994 * sysdeps/x86/hp-timing.h: New file.
5995 * sysdeps/x86/init-arch.h: Include <isa.h>.
5996
5997 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5998
5999 * math/libm-test-pow.inc (pow_test_data): Do not allow
6000 divide-by-zero exception for pow(+/- 0, -Inf).
6001
6002 2018-10-17 Zack Weinberg <zackw@panix.com>
6003
6004 * manual/job.texi (Job Control is Optional): Remove node, as
6005 job control has not been optional in quite some time.
6006 (Job Control): Mention briefly that systems older than
6007 POSIX.1-2001 might not support job control.
6008 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
6009 defined on systems conforming to POSIX.1-2001.
6010
6011 2018-10-17 Arjun Shankar <arjun@redhat.com>
6012
6013 [BZ #22062]
6014 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
6015 indentation.
6016 * (__gconv_read_conf): Mark function static.
6017 * (once): New static variable.
6018 * (__gconv_load_conf): New function.
6019 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
6020 * iconv/gconv_db.c (once): Remove static variable.
6021 * (__gconv_compare_alias): Use __gconv_load_conf instead of
6022 __gconv_read_conf.
6023 * (__gconv_find_transform): Likewise.
6024 * iconv/tst-iconv-mt.c: New test.
6025 * iconv/Makefile: Add tst-iconv_mt.
6026
6027 2018-10-17 Joseph Myers <joseph@codesourcery.com>
6028
6029 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6030 bits/shm-pad.h.
6031 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
6032 (shmatt_t): Define as __syscall_ulong_t.
6033 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
6034 and [__SHM_PAD_AFTER_TIME].
6035 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
6036 Define shm_segsz and associated padding based on
6037 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
6038 Use __syscall_ulong_t instead of unsigned long int.
6039 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6040 unsigned long int.
6041 [__USE_MISC] (struct shm_info): Likewise.
6042 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6043 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6044 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6045 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6046 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6047 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6048 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6049 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6050 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6051 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6052 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6053
6054 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6055 bits/shmlba.h.
6056 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6057 (SHMLBA): Remove macro.
6058 (__getpagesize): Remove function declaration.
6059 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6060 <bits/shmlba.h>.
6061 (SHMLBA): Remove macro.
6062 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6063 <bits/shmlba.h>.
6064 (SHMLBA): Remove macro.
6065 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6066 <bits/shmlba.h>.
6067 (SHMLBA): Remove macro.
6068 (__getpagesize): Remove function declaration.
6069 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6070 <bits/shmlba.h>.
6071 (SHMLBA): Remove macro.
6072 (__getshmlba): Remove function declaration.
6073 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6074 (SHMLBA): Remove macro.
6075 (__getpagesize): Remove function declaration.
6076 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6077 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6078 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6079 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6080 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6081 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6082 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6083 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6084 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6085 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6086
6087 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6088
6089 [BZ #23275]
6090 * nptl/tst-mutex10.c: New File.
6091 * nptl/Makefile (tests): Add tst-mutex10.
6092 (tst-mutex10-ENV): New variable.
6093 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6094 Ensure that elision path is used if elision is available.
6095 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6096 Likewise.
6097 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6098 Likewise.
6099 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6100 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6101 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6102 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6103 Likewise.
6104 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6105 (__pthread_mutex_cond_lock_adjust): Likewise.
6106 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6107 Likewise.
6108 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6109 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6110 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6111 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6112 Add comments.
6113 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6114 Use atomic_load_relaxed and atomic_store_relaxed.
6115 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6116 Use atomic_store_relaxed.
6117
6118 2018-10-17 Andreas Schwab <schwab@suse.de>
6119
6120 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6121 * crypt/badsalttest.c (TIMEOUT): Likewise.
6122 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6123 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6124 * io/test-lfs.c (TIMEOUT): Likewise.
6125 * libio/tst-atime.c (TIMEOUT): Likewise.
6126 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6127 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6128 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6129 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6130 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6131 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6132 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6133 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6134 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6135 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6136 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6137 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6138 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6139 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6140 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6141 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6142 * nptl/tst-once2.c (TIMEOUT): Likewise.
6143 * nptl/tst-once3.c (TIMEOUT): Likewise.
6144 * nptl/tst-once4.c (TIMEOUT): Likewise.
6145 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6146 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6147 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6148 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6149 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6150 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6151 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6152 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6153 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6154 * posix/tst-chmod.c (TIMEOUT): Likewise.
6155 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6156 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6157 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6158 * posix/tst-regex2.c (TIMEOUT): Likewise.
6159 * posix/tst-waitid.c (TIMEOUT): Likewise.
6160 * rt/tst-aio.c (TIMEOUT): Likewise.
6161 * rt/tst-aio10.c (TIMEOUT): Likewise.
6162 * rt/tst-aio4.c (TIMEOUT): Likewise.
6163 * rt/tst-aio5.c (TIMEOUT): Likewise.
6164 * rt/tst-aio6.c (TIMEOUT): Likewise.
6165 * rt/tst-aio64.c (TIMEOUT): Likewise.
6166 * rt/tst-aio7.c (TIMEOUT): Likewise.
6167 * rt/tst-aio9.c (TIMEOUT): Likewise.
6168 * rt/tst-clock.c (TIMEOUT): Likewise.
6169 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6170 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6171 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6172 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6173 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6174 * rt/tst-timer4.c (TIMEOUT): Likewise.
6175 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6176 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6177 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6178 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6179 * time/tst-ftime.c (TIMEOUT): Likewise.
6180 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6181
6182 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6183
6184 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6185 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6186 for thunderX2.
6187
6188 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6189
6190 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6191 bits/sem-pad.h.
6192 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6193 instead of <bits/wordsize.h>.
6194 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6195 and [__SEM_PAD_AFTER_TIME].
6196 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6197 __syscall_ulong_t instead of unsigned long int.
6198 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6199 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6200 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6201 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6202 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6203 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6204 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6205 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6206 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6207 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6208 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6209
6210 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6211
6212 regex: simplify by using intprops.h
6213 [BZ#23744]
6214 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6215 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6216 intprops.h defines them.
6217
6218 regex: __builtin_expect → __glibc_unlikely
6219 [BZ#23744]
6220 This refactoring was prompted by a problem when the regex code is
6221 used as part of Gnulib and when the builder’s compiler does not grok
6222 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6223 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6224 Although this refactoring does not fix the problem directly,
6225 we might as well have Gawk use the now-preferred glibc style for when
6226 __builtin_expect is unavailable.
6227 * posix/regex_internal.h (BE): Remove.
6228 All uses replaced by __glibc_unlikely or __glibc_likely.
6229
6230 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6231
6232 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6233 bits/msq-pad.h.
6234 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6235 instead of <bits/wordsize.h>.
6236 (msgqnum_t): Define as __syscall_ulong_t.
6237 (msglen_t): Likewise.
6238 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6239 and [__MSQ_PAD_AFTER_TIME].
6240 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6241 __syscall_ulong_t instead of unsigned long int.
6242 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6243 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6244 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6245 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6246 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6247 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6248 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6249 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6250 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6251 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6252 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6253
6254 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6255
6256 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6257 (struct shmid_ds): Condition padding after time fields on
6258 [__WORDSIZE == 32].
6259 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6260 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6261 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6262
6263 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6264 (struct semid_ds): Condition padding after time fields on
6265 [__WORDSIZE == 32].
6266 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6267 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6268 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6269 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6270
6271 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6272 (struct msqid_ds): Condition padding after time fields on
6273 [__WORDSIZE == 32].
6274 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6275 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6276 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6277 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6278
6279 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6280
6281 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6282
6283 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6284
6285 * libio/tst-readline.c (TIMEOUT): Define.
6286
6287 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6288
6289 mktime fix for Gnulib + coreutils
6290 [BZ#23745]
6291 This fix affects only Gnulib. Problem discovered when
6292 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6293 * time/mktime.c:
6294 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6295 Do not define since it is not used. Defining an unused static
6296 function prompts a warning from GCC when Coreutils is configured
6297 with --enable-gcc-warnings.
6298
6299 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6300
6301 * benchtests/scripts/compare_bench.py (main): set float type on
6302 threshold argument.
6303
6304 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6305
6306 [BZ #23740]
6307 * localedata/locales/kl_GL (mon): Update, the relative case.
6308 (alt_mon): Add, fill with month names in the nominative case.
6309 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6310 (d_fmt): Set to "%b %d %Y".
6311
6312 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6313
6314 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6315 <bits/mman-linux.h>.
6316 (PROT_READ): Don't define here.
6317 (PROT_WRITE): Likewise.
6318 (PROT_EXEC): Likewise.
6319 (PROT_NONE): Likewise.
6320 (PROT_GROWSDOWN): Likewise.
6321 (PROT_GROWSUP): Likewise.
6322 (MAP_SHARED): Likewise.
6323 (MAP_PRIVATE): Likewise.
6324 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6325 [__USE_MISC] (MAP_FILE): Likewise.
6326 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6327 [__USE_MISC] (MAP_ANON): Likewise.
6328 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6329 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6330 (MCL_CURRENT): Likewise.
6331 (MCL_FUTURE): Likewise.
6332 (MCL_ONFAULT): Likewise.
6333 [__USE_MISC] (MADV_NORMAL): Likewise.
6334 [__USE_MISC] (MADV_RANDOM): Likewise.
6335 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6336 [__USE_MISC] (MADV_WILLNEED): Likewise.
6337 [__USE_MISC] (MADV_DONTNEED): Likewise.
6338 [__USE_MISC] (MADV_FREE): Likewise.
6339 [__USE_MISC] (MADV_REMOVE): Likewise.
6340 [__USE_MISC] (MADV_DONTFORK): Likewise.
6341 [__USE_MISC] (MADV_DOFORK): Likewise.
6342 [__USE_MISC] (MADV_HWPOISON): Likewise.
6343 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6344 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6345 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6346 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6347 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6348 (__MAP_ANONYMOUS): New macro.
6349 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6350 <bits/mman-linux.h> inclusion.
6351 (MAP_FIXED): Likewise.
6352 (MS_SYNC): Likewise.
6353 (MS_ASYNC): Likewise.
6354 (MS_INVALIDATE): Likewise.
6355 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6356 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6357 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6358 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6359 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6360 [__USE_MISC] (MADV_DODUMP): Likewise.
6361 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6362 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6363
6364 [BZ #23735]
6365 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6366 Define.
6367 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6368 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6369 Add test-nldbl-redirect.
6370 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6371 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6372 $(objpfx)libnldbl_nonshared.a.
6373
6374 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6375
6376 * support/support.h (support_objdir_elf_ldso): New variable.
6377 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6378 * support/Makefile (CFLAGS-support_paths.c): Add definition
6379 for OBJDIR_ELF_LDSO_PATH.
6380 * support/test-container.c (main): Search for the ld.so
6381 which is also used by the testsuite.
6382
6383 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6384
6385 [BZ #20209]
6386 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6387 should be "sap" rather than "sab".
6388 (day): Fix spelling of Sunday, should be "sapaat" rather than
6389 "sabaat".
6390
6391 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6392
6393 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6394
6395 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6396
6397 [BZ #19444]
6398 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6399 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6400 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6401
6402 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6403
6404 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6405
6406 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6407
6408 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6409 Add -mrtm.
6410 (CFLAGS-elision-unlock.c): Likewise.
6411 (CFLAGS-elision-timed.c): Likewise.
6412 (CFLAGS-elision-trylock.c): Likewise.
6413 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6414
6415 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6416
6417 [BZ #21037]
6418 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6419 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6420 new fd_to_filename interface.
6421 * libio/freopen64.c (freopen64): Likewise.
6422 * libio/tst-memstream.h: New file.
6423 * libio/tst-memstream4.c: Likewise.
6424 * libio/tst-wmemstream4.c: Likewise.
6425 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6426 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6427 and remove internal dynamic allocation.
6428
6429 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6430
6431 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6432 (MREMAP_MAYMOVE): Do not define here.
6433 [__USE_GNU] (MREMAP_FIXED): Likewise.
6434 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6435 (MREMAP_MAYMOVE): Define here instead.
6436 [__USE_GNU] (MREMAP_FIXED): Likewise.
6437 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6438 (MREMAP_MAYMOVE): Remove.
6439 [__USE_GNU] (MREMAP_FIXED): Likewise.
6440
6441 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6442
6443 * math/fromfp.h: Do not include <math_private.h>.
6444 * math/s_cacosh_template.c: Likewise.
6445 * math/s_casin_template.c: Likewise.
6446 * math/s_casinh_template.c: Likewise.
6447 * math/s_ccos_template.c: Likewise.
6448 * math/s_cproj_template.c: Likewise.
6449 * math/s_fdim_template.c: Likewise.
6450 * math/s_fmaxmag_template.c: Likewise.
6451 * math/s_fminmag_template.c: Likewise.
6452 * math/s_iseqsig_template.c: Likewise.
6453 * math/s_ldexp_template.c: Likewise.
6454 * math/s_nextdown_template.c: Likewise.
6455 * math/w_log1p_template.c: Likewise.
6456 * math/w_scalbln_template.c: Likewise.
6457 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6458 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6459 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6460 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6461 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6462 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6463 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6464 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6465 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6466 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6467 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6468 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6469 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6470 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6471 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6472 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6473 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6474 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6475 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6476 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6477 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6478 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6479 * sysdeps/ieee754/k_standardf.c: Likewise.
6480 * sysdeps/ieee754/k_standardl.c: Likewise.
6481 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6482 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6483 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6484 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6485 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6486 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6487 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6488 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6489 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6490 * sysdeps/ieee754/s_signgam.c: Likewise.
6491 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6492 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6493 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6494 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6495 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6496 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6497 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6498 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6499 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6500 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6501 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6502 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6503 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6504 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6505 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6506 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6507 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6508 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6509 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6510 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6511 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6512 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6513 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6514 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6515 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6516 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6517 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6518 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6519 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6520 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6521 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6522 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6523 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6524 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6525 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6526 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6527 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6528 <math_private.h>.
6529 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6530
6531 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6532
6533 [BZ #23716]
6534 * sysdeps/i386/dl-cet.c: Removed.
6535 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6536 prototype.
6537 (_dl_runtime_profile_shstk): Likewise.
6538 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6539 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6540
6541 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6542
6543 [BZ #23579]
6544 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6545 do_test_with_invalid_iov): New tests.
6546 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6547 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6548 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6549 errno is ENOSYS.
6550 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6551 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6552 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6553
6554 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6555
6556 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6557 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6558 (MATH_REDIRECT_BINARY_ARGS): New macro.
6559 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6560 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6561 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6562 header inclusion.
6563 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6564 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6565 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6566 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6567 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6568 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6569 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6570 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6571 Likewise.
6572 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6573 Likewise.
6574 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6575 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6576 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6577 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6578 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6579 Likewise.
6580 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6581 Likewise.
6582 * sysdeps/generic/math_private_calls.h
6583 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6584 Do not declare and define as an inline function.
6585 * math/divtc3.c (__divtc3): Use copysign functions instead of
6586 __copysign variants.
6587 * math/multc3.c (__multc3): Likewise.
6588 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6589 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6590 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6591 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6592 Likewise.
6593 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6594 (__ieee754_yn): Likewise.
6595 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6596 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6597 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6598 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6599 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6600 (__sin): Likewise.
6601 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6602 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6603 Likewise.
6604 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6605 Likewise.
6606 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6607 Likewise.
6608 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6609 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6610 Likewise.
6611 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6612 (__ieee754_ynf): Likewise.
6613 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6614 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6615 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6616 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6617 Likewise.
6618 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6619 (__ieee754_ynl): Likewise.
6620 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6621 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6622 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6623 Likewise.
6624 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6625 (__ieee754_ynl): Likewise.
6626 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6627 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6628 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6629 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6630 Likewise.
6631 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6632 (__ieee754_ynl)
6633 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6634 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6635 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6636 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6637 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6638
6639 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6640 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6641 using MATH_REDIRECT.
6642 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6643 header inclusion.
6644 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6645 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6646 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6647 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6648 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6649 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6650 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6651 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6652 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6655 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6656 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6657 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6658 (round): Redirect to __round.
6659 (__roundl): Call round instead of __round.
6660 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6661 Remove macro.
6662 [_ARCH_PWR5X] (__roundf): Likewise.
6663 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6664 functions instead of __round variants.
6665 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6666 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6667 Likewise.
6668 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6669 Likewise.
6670 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6671 Likewise.
6672 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6673 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6674 __lroundl.
6675 (__ieee754_expl): Call roundl instead of __roundl.
6676
6677 2018-09-27 Andreas Schwab <schwab@suse.de>
6678
6679 [BZ #23717]
6680 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6681 (do_test): Make st1 static.
6682
6683 2018-09-26 Andreas Schwab <schwab@suse.de>
6684
6685 [BZ #23707]
6686 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6687 * elf/Makefile (tests): Add tst-unwind-ctor.
6688 (modules-names): Add tst-unwind-ctor-lib.
6689 ($(objpfx)tst-unwind-ctor): Depend on
6690 $(objpfx)tst-unwind-ctor-lib.so.
6691
6692 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6693
6694 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6695 file. Most contents moved from ....
6696 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6697 and include <bits/mman-map-flags-generic.h>.
6698 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6699 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6700 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6701 <bits/mman-map-flags-generic.h>.
6702 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6703 macros defined in <bits/mman-map-flags-generic.h>.
6704 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6705 <bits/mman-map-flags-generic.h>.
6706 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6707 defined in <bits/mman-map-flags-generic.h>.
6708
6709 2018-09-26 Andreas Schwab <schwab@suse.de>
6710
6711 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6712 output.
6713
6714 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6715 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6716 Fangrui Song <maskray@google.com>
6717
6718 [BZ #20480]
6719 * config.make.in (have-textrel_ifunc): New define.
6720 * configure.ac: Add check if linker supports textrel relocation with
6721 ifunc.
6722 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6723 tst-ifunc-textrel.
6724 (CFLAGS-tst-ifunc-textrel.c): New rule.
6725 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6726 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6727 * elf/tst-ifunc-textrel.c: New file.
6728
6729 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6730
6731 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6732 <bits/procfs-prregset.h>.
6733 (prgregset_t): Define using __prgregset_t.
6734 (prfpregset_t): Define using __prfpregset_t.
6735 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6736 (sysdep_headers): Add bits/procfs-prregset.h.
6737 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6738 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6739 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6740 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6741
6742 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6743 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6744 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6745 pr_uid and pr_gid.
6746 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6747 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6748 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6749 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6750 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6751 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6752 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6753 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6754 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6755 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6756 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6757 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6758 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6759 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6760 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6761 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6762 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6763 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6764 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6765 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6766 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6767 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6768 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6769 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6770
6771 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6772 AArch64 version. Include <bits/procfs.h>.
6773 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6774 (sysdep_headers): Add bits/procfs.h.
6775 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6776 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6777 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6778 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6779 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6780 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6781 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6782 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6783 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6784 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6785 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6786 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6787 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6788 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6789 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6790 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6791 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6792
6793 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6794
6795 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6796 Use libsupport.
6797
6798 2018-09-25 Arjun Shankar <arjun@redhat.com>
6799
6800 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6801 (__gconv_max_path_elem_len): Likewise.
6802 (__gconv_nmodules): Likewise.
6803 (__gconv_get_path): Likewise.
6804 (path_elem): Move to ...
6805 * iconv/gconv_conf.c: ... here.
6806 (__gconv_get_path): Mark function static.
6807 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6808 * iconv/gconv_open.c: ... here.
6809
6810 2018-09-24 Andreas Schwab <schwab@suse.de>
6811
6812 * scripts/haveversions.awk: New file.
6813 * Makerules ($(common-objpfx)Versions.def)
6814 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6815 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6816 Move rules ...
6817 * Makeconfig ($(common-objpfx)Versions.def)
6818 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6819 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6820 ... here.
6821 ($(common-objpfx)Versions.mk): New rule. Include it.
6822 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6823 Emit error if build-obsolete-nsl = yes.
6824 * manual/install.texi (Configuring and compiling): Describe
6825 --enable-obsolete-nsl as unavaiable after version 2.28.
6826 * INSTALL: Regenerate.
6827
6828 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6829
6830 * NEWS: Add note about new TLE support on powerpc64le.
6831 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6832 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6833 __ununsed1.
6834 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6835 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6836 * sysdeps/powerpc/powerpc32/sysdep.h,
6837 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6838 ABORT_TRANSACTION): Remove macros.
6839 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6840 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6841 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6842 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6843 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6844 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6845 usage.
6846 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6847
6848 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6849
6850 [BZ #10425]
6851 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6852 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6853 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6854 which is the same as in it_IT.
6855 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6856 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6857
6858 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6859
6860 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6861 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6862 using MATH_REDIRECT.
6863 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6864 header inclusion.
6865 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6866 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6867 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6868 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6869 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6870 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6871 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6872 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6873 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6874 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6875 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6876 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6877 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6878 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6879 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6880 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6881 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6882 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6883 (ceil): Redirect to __ceil.
6884 (floor): Redirect to __floor.
6885 (trunc): Redirect to __trunc.
6886 (__truncl): Call trunc instead of __trunc.
6887 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6888 Remove macro.
6889 [_ARCH_PWR5X] (__truncf): Likewise.
6890 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6891 trunc functions instead of __trunc variants.
6892 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6893 Likewise.
6894 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6895 Likewise.
6896 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6897 Likewise.
6898 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6899 Likewise.
6900
6901 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6902 [__i586__ || __pentium__].
6903 [__i486__]: Handle explicitly.
6904 (HAS_CPUID): Define to 1 if above macros are undefined.
6905 (HAS_I586): Likewise.
6906 (HAS_I686): Likewise.
6907
6908 2018-09-20 Florian Weimer <fweimer@redhat.com>
6909
6910 * misc/tst-gethostid.c: New file.
6911 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6912 (tst-gethostid): Link with -ldl.
6913
6914 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6915
6916 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6917 value from gethostbyname_r.
6918
6919 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6920
6921 * stdlib/tst-setcontext9.c (f1): Rename to...
6922 (f1a): ... this.
6923 (f1b): New function implementing lower half of f1 in alternate stack.
6924
6925 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6926
6927 Fix mktime localtime offset confusion
6928 [BZ #23603]
6929 * include/time.h (__mktime_internal): The localtime offset is now
6930 of type long int instead of time_t. This is the longstanding type
6931 in glibc, and it is more than enough to represent difference
6932 between localtime and gmtime even if it is 32 bits and time_t is
6933 64. Changing it now will let us avoid an unnecessary change when
6934 time_t is widened to 64 bits on 32-bit platforms.
6935 * time/mktime-internal.h (mktime_offset_t): Now long int.
6936
6937 Merge mktime, timegm from upstream Gnulib
6938 [BZ #23603][BZ #16346]
6939 This fixes some obscure problems with integer overflow.
6940 Although it looks scary, it is almost all a byte-for-byte copy
6941 from Gnulib, and the Gnulib code has been tested reasonably well.
6942 * include/intprops.h: New file, copied from Gnulib.
6943 * include/verify.h, time/mktime-internal.h:
6944 New tiny files, simplified from Gnulib.
6945 * time/mktime.c: Copy from Gnulib. This has the following changes:
6946 Do not include config.h if DEBUG_MKTIME is nonzero.
6947 Include stdbool.h, intprops.h, verify.h.
6948 Include string.h only if needed.
6949 Include stdlib.h on MS-Windows.
6950 Include mktime-internal.h.
6951 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6952 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6953 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6954 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6955 simplify later conditionals; default the others to zero. Use
6956 these conditionals to express only the code needed on the current
6957 platform. In uses of these conditionals, explicitly spell out how
6958 _LIBC affects things, so it’s easier to review from a glibc
6959 viewpoint.
6960 (WRAPV): Remove; no longer needed now that we have
6961 systematic overflow checking.
6962 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6963 compartmentalize tzset issues. Move system-dependent tzsettish
6964 code here from mktime.
6965 (verify): Remove; now done by verify.h. All uses changed.
6966 (long_int): Use a more-conservative definition, to avoid
6967 integer overflow.
6968 (SHR): Remove, replacing with ...
6969 (shr): New function, which means we needn’t worry about side
6970 effects in args, and conversion analysis is simpler.
6971 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6972 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6973 (time_t_avg, time_t_add_ok): Remove.
6974 (mktime_min, mktime_max): New constants.
6975 (leapyear, isdst_differ): Use bool for booleans.
6976 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6977 Use long_int, not time_t, for mktime differences.
6978 (long_int_avg): New function, replacing time_t_avg.
6979 INT_ADD_WRAPV replaces time_t_add_ok.
6980 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6981 All uses changed.
6982 (convert_time): New function.
6983 (ranged_convert): Use it.
6984 (__mktime_internal): Last arg now points to mktime_offset_t, not
6985 time_t. All uses changed. This is a no-op on glibc, where
6986 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6987 offset guess. Directly check for integer overflow instead of
6988 using a heuristic that works only 99.9...% of the time.
6989 Access *OFFSET only once, to avoid an unlikely race if the
6990 compiler delays a load and if this cascades into a signed integer
6991 overflow.
6992 (mktime): Move tzsettish code to my_tzset, and move
6993 localtime_offset to within mktime so that it doesn’t
6994 need a separate ifdef.
6995 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6996 instead of localtime.
6997 * time/timegm.c: Copy from Gnulib. This has the following changes:
6998 Include mktime-internal.h.
6999 [!_LIBC]: Include config.h and time.h. Do not include
7000 timegm.h or time_r.h. Make __mktime_internal a macro,
7001 and include mktime-internal.h to get its declaration.
7002 (timegm): Temporary is now mktime_offset_t, not time_t.
7003 This affects only Gnulib.
7004
7005 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
7006
7007 [BZ #23637]
7008 * string/test-strstr.c (pr23637): New function.
7009 (test_main): Add tests with longer needles.
7010 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
7011 * string/strstr.c (AVAILABLE): Likewise.
7012
7013 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7014
7015 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
7016
7017 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
7018
7019 * NEWS: Mention pow improvements.
7020 * math/Makefile (type-double-routines): Add e_pow_log_data.
7021 * sysdeps/generic/math_private.h (__exp1): Remove.
7022 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
7023 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
7024 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
7025 contraction.
7026 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
7027 (exp_inline): Remove.
7028 (__ieee754_exp): Only single double input is handled.
7029 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
7030 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
7031 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
7032 (__pow_log_data): Define.
7033 * sysdeps/ieee754/dbl-64/upow.h: Remove.
7034 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
7035 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
7036 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
7037 contraction.
7038 (CFLAGS-e_pow-fma4.c): Likewise.
7039
7040 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7041
7042 Simplify tzfile fstat failure code
7043 [BZ #21716]
7044 * time/tzfile.c (__tzfile_read): Simplify slightly.
7045
7046 Fix tzfile low-memory assertion failure
7047 [BZ #21716]
7048 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7049 when registering time zone abbreviations.
7050
7051 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7052
7053 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7054 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7055 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7056 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7057 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7058 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7059 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7060 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7061 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7062
7063 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7064 __ceil.
7065 (__ceill): Call ceil instead of __ceil.
7066 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7067 __floor.
7068 (__floorl): Call floor instead of __floor.
7069
7070 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7071
7072 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7073 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7074 using MATH_REDIRECT.
7075 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7076 header inclusion.
7077 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7078 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7079 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7080 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7081 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7082 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7083 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7084 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7085 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7086 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7087 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7088 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7089 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7090 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7091 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7092 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7093 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7094 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7095 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7096 Remove macro.
7097 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7098 functions instead of __ceil variants.
7099 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7100 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7101 Likewise.
7102 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7103 Likewise.
7104 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7105 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7106 Likewise.
7107 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7108 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7109
7110 [BZ #21286]
7111 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7112 constant.
7113 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7114 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7115 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7116 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7117 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7118 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7119 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7120 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7121 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7122 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7123 (ILL_BADIADDR): Remove constant.
7124 (TRAP_BRANCH): Likewise.
7125 (TRAP_HWBKPT): Likewise.
7126
7127 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7128
7129 [BZ #23656]
7130 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7131 Remove [_MIPS_SIM = _ABIN32] conditional case.
7132 (struct elf_prpsinfo): Likewise.
7133
7134 [BZ #23649]
7135 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7136 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7137 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7138 Likewise.
7139 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7140 elf_prpsinfo): Likewise.
7141 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7142 elf_prpsinfo): Likewise.
7143 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7144 Likewise.
7145
7146 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7147 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7148 using MATH_REDIRECT.
7149 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7150 header inclusion.
7151 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7152 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7153 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7154 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7155 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7156 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7157 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7158 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7159 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7160 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7161 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7162 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7163 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7164 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7165 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7166 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7167 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7168 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7169 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7170 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7171 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7172 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7173 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7174 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7175 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7176 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7177 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7178 __rint variants.
7179 * math/e_scalbf.c (invalid_fn): Likewise.
7180 * math/e_scalbl.c (invalid_fn): Likewise.
7181 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7182 Likewise.
7183 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7184 Likewise.
7185 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7186 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7187 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7188 Likewise.
7189 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7190 Likewise.
7191 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7192 Likewise.
7193 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7194 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7195
7196 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7197 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7198 New macro.
7199 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7200 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7201 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7202 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7203 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7204 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7205 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7206 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7207 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7208 && !NO_MATH_REDIRECT] (floor): Likewise.
7209 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7210 header inclusion.
7211 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7212 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7213 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7214 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7215 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7216 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7217 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7218 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7219 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7220 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7221 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7222 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7223 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7224 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7225 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7226 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7227 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7228 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7229 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7230 Remove macro.
7231 [_ARCH_PWR5X] (__floorf): Likewise.
7232 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7233 inline function.
7234 [__SSE4_1__] (__floorf): Likewise.
7235 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7236 instead of __floor variants.
7237 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7238 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7239 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7240 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7241 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7242 * math/w_tgamma_compat.c (__tgamma): Likewise.
7243 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7244 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7245 * math/w_tgammal_compat.c (__tgammal): Likewise.
7246 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7247 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7248 Likewise.
7249 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7250 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7251 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7252 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7253 Likewise.
7254 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7255 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7256 Likewise.
7257 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7258 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7259 Likewise.
7260 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7261 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7262 Likewise.
7263 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7264 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7265 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7266 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7267 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7268 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7269
7270 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7271
7272 * elf/Makefile (modules-names-tests): New variable.
7273
7274 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7275
7276 * NEWS: Mention log2 improvements.
7277 * math/Makefile (type-double-routines): Add e_log2_data.
7278 * sysdeps/i386/fpu/e_log2_data.c: New file.
7279 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7280 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7281 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7282 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7283 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7284 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7285
7286 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7287
7288 * NEWS: Mention log improvement.
7289 * math/Makefile (type-double-routines): Add e_log_data.
7290 * sysdeps/i386/fpu/e_log_data.c: New file.
7291 * sysdeps/ia64/fpu/e_log_data.c: New file.
7292 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7293 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7294 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7295 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7296 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7297 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7298
7299 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7300 Xuepeng Guo <xuepeng.guo@intel.com>
7301
7302 [BZ #23606]
7303 * sysdeps/i386/start.S: Include <sysdep.h>
7304 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7305 enabled. Add cfi_undefined (eip).
7306
7307 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7308
7309 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7310 (MOVQ): Likewise.
7311 (EXTRACT_WORDS64): Likewise.
7312 (INSERT_WORDS64): Likewise.
7313 (GET_FLOAT_WORD): Likewise.
7314 (SET_FLOAT_WORD): Likewise.
7315
7316 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7317 argument.
7318 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7319 build, but not for second build if --full-gcc. Use
7320 --enable-languages=all for second build if --full-gcc.
7321 (get_parser): Add --full-gcc option.
7322 (main): Update call to Context.
7323
7324 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7325
7326 [BZ #10797]
7327 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7328 Single Quotation Mark).
7329 (thousands_sep): Likewise.
7330 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7331 * localedata/locales/it_IT (thousands_sep): Use ".".
7332 (grouping): Use "3;3".
7333
7334 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7335
7336 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7337 x86_64 and i686 configs using --enable-obsolete-rpc
7338 --enable-obsolete-nsl.
7339
7340 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7341
7342 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7343
7344 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7345
7346 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7347 Increment size of new_argv by one.
7348
7349 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7350
7351 [BZ #17426]
7352 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7353 * localedata/locales/ar_IN (d_fmt): Likewise.
7354 * localedata/locales/bhb_IN (d_fmt): Likewise.
7355 * localedata/locales/bho_IN (d_fmt): Likewise.
7356 * localedata/locales/bn_BD (d_fmt): Likewise.
7357 * localedata/locales/bn_IN (d_fmt): Likewise.
7358 * localedata/locales/doi_IN (d_fmt): Likewise.
7359 * localedata/locales/gu_IN (d_fmt): Likewise.
7360 * localedata/locales/hi_IN (d_fmt): Likewise.
7361 * localedata/locales/hne_IN (d_fmt): Likewise.
7362 * localedata/locales/kn_IN (d_fmt): Likewise.
7363 * localedata/locales/mag_IN (d_fmt): Likewise.
7364 * localedata/locales/mai_IN (d_fmt): Likewise.
7365 * localedata/locales/mjw_IN (d_fmt): Likewise.
7366 * localedata/locales/ml_IN (d_fmt): Likewise.
7367 * localedata/locales/mni_IN (d_fmt): Likewise.
7368 * localedata/locales/mr_IN (d_fmt): Likewise.
7369 * localedata/locales/pa_IN (d_fmt): Likewise.
7370 * localedata/locales/raj_IN (d_fmt): Likewise.
7371 * localedata/locales/sat_IN (d_fmt): Likewise.
7372 * localedata/locales/sd_IN (d_fmt): Likewise.
7373 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7374 * localedata/locales/ta_IN (d_fmt): Likewise.
7375 * localedata/locales/ta_LK (d_fmt): Likewise.
7376 * localedata/locales/tcy_IN (d_fmt): Likewise.
7377 * localedata/locales/ur_IN (d_fmt): Likewise.
7378
7379 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7380 * localedata/locales/ks_IN (d_fmt): Likewise.
7381 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7382
7383 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7384 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7385 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7386 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7387
7388 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7389
7390 * NEWS: Mention exp and exp2 improvements.
7391 * math/Makefile (libm-support): Remove t_exp.
7392 (type-double-routines): Add math_err and e_exp_data.
7393 * sysdeps/aarch64/libm-test-ulps: Update.
7394 * sysdeps/arm/libm-test-ulps: Update.
7395 * sysdeps/i386/fpu/e_exp_data.c: New file.
7396 * sysdeps/i386/fpu/math_err.c: New file.
7397 * sysdeps/i386/fpu/t_exp.c: Remove.
7398 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7399 * sysdeps/ia64/fpu/math_err.c: New file.
7400 * sysdeps/ia64/fpu/t_exp.c: Remove.
7401 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7402 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7403 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7404 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7405 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7406 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7407 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7408 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7409 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7410 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7411 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7412 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7413 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7414 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7415 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7416 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7417
7418 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7419
7420 * sysdeps/alpha/fpu/math_private.h: Remove.
7421
7422 * sysdeps/generic/math_private.h
7423 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7424 Move this inline function ....
7425 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7426 * include/math.h [!_ISOMAC]: To here....
7427
7428 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7429
7430 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7431 code ....
7432 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7433 * include/fenv.h [!_ISOMAC]: ... to here.
7434 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7435 (feraiseexcept): Likewise.
7436 * math/fromfp.h: Do not include <fenv_private.h>.
7437 * math/s_cexp_template.c: Likewise.
7438 * math/s_csin_template.c: Likewise.
7439 * math/s_csinh_template.c: Likewise.
7440 * math/s_ctan_template.c: Likewise.
7441 * math/s_ctanh_template.c: Likewise.
7442 * math/s_iseqsig_template.c: Likewise.
7443 * math/w_acos_compat.c: Likewise.
7444 * math/w_acosf_compat.c: Likewise.
7445 * math/w_acosl_compat.c: Likewise.
7446 * math/w_asin_compat.c: Likewise.
7447 * math/w_asinf_compat.c: Likewise.
7448 * math/w_asinl_compat.c: Likewise.
7449 * math/w_j0_compat.c: Likewise.
7450 * math/w_j0f_compat.c: Likewise.
7451 * math/w_j0l_compat.c: Likewise.
7452 * math/w_j1_compat.c: Likewise.
7453 * math/w_j1f_compat.c: Likewise.
7454 * math/w_j1l_compat.c: Likewise.
7455 * math/w_jn_compat.c: Likewise.
7456 * math/w_jnf_compat.c: Likewise.
7457 * math/w_log10_compat.c: Likewise.
7458 * math/w_log10f_compat.c: Likewise.
7459 * math/w_log10l_compat.c: Likewise.
7460 * math/w_log2_compat.c: Likewise.
7461 * math/w_log2f_compat.c: Likewise.
7462 * math/w_log2l_compat.c: Likewise.
7463 * math/w_log_compat.c: Likewise.
7464 * math/w_logf_compat.c: Likewise.
7465 * math/w_logl_compat.c: Likewise.
7466 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7467 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7468 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7469 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7470 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7471 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7472 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7473 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7474 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7475 * sysdeps/ieee754/k_standardl.c: Likewise.
7476 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7477 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7478 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7479 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7480 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7481 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7482 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7483 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7484 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7485 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7486 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7487 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7488 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7489 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7490 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7491 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7492 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7493 * math/w_ilogb_template.c: Include <fenv.h> instead of
7494 <fenv_private.h>.
7495 * math/w_llogb_template.c: Likewise.
7496 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7497 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7498
7499 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7500
7501 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7502 * math/fromfp.h: Include <fenv_private.h>.
7503 * math/math-narrow.h: Likewise.
7504 * math/s_cexp_template.c: Likewise.
7505 * math/s_csin_template.c: Likewise.
7506 * math/s_csinh_template.c: Likewise.
7507 * math/s_ctan_template.c: Likewise.
7508 * math/s_ctanh_template.c: Likewise.
7509 * math/s_iseqsig_template.c: Likewise.
7510 * math/w_acos_compat.c: Likewise.
7511 * math/w_acosf_compat.c: Likewise.
7512 * math/w_acosl_compat.c: Likewise.
7513 * math/w_asin_compat.c: Likewise.
7514 * math/w_asinf_compat.c: Likewise.
7515 * math/w_asinl_compat.c: Likewise.
7516 * math/w_ilogb_template.c: Likewise.
7517 * math/w_j0_compat.c: Likewise.
7518 * math/w_j0f_compat.c: Likewise.
7519 * math/w_j0l_compat.c: Likewise.
7520 * math/w_j1_compat.c: Likewise.
7521 * math/w_j1f_compat.c: Likewise.
7522 * math/w_j1l_compat.c: Likewise.
7523 * math/w_jn_compat.c: Likewise.
7524 * math/w_jnf_compat.c: Likewise.
7525 * math/w_llogb_template.c: Likewise.
7526 * math/w_log10_compat.c: Likewise.
7527 * math/w_log10f_compat.c: Likewise.
7528 * math/w_log10l_compat.c: Likewise.
7529 * math/w_log2_compat.c: Likewise.
7530 * math/w_log2f_compat.c: Likewise.
7531 * math/w_log2l_compat.c: Likewise.
7532 * math/w_log_compat.c: Likewise.
7533 * math/w_logf_compat.c: Likewise.
7534 * math/w_logl_compat.c: Likewise.
7535 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7536 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7537 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7538 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7539 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7540 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7541 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7542 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7543 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7544 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7545 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7546 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7547 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7548 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7549 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7550 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7551 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7552 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7553 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7554 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7555 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7556 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7557 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7558 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7559 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7560 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7561 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7562 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7563 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7564 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7565 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7566 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7567 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7568 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7569 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7570 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7571 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7572 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7573 * sysdeps/ieee754/k_standardl.c: Likewise.
7574 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7575 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7576 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7577 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7578 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7579 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7580 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7581 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7582 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7583 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7584 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7585 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7586 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7587 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7588 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7589 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7590 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7591 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7592 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7593 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7594 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7595 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7596 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7597 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7598 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7599 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7600 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7601 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7602 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7603 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7604 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7605 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7606 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7607 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7608 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7609 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7610 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7611 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7612 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7613 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7614 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7615 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7616 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7617 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7618 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7619 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7620 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7621 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7622 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7623 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7624 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7625 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7626 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7627 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7628 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7629 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7630 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7631 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7632 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7633 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7634 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7635 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7636 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7637 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7638 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7639 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7640 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7641 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7642 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7643 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7644 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7645
7646 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7647
7648 [BZ #20271]
7649 * include/stdio.h (__libc_fatal): Mention newline in comment.
7650 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7651 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7652 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7653 * nss/nsswitch.c (__nss_next2): Likewise.
7654 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7655 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7656 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7657 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7658 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7659 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7660 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7661 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7662 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7663 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7664 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7665 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7666 (__netlink_assert_response): Likewise.
7667
7668 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7669
7670 * conform/glibcconform.py: New file.
7671 * conform/list-header-symbols.py: Likewise.
7672 * conform/list-header-symbols.pl: Remove.
7673 * conform/Makefile (tests-special): Only add linknamespace tests
7674 if [PYTHON].
7675 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7676
7677 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7678
7679 [BZ #23597]
7680 * support/Makefile (libsupport-routines): Add
7681 support_copy_file_range and xcopy_file_range.
7682 * support/support.h: Include <sys/types.h>.
7683 (support_copy_file_range): New prototype.
7684 * support/support_copy_file_range.c: New file. Copied and
7685 modified from io/copy_file_range-compat.c.
7686 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7687 instead of copy_file_range.
7688 * support/xcopy_file_range.c: New file.
7689 * support/xunistd.h (xcopy_file_range): New prototype.
7690
7691 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7692
7693 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7694 xpthread_create and xpthread_join.
7695
7696 2018-08-30 Florian Weimer <fweimer@redhat.com>
7697
7698 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7699
7700 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7701
7702 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7703 if malloc fails.
7704
7705 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7706
7707 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7708 and minus_oflow as non-finite.
7709
7710 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7711
7712 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7713 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7714 moved to fenv_private.h except for ...
7715 (TOINT_INTRINSICS): Kept in math_private.h.
7716 (roundtoint): Likewise.
7717 (converttoint): Likewise.
7718 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7719 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7720 * sysdeps/arm/math_private.h: Remove.
7721 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7722 ....
7723 * sysdeps/generic/math_private.h: ... this file. Include
7724 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7725 Include <fenv_private.h>. Remove functions and macros moved to
7726 fenv_private.h.
7727 * sysdeps/i386/fpu/math_private.h: Remove.
7728 * sysdeps/mips/math_private.h: Move to ....
7729 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7730 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7731 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7732 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7733 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7734 * sysdeps/powerpc/fpu/math_private.h: Do not include
7735 <fenv_private.h>.
7736 * sysdeps/riscv/rvf/math_private.h: Move to ....
7737 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7738 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7739 <fenv_private.h>.
7740 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7741 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7742 * sysdeps/sparc/fpu/math_private.h: Remove.
7743 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7744 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7745 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7746 <fenv_private.h>.
7747 * sysdeps/x86_64/fpu/math_private.h: Do not include
7748 <sysdeps/i386/fpu/fenv_private.h>.
7749
7750 2018-08-28 Florian Weimer <fweimer@redhat.com>
7751
7752 [BZ #23578]
7753 * posix/tst-regcomp-truncated.c: New file.
7754 * posix/Makefile (tests): Add it.
7755 (tst-regcomp-truncated.out): Depend on generated locales.
7756
7757 2018-08-28 Florian Weimer <fweimer@redhat.com>
7758
7759 * support/test-container.c (main): Treat unshare failure with
7760 EPERM as an unsupported test.
7761
7762 2018-08-28 Florian Weimer <fweimer@redhat.com>
7763
7764 [BZ #23520]
7765 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7766 * nscd/netgroupcache.c
7767 (addgetnetgrentX): Add tofreep parameter. Do not free
7768 heap-allocated buffer.
7769 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7770 (addgetnetgrentX_ignore): New function.
7771 (addgetnetgrent): Call it.
7772 (readdgetnetgrent): Likewise.
7773
7774 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7775
7776 * string/memmem.c: Use memcmp for first match.
7777
7778 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7779
7780 [BZ #17426]
7781 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7782
7783 2018-08-27 DJ Delorie <dj@redhat.com>
7784
7785 * support/Makefile (others): Don't list programs explicitly as a
7786 dependency of "others".
7787
7788 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7789
7790 * sysdeps/generic/math-tests-trap-force.h: New file.
7791 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7792 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7793 * sysdeps/powerpc/math-tests.h: Remove file.
7794 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7795
7796 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7797 Torvald Riegel <triegel@redhat.com>
7798
7799 [BZ #23538]
7800 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7801 Update r to include the set wake-request flag if waiters are
7802 remaining after spinning.
7803
7804 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7805
7806 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7807
7808 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7809
7810 [BZ #23578]
7811 regex: fix uninitialized memory access
7812 I introduced this bug into gnulib in commit
7813 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7814 eventually it was merged into glibc. The bug was found by
7815 project-repo <bugs@feusi.co> and reported here:
7816 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7817 Diagnosis and draft fix reported by Assaf Gordon here:
7818 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7819 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7820 * posix/regex_internal.c (build_wcs_upper_buffer):
7821 Fix bug when mbrtowc returns 0.
7822
7823 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7824
7825 * po/be.po: Update translation.
7826
7827 2018-08-24 DJ Delorie <dj@delorie.com>
7828
7829 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7830 $(libunwind).
7831
7832 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7833
7834 [BZ #23400]
7835 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7836 create temporary files in source tree.
7837
7838 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7839
7840 * sysdeps/generic/math-tests-trap.h: New file.
7841 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7842 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7843 * sysdeps/aarch64/math-tests.h: Remove file.
7844 * sysdeps/arm/math-tests.h: Likewise.
7845 * sysdeps/riscv/math-tests.h: Likewise.
7846 * sysdeps/aarch64/math-tests-trap.h: New file.
7847 * sysdeps/arm/math-tests-trap.h: Likewise.
7848 * sysdeps/riscv/math-tests-trap.h: Likewise.
7849
7850 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7851
7852 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7853 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7854 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7855 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7856 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7857 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7858 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7859 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7860 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7861 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7862 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7863 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7864 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7865 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7866 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7867 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7868 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7869 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7870
7871 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7872
7873 * sysdeps/generic/math-tests-exceptions.h: New file.
7874 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7875 (EXCEPTION_TESTS_float): Do not define here.
7876 (EXCEPTION_TESTS_double): Likewise.
7877 (EXCEPTION_TESTS_long_double): Likewise.
7878 (EXCEPTION_TESTS_float128): Likewise.
7879 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7880 Likewise.
7881 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7882 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7883 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7884 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7885 * sysdeps/mips/math-tests.h: Likewise.
7886 * sysdeps/nios2/math-tests.h: Likewise.
7887 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7888 (EXCEPTION_TESTS_float): Do not define here.
7889 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7890 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7891 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7892
7893 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7894
7895 * NEWS: Move optimized sinf entry to 2.29.
7896
7897 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7898
7899 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7900
7901 2018-08-22 DJ Delorie <dj@redhat.com>
7902
7903 * Makefile (testroot.pristine): New rules to initialize the
7904 test-in-container "testroot".
7905 * Makerules (all-testsuite): Add tests-container.
7906 * Rules (tests-expected): Add tests-container.
7907 (binaries-all-tests): Likewise.
7908 (tests-container): New, run these tests in the testroot container.
7909 * support/Makefile (others): Add *-container, support_paths.c,
7910 xmkdirp, and links-dso-program.
7911 * support/links-dso-program-c.c: New.
7912 * support/links-dso-program.cc: New.
7913 * support/test-container.c: New.
7914 * support/shell-container.c: New.
7915 * support/echo-container.c: New.
7916 * support/true-container.c: New.
7917 * support/xmkdirp.c: New.
7918 * support/xsymlink.c: New.
7919 * support/support_paths.c: New.
7920 * support/support.h: Add support paths prototypes.
7921 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7922
7923 * nss/tst-nss-test3.c: Convert to test-in-container.
7924 * nss/tst-nss-test3.root/: New.
7925
7926 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7927
7928 regex: port Gnulib code to z/OS POSIX environment
7929 Problem reported by Arnold Robbins in:
7930 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7931 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7932 Undef.
7933
7934 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7935
7936 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7937 (ROUNDING_TESTS_double): Remove.
7938 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7939 (ROUNDING_TESTS_double): Remove.
7940 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7941 (ROUNDING_TESTS_double): Remove.
7942 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7943 (ROUNDING_TESTS_float): Remove.
7944 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7945 (ROUNDING_TESTS_float): Remove.
7946 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7947 (ROUNDING_TESTS_float): Remove.
7948 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7949 !TEST_MATHVEC here.
7950 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7951 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7952
7953 * sysdeps/generic/math-tests-rounding.h: New file.
7954 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7955 (ROUNDING_TESTS_float): Do not define here.
7956 (ROUNDING_TESTS_double): Likewise.
7957 (ROUNDING_TESTS_long_double): Likewise.
7958 (ROUNDING_TESTS_float128): Likewise.
7959 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7960 (ROUNDING_TESTS_double): Undefine before defining.
7961 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7962 (ROUNDING_TESTS_double): Undefine before defining.
7963 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7964 (ROUNDING_TESTS_double): Undefine before defining.
7965 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7966 (ROUNDING_TESTS_float): Undefine before defining.
7967 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7968 (ROUNDING_TESTS_float): Undefine before defining.
7969 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7970 (ROUNDING_TESTS_float): Undefine before defining.
7971 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7972 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7973 not define here.
7974 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7975 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7976 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7977 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7978 (ROUNDING_TESTS_float): Do not define here.
7979 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7980 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7981 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7982 (ROUNDING_TESTS_float): Likewise.
7983 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7984 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7985 * sysdeps/mips/math-tests.h [__mips_soft_float]
7986 (ROUNDING_TESTS_float): Likewise.
7987 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7988 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7989 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7990 (ROUNDING_TESTS_double): Likewise.
7991 (ROUNDING_TESTS_long_double): Likewise.
7992
7993 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7994
7995 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7996 (PF_XDP): New macro.
7997 (AF_XDP): New macro.
7998 (SOL_XDP): New macro.
7999
8000 2018-08-21 Joseph Myers <joseph@codesourcery.com>
8001
8002 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
8003 (TCP_INQ): Likewise.
8004 (TCP_CM_INQ): Likewise.
8005 (TCP_REPAIR_ON): Likewise.
8006 (TCP_REPAIR_OFF): Likewise.
8007 (TCP_REPAIR_OFF_NO_WP): Likewise.
8008 (struct tcp_zerocopy_receive): New type.
8009
8010 2018-08-21 Florian Weimer <fweimer@redhat.com>
8011
8012 * support/support.h (support_descriptor_supports_holes): Declare.
8013 * support/Makefile (libsupport-routines): Add
8014 support_descriptor_supports_holes.
8015 * support/support_descriptor_supports_holes.c: New file.
8016 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
8017 and stop testing if holes are not supported.
8018 * io/test-lfs.c (do_prepare): Likewise.
8019 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
8020 Likewise.
8021 * timezone/tst-tzset.c (create_tz_file): Likewise.
8022 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
8023 variable.
8024 (do_prepare): Set it.
8025 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
8026
8027 2018-08-21 Florian Weimer <fweimer@redhat.com>
8028
8029 [BZ #17248]
8030 * Makeconfig (+cflags): Do not sort (and deduplicate).
8031
8032 2018-08-21 Florian Weimer <fweimer@redhat.com>
8033
8034 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
8035 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
8036
8037 2018-08-20 Florian Weimer <fweimer@redhat.com>
8038
8039 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8040 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8041
8042 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8043
8044 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8045 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8046 and ssi_arch members.
8047
8048 * elf/elf.c (NT_VMCOREDD): New macro.
8049 (AT_MINSIGSTKSZ): Likewise.
8050
8051 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8052
8053 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8054 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8055 s_cosf-ppc64 and s_cosf-power8.
8056 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8057 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8058 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8059 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8060 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8061 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8062 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8063 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8064 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8065 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8066 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8067 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8068
8069 2018-08-17 Florian Weimer <fweimer@redhat.com>
8070
8071 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8072
8073 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8074
8075 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8076
8077 2018-08-16 Florian Weimer <fweimer@redhat.com>
8078
8079 * configure.ac: Add --with-nonshared-cflags option.
8080 * config.make.in (extra-nonshared-cflags): Set variable.
8081 * Makeconfig (CFLAGS-.oS): Use it.
8082 * manual/install.texi (Configuring and compiling): Document
8083 --with-nonshared-cflags.
8084 * configure: Regenerate.
8085 * INSTALL: Likewise.
8086
8087 2018-08-16 Florian Weimer <fweimer@redhat.com>
8088
8089 * Makeconfig (ASFLAGS): Always append required assembler flags.
8090
8091 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8092
8093 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8094 (malloc_consolidate): Likewise.
8095
8096 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8097
8098 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8099
8100 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8101
8102 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8103 every strlen call.
8104
8105 * benchtests/bench-strlen.c: Print performance numbers in json.
8106
8107 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8108
8109 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8110 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8111 only for little endian.
8112 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8113 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8114 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8115 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8116 Add check for little endian.
8117 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8118 (__strcmp_power9): Add check for little endian.
8119 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8120 Add check for little endian.
8121 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8122 (__strncmp_power9): Add check for little endian.
8123 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8124 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8125 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8126 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8127 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8128
8129 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8130
8131 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8132 [!STRLEN](STRLEN): Set to __strlen.
8133 * sysdeps/aarch64/multiarch/strlen.c: New file.
8134 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8135 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8136 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8137 (__libc_ifunc_impl_list): Add strlen.
8138 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8139 strlen_generic and strlen_asimd.
8140
8141 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8142
8143 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8144 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8145 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8146
8147 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8148
8149 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8150
8151 2018-08-14 Florian Weimer <fweimer@redhat.com>
8152
8153 [BZ #23519]
8154 * include/stdio.h (__vfxprintf): Declare.
8155 * stdio-common/fxprintf.c (__vfxprintf): New function.
8156 (__fxprintf): Call it.
8157 * misc/err.c (convert_and_print): Remove function.
8158 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8159 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8160 * misc/Makefile (tests): Add tst-warn-wide.
8161 * misc/tst-warn-wide.c: New file.
8162
8163 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8164 Szabolcs Nagy <szabolcs.nagy@arm.com>
8165
8166 * NEWS: Mention sinf, cosf, sincosf.
8167 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8168 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8169 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8170 constants rather than including generic sincosf.h.
8171 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8172 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8173 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8174 (reduced_cos): Remove.
8175 (sinf_poly): New function.
8176 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8177
8178 2018-08-14 Florian Weimer <fweimer@redhat.com>
8179
8180 [BZ #23521]
8181 [BZ #23522]
8182 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8183 processing, bail out if no room, and close the stream before
8184 returning ERANGE.
8185 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8186 (tst-nss-files-alias-leak): Link with libdl.
8187 (tst-nss-files-alias-leak.out): Depend on nss_files.
8188
8189 * nss/tst-nss-files-alias-leak.c: New file.
8190
8191 2018-08-14 Florian Weimer <fweimer@redhat.com>
8192
8193 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8194 server_user, stat_user.
8195
8196 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8197
8198 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8199 version to 4.18.
8200 (io_pgetevents): New syscall.
8201 (rseq): Likewise.
8202
8203 * manual/install.texi (Configuring and compiling): Do not list
8204 tools used for testing pretty printers here.
8205 (Tools for Compilation): List Python, PExpect and GDB here.
8206 Update descriptions of uses of Perl and Python.
8207 * INSTALL: Regenerate.
8208
8209 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8210 version to 4.18.
8211
8212 2018-08-13 Florian Weimer <fweimer@redhat.com>
8213
8214 * misc/error.c (error): Add missing va_end call.
8215 (error_at_line): Likewise.
8216
8217 2018-08-13 Florian Weimer <fweimer@redhat.com>
8218
8219 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8220
8221 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8222
8223 * benchtests/scripts/benchout.schema.json (properties): Add
8224 new properties.
8225
8226 * benchtests/bench-skeleton.c (main): Add duration and
8227 iterations attributes.
8228
8229 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8230
8231 regex: Gnulib unibyte RRI uses bytes not chars
8232 Adjust the non-glibc code to agree with what Gawk needs for
8233 rational range interpretation (RRI) for regular expression ranges.
8234 In unibyte locales, Gawk wants ranges to use the underlying byte
8235 rather than the character code point. This change does not affect
8236 glibc proper.
8237 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8238 In unibyte locales, use the byte value rather than
8239 running it through btowc.
8240
8241 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8242
8243 * sysdeps/generic/math-tests-snan.h: New file.
8244 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8245 (SNAN_TESTS_float): Do not define here.
8246 (SNAN_TESTS_double): Likewise.
8247 (SNAN_TESTS_long_double): Likewise.
8248 (SNAN_TESTS_float128): Likewise.
8249 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8250 * sysdeps/i386/fpu/math-tests.h: Remove file.
8251 * sysdeps/ia64/math-tests-snan.h: New file.
8252 * sysdeps/ia64/math-tests.h: Remove file.
8253 * sysdeps/x86/math-tests.h: Likewise.
8254 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8255
8256 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8257 Szabolcs Nagy <szabolcs.nagy@arm.com>
8258
8259 * math/Makefile: Add s_sincosf_data.c.
8260 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8261 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8262 (sincosf_poly): Likewise.
8263 (reduce_small): Likewise.
8264 (reduce_large): Likewise.
8265 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8266 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8267 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8268 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8269
8270 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8271 Szabolcs Nagy <szabolcs.nagy@arm.com>
8272
8273 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8274 (converttoint): Use lround.
8275 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8276 document the semantics when TOINT_INTRINSICS is set.
8277 (converttoint): Likewise.
8278 (TOINT_RINT): Remove.
8279 (TOINT_SHIFT): Remove.
8280 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8281 path.
8282
8283 2018-08-10 Florian Weimer <fweimer@redhat.com>
8284
8285 [BZ #23497]
8286 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8287 function.
8288 (__old_getdents64): Use getdents64. Convert entries without
8289 moving them.
8290 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8291 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8292 tst-readdir64-compat.
8293
8294 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8295
8296 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8297 Fix unwind.
8298
8299 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8300
8301 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8302 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8303 code to s390x-mcount.h and #include it.
8304 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8305 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8306 (__fentry__): Add.
8307
8308 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8309
8310 * stdlib/Versions: Remove __fentry__.
8311 * sysdeps/i386/Versions: Add __fentry__.
8312 * sysdeps/x86_64/Versions: Add __fentry__.
8313
8314 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8315
8316 * sysdeps/s390/Makefile: Register the new tests.
8317 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8318 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8319 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8320 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8321 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8322 * sysdeps/s390/tst-dl-runtime.c: New file.
8323
8324 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8325
8326 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8327 Do not clobber R0.
8328
8329 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8330
8331 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8332 Do not clobber R0.
8333
8334 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8335
8336 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8337 Do not clobber R0.
8338
8339 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8340
8341 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8342 Do not clobber R0.
8343
8344 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8345
8346 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8347 Use symbolic offsets for stack variables.
8348
8349 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8350
8351 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8352 Use symbolic offsets for stack variables.
8353
8354 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8355
8356 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8357 Use symbolic offsets for stack variables.
8358
8359 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8360
8361 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8362 Use symbolic offsets for stack variables.
8363
8364 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8365
8366 * math/gen-libm-test.py: New file.
8367 * math/gen-libm-test.pl: Remove.
8368 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8369 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8370 gen-libm-test.pl.
8371 ($(libm-test-c-noauto-obj)): Likewise.
8372 ($(libm-test-c-auto-obj)): Likewise.
8373 ($(libm-test-c-narrow-obj)): Likewise.
8374 (regen-ulps): Likewise.
8375 * math/README.libm-test: Update references to gen-libm-test.pl.
8376 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8377 referencing gen-libm-test.pl.
8378 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8379 * math/libm-test-support.c: Likewise.
8380 * math/libm-test-support.h: Likewise.
8381 * sysdeps/generic/libm-test-ulps: Likewise.
8382
8383 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8384
8385 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8386 Fix value.
8387
8388 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8389
8390 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8391 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8392
8393 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8394
8395 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8396 symbols.
8397 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8398 __pthread_setspecific): Add hidden proto.
8399 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8400 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8401
8402 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8403
8404 * benchtests/bench-string.h (buf1_size, buf2_size): New
8405 variables.
8406 (init_sizes): New function.
8407 (test_init): Use it.
8408 (alloc_buf, exit_error): New functions.
8409 (alloc_bufs): Use ALLOC_BUF.
8410 (realloc_bufs): Remove.
8411 * benchtests/bench-memcmp.c (do_test): Adjust.
8412 * benchtests/bench-memset-large.c (do_test): Likewise.
8413 * benchtests/bench-memset-walk.c (do_test): Likewise.
8414 * benchtests/bench-memset.c (do_test): Likewise.
8415 * benchtests/bench-strncmp.c (do_test): Likewise.
8416
8417 2018-08-06 Andreas Schwab <schwab@suse.de>
8418
8419 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8420 of CONST_THREAD_AREA.
8421
8422 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8423
8424 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8425 (STATE_SAVE_MASK): Likewise.
8426 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8427 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8428 (STATE_SAVE_MASK): Likewise.
8429 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8430 instead of <cpu-features.h>.
8431
8432 2018-08-03 DJ Delorie <dj@redhat.com>
8433
8434 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8435 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8436
8437 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8438
8439 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8440
8441 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8442 after TEST_* calls.
8443 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8444 * math/libm-test-logb.inc (logb_test_data): Likewise.
8445
8446 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8447
8448 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8449 * string/strstr.c (AVAILABLE): Likewise.
8450
8451 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8452
8453 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8454 <init-arch.h>.
8455 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8456 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8457 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8458
8459 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8460
8461 * po/be.po: Update translation.
8462
8463 * po/be.po: Update translation.
8464
8465 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8466
8467 * sysdeps/x86/cpu-features-offsets.sym
8468 (rtld_global_ro_offsetof): Removed.
8469 (CPU_FEATURES_SIZE): Likewise.
8470 (CPUID_OFFSET): Likewise.
8471 (CPUID_SIZE): Likewise.
8472 (CPUID_EAX_OFFSET): Likewise.
8473 (CPUID_EBX_OFFSET): Likewise.
8474 (CPUID_ECX_OFFSET): Likewise.
8475 (CPUID_EDX_OFFSET): Likewise.
8476 (FAMILY_OFFSET): Likewise.
8477 (MODEL_OFFSET): Likewise.
8478 (FEATURE_OFFSET): Likewise.
8479 (FEATURE_SIZ): Likewise.
8480 (COMMON_CPUID_INDEX_1): Likewise.
8481 (COMMON_CPUID_INDEX_7): Likewise.
8482 (FEATURE_INDEX_1): Likewise.
8483 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8484
8485 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8486
8487 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8488 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8489 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8490 (install-locales): Depend on install-locale-archive.
8491 (install-locale-archive): Define.
8492 (install-locale-files): Define.
8493 (build-one-locale): Define macro.
8494 * manual/install.texi (Running make install): Document.
8495 * manual/INSTALL: Regenerate.
8496
8497 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8498
8499 * benchtests/scripts/compare_strings.py: Import traceback.
8500 (parse_file): Pretty-print error.
8501
8502 * NEWS: Mention the change.
8503 * elf/dl-tunables.list: Rename tune namespace to cpu.
8504 * sysdeps/powerpc/dl-tunables.list: Likewise.
8505 * sysdeps/x86/dl-tunables.list: Likewise.
8506 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8507 cpu.name.
8508 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8509 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8510 * manual/README.tunables: Likewise.
8511 * manual/tunables.texi: Likewise.
8512 * sysdeps/powerpc/cpu-features.c: Likewise.
8513 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8514 (init_cpu_features): Likewise.
8515 * sysdeps/x86/cpu-features.c: Likewise.
8516 * sysdeps/x86/cpu-features.h: Likewise.
8517 * sysdeps/x86/cpu-tunables.c: Likewise.
8518 * sysdeps/x86_64/Makefile: Likewise.
8519 * sysdeps/x86/dl-cet.c: Likewise.
8520
8521 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8522
8523 [BZ #23479]
8524 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8525 [__mips_hard_float].
8526 (FE_UNDERFLOW): Likewise.
8527 (FE_OVERFLOW): Likewise.
8528 (FE_DIVBYZERO): Likewise.
8529 (FE_INVALID): Likewise.
8530 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8531 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8532 (FE_UPWARD): Likewise.
8533 (FE_DOWNWARD): Likewise.
8534 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8535 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8536 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8537 [__mips_hard_float].
8538 (FP_ROUNDMODE): Likewise.
8539 (FP_RND_NEAREST): Likewise.
8540 (FP_RND_ZERO): Likewise.
8541 (FP_RND_PINF): Likewise.
8542 (FP_RND_MINF): Likewise.
8543 (FP_EX_INVALID): Likewise.
8544 (FP_EX_OVERFLOW): Likewise.
8545 (FP_EX_UNDERFLOW): Likewise.
8546 (FP_EX_DIVZERO): Likewise.
8547 (FP_EX_INEXACT): Likewise.
8548 (FP_INIT_ROUNDMODE): Likewise.
8549 * sysdeps/mips/nofpu/fesetenv.c: New file.
8550 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8551
8552 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8553
8554 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8555 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8556 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8557 conditional on [FE_UPWARD].
8558
8559 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8560
8561 regex: fix memory leak in Gnulib
8562 Problem and fix reported by Assaf Gordon in:
8563 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8564 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8565 range_ends members too, as they are defined in 'struct
8566 re_charset_t' even if not _LIBC. This affects only Gnulib.
8567
8568 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8569
8570 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8571 ...
8572 (get_common_indices): This.
8573 (init_cpu_features): Updated.
8574
8575 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8576
8577 * sysdeps/generic/math-tests-snan-payload.h: New file.
8578 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8579 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8580 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8581 * sysdeps/generic/math-tests.h: Include
8582 <math-tests-snan-payload.h>.
8583 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8584 * sysdeps/hppa/math-tests.h: Remove file.
8585 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8586 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8587 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8588 Likewise.
8589
8590 * sysdeps/generic/math-tests-snan-cast.h: New file.
8591 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8592 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8593 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8594 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8595
8596 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8597
8598 * version.h (RELEASE): Set to "development".
8599 (VERSION): Set to "2.28.9000".
8600 * NEWS (2.29): New section.
8601
8602 * version.h (RELEASE): Set to "stable".
8603 (VERSION): Set to "2.28".
8604 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8605 * NEWS: Add the list of bugs fixed in 2.28.
8606
8607 * po/ca.po: Update to latest version.
8608 * po/cs.po: Likewise
8609 * po/da.po: Likewise
8610 * po/el.po: Likewise
8611 * po/eo.po: Likewise
8612 * po/es.po: Likewise
8613 * po/fi.po: Likewise
8614 * po/fr.po: Likewise
8615 * po/gl.po: Likewise
8616 * po/hu.po: Likewise
8617 * po/ia.po: Likewise
8618 * po/id.po: Likewise
8619 * po/it.po: Likewise
8620 * po/ja.po: Likewise
8621 * po/ko.po: Likewise
8622 * po/lt.po: Likewise
8623 * po/nb.po: Likewise
8624 * po/nl.po: Likewise
8625 * po/pt_BR.po: Likewise
8626 * po/ru.po: Likewise
8627 * po/rw.po: Likewise
8628 * po/sk.po: Likewise
8629 * po/sl.po: Likewise
8630 * po/tr.po: Likewise
8631 * po/zh_CN.po: Likewise
8632 * po/zh_TW.po: Likewise
8633
8634 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8635
8636 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8637 initialization...
8638 (init): ... before initializing libpthread.
8639
8640 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8641 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8642 (__mach_setup_tls): ... new function.
8643 (mach_setup_tls): New alias.
8644 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8645 __mach_setup_thread.
8646 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8647 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8648 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8649 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8650
8651 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8652
8653 * manual/install.texi: Update versions.
8654 * INSTALL: Regenerate.
8655
8656 * manual/contrib.texi (Contributors): Update contributions.
8657
8658 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8659
8660 * po/be.po: Update translations.
8661
8662 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8663
8664 * sysdeps/sh/libm-test-ulps: Update.
8665
8666 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8667
8668 * po/bg.po: Update translations.
8669 * po/de.po: Likewise.
8670 * po/hr.po: Likewise.
8671 * po/pt_BR.po: Likewise.
8672 * po/sv.po: Likewise.
8673 * po/vi.po: Likewise.
8674
8675 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8676
8677 [BZ #23467]
8678 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8679 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8680 (CFLAGS-tst-cet-property-1.o): New.
8681 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8682 ($(objpfx)tst-cet-property-2): Likewise.
8683 ($(objpfx)tst-cet-property-2.out): Likewise.
8684 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8685 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8686 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8687 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8688 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8689
8690 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8691
8692 [BZ #23458]
8693 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8694
8695 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8696
8697 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8698 __sbrk): Do not set attribute_hidden.
8699 * sysdeps/mach/hurd/not-errno.h: New file.
8700 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8701 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8702
8703 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8704
8705 * po/uk.po: Update translations.
8706 * po/cs.po: Likewise.
8707 * po/pl.po: Likewise.
8708
8709 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8710
8711 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8712 parse beyond the note end.
8713
8714 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8715
8716 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8717 kernel does not support OFD locks.
8718 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8719
8720 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8721
8722 * sysdeps/mach/hurd/Versions (libc): Make __access and
8723 __access_noerrno external so they can override the ld symbols.
8724 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8725 __writev, __open64, __access_noerrno extern so they can be overrided.
8726 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8727 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8728
8729 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8730
8731 * po/libc.pot: Regenerate.
8732
8733 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8734
8735 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8736
8737 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8738
8739 [BZ #23459]
8740 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8741 function.
8742 (init_cpu_features): Call get_extended_indices for both Intel
8743 and AMD CPUs.
8744 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8745 Remove "for AMD" comment.
8746
8747 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 [BZ # 23456]
8750 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8751 COMMON_CPUID_INDEX_80000001.
8752
8753 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8754
8755 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8756 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8757
8758 2018-07-26 Florian Weimer <fweimer@redhat.com>
8759
8760 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8761 aliases for symbols not in the implementation namespace.
8762
8763 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8764
8765 [BZ #23393]
8766 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8767 lowercase in LATIN script.
8768 * localedata/Makefile (test-input): Add en_US.UTF-8.
8769 * localedata/en_US.UTF-8.in: New file.
8770 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8771 and restore old tests.
8772 * posix/tst-regexloc.c (do_test): Add back range expression test.
8773
8774 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8775
8776 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8777
8778 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8779
8780 * nptl/threads.h: Move to ...
8781 * sysdeps/nptl/threads.h: ... here.
8782 * sysdeps/hurd/stdc-predef.h: New file.
8783
8784 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8785
8786 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8787 tst-cet-setcontext-1 if CET is enabled.
8788 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8789 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8790
8791 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8792
8793 * include/threads.h: Move to ...
8794 * sysdeps/nptl/threads.h: ... here.
8795 * sysdeps/htl/threads.h: New file.
8796 * conform/Makefile (linknamespace-libs-ISO11): Use
8797 static-thread-library instead of linking libpthread.
8798 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8799
8800 2018-07-25 Florian Weimer <fweimer@redhat.com>
8801
8802 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8803 nanoseconds into seconds.
8804 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8805 (do_test): Likewise.
8806 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8807 (do_test): Likewise. Avoid nanosecond overflow and spurious
8808 timeouts due to system load.
8809 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8810 (child_wait): Increment it.
8811 (do_test): Wait as long as necessary until all expected threads
8812 have arrived.
8813
8814 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8815 H.J. Lu <hongjiu.lu@intel.com>
8816
8817 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8818 __ssp.
8819 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8820 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8821 (__push___start_context): New.
8822 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8823 <asm/prctl.h>.
8824 (__getcontext): Record the current shadow stack base. Save the
8825 caller's shadow stack pointer and base.
8826 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8827 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8828 (__push___start_context): New prototype.
8829 (__makecontext): Call __push___start_context to allocate a new
8830 shadow stack, push __start_context onto the new stack as well
8831 as the new shadow stack.
8832 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8833 <asm/prctl.h>.
8834 (__setcontext): Restore the target shadow stack.
8835 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8836 <asm/prctl.h>.
8837 (__swapcontext): Record the current shadow stack base. Save
8838 the caller's shadow stack pointer and base. Restore the target
8839 shadow stack.
8840 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8841 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8842 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8843
8844 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8845
8846 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8847 tst-setcontext8 and tst-setcontext9.
8848 * stdlib/tst-setcontext6.c: New file.
8849 * stdlib/tst-setcontext7.c: Likewise.
8850 * stdlib/tst-setcontext8.c: Likewise.
8851 * stdlib/tst-setcontext9.c: Likewise.
8852
8853 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8854
8855 * stdlib/Makefile ((tests): Add tst-setcontext5.
8856 * stdlib/tst-setcontext5.c: New file.
8857
8858 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8859
8860 * stdlib/Makefile (tests): Add tst-setcontext4.
8861 * stdlib/tst-setcontext4.c: New file.
8862
8863 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8864
8865 * stdlib/Makefile (tests): Add tst-swapcontext1.
8866 * stdlib/tst-swapcontext1.c: New test.
8867
8868 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8869
8870 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8871 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8872 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8873 and tst-cet-legacy-4c.
8874 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8875 and tst-cet-legacy-mod-4.
8876 (CFLAGS-tst-cet-legacy-2.c): New.
8877 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8878 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8879 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8880 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8881 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8882 ($(objpfx)tst-cet-legacy-1): Likewise.
8883 ($(objpfx)tst-cet-legacy-2): Likewise.
8884 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8885 ($(objpfx)tst-cet-legacy-2a): Likewise.
8886 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8887 ($(objpfx)tst-cet-legacy-4): Likewise.
8888 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8889 ($(objpfx)tst-cet-legacy-4a): Likewise.
8890 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8891 (tst-cet-legacy-4a-ENV): Likewise.
8892 ($(objpfx)tst-cet-legacy-4b): Likewise.
8893 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8894 (tst-cet-legacy-4b-ENV): Likewise.
8895 ($(objpfx)tst-cet-legacy-4c): Likewise.
8896 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8897 (tst-cet-legacy-4c-ENV): Likewise.
8898 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8899 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8900 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8901 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8902 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8903 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8904 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8905 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8906 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8907 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8908 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8909
8910 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8911
8912 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8913 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8914 with ssp_base.
8915 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8916 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8917 with ssp_base.
8918
8919 2018-07-25 Andreas Schwab <schwab@suse.de>
8920
8921 [BZ #23442]
8922 * locale/weightwc.h (findidx): Handle the case where usrc is a
8923 prefix of cp but one character too short.
8924
8925 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8926
8927 * NEWS: Add ISO C threads addition.
8928
8929 2018-07-24 Florian Weimer <fweimer@redhat.com>
8930
8931 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8932 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8933 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8934 4.13.
8935
8936 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8937
8938 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8939 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8940 <sys/prctl.h> and <asm/prctl.h>.
8941 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8942 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8943 and <asm/prctl.h>.
8944 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8945 ARCH_CET_LEGACY_BITMAP.
8946 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8947 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8948 * sysdeps/x86/libc-start.c: Include <startup.h>.
8949
8950 2018-07-24 Florian Weimer <fweimer@redhat.com>
8951
8952 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8953 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8954
8955 2018-07-24 Rical Jasan <rj@2c3t.io>
8956 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8957 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8958
8959 [BZ #14092]
8960 * manual/debug.texi: Update adjacent chapter name.
8961 * manual/probes.texi: Likewise.
8962 * manual/threads.texi (ISO C Threads): New section.
8963 (POSIX Threads): Convert to a section.
8964
8965 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8966 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8967
8968 [BZ# 14092]
8969 * nptl/Makefile (tests): Add new test files.
8970 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8971 * nptl/tst-cnd-basic.c: Likewise.
8972 * nptl/tst-cnd-broadcast.c: Likewise.
8973 * nptl/tst-cnd-timedwait.c: Likewise.
8974 * nptl/tst-mtx-basic.c: Likewise.
8975 * nptl/tst-mtx-recursive.c: Likewise.
8976 * nptl/tst-mtx-timedlock.c: Likewise.
8977 * nptl/tst-mtx-trylock.c: Likewise.
8978 * nptl/tst-thrd-basic.c: Likewise.
8979 * nptl/tst-thrd-detach.c: Likewise.
8980 * nptl/tst-thrd-sleep.c: Likewise.
8981 * nptl/tst-tss-basic.c: Likewise.
8982
8983 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8984
8985 [BZ #14092]
8986 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8987 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8988 symbols.
8989 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8990 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8991 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8992 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8993 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8994 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8995 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8996 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8997 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8998 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8999 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
9000 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
9001 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
9002 Likewise.
9003 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
9004 Likewise.
9005 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
9006 Likewise.
9007 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
9008 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
9009 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
9010 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
9011 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
9012 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
9013 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
9014 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
9015 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
9016 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
9017 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
9018 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
9019 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
9020 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
9021 Likewise.
9022 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
9023 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
9024 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
9025 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
9026 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
9027 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
9028 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
9029 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
9030 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
9031 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
9032 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
9033 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
9034 ikewise.
9035 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
9036 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
9037 Likewise.
9038 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9039 Likewise.
9040 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9041 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9042 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9043 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9044 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9045 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9046 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9047 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9048
9049 [BZ #14092]
9050 * conform/data/threads.h-data (thread_local): New macro.
9051 (TSS_DTOR_ITERATIONS): Likewise.
9052 (tss_t): New type.
9053 (tss_dtor_t): Likewise.
9054 (tss_create): New function.
9055 (tss_get): Likewise.
9056 (tss_set): Likewise.
9057 (tss_delete): Likewise.
9058 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9059 tss_get, and tss_set objects.
9060 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9061 * nptl/tss_create.c: New file.
9062 * nptl/tss_delete.c: Likewise.
9063 * nptl/tss_get.c: Likewise.
9064 * nptl/tss_set.c: Likewise.
9065 * sysdeps/nptl/threads.h (thread_local): New define.
9066 (TSS_DTOR_ITERATIONS): Likewise.
9067 (tss_t): New typedef.
9068 (tss_dtor_t): Likewise.
9069 (tss_create): New prototype.
9070 (tss_get): Likewise.
9071 (tss_set): Likewise.
9072 (tss_delete): Likewise.
9073
9074 [BZ #14092]
9075 * conform/data/threads.h-data (cnd_t): New type.
9076 (cnd_init): New function.
9077 (cnd_signal): Likewise.
9078 (cnd_broadcast): Likewise.
9079 (cnd_wait): Likewise.
9080 (cnd_timedwait): Likewise.
9081 (cnd_destroy): Likewise.
9082 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9083 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9084 object.
9085 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9086 * nptl/cnd_broadcast.c: New file.
9087 * nptl/cnd_destroy.c: Likewise.
9088 * nptl/cnd_init.c: Likewise.
9089 * nptl/cnd_signal.c: Likewise.
9090 * nptl/cnd_timedwait.c: Likewise.
9091 * nptl/cnd_wait.c: Likewise.
9092 * sysdeps/nptl/threads.h (cnd_t): New type.
9093 (cnd_init): New prototype.
9094 (cnd_signa): Likewise.
9095 (cnd_broadcast): Likewise.
9096 (cnd_wait): Likewise.
9097 (cnd_timedwait): Likewise.
9098 (cnd_destroy): Likewise.
9099
9100 [BZ #14092]
9101 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9102 (once_flag): New type.
9103 (call_once): New function.
9104 * nptl/Makefile (libpthread-routines): Add call_once object.
9105 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9106 * nptl/call_once.c: New file.
9107 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9108 (once_flag): New type.
9109 (call_once): New prototype.
9110
9111 [BZ #14092]
9112 * conform/data/threads.h-data (mtx_plain): New constant.
9113 (mtx_recursive): Likewise.
9114 (mtx_timed): Likewise.
9115 (mtx_t): New type.
9116 (mtx_init): New function.
9117 (mtx_lock): Likewise.
9118 (mtx_timedlock): Likewise.
9119 (mtx_trylock): Likewise.
9120 (mtx_unlock): Likewise.
9121 (mtx_destroy): Likewise.
9122 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9123 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9124 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9125 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9126 * nptl/mtx_destroy.c: New file.
9127 * nptl/mtx_init.c: Likewise.
9128 * nptl/mtx_lock.c: Likewise.
9129 * nptl/mtx_timedlock.c: Likewise.
9130 * nptl/mtx_trylock.c: Likewise.
9131 * nptl/mtx_unlock.c: Likewise.
9132 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9133 (mtx_recursive): Likewise.
9134 (mtx_timed): Likewise.
9135 (mtx_t): New type.
9136 (mtx_init): New prototype.
9137 (mtx_lock): Likewise.
9138 (mtx_timedlock): Likewise.
9139 (mtx_trylock): Likewise.
9140 (mtx_unlock): Likewise.
9141 (mtx_destroy): Likewise.
9142
9143 [BZ #14092]
9144 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9145 (linknamespace-libs-ISO11): Add libpthread.a.
9146 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9147 functions.
9148 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9149 * nptl/Makefile (headers): Add threads.h.
9150 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9151 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9152 thrd_yield.
9153 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9154 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9155 thrd_join, thrd_sleep, and thrd_yield symbols.
9156 * nptl/descr.h (struct pthread): Add c11 field.
9157 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9158 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9159 routine with expected function prototype.
9160 (__pthread_create_2_1): Add C11 threads check based on attribute
9161 value.
9162 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9163 * nptl/thrd_create.c: New file.
9164 * nptl/thrd_current.c: Likewise.
9165 * nptl/thrd_detach.c: Likewise.
9166 * nptl/thrd_equal.c: Likewise.
9167 * nptl/thrd_exit.c: Likewise.
9168 * nptl/thrd_join.c: Likewise.
9169 * nptl/thrd_priv.h: Likewise.
9170 * nptl/thrd_sleep.c: Likewise.
9171 * nptl/thrd_yield.c: Likewise.
9172 * include/threads.h: Likewise.
9173
9174 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9175
9176 * bits/indirect-return.h: New file.
9177 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9178 * sysdeps/x86/bits/indirect-return.h: Likewise.
9179 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9180 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9181 (swapcontext): Add __INDIRECT_RETURN.
9182 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9183 (prepare_test_buffer): Use it.
9184
9185 2018-07-24 Andreas Schwab <schwab@suse.de>
9186
9187 [BZ #23448]
9188 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9189 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9190
9191 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9192
9193 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9194 Redefine if shadow stack is enabled.
9195 (SYSCALL_ERROR_LABEL): Likewise.
9196 (__vfork): Pop shadow stack and jump back to to caller directly
9197 when shadow stack is in use.
9198 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9199 Redefine if shadow stack is enabled.
9200 (SYSCALL_ERROR_LABEL): Likewise.
9201 (__vfork): Pop shadow stack and jump back to to caller directly
9202 when shadow stack is in use.
9203
9204 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9205
9206 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9207 enabled.
9208 (foo): Likewise.
9209 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9210 (foo): Likewise.
9211
9212 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9213
9214 * scripts/build-many-glibcs.py (Context.checkout): Default
9215 binutils version to 2.31 branch.
9216
9217 2018-07-20 Zong Li <zong@andestech.com>
9218
9219 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9220 URL of gcc's tarball.
9221
9222 2018-07-20 Florian Weimer <fweimer@redhat.com>
9223
9224 [BZ #23396]
9225 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9226 not compare an extra byte after the end of the weights.
9227
9228 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9229
9230 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9231 to 1.
9232 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9233 hidden prototypes.
9234 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9235 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9236 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9237 list of libraries whose stack executability is expected.
9238 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9239 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9240 variable.
9241 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9242 libc.so libpthread.so.
9243
9244 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9245
9246 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9247 SOCK_NONBLOCK.
9248 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9249 and SOCK_NONBLOCK.
9250 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9251 implement __pipe2.
9252 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9253
9254 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9255
9256 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9257 library to improve command line parsing.
9258 (__main__): make schema file as optional parameter (--schema),
9259 defaulting to benchtests/scripts/benchout.schema.json.
9260 (main): move out of the parsing stuff to __main_  and leave it
9261 only as caller of main comparison functions.
9262
9263 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9264
9265 * NEWS: Add a note for Intel CET status.
9266 * manual/install.texi: Likewise.
9267 * INSTALL: Regenerated.
9268
9269 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9270
9271 [BZ #23140]
9272 * localedata/locales/oc_FR (mon): Rename to...
9273 (alt_mon): This, then update October (typo fix).
9274 (mon): New content (genitive case, month names preceded by
9275 "de" or "d’").
9276
9277 [BZ #23422]
9278 * localedata/locales/oc_FR (abday): Update all items.
9279 (day): Update Wednesday and Saturday (typo fixes).
9280 (abmon): Update all items, except May.
9281 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9282 (LC_IDENTIFICATION): Bump the revision number and date.
9283 Keep the "category" entries in alphabetic order.
9284 (LC_ADDRESS): Remove no longer needed comment.
9285 (LC_COLLATE): Use “copy "ca_ES"”.
9286 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9287 "name_mrs".
9288
9289 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9290
9291 * grp/tst_fgetgrent.c: Include <unistd.h>.
9292 (main): Use mkstemp instead of tmpnam.
9293 * io/test-utime.c (main): Likewise.
9294 * posix/annexc.c (macrofile): Change to modifiable array.
9295 (main): Remove macrofile here.
9296 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9297 macrofile here.
9298 (check_header): Do not remove macrofile here.
9299 * posix/bug-getopt1.c: Include <stdlib.h>.
9300 (do_test): Use mkstemp instead of tmpnam.
9301 * posix/bug-getopt2.c: Include <stdlib.h>.
9302 (do_test): Use mkstemp instead of tmpnam.
9303 * posix/bug-getopt3.c: Include <stdlib.h>.
9304 (do_test): Use mkstemp instead of tmpnam.
9305 * posix/bug-getopt4.c: Include <stdlib.h>.
9306 (do_test): Use mkstemp instead of tmpnam.
9307 * posix/bug-getopt5.c: Include <stdlib.h>.
9308 (do_test): Use mkstemp instead of tmpnam.
9309 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9310 (main): Use mkstemp instead of tmpnam.
9311 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9312 (main): Use mkstemp instead of tmpnam.
9313 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9314 (main): use mkstemp instead of tmpnam.
9315 * stdlib/isomac.c (macrofile): Change to modifiable array.
9316 (main): Remove macrofile here.
9317 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9318 macrofile here.
9319 (check_header): Do not remove macrofile here.
9320
9321 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9322
9323 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9324 glibc.tune.x86_shstk.
9325
9326 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9327
9328 * NEWS: Mention --enable-cet.
9329 * manual/install.texi: Document --enable-cet.
9330 * INSTALL: Regenerated.
9331
9332 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9333
9334 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9335 Add _CET_NOTRACK before indirect jump to jump table.
9336
9337 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9338
9339 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9340 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9341 to jump table.
9342
9343 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9344
9345 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9346 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9347 to jump table.
9348
9349 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9350
9351 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9352 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9353 to jump table.
9354
9355 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9356
9357 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9358 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9359 to jump table.
9360
9361 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9362
9363 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9364 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9365 to jump table.
9366 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9367
9368 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9369
9370 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9371 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9372 to jump table.
9373
9374 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9375
9376 * sysdeps/i386/i686/multiarch/memset-sse2.S
9377 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9378 to jump table.
9379
9380 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9381
9382 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9383 indirect jump to jump table.
9384
9385 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9386
9387 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9388 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9389 to jump table.
9390 (MEMCPY): Likewise.
9391
9392 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9393
9394 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9395 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9396 to jump table.
9397 (MEMCPY): Likewise.
9398
9399 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9400
9401 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9402 _CET_NOTRACK before indirect jump to jump table.
9403
9404 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9405
9406 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9407 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9408 to jump table.
9409
9410 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9411
9412 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9413 indirect jump to jump table.
9414
9415 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9416
9417 [BZ #22241]
9418 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9419 (LOCALES): Likewise.
9420 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9421 * localedata/locales/sah_RU: New file.
9422 * localedata/sah_RU.UTF-8.in: New file.
9423
9424 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9425
9426 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9427 "sysdep.h".
9428 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9429 _CET_ENDBR to indirect jump targets and adjust jump destination
9430 for _CET_ENDBR.
9431 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9432 "sysdep.h".
9433 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9434 _CET_ENDBR to indirect jump targets and adjust jump destination
9435 for _CET_ENDBR.
9436 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9437 "sysdep.h".
9438 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9439 _CET_ENDBR to indirect jump targets and adjust jump destination
9440 for _CET_ENDBR.
9441
9442 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9443
9444 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9445 _CET_ENDBR.
9446
9447 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9448
9449 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9450 _CET_ENDBR.
9451 (_dl_tlsdesc_undefweak): Likewise.
9452 (_dl_tlsdesc_dynamic): Likewise.
9453 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9454 (_dl_tlsdesc_resolve_rel): Likewise.
9455 (_dl_tlsdesc_resolve_rela): Likewise.
9456 (_dl_tlsdesc_resolve_hold): Likewise.
9457 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9458 (_dl_tlsdesc_undefweak): Likewise.
9459 (_dl_tlsdesc_dynamic): Likewise.
9460 (_dl_tlsdesc_resolve_rela): Likewise.
9461 (_dl_tlsdesc_resolve_hold): Likewise.
9462
9463 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9464
9465 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9466 (_fini): Likewise.
9467 * sysdeps/x86_64/crti.S (_init): Likewise.
9468 (_fini): Likewise.
9469
9470 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9471
9472 [BZ #23140]
9473 * localedata/locales/os_RU (mon): Rename to...
9474 (alt_mon): This.
9475 (mon): Import from CLDR (genitive case).
9476
9477 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9478
9479 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9480 cet-tunables.h> when CET is enabled.
9481
9482 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9483
9484 [BZ #21598]
9485 * configure.ac: Add --enable-cet.
9486 * configure: Regenerated.
9487 * elf/Makefille (all-built-dso): Add a comment.
9488 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9489 Include <dl-prop.h>.
9490 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9491 segment.
9492 * elf/dl-open.c: Include <dl-prop.h>.
9493 (dl_open_worker): Call _dl_open_check.
9494 * elf/rtld.c: Include <dl-prop.h>.
9495 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9496 _rtld_main_check.
9497 * sysdeps/generic/dl-prop.h: New file.
9498 * sysdeps/i386/dl-cet.c: Likewise.
9499 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9500 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9501 * sysdeps/x86/cet-tunables.h: Likewise.
9502 * sysdeps/x86/check-cet.awk: Likewise.
9503 * sysdeps/x86/configure: Likewise.
9504 * sysdeps/x86/configure.ac: Likewise.
9505 * sysdeps/x86/dl-cet.c: Likewise.
9506 * sysdeps/x86/dl-procruntime.c: Likewise.
9507 * sysdeps/x86/dl-prop.h: Likewise.
9508 * sysdeps/x86/libc-start.h: Likewise.
9509 * sysdeps/x86/link_map.h: Likewise.
9510 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9511 _CET_ENDBR.
9512 (_dl_runtime_profile): Likewise.
9513 (_dl_runtime_resolve_shstk): New.
9514 (_dl_runtime_profile_shstk): Likewise.
9515 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9516 if CET is enabled.
9517 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9518 (CFLAGS-.os): Likewise.
9519 (CFLAGS-.op): Likewise.
9520 (CFLAGS-.oS): Likewise.
9521 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9522 is enabled.
9523 (tests-special): Add $(objpfx)check-cet.out.
9524 (cet-built-dso): New.
9525 (+$(cet-built-dso:=.note)): Likewise.
9526 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9527 ($(objpfx)check-cet.out): New.
9528 (generated): Add check-cet.out.
9529 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9530 <cet-tunables.h>.
9531 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9532 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9533 (init_cpu_features): Call get_cet_status to check CET status
9534 and update dl_x86_feature_1 with CET status. Call
9535 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9536 (set_x86_shstk). Disable and lock CET in libc.a.
9537 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9538 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9539 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9540 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9541 (_CET_ENDBR): Define if not defined.
9542 (ENTRY): Add _CET_ENDBR.
9543 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9544 x86_shstk.
9545 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9546 _CET_ENDBR.
9547 (_dl_runtime_profile): Likewise.
9548
9549 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9550
9551 [BZ #21895]
9552 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9553 restore r2 on longjmp.
9554 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9555 test list.
9556 Added rules to build test tst-setjmp-bug21895-static.
9557 Added module setjmp-bug21895 and rules to build a shared object from it.
9558 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9559 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9560
9561 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9562
9563 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9564 * benchtests/bench-strstr.c: Likewise.
9565 * string/memmem.c (FASTSEARCH): Define.
9566 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9567 Add support for FASTSEARCH.
9568 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9569 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9570 (FASTSEARCH): Define.
9571 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9572 * string/test-strstr.c: Likewise.
9573
9574 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9575
9576 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9577 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9578
9579 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9580 H.J. Lu <hongjiu.lu@intel.com>
9581
9582 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9583 (__longjmp): Restore shadow stack pointer if shadow stack is
9584 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9585 isn't defined for __longjmp_cancel.
9586 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9587 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9588 and SHADOW_STACK_POINTER_OFFSET is defined.
9589 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9590 (setjmp): Save shadow stack pointer if shadow stack is enabled
9591 and SHADOW_STACK_POINTER_OFFSET is defined.
9592 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9593 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9594 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9595 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9596 <jmp_buf-ssp.h>.
9597 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9598 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9599 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9600 Remove jmp_buf-ssp.sym.
9601 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9602 <jmp_buf-ssp.h>.
9603 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9604 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9605 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9606 jmp_buf-ssp.sym.
9607 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9608 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9609 (__longjmp): Restore shadow stack pointer if shadow stack is
9610 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9611 isn't defined for __longjmp_cancel.
9612 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9613 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9614 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9615
9616 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9617
9618 [BZ #22563]
9619 * nptl/pthread_create.c: Include <tls-setup.h>.
9620 (__pthread_create_2_1): Call tls_setup_tcbhead.
9621 * sysdeps/generic/tls-setup.h: New file.
9622 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9623 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9624 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9625 Likewise.
9626 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9627 to feature_1.
9628 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9629 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9630 (X86_FEATURE_1_SHSTK): Likewise.
9631 (CET_ENABLED): Likewise.
9632 (IBT_ENABLED): Likewise.
9633 (SHSTK_ENABLED): Likewise.
9634
9635 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9636
9637 [BZ #23208]
9638 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9639 (LOCALES): Likewise.
9640 * localedata/dsb_DE.UTF-8.in: New file.
9641 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9642
9643 2018-07-12 Florian Weimer <fweimer@redhat.com>
9644
9645 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9646 __mprotect, not mprotect.
9647
9648 2018-07-11 Florian Weimer <fweimer@redhat.com>
9649
9650 * io/Makefile (headers): Add bits/statx.h.
9651
9652 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9653
9654 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9655 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9656 and headers.
9657 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9658 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9659 for utf8_gen.py
9660
9661 2018-07-10 Florian Weimer <fweimer@redhat.com>
9662
9663 * io/Makefile (routines): Add statx.
9664 (tests-internal): Add tst-statx.
9665 * io/Versions (GLIBC_2.28): Export statx.
9666 * io/bits/statx.h: New file.
9667 * io/sys/stat.h [__USE_GNU]: Include it.
9668 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9669 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9670 Define.
9671 * io/statx.c: New file.
9672 * io/statx_generic.: Likewise.
9673 * io/tst-statx.: Likewise.
9674 * include/bits/statx.h: Likewise.
9675 * sysdeps/unix/sysv/linux/kernel-features.h
9676 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9677 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9678 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9679 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9680 Undefine.
9681 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9682 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9683 * sysdeps/unix/sysv/linux/statx.c: New file.
9684 * manual/filesys.texi: Note that statx is undocumented.
9685 * sysdeps/**/libc*.abilist: Update.
9686
9687 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9688
9689 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9690 a kernel issue which lead to test failure in some cases.
9691
9692 2018-07-10 Florian Weimer <fweimer@redhat.com>
9693
9694 [BZ #23036]
9695 * posix/regexec.c (check_node_accept_bytes): When comparing
9696 weights, do not compare an extra byte after the end of the
9697 weights.
9698
9699 2018-07-10 Florian Weimer <fweimer@redhat.com>
9700
9701 * libio/readline.c: Fix copyright year.
9702 * libio/tst-readline.c Likewise.
9703 * nss/tst-nss-files-hosts-getent.c: Likewise.
9704
9705 2018-07-06 Florian Weimer <fweimer@redhat.com>
9706
9707 [BZ #18991]
9708 * nss/nss_files/files-XXX.c (internal_getent): Use
9709 __libc_readline_unlocked. Seek back to the start of the line if
9710 parsing failes with ERANGE.
9711 (get_contents_ret, get_contents): Remove.
9712 * nss/tst-nss-files-hosts-getent.c: New file.
9713 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9714 (tst-nss-files-hosts-getent): Link with -ldl.
9715
9716 2018-07-06 Florian Weimer <fweimer@redhat.com>
9717
9718 * include/stdio.h (__libc_readline_unlocked): Declare.
9719 (__ftello64, __fseeko64): Declare aliases.
9720 * libio/readline.c: New file.
9721 * libio/tst-readline.c: Likewise.
9722 (routines): Add readline.
9723 (tests-internal): Add tst-readlime.
9724 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9725 __libc_readline_unlocked.
9726 * libio/fseeko.c (__fseeko): Rename from fseeko.
9727 (fseeko): Add alias.
9728 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9729 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9730 (fseeko64): Add alias.
9731 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9732 * libio/ftello64.c (__ftello64): Rename from ftello64.
9733 (ftello64): Add alias.
9734
9735 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9736
9737 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9738 HWCAP_ATOMICS.
9739
9740 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9741
9742 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9743 Use dl_hwcap without masking.
9744 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9745 Remove HWCAP_CPUID.
9746
9747 2018-07-06 Florian Weimer <fweimer@redhat.com>
9748
9749 * conform/conformtest.pl (checknamespace): Escape literal braces
9750 in regular expressions.
9751
9752 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9753
9754 * sysdeps/x86/cpu-features.c (get_common_indeces):
9755 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9756 * sysdeps/x86/cpu-features.c (init_cpu_features):
9757 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9758
9759 2018-07-05 Florian Weimer <fweimer@redhat.com>
9760
9761 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9762 protector.
9763 (CFLAGS-elf-init.oS): Likewise.
9764
9765 2018-07-05 Florian Weimer <fweimer@redhat.com>
9766 Carlos O'Donell <carlos@redhat.com>
9767
9768 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9769 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9770 with stack protector enabled because there is no risk of infinite
9771 recursion.
9772
9773 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9774
9775 [BZ #19818]
9776 [BZ #23307]
9777 * libc-abis (ABSOLUTE): New ABI.
9778 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9779 * NEWS: Mention the new ABI.
9780
9781 2018-07-05 Florian Weimer <fweimer@redhat.com>
9782
9783 [BZ # 17662]
9784 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9785 (RENAME_WHITEOUT): Define.
9786 [__USE_GNU] (renameat2): Declare.
9787 * stdio-common/Makefile (routines): Add renameat2.
9788 (tests): Add tst-renameat2.
9789 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9790 * stdio-common/renameat2.c: New file.
9791 * stdio-common/tst-renameat2.c: Likewise.
9792 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9793 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9794 undocumented.
9795 * sysdeps/unix/sysv/linux/kernel-features.h
9796 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9797 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9798 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9799 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9800 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9801 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9802 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9803 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9804 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9805 * include/stdio.h (__renameat): Add alias for renameat.
9806 * stdio-common/renameat.c (__renameat): Rename from renameat.
9807 Add hidden definition and alias.
9808 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9809 * sysdeps/mach/hurd/renameat.c: Likewise.
9810 * sysdeps/**/libc*.abilist: Add renameat2.
9811
9812 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9813
9814 * posix/bug-regex33.c: Fix build after regex sync.
9815
9816 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9817
9818 [BZ #23164]
9819 * localedata/tst-langinfo-setlocale.c: New file.
9820 * localedata/tst-langinfo-setlocale-static.c: New file.
9821 * localedata/tst-langinfo-newlocale.c: New file.
9822 * localedata/tst-langinfo-newlocale-static.c: New file.
9823 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9824 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9825 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9826 (tests-static): Remove tst-langinfo-static. Add
9827 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9828 (tests-special): Remove $(objpfx)tst-langinfo.out,
9829 $(objpfx)tst-langinfo-static.out. Add
9830 $(objpfx)tst-langinfo-setlocale.out,
9831 $(objpfx)tst-langinfo-newlocale.out,
9832 $(objpfx)tst-langinfo-setlocale-static.out,
9833 $(objpfx)tst-langinfo-newlocale-static.out.
9834 ($(objpfx)tst-langinfo.out): Remove.
9835 ($(objpfx)tst-langinfo-static.out): Remove.
9836 ($(objpfx)tst-langinfo-newlocale.out): New target.
9837 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9838 (test-xfail-tst-langinfo-newlocale-static): Add.
9839 ($(objpfx)tst-langinfo-setlocale.out): New target.
9840 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9841 * localedata/tst-langinfo.c: Call test_locale.
9842 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9843 data.
9844
9845 2018-07-04 Florian Weimer <fweimer@redhat.com>
9846
9847 testrun.sh: Implement --tool=strace, --tool=valgrind
9848 * Makefile (testrun-script): Define variable.
9849 (testrun.sh): Use variable.
9850 * manual/install.texi (Tools for Compilation): make 4.0 or later
9851 is required.
9852 * configure.ac: Check for make 4.0 or later.
9853 * INSTALL: Regenerate.
9854 * configure: Likewise.
9855
9856 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9857
9858 [BZ #23233]
9859 [BZ #21163]
9860 [BZ #18986]
9861 [BZ #13762]
9862 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9863 * posix/PCRE.tests: Remove invalid test.
9864 * posix/bug-regex28.c: Fix expected values for used syntax.
9865 * posix/bug-regex37.c: New file.
9866 * posix/bug-regex38.c: Likewise.
9867 * posix/regcomp.c: Sync with gnulib.
9868 * posix/regex.c: Likewise.
9869 * posix/regex.h: Likewise.
9870 * posix/regex_internal.c: Likewise.
9871 * posix/regex_internal.h: Likewise.
9872 * posix/regexec.c: Likewise.
9873
9874 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9875
9876 [BZ #23308]
9877 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9878 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9879 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9880 * localedata/unicode-gen/PropList.txt: likewise.
9881 * localedata/unicode-gen/UnicodeData.txt: likewise.
9882 * localedata/charmaps/UTF-8: Regenerate.
9883 * localedata/locales/i18n_ctype: likewise.
9884 * localedata/locales/tr_TR: likewise.
9885 * localedata/locales/translit_circle: likewise.
9886 * localedata/locales/translit_cjk_compat: likewise.
9887 * localedata/locales/translit_combining: likewise.
9888 * localedata/locales/translit_compat: likewise.
9889 * localedata/locales/translit_font: likewise.
9890 * localedata/locales/translit_fraction: likewise.
9891
9892 2018-07-03 Florian Weimer <fweimer@redhat.com>
9893
9894 [BZ #23363]
9895 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9896 * stdio-common/tst-printf.sh: Adjust expected output.
9897 * LICENSES: Update.
9898
9899 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9900
9901 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9902 symbol.
9903
9904 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9905
9906 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9907 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9908 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9909 * stdio-common/tst-printfsz-islongdouble.c: New file.
9910 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9911 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9912 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9913 [subdir == stdio-common] (tests-internal): Add
9914 test-printf-size-ieee128, and test-printf-size-ibm128.
9915 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9916 (CFLAGS-test-printf-size-ibm128.c): New variables.
9917 [subdir == stdio-common] (tests-special): Add
9918 $(objpfx)test-printf-size-ieee128.out and
9919 $(objpfx)test-printf-size-ibm128.out.
9920 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9921 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9922 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9923 __printf_sizeieee128.
9924 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9925 New file.
9926 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9927 Likewise.
9928 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9929 Likewise.
9930
9931 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9932
9933 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9934 (exp2f_inline): Likewise.
9935 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9936 (__math_uflowf): Likewise.
9937 (__math_may_uflowf): Likewise.
9938 (__math_divzerof): Likewise.
9939 (__math_invalidf): Likewise.
9940 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9941 (__math_oflowf): Likewise.
9942 (__math_uflowf): Likewise.
9943 (__math_may_uflowf): Likewise.
9944 (__math_divzerof): Likewise.
9945 (__math_invalidf): Likewise.
9946
9947 2018-06-29 DJ Delorie <dj@redhat.com>
9948 Carlos O'Donell <carlos@redhat.com>
9949
9950 [BZ #23329]
9951 * include/libc-symbols.h: Comment the freeres framework.
9952 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9953 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9954 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9955 * dlfcn/dlerror.c: Include libc-symbols.h
9956 (__dlerror_main_freeres): New function.
9957 * dlfcn/dlfreeres.c: New file.
9958 * dlfcn/sdlfreeres.c: New file.
9959 * include/dlfcn.h: Declare __dlerror_main_freeres.
9960 * malloc/set-freeres.c: Declare __libdl_freeres, and
9961 __libpthread_freeres.
9962 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9963 the releavant libraries are loaded.
9964 * malloc/thread-freeres.c: Add comments.
9965 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9966 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9967 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9968 (__free_stacks): Rename to...
9969 (free_stacks): ...this. Mark static.
9970 (queue_stack): Call free_stacks.
9971 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9972 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9973 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9974 ptr_freeres element from struct.
9975 (pthread_functions): Remove .ptr_freeres from struct initializer.
9976 [SHARED] (nptl_freeres): Remove.
9977 * nptl/nptlfreeres.c: New file.
9978 * nptl/pthreadP.h
9979 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9980 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9981 attribute_hidden.
9982 (__free_stacks): Rename to...
9983 (__nptl_stacks_freeres): ...this.
9984 (__shm_directory_freeres): Declare.
9985 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9986 (__nptl_unwind_freeres): ...this.
9987 * resolv/res-close.c: Add comment.
9988 * resolv/resolv_conf.c: Include libc-symbols.h.
9989 * string/strerror_l.c: Include libc-symbols.h.
9990 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9991 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9992 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9993 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9994
9995 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9996
9997 * stdlib/tst-strfmon_l.c: Add tests for long double.
9998
9999 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
10000
10001 [BZ #23208]
10002 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
10003 * localedata/locales/dsb_DE: New file.
10004
10005 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10006
10007 [BZ #23140]
10008 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
10009 genitive case).
10010 (alt_mon): New entry, import from CLDR (nominative case).
10011
10012 2018-06-29 Sylvain Lesage <severo@rednegra.net>
10013
10014 [BZ #22996]
10015 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
10016
10017 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
10018
10019 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
10020 Use vector registers.
10021
10022 * sysdeps/aarch64/multiarch/memmove_falkor.S
10023 (__memcpy_falkor): Use vector registers.
10024
10025 2018-06-29 Martin Sebor <msebor@redhat.com>
10026
10027 * manual/stdio.texi (Customizing Printf): Mention interaction
10028 with GCC built-ins.
10029
10030 2018-06-29 Maciej W. Rozycki <macro@mips.com>
10031
10032 [BZ #23307]
10033 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
10034 `st_value' is 0 if `st_shndx' is SHN_ABS.
10035 * elf/tst-absolute-zero.c: New file.
10036 * elf/tst-absolute-zero-lib.c: New file.
10037 * elf/tst-absolute-zero-lib.lds: New file.
10038 * elf/Makefile (tests): Add `tst-absolute-zero'.
10039 (modules-names): Add `tst-absolute-zero-lib'.
10040 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10041 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10042 ($(objpfx)tst-absolute-zero: New dependency.
10043
10044 2018-06-29 Zack Weinberg <zackw@panix.com>
10045
10046 * configure.ac: New command-line option --disable-crypt.
10047 Force --disable-nss-crypt when --disable-crypt is given, with a
10048 warning if it was explicitly enabled.
10049 * configure: Regenerate.
10050 * config.make.in: New boolean substitution variable $(build-crypt).
10051 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10052 when $(build-crypt).
10053 * manual/install.texi: Document --disable-crypt.
10054 * INSTALL: Regenerate.
10055
10056 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10057 which is never set.
10058 * conform/Makefile: Only include libcrypt.a in
10059 linknamespace-libs-xsi and linknamespace-libs-XPG4
10060 when $(build-crypt).
10061 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10062 USE_CRYPT to 1 when $(build-crypt).
10063 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10064 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10065 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10066
10067 2018-06-29 Zack Weinberg <zackw@panix.com>
10068
10069 * crypt/crypt.h, posix/unistd.h: Update comments and
10070 prototypes for crypt and crypt_r.
10071
10072 * manual/crypt.texi (Cryptographic Functions): New initial
10073 exposition.
10074 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10075 (Unpredictable Bytes): Improve initial exposition. Clarify error
10076 behavior of getentropy and getrandom.
10077 * manual/examples/genpass.c: Generate a salt using getentropy
10078 instead of the current time. Use hash $5$ (SHA-2-256).
10079 * manual/examples/testpass.c: Demonstrate validation against
10080 hashes generated with three different one-way functions.
10081
10082 * manual/intro.texi: crypt.texi does not need an overview
10083 anymore.
10084
10085 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10086 * manual/terminal.texi: Consistently refer to "passphrases"
10087 * instead of "passwords", and to the "user database" instead
10088 * of the "password database".
10089 * manual/users.texi: Similarly. Add notes about how actual
10090 passphrase hashes are now stored in the shadow database.
10091 Remove 20-year-old junk todo note.
10092
10093 2018-06-29 Zack Weinberg <zackw@panix.com>
10094
10095 * manual/crypt.texi: Use a normal top-level @node declaration.
10096 Move most of the introductory text to the 'crypt' section.
10097 Move the example programs below the @deftypefun for 'crypt_r'.
10098 Move the 'getpass' section...
10099 * manual/terminal.texi: ...here.
10100
10101 2018-06-29 Zack Weinberg <zackw@panix.com>
10102 Florian Weimer <fweimer@redhat.com>
10103
10104 * posix/unistd.h: Do not declare encrypt.
10105 (_XOPEN_CRYPT): Remove macro definition.
10106 (crypt): Declare only for _USE_MISC.
10107 * stdlib/stdlib.h: Do not declare setkey.
10108 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10109 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10110
10111 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10112 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10113 into compat symbols. Don't define initial_perm if it's not
10114 going to be used.
10115 * crypt/cert.c: Link explicitly with the expected versions for
10116 setkey and encrypt. If they are not available at all, mark
10117 the test as unsupported.
10118
10119 * sunrpc/des_crypt.c: Unconditionally block linkage with
10120 cbc_crypt and ecb_crypt for new binaries.
10121 * sunrpc/des_soft.c: Unconditionally block linkage with
10122 des_setparity for new binaries.
10123
10124 * manual/crypt.texi: Remove the entire "DES Encryption"
10125 section. Also remove the paragraph talking about FIPS 140-2
10126 from the introduction.
10127 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10128 of libgcrypt for "real" encryption, not DES.
10129 * manual/conf.texi (Constants for Sysconf): Mention that
10130 _XOPEN_CRYPT is no longer impelemented.
10131
10132 * conform/data/unistd.h-data: Remove crypt function declaration.
10133
10134 2018-06-29 Florian Weimer <fweimer@redhat.com>
10135
10136 [BZ #23351]
10137 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10138 (disallow_malloc_check): Remove variable.
10139 (__malloc_check_init): Adjust.
10140 (malloc_set_state): Update comment.
10141 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10142 declarations.
10143
10144 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10145
10146 [BZ #23140]
10147 * localedata/locales/ast_ES (mon): Rename to...
10148 (alt_mon): This.
10149 (mon): Import from CLDR (genitive case).
10150
10151 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10152 Jakub Sitnicki <jkbs@redhat.com>
10153
10154 [BZ #21812]
10155 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10156 on NLM_F_DUMP_INTR.
10157
10158 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10159
10160 * manual/llio.texi: Remove spurious space.
10161
10162 2018-06-28 Florian Weimer <fweimer@redhat.com>
10163
10164 [BZ #23349]
10165 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10166 _STRUCT_TIMESPEC.
10167
10168 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10169
10170 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10171 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10172 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10173 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10174 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10175 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10176 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10177
10178 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10179
10180 [BZ #23266]
10181 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10182 Copy and null-terminate entries that are not terminated, in
10183 addition to empty ones.
10184
10185 2018-06-27 Florian Weimer <fweimer@redhat.com>
10186
10187 [BZ #18023]
10188 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10189 (extend_alloca_account): Remove.
10190 * manual/stdio.texi (Variable Arguments Output): Update comment.
10191
10192 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10193
10194 * nptl/sockperf.c: Remove file.
10195
10196 2018-06-27 Florian Weimer <fweimer@redhat.com>
10197
10198 [BZ #18023]
10199 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10200 scratch_buffer instead of extend_alloca.
10201
10202 2018-06-27 Florian Weimer <fweimer@redhat.com>
10203
10204 [BZ #18023]
10205 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10206 scratch_buffer instead of extend_alloca. Update comments.
10207
10208 2018-06-27 Florian Weimer <fweimer@redhat.com>
10209
10210 [BZ #18023]
10211 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10212 instead of extend_alloca.
10213
10214 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10215
10216 [BZ #13888]
10217 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10218 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10219 /tmp.
10220 * scripts/test-installation.pl: Put temporary files in build
10221 directory, not /tmp.
10222 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10223 (CFLAGS-bug4.c): Likewise.
10224 (CFLAGS-bug5.c): Likewise.
10225 (CFLAGS-test-fseek.c): Likewise.
10226 (CFLAGS-test-popen.c): Likewise.
10227 (CFLAGS-test_rdwr.c): Likewise.
10228 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10229 /tmp.
10230 * stdio-common/bug4.c (main): Likewise.
10231 * stdio-common/bug5.c (main): Likewise.
10232 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10233 * stdio-common/test-popen.c (do_test): Likewise.
10234 * stdio-common/test_rdwr.c (main): Likewise.
10235
10236 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10237
10238 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10239 (sem_open): Set sem.newsem.pad to zero for valgrind.
10240
10241 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10242
10243 [BZ #20251]
10244 * NEWS: Mention fcntl64 addition.
10245 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10246 * login/utmp_file.c: Likewise.
10247 * sysdeps/posix/fdopendir.c: Likewise.
10248 * sysdeps/posix/opendir.c: Likewise.
10249 * sysdeps/unix/pt-fcntl.c: Likewise.
10250 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10251 __fcntl64_nocancel_adjusted): New prototype.
10252 (__fcntl_nocancel_adjusted): Remove prototype.
10253 * io/Makefile (routines): Add fcntl64.
10254 (CFLAGS-fcntl64.c): New rule.
10255 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10256 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10257 * io/fcntl.h (fcntl64): Add prototype and redirect if
10258 __USE_FILE_OFFSET64 is defined.
10259 * io/fcntl64.c: New file.
10260 * manual/llio.text: Add a note for which commands fcntl acts a
10261 cancellation point.
10262 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10263 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10264 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10265 New symbols.
10266 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10267 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10268 non-LFS case.
10269 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10270 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10271 to __fcntl64_nocancel.
10272 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10273 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10274 to __fcntl64_nocancel.
10275 * sysdeps/generic/not-cancel.h: Likewise.
10276 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10277 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10278 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10279 (fcntl64): New symbol.
10280 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10281 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10282 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10283 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10284 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10285 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10286 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10287 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10288 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10289 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10290 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10291 fcntl64): Likewise.
10292 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10293 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10294 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10295 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10296 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10297 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10298 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10299 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10300 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10301 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10302 Likewise.
10303 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10304 Likewise.
10305 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10306 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10307 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10308
10309 2018-06-26 Florian Weimer <fweimer@redhat.com>
10310
10311 Run thread shutdown functions in an explicit order.
10312 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10313 definition.
10314 (__libc_thread_freeres): Call thread shutdown functions
10315 explicitly.
10316 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10317 * include/string.h (__strerror_thread_freeres): Declare.
10318 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10319 arena_thread_freeres. No longer static. Remove thread shutdown
10320 hook registration.
10321 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10322 Declare.
10323 * resolv/res-close.c (__res_thread_freeres): Renamed from
10324 res_thread_freeres. No longer static. Remove thread shutdown
10325 hook registration.
10326 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10327 * resolv/resolv_conf.c (freeres): Remove incorrect section
10328 attribute and use libc_freeres_fn.
10329 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10330 strerror_thread_freeres. No longer static. Remove thread
10331 shutdown hook registration.
10332 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10333 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10334 shutdown hook registration.
10335 * Makerules (shlib.lds): Do not provide section boundary symbols
10336 for __libc_thread_subfreeres.
10337 * manual/memory.texi (Basic Allocation): Update comment.
10338
10339 2018-06-26 Florian Weimer <fweimer@redhat.com>
10340
10341 Remove always-defined _RPC_THREAD_SAFE_ macro.
10342 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10343 Do not define _RPC_THREAD_SAFE_.
10344 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10345 conditional.
10346 * sunrpc/clnt_perr.c: Likewise.
10347 * sunrpc/clnt_raw.c: Likewise.
10348 * sunrpc/clnt_simp.c: Likewise.
10349 * sunrpc/key_call.c: Likewise.
10350 * sunrpc/rpc_common.c: Likewise.
10351 * sunrpc/rpc_main.c: Likewise.
10352 * sunrpc/rpc_thread.c: Likewise.
10353 * sunrpc/svc.c: Likewise.
10354 * sunrpc/svc_raw.c: Likewise.
10355 * sunrpc/svc_simple.c: Likewise.
10356 * sumrpc/svcauth_des.c: Likewise.
10357
10358 2018-06-26 Florian Weimer <fweimer@redhat.com>
10359
10360 * libio/Makefile (tests-internal): Add tst-vtables,
10361 tst-vtables-interposed.
10362 * libio/tst-vtables.c: New file.
10363 * libio/tst-vtables-common.c: Likewise.
10364 * libio/tst-vtables-interposed.c: Likewise.
10365
10366 2018-06-26 Florian Weimer <fweimer@redhat.com>
10367
10368 * support/support_test_main.c (support_test_main): Only call
10369 setvbuf if not disables.
10370 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10371 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10372
10373 2018-06-26 Florian Weimer <fweimer@redhat.com>
10374
10375 [BZ #23313]
10376 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10377
10378 2018-06-25 Florian Weimer <fweimer@redhat.com>
10379
10380 [BZ #18023]
10381 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10382 Use struct scratch_buffer instead of extend_alloca.
10383
10384 2018-06-25 Florian Weimer <fweimer@redhat.com>
10385
10386 [BZ #18023]
10387 * nss/getent.c (initgroups_keys): Use dynarray instead of
10388 extend_alloca.
10389
10390 2018-06-25 Florian Weimer <fweimer@redhat.com>
10391
10392 [BZ #18023]
10393 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10394 Use struct scratch_buffer instead of extend_alloca.
10395
10396 2018-06-25 Florian Weimer <fweimer@redhat.com>
10397
10398 [BZ #18023]
10399 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10400 back to malloc directly, without stack allocations.
10401
10402 2018-06-25 Florian Weimer <fweimer@redhat.com>
10403
10404 [BZ #18023]
10405 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10406 of extend_alloca.
10407
10408 2018-06-25 Florian Weimer <fweimer@redhat.com>
10409
10410 [BZ #18023]
10411 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10412 of extend_alloca.
10413 * nscd/hstcache.c (addhstbyX): Likewise.
10414 * nscd/pwdcache.c (addpwbyX): Likewise.
10415 * nscd/servicescache.c (addservbyX): Likewise.
10416
10417 2018-06-25 Florian Weimer <fweimer@redhat.com>
10418
10419 [BZ #18023]
10420 * nscd/connections.c (read_cmdline): New function.
10421 (restart): Use it. Update comment.
10422
10423 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10424
10425 [BZ #23140]
10426 * localedata/locales/csb_PL (mon): Rename to...
10427 (alt_mon): This.
10428 (abmon): Rename to...
10429 (ab_alt_mon): This.
10430 (mon): Add with proper genitive forms, copy from Wikipedia.
10431 (abmon): Likewise.
10432
10433 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10434
10435 [BZ #19485]
10436 * localedata/locales/csb_PL (mon): Fix typos:
10437 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10438 (yesstr): Add, value is "jo".
10439 (nostr): Add, value is "nié".
10440
10441 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10442
10443 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10444 all log1p and significand functions on m680x0.
10445 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10446 of s_significand.c..
10447 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10448 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10449 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10450 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10451 s_log1p.c and include it..
10452
10453 2018-06-21 Vincent Chen <vincentc@andestech.com>
10454
10455 * elf/elf.h (R_NDS32_NONE): New define.
10456 (R_NDS32_32_RELA): Likewise.
10457 (R_NDS32_COPY): Likewise.
10458 (R_NDS32_GLOB_DAT): Likewise.
10459 (R_NDS32_JUMP_SLOT): Likewise.
10460 (R_NDS32_RELATIVE): Likewise.
10461 (R_NDS32_TLS_TPOFF): Likewise.
10462 (R_NDS32_TLS_DESC): Likewise.
10463
10464 2018-06-21 Mark Wielaard <mark@klomp.org>
10465
10466 * elf/elf.h (R_BPF_MAP_FD): Removed.
10467 (R_BPF_64_64, R_BPF_64_32): New.
10468
10469 2018-06-21 Florian Weimer <fweimer@redhat.com>
10470
10471 [BZ #23253]
10472 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10473 Renamed from libc_feholdsetround_ctx.
10474 (default_libc_feresetround_ctx): Renamed from
10475 libc_feresetround_ctx.
10476 (default_libc_feholdsetround_noex_ctx): Renamed from
10477 libc_feholdsetround_noex_ctx.
10478 (default_libc_feresetround_noex_ctx): Renamed from
10479 libc_feresetround_noex_ctx.
10480 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10481 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10482 forwardning to the old implementations under the new names.
10483 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10484 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10485 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10486 (libc_feresetround_ctx): Forward to default implements for i386
10487 and MATH_SET_BOTH_ROUNDING_MODES.
10488 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10489 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10490
10491 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10492
10493 * string/tst-cmp.c: Include <libc-diag.h>.
10494 (strncmp_max): Disable -Wstringop-overflow= around call to
10495 strncmp.
10496 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10497 strncasecmp.
10498
10499 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10500 (main): Disable -Wunused-value around call to strpbrk.
10501 * string/bug-strspn1.c: Include <libc-diag.h>.
10502 (main): Disable -Wunused-value around call to strspn.
10503
10504 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10505 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10506
10507 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10508 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10509
10510 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10511
10512 * math/Makefile (libm-calls): Move s_significandF to...
10513 (gen-libm-calls): ... here.
10514 * math/s_significand_template.c: New file.
10515 * math/s_significand.c: Removed.
10516 * math/s_significandf.c: Removed.
10517 * math/s_significandl.c: Removed.
10518 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10519 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10520
10521 * math/e_exp2_template.c (declare_mgen_finite_alias,
10522 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10523 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10524 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10525
10526 2018-06-20 Florian Weimer <fweimer@redhat.com>
10527
10528 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10529
10530 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10531
10532 [BZ #23280]
10533 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10534 floating-point number to strtod functions rather than possibly
10535 negating result of those functions.
10536 * stdio-common/tst-scanf-round.c: New file.
10537 * stdio-common/Makefile (tests): Add tst-scanf-round.
10538 ($(objpfx)tst-scanf-round): Depend on $(libm).
10539
10540 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10541
10542 * sysdeps/mach/hurd/localplt.data: Move to...
10543 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10544 R_386_GLOB_DAT like on Linux i386.
10545
10546 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10547
10548 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10549 (SHM_STAT_ANY): New macro.
10550 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10551 (SHM_STAT_ANY): Likewise.
10552 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10553 (SHM_STAT_ANY): Likewise.
10554 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10555 (SHM_STAT_ANY): Likewise.
10556 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10557 (SHM_STAT_ANY): Likewise.
10558 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10559 (SHM_STAT_ANY): Likewise.
10560 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10561 (SHM_STAT_ANY): Likewise.
10562 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10563 (SHM_STAT_ANY): Likewise.
10564 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10565 (SHM_STAT_ANY): Likewise.
10566 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10567 (SHM_STAT_ANY): Likewise.
10568 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10569 (SHM_STAT_ANY): Likewise.
10570 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10571 (SHM_STAT_ANY): Likewise.
10572
10573 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10574 (SEM_STAT_ANY): New macro.
10575 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10576 (SEM_STAT_ANY): Likewise.
10577 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10578 (SEM_STAT_ANY): Likewise.
10579 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10580 (SEM_STAT_ANY): Likewise.
10581 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10582 (SEM_STAT_ANY): Likewise.
10583 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10584 (SEM_STAT_ANY): Likewise.
10585 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10586 (SEM_STAT_ANY): Likewise.
10587 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10588 (SEM_STAT_ANY): Likewise.
10589 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10590 (SEM_STAT_ANY): Likewise.
10591 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10592 (SEM_STAT_ANY): Likewise.
10593
10594 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10595 (MSG_STAT_ANY): New macro.
10596 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10597 (MSG_STAT_ANY): Likewise.
10598 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10599 (MSG_STAT_ANY): Likewise.
10600 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10601 (MSG_STAT_ANY): Likewise.
10602 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10603 (MSG_STAT_ANY): Likewise.
10604 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10605 (MSG_STAT_ANY): Likewise.
10606 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10607 (MSG_STAT_ANY): Likewise.
10608 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10609 (MSG_STAT_ANY): Likewise.
10610 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10611 (MSG_STAT_ANY): Likewise.
10612 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10613 (MSG_STAT_ANY): Likewise.
10614
10615 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10616 (MAP_TYPE): Change value to 0x2b.
10617
10618 2018-06-18 Florian Weimer <fweimer@redhat.com>
10619
10620 [BZ #15722]
10621 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10622 socket with SOCK_CLOEXEC.
10623
10624 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10625
10626 [BZ #23303]
10627 * sysdeps/powerpc/powerpc64/le/Makefile
10628 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10629 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10630 (gnulib-tests): Also add $(f128-loader-link) for
10631 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10632
10633 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10634
10635 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10636 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10637 of sendfile.
10638 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10639 (sendfile64): New strong alias.
10640 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10641 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10642 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10643 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10644 attribute.
10645 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10646 ___pthread_get_cleanup_stack.
10647 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10648 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10649 * mach/shortcut.awk: Make syscall stubs include
10650 <mach-shortcuts-hidden.h> and add hidden definition.
10651 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10652 (__mach_msg): Add hidden prototype.
10653 * mach/msg.c: Include <mach.h>.
10654 (__mach_msg): Add hidden definition.
10655 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10656 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10657 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10658 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10659 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10660 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10661 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10662 prototype and definition.
10663 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10664 hidden target for _hurd_self_sigstate.
10665
10666 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10667
10668 [BZ #23007]
10669 * stdlib/tst-strtod-nan-sign-main.c: New file.
10670 * stdlib/tst-strtod-nan-sign.c: Likewise.
10671 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10672 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10673 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10674 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10675 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10676
10677 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10678
10679 [BZ #23007]
10680 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10681 appropriate sign.
10682
10683 2018-06-14 Florian Weimer <fweimer@redhat.com>
10684
10685 [BZ #23290]
10686 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10687 that the result stays within the ISO-8859-1 range.
10688 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10689 characters are defined in IBM273.
10690
10691 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10692
10693 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10694 __mach_task_self): Remove attribute_hidden.
10695
10696 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10697
10698 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10699 ignore -Wrestrict for one test.
10700
10701 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10702 Szabolcs Nagy <szabolcs.nagy@arm.com>
10703
10704 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10705
10706 2018-06-14 Florian Weimer <fweimer@redhat.com>
10707
10708 * scripts/update-abilist.sh: Accept empty list of files to patch.
10709
10710 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10711
10712 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10713 test-xfail-check-abi-libmachuser): Add.
10714 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10715 __libc_read and __libc_write to __read and __write.
10716 * sysdeps/hurd/include/hurd/port.h: New file.
10717 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10718 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10719 __thread_switch, __evc_wait): Move declarations to...
10720 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10721 attribute_hidden.
10722 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10723 use PLT to call _hurd_self_sigstate.
10724
10725 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10726
10727 [BZ #23279]
10728 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10729 MAX_EXP as overflowing.
10730 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10731 overflow flag.
10732 (round_str): Output also whether result overflows in each rounding
10733 mode.
10734 * stdlib/tst-strtod-round-data: Add more tests.
10735 * stdlib/tst-strtod-round-data.h: Regenerated.
10736 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10737 (TEST): Handle extra arguments for overflow flags.
10738 (struct test_overflow): New type.
10739 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10740 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10741 (test_in_one_mode): Take argument with overflow information.
10742 (do_test): Update calls to test_in_one_mode.
10743
10744 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10745
10746 * elf/dl-load (_dl_dst_substitute): Correct comment.
10747 (_dl_dst_count): Likewise.
10748
10749 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10750 lll_futex_timed_wait.
10751
10752 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10753
10754 [BZ #23277]
10755 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10756 attribute.
10757 * math/test-nan-const.c: New file.
10758 * math/Makefile (tests): Add test-nan-const.
10759 (CFLAGS-test-nan-const.c): New variable.
10760
10761 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10762
10763 * benchtests/scripts/compare_strings.py (process_results): Add
10764 funcs argument. Compare only functions which are selected.
10765 (main): Check if base function is among selected functions.
10766 Pass selected functions to process_results.
10767 (__main__): Add -f/--functions argument.
10768
10769 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10770 Hongbo Zhang <hongbo.zhang@linaro.org>
10771
10772 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10773 __memcpy_falkor for phecda core.
10774 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10775 __memmove_falkor for phecda core.
10776 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10777 __memset_falkor for phecda core.
10778 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10779 for phecda core.
10780 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10781 macro to identify phecda core.
10782
10783 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10784 Andreas Schwab <schwab@suse.de>
10785 Dmitry V. Levin <ldv@altlinux.org>
10786 Florian Weimer <fweimer@redhat.com>
10787
10788 [BZ #23102]
10789 [BZ #21942]
10790 [BZ #18018]
10791 [BZ #23259]
10792 CVE-2011-0536
10793 * elf/dl-dst.h: Remove DL_DST_COUNT.
10794 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10795 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10796 (is_dst): Comment. Support ELF gABI.
10797 (_dl_dst_count): Comment. Simplify and count DSTs.
10798 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10799 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10800 locals.
10801
10802 2018-06-12 Zack Weinberg <zackw@panix.com>
10803
10804 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10805 * sysdeps/unix/sysv/linux/dl-sysdep.c
10806 Include not-cancel.h. Use __close_nocancel instead of __close,
10807 __open64_nocancel instead of __open, __read_nocancel instead of
10808 __libc_read, and __write_nocancel instead of __libc_write.
10809
10810 * csu/check_fds.c (check_one_fd)
10811 * sysdeps/posix/fdopendir.c (__fdopendir)
10812 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10813 instead of __fcntl and/or __libc_fcntl.
10814
10815 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10816 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10817 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10818 Use __open64_nocancel instead of __open_nocancel.
10819
10820 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10821 hidden_proto declarations to the end and issue them if either
10822 IS_IN(libc) or IS_IN(rtld).
10823 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10824 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10825 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10826 read_nocancel, waitpid_nocancel, write_nocancel.
10827
10828 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10829 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10830 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10831
10832 * nptl/pt-fcntl.c: New file.
10833 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10834 (libpthread-routines): Add pt-fcntl.
10835 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10836 (__libc_fcntl): Remove attribute_hidden.
10837 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10838 __fcntl_nocancel_adjusted, not fcntl_common.
10839 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10840 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10841 to fcntl_nocancel.c.
10842 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10843 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10844 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10845 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10846
10847 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10848 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10849 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10850 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10851 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10852 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10853 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10854 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10855 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10856 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10857 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10858 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10859 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10860 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10861 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10862 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10863 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10864 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10865 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10866 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10867
10868 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10869 libpthread-routines.
10870 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10871 defines nothing.
10872
10873 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10874 __libc_read, and __write instead of __libc_write. Define
10875 __open64 in addition to __open.
10876
10877 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10878
10879 [BZ #23250]
10880 [BZ #10686]
10881 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10882 to _private_tm[3] and add __glibc_reserved2.
10883 Add _Static_assert of offset of __private_ss == 0x30.
10884 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10885 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10886
10887 2018-06-12 Florian Weimer <fweimer@redhat.com>
10888
10889 x86: Make strncmp usable from rtld.
10890 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10891 __strncmp_ia32 if in libc (and not in rtld).
10892 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10893 strncmp if not in libc (and not to __strncmp_sse2).
10894
10895 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10896
10897 [BZ #23140]
10898 * localedata/locales/gd_GB (mon): Rename to...
10899 (alt_mon): This.
10900 (mon): Import from CLDR (genitive case).
10901 * localedata/locales/hsb_DE (mon): Rename to...
10902 (alt_mon): This.
10903 (mon): Import from CLDR (genitive case).
10904 * localedata/locales/wa_BE (mon): Rename to...
10905 (alt_mon): This.
10906 (mon): Add, fill with the proper genitive forms, but CLDR data
10907 is incomplete; completed according to the comments in this file.
10908 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10909
10910 * localedata/locales/wa_BE (country_name): Reword
10911 "Beljike" -> "Beldjike".
10912
10913 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10914
10915 [BZ #23272]
10916 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10917 cases of non-finite arguments.
10918 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10919
10920 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10921
10922 [BZ #23174]
10923 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10924
10925 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10926
10927 [BZ #23264]
10928 * include/unistd.h (__execvpex): New prototype.
10929 * posix/Makefile (tests): Add tst-spawn4.
10930 (tests-internal): Add tst-spawn4-compat.
10931 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10932 * posix/tst-spawn4-compat.c: New file.
10933 * posix/tst-spawn4.c: Likewise.
10934 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10935 binaries as shell scripts.
10936 * sysdeps/posix/spawni.c (__spawni): Likewise.
10937
10938 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10939
10940 [BZ #23145]
10941 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10942 ($(all-built-dso:=.dynsym): New target.
10943 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10944 ($(objpfx)check-initfini.out): New target.
10945 (generated): Add check-initfini.out.
10946 * scripts/check-initfini.awk: New file.
10947 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10948 (_fini): Likewise.
10949 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10950 (_fini): Likewise.
10951 * sysdeps/arm/crti.S (_init): Mark as hidden.
10952 (_fini): Likewise.
10953 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10954 (_fini): Likewise.
10955 * sysdeps/i386/crti.S (_init): Mark as hidden.
10956 (_fini): Likewise.
10957 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10958 (_fini): Likewise.
10959 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10960 (_fini): Likewise.
10961 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10962 (_fini): Likewise.
10963 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10964 (_fini): Likewise.
10965 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10966 (_fini): Likewise.
10967 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10968 (_fini): Likewise.
10969 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10970 (_fini): Likewise.
10971 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10972 (_fini): Likewise.
10973 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10974 (_fini): Likewise.
10975 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10976 (_fini): Likewise.
10977 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10978 (_fini): Likewise.
10979 * sysdeps/sh/crti.S (_init): Mark as hidden.
10980 (_fini): Likewise.
10981 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10982 (_fini): Likewise.
10983 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10984 (_fini): Likewise.
10985
10986 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10987
10988 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10989 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10990 and TF redirection to KFtype and KF only when the default
10991 long double type is not the IEEE 128-bit floating point type.
10992
10993 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10994
10995 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10996 macro.
10997 (HWCAP_USCAT): Likewise.
10998 (HWCAP_ILRCPC): Likewise.
10999 (HWCAP_FLAGM): Likewise.
11000 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
11001 Increase to 28.
11002 (_dl_aarch64_cap_flags): Add new flag names.
11003
11004 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
11005 (MAP_FIXED_NOREPLACE): New macro.
11006 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
11007 (MAP_FIXED_NOREPLACE): Likewise.
11008 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
11009 (MAP_FIXED_NOREPLACE): Likewise.
11010 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
11011 (MAP_FIXED_NOREPLACE): Likewise.
11012 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
11013 (MAP_FIXED_NOREPLACE): Likewise.
11014 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
11015 (MAP_FIXED_NOREPLACE): Likewise.
11016 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
11017 (MAP_FIXED_NOREPLACE): Likewise.
11018 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
11019 (MAP_FIXED_NOREPLACE): Likewise.
11020 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
11021 (MAP_FIXED_NOREPLACE): Likewise.
11022 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
11023 (MAP_FIXED_NOREPLACE): Likewise.
11024 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
11025 (MAP_FIXED_NOREPLACE): Likewise.
11026 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
11027 (MAP_FIXED_NOREPLACE): Likewise.
11028 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
11029 (MAP_FIXED_NOREPLACE): Likewise.
11030 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
11031 (MAP_FIXED_NOREPLACE): Likewise.
11032 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
11033 (MAP_FIXED_NOREPLACE): Likewise.
11034
11035 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
11036 version to 4.17.
11037
11038 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11039
11040 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11041 version to 4.17
11042
11043 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11044
11045 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11046 int.
11047 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11048
11049 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11050
11051 * benchtests/scripts/compare_string.py: (process_results) Catch
11052 exception in non-existent base_func and catch exception in
11053 non-existent attribute.
11054 (parse_file) Catch exception if input file does not exist.
11055
11056 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11057
11058 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11059 options to avoid diff calculation and omit header, respectively.
11060 (main): process --no-diff and --no-header
11061
11062 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11063 H.J. Lu <hongjiu.lu@intel.com>
11064
11065 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11066 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11067 wcsncmp-sse2.
11068 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11069 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11070 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11071 and __wcsncmp_sse2.
11072 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11073 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11074 AVX unaligned load is fast and vzeroupper is preferred.
11075 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11076 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11077 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11078 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11079 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11080 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11081 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11082 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11083 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11084 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11085 is undefined.
11086
11087 2018-06-01 Florian Weimer <fweimer@redhat.com>
11088
11089 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11090 configuring with --disable-multi-arch, building with
11091 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11092 Haswell-era CPU.
11093
11094 2018-06-01 Florian Weimer <fweimer@redhat.com>
11095
11096 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11097 results from building with “-march=x86-64 -mtune=generic
11098 -mfpmath=sse” and running on a Haswell-era CPU.
11099
11100 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11101
11102 [BZ #18473]
11103 * soft-fp/sqrttf2.c: Remove file.
11104 * soft-fp/sqrtdf2.c: Move to ....
11105 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11106 <shlib-compat.h>.
11107 (__sqrtdf2): Make conditional on
11108 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11109 symbol.
11110 * soft-fp/sqrtsf2.c: Move to ....
11111 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11112 <shlib-compat.h>.
11113 (__sqrtsf2): Make conditional on
11114 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11115 symbol.
11116 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11117 (gcc-double-routines): Remove sqrtdf2.
11118 (gcc-quad-routines): Remove sqrttf2.
11119 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11120 Do not filter out sqrtsf2 and sqrtdf2.
11121 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11122 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11123
11124 2018-06-01 Florian Weimer <fweimer@redhat.com>
11125
11126 * sysdeps/generic/libcidn.abilist: Remove file.
11127
11128 2018-06-01 Florian Weimer <fweimer@redhat.com>
11129
11130 [BZ #23236]
11131 * libio/strfile.h (struct _IO_str_fields): Rename members to
11132 discourage their use and add comment.
11133 (_IO_STR_DYNAMIC): Remove unused macro.
11134 * libio/strops.c (_IO_str_init_static_internal): Do not use
11135 callback pointers. Call malloc and free.
11136 (_IO_str_overflow): Do not use callback pointers. Call malloc
11137 and free.
11138 (enlarge_userbuf): Likewise.
11139 (_IO_str_finish): Call free.
11140 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11141 _allocate_buffer_unused.
11142 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11143 and free.
11144 (enlarge_userbuf): Likewise.
11145 (_IO_wstr_finish): Call free.
11146 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11147 _allocate_buffer_unused, _free_buffer_unused.
11148 * libio/memstream.c (__open_memstream): Likewise.
11149 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11150 * libio/wmemstream.c (open_wmemstream): Likewise.
11151
11152 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11153
11154 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11155 AMD Ryzen 7 1800X.
11156
11157 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11158
11159 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11160 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11161 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11162 New file.
11163 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11164 Likewise.
11165 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11166
11167 2018-05-29 Florian Weimer <fweimer@redhat.com>
11168
11169 * support/Makefile (libsupport-routines): Add
11170 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11171 xpthread_barrierattr_setpshared.
11172 * support/xpthread_barrierattr_destroy.c: New file.
11173 * support/xpthread_barrierattr_init.c: Likewise.
11174 * support/xpthread_barrierattr_setpshared.c: Likewise.
11175
11176 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11177
11178 [BZ #23206]
11179 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11180 _r_debug and update DT_DEBUG for debugger.
11181
11182 2018-05-29 Florian Weimer <fweimer@redhat.com>
11183
11184 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11185 (tst-strtod5i.out): Likewise.
11186
11187 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11188
11189 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11190 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11191 (sparc64-quad-routines): New variable. Moved from ....
11192 [$(subdir) = soft-fp] (sysdep_routines): Add
11193 $(sparc64-quad-routines). Moved from ....
11194 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11195 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11196 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11197 moved from ....
11198 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11199 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11200 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11201 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11202 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11203 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11204 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11205 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11206 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11207 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11208 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11209 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11210 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11211 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11212 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11213 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11214 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11215 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11216 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11217 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11218 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11219 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11220 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11221 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11222 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11223 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11224 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11225 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11226 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11227 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11228 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11229 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11230 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11231 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11232 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11233 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11234 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11235 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11236 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11237 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11238 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11239 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11240 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11241 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11242 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11243 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11244 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11245 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11246 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11247 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11248 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11249 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11250 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11251 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11252 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11253 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11254 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11255 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11256
11257 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11258 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11259 (sparc32-quad-routines): New variable. Moved from ....
11260 [$(subdir) = soft-fp] (sysdep_routines): Add
11261 $(sparc32-quad-routines). Moved from ....
11262 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11263 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11264 moved from ....
11265 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11266 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11267 * sysdeps/sparc/sparc32/q_add.c: ... here.
11268 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11269 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11270 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11271 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11272 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11273 * sysdeps/sparc/sparc32/q_div.c: ... here.
11274 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11275 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11276 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11277 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11278 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11279 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11280 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11281 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11282 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11283 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11284 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11285 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11286 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11287 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11288 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11289 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11290 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11291 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11292 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11293 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11294 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11295 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11296 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11297 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11298 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11299 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11300 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11301 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11302 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11303 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11304 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11305 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11306 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11307 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11308 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11309 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11310 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11311 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11312 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11313 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11314 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11315 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11316 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11317 * sysdeps/sparc/sparc32/q_util.c: ... here.
11318 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11319 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11320 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11321 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11322
11323 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11324 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11325
11326 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11327 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11328 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11329 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11330
11331 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11332
11333 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11334 powerpc/soft-fp.
11335 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11336 Likewise.
11337 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11338 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11339
11340 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11341
11342 [BZ #23171]
11343 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11344 double version.
11345
11346 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11347
11348 * sysdeps/sh/Implies: Remove sh/soft-fp.
11349 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11350 * sysdeps/sh/sfp-machine.h: ... here.
11351
11352 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11353
11354 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11355 (__mempcpy_erms): Skip zero length.
11356 (__memmove_erms): Likewise.
11357 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11358 (__memset_erms): Likewise.
11359
11360 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11361
11362 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11363 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11364 Add functions moved from ....
11365 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11366 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11367 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11368 from ....
11369 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11370 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11371 * sysdeps/alpha/e_sqrtl.c: ... here.
11372 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11373 * sysdeps/alpha/local-soft-fp.h: ... here.
11374 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11375 * sysdeps/alpha/ots_add.c: ... here.
11376 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11377 * sysdeps/alpha/ots_cmp.c: ... here.
11378 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11379 * sysdeps/alpha/ots_cmpe.c: ... here.
11380 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11381 * sysdeps/alpha/ots_cvtqux.c: ... here.
11382 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11383 * sysdeps/alpha/ots_cvtqx.c: ... here.
11384 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11385 * sysdeps/alpha/ots_cvttx.c: ... here.
11386 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11387 * sysdeps/alpha/ots_cvtxq.c: ... here.
11388 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11389 * sysdeps/alpha/ots_cvtxt.c: ... here.
11390 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11391 * sysdeps/alpha/ots_div.c: ... here.
11392 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11393 * sysdeps/alpha/ots_mul.c: ... here.
11394 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11395 * sysdeps/alpha/ots_nintxq.c: ... here.
11396 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11397 * sysdeps/alpha/ots_sub.c: ... here.
11398 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11399 * sysdeps/alpha/sfp-machine.h: ... here.
11400
11401 2018-05-23 Florian Weimer <fweimer@redhat.com>
11402
11403 [BZ #19728]
11404 [BZ #19729]
11405 [BZ #22247]
11406 CVE-2016-6261
11407 CVE-2016-6263
11408 CVE-2017-14062
11409 Switch to extern IDNA implementation (libidn2).
11410 * libidn: Remove subdirectory.
11411 * LICENSES: Do not mention licensing conditions for the removed
11412 libidn code.
11413 * config.h.in (HAVE_LIBIDN): Remove.
11414 * include/dlfcn.h (__libc_dlopen): Update comment.
11415 * include/idna.h: Remove file.
11416 * inet/Makefile (routines): Add idna.
11417 (tests-static, tests-internal): Add tst-idna_name_classify.
11418 (LOCALES): Generate locales for tests.
11419 (tst-idna_name_classify.out): Depend on generated locales.
11420 * inet/idna_name_classify.c: New file.
11421 * inet/tst-idna_name_classify.c: Likewise.
11422 * inet/net-internal.h (__idna_to_dns_encoding)
11423 (__idna_from_dns_encoding): Declare.
11424 * inet/net-internal.h (enum idna_name_classification): Define.
11425 (__idna_name_classify): Declare.
11426 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11427 __idna_from_dns_encoding.
11428 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11429 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11430 name as a fallback in case of encoding errors.
11431 (getnameinfo): Use DEPRECATED_NI_IDN.
11432 * inet/idna.c: New file.
11433 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11434 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11435 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11436 (modules-names): Add tst-no-libidn2.
11437 (extra-test-objs): Add tst-no-libidn2.os.
11438 (LDFLAGS-tst-no-libidn2.so): Set soname.
11439 (LOCALES): Set, and generate locales.
11440 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11441 (tst-resolv-ai_idn-latin1): Likewise.
11442 (tst-resolv-ai_idn-nolibidn2): Likewise.
11443 (tst-resolv-ai_idn.out): Depend on locales.
11444 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11445 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11446 tst-no-libidn2.so.
11447 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11448 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11449 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11450 * resolv/tst-resolv-ai_idn.c: New file.
11451 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11452 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11453 * resolv/tst-no-libidn2.c: Likewise.
11454 * support/support_format_addrinfo.c (format_ai_flags): Do not
11455 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11456 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11457 (gaih_inet): Call __idna_to_dns_encoding and
11458 __idna_from_dns_encoding, and use the original (punycode) name if
11459 __idna_from_dns_encoding fails due to an encoding error.
11460 (getaddrinfo): Use DEPRECATED_AI_IDN.
11461 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11462 * sysdeps/unix/inet/configure: Remove file.
11463 * sysdeps/unix/inet/configure.ac: Likewise.
11464
11465 2018-05-23 Florian Weimer <fweimer@redhat.com>
11466
11467 Implement allocate_once.
11468 * include/allocate_once.h: New file.
11469 * misc/allocate_once.c: Likewise.
11470 * misc/tst-allocate_once.c: Likewise.
11471 * misc/Makefile (routines): Add allocate_once.
11472 (tests-internal): Add tst-allocate_once.
11473 (generated): Add tst-allocate_once.mtrace,
11474 tst-allocate_once-mem.out.
11475 (tests-special): Add tst-allocate_once-mem.out.
11476 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11477 (tst-allocate_once-mem.out): Call mtrace.
11478 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11479
11480 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11481
11482 [BZ #23196]
11483 * string/test-memcpy.c (do_test1): New function.
11484 (test_main): Call it.
11485
11486 2018-05-23 Andreas Schwab <schwab@suse.de>
11487
11488 [BZ #23196]
11489 CVE-2018-11237
11490 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11491 (L(preloop_large)): Save initial destination pointer in %r11 and
11492 use it instead of %rax after the loop.
11493 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11494
11495 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11496
11497 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11498 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11499 -I../soft-fp. Moved from ....
11500 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11501 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11502 * sysdeps/aarch64/e_sqrtl.c: ... here.
11503 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11504 * sysdeps/aarch64/sfp-machine.h: ... here.
11505
11506 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11507 -Wmaybe-uninitialized around access to fq[0].
11508 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11509 Likewise.
11510
11511 [BZ #18471]
11512 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11513 aliases for non-libc case of versioned symbols.
11514 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11515 (llseek): Define as compat symbol if
11516 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11517 with link warning.
11518 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11519 Make into a compat symbol, disabled for minimum symbol version
11520 GLIBC_2.28 and later.
11521 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11522
11523 2018-05-22 Florian Weimer <fweimer@redhat.com>
11524
11525 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11526 not add -mpreferred-stack-boundary=4.
11527 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11528 (stack-align-test-flags): Likewise.
11529 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11530 Likewise.
11531 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11532 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11533 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11534 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11535 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11536 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11537 (CFLAGS-tst-align2.c): Likewise.
11538
11539 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11540
11541 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11542 (index_arch_Prefer_FSRM): Likewise.
11543 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11544 Also check Prefer_FSRM.
11545 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11546 Also return OPTIMIZE (erms) for Prefer_FSRM.
11547
11548 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11549
11550 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11551 (index_cpu_FSRM): Likewise.
11552 (reg_FSRM): Likewise.
11553
11554 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11555
11556 * math/gen-tgmath-tests.py: Import sys.
11557 (Tests.__init__): Initialize macros_seen.
11558 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11559 if requested to do so for this macro.
11560 (Tests.add_all_tests): Take argument for macro for which to
11561 generate tests.
11562 (Tests.check_macro_list): New function.
11563 (main): Handle check-list argument and argument specifying macro
11564 for which to generate tests.
11565 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11566 [PYTHON] (tgmath3-macro-tests): Likewise.
11567 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11568 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11569 not test-tgmath3.c.
11570 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11571 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11572 to CFLAGS.
11573 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11574 [PYTHON] ($(foreach
11575 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11576 rule.
11577 [PYTHON] (tests-special): Add
11578 $(objpfx)test-tgmath3-macro-list.out.
11579 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11580
11581 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11582 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11583 later.
11584
11585 [BZ #22639]
11586 * time/tzset.c (SECSPERDAY): Cast to time_t.
11587 * time/tst-y2039.c: New file.
11588 * time/Makefile (tests): Add tst-y2039.
11589
11590 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11591
11592 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11593 (PREFETCH_ONE_SET): Remove duplicate line.
11594
11595 2018-05-17 Florian Weimer <fweimer@redhat.com>
11596
11597 * sysdeps/generic/math-type-macros-double.h: Include
11598 <math-nan-payload-double.h> after <libm-alias-double.h>.
11599 * sysdeps/generic/math-type-macros-float.h: Include
11600 <math-nan-payload-float.h> after <libm-alias-float.h>.
11601 * sysdeps/generic/math-type-macros-float128.h: Include
11602 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11603 * sysdeps/generic/math-type-macros-ldouble.h: Include
11604 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11605
11606 2018-05-17 Andreas Schwab <schwab@suse.de>
11607
11608 * resolv/res_send.c (__res_context_send): Don't set errno when
11609 returing error after malloc failure.
11610
11611 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11612
11613 * nptl/allocatestack.c (allocate_stack): Remove the
11614 !__ASSUME_PRIVATE_FUTEX paths.
11615 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11616 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11617 Likewise.
11618 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11619 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11620 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11621 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11622 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11623 !__ASSUME_PRIVATE_FUTEX path.
11624 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11625 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11626 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11627 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11628 !__ASSUME_PRIVATE_FUTEX macros.
11629 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11630 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11631 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11632 * sysdeps/unix/sysv/linux/kernel-features.h
11633 (__ASSUME_PRIVATE_FUTEX): Removed.
11634
11635 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11636
11637 * math/Makefile (libm-narrow-fns): Add div.
11638 (libm-test-funcs-narrow): Likewise.
11639 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11640 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11641 * math/gen-auto-libm-tests.c (test_functions): Add div.
11642 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11643 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11644 (NARROW_DIV_TRIVIAL): Likewise.
11645 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11646 macro.
11647 (__ddivl): Likewise.
11648 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11649 ddiv.
11650 (CFLAGS-nldbl-ddiv.c): New variable.
11651 (CFLAGS-nldbl-fdiv.c): Likewise.
11652 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11653 __nldbl_ddivl.
11654 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11655 prototype.
11656 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11657 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11658 * math/auto-libm-test-in: Add tests of div.
11659 * math/auto-libm-test-out-narrow-div: New generated file.
11660 * math/libm-test-narrow-div.inc: New file.
11661 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11662 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11663 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11664 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11665 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11666 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11667 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11668 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11669 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11670 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11671 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11672 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11673 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11674 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11675 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11676 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11677 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11678 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11679 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11680 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11681 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11682 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11683 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11684 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11685 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11686 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11687 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11688 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11689 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11690 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11691 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11692 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11693 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11694 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11695 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11696 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11697 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11698 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11699 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11700 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11701 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11702 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11703 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11704 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11705
11706 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11707
11708 [BZ #23178]
11709 * nscd/nscd-client.h (sendfileall): Remove prototype.
11710 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11711 (handle_request): Use writeall instead of sendfileall.
11712 * nscd/aicache.c (addhstaiX): Likewise.
11713 * nscd/grpcache.c (cache_addgr): Likewise.
11714 * nscd/hstcache.c (cache_addhst): Likewise.
11715 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11716 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11717 * nscd/pwdcache.c (cache_addpw): Likewise.
11718 * nscd/servicescache.c (cache_addserv): Likewise.
11719 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11720 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11721 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11722 Remove define.
11723
11724 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11725
11726 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11727 Include <string/strncat.c>.
11728 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11729 alias.
11730 (__GI___strncat): New hidden alias.
11731
11732 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11733
11734 * sysdeps/mips/mips32/libm-test-ulps: Update.
11735 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11736
11737 2018-05-16 Florian Weimer <fweimer@redhat.com>
11738
11739 * support/Makefile (libsupport-routines): Add support_quote_blob,
11740 support_test_compare_blob.
11741 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11742 * support/check.h (TEST_COMPARE_BLOB): Define.
11743 (support_test_compare_blob): Declare.
11744 * support/support.h (support_quote_blob): Declare.
11745 * support/support_quote_blob.c: New file.
11746 * support/support_test_compare_blob.c: Likewise.
11747 * support/tst-support_quote_blob.c: Likewise.
11748 * support/tst-test_compare_blob.c: Likewise.
11749
11750 2018-05-16 Florian Weimer <fweimer@redhat.com>
11751
11752 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11753 of <strtod_nan_double.h>.
11754 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11755 instead of SET_MANTISSA.
11756 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11757 of include <strtod_nan_float.h>.
11758 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11759 instead of <strtod_nan_ldouble.h>.
11760 * stdlib/strtod_nan_double.h: Move to ...
11761 * sysdeps/generic/math-nan-payload-double.h: ... here.
11762 (FLOAT): Remove definition.
11763 (SET_MANTISSA): Rename to ...
11764 (SET_NAN_PAYLOAD): ... this.
11765 * stdlib/strtod_nan_float.h: Move to ...
11766 * sysdeps/generic/math-nan-payload-float.h: ... here.
11767 (FLOAT): Remove definition.
11768 (SET_MANTISSA): Rename to ...
11769 (SET_NAN_PAYLOAD): ... this.
11770 * sysdeps/generic/math-type-macros-double.h: Include
11771 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11772 instead of <math-svid-compat.h>.
11773 * sysdeps/generic/math-type-macros-float.h: Include
11774 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11775 instead of <math-svid-compat.h>.
11776 * sysdeps/generic/math-type-macros-float128.h: Include
11777 <math-nan-payload-float128.h>.
11778 * sysdeps/generic/math-type-macros-ldouble.h: Include
11779 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11780 instead of <math-svid-compat.h>.
11781 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11782 check for definition.
11783 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11784 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11785 Include <ieee754_float128.h>.
11786 (FLOAT): Remove definition.
11787 (SET_MANTISSA): Rename to ...
11788 (SET_NAN_PAYLOAD): ... this.
11789 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11790 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11791 Do not include <float128_private.h>.
11792 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11793 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11794 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11795 (FLOAT): Remove definition.
11796 (SET_MANTISSA): Rename to ...
11797 (SET_NAN_PAYLOAD): ... this.
11798 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11799 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11800 (FLOAT): Remove definition.
11801 (SET_MANTISSA): Rename to ...
11802 (SET_NAN_PAYLOAD): ... this.
11803 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11804 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11805 (FLOAT): Remove definition.
11806 (SET_MANTISSA): Rename to ...
11807 (SET_NAN_PAYLOAD): ... this.
11808 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11809 of "../stdlib/strtod_nan_double.h".
11810 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11811 of "../stdlib/strtod_nan_float.h".
11812 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11813 instead of "../stdlib/strtod_nan_ldouble.h".
11814 * manual/arith.texi (Parsing of Floats): Adjust comment.
11815
11816 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11817
11818 * math/Makefile (libm-narrow-fns): Add mul.
11819 (libm-test-funcs-narrow): Likewise.
11820 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11821 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11822 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11823 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11824 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11825 (NARROW_MUL_TRIVIAL): Likewise.
11826 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11827 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11828 macro.
11829 (__dmull): Likewise.
11830 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11831 dmul.
11832 (CFLAGS-nldbl-dmul.c): New variable.
11833 (CFLAGS-nldbl-fmul.c): Likewise.
11834 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11835 __nldbl_dmull.
11836 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11837 prototype.
11838 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11839 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11840 * math/auto-libm-test-in: Add tests of mul.
11841 * math/auto-libm-test-out-narrow-mul: New generated file.
11842 * math/libm-test-narrow-mul.inc: New file.
11843 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11844 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11845 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11846 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11847 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11848 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11849 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11850 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11851 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11852 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11853 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11854 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11855 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11856 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11857 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11858 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11859 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11860 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11861 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11862 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11863 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11864 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11865 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11866 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11867 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11868 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11869 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11870 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11871 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11872 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11873 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11874 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11875 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11876 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11877 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11878 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11879 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11880 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11881 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11882 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11883 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11884 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11885 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11886 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11887
11888 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11889
11890 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11891 with *%eax in call.
11892
11893 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11894
11895 * sysdeps/i386/ldsodefs.h: Removed.
11896 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11897 * sysdeps/x86/ldsodefs.h: This.
11898 (La_i86_regs): New.
11899 (La_i86_retval): Likewise.
11900 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11901 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11902
11903 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11904
11905 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11906 unnecessary testl.
11907
11908 2018-05-13 Alan Modra <amodra@gmail.com>
11909
11910 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11911 R_PARISC_TLS_DTPOFF32 reloc addend.
11912
11913 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11914
11915 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11916 * math/math.h: Restrict the prototype definition for the functions
11917 issignaling(_Float128) and iszero(_Float128); and template
11918 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11919 __HAVE_FLOAT128_UNLIKE_LDBL.
11920 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11921 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11922 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11923 __f128() constants; define the type _Float128 as long double;
11924 and reuse long double in __CFLOAT128.
11925
11926 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11927
11928 * sysdeps/generic/math_private.h: Do not include
11929 <math-barriers.h>.
11930 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11931 <math_private.h>.
11932 * math/fromfp.h: Include <math-barriers.h>.
11933 * math/math-narrow.h: Likewise.
11934 * math/s_nextafter.c: Likewise.
11935 * math/s_nexttowardf.c: Likewise.
11936 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11937 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11938 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11939 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11940 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11941 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11942 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11943 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11944 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11945 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11946 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11947 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11948 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11949 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11950 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11951 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11952 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11953 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11954 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11955 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11956 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11957 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11958 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11959 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11960 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11961 * sysdeps/ieee754/k_standardl.c: Likewise.
11962 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11963 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11964 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11965 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11966 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11967 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11968 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11969 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11970 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11971 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11972 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11973 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11974 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11975 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11976 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11977 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11978 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11979 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11980 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11981 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11982 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11983 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11984
11985 2018-05-11 Florian Weimer <fweimer@redhat.com>
11986
11987 Use 64-bit epoch values in the time zone file parser.
11988 * include/time.h (internal_time_t): Define.
11989 (__tzfile_compute): Use it.
11990 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11991 member.
11992 (transitions): Switch to internal_time_t.
11993 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11994 types.
11995 (__tzfile_compute): Use internal_time_t for timer argument. Check
11996 for truncation before calling __offtime.
11997
11998 2018-05-11 Florian Weimer <fweimer@redhat.com>
11999
12000 [BZ #23166]
12001 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
12002 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
12003 Likewise.
12004 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
12005 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
12006 export without --enable-obsolete-rpc.
12007 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
12008 symbol. This should not have been exported, ever.
12009
12010 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
12011
12012 [BZ #23152]
12013 * localedata/locales/gd_GB (abmon): Fix typo in May:
12014 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
12015
12016 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
12017
12018 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
12019 Use multiple registers to copy data in loop tail.
12020
12021 * sysdeps/aarch64/multiarch/memmove_falkor.S
12022 (__memmove_falkor): Use multiple registers to move data in
12023 loop tail.
12024
12025 2018-05-10 Joseph Myers <joseph@codesourcery.com>
12026
12027 * math/math-underflow.h: New file.
12028 * sysdeps/generic/math_private.h: Do not include <float.h>.
12029 (fabs_tg): Remove macro. Moved to math-underflow.h.
12030 (min_of_type_f): Likewise.
12031 (min_of_type_): Likewise.
12032 (min_of_type_l): Likewise.
12033 (min_of_type_f128): Likewise.
12034 (min_of_type): Likewise.
12035 (math_check_force_underflow): Likewise.
12036 (math_check_force_underflow_nonneg): Likewise.
12037 (math_check_force_underflow_complex): Likewise.
12038 * math/e_exp2_template.c: Include <math-underflow.h>.
12039 * math/k_casinh_template.c: Likewise.
12040 * math/s_catan_template.c: Likewise.
12041 * math/s_catanh_template.c: Likewise.
12042 * math/s_ccosh_template.c: Likewise.
12043 * math/s_cexp_template.c: Likewise.
12044 * math/s_clog10_template.c: Likewise.
12045 * math/s_clog_template.c: Likewise.
12046 * math/s_csin_template.c: Likewise.
12047 * math/s_csinh_template.c: Likewise.
12048 * math/s_csqrt_template.c: Likewise.
12049 * math/s_ctan_template.c: Likewise.
12050 * math/s_ctanh_template.c: Likewise.
12051 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12052 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12053 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12054 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12055 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12056 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12057 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12058 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12059 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12060 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12061 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12062 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12063 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12064 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12065 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12066 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12067 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12068 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12069 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12070 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12071 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12072 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12073 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12074 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12075 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12076 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12077 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12078 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12079 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12080 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12081 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12082 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12083 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12087 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12088 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12089 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12090 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12091 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12092 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12095 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12096 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12097 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12098 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12099 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12100 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12101 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12102 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12103 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12104 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12105 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12106 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12107 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12108 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12109 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12110 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12111 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12112 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12113 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12114 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12115 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12116 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12117 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12118 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12119 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12120 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12121 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12122 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12123 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12124 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12125 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12126 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12127 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12128 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12129 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12130 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12131 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12132 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12133 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12134 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12135
12136 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12137
12138 * sysdeps/generic/math-barriers.h: New file.
12139 * sysdeps/generic/math_private.h [!math_opt_barrier]
12140 (math_opt_barrier): Move to math-barriers.h.
12141 [!math_opt_barrier] (math_force_eval): Likewise.
12142 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12143 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12144 math-barriers.h.
12145 (math_force_eval): Likewise.
12146 * sysdeps/alpha/fpu/math-barriers.h: New file.
12147 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12148 math-barriers.h.
12149 (math_force_eval): Likewise.
12150 * sysdeps/x86/fpu/math-barriers.h: New file.
12151 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12152 math-barriers.h.
12153 (math_force_eval): Likewise.
12154 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12155 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12156 multiple-include guard for rename.
12157 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12158 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12159 math-barriers.h.
12160 (math_force_eval): Likewise.
12161
12162 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12163
12164 [BZ #22786]
12165 CVE-2018-11236
12166 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12167 computation.
12168 * stdlib/Makefile (test-bz22786): New test.
12169 * stdlib/test-bz22786.c: New test.
12170
12171 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12172
12173 * include/math-narrow-eval.h: New file. Contents moved from ....
12174 * sysdeps/generic/math_private.h: ... here.
12175 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12176 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12177 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12178 * stdlib/strtod_l.c: Likewise.
12179 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12180 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12181 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12182 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12183 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12184 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12185 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12186 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12187 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12188 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12189 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12190 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12191 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12192 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12193 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12194 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12195 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12196 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12197 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12198 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12199 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12200 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12201 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12202 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12203 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12204 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12205 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12206 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12207 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12208
12209 2018-05-08 Andreas Schwab <schwab@suse.de>
12210
12211 * sysdeps/nptl/internaltypes.h: Fix comment.
12212
12213 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12214
12215 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12216 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12217 hidden.
12218
12219 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12220
12221 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12222 of I into loop header.
12223 * benchtests/bench-memmove-walk.c
12224 (test_main): Likewise.
12225
12226 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12227
12228 Revert:
12229 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12230 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12231
12232 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12233
12234 [BZ #20419]
12235 * elf/dl-load.c (open_verify): Fix stack overflow.
12236 * elf/Makefile (tst-big-note): New test.
12237 * elf/tst-big-note-lib.S: New.
12238 * elf/tst-big-note.c: New.
12239
12240 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12241
12242 * scripts/abilist.awk: Ignore absolute symbols.
12243 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12244 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12245 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12246 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12247 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12248 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12249 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12250 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12251 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12252 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12253 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12254 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12296 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12297 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12310 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12311 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12335 Likewise.
12336 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12338 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12339 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12349 Likewise.
12350 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12359 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12360 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12377 Likewise.
12378 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12392 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12393 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12398 Likewise.
12399 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12400 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12401 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12403 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12404 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12406 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12407 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12408 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12409 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12412 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12413 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12414 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12415 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12416 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12417 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12421 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12422 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12428 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12429 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12431 Likewise.
12432 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12433 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12435 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12436 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12437 Likewise.
12438 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12439 Likewise.
12440 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12441 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12442 Likewise.
12443 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12444 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12445 Likewise.
12446 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12447 Likewise.
12448 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12449 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12450 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12451 Likewise.
12452 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12453 Likewise.
12454 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12455 Likewise.
12456 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12460 Likewise.
12461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12464 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12465 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12467 Likewise.
12468 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12470 Likewise.
12471 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12472 Likewise.
12473 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12474 Likewise.
12475 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12476 Likewise.
12477 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12478 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12480 Likewise.
12481 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12482 Likewise.
12483 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12484 Likewise.
12485 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12488 Likewise.
12489 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12503 Likewise.
12504 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12516 Likewise.
12517 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12518 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12542 Likewise.
12543 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12556 Likewise.
12557 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12558 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12559 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12560 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12561 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12562 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12563 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12564 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12565 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12566 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12567 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12568 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12569 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12570 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12571 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12572 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12573 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12574 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12575 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12576 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12577 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12578 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12579 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12580 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12581 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12582 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12583 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12584 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12585 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12586 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12587 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12588 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12589 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12590 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12591 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12592 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12593 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12594 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12595
12596 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12597
12598 [BZ #23137]
12599 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12600 Use atomic_load_acquire to load __tid.
12601
12602 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12603
12604 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12605 Restore the pointer into %rdx, after syscall and use %rdx,
12606 instead of %rsi, to restore context.
12607
12608 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12609
12610 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12611 Pop the pointer into %rdx after syscall and use %rdx, instead
12612 of %rsi, to restore context.
12613
12614 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12615
12616 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12617 handlers after setjmp.
12618 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12619 defined.
12620 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12621 <libc-pointer-arith.h>.
12622 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12623 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12624 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12625 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12626 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12627 * sysdeps/x86/__longjmp_cancel.S: New file.
12628 * sysdeps/x86/longjmp.c: Likewise.
12629 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12630
12631 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12632
12633 * NEWS: Add ustat.h deprecation entry.
12634 * bits/ustat.h: Remove file.
12635 * misc/sys/ustat.h: Likewise.
12636 * misc/ustat.h: Likewise.
12637 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12638 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12639 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12640 compatibility mode.
12641 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12642 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12643 generic Linux implementation.
12644
12645 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12646
12647 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12648 * math/w_expl_compat.c: Likewise.
12649 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12650
12651 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12652
12653 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12654
12655 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12656
12657 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12658 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12659 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12660 Remove.
12661 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12662 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12663 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12664 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12665 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12666 and SYSCALL_LL64.
12667
12668 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12669
12670 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12671
12672 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12673 * math/w_asin_template.c: Likewise.
12674 * math/w_atanh_template.c: Likewise.
12675
12676 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12677
12678 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12679 to powerpc/powerpc64/be for big-endian.
12680 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12681 little-endian.
12682
12683 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12684 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12685 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12686 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12687 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12688 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12689 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12690 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12691 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12692 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12693 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12694 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12695 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12696 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12697 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12698 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12699 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12700 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12701 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12702 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12703 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12704 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12705 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12706 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12707 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12708 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12709 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12710 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12711 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12712 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12713 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12714 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12715
12716 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12717 adjusted to imply powerpc64 and older processors on powerpc64/be.
12718 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12719 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12720 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12721 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12722 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12723 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12724 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12725 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12726 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12727 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12728 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12729 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12730 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12731 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12732 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12733 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12734 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12735 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12736 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12737 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12738 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12739 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12740 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12741 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12742 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12743 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12744 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12745 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12746 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12747 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12748 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12749
12750 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12751 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12752 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12753 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12754
12755 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12756 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12757 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12758 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12759
12760 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12761 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12762 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12763 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12764 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12765 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12766 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12767 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12768 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12769 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12770 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12771
12772 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12773 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12774 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12775 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12776 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12777 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12778 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12779 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12780 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12781 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12782 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12783
12784 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12785 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12786 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12787 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12788 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12789 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12790 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12791 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12792 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12793 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12794 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12795 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12796
12797 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12798 and adjusted to imply olders processors.
12799 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12800 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12801 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12802 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12803 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12804 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12805 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12806 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12807 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12808 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12809 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12810
12811 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12812 powerpc64/le.
12813 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12814 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12815
12816 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12817 powerpc64le.
12818 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12819 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12820
12821 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12822 powerpc64/be.
12823 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12824 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12825 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12826
12827 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12828 powerpc64 and adjusted.
12829 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12830 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12832 Likewise.
12833
12834 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12835
12836 * sysdeps/tile: Remove.
12837 * sysdeps/unix/sysv/linux/tile: Likewise.
12838 * README (tilegx-*-linux-gnu): Remove from list of supported
12839 configurations.
12840 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12841 contribution of support for generic Linux kernel syscall
12842 interface.
12843 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12844 tilegx configurations.
12845 (Config.install_linux_headers): Do not handle tile.
12846 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12847 in comment.
12848 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12849 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12850 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12851 conditional undefine and redefine.
12852 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12853 in comment.
12854 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12855 conditional undefine and redefine.
12856
12857 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12858
12859 * signal/tst-sigaction.c: New file to test BZ #23069.
12860 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12861
12862 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12863
12864 [BZ #22766]
12865 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12866 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12867 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12868 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12869
12870 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12871
12872 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12873 _DIRENT_MATCHES_DIRENT64 is not defined.
12874 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12875 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12876 is defined.
12877 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12878 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12879
12880 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12881
12882 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12883 version to GCC 8 branch.
12884
12885 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12886
12887 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12888 (check_no_hidden): Use type of original function when declaring
12889 alias.
12890
12891 * sysdeps/unix/sysv/linux/sys/ptrace.h
12892 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12893 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12894 (struct __ptrace_seccomp_metadata): New type.
12895 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12896 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12897 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12898 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12899 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12900 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12901 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12902 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12903 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12904 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12905 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12906 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12907 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12908 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12909 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12910 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12911
12912 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12913
12914 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12915 defined.
12916 * dirent/versionsort.c (versionsort): Likewise.
12917 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12918 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12919 * dirent/versionsort64.c (versionsort64): Likewise.
12920 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12921 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12922 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12923 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12924 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12925 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12926 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12927 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12928 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12929 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12931 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12932 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12933 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12934
12935 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12936
12937 * elf/elf.h (NT_PPC_PKEY): New macro.
12938
12939 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12940
12941 [BZ #23094]
12942 * localedata/locales/hr_HR: fix thousands_sep and
12943 mon_thousands_sep
12944
12945 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12946
12947 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12948 (XTABS): Define to TAB3.
12949
12950 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12951
12952 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12953
12954 * dirent/scandir-tail-common.c: New file.
12955 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12956 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12957 * dirent/scandir.c: Use scandir-tail-common.c.
12958 * dirent/scandirat.c: Likewise.
12959 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12960 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12961 if _DIRENT_MATCHES_DIRENT64 is defined.
12962 * dirent/scandirat64.c (scandirat64): Likewise.
12963 * include/dirent.h (__scandir_tail): Only define iff
12964 _DIRENT_MATCHES_DIRENT64 is not defined.
12965 (__scandir64_tail): Define regardless.
12966 (__scandirat, scandirat64): Remove libc_hidden_proto.
12967 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12968 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12969 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12970 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12971 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12972 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12973 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12974
12975 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12976
12977 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12978 New macro.
12979 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12980 Increase to 24.
12981 (_dl_aarch64_cap_flags): Add asimdfhm.
12982
12983 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12984
12985 * sysdeps/nios2/libm-test-ulps: Update.
12986
12987 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12988
12989 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12990 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12991
12992 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12993 requirements.
12994 (_DIRENT_MATCHES_DIRENT64): Undef
12995 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12996 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12997 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12998 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12999 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
13000 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
13001 use getdents64 syscalls as base.
13002 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
13003 symbol if required.
13004 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
13005 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
13006 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
13007 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
13008 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
13009 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
13010 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
13011 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
13012 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13013 (__get_clockfreq_via_proc_openprom): Use __getdents64.
13014 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
13015
13016 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13017
13018 * scripts/test_printers_common.py (init_test): Disable lock elision.
13019
13020 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
13021
13022 * math/test-tgmath.c (count_double, count_float,
13023 count_ldouble, count_cdouble, count_cfloat,
13024 count_cldouble): Use volatile int.
13025
13026 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13027
13028 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
13029 (conformtest-xfail-conds): Add i386-gnu.
13030 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
13031 i386-gnu.
13032 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
13033 ipc_perm.cuid, ipc_perm.cgid): Likewise.
13034 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
13035 msqid_ds.msg_lrpid): Likewise.
13036 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
13037 Likewise.
13038 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13039 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13040 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13041 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13042 unsigned int.
13043 (struct statvfs64): Likewise.
13044 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13045 Likewise.
13046 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13047 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13048 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13049 instead of wait_queue.
13050 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13051 instead of vm_area_struct.
13052 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13053 struct sched_param definition to it.
13054 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13055 * bits/types/struct_sched_param.h: New file.
13056 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13057 <bits/types/struct_sched_param.h> instead of <sched.h>.
13058 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13059 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13060 generic version but include <bits/pthreadtypes.h> to make struct
13061 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13062 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13063 non-compliant.
13064 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13065 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13066 [__USE_XOPEN] (OFDEL): New macro.
13067 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13068 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13069 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13070 prototypes.
13071 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13072 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13073 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13074 non-compliant.
13075 * sysdeps/i386/sys/ucontext.h: Likewise.
13076 * sysdeps/m68k/sys/ucontext.h: Likewise.
13077 * sysdeps/mips/sys/ucontext.h: Likewise.
13078 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13079 * sysdeps/mach/hurd/i386/Makefile
13080 (test-xfail-POSIX/fcntl.h/conform): Add.
13081 (test-xfail-POSIX/signal.h/conform): Add.
13082 (test-xfail-POSIX/semaphore.h/conform): Add.
13083 (test-xfail-POSIX/regex.h/conform): Add.
13084 (test-xfail-POSIX/aio.h/conform): Add.
13085 (test-xfail-POSIX/mqueue.h/conform): Add.
13086 (test-xfail-POSIX/sys/types.h/conform): Add.
13087 (test-xfail-UNIX98/fcntl.h/conform): Add.
13088 (test-xfail-UNIX98/netdb.h/conform): Add.
13089 (test-xfail-UNIX98/signal.h/conform): Add.
13090 (test-xfail-UNIX98/semaphore.h/conform): Add.
13091 (test-xfail-UNIX98/regex.h/conform): Add.
13092 (test-xfail-UNIX98/aio.h/conform): Add.
13093 (test-xfail-UNIX98/ftw.h/conform): Add.
13094 (test-xfail-UNIX98/mqueue.h/conform): Add.
13095 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13096 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13097 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13098 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13099 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13100 (test-xfail-UNIX98/sys/types.h/conform): Add.
13101 (test-xfail-UNIX98/stdlib.h/conform): Add.
13102 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13103 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13104 (test-xfail-POSIX2008/netdb.h/conform): Add.
13105 (test-xfail-POSIX2008/signal.h/conform): Add.
13106 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13107 (test-xfail-POSIX2008/regex.h/conform): Add.
13108 (test-xfail-POSIX2008/aio.h/conform): Add.
13109 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13110 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13111 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13112 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13113 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13114 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13115 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13116 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13117 (test-xfail-XOPEN2K/signal.h/conform): Add.
13118 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13119 (test-xfail-XOPEN2K/regex.h/conform): Add.
13120 (test-xfail-XOPEN2K/aio.h/conform): Add.
13121 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13122 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13123 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13124 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13125 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13126 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13127 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13128 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13129 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13130 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13131 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13132 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13133 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13134 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13135 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13136 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13137 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13138 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13139 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13140 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13141 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13142 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13143 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13144 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13145 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13146 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13147 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13148 i386-gnu.
13149 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13150 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13151
13152 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13153
13154 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13155 --enable-obsolete for powerpc-linux-gnuspe.
13156
13157 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13158
13159 * conform/data/sys/un.h-data: Allow sun_ prefix.
13160 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13161 prototypes.
13162 * sysdeps/mach/include/mach.h: Likewise.
13163 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13164 * sysdeps/mach/include/mach_error.h: Likewise.
13165
13166 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13167
13168 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13169 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13170 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13171 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13172
13173 2018-04-16 Andreas Schwab <schwab@suse.de>
13174
13175 [BZ #19527]
13176 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13177
13178 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13179
13180 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13181 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13182
13183 2018-04-12 DJ Delorie <dj@redhat.com>
13184
13185 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13186 version to 4.16.
13187
13188 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13189
13190 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13191 (struct kernel_sigaction): Use the same definition on 31bit as is used
13192 on 64bit.
13193
13194 2018-04-09 Florian Weimer <fweimer@redhat.com>
13195
13196 [BZ #23037]
13197 * resolv/res_send.c (send_dg): Use designated initializers instead
13198 of assignment to zero-initialize other fields of struct mmsghdr.
13199
13200 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13201
13202 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13203 __READDIR_ALIAS): Undefine after usage.
13204 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13205 __READDIR_R_ALIAS): Likewise.
13206 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13207 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13208 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13209 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13210 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13211 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13212 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13213 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13214 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13215 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13216 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13217 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13218 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13219 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13220 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13221 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13222 * sysdeps/unix/sysv/linux/readdir.c: New file.
13223 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13224 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13225 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13226
13227 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13228
13229 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13230
13231 * manual/charset.texi (Converting a Character): Fix typo.
13232
13233 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13234
13235 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13236
13237 * sysdeps/arm/libm-test-ulps: Update.
13238
13239 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13240 as base implementation.
13241 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13242 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13243 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13244 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13245 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13246 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13247 remove unrequired definitions and update comments.
13248 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13249 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13250 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13251 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13252 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13253 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13254 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13255 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13256 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13257 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13258 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13259 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13260 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13261 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13262 and RESET_SA_RESTORER hooks.
13263
13264 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13265
13266 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13267
13268 2018-04-05 Florian Weimer <fweimer@redhat.com>
13269
13270 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13271 integer overflow, memory leak on error, and indeterminate errno
13272 value. Add a null wide character to terminate the result string.
13273 * manual/charset.texi (Converting a Character): Mention embedded
13274 null bytes in the mbrtowc input string. Explain what happens in
13275 the -2 result case. Do not claim that mbrtowc is simple or
13276 obvious to use. Adjust the description of the code example. Use
13277 @code, not @var, for concrete variables.
13278
13279 2018-04-05 Florian Weimer <fweimer@redhat.com>
13280
13281 * manual/examples/mbstouwcs.c: New file.
13282 * manual/charset.texi (Converting a Character): Include it.
13283
13284 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13285
13286 * include/dirent.h (dirfd): Add hidden proto.
13287 * dirent/dirfd.c (dirfd): Add hidden def.
13288 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13289 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13290
13291 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13292
13293 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13294 sin, cos and sincos to 1 ULP.
13295
13296 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13297
13298 [BZ #19818]
13299 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13300 symbols.
13301 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13302 * elf/tst-absolute-sym.c: New file.
13303 * elf/tst-absolute-sym-lib.c: New file.
13304 * elf/tst-absolute-sym-lib.lds: New file.
13305 * elf/Makefile (tests): Add `tst-absolute-sym'.
13306 (modules-names): Add `tst-absolute-sym-lib'.
13307 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13308 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13309 ($(objpfx)tst-absolute-sym): New dependency.
13310
13311 [BZ #19818]
13312 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13313 parameter.
13314 (SYMBOL_ADDRESS): New macro.
13315 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13316 SYMBOL_ADDRESS for symbol address calculation.
13317 * elf/dl-runtime.c (_dl_fixup): Likewise.
13318 (_dl_profile_fixup): Likewise.
13319 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13320 * elf/rtld.c (dl_main): Likewise.
13321 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13322 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13323 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13324 (elf_machine_rela): Likewise.
13325 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13326 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13327 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13328 (elf_machine_rela): Likewise.
13329 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13330 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13331 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13332 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13333 Likewise.
13334 (elf_machine_reloc): Likewise.
13335 (elf_machine_got_rel): Likewise.
13336 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13337 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13338 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13339 Likewise.
13340 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13341 Likewise.
13342 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13343 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13344 Likewise.
13345 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13346 Likewise.
13347 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13348 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13349 Likewise.
13350 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13351 Likewise.
13352 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13353 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13354
13355 2018-04-04 Zack Weinberg <zackw@panix.com>
13356
13357 * sysdeps/generic/internal-signals.h: Include signal.h,
13358 sigsetops.h, and stdbool.h.
13359 (__libc_signal_block_all): Actually block all signals.
13360 (__libc_signal_block_app): Likewise.
13361 (__libc_signal_restore_set): Actually restore the signal mask.
13362
13363 2018-04-04 Florian Weimer <fweimer@redhat.com>
13364
13365 inet: Actually build and run tst-deadline.
13366 * inet/Makefile (tests-internal): Add tst-deadline and do not
13367 overwrite the variable.
13368 (tests-static-internal): Remove variable.
13369
13370 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13371
13372 [BZ #22947]
13373 * bits/uio-ext.h (RWF_APPEND): New.
13374 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13375 * manual/llio.texi: Document RWF_APPEND.
13376 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13377 (RWF_SUPPORTED): Add RWF_APPEND.
13378
13379 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13380
13381 [BZ #22391]
13382 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13383 check for internal nptl signals.
13384 * nptl/sigaction.c (__sigaction): Likewise.
13385 * signal/sigaddset.c (sigaddset): Likewise.
13386 * signal/sigdelset.c (sigdelset): Likewise.
13387 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13388 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13389 value.
13390 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13391 to filter out internal nptl signals.
13392 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13393 also check realtime signals using standard macros.
13394 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13395 __is_internal_signal, __libc_signal_block_all,
13396 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13397 * sysdeps/nptl/sigfillset.c: Remove file.
13398 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13399 Change return to bool.
13400 (__clear_internal_signals): Remove SIGTIMER clean since it is
13401 equal to SIGCANEL on Linux.
13402 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13403 signal set was constructed using standard functions.
13404
13405 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13406
13407 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13408 ifname is too long.
13409 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13410 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13411 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13412 hidden def.
13413 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13414 * signal/sigaddset.c: Include <sigsetopts.h>.
13415 * signal/sigdelset.c: Likewise.
13416
13417 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13418
13419 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13420 (__cos): Likewise.
13421 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13422 logic as sin and cos.
13423
13424 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13425
13426 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13427 inputs. Return correct sign.
13428 (do_sincos): Remove small input check before do_sin, let do_sin set
13429 the sign.
13430 (__sin): Likewise.
13431 (__cos): Likewise.
13432
13433 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13434
13435 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13436 (do_cos_slow): Likewise.
13437 (do_sin_slow): Likewise.
13438 (reduce_and_compute): Likewise.
13439 (slow): Likewise.
13440 (slow1): Likewise.
13441 (slow2): Likewise.
13442 (sloww): Likewise.
13443 (sloww1): Likewise.
13444 (sloww2): Likewise.
13445 (bslow): Likewise.
13446 (bslow1): Likewise.
13447 (bslow2): Likewise.
13448 (cslow2): Likewise.
13449
13450 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13451
13452 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13453 (do_cos): Remove corp parameter and calculations.
13454 (do_sin): Likewise.
13455 (do_sincos): Remove cor variable.
13456 (__sin): Use do_sincos for huge inputs.
13457 (__cos): Likewise.
13458 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13459 (reduce_and_compute_sincos): Remove unused function.
13460
13461 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13462
13463 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13464 reduce_sincos, improve accuracy to 136 bits.
13465 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13466 (__sin): Use improved reduction and simplified do_sincos calculation.
13467 (__cos): Likewise.
13468 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13469
13470 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13471
13472 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13473 (do_sincos_2): Likewise.
13474 (__sin): Remove middle range reduction case.
13475 (__cos): Likewise.
13476 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13477 reduction case.
13478
13479 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13480
13481 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13482 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13483 inputs.
13484 (__cos): Likewise.
13485 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13486
13487 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13488
13489 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13490 version to 4.16
13491
13492 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13493
13494 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13495 Remove definitions.
13496 (opendir_oflags): Use O_DIRECTORY regardless.
13497 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13498 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13499
13500 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13501
13502 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13503 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13504 macros.
13505 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13506 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13507 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13508 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13509 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13510 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13511
13512 * htl/Makefile: Bump licence to LGPL 2.1+.
13513 * htl/alloca_cutoff.c: Likewise.
13514 * htl/cthreads-compat.c: Likewise.
13515 * htl/lockfile.c: Likewise.
13516 * htl/pt-alloc.c: Likewise.
13517 * htl/pt-cancel.c: Likewise.
13518 * htl/pt-cleanup.c: Likewise.
13519 * htl/pt-create.c: Likewise.
13520 * htl/pt-dealloc.c: Likewise.
13521 * htl/pt-detach.c: Likewise.
13522 * htl/pt-exit.c: Likewise.
13523 * htl/pt-getattr.c: Likewise.
13524 * htl/pt-initialize.c: Likewise.
13525 * htl/pt-internal.h: Likewise.
13526 * htl/pt-join.c: Likewise.
13527 * htl/pt-self.c: Likewise.
13528 * htl/pt-setcancelstate.c: Likewise.
13529 * htl/pt-setcanceltype.c: Likewise.
13530 * htl/pt-sigmask.c: Likewise.
13531 * htl/pt-spin-inlines.c: Likewise.
13532 * htl/pt-testcancel.c: Likewise.
13533 * htl/pt-yield.c: Likewise.
13534 * htl/tests/test-1.c: Likewise.
13535 * htl/tests/test-10.c: Likewise.
13536 * htl/tests/test-11.c: Likewise.
13537 * htl/tests/test-12.c: Likewise.
13538 * htl/tests/test-13.c: Likewise.
13539 * htl/tests/test-14.c: Likewise.
13540 * htl/tests/test-15.c: Likewise.
13541 * htl/tests/test-16.c: Likewise.
13542 * htl/tests/test-17.c: Likewise.
13543 * htl/tests/test-2.c: Likewise.
13544 * htl/tests/test-3.c: Likewise.
13545 * htl/tests/test-4.c: Likewise.
13546 * htl/tests/test-5.c: Likewise.
13547 * htl/tests/test-6.c: Likewise.
13548 * htl/tests/test-7.c: Likewise.
13549 * htl/tests/test-8.c: Likewise.
13550 * htl/tests/test-9.c: Likewise.
13551 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13552 * sysdeps/htl/bits/cancelation.h: Likewise.
13553 * sysdeps/htl/bits/pthread-np.h: Likewise.
13554 * sysdeps/htl/bits/pthread.h: Likewise.
13555 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13556 * sysdeps/htl/bits/semaphore.h: Likewise.
13557 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13558 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13559 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13560 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13561 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13562 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13563 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13564 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13565 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13566 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13567 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13568 * sysdeps/htl/old_pt-atfork.c: Likewise.
13569 * sysdeps/htl/pt-atfork.c: Likewise.
13570 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13571 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13572 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13573 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13574 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13575 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13576 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13577 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13578 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13579 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13580 * sysdeps/htl/pt-attr-init.c: Likewise.
13581 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13582 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13583 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13584 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13585 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13586 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13587 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13588 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13589 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13590 * sysdeps/htl/pt-attr.c: Likewise.
13591 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13592 * sysdeps/htl/pt-barrier-init.c: Likewise.
13593 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13594 * sysdeps/htl/pt-barrier.c: Likewise.
13595 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13596 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13597 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13598 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13599 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13600 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13601 * sysdeps/htl/pt-cond-init.c: Likewise.
13602 * sysdeps/htl/pt-cond-signal.c: Likewise.
13603 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13604 * sysdeps/htl/pt-cond-wait.c: Likewise.
13605 * sysdeps/htl/pt-cond.c: Likewise.
13606 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13607 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13608 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13609 * sysdeps/htl/pt-condattr-init.c: Likewise.
13610 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13611 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13612 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13613 * sysdeps/htl/pt-equal.c: Likewise.
13614 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13615 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13616 * sysdeps/htl/pt-getschedparam.c: Likewise.
13617 * sysdeps/htl/pt-getspecific.c: Likewise.
13618 * sysdeps/htl/pt-init-specific.c: Likewise.
13619 * sysdeps/htl/pt-key-create.c: Likewise.
13620 * sysdeps/htl/pt-key-delete.c: Likewise.
13621 * sysdeps/htl/pt-key.h: Likewise.
13622 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13623 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13624 * sysdeps/htl/pt-mutex-init.c: Likewise.
13625 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13626 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13627 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13628 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13629 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13630 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13631 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13632 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13633 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13634 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13635 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13636 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13637 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13638 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13639 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13640 * sysdeps/htl/pt-mutexattr.c: Likewise.
13641 * sysdeps/htl/pt-once.c: Likewise.
13642 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13643 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13644 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13645 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13646 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13647 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13648 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13649 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13650 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13651 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13652 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13653 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13654 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13655 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13656 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13657 * sysdeps/htl/pt-setschedparam.c: Likewise.
13658 * sysdeps/htl/pt-setschedprio.c: Likewise.
13659 * sysdeps/htl/pt-setspecific.c: Likewise.
13660 * sysdeps/htl/pt-spin.c: Likewise.
13661 * sysdeps/htl/pt-startup.c: Likewise.
13662 * sysdeps/htl/pthread.h: Likewise.
13663 * sysdeps/htl/sem-close.c: Likewise.
13664 * sysdeps/htl/sem-destroy.c: Likewise.
13665 * sysdeps/htl/sem-getvalue.c: Likewise.
13666 * sysdeps/htl/sem-init.c: Likewise.
13667 * sysdeps/htl/sem-open.c: Likewise.
13668 * sysdeps/htl/sem-post.c: Likewise.
13669 * sysdeps/htl/sem-timedwait.c: Likewise.
13670 * sysdeps/htl/sem-trywait.c: Likewise.
13671 * sysdeps/htl/sem-unlink.c: Likewise.
13672 * sysdeps/htl/sem-wait.c: Likewise.
13673 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13674 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13675 * sysdeps/mach/htl/pt-block.c: Likewise.
13676 * sysdeps/mach/htl/pt-spin.c: Likewise.
13677 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13678 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13679 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13680 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13681 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13682 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13683 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13684 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13685 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13686 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13687 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13688 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13689 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13690 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13691 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13692 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13693 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13694 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13695 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13696 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13697 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13698 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13699 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13700 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13701 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13702 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13703 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13704 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13705 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13706 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13707 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13708 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13709 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13710 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13711 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13712 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13713 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13714 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13715 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13716 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13717 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13718 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13719 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13720
13721 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13722 * README: Remove the mention of out-of-tree patches needed for
13723 GNU/Hurd.
13724
13725 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13726 (UTIME_NOW, UTIME_OMIT): Define macros.
13727
13728 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13729 instead of pthread_detach.
13730 (__cthread_fork): Call __pthread_create instead of pthread_create.
13731 (__cthread_keycreate): Call __pthread_key_create instead of
13732 pthread_key_create.
13733 (__cthread_getspecific): Call __pthread_getspecific instead of
13734 pthread_getspecific.
13735 (__cthread_setspecific): Call __pthread_setspecific instead of
13736 pthread_setspecific.
13737 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13738 __pthread_mutex_unlock instead of pthread_mutex_lock and
13739 pthread_mutex_unlock.
13740 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13741 ___pthread_get_cleanup_stack.
13742 (__pthread_get_cleanup_stack): New strong alias.
13743 * htl/pt-create.c: Include <pthreadP.h>.
13744 (entry_point): Call __pthread_exit instead of pthread_exit.
13745 (pthread_create): Rename to __pthread_create.
13746 (pthread_create): New strong alias.
13747 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13748 (pthread_detach): New strong alias.
13749 (__pthread_detach): Call __pthread_cond_broadcast instead of
13750 pthread_cond_broadcast.
13751 * htl/pt-exit.c: Include <pthreadP.h>.
13752 (__pthread_exit): Call __pthread_setcancelstate and
13753 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13754 __pthread_get_cleanup_stack.
13755 * htl/pt-testcancel.c: Include <pthreadP.h>.
13756 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13757 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13758 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13759 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13760 pthread_attr_getstacksize.
13761 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13762 Rename to __pthread_attr_getstackaddr.
13763 (pthread_attr_getstackaddr): New strong alias.
13764 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13765 Rename to __pthread_attr_getstacksize.
13766 (pthread_attr_getstacksize): New strong alias.
13767 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13768 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13769 (pthread_attr_setstack): New strong alias.
13770 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13771 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13772 pthread_attr_getstacksize, pthread_attr_setstacksize and
13773 pthread_attr_setstackaddr.
13774 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13775 Rename to __pthread_attr_setstackaddr.
13776 (pthread_attr_setstackaddr): New strong alias.
13777 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13778 Rename to __pthread_attr_setstacksize.
13779 (pthread_attr_setstacksize): New strong alias.
13780 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13781 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13782 pthread_exit.
13783 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13784 (__pthread_key_create): New hidden def.
13785 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13786 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13787 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13788 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13789 __pthread_setspecific, __pthread_setcancelstate,
13790 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13791 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13792 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13793 declarations.
13794 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13795 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13796 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13797 (pthread_attr_setstackaddr): New strong alias.
13798 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13799 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13800 (pthread_attr_setstacksize): New strong alias.
13801 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13802 (call_exit): Call __pthread_exit instead of pthread_exit.
13803 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13804 (_pthread_mutex_init): New hidden definition.
13805 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13806 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13807 instead of pthread_attr_init and pthread_attr_setstack.
13808
13809 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13810 __vm_deallocate instead of vm_allocate and vm_deallocate.
13811 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13812 setenv.
13813 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13814 of geteuid.
13815 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13816 strdup.
13817 * hurd/siginfo.c: Include <libioP.h>.
13818 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13819 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13820 munmap.
13821 * mach/devstream.c: Include <libioP.h>.
13822 (dealloc_ref): Call __mach_port_deallocate instead of
13823 mach_port_deallocate.
13824 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13825 Call __mach_port_deallocate instead of mach_port_deallocate.
13826 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13827 pathconf.
13828 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13829 munmap.
13830 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13831 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13832 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13833 of munmap.
13834 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13835 of close.
13836 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13837 instead of sysconf.
13838 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13839 __clock_gettime instead of clock_gettime.
13840 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13841 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13842 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13843 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13844 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13845 tcgetattr.
13846 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13847 __clock_gettime and __nanosleep instead of clock_gettime and
13848 nanosleep.
13849 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13850 __hurd_catch_signal.
13851 (hurd_catch_signal): New strong alias.
13852 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13853 __hurd_catch_signal instead of hurd_catch_signal.
13854 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13855 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13856 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13857 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13858 (_hurd_thread_sigstate): Add hidden def.
13859 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13860 mutex_unlock.
13861 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13862 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13863 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13864 __hurd_file_name_path_lookup.
13865 (hurd_file_name_path_lookup): New strong alias.
13866 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13867 hurd_file_name_path_lookup.
13868 * mach/errstring.c (mach_error_type): Add hidden def.
13869 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13870 * mach/mutex-init.c (__mutex_init): Add hidden def.
13871 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13872 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13873 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13874 * sysdeps/mach/hurd/getcwd.c
13875 (_hurd_canonicalize_directory_name_internal): Rename to
13876 __hurd_canonicalize_directory_name_internal.
13877 (_hurd_canonicalize_directory_name_internal): New strong alias.
13878 (__canonicalize_directory_name_internal, __getcwd): Call
13879 __hurd_canonicalize_directory_name_internal instead of
13880 _hurd_canonicalize_directory_name_internal.
13881 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13882 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13883 hidden defs.
13884 * sysdeps/hurd/include/hurd.h: New file.
13885 * sysdeps/hurd/include/hurd/fd.h: New file.
13886 * sysdeps/hurd/include/hurd/signal.h: New file.
13887 * sysdeps/mach/include/lock-intern.h: New file.
13888 * sysdeps/mach/include/mach.h: New file.
13889 * sysdeps/mach/include/mach/mig_support.h: New file.
13890 * sysdeps/mach/include/mach_error.h: New file.
13891 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13892 prototype.
13893 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13894 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13895 _HEADER_H_HIDDEN_DEF macro.
13896 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13897 _hurd_fd_error_signal): Add hidden prototype.
13898 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13899 hidden def.
13900 * libio/iolibio.h (_IO_puts): New hidden prototype.
13901 * libio/ioputs.c (_IO_puts): New hidden def.
13902 * sysdeps/mach/hurd/localplt.data: New file.
13903
13904 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13905 Amos Jeffries <squid3@treenet.co.nz>
13906 David Michael <fedora.dm0@gmail.com>
13907 Marco Gerards <marco@gnu.org>
13908 Marcus Brinkmann <marcus@gnu.org>
13909 Neal H. Walfield <neal@gnu.org>
13910 Pino Toscano <toscano.pino@tiscali.it>
13911 Richard Braun <rbraun@sceen.net>
13912 Roland McGrath <roland@gnu.org>
13913 Samuel Thibault <samuel.thibault@ens-lyon.org>
13914 Thomas DiModica <ricinwich@yahoo.com>
13915 Thomas Schwinge <tschwinge@gnu.org>
13916
13917 * htl: New directory.
13918 * sysdeps/htl: New directory.
13919 * sysdeps/hurd/htl: New directory.
13920 * sysdeps/i386/htl: New directory.
13921 * sysdeps/mach/htl: New directory.
13922 * sysdeps/mach/hurd/htl: New directory.
13923 * sysdeps/mach/hurd/i386/htl: New directory.
13924 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13925 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13926 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13927
13928 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13929
13930 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13931 signals in thread created for runing timers.
13932
13933 2018-04-01 Florian Weimer <fweimer@redhat.com>
13934
13935 * support/support_format_addrinfo.c (support_format_addrinfo):
13936 Include unknown error number in formatted result.
13937
13938 2018-03-29 Florian Weimer <fweimer@redhat.com>
13939
13940 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13941 capture SIGBUS.
13942
13943 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13944
13945 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13946 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13947 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13948 (__ASSUME_CLONE_BACKWARDS): Define.
13949
13950 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13951
13952 [BZ #23024]
13953 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13954 early when linux sentinel value is set.
13955
13956 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13957
13958 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13959
13960 2018-03-27 Andreas Schwab <schwab@suse.de>
13961
13962 [BZ #23005]
13963 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13964 allocation of private copy of nsaddr_list fails.
13965
13966 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13967
13968 [BZ #16552]
13969 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13970 * sysdeps/unix/sysv/linux/umount.c: ... here.
13971 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13972 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13973 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13974 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13975 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13976 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13977 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13978
13979 2018-03-26 Andreas Schwab <schwab@suse.de>
13980
13981 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13982 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13983 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13984 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13985 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13986 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13987 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13988 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13989 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13990 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13991 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13992 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13993 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13994 (R_RISCV_NUM): Define.
13995
13996 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13997
13998 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13999 TLS declaration of errno.
14000 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
14001 __libc_setup_tls.
14002 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
14003 (ARCH_SETUP_TLS): Likewise.
14004 * sysdeps/mach/hurd/libc-start.h: New file copied from
14005 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
14006 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
14007 instead of __libc_setup_tls.
14008 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
14009 __libc_setup_tls before initializing libpthread and running _hurd_init
14010 which starts the signal thread.
14011 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
14012 Declare function.
14013 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14014
14015 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
14016
14017 [BZ #22998]
14018 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
14019 after it is defined.
14020
14021 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
14022 Max Horn <max@quendi.de>
14023
14024 [BZ #22644]
14025 CVE-2017-18269
14026 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
14027 branch conditions.
14028 * string/test-memmove.c (do_test2): New testcase.
14029
14030 2018-03-22 Joseph Myers <joseph@codesourcery.com>
14031
14032 * sysdeps/generic/frame.h: Remove file.
14033 * sysdeps/arm/frame.h: Likewise.
14034 * sysdeps/hppa/frame.h: Likewise.
14035 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
14036 macro.
14037 (GET_FRAME): Likewise.
14038 (GET_STACK): Likewise.
14039 (CALL_SIGHANDLER): Likewise.
14040 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14041 Likewise.
14042 (GET_FRAME): Likewise.
14043 (GET_STACK): Likewise.
14044 (CALL_SIGHANDLER): Likewise.
14045 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14046 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14047 (GET_FRAME): Likewise.
14048 (GET_STACK): Likewise.
14049 (CALL_SIGHANDLER): Likewise.
14050 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14051 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14052 (GET_FRAME): Likewise.
14053 (GET_STACK): Likewise.
14054 (ADVANCE_STACK_FRAME): Likewise.
14055 (CALL_SIGHANDLER): Likewise.
14056 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14057 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14058 (GET_FRAME): Likewise.
14059 (GET_STACK): Likewise.
14060 (CALL_SIGHANDLER): Likewise.
14061 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14062 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14063 (GET_FRAME): Likewise.
14064 (GET_STACK): Likewise.
14065 (CALL_SIGHANDLER): Likewise.
14066 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14067 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14068 (GET_FRAME): Likewise.
14069 (GET_STACK): Likewise.
14070 (CALL_SIGHANDLER): Likewise.
14071 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14072 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14073 (GET_FRAME): Likewise.
14074 (GET_STACK): Likewise.
14075 (CALL_SIGHANDLER): Likewise.
14076 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14077 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14078 (GET_FRAME): Likewise.
14079 (GET_STACK): Likewise.
14080 (CALL_SIGHANDLER): Likewise.
14081 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14082 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14083 (GET_FRAME): Likewise.
14084 (GET_STACK): Likewise.
14085 (CALL_SIGHANDLER): Likewise.
14086 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14087 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14088 (GET_FRAME): Likewise.
14089 (GET_STACK): Likewise.
14090 (CALL_SIGHANDLER): Likewise.
14091 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14092 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14093 (GET_FRAME): Likewise.
14094 (GET_STACK): Likewise.
14095 (CALL_SIGHANDLER): Likewise.
14096 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14097 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14098 (GET_FRAME): Likewise.
14099 (GET_STACK): Likewise.
14100 (CALL_SIGHANDLER): Likewise.
14101 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14102 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14103 (FIRST_FRAME_POINTER): Likewise.
14104 (ADVANCE_STACK_FRAME): Likewise.
14105 (GET_STACK): Likewise.
14106 (GET_FRAME): Likewise.
14107 (CALL_SIGHANDLER): Likewise.
14108 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14109 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14110 (ADVANCE_STACK_FRAME): Likewise.
14111 (GET_STACK): Likewise.
14112 (GET_FRAME): Likewise.
14113 (CALL_SIGHANDLER): Likewise.
14114 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14115 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14116 (GET_FRAME): Likewise.
14117 (GET_STACK): Likewise.
14118 (CALL_SIGHANDLER): Likewise.
14119 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14120 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14121 (GET_FRAME): Likewise.
14122 (GET_STACK): Likewise.
14123 (CALL_SIGHANDLER): Likewise.
14124
14125 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14126
14127 * sysdeps/x86_64/backtrace.c: Move to ....
14128 * debug/backtrace.c: ... here.
14129 * sysdeps/aarch64/backtrace.c: Remove file.
14130 * sysdeps/alpha/backtrace.c: Likewise.
14131 * sysdeps/hppa/backtrace.c: Likewise.
14132 * sysdeps/ia64/backtrace.c: Likewise.
14133 * sysdeps/mips/backtrace.c: Likewise.
14134 * sysdeps/nios2/backtrace.c: Likewise.
14135 * sysdeps/riscv/backtrace.c: Likewise.
14136 * sysdeps/sh/backtrace.c: Likewise.
14137 * sysdeps/tile/backtrace.c: Likewise.
14138
14139 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14140
14141 [BZ #22987]
14142 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14143 function.
14144 (fdimf): Likewise.
14145 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14146
14147 [BZ #17343]
14148 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14149 possibly overflowing computations.
14150
14151 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14152
14153 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14154 values from Linux-specific section now that it is in the GNU section.
14155 * sysdeps/gnu/errlist.c: Regenerate.
14156
14157 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14158
14159 * math/Makefile (libm-narrow-fns): Add sub.
14160 (libm-test-funcs-narrow): Likewise.
14161 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14162 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14163 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14164 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14165 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14166 (NARROW_SUB_TRIVIAL): Likewise.
14167 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14168 macro.
14169 (__dsubl): Likewise.
14170 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14171 dsub.
14172 (CFLAGS-nldbl-dsub.c): New variable.
14173 (CFLAGS-nldbl-fsub.c): Likewise.
14174 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14175 __nldbl_dsubl.
14176 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14177 prototype.
14178 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14179 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14180 * math/auto-libm-test-in: Add tests of sub.
14181 * math/auto-libm-test-out-narrow-sub: New generated file.
14182 * math/libm-test-narrow-sub.inc: New file.
14183 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14184 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14185 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14186 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14187 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14188 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14189 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14190 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14191 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14192 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14193 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14194 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14195 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14196 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14197 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14198 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14199 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14200 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14201 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14202 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14203 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14204 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14205 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14206 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14207 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14208 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14209 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14210 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14211 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14212 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14213 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14214 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14215 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14216 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14217 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14218 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14219 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14220 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14221 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14222 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14223 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14224 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14225 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14226 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14227 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14228 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14229
14230 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14231
14232 [BZ #20079]
14233 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14234
14235 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14236
14237 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14238
14239 2018-03-18 Richard Braun <rbraun@sceen.net>
14240
14241 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14242 thread reference.
14243
14244 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14245
14246 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14247 (__libc_cleanup_fct): Define function.
14248 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14249 __libc_cleanup_end): Rewrite implementation using
14250 __attribute__ ((__cleanup__)).
14251 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14252 * hurd/Makefile (routines): Add hurdlock.
14253 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14254 interface.
14255 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14256 * hurd/hurdpid.c: Include <lowlevellock.h>
14257 (_S_msg_proc_newids): Use lll_wait to synchronize.
14258 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14259 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14260 * mach/Makefile (lock-headers): Remove machine-lock.h.
14261 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14262 <machine-lock.h>.
14263 (__spin_lock_t): New type.
14264 (__SPIN_LOCK_INITIALIZER): New macro.
14265 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14266 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14267 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14268 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14269 (__mutex_init): Initialize with lll.
14270 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14271 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14272 needing lll.
14273 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14274 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14275 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14276 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14277 (__setpgid): Use lll for synchronization.
14278 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14279 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14280 instead of <cthreads.h>.
14281 (_IO_lock_inexpensive): New macro
14282 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14283 (__libc_lock_self0): New declaration.
14284 (__libc_lock_owner_self): New macro.
14285 (__libc_key_t): Remove type.
14286 (_LIBC_LOCK_INITIALIZER): New macro.
14287 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14288 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14289 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14290 __libc_lock_define_initialized_recursive,
14291 __rtld_lock_define_initialized_recursive,
14292 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14293 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14294 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14295 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14296 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14297 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14298 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14299 New macros.
14300 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14301 * hurd/hurdlock.c: New file.
14302 * hurd/hurdlock.h: New file.
14303 * mach/lowlevellock.h: New file
14304
14305 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14306
14307 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14308 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14309 when opening a symlink with O_NOFOLLOW.
14310 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14311 path when flags contains O_NOFOLLOW.
14312 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14313 if flags contains O_DIRECTORY and the result is a directory.
14314 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14315 oneself when the pointer given in D is nul (as set by ext2fs).
14316 * sysdeps/mach/hurd/mlockall.c: New file.
14317 * sysdeps/mach/hurd/munlockall.c: New file.
14318
14319 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14320
14321 * hurd/hurdsig.c: Include <pthread.h>.
14322 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14323 get the signal thread stack layout.
14324 * hurd/Makefile (headers): Remove threadvar.h.
14325 (inline-headers): Remove threadvar.h.
14326 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14327 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14328 __hurd_threadvar_max, __hurd_errno_location.
14329 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14330 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14331 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14332 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14333 unless TLS is not initialized yet, in which case we do not need a
14334 critical section yet anyway.
14335 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14336 <machine-sp.h>.
14337 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14338 declarations.
14339 (__hurd_threadvar_index): Remove enum.
14340 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14341 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14342 inlines.
14343 (__hurd_reply_port0): New variable declaration.
14344 (__hurd_local_reply_port): New macro.
14345 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14346 (interrupted_reply_port_location): Add thread_t parameter. Use it
14347 with THREAD_TCB to access thread-local variables.
14348 (_hurdsig_abort_rpcs): Pass ss->thread to
14349 interrupted_reply_port_location.
14350 (_hurd_internal_post_signal): Likewise.
14351 (_hurdsig_init): Use presence of cthread_fork instead of
14352 __hurd_threadvar_stack_mask to start signal thread by hand.
14353 Remove signal thread threadvar initialization.
14354 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14355 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14356 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14357 of threadvar.
14358 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14359 __libc_lock_self0.
14360 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14361 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14362 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14363 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14364 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14365 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14366 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14367 define variables.
14368 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14369 <hurd/threadvar.h>.
14370 [IS_IN(rtld)] (rtld_errno): New variable.
14371 [IS_IN(rtld)] (__errno_location): New weak function.
14372 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14373 * sysdeps/mach/hurd/errno.c: Remove file.
14374 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14375 (__fork): Remove THREADVAR_SPACE macro and its use.
14376 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14377 variable.
14378 (init): Do not initialize threadvar.
14379 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14380 symbol.
14381 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14382 __hurd_local_reply_port instead of threadvar.
14383 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14384 _hurd_sigstate fields.
14385 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14386 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14387 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14388 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14389 instead of threadvar.
14390 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14391 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14392 (use_threadvar, global_reply_port): Remove variables.
14393 (__hurd_reply_port0): New variable.
14394 (__mig_get_reply_port): Use __hurd_local_reply_port and
14395 __hurd_reply_port0 instead of threadvar.
14396 (__mig_dealloc_reply_port): Likewise.
14397 (__mig_init): Do not initialize threadvar.
14398 * sysdeps/mach/hurd/profil.c: Fix comment.
14399 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14400 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14401 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14402 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14403 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14404 __cthread_setspecific.
14405 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14406 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14407 __cthread_t instead of cthread_fork, cthread_detach,
14408 pthread_getattr_np, pthread_attr_getstack.
14409 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14410 __cthread_keycreate.
14411 (cthread_getspecific): Rename to __cthread_getspecific.
14412 (cthread_setspecific): Rename to __cthread_setspecific.
14413 (__libc_getspecific): Use __cthread_getspecific instead of
14414 cthread_getspecific.
14415 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14416 __cthread_keycreate instead of cthread_keycreate.
14417 (__libc_setspecific): Use __cthread_setspecific instead of
14418 cthread_setspecific.
14419 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14420 Likewise.
14421 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14422 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14423 testing whether it is defined.
14424
14425 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14426
14427 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14428 Define macro.
14429 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14430 * sysdeps/mach/i386/thread_state.h
14431 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14432 i386_THREAD_STATE.
14433 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14434 i386_THREAD_STATE.
14435 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14436
14437 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14438 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14439
14440 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14441 macros.
14442 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14443 descriptor instead of creating a new one.
14444 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14445
14446 * mach/setup-thread.c: Include <ldsodefs.h>.
14447 (__mach_setup_thread): Call _dl_allocate_tls, pass
14448 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14449 MACHINE_THREAD_STATE_FLAVOR, before getting
14450 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14451 MACHINE_THREAD_STATE_FLAVOR with the result.
14452 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14453 MACHINE_THREAD_STATE_FIX_NEW.
14454 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14455 too. Add original thread parameter.
14456
14457 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14458
14459 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14460 Remove inline function.
14461
14462 * sysdeps/i386/fpu/libm-test-ulps: Update.
14463 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14464
14465 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14466
14467 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14468 commit.
14469
14470 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14471
14472 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14473 (__sincos_code): Remove define and undefine.
14474 [__FAST_MATH__] (__sincos): Remove inline function.
14475 [__FAST_MATH__] (__sincosf): Remove inline function.
14476 [__FAST_MATH__] (__sincosl): Remove inline function.
14477 (__atan2l): Remove inline functions.
14478 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14479 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14480 function.
14481 (floor): Remove inline function.
14482 (ceil): Likewise.
14483 [__FAST_MATH__] (__ldexp_code): Remove macro.
14484 [__FAST_MATH__] (ldexp): Remove inline function.
14485 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14486 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14487 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14488 [__USE_ISOC99] (__lrint_code): Remove macro.
14489 [__USE_ISOC99] (__llrint_code): Likewise.
14490 [__USE_ISOC99] (lrintf): Remove inline function.
14491 [__USE_ISOC99] (lrint): Likewise.
14492 [__USE_ISOC99] (lrintl): Likewise.
14493 [__USE_ISOC99] (llrint): Likewise.
14494 [__USE_ISOC99] (llrintf): Likewise.
14495 [__USE_ISOC99] (llrintl): Likewise.
14496
14497 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14498
14499 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14500 (__ieee754_sqrtf): Remove.
14501 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14502 (__ieee754_sqrtf): Remove.
14503 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14504 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14505 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14506 (__ieee754_sqrtf): Remove.
14507 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14508 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14509 (sqrtf): Remove.
14510 (sqrtl): Remove.
14511 (__ieee754_sqrt): Remove.
14512 (__ieee754_sqrtf): Remove.
14513 (__ieee754_sqrtl): Remove.
14514 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14515 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14516 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14517 (__ieee754_sqrtf): Remove.
14518 (__ieee754_sqrtl): Remove.
14519
14520 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14521
14522 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14523 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14524 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14525 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14526 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14527 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14528 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14529 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14530 Likewise.
14531 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14532 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14533 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14534 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14535 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14536 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14537 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14538 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14539 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14540 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14541 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14542 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14543 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14544 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14545 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14546 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14547 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14548 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14549 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14550 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14551 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14552 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14553 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14554 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14555 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14556 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14557 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14558 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14559 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14560 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14561 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14562 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14563 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14564 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14565 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14566 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14567 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14568 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14569 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14570 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14571
14572 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14573
14574 * include/math.h (sqrt): Declare with asm redirect.
14575 (sqrtf): Likewise.
14576 (sqrtl): Likewise.
14577 (sqrtf128): Likewise.
14578 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14579 nonlib and libnldbl with -fmath-errno.
14580 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14581 * math/w_sqrt_template.c: Likewise.
14582 * math/w_sqrtf_compat.c: Likewise.
14583 * math/w_sqrtl_compat.c: Likewise.
14584 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14585 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14586 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14587 complex.h.
14588
14589 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14590
14591 * benchtests/Makefile: Define _ISOMAC.
14592 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14593 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14594 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14595 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14596 * benchtests/bench-timing.h: Define attribute_hidden.
14597
14598 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14599
14600 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14601 mov + lsr.
14602
14603 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14604
14605 [BZ #22963]
14606 * localedata/locales/cs_CZ (mon): Rename to...
14607 (alt_mon): This.
14608 (mon): Import from CLDR (genitive case).
14609
14610 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14611
14612 [BZ #22937]
14613 * localedata/locales/el_CY (abmon): Rename to...
14614 (ab_alt_mon): This.
14615 (abmon): Import from CLDR (abbreviated genitive case).
14616 * localedata/locales/el_GR (abmon): Rename to...
14617 (ab_alt_mon): This.
14618 (abmon): Import from CLDR (abbreviated genitive case).
14619
14620 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14621
14622 [BZ #22932]
14623 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14624
14625 2018-03-15 Robert Buj <robert.buj@gmail.com>
14626
14627 [BZ #22848]
14628 * localedata/locales/ca_ES (abmon): Rename to...
14629 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14630 (mon): Rename to...
14631 (alt_mon): This.
14632 (abmon): Import from CLDR (genitive case, month names preceded by
14633 "de" or "d’").
14634 (mon): Likewise.
14635 (abday): Synchronize with CLDR.
14636 (d_t_fmt): Likewise.
14637 (d_fmt): Likewise.
14638 (am_pm): Likewise.
14639
14640 (LC_TIME): Improve indentation.
14641 (LC_TELEPHONE): Likewise.
14642 (LC_NAME): Likewise.
14643 (LC_ADDRESS): Likewise.
14644
14645 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14646
14647 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14648 (lrintf): Remove definitions used only with old GCC.
14649 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14650 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14651 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14652 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14653 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14654 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14655 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14656 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14657 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14658 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14659 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14660 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14661 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14662 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14663 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14664 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14665 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14666 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14667 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14668 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14669 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14670 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14671 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14672 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14673 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14674 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14675 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14676 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14677
14678 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14679
14680 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14681 instruction to unbreak builds with binutils 2.26 and older.
14682
14683 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14684
14685 * sysdeps/aarch64/strncmp.S (count): New macro.
14686 (strncmp): Store misaligned length in SRC1 in COUNT.
14687 (mutual_align): Adjust.
14688 (misaligned8): Load dword at a time when it is safe.
14689
14690 2018-03-12 Zack Weinberg <zackw@panix.com>
14691
14692 [BZ #1190]
14693 [BZ #19476]
14694 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14695 if the _IO_EOF_SEEN bit is already set; update commentary.
14696 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14697 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14698
14699 * support/support_openpty.c, support/tty.h: New files.
14700 * support/Makefile (libsupport-routines): Add support_openpty.
14701
14702 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14703 New test cases.
14704 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14705 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14706
14707 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14708
14709 * po/pt_BR.po: Update translations.
14710
14711 2018-03-12 David Michael <fedora.dm0@gmail.com>
14712
14713 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14714 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14715 get a port to the startup server.
14716
14717 2018-03-11 Zack Weinberg <zackw@panix.com>
14718
14719 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14720 before nldbl-compat.h.
14721
14722 2018-03-10 Zack Weinberg <zackw@panix.com>
14723
14724 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14725 math.h or math_private.h.
14726
14727 * sysdeps/alpha/fpu/s_isnan.c
14728 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14729 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14730 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14731 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14732 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14733 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14734 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14735 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14736 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14737 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14738 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14739 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14740 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14741 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14742 Include math_private.h.
14743
14744 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14745 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14746 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14747 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14748 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14749 * sysdeps/powerpc/power7/fpu/s_logb.c:
14750 Include math.h and math_private.h.
14751
14752 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14753 uses of $at in .set noat / .set at.
14754
14755 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14756
14757 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14758 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14759 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14760 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14761 Likewise.
14762
14763 2018-03-09 Florian Weimer <fweimer@redhat.com>
14764
14765 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14766 in comment.
14767
14768 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14769
14770 [BZ #22919]
14771 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14772 Add nop before __startcontext, add explaining comments.
14773
14774 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14775
14776 [BZ #22926]
14777 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14778 empty for __SPE__.
14779 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14780 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14781 Do not build hardware transactional code for __SPE__.
14782 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14783 (__lll_trylock_elision): Likewise.
14784 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14785 (__lll_unlock_elision): Likewise.
14786
14787 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14788 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14789 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14790 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14791 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14792 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14793 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14794 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14795 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14796 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14797 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14798 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14799 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14800 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14801 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14802 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14803 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14804 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14805 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14806 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14807 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14808 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14809 (__ASSUME_CLONE_BACKWARDS): Define.
14810 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14811 __clone2 if __NR_clone2 is defined.
14812 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14813 (__ASSUME_CLONE_BACKWARDS): Likewise.
14814 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14815 (__ASSUME_CLONE_BACKWARDS): Likewise.
14816 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14817 (__ASSUME_CLONE2): Likewise.
14818 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14819 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14820 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14821 variants and the define architecture can use.
14822 (__ASSUME_CLONE_DEFAULT): Define as default.
14823 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14824 (__ASSUME_CLONE_BACKWARDS): Likewise.
14825 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14826 (__ASSUME_CLONE_BACKWARDS): Likewise.
14827 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14828 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14829
14830 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14831
14832 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14833
14834 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14835 time.
14836
14837 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14838 (do_test_limit): Likewise.
14839
14840 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14841 for every implementation.
14842 (do_test): Likewise.
14843
14844 * benchtests/bench-strncmp.c: Convert output to json.
14845
14846 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14847
14848 * io/futimens.c: Add missing start-of-file descriptive comment.
14849 * io/utime.c: Likewise.
14850 * misc/futimesat.c: Likewise.
14851 * misc/utimes.c: Likewise.
14852 * sysdeps/mach/hurd/futimesat.c: Likewise.
14853 * sysdeps/mach/hurd/utimes.c: Likewise.
14854 * sysdeps/posix/utime.c: Likewise.
14855 * sysdeps/posix/utimes.c: Likewise.
14856 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14857 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14858 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14859 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14860
14861 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14862
14863 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14864 hurd_futimes.
14865 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14866 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14867 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14868 (__futimens): Move implementation to...
14869 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14870 utime_tvalue_from_tspec): ... new helper functions.
14871 (hurd_futimens): New function.
14872 * sysdeps/mach/hurd/futimesat.c: New file.
14873 * sysdeps/mach/hurd/utimensat.c: New file.
14874
14875 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14876
14877 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14878 UTIME_OMIT): New macros.
14879 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14880 before reverting to converting time spec to time value and calling
14881 __file_utimes.
14882 * sysdeps/mach/hurd/utime-helper.c: New file.
14883 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14884 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14885 reverting to utime_tvalue_from_tval and __file_utimes.
14886 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14887 (__lutimes): Just call hurd_futimens after lookup.
14888 * sysdeps/mach/hurd/utimes.c: Likewise.
14889
14890 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14891
14892 * bits/sigaction.h: Add include guard.
14893 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14894 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14895 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14896 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14897 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14898 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14899 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14900 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14901 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14902
14903 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14904
14905 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14906 -Wmaybe-uninitialized for -Os.
14907 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14908 this disabling.
14909
14910 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14911
14912 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14913 __INO_T_MATCHES_INO64_T is defined.
14914 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14915 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14916 of definition.
14917 * dirent/alphasort64.c: Likewise.
14918 * dirent/scandir.c: Likewise.
14919 * dirent/scandir64-tail.c: Likewise.
14920 * dirent/scandir64.c: Likewise.
14921 * dirent/scandirat.c: Likewise.
14922 * dirent/scandirat64.c: Likewise.
14923 * dirent/versionsort.c: Likewise.
14924 * dirent/versionsort64.c: Likewise.
14925 * include/dirent.h: Likewise.
14926
14927 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14928 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14929 for socketpair endpoint.
14930 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14931 WRITE_BUFFER_SIZE as buffer size for sending socket.
14932 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14933 issue on system where send is implemented with sendto syscall.
14934 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14935 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14936 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14937 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14938
14939 [BZ #21269]
14940 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14941 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14942 sa_restorer for vDSO case.
14943 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14944
14945 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14946
14947 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14948 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14949 * hurd/hurd/ioctl.h: Include <mach/port.h>
14950 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14951 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14952 <mach/mach_types.h> and <mach/message.h>.
14953 (headers): Move mach/param.h to bits/mach/param.h.
14954 * sysdeps/mach/i386/mach/param.h: Move file to ...
14955 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14956 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14957 of <mach/param.h>.
14958 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14959 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14960 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14961 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14962 trivial, for C++ conformity.
14963 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14964 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14965 Process mig output through $(migheadersed).
14966 * hurd/Makefile (migheadersed): Define variable.
14967 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14968 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14969 headers.
14970 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14971 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14972 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14973 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14974 <bits/types/sigset_t.h>.
14975 [!defined __USE_GNU]: Do not #error out.
14976 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14977 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14978 Include <stddef.h> and <bits/types/sigset_t.h>
14979 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14980 instead of sighandler_t.
14981 * stdlib/errno.h (error_t): Move definition to...
14982 * bits/types/error_t.h: ... new header.
14983 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14984 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14985 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14986 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14987 * hurd/hurd.h: Include <bits/types/error_t.h>
14988 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14989 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14990 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14991 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14992 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14993 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14994 * sysdeps/mach/hurd/futimens.c: New file.
14995
14996 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14997
14998 [BZ #22918]
14999 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
15000 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
15001 * nscd/gai.c (__nss_hosts_database): Readd definition.
15002 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
15003 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
15004 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
15005
15006 2018-03-02 Joseph Myers <joseph@codesourcery.com>
15007
15008 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
15009 (ifunc_one): Likewise.
15010
15011 2018-03-01 DJ Delorie <dj@delorie.com>
15012
15013 [BZ #22342]
15014 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
15015 key value.
15016
15017 2018-03-01 Maciej W. Rozycki <macro@mips.com>
15018
15019 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
15020 `match_pid' parameter.
15021 (td_ta_thr_iter): Update accordingly.
15022
15023 2018-03-01 Florian Weimer <fweimer@redhat.com>
15024
15025 * nptl/Makefile (install-lib-ldscripts): Remove.
15026 (install): Remove rule.
15027 ($(inst_libdir)/libpthread.so): Likewise.
15028
15029 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15030
15031 [BZ #22896]
15032 * localedata/locales/an_ES: update month and day names,
15033 improve d_fmt, improve postal_fmt, add country_post,
15034 add country_isbn
15035
15036 2018-03-01 Mike FABIAN <mfabian@redhat.com>
15037
15038 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15039 Ukrainian instead of Bulgarian.
15040
15041 2018-03-01 Florian Weimer <fweimer@redhat.com>
15042
15043 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15044 reference.
15045
15046 2018-03-01 Florian Weimer <fweimer@redhat.com>
15047
15048 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15049 * nptl/Makefile (routines): Add pthread_atfork.
15050 (static-only-routines): Set to pthread_atfork.
15051 (libpthread-routines): Remove pthread_atfork.
15052 (libpthread-static-only-routines): Remove.
15053 (install): Update comment.
15054 (libpthread.so): Do not install libpthread_nonshared.a.
15055 (tests): Do not link with libpthread_nonshared.a.
15056 (generated): Remove libpthread_nonshared.a.
15057 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15058 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15059 with libpthread_nonshared.a.
15060
15061 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15062
15063 [BZ #22902]
15064 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15065 (libc_feholdexcept_setroundf128): New macro.
15066 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15067
15068 [BZ #15105]
15069 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15070 libc_hidden_def.
15071 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15072 * include/inttypes.h: New file.
15073
15074 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15075
15076 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15077 -Os in two more places.
15078
15079 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15080
15081 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15082 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15083 be sorted correctly at the moment because of a bug.
15084
15085 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15086
15087 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15088 treat ñ as a primary different character, sync the collation
15089 for Spanish with CLDR.
15090 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15091 * localedata/Makefile: Add new test files.
15092 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15093 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15094 collation order.
15095 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15096 * localedata/am_ET.UTF-8.in: New test file.
15097 * localedata/az_AZ.UTF-8.in: Likewise.
15098 * localedata/be_BY.UTF-8.in: Likewise.
15099 * localedata/ber_DZ.UTF-8.in: Likewise.
15100 * localedata/ber_MA.UTF-8.in: Likewise.
15101 * localedata/bg_BG.UTF-8.in: Likewise.
15102 * localedata/br_FR.UTF-8.in: Likewise.
15103 * localedata/cmn_TW.UTF-8.in: Likewise.
15104 * localedata/crh_UA.UTF-8.in: Likewise.
15105 * localedata/csb_PL.UTF-8.in: Likewise.
15106 * localedata/cv_RU.UTF-8.in: Likewise.
15107 * localedata/cy_GB.UTF-8.in: Likewise.
15108 * localedata/dz_BT.UTF-8.in: Likewise.
15109 * localedata/eo.UTF-8.in: Likewise.
15110 * localedata/es_ES.UTF-8.in: Likewise.
15111 * localedata/fa_IR.UTF-8.in: Likewise.
15112 * localedata/fi_FI.UTF-8.in: Likewise.
15113 * localedata/fil_PH.UTF-8.in: Likewise.
15114 * localedata/fur_IT.UTF-8.in: Likewise.
15115 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15116 * localedata/ha_NG.UTF-8.in: Likewise.
15117 * localedata/ig_NG.UTF-8.in: Likewise.
15118 * localedata/ik_CA.UTF-8.in: Likewise.
15119 * localedata/kk_KZ.UTF-8.in: Likewise.
15120 * localedata/ku_TR.UTF-8.in: Likewise.
15121 * localedata/ky_KG.UTF-8.in: Likewise.
15122 * localedata/ln_CD.UTF-8.in: Likewise.
15123 * localedata/mi_NZ.UTF-8.in: Likewise.
15124 * localedata/ml_IN.UTF-8.in: Likewise.
15125 * localedata/mn_MN.UTF-8.in: Likewise.
15126 * localedata/mr_IN.UTF-8.in: Likewise.
15127 * localedata/mt_MT.UTF-8.in: Likewise.
15128 * localedata/nb_NO.UTF-8.in: Likewise.
15129 * localedata/om_KE.UTF-8.in: Likewise.
15130 * localedata/os_RU.UTF-8.in: Likewise.
15131 * localedata/ps_AF.UTF-8.in: Likewise.
15132 * localedata/ro_RO.UTF-8.in: Likewise.
15133 * localedata/ru_RU.UTF-8.in: Likewise.
15134 * localedata/sc_IT.UTF-8.in: Likewise.
15135 * localedata/se_NO.UTF-8.in: Likewise.
15136 * localedata/sq_AL.UTF-8.in: Likewise.
15137 * localedata/sv_SE.UTF-8.in: Likewise.
15138 * localedata/szl_PL.UTF-8.in: Likewise.
15139 * localedata/tg_TJ.UTF-8.in: Likewise.
15140 * localedata/tk_TM.UTF-8.in: Likewise.
15141 * localedata/tt_RU.UTF-8.in: Likewise.
15142 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15143 * localedata/ug_CN.UTF-8.in: Likewise.
15144 * localedata/uz_UZ.UTF-8.in: Likewise.
15145 * localedata/vi_VN.UTF-8.in: Likewise.
15146 * localedata/yi_US.UTF-8.in: Likewise.
15147 * localedata/yo_NG.UTF-8.in: Likewise.
15148 * localedata/zh_CN.UTF-8.in: Likewise.
15149 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15150 file and fix bugs in the collation.
15151 * localedata/locales/az_AZ: Likewise.
15152 * localedata/locales/be_BY: Likewise.
15153 * localedata/locales/ber_DZ: Likewise.
15154 * localedata/locales/ber_MA: Likewise.
15155 * localedata/locales/bg_BG: Likewise.
15156 * localedata/locales/br_FR: Likewise.
15157 * localedata/locales/br_FR@euro: Likewise.
15158 * localedata/locales/ca_ES: Likewise.
15159 * localedata/locales/cns11643_stroke: Likewise.
15160 * localedata/locales/crh_UA: Likewise.
15161 * localedata/locales/cs_CZ: Likewise.
15162 * localedata/locales/csb_PL: Likewise.
15163 * localedata/locales/cv_RU: Likewise.
15164 * localedata/locales/cy_GB: Likewise.
15165 * localedata/locales/da_DK: Likewise.
15166 * localedata/locales/dz_BT: Likewise.
15167 * localedata/locales/en_CA: Likewise.
15168 * localedata/locales/eo: Likewise.
15169 * localedata/locales/es_CU: Likewise.
15170 * localedata/locales/es_EC: Likewise.
15171 * localedata/locales/es_ES: Likewise.
15172 * localedata/locales/es_US: Likewise.
15173 * localedata/locales/et_EE: Likewise.
15174 * localedata/locales/fa_IR: Likewise.
15175 * localedata/locales/fi_FI: Likewise.
15176 * localedata/locales/fil_PH: Likewise.
15177 * localedata/locales/fur_IT: Likewise.
15178 * localedata/locales/gez_ER@abegede: Likewise.
15179 * localedata/locales/ha_NG: Likewise.
15180 * localedata/locales/hr_HR: Likewise.
15181 * localedata/locales/hsb_DE: Likewise.
15182 * localedata/locales/hu_HU: Likewise.
15183 * localedata/locales/ig_NG: Likewise.
15184 * localedata/locales/ik_CA: Likewise.
15185 * localedata/locales/is_IS: Likewise.
15186 * localedata/locales/iso14651_t1_pinyin: Likewise.
15187 * localedata/locales/kk_KZ: Likewise.
15188 * localedata/locales/ku_TR: Likewise.
15189 * localedata/locales/ky_KG: Likewise.
15190 * localedata/locales/ln_CD: Likewise.
15191 * localedata/locales/lt_LT: Likewise.
15192 * localedata/locales/lv_LV: Likewise.
15193 * localedata/locales/mi_NZ: Likewise.
15194 * localedata/locales/ml_IN: Likewise.
15195 * localedata/locales/mn_MN: Likewise.
15196 * localedata/locales/mr_IN: Likewise.
15197 * localedata/locales/mt_MT: Likewise.
15198 * localedata/locales/nb_NO: Likewise.
15199 * localedata/locales/om_KE: Likewise.
15200 * localedata/locales/os_RU: Likewise.
15201 * localedata/locales/pl_PL: Likewise.
15202 * localedata/locales/ps_AF: Likewise.
15203 * localedata/locales/ro_RO: Likewise.
15204 * localedata/locales/ru_RU: Likewise.
15205 * localedata/locales/ru_UA: Likewise.
15206 * localedata/locales/sc_IT: Likewise.
15207 * localedata/locales/se_NO: Likewise.
15208 * localedata/locales/si_LK: Likewise.
15209 * localedata/locales/sq_AL: Likewise.
15210 * localedata/locales/sv_FI: Likewise.
15211 * localedata/locales/sv_FI@euro: Likewise.
15212 * localedata/locales/sv_SE: Likewise.
15213 * localedata/locales/szl_PL: Likewise.
15214 * localedata/locales/tg_TJ: Likewise.
15215 * localedata/locales/ti_ER: Likewise.
15216 * localedata/locales/tk_TM: Likewise.
15217 * localedata/locales/tl_PH: Likewise.
15218 * localedata/locales/tr_TR: Likewise.
15219 * localedata/locales/tt_RU: Likewise.
15220 * localedata/locales/tt_RU@iqtelif: Likewise.
15221 * localedata/locales/ug_CN: Likewise.
15222 * localedata/locales/uk_UA: Likewise.
15223 * localedata/locales/uz_UZ: Likewise.
15224 * localedata/locales/uz_UZ@cyrillic: Likewise.
15225 * localedata/locales/vi_VN: Likewise.
15226 * localedata/locales/yi_US: Likewise.
15227 * localedata/locales/yo_NG: Likewise.
15228
15229 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15230
15231 * gen-locales.mk: Make test files which contain @ modifiers in their
15232 name work.
15233 * localedata/gen-locale.sh: Likewise.
15234
15235 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15236
15237 * posix/tst-fnmatch.input: Fix results for range expressions
15238 for non C locales.
15239 * posix/tst-regexloc.c: Do not use a range expression for
15240 de_DE.ISO-8859-1 locale.
15241
15242 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15243
15244 * posix/bug-regex5.c: Fix test case because with the new
15245 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15246 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15247 file.
15248
15249 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15250
15251 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15252 downloaded from ISO, the collation order of @-. and space has changed.
15253 Therefore, this test file needed to be adapted.
15254 * localedata/fr_CA.UTF-8.in: Likewise.
15255 * localedata/fr_FR.UTF-8.in: Likewise.
15256 * localedata/uk_UA.UTF-8.in: Likewise.
15257
15258 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15259
15260 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15261 order of ȥ in the new iso14651_t1_common file.
15262 * localedata/pl_PL.UTF-8.in: Likewise.
15263
15264 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15265
15266 * localedata/locales/iso14651_t1_common: Add sections for various
15267 scripts to the iso14651_t1_common file.
15268
15269 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15270
15271 * localedata/locales/iso14651_t1_common: Use the code point of a
15272 character in the fourth collation level instead of IGNORE for all
15273 entries which have IGNORE on all 4 levels.
15274
15275 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15276
15277 * localedata/locales/iso14651_t1_common: Add some convenient collation
15278 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15279 rules similar to those in CLDR.
15280
15281 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15282
15283 * localedata/locales/iso14651_t1_common: The new version of this
15284 file downloaded from ISO contained several syntax errors which
15285 are fixed by this patch.
15286
15287 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15288
15289 * localedata/locales/iso14651_t1_common: replace all <U.....>
15290 with <U000.....> because glibc understands only 4 digit or 8 digit
15291
15292 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15293
15294 * localedata/locales/iso14651_t1_common: Necessary changes
15295 to make the file downloaded from ISO usable by glibc.
15296
15297 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15298
15299 [BZ #14095]
15300 * localedata/locales/iso14651_t1_common: Update file to
15301 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15302
15303 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15304
15305 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15306 of <nptl/pthreadP.h>
15307 (thread_attr_compare): Move function to...
15308 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15309 * sysdeps/nptl/timer_routines.h: ... new header.
15310 * sysdeps/mach/hurd/gai_misc.h: New file.
15311
15312 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15313
15314 * string/strcoll_l.c: Include <libc-diag.h>.
15315 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15316 declarations of seq1 and seq2.
15317
15318 [BZ #15105]
15319 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15320 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15321
15322 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15323
15324 [BZ #22433]
15325 [BZ #22807]
15326 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15327 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15328 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15329 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15330 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15331 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15332
15333 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15334
15335 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15336 macros used in __ptrace_request.
15337
15338 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15339
15340 [BZ #22792]
15341 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15342 to $(CC).
15343 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15344 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15345 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15346 <tcb-offsets.h>.
15347
15348 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15349
15350 [BZ #15105]
15351 * ctype/ctype.c (tolower): Use libc_hidden_def.
15352 (toupper): Likewise.
15353 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15354 [!_ISOMAC] (toupper): Likewise.
15355
15356 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15357
15358 * localedata/Makefile: Remove --quiet argument when
15359 installing locales
15360
15361 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15362
15363 [BZ #17438]
15364 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15365 in d_fmt.
15366 * localedata/locales/pt_PT (LC_TIME): likewise
15367
15368 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15369
15370 [BZ #22646]
15371 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15372 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15373 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15374
15375 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15376
15377 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15378
15379 * nptl/Makefile (routines): Remove unregister-atfork.
15380 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15381 (fork_handler_alloc): Remove function.
15382 (fork_handlers, fork_handler_init): New variables.
15383 (__fork_lock): Rename to atfork_lock.
15384 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15385 to use a dynamic array to add/remove atfork handlers.
15386 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15387 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15388 Remove declaration.
15389 (fork_handler): Remove next, refcntr, and need_signal member.
15390 (__run_fork_handler_type): New enum.
15391 (__run_fork_handlers): New prototype.
15392 * nptl/register-atfork.c: Remove file.
15393 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15394
15395 * sysdeps/nptl/nptl-signals.h: Move to ...
15396 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15397 comments.
15398 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15399 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15400 unnecessary check for SIGTIMER.
15401 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15402 remove unnecessary removal of SIGTIMER.
15403 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15404 include-signals.h rename.
15405 * nptl/pthreadP.h: Likewise.
15406 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15407 __is_internal_signal instead of __nptl_is_internal_signal.
15408
15409 2018-02-22 Andrew Waterman <andrew@sifive.com>
15410
15411 [BZ # 22884]
15412 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15413 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15414 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15415 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15416
15417 2018-02-22 DJ Delorie <dj@delorie.com>
15418
15419 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15420
15421 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15422
15423 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15424 do_misaligned, not misaligned8.
15425
15426 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15427
15428 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15429 Add memcpy_thunderx2.
15430 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15431 Increment to 4.
15432 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15433 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15434 and IS_THUNDERX2PA checks.
15435 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15436 Use macro to set name appropriately.
15437 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15438 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15439 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15440 New macro.
15441 (IS_THUNDERX2): New macro.
15442
15443 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15444
15445 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15446
15447 2018-02-21 Zack Weinberg <zackw@panix.com>
15448
15449 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15450 Define here, unconditionally.
15451 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15452 * libio/libioP.h: Remove #if 0 blocks.
15453 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15454 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15455 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15456
15457 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15458 Assume weak_alias is always defined.
15459
15460 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15461 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15462 Remove #if 0 and #ifdef TODO blocks.
15463 Assume text_set_element is always defined.
15464
15465 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15466 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15467 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15468
15469 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15470 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15471 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15472 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15473 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15474 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15475 Reformat bit flags for _flags field to make occupancy clearer.
15476 Update commentary.
15477 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15478 Keep definitions consistent with those in libio/libio.h.
15479
15480 * libio/libio.h (_IO_file_flags): Remove macro.
15481 All uses changed to _flags.
15482
15483 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15484 (__HAVE_COLUMN, _IO_BE): Don't define.
15485 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15486 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15487 * libio/libioP.h (EOF): Don't define.
15488 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15489 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15490 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15491 testing _IO_UNIFIED_JUMPTABLES.
15492
15493 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15494 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15495 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15496 (_IO_size_t): Delete; all uses changed to size_t.
15497 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15498 (_IO_off_t): Delete; all uses changed to off_t.
15499 (_IO_off64_t): Delete; all uses changed to off64_t.
15500 (_IO_pid_t): Delete; all uses changed to pid_t.
15501 (_IO_uid_t): Delete; all uses changed to uid_t.
15502 (_IO_wint_t): Delete; all uses changed to wint_t.
15503 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15504 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15505 (_IO_cookie_io_functions_t): Delete; all uses changed to
15506 cookie_io_functions_t.
15507 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15508 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15509 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15510 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15511
15512 * libio/iofopncook.c: Remove unnecessary forward declarations.
15513 * libio/iolibio.h: Correct outdated commentary.
15514 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15515 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15516 Remove unnecessary casts.
15517 * stdio-common/getline.c: Use _IO_getdelim directly.
15518 Don't redefine ssize_t.
15519 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15520 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15521 Remove outdated comments.
15522 * stdio-common/vfscanf.c: Don't redefine va_list.
15523
15524 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15525 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15526 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15527 which are always true, and __cplusplus, which is always false.
15528
15529 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15530
15531 [BZ #15105]
15532 [BZ #19463]
15533 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15534 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15535 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15536 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15537 libc_hidden_proto.
15538 [!_ISOMAC] (putc_unlocked): Likewise.
15539 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15540 define inline if [__USE_EXTERN_INLINES].
15541 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15542 putc_unlocked.
15543
15544 [BZ #15105]
15545 [BZ #19463]
15546 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15547 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15548 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15549 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15550 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15551 getc_unlocked.
15552 * time/tzfile.c (__tzfile_read): Likewise.
15553
15554 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15555
15556 [BZ #22517]
15557 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15558
15559 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15560
15561 * io/fcntl.h: Fix a typo in a comment.
15562
15563 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15564
15565 [BZ #22862]
15566 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15567 define _DEFAULT_SOURCE.
15568 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15569
15570 2018-02-21 Florian Weimer <fweimer@redhat.com>
15571
15572 [BZ #20890]
15573 * elf/cache.c (save_cache): Call fsync on temporary file before
15574 renaming it.
15575 (save_aux_cache): Call fdatasync on temporary file before renaming
15576 it.
15577
15578 2018-02-21 Florian Weimer <fweimer@redhat.com>
15579
15580 [BZ #22787]
15581 * include/caller.h: Remove file.
15582 * elf/dl-caller.c: Likewise.
15583 * elf/Makefile (dl-routines): Remove dl-caller.
15584 (shared-only-routines): Do not add dl-caller.
15585 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15586 __check_caller.
15587 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15588 member.
15589 (dl_open_worker): Do not call __check_caller.
15590 (_dl_open): Do not set caller_dl_open member.
15591 * elf/rtld.c (_rtld_global_ro): Do not initialize
15592 _dl_check_caller member.
15593 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15594 _dl_check_caller member.
15595 (_dl_check_caller): Remove declaration.
15596 * sysdeps/unix/sysv/linux/dl-execstack.c
15597 (_dl_make_stack_executable): Do not call __check_caller.
15598
15599 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15600
15601 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15602 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15603
15604 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15605
15606 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15607 description.
15608
15609 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15610
15611 [BZ #16335]
15612 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15613 of 199606L, 200112L, and 200809L.
15614 (_XOPEN_SOURCE): Document special values of 600 and 700.
15615 (_ISOC11_SOURCE): Document macro.
15616 (_ATFILE_SOURCE): Likewise.
15617 (_FORTIFY_SOURCE): Likewise.
15618
15619 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15620
15621 [BZ #15105]
15622 [BZ #19463]
15623 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15624 and define as weak alias of __ferror_unlocked. Use
15625 libc_hidden_weak.
15626 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15627 libc_hidden_proto.
15628 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15629 function if [__USE_EXTERN_INLINES].
15630 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15631 ferror_unlocked.
15632
15633 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15634
15635 [BZ #6889]
15636 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15637
15638 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15639
15640 [BZ #22818]
15641 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15642 the GLIBC_2.1 version.
15643
15644 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15645
15646 [BZ #21508]
15647 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15648 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15649 intl/tst-gettext-de.po from po/de.po by removing the
15650 POT-Creation-Date line.
15651 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15652 ../po/de.po.
15653 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15654 ../po/de.po.
15655
15656 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15657
15658 * mach/Makefile (headers): Add mach/param.h.
15659 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15660 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15661 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15662 (__ptsname_r): Move implementation to...
15663 (__ptsname_internal): ... new function. Add filling the STP
15664 structure.
15665
15666 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15667
15668 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15669 idouble to 1 ULP.
15670
15671 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15672
15673 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15674 syntax.
15675
15676 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15677
15678 * nptl/Makefile (tst-mutex8-ENV): Delete.
15679 * nptl/tst-mutex8.c (check_type):
15680 Add runtime check if mutex will be elided.
15681
15682 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15683
15684 [BZ #20980]
15685 [BZ #21234]
15686 * manual/install.texi (Configuring and compiling): Describe
15687 passing CC and CFLAGS on configure command line, not as
15688 environment variables. Use @code markup on those variables.
15689 Specify what options go in CC and what go in CFLAGS. Note the
15690 requirement to compile with optimization.
15691 * INSTALL: Regenerated.
15692
15693 [BZ #18124]
15694 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15695 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15696 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15697 __sigprocmask instead of sigprocmask.
15698 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15699 Likewise.
15700 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15701 __sigsetjmp and sigprocmask.
15702
15703 [BZ #15105]
15704 * include/argz.h (argz_next): Use libc_hidden_proto.
15705 (__argz_next): Likewise.
15706 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15707 (argz_next): Use libc_hidden_weak.
15708
15709 [BZ #15105]
15710 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15711 libc_hidden_proto.
15712 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15713 libc_hidden_def.
15714
15715 [BZ #15105]
15716 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15717 libc_hidden_proto.
15718 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15719
15720 [BZ #15105]
15721 [BZ #19463]
15722 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15723 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15724 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15725 (__feof_unlocked): New declaration, and inline function if
15726 [__USE_EXTERN_INLINES].
15727 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15728 instead of feof_unlocked.
15729 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15730 * nss/nsswitch.c (nss_parse_file): Likewise.
15731 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15732 Likewise.
15733 * time/getdate.c (__getdate_r): Likewise.
15734 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15735 Define as macro to call __feof_unlocked.
15736
15737 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15738
15739 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15740
15741 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15742
15743 * math/Makefile: Remove mpexp.c and mplog.c
15744 * sysdeps/i386/fpu/mpexp.c: Delete file.
15745 * sysdeps/i386/fpu/mplog.c: Likewise.
15746 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15747 * sysdeps/ia64/fpu/mplog.c: Likewise.
15748 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15749 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15750 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15751 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15752 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15753 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15754 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15755 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15756 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15757 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15758 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15759 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15760 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15761 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15762 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15763 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15764
15765 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15766
15767 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15768
15769 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15770
15771 * sysdeps/sh/libm-test-ulps: Update.
15772
15773 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15774
15775 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15776 idouble to 1 ULP.
15777
15778 2018-02-12 Zack Weinberg <zackw@panix.com>
15779
15780 [BZ #19239]
15781 * posix/sys/types.h: Don't include sys/sysmacros.h.
15782 * misc/sys/sysmacros.h: Remove the conditional deprecation
15783 warnings for the macros defined by this header.
15784
15785 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15786
15787 * manual/probes.texi: Remove slowexp probes.
15788 * math/Makefile: Remove slowexp.
15789 * sysdeps/generic/math_private.h (__slowexp): Remove.
15790 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15791 document error bounds.
15792 * sysdeps/i386/fpu/slowexp.c: Remove.
15793 * sysdeps/ia64/fpu/slowexp.c: Remove.
15794 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15795 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15796 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15797 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15798 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15799 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15800 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15801 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15802 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15803 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15804 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15805
15806 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15807
15808 [BZ #13932]
15809 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15810 * benchtests/pow-inputs: Update comment for slow path cases.
15811 * manual/probes.texi (slowpow_p10): Delete removed probe.
15812 (slowpow_p10): Likewise.
15813 * math/Makefile: Remove halfulp.c and slowpow.c.
15814 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15815 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15816 (__halfulp): Remove.
15817 (__slowpow): Remove.
15818 * sysdeps/i386/fpu/halfulp.c: Delete file.
15819 * sysdeps/i386/fpu/slowpow.c: Likewise.
15820 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15821 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15822 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15823 improve comments and add error analysis.
15824 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15825 (power1): Remove function:
15826 (log1): Remove error argument, add error analysis.
15827 (my_log2): Remove function.
15828 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15829 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15830 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15831 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15832 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15833 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15834 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15835 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15836 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15837 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15838 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15839 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15840 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15841 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15842
15843 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15844
15845 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15846 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15847
15848 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15849
15850 [BZ #22433]
15851 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15852 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15853 and PTRACE_SETHBPREGS.
15854
15855 2018-02-10 Zack Weinberg <zackw@panix.com>
15856
15857 [BZ #22830]
15858 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15859 correctly.
15860 * malloc/tst-malloc-stats-cancellation.c: New test case.
15861 * malloc/Makefile: Add new test case.
15862
15863 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15864
15865 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15866
15867 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15868
15869 * math/Makefile (libm-narrow-fns): Add add.
15870 (libm-test-funcs-narrow): Likewise.
15871 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15872 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15873 * math/gen-auto-libm-tests.c (test_functions): Add add.
15874 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15875 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15876 (NARROW_ADD_TRIVIAL): Likewise.
15877 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15878 macro.
15879 (__daddl): Likewise.
15880 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15881 dadd.
15882 (CFLAGS-nldbl-dadd.c): New variable.
15883 (CFLAGS-nldbl-fadd.c): Likewise.
15884 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15885 __nldbl_daddl.
15886 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15887 prototype.
15888 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15889 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15890 * math/auto-libm-test-in: Add tests of add.
15891 * math/auto-libm-test-out-narrow-add: New generated file.
15892 * math/libm-test-narrow-add.inc: New file.
15893 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15894 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15895 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15896 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15897 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15898 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15899 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15900 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15901 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15902 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15903 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15904 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15905 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15906 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15907 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15908 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15909 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15910 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15911 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15912 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15913 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15914 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15915 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15916 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15917 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15918 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15919 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15920 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15921 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15922 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15923 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15924 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15925 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15926 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15927 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15928 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15929 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15930 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15931 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15932 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15933 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15934 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15935 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15936 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15937 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15938 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15939
15940 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15941 (f128-pairs): New variable.
15942 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15943 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15944 to CFLAGS.
15945 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15946 Also make tests add $(f128-loader-link) to gnulib-tests.
15947
15948 2018-02-09 DJ Delorie <dj@redhat.com>
15949
15950 [BZ #22827]
15951 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15952 64-bit ELF type for 64-bit ELF objects.
15953
15954 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15955
15956 * math/libm-test-driver.c (snan_tests_arg): New variable.
15957 * math/libm-test-support.h (snan_tests_arg): New declaration.
15958 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15959
15960 * math/Makefile (test-type-pairs): New variable.
15961 (test-type-pairs-f64xf128-yes): Likewise.
15962 (tests): Add test-narrow-macros.
15963 (libm-test-funcs-narrow): New variable.
15964 (libm-test-c-narrow): Likewise.
15965 (generated): Add $(libm-test-c-narrow).
15966 (libm-tests-base-narrow): New variable.
15967 (libm-tests-narrow): Likewise.
15968 (libm-tests): Add $(libm-tests-narrow).
15969 (libm-tests-for-type): Handle $(libm-tests-narrow).
15970 (libm-test-c-narrow-obj): New variable.
15971 ($(libm-test-c-narrow-obj)): New rule.
15972 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15973 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15974 $(o-iterator) to set dependencies and CFLAGS.
15975 * math/gen-auto-libm-tests.c: Document use for narrowing
15976 functions.
15977 (output_for_one_input_case): Take argument NARROW.
15978 (generate_output): Likewise. Update call to
15979 output_for_one_input_case.
15980 (main): Take --narrow option. Update call to generate_output.
15981 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15982 (apply_lit): Update call to _apply_lit.
15983 (apply_arglit): New function.
15984 (parse_args): Handle "a" arguments.
15985 (parse_auto_input): Handle format names using ":".
15986 * math/README.libm-test: Document "a" parameter type.
15987 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15988 (ARG_TYPE_TRUE_MIN): Likewise.
15989 (ARG_TYPE_MAX): Likwise.
15990 (ARG_MIN_EXP): Likewise.
15991 (ARG_MAX_EXP): Likewise.
15992 (ARG_MANT_DIG): Likewise.
15993 (TEST_COND_arg_ibm128): Likewise.
15994 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15995 (TEST_COND_arg_fmt): New macro.
15996 (init_max_error): Update prototype.
15997 * math/libm-test-support.c (test_ibm128): New variable.
15998 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15999 instead of using [TEST_COND_ibm128] conditional.
16000 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
16001 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
16002 [TEST_NARROW] (TEST_MSG): New definition.
16003 (arg_plus_zero): New macro.
16004 (arg_minus_zero): Likewise.
16005 (arg_plus_infty): Likewise.
16006 (arg_minus_infty): Likewise.
16007 (arg_qnan_value_pl): Likewise.
16008 (arg_qnan_value): Likewise.
16009 (arg_snan_value_pl): Likewise.
16010 (arg_snan_value): Likewise.
16011 (arg_max_value): Likewise.
16012 (arg_min_value): Likewise.
16013 (arg_min_subnorm_value): Likewise.
16014 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
16015 (RUN_TEST_LOOP_aa_f): New macro.
16016 (TEST_SUFF): New macro.
16017 (TEST_SUFF_STR): Likewise.
16018 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
16019 (TEST_COND_any_ibm128): New macro.
16020 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
16021 this_func. Update call to init_max_error.
16022 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
16023 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
16024 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
16025 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
16026 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
16027 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
16028 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
16029 * math/test-math-scalar.h (TEST_NARROW): Likewise.
16030 * math/test-math-vector.h (TEST_NARROW): Likewise.
16031 * math/test-arg-double.h: New file.
16032 * math/test-arg-float128.h: Likewise.
16033 * math/test-arg-float32x.h: Likewise.
16034 * math/test-arg-float64.h: Likewise.
16035 * math/test-arg-float64x.h: Likewise.
16036 * math/test-arg-ldouble.h: Likewise.
16037 * math/test-math-narrow.h: Likewise.
16038 * math/test-narrow-macros.c: Likewise.
16039 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16040 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16041 test-narrow-macros-ldbl-64.
16042 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16043
16044 * math/bits/mathcalls-narrow.h: New file.
16045 * include/bits/mathcalls-narrow.h: Likewise.
16046 * math/math-narrow.h: Likewise.
16047 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16048 (__MATHCALL_NARROW_ARGS_2): Likewise.
16049 (__MATHCALL_NARROW_ARGS_3): Likewise.
16050 (__MATHCALL_NARROW_NORMAL): Likewise.
16051 (__MATHCALL_NARROW_REDIR): Likewise.
16052 (__MATHCALL_NARROW): Likewise.
16053 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16054 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16055 defined.
16056 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16057 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16058 (libm-narrow-fns): New variable.
16059 (libm-narrow-types-basic): Likewise.
16060 (libm-narrow-types-ldouble-yes): Likewise.
16061 (libm-narrow-types-float128-yes): Likewise.
16062 (libm-narrow-types-float128-alias-yes): Likewise.
16063 (libm-narrow-types): Likewise.
16064 (libm-routines): Add narrowing functions.
16065 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16066 (libc_feholdexcept_setroundf128): New macro.
16067 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16068 * sysdeps/ieee754/float128/float128_private.h: Include
16069 <math/math-narrow.h>.
16070 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16071 Undefine and redefine.
16072 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16073 (libm_alias_float_ldouble): Undefine and redefine.
16074 (libm_alias_double_ldouble): Likewise.
16075
16076 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16077
16078 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16079
16080 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16081 FPCR/FPSR.
16082
16083 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16084
16085 * manual/creature.texi: Convert references to gcc.info to gcc.
16086 * manual/stdio.texi: Likewise.
16087 * manual/string.texi: Likewise.
16088
16089 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16090
16091 [BZ #17979]
16092 * posix/bits/types.h (__int_least8_t): New typedef.
16093 (__uint_least8_t): Likewise.
16094 (__int_least16_t): Likewise.
16095 (__uint_least16_t): Likewise.
16096 (__int_least32_t): Likewise.
16097 (__uint_least32_t): Likewise.
16098 (__int_least64_t): Likewise.
16099 (__uint_least64_t): Likewise.
16100 * sysdeps/generic/stdint.h (int_least8_t): Define using
16101 __int_least8_t.
16102 (int_least16_t): Define using __int_least16_t.
16103 (int_least32_t): Define using __int_least32_t.
16104 (int_least64_t): Define using __int_least64_t.
16105 (uint_least8_t): Define using __uint_least8_t.
16106 (uint_least16_t): Define using __uint_least16_t.
16107 (uint_least32_t): Define using __uint_least32_t.
16108 (uint_least64_t): Define using __uint_least64_t.
16109 * wcsmbs/uchar.h: Include <bits/types.h>.
16110 (char16_t): Define using __uint_least16_t conditional only on
16111 [!__USE_ISOCXX11].
16112 (char32_t): Define using __uint_least32_t conditional only on
16113 [!__USE_ISOCXX11].
16114 * wcsmbs/test-char-types.c: New file.
16115 * wcsmbs/Makefile (tests): Add test-char-types.
16116
16117 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16118 version to 4.0.1.
16119
16120 2018-02-07 Zack Weinberg <zackw@panix.com>
16121
16122 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16123 Delete all contents except for definitions of _G_HAVE_MMAP and
16124 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16125 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16126 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16127 change as above.
16128
16129 * libio/libio.h: Don't include bits/_G_config.h here.
16130 Include stddef.h with __need_wchar_t defined. Include
16131 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16132 Define _IO_iconv_t here, directly.
16133 Don't define _IO_HAVE_ST_BLKSIZE.
16134 * libio/libioP.h: Include _G_config.h here. Move include of
16135 shlib-compat.h up with rest of includes. Simplify conditionals
16136 controlling definition of _IO_JUMPS_OFFSET.
16137
16138 * csu/init.c: Remove always-true #if around entire file.
16139 Don't include stdio.h. Set _IO_stdin_used to hardwired
16140 constant 0x20001, and update commentary.
16141 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16142 Replace all uses of _G_va_list with __gnuc_va_list.
16143 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16144 instead of #if _IO_HAVE_ST_BLKSIZE.
16145 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16146 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16147 not #ifdef.
16148
16149 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16150 multiple-include guard to match.
16151 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16152 into this file.
16153 Remove preprocessor conditionals that are always true and/or
16154 redundant to other preprocessor conditionals in the same nest.
16155 Include shlib-compat.h unconditionally.
16156 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16157 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16158 defined after including stdio.h.
16159 Use __BEGIN_DECLS/__END_DECLS.
16160
16161 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16162 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16163 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16164
16165 2018-02-07 Zack Weinberg <zackw@panix.com>
16166
16167 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16168 New single-type headers split from _G_config.h.
16169 * libio/bits/types/cookie_io_functions_t.h
16170 * libio/bits/types/struct_FILE.h
16171 New single-type headers split from libio.h.
16172
16173 * libio/Makefile: Install the above new headers. Don't install
16174 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16175 bits/libio-ldbl.h.
16176 * libio/_G_config.h, libio/libio.h: Delete file.
16177
16178 * libio/bits/libio.h: Remove improper-inclusion guard.
16179 Include stdio.h and don't repeat anything that it does.
16180 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16181 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16182 __io_read_fn as cookie_read_function_t,
16183 __io_write_fn as cookie_write_function_t,
16184 __io_seek_fn as cookie_seek_function_t,
16185 __io_close_fn as cookie_close_function_t,
16186 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16187 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16188 here, in the "compatibility defines" section. Remove an #if 0
16189 block. Use the "body" macros from bits/types/struct_FILE.h to
16190 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16191 and _IO_ferror_unlocked.
16192 Move prototypes of __uflow and __overflow...
16193
16194 * libio/stdio.h: ...here. Don't include bits/libio.h.
16195 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16196 directly from stdarg.h. Include bits/types/__fpos_t.h,
16197 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16198 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16199 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16200 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16201 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16202 __ssize_t, not _IO_ssize_t. Unconditionally define
16203 BUFSIZ as 8192 and EOF as (-1).
16204
16205 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16206 macros from bits/types/struct_FILE.h instead of _IO_* macros
16207 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16208 instead of _IO_ssize_t.
16209 * libio/bits/stdio2.h: Similarly.
16210
16211 * libio/iolibio.h: Add multiple-include guard.
16212 Include bits/libio.h after stdio.h.
16213 * libio/libioP.h: Add multiple-include guard.
16214 Include stdio.h and bits/libio.h before iolibio.h.
16215
16216 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16217 * include/bits/types/cookie_io_functions_t.h
16218 * include/bits/types/struct_FILE.h: New wrappers.
16219
16220 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16221 Get definitions of _G_fpos_t and _G_fpos64_t from
16222 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16223 respectively. Remove improper-inclusion guards.
16224
16225 * conform/data/stdio.h-data: Update expectations of va_list.
16226 * scripts/check-installed-headers.sh: Remove special case for
16227 libio.h and _G_config.h.
16228
16229 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16230
16231 [BZ #15105]
16232 [BZ #19463]
16233 * include/sys/sysmacros.h [!_ISOMAC]
16234 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16235 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16236 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16237 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16238 libc_hidden_proto.
16239 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16240 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16241 Likewise.
16242 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16243 Undefine and redefine to add use __gnu_dev_ prefix.
16244 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16245 Likewise.
16246 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16247 and define as hidden inline function.
16248 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16249 Likewise.
16250 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16251 Likewise.
16252 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16253 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16254 (gnu_dev_minor): Likewise.
16255 (gnu_dev_makedev): Likewise.
16256 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16257 makedev.
16258 * posix/wordexp.c (exec_comm_child): Likewise.
16259 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16260 instead of minor and __gnu_dev_major instead of major.
16261 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16262 __gnu_dev_major instead of major.
16263 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16264 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16265 instead of gnu_dev_minor.
16266 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16267 (SLAVE_P): Likewise.
16268 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16269 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16270 instead of major.
16271
16272 [BZ #21313]
16273 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16274 in another place.
16275 * locale/weightwc.h (findidx): Likewise.
16276
16277 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16278
16279 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16280 (slowlog_inexact): Likewise
16281 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16282 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16283
16284 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16285
16286 [BZ #22797]
16287 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16288 missing second underscore to parameter name.
16289
16290 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16291
16292 [BZ #14508]
16293 [BZ #15512]
16294 [BZ #17082]
16295 [BZ #20530]
16296 * bits/byteswap.h: Update file comment. Do not include
16297 <bits/byteswap-16.h>.
16298 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16299 constant.
16300 (__bswap_16): Define as inline function.
16301 (__bswap_constant_32): Reformat definition.
16302 (__bswap_32): Always define as inline function, not macro, using
16303 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16304 otherwise __bswap_constant_32.
16305 (__bswap_constant_64): Reformat definition. Do not use
16306 __extension__ here.
16307 (__bswap_64): Always define as inline function, not macro. Use
16308 __extension__ on function definition. Use __builtin_bswap64 if
16309 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16310 * string/test-endian-file-scope.c: New file.
16311 * string/test-endian-sign-conversion.c: Likewise.
16312 * string/Makefile (headers): Remove bits/byteswap-16.h.
16313 (tests): Add test-endian-file-scope and
16314 test-endian-sign-conversion.
16315 (CFLAGS-test-endian-sign-conversion.c): New variable.
16316 * bits/byteswap-16.h: Remove file.
16317 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16318 * sysdeps/ia64/bits/byteswap.h: Likewise.
16319 * sysdeps/m68k/bits/byteswap.h: Likewise.
16320 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16321 * sysdeps/s390/bits/byteswap.h: Likewise.
16322 * sysdeps/tile/bits/byteswap.h: Likewise.
16323 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16324 * sysdeps/x86/bits/byteswap.h: Likewise.
16325
16326 [BZ #17721]
16327 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16328 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16329 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16330 199901L] (__restrict): Define to restrict.
16331
16332 [BZ #19667]
16333 * string/testcopy.c: Include <support/support.h>. Do not include
16334 <malloc.h>. Use <support/test-driver.c>.
16335 (main): Rename to do_test. Make static. Use xmalloc instead of
16336 malloc.
16337
16338 [BZ #13575]
16339 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16340 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16341 (SSIZE_MAX): Define to INT_MAX.
16342 * posix/test-ssize-max.c: New file.
16343 * posix/Makefile (tests): Add test-ssize-max.
16344
16345 [BZ #19668]
16346 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16347 <support/support.h>. Do not include <malloc.h>.
16348 (query_auxv): Use xmalloc instead of malloc.
16349
16350 [BZ #14553]
16351 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16352 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16353 instead of loff_t.
16354
16355 2018-02-06 Florian Weimer <fweimer@redhat.com>
16356
16357 [BZ #18023]
16358 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16359 Use scratch_buffer instead of extend_alloca.
16360
16361 2018-02-06 Zack Weinberg <zackw@panix.com>
16362
16363 * libio/stdio.h: Don't define getc or putc as macros.
16364 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16365 not _IO_getc and _IO_putc.
16366
16367 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16368 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16369
16370 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16371
16372 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16373 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16374
16375 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16376
16377 [BZ #14890]
16378 * elf/elf.h (NT_PRFPREG): New macro.
16379 (NT_S390_VXRS_LOW): Likewise.
16380 (NT_S390_VXRS_HIGH): Likewise.
16381 (NT_S390_GS_CB): Likewise.
16382 (NT_S390_GS_BC): Likewise.
16383 (NT_S390_RI_CB): Likewise.
16384
16385 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16386 (MAP_SYNC): New macro.
16387 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16388 Likewise.
16389 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16390 (MAP_SYNC): Likewise.
16391 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16392 (MAP_SYNC): Likewise.
16393 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16394 (MAP_SYNC): Likewise.
16395 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16396 (MAP_SYNC): Likewise.
16397 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16398 (MAP_SYNC): Likewise.
16399 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16400 (MAP_SYNC): Likewise.
16401 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16402 Likewise.
16403 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16404 Likewise.
16405
16406 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16407 (MAP_SHARED_VALIDATE): New macro.
16408 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16409 (MAP_SHARED_VALIDATE): Likewise.
16410
16411 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16412
16413 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16414 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16415 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16416
16417 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16418
16419 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16420 (DT_NUM): Updated to 35.
16421
16422 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16423
16424 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16425 __builtin_expect with __glibc_likely and __glibc_unlikely.
16426 (elf_machine_rela): Likewise.
16427 (elf_machine_lazy_rel): Likewise.
16428
16429 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16430
16431 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16432 __builtin_expect with __glibc_likely and __glibc_unlikely.
16433 (elf_machine_lazy_rel): Likewise.
16434
16435 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16436
16437 [BZ #22638]
16438 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16439 SHARED.
16440 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16441
16442 2018-02-05 Andreas Schwab <schwab@suse.de>
16443
16444 [BZ #22761]
16445 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16446 string.
16447
16448 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16449
16450 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16451 not check against PTHREAD_STACK_MIN.
16452
16453 2018-02-02 Sean McKean <smckean83@gmail.com>
16454
16455 [BZ #22735]
16456 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16457
16458 2018-02-02 Florian Weimer <fweimer@redhat.com>
16459
16460 [BZ #22753]
16461 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16462 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16463 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16464 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16465 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16466 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16467 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16468 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16469 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16470 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16471 * misc/tst-preadvwritev2.c (do_test): Call it.
16472 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16473
16474 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16475
16476 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16477
16478 * benchtests/bench-memcmp.c: Print json instead of plain text.
16479
16480 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16481 every test run.
16482
16483 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16484
16485 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16486 version to 4.15.
16487 (s390_sthyi): New syscall.
16488
16489 * sysdeps/generic/ldbl-classify-compat.h: New file.
16490 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16491 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16492 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16493 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16494 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16495 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16496 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16497 <ldbl-classify-compat.h>.
16498 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16499 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16500 <ldbl-classify-compat.h>.
16501 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16502 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16503 <ldbl-classify-compat.h>.
16504 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16505 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16506 <ldbl-classify-compat.h>.
16507 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16508 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16509 <ldbl-classify-compat.h>.
16510 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16511 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16512 <ldbl-classify-compat.h>.
16513 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16514 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16515 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16516 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16517 * sysdeps/microblaze/math_private.h: Likewise.
16518 * sysdeps/nios2/math_private.h: Likewise.
16519 * sysdeps/sh/math_private.h: Likewise.
16520
16521 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16522 * sysdeps/m68k/coldfire/math_private.h: ... here.
16523 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16524 * sysdeps/tile/math_private.h: Likewise.
16525 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16526 Remove macro.
16527 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16528 Likewise.
16529
16530 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16531 Remove macro.
16532 (libc_fetestexcept): Likewise.
16533 (libc_feupdateenv_test): Likewise.
16534 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16535 (libc_fetestexcept): Likewise.
16536 (libc_feupdateenv_test): Likewise.
16537 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16538 (libc_fetestexcept): Likewise.
16539 (libc_feupdateenv_test): Likewise.
16540 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16541 (libc_fetestexcept): Likewise.
16542 (libc_feupdateenv_test): Likewise.
16543
16544 * sysdeps/generic/math_private.h
16545 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16546 New inline function.
16547 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16548 Likewise.
16549
16550 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16551 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16552 * sysdeps/generic/math_private.h
16553 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16554 inline function.
16555 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16556 Likewise.
16557 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16558 Likewise.
16559 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16560 Likewise.
16561 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16562 Likewise.
16563 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16564 Likewise.
16565 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16566 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16567 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16568 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16569 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16570 (__fegetenv): Likewise.
16571 (fesetenv): Likewise.
16572 (__fesetenv): Likewise.
16573 (feupdateenv): Likewise.
16574 (__feupdateenv): Likewise.
16575 (fegetround): Likewise.
16576 (__fegetround): Likewise.
16577 (fesetround): Likewise.
16578 (__fesetround): Likewise.
16579
16580 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16581 (feraiseexcept): New macro.
16582 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16583 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16584 Remove macro.
16585 (__feraiseexcept): Likewise.
16586 (feclearexcept): Likewise.
16587 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16588 (__feraiseexcept): Likewise.
16589 (feclearexcept): Likewise.
16590 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16591 (__feraiseexcept): Likewise.
16592 (feclearexcept): Likewise.
16593 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16594 (__feraiseexcept): Likewise.
16595 (feclearexcept): Likewise.
16596 (fetestexcept): Likewise.
16597
16598 * sysdeps/m68k/coldfire/math-tests.h: New file.
16599
16600 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16601 * sysdeps/m68k/bits/fenv.h: ... here.
16602 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16603 not define.
16604 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16605 Likewise.
16606 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16607 Likewise.
16608 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16609 Likewise.
16610 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16611 Likewise.
16612 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16613 Define to 0.
16614 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16615 (__FE_UNDEFINED): New enum constant.
16616 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16617 Do not define.
16618 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16619 Likewise.
16620 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16621 Likewise.
16622 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16623 to match generic bits/fenv.h.
16624 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16625 Do not define.
16626
16627 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16628 packed on bits.
16629 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16630 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16631 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16632 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16633
16634 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16635 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16636 Joseph Myers <joseph@codesourcery.com>
16637
16638 [BZ #21314]
16639 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16640 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16641 computation using c.
16642 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16643 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16644 computation using c.
16645
16646 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16647
16648 * version.h (RELEASE): Set to "development".
16649 (VERSION): Set to "2.27.9000".
16650 * NEWS (2.28): New section.
16651
16652 * version.h (RELEASE): Set to "stable".
16653 (VERSION): Set to "2.27".
16654 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16655
16656 * NEWS: Add the list of bugs fixed in 2.27.
16657
16658 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16659
16660 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16661 against PTHREAD_STACK_MIN.
16662
16663 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16664
16665 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16666 New entries.
16667 (Rafal Luzynski, Andreas Schwab): Update.
16668
16669 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16670
16671 [BZ #10871]
16672 * NEWS: List the languages which actually use the alternative
16673 months feature in this release. Also explain that "alt_mon" and
16674 "ab_alt_mon" are optional.
16675
16676 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16677
16678 [BZ #22765]
16679 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16680
16681 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16682
16683 * manual/install.texi (Tools for Compilation): Update the newest
16684 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16685 * INSTALL: Regenerated.
16686
16687 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16688
16689 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16690 instead of __builtin_expect.
16691
16692 2018-01-30 Florian Weimer <fweimer@redhat.com>
16693
16694 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16695 data.
16696 * nss/tst-nss-getpwent.c (do_test): Likewise.
16697
16698 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16699
16700 [BZ #10871]
16701 * localedata/locales/hr_HR (mon): Rename to...
16702 (alt_mon): This.
16703 (mon): Import from CLDR (genitive case).
16704 (d_t_fmt): Update the comment.
16705
16706 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16707
16708 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16709 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16710 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16711
16712 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16713
16714 * mach/Versions: Fix version when __mach_host_self_ was added.
16715 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16716 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16717 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16718 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16719 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16720 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16721 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16722 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16723 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16724 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16725 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16726 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16727 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16728 || to respect codestyle.
16729 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16730 (do_test_bz20181): Rename accordingly.
16731 * malloc/malloc.c: Include <assert.h>.
16732 (assert): Do not define.
16733 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16734 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16735 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16736 * sysdeps/mach/hurd/hp-timing.h: New file.
16737 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16738
16739 2018-01-29 Darius Rad <darius@bluespec.com>
16740
16741 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16742
16743 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16744
16745 * sysdeps/init_array/crti.S (.section .init_array): Add
16746 PREINIT_FUNCTION when defined.
16747 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16748 * config.h.in: Regenerate.
16749 * manual/platform.texi: Add RISC-V documenation for
16750 __riscv_flush_icache.
16751 * sysdeps/riscv/__longjmp.S: New file.
16752 * sysdeps/riscv/backtrace.c: Likewise.
16753 * sysdeps/riscv/bits/endian.h: Likewise.
16754 * sysdeps/riscv/bits/setjmp.h: Likewise.
16755 * sysdeps/riscv/bits/wordsize.h: Likewise.
16756 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16757 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16758 * sysdeps/riscv/dl-trampoline.S: Likewise.
16759 * sysdeps/riscv/gccframe.h: Likewise.
16760 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16761 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16762 * sysdeps/riscv/machine-gmon.h: Likewise.
16763 * sysdeps/riscv/memusage.h: Likewise.
16764 * sysdeps/riscv/setjmp.S: Likewise.
16765 * sysdeps/riscv/sys/asm.h: Likewise.
16766 * sysdeps/riscv/tls-macros.h: Likewise.
16767 * sysdeps/riscv/dl-tls.h: New file.
16768 * sysdeps/riscv/libc-tls.c: Likewise.
16769 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16770 * sysdeps/riscv/nptl/tls.h: Likewise.
16771 * sysdeps/riscv/stackinfo.h: Likewise.
16772 * sysdeps/riscv/bits/fenv.h: New file.
16773 * sysdeps/riscv/e_sqrtl.c: Likewise.
16774 * sysdeps/riscv/fpu_control.h: Likewise.
16775 * sysdeps/riscv/math-tests.h: Likewise.
16776 * sysdeps/riscv/nofpu/Implies: Likewise.
16777 * sysdeps/riscv/sfp-machine.h: Likewise.
16778 * sysdeps/riscv/tininess.h: Likewise.
16779 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16780 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16781 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16782 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16783 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16784 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16785 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16786 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16787 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16788 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16789 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16790 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16791 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16792 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16793 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16794 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16795 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16796 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16797 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16798 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16799 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16800 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16801 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16802 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16803 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16804 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16805 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16806 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16807 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16808 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16809 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16810 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16811 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16812 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16813 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16814 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16815 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16816 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16817 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16818 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16819 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16820 * sysdeps/riscv/rvf/math_private.h: Likewise.
16821 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16822 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16823 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16824 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16825 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16826 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16827 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16828 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16829 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16830 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16831 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16832 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16833 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16834 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16835 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16836 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16837 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16838 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16839 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16840 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16841 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16842 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16843 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16844 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16845 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16846 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16847 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16848 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16849 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16850 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16851 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16852 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16853 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16854 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16855 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16856 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16857 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16858 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16859 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16860 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16861 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16862 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16863 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16864 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16865 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16866 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16867 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16868 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16869 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16870 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16871 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16872 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16873 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16874 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16875 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16876 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16877 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16878 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16879 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16880 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16881 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16882 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16883 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16884 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16885 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16886 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16887 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16888 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16889 * sysdeps/riscv/Implies: New file.
16890 * sysdeps/riscv/Makefile: Likewise.
16891 * sysdeps/riscv/configure: Likewise.
16892 * sysdeps/riscv/configure.ac: Likewise.
16893 * sysdeps/riscv/nptl/Makefile: Likewise.
16894 * sysdeps/riscv/preconfigure: Likewise.
16895 * sysdeps/riscv/rv64/Implies-after: Likewise.
16896 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16897 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16898 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16899 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16900 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16901 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16902 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16903 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16904 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16905 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16906 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16907 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16908 (Config): Likewise.
16909
16910 2018-01-29 Florian Weimer <fweimer@redhat.com>
16911
16912 [BZ #22701]
16913 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16914 libnsl_hidden_proto.
16915 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16916 libnsl_hidden_proto.
16917 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16918 * nis/Makefile (libnsl-routines): Add nss-default only for
16919 build-obsolete-nsl.
16920 * nis/nis_defaults.c (__nis_default_ttl): Add
16921 libnsl_hidden_nolink_def.
16922 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16923 declaration.
16924 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16925 * nis/ypclnt.c (yp_maplist): Likewise.
16926
16927 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16928
16929 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16930 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16931
16932 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16933
16934 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16935 clean -dxfq for git updates when replacing sources.
16936
16937 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16938 --disable-libcilkrts unconditionally, not just for the final GCC
16939 build for Hurd.
16940
16941 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16942 version to 4.15.
16943
16944 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16945
16946 [BZ #10871]
16947 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16948 case).
16949
16950 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16951
16952 [BZ #10871]
16953 * localedata/locales/be_BY (mon): Rename to...
16954 (alt_mon): This, then synchronize with CLDR (nominative case).
16955 (abmon): Rename to...
16956 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16957 (mon): Import from CLDR (genitive case).
16958 (abmon): Likewise.
16959 * localedata/locales/be_BY@latin (mon): Rename to...
16960 (alt_mon): This.
16961 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16962
16963 * localedata/locales/be_BY@latin (lang_name): Reworded to
16964 "biełaruskaja mova".
16965
16966 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16967
16968 [BZ #10871]
16969 * localedata/locales/el_CY (mon): Renamed to...
16970 (alt_mon): This.
16971 (mon): Import from CLDR (genitive case).
16972 * localedata/locales/el_GR: Likewise.
16973
16974 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16975
16976 [BZ #10871]
16977 * localedata/locales/ru_RU (mon): Rename to...
16978 (alt_mon): This.
16979 (abmon): Rename to...
16980 (ab_alt_mon): This.
16981 (mon): Import from CLDR (genitive case).
16982 (abmon): Copy from the old content except the 5th month which is
16983 now in the genitive case, even when abbreviated.
16984 * localedata/locales/ru_UA: Likewise.
16985 * time/tst-strptime.c (day_tests): Add an actual example of
16986 a difference between %b and %Ob in Russian.
16987
16988 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16989
16990 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16991 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16992 a `c' variable.
16993 * resolv/res-close.c: Include <stdlib.h>.
16994 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16995 <sys/wait.h>, <time.h>, <sys/uio.h>.
16996 (NOT_CANCEL_H): Add inclusion guard.
16997 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16998 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16999 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
17000 return 0.
17001 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
17002 vm_address_t * to ElfW(Addr) * for dl_main parameter.
17003 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
17004 instead of void *.
17005 * sysdeps/pthread/timer_create.c (timer_create): Do not use
17006 timer_ptr2id to cast struct timer_node * to void *.
17007 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
17008 --disable-libcilkrts to gcc configure.
17009 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
17010 and make them the default for now.
17011 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
17012 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
17013 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
17014 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
17015 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
17016 MACH_IPC_COMPAT.
17017 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
17018 __task_terminate would ever return successfully.
17019 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
17020 to global scope.
17021 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
17022 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
17023 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
17024 critical section to make code simpler and avoid warning.
17025 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
17026 critical section to make code simpler and avoid warning.
17027 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
17028 const char * instead of char *.
17029 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
17030 __hurd_file_name_split, hurd_file_name_split,
17031 __hurd_directory_name_split, hurd_directory_name_split,
17032 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
17033 hurd_file_name_path_lookup): Make lookup function parameter take a
17034 const char *name instead of char *name.
17035 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
17036 __hurd_directory_name_split): Likewise.
17037 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
17038 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17039 * sysdeps/mach/hurd/check_native.c: New file.
17040 * sysdeps/mach/hurd/check_pf.c: New file.
17041 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17042 (__freeifaddrs): Define macro to freeifaddrs.
17043 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17044 * sysdeps/mach/libmachuser.abilist: New file.
17045 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17046 (do_test_bz20181): Rename accordingly.
17047 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17048 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17049 <sys/mount.h>.
17050 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17051 version only if __USE_EXTERN_INLINES is defined.
17052 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17053 __hurd_sockfail): Likewise.
17054 (_hurd_fd_get): Always declare functions, and provide inline versions
17055 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17056 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17057 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17058 _hurd_port_set): Always declare functions, and provide inline versions
17059 only if __USE_EXTERN_INLINES and _LIBC are defined and
17060 IS_IN(libc).
17061 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17062 _hurd_critical_section_unlock): Likewise.
17063 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17064 * __hurd_threadvar_location): Likewise.
17065 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17066 _hurd_userlink_clear): Likewise.
17067 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17068 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17069 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17070 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17071 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17072 __spin_lock_locked): Likewise.
17073 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17074 __spin_lock_locked): Likewise.
17075 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17076 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17077 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17078 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17079 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17080 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17081 _POSIX_NO_TRUNC): Define to 0.
17082 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17083 check size against PTHREAD_STACK_MIN.
17084 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17085 IS_IN(libpthread)]: Include <sigsetops.h>.
17086 * mach/Makefile (user-interfaces): Add mach/gnumach.
17087 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17088 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17089 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17090 instead of invalid -1.
17091 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17092 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17093 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17094 <net/ppp_defs.h>.
17095
17096 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17097
17098 * hurd/fcntl-internal.h: New file.
17099
17100 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17101
17102 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17103
17104 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17105
17106 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17107
17108 [BZ #22701]
17109 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17110 Build only shared objects.
17111
17112 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17113
17114 * README: Update for hppa.
17115
17116 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17117
17118 * sysdeps/sparc/fpu/libm-test-ulps: Update
17119 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17120
17121 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17122
17123 Revert:
17124
17125 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17126
17127 [BZ #22563]
17128 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17129 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17130 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17131 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17132 to feature_1.
17133
17134 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17135
17136 [BZ #22563]
17137 * bits/types/__cancel_jmp_buf_tag.h: New file.
17138 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17139 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17140 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17141 * nptl/Makefile (headers): Add
17142 bits/types/__cancel_jmp_buf_tag.h.
17143 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17144 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17145 * sysdeps/nptl/pthread.h: Include
17146 <bits/types/__cancel_jmp_buf_tag.h>.
17147 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17148 __cancel_jmp_buf.
17149 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17150
17151 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17152
17153 [BZ #10871]
17154 * localedata/locales/uk_UA (mon): Renamed to...
17155 (alt_mon): This.
17156 (alt_digits): "0" removed and then renamed to...
17157 (mon): This.
17158 (date_fmt): Definition changed not to use the alternative
17159 digits hack.
17160
17161 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17162
17163 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17164 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17165 * elf/elf.h (EF_RISCV_RVC): New define.
17166 (EF_RISCV_FLOAT_ABI): Likewise.
17167 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17168 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17169 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17170 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17171 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17172 define.
17173 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17174
17175 2018-01-25 Andreas Schwab <schwab@suse.de>
17176
17177 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17178 single quotes.
17179 * sysdeps/gnu/configure: Regenerate.
17180 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17181 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17182 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17183 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17184 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17185 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17186 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17187 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17188
17189 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17190
17191 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17192 URL, and run autoconf, make it the default for now.
17193
17194 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17195
17196 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17197 soft-float ColdFire configuration.
17198
17199 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17200 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17201 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17202
17203 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17204 MicroBlaze file.
17205
17206 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17207 ....
17208 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17209 ... here.
17210 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17211 New file.
17212
17213 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17214 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17215 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17216 file.
17217
17218 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17219
17220 [BZ #22742]
17221 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17222 Rename to __reserved and add comment.
17223 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17224 Rename to __reserved.
17225
17226 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17227
17228 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17229 i686-gnu configurations.
17230 (Context.run_builds): Include mig, gnumach and hurd in components
17231 considered.
17232 (Context.checkout): Add mig, gnumach and hurd to components.
17233 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17234 hurd.
17235 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17236 (Config.build): Install gnumach headers, build mig and install
17237 hurd headers for 'gnu' OS.
17238 (Config.install_gnumach_headers): New function.
17239 (Config.install_hurd_headers): Likewise.
17240 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17241 when building for 'gnu' OS.
17242
17243 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17244
17245 * manual/tunables.texi (Hardware Capability Tunables): Fix
17246 spelling.
17247
17248 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17249
17250 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17251 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17252 (ALTMON_11, ALTMON_12): Improve documentation.
17253 * manual/time.texi (strftime): Likewise.
17254
17255 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17256
17257 [BZ #10871]
17258 * localedata/locales/pl_PL: Alternative month names added,
17259 primary month names are genitive now.
17260 * time/tst-strptime.c (day_tests): Actually use a genitive case
17261 of a month name in Polish language.
17262
17263 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17264
17265 [BZ #10871]
17266 * manual/locale.texi: Document ALTMON_1..12 constants for
17267 nl_langinfo. Specify when to use ALTMON instead of MON.
17268 * manual/time.texi (strftime, strptime): Document GNU extension
17269 permitting O modifier with %B and %b. Specify when to use
17270 %OB instead of %B.
17271
17272 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17273
17274 [BZ #10871]
17275 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17276 names, define them as the same as abbreviated month names explicitly.
17277 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17278 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17279 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17280 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17281 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17282 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17283 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17284 _NL_WABALTMON_12): New enum constants.
17285 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17286 wab_alt_mon, and ab_alt_mon_defined members.
17287 (time_output): Output ab_alt_mon and wab_alt_mon members.
17288 (time_read): Read them, initialize them as copies of abmon and wabmon
17289 respectively if they are missing, initialize ab_alt_mon_defined.
17290 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17291 * locale/programs/locfile-kw.h: Regenerate.
17292 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17293 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17294 and ru_RU.UTF-8.
17295 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17296 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17297 (__strftime_internal): Handle %Ob and %Oh formats.
17298 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17299 (__strptime_internal): Handle %Ob and %Oh formats.
17300 * time/tst-strptime.c (day_tests): Add more tests to parse different
17301 forms of month names including the new %Ob format specifier.
17302
17303 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17304
17305 [BZ #10871]
17306 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17307 define them as the same as primary full month names explicitly.
17308 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17309 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17310 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17311 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17312 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17313 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17314 _NL_WALTMON_12): New enum constants.
17315 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17316 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17317 macros.
17318 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17319 walt_mon, and alt_mon_defined members.
17320 (time_output): Output alt_mon and walt_mon members.
17321 (time_read): Read them, initialize them as copies of mon and wmon
17322 respectively if they are missing, initialize alt_mon_defined.
17323 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17324 * locale/programs/locfile-kw.h: Regenerate.
17325 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17326 * localedata/tst-langinfo.c (map): Add tests for the new constants
17327 ALTMON_1 .. ALTMON_12.
17328 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17329 and pl_PL.UTF-8.
17330 * time/strftime_l.c (f_altmonth): New macro.
17331 (__strftime_internal): Handle %OB format.
17332 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17333 (__strptime_internal): Handle %OB format.
17334 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17335 of month names including the new %OB format specifier.
17336
17337 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17338
17339 [BZ #22685]
17340 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17341 from ABORT_TRANSACTION.
17342 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17343 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17344 ABORT_TRANSACTION_IMPL): Likewise.
17345 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17346 Linux code, but remove the code that aborts transactions.
17347
17348 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17349
17350 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17351
17352 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17353
17354 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17355 in date: "2004-14-09" should be "2004-09-14".
17356 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17357 "2003-15-09" should be "2003-09-15".
17358
17359 2018-01-18 Arjun Shankar <arjun@redhat.com>
17360
17361 [BZ #22343]
17362 [BZ #22774]
17363 CVE-2018-6485
17364 CVE-2018-6551
17365 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17366 after padding.
17367 (_int_memalign): check for integer overflow before calling
17368 _int_malloc.
17369 * malloc/tst-malloc-too-large.c: New test.
17370 * malloc/Makefile: Add tst-malloc-too-large.
17371
17372 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17373
17374 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17375 in date: "2017-24-07" should be "2017-07-24".
17376 * localedata/locales/mai_IN: Likewise.
17377 * localedata/locales/mai_NP: Likewise.
17378
17379 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17380
17381 * po/ru.po: Update translations.
17382
17383 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17384
17385 [BZ #22719]
17386 * sysdeps/hppa/backtrace.c: New file.
17387
17388 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17389
17390 [BZ #22715]
17391 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17392 align La_x86_64_retval to VEC_SIZE.
17393
17394 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17395
17396 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17397 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17398
17399 2018-01-16 Florian Weimer <fweimer@redhat.com>
17400
17401 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17402 Move tst-thread-exit-clobber ...
17403 [$(CXX)] (tests-unsupported): ... to here.
17404
17405 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17406
17407 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17408 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17409 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17410 (_dl_aarch64_cap_flags): Update.
17411 (_DL_HWCAP_COUNT): Update.
17412
17413 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17414
17415 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17416 (_DL_HWCAP_LAST): Remove.
17417 (_DL_HWCAP_COUNT): Move to ...
17418 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17419 (_DL_HWCAP_COUNT): ... here.
17420
17421 2018-01-16 Florian Weimer <fweimer@redhat.com>
17422
17423 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17424 mode with GNU extensions.
17425
17426 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17427
17428 * elf/elf.h (NT_ARM_SVE): Define.
17429
17430 2018-01-15 Florian Weimer <fweimer@redhat.com>
17431
17432 [BZ #22636]
17433 * nptl/tst-minstack-throw.cc: New file.
17434 * nptl/Makefile (tests): Add tst-minstack-throw.
17435 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17436 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17437
17438 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17439
17440 * scripts/build-many-glibcs.py (Context.checkout): Default
17441 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17442 version to 1.1.0.
17443
17444 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17445
17446 [BZ #22707]
17447 * elf/elf.h (DF_1_STUB): Define.
17448 (DF_1_PIE): Define.
17449
17450 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17451
17452 [BZ #22697]
17453 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17454 Do not add 0.5 to integer or out-of-range arguments.
17455
17456 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17457
17458 * po/bg.po: Update translations.
17459 * po/cs.po: Likewise.
17460 * po/de.po: Likewise.
17461 * po/ko.po: Likewise.
17462 * po/pl.po: Likewise.
17463 * po/sv.po: Likewise.
17464 * po/uk.po: Likewise.
17465 * po/vi.po: Likewise.
17466
17467 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17468
17469 * aarch64/start.S (_start): Use __wrap_main.
17470 (__wrap_main): New local symbol.
17471
17472 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17473
17474 [BZ #22679]
17475 CVE-2018-1000001
17476 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17477 generic_getcwd if the path returned by getcwd syscall is not absolute.
17478 * io/tst-getcwd-abspath.c: New test.
17479 * io/Makefile (tests): Add tst-getcwd-abspath.
17480
17481 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17482
17483 * malloc/malloc.c (malloc_consolidate): Add size check.
17484
17485 2018-01-12 Florian Weimer <fweimer@redhat.com>
17486
17487 * support/write_message.c (write_message): Preserve errno.
17488 * support/check.c (print_failure): Likewise.
17489 * support/support_test_verify_impl.c (support_test_verify_impl):
17490 Likewise.
17491 * support/support_test_compare_failure.c
17492 (support_test_compare_failure): Likewise.
17493
17494 2018-01-12 Florian Weimer <fweimer@redhat.com>
17495
17496 [BZ #22701]
17497 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17498 Prevent installation of libnsl.so.
17499 (libnsl-inhibit-o): Do not build (or install) static libraries.
17500
17501 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17502
17503 [BZ #22657]
17504 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17505 before the day number which may produce a double space.
17506 (date_fmt): Likewise.
17507
17508 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17509
17510 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17511 instead of fegetenv.
17512
17513 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17514
17515 [BZ #22702]
17516 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17517 comment to say exceptions are discarded.
17518 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17519 __fegetenv.
17520 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17521 be enabled.
17522
17523 2018-01-11 Florian Weimer <fweimer@redhat.com>
17524
17525 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17526 and error message.
17527
17528 2018-01-11 Florian Weimer <fweimer@redhat.com>
17529
17530 [BZ #22636]
17531 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17532 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17533
17534 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17535
17536 [BZ #22693]
17537 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17538 negative arguments in test for NaN or infinity argument.
17539
17540 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17541
17542 * po/libc.pot: Regenerate.
17543
17544 2018-01-10 Florian Weimer <fweimer@redhat.com>
17545
17546 [BZ #22636]
17547 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17548 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17549
17550 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17551
17552 * hurd/hurd/fd.h: Include <fcntl.h>
17553 (__hurd_at_flags): New function.
17554 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17555 with call to __hurd_at_flags.
17556 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17557 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17558 __faccessat
17559 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17560 (__access_noerrno): Use __faccessat_common instead of access_common.
17561 (__access): Likewise.
17562 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17563 with a call to __faccessat.
17564 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17565 (__faccessat_common): ... this. Move implementation of __access into it when
17566 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17567 reauthenticate_cwdir_at helper to implement AT mechanism.
17568 (__faccessat_noerrno): New function, just calls __faccessat_common.
17569 (__faccessat): New function, just calls __faccessat_common.
17570 (faccessat): Define weak alias.
17571
17572 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17573
17574 [BZ #22691]
17575 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17576 (CFLAGS-s_fmaxmagl.c): New variable.
17577 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17578
17579 [BZ #22690]
17580 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17581 long int for arguments of possibly overflowing addition or
17582 subtraction.
17583 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17584
17585 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17586
17587 [BZ #22688]
17588 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17589 (CFLAGS-e_remainderl.c): New variable.
17590
17591 [BZ #22687]
17592 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17593 variable.
17594 (CFLAGS-s_cacoshl.c): Likewise.
17595 (CFLAGS-s_casinhl.c): Likewise.
17596 (CFLAGS-s_catanl.c): Likewise.
17597 (CFLAGS-s_catanhl.c): Likewise.
17598 (CFLAGS-s_cexpl.c): Likewise.
17599 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17600 (CFLAGS-s_csinhl.c): Likewise.
17601 (CFLAGS-s_clogl.c): Likewise.
17602 (CFLAGS-s_clog10l.c): Likewise.
17603 (CFLAGS-s_csinl.c): Likewise.
17604 (CFLAGS-s_csqrtl.c): Likewise.
17605
17606 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17607 2017-01-09 Svante Signell <svante.signell@gmail.com>
17608
17609 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17610 (_hurd_exec_paths): New function.
17611 * hurd/hurd.h (_hurd_exec): Deprecate function.
17612 (_hurd_exec_paths): Declare function.
17613 * hurd/Versions: Export _hurd_exec_paths.
17614 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17615 (__execve): Use __getcwd to build absolute path, and use
17616 _hurd_exec_paths instead of _hurd_exec.
17617 * sysdeps/mach/hurd/spawni.c: Likewise.
17618 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17619 _hurd_exec.
17620
17621 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17622
17623 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17624 test instead of failing in case of ENOENT returned by posix_openpt.
17625
17626 2018-01-08 Florian Weimer <fweimer@redhat.com>
17627
17628 resolv: Support binary labels in test framework.
17629 * support/resolv_test.c (struct to_be_freed): Remove.
17630 (struct compressed_name): New.
17631 (allocate_compressed_name, ascii_tolower)
17632 (compare_compressed_name): New functions.
17633 (struct resolv_response_builder): Update type of
17634 compression_offsets for use with tsearch. Rempve to_be_freed.
17635 (response_push_pointer_to_free): Remove function.
17636 (resolv_response_add_name): Rewrite using struct compressed_name
17637 and tsearch instead of hsearch_r.
17638 (response_builder_allocate): Remove initialization of
17639 compression_offsets.
17640 (response_builder_free): Update for removal of to_be_freed. Use
17641 tdestroy instead of hdestroy_r.
17642 * resolv/Makefile (tests): Add tst-resolv-binary.
17643 (tst-resolv-binary): Link with -lresolv -lpthread.
17644
17645 2018-01-08 Florian Weimer <fweimer@redhat.com>
17646
17647 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17648 time. Pass positive flag instead of negative flag to
17649 support_test_compare_failure.
17650 (support_test_compare_failure): Change negative parameter to
17651 positive.
17652 * support/support_test_compare_failure.c (report)
17653 (support_test_compare_failure): Likewise.
17654 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17655 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17656
17657 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17658
17659 [BZ #22637]
17660 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17661 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17662 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17663 stacksize.
17664 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17665
17666 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17667
17668 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17669 Add s_sincosf-sse2 and s_sincosf-fma.
17670 (CFLAGS-s_sincosf-fma.c): New.
17671 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17672 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17673 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17674 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17675 __sincosf is defined.
17676
17677 2018-01-08 Florian Weimer <fweimer@redhat.com>
17678
17679 * nptl/tst-thread-exit-clobber.cc: New file.
17680 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17681 C++11 mode.
17682 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17683 (tests): Add tst-thread-exit-clobber.
17684 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17685
17686 2018-01-08 Florian Weimer <fweimer@redhat.com>
17687
17688 * support/check.h (support_static_assert): Define.
17689 (TEST_COMPARE): Use it.
17690
17691 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17692
17693 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17694 [!__RLIM_T_MATCHES_RLIM64_T]
17695 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17696 __getrlimit64. Add libc_hidden_weak.
17697
17698 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17699
17700 * elf/elf.h (R_RISCV_NONE): New define.
17701 (R_RISCV_32): Likewise.
17702 (R_RISCV_64): Likewise.
17703 (R_RISCV_RELATIVE): Likewise.
17704 (R_RISCV_COPY): Likewise.
17705 (R_RISCV_JUMP_SLOT): Likewise.
17706 (R_RISCV_TLS_DTPMOD32): Likewise.
17707 (R_RISCV_TLS_DTPMOD64): Likewise.
17708 (R_RISCV_TLS_DTPREL32): Likewise.
17709 (R_RISCV_TLS_DTPREL64): Likewise.
17710 (R_RISCV_TLS_TPREL32): Likewise.
17711 (R_RISCV_TLS_TPREL64): Likewise.
17712 * Makerules (make-link-multidir): Make directories before linking into
17713 them.
17714 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17715 define.
17716 (VDSO_HASH_LINUX_4_15): Likewise.
17717 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17718 in subdirectories of lib.
17719 * nptl/Makefile (/librt.so): Always depend on
17720 "$(shared-thread-library)".
17721
17722 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17723
17724 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17725 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17726 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17727 (___tls_get_addr).
17728 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17729 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17730 "-O2 -march=i686".
17731 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17732 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17733 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17734 * sysdeps/gnu/glob-lstat-compat.c: New file.
17735 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17736 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17737
17738 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17739
17740 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17741 Reserve 16 chars to reloc_addr before calling _itoa_word.
17742
17743 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17744
17745 [BZ #22678]
17746 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17747 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17748
17749 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17750 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17751
17752 * resource/tst-getrlimit.c: Add copyright header.
17753
17754 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17755 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17756
17757 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17758 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17759 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17760 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17761 instead.
17762 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17763 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17764 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17765 RLIM64_INFINITY): Fix values to match the kernel ones.
17766 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17767 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17768 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17769 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17770 getrlimit64@@GLIBC_2_27.
17771 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17772 and setrlimit64.
17773 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17774 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17775 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17776 setrlimit, getrlimit64 and setrlimit64.
17777
17778 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17779
17780 [BZ #22648]
17781 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17782 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17783
17784 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17785
17786 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17787 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17788 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17789
17790 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17791
17792 [BZ #15479]
17793 [BZ #22666]
17794 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17795 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17796
17797 [BZ #15479]
17798 [BZ #22665]
17799 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17800 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17801 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17802 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17803
17804 2018-01-04 Florian Weimer <fweimer@redhat.com>
17805
17806 [BZ #22667]
17807 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17808 Align the stack before calling exit.
17809 * stdlib/tst-makecontext-align.c: New file.
17810 * stdlib/Makefile (tests): Add tst-makecontext-align.
17811
17812 2018-01-04 Florian Weimer <fweimer@redhat.com>
17813
17814 Add support for calling dlvsym from libc.so.
17815 * include/dlfcn.h (__libc_dlvsym): Declare.
17816 * elf/Makefile (tests-static-internal): Add
17817 tst-libc_dlvsym-static.
17818 (tests-internal): Add tst-libc_dlvsym.
17819 (modules-names): Add tst-libc_dlvsym-dso.
17820 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17821 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17822 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17823 object tst-libc_dlvsym-dso.so needs to be built before running
17824 these tests.
17825 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17826 * elf/Versions: Export __libc_dlvsym.
17827 * elf/dl-libc.c (struct do_dlvsym_args): New.
17828 (do_dlvsym, __libc_dlvsym): New functions.
17829 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17830 (_dl_open_hook2): New variable.
17831 (__libc_register_dl_open_hook): Set it.
17832 * elf/tst-libc_dlvsym-dso.c: New file.
17833 * elf/tst-libc_dlvsym-static.c: Likewise.
17834 * elf/tst-libc_dlvsym.c: Likewise.
17835 * elf/tst-libc_dlvsym.h: Likewise.
17836
17837 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17838
17839 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17840 include <sys/mount.h>.
17841
17842 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17843
17844 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17845 Add __NO_MATH_ERRNO__ check.
17846
17847 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17848
17849 * sysdeps/mips/mips32/libm-test-ulps: Update.
17850 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17851
17852 2018-01-02 Florian Weimer <fweimer@redhat.com>
17853
17854 * misc/tst-pselect.c: Add copyright header.
17855
17856 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17857
17858 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17859 comment.
17860 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17861 comment.
17862 (settrlimit): Rename into setrlimit.
17863 (__sttrlimit): Rename into __setrlimit.
17864
17865 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17866 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17867 never defined in that case.
17868
17869 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17870
17871 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17872
17873 * sysdeps/arm/libm-test-ulps: Update.
17874
17875 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17876 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17877
17878 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17879
17880 * NEWS: Add cosf and sincosf to list of optimized functions.
17881
17882 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17883
17884 [BZ #22660]
17885 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17886 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17887 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17888 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17889
17890 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17891
17892 [BZ #22433]
17893 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17894
17895 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17896 making a copy of it.
17897
17898 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17899
17900 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17901 trailing whitespace removed.
17902 * scripts/config.guess: Update to version 2018-01-01.
17903 * scripts/config.sub: Update to version 2018-01-01.
17904 * scripts/move-if-change: Update from gnulib.
17905
17906 * NEWS: Update copyright dates.
17907 * catgets/gencat.c (print_version): Likewise.
17908 * csu/version.c (banner): Likewise.
17909 * debug/catchsegv.sh: Likewise.
17910 * debug/pcprofiledump.c (print_version): Likewise.
17911 * debug/xtrace.sh (do_version): Likewise.
17912 * elf/ldconfig.c (print_version): Likewise.
17913 * elf/ldd.bash.in: Likewise.
17914 * elf/pldd.c (print_version): Likewise.
17915 * elf/sotruss.sh: Likewise.
17916 * elf/sprof.c (print_version): Likewise.
17917 * iconv/iconv_prog.c (print_version): Likewise.
17918 * iconv/iconvconfig.c (print_version): Likewise.
17919 * locale/programs/locale.c (print_version): Likewise.
17920 * locale/programs/localedef.c (print_version): Likewise.
17921 * login/programs/pt_chown.c (print_version): Likewise.
17922 * malloc/memusage.sh (do_version): Likewise.
17923 * malloc/memusagestat.c (print_version): Likewise.
17924 * malloc/mtrace.pl: Likewise.
17925 * manual/libc.texinfo: Likewise.
17926 * nptl/version.c (banner): Likewise.
17927 * nscd/nscd.c (print_version): Likewise.
17928 * nss/getent.c (print_version): Likewise.
17929 * nss/makedb.c (print_version): Likewise.
17930 * posix/getconf.c (main): Likewise.
17931 * scripts/test-installation.pl: Likewise.
17932 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17933
17934 * All files with FSF copyright notices: Update copyright dates
17935 using scripts/update-copyrights.
17936 * locale/programs/charmap-kw.h: Regenerated.
17937 * locale/programs/locfile-kw.h: Likewise.
17938
17939 2017-12-31 Zack Weinberg <zackw@panix.com>
17940
17941 * libio/bits/libio-ldbl.h: Correct check for improper
17942 inclusion. Add own multiple include guard.
17943
17944 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17945 Dmitry V. Levin <ldv@altlinux.org>
17946
17947 [BZ #22625]
17948 CVE-2017-16997
17949 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17950 string token expansion. Check for NULL pointer or empty string possibly
17951 returned by expand_dynamic_string_token.
17952 (decompose_rpath): Check for empty path after dynamic string
17953 token expansion.
17954
17955 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17956
17957 [BZ #22433]
17958 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17959
17960 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17961 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17962 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17963 and PTRACE_SYSCALL.
17964 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17965 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17966 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17967 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17968 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17969 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17970
17971 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17972 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17973 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17974 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17975 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17976 bits/ptrace-shared.h.
17977 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17978 <bits/ptrace-shared.h>.
17979 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17980 __ptrace_peeksiginfo_flags, ptrace): Remove.
17981 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17982 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17983 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17984 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17985 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17986
17987 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17988
17989 [BZ #17804]
17990 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17991 end of the loop. Improve comments.
17992
17993 2017-12-29 Zack Weinberg <zackw@panix.com>
17994
17995 [BZ #22615]
17996 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17997 might be set on success.
17998
17999 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
18000
18001 [BZ #22611]
18002 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
18003 is unchanged on success.
18004
18005 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
18006
18007 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
18008 updated.
18009 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
18010 expand_dynamic_string_token): Likewise.
18011 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
18012 is_path argument.
18013
18014 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
18015 contains ':'.
18016
18017 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
18018 is set and name contains ':', and all code depending on these checks.
18019
18020 2017-12-24 Zack Weinberg <zackw@panix.com>
18021
18022 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
18023 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
18024 respectively.
18025 * libio/libio.h: Rename the original version of this file to
18026 libio/bits/libio.h. Error out if not included by stdio.h or the
18027 stub libio.h.
18028 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
18029 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
18030 if not included by bits/libio.h or the stub _G_config.h.
18031 * sysdeps/unix/sysv/linux/_G_config.h: Move to
18032 sysdeps/unix/sysv/linux/bits. Error out if not included by
18033 bits/libio.h or the stub _G_config.h.
18034 * libio/stdio.h: Include bits/libio.h, not libio.h.
18035 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
18036 well as libio.h and _G_config.h.
18037
18038 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18039 * libio/strfile.h, stdio-common/vfscanf.c
18040 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18041 Include stdio.h, not _G_config.h nor libio.h.
18042 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18043 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18044
18045 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18046
18047 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18048
18049 [BZ #22347]
18050 * stdlib/getrandom.c (getrandom): Fix comment.
18051 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18052
18053 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18054
18055 [BZ #21161]
18056 * manual/arith.texi (strtoul): Fix a typo.
18057
18058 [BZ #22596]
18059 * manual/arith.texi (finite): Fix the description of the return
18060 value.
18061
18062 2017-12-22 Eric Blake <ebb9@byu.net>
18063
18064 Avoid gcc warnings on cygwin
18065 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18066 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18067 Avoid unused variable.
18068
18069 2017-12-22 Florian Weimer <fweimer@redhat.com>
18070
18071 * io/Makefile (routines): Add copy_file_range.
18072 (tests): Add tst-copy_file_range.
18073 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18074 * io/Versions (GLIBC_2.27): Export copy_file_range.
18075 * io/copy_file_range-compat.c: New file.
18076 * io/copy_file_range.c: Likewise.
18077 * io/tst-copy_file_range-compat.c: Likewise.
18078 * io/tst-copy_file_range.c: Likewise.
18079 * manual/llio.texi (Copying File Data): New section.
18080 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18081 * support/Makefile (libsupport-routines): Add support-xfstat,
18082 xftruncate, xlseek.
18083 * support/support-xfstat.c: New file.
18084 * support/xftruncate.c: Likewise.
18085 * support/xlseek.c: Likewise.
18086 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18087 * sysdeps/unix/sysv/linux/**.abilist: Update.
18088 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18089
18090 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18091
18092 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18093 disable-multi-arch variant to aarch64-linux-gnu.
18094
18095 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18096
18097 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18098 trailing whitespace removed.
18099 * scripts/config.guess: Update to version 2017-12-17.
18100 * scripts/config.sub: Update to version 2017-11-23.
18101 * scripts/install-sh: Update to version 2017-09-23.17.
18102 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18103
18104 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18105
18106 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18107 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18108 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18109 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18110 * sysdeps/tile/crtn.S: Likewise.
18111 * sysdeps/tile/dl-start.S (_start): Likewise.
18112 * sysdeps/tile/dl-trampoline.S: Likewise.
18113 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18114 * sysdeps/tile/start.S (_start): Likewise.
18115 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18116 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18117 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18118 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18119 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18120 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18121 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18122
18123 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18124 comment.
18125 * sysdeps/tile/preconfigure: Remove tilegx folder.
18126 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18127 * sysdeps/tile/Implies: ... here.
18128 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18129 * sysdeps/tile/Makefile: ... here.
18130 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18131 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18132 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18133 * sysdeps/tile/bits/wordsize.h: ... here.
18134 * sysdeps/tile/tilegx/*: Move to ...
18135 * sysdeps/tile/*: ... here.
18136 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18137 * sysdeps/tile/tilegx32/Implies: ... here.
18138 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18139 * sysdeps/tile/tilegx64/Implies: ... here.
18140 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18141 to ...
18142 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18143 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18144 * sysdeps/unix/sysv/linux/tile/*: ... here.
18145 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18146 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18147 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18148 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18149
18150 * README: Remove tilepro-*-linux-gnu from supported architecture.
18151 * scripts/build-many-glibcs.py: Likewise.
18152 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18153 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18154 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18155 elf_machine_matches_host, elf_machine_dynamic,
18156 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18157 howto, elf_machine_rela): Likewise.
18158 * sysdeps/tile/dl-start.S (_start): Likewise.
18159 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18160 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18161 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18162 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18163 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18164 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18165 Likewise.
18166 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18167 * sysdeps/tile/preconfigure: Likewise.
18168 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18169 POINTER_CHK_GUARD): Likewise.
18170 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18171 * sysdeps/tile/start.S (_start): Likewise.
18172 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18173 Likewise.
18174 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18175 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18176 CMOVNEZ): Remove.
18177 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18178 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18179 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18180 Likewise.
18181 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18182 * sysdeps/tile/tilepro/Implies: Remove file.
18183 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18184 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18185 * sysdeps/tile/tilepro/memchr.c: Likewise.
18186 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18187 * sysdeps/tile/tilepro/memset.c: Likewise.
18188 * sysdeps/tile/tilepro/memusage.h: Likewise.
18189 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18190 * sysdeps/tile/tilepro/strchr.c: Likewise.
18191 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18192 * sysdeps/tile/tilepro/strlen.c: Likewise.
18193 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18194 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18195 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18196 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18197 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18198 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18199 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18200 Likewise.
18201 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18202 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18203 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18204 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18205 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18206 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18207 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18208 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18209 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18210 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18211 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18212 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18213 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18214 tilepro mention in comment.
18215
18216 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18217 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18218 * nptl/pthread_join_common.c: New file: common function used on
18219 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18220 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18221 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18222 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18223 (cleanup): Move definition to pthread_join_common.c.
18224 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18225 Remove superflous checks.
18226 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18227 Likewise.
18228
18229 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18230
18231 * sysdeps/aarch64/libm-test-ulps: Update.
18232
18233 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18234
18235 * sysdeps/aarch64/memset.S (MEMSET): Define.
18236
18237 2017-12-20 Florian Weimer <fweimer@redhat.com>
18238
18239 [BZ #22635]
18240 nptl: Provide full implementation of pthread_self in libc.so.
18241 * nptl/Makefile (routines): Add pthread_self.
18242 (libpthread-routines): Replace pthread_self with
18243 compat-pthread_self.
18244 * nptl/forward.c (pthread_self): Remove.
18245 * nptl/nptl-init.c (pthread_functions): Do not initialize
18246 ptr_pthread_self.
18247 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18248 * nptl/compat-pthread_self.c: New file.
18249 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18250 Remove ptr_pthread_self.
18251
18252 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18253
18254 * posix/regcomp.c: Fix spelling in comments.
18255 * posix/regex.h: Likewise.
18256 * posix/regex_internal.c: Likewise.
18257 * posix/regexec.c: Likewise.
18258
18259 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18260
18261 [BZ #22377]
18262 * math/Makefile [C++] (tests): Add test for iseqsig.
18263 * math/math.h [C++] (iseqsig): New implementation, which does
18264 not rely on __MATH_TG/__builtin_types_compatible_p.
18265 * math/test-math-iseqsig.cc: New file.
18266 * sysdeps/powerpc/powerpc64le/Makefile
18267 (CFLAGS-test-math-iseqsig.cc): New variable.
18268
18269 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18270
18271 * elf/dl-load.c (is_trusted_path): Remove.
18272 (fillin_rpath): Remove check_trusted argument and its use,
18273 all callers changed.
18274
18275 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18276
18277 [BZ #22630]
18278 * Makeconfig (link-pie-before-libc): Replace -pie with
18279 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18280 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18281 (tst-dlopen-aout-no-pie): New.
18282 (LDFLAGS-tst-prelink): Removed.
18283 (tst-prelink-no-pie): New.
18284 (LDFLAGS-tst-main1): Removed.
18285 (tst-main1-no-pie): New.
18286 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18287 (tst-gmon-no-pie): New.
18288
18289 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18290
18291 * manual/install.texi: Document that --enable-static-pie
18292 implies PIE.
18293 * INSTALL: Regenerated.
18294
18295 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18296
18297 [BZ #21309]
18298 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18299 unsigned.
18300
18301 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18302
18303 Revert:
18304
18305 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18306
18307 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18308
18309 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18310
18311 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18312 <errno.h>. Include "eexp.tbl".
18313 (half): New constant.
18314 (one): Likewise.
18315 (__ieee754_exp): Rewrite.
18316 (__slowexp): Remove prototype.
18317 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18318 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18319 * sysdeps/i386/fpu/slowexp.c: Likewise.
18320 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18321 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18322 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18323 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18324 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18325 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18326 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18327 comment.
18328 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18329 (CPPFLAGS-slowexp.c): Remove variable.
18330 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18331 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18332 (CFLAGS-slowexp-fma.c): Remove variable.
18333 (CFLAGS-slowexp-fma4.c): Likewise.
18334 (CFLAGS-slowexp-avx.c): Likewise.
18335 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18336 define as macro.
18337 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18338 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18339 * math/Makefile (type-double-routines): Remove slowexp.
18340 * manual/probes.texi (slowexp_p6): Remove.
18341 (slowexp_p32): Likewise.
18342
18343 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18344
18345 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18346 arithmetic.
18347
18348 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18349
18350 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18351
18352 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18353
18354 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18355
18356 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18357 <errno.h>. Include "eexp.tbl".
18358 (half): New constant.
18359 (one): Likewise.
18360 (__ieee754_exp): Rewrite.
18361 (__slowexp): Remove prototype.
18362 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18363 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18364 * sysdeps/i386/fpu/slowexp.c: Likewise.
18365 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18366 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18367 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18368 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18369 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18370 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18371 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18372 comment.
18373 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18374 (CPPFLAGS-slowexp.c): Remove variable.
18375 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18376 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18377 (CFLAGS-slowexp-fma.c): Remove variable.
18378 (CFLAGS-slowexp-fma4.c): Likewise.
18379 (CFLAGS-slowexp-avx.c): Likewise.
18380 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18381 define as macro.
18382 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18383 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18384 * math/Makefile (type-double-routines): Remove slowexp.
18385 * manual/probes.texi (slowexp_p6): Remove.
18386 (slowexp_p32): Likewise.
18387
18388 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18389 James Clarke <jrtc27@jrtc27.com>
18390
18391 [BZ #22603]
18392 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18393 addition.
18394
18395 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18396
18397 [BZ #22605]
18398 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18399 code.
18400
18401 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18402
18403 [BZ #22563]
18404 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18405 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18406 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18407 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18408 to feature_1.
18409
18410 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18411
18412 [BZ #22563]
18413 * bits/types/__cancel_jmp_buf_tag.h: New file.
18414 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18415 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18416 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18417 * nptl/Makefile (headers): Add
18418 bits/types/__cancel_jmp_buf_tag.h.
18419 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18420 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18421 * sysdeps/nptl/pthread.h: Include
18422 <bits/types/__cancel_jmp_buf_tag.h>.
18423 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18424 __cancel_jmp_buf.
18425 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18426
18427 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18428
18429 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18430 --enable-static-pie variants to x86_64, x32 and i686.
18431
18432 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18433
18434 [BZ #22631]
18435 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18436 argument for attrubutes. All callers changed.
18437 (__inline_mathop1): Likewise. All callers changed.
18438 (__inline_mathop): Likewise. All callers changed.
18439 [__USE_MISC] (scalbn): Use __inline_forward instead of
18440 __inline_forward_c.
18441 [__USE_ISOC99] (scalbln): Likewise.
18442 [__USE_ISOC99] (nearbyint): Likewise.
18443 [__USE_ISOC99] (lrint): Likewise.
18444 [__USE_MISC] (scalbnf): Likewise.
18445 [__USE_ISOC99] (scalblnf): Likewise.
18446 [__USE_ISOC99] (nearbyintf): Likewise.
18447 [__USE_ISOC99] (lrintf): Likewise.
18448 [__USE_MISC] (scalbnl): Likewise.
18449 [__USE_ISOC99] (scalblnl): Likewise.
18450 [__USE_ISOC99] (nearbyintl): Likewise.
18451 [__USE_ISOC99] (lrintl): Likewise.
18452 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18453 __inline_mathop and __m81_defun changed.
18454
18455 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18456 CPU or FPU for ARM hard-float configurations.
18457
18458 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18459
18460 * nptl/tst-attr3.c: Include <libc-diag.h>.
18461 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18462
18463 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18464
18465 * string/tester.c (test_strncat): Also disable -Warray-bounds
18466 warnings for two tests.
18467
18468 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18469
18470 [BZ #22614]
18471 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18472 $(cc-pie-default) == yes.
18473 * config.make.in (cc-pie-default): New.
18474 * configure.ac (libc_cv_pie_default): Renamed to ...
18475 (libc_cv_cc_pie_default): This.
18476 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18477 * configure: Regenerated.
18478
18479 2017-12-18 Florian Weimer <fweimer@redhat.com>
18480
18481 [BZ #20204]
18482 ld.so: Harden dl-libc/libdl hooks.
18483 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18484 (rtld_active): New function.
18485 * dlfcn/dladdr.c (__dladdr): Call it.
18486 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18487 * dlfcn/dlclose.c (__dlcose): Likewise.
18488 * dlfcn/dlerror.c (__dlerror): Likewise.
18489 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18490 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18491 * dlfcn/dlopen.c (__dlopen): Likewise.
18492 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18493 * dlfcn/dlsym.c (__dlsym): Likewise.
18494 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18495 * libio/vtables.c (_IO_vtable_check): Likewise.
18496 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18497 (__libc_dlclose): Likewise.
18498 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18499 assignment.
18500
18501 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18502
18503 [BZ #22446]
18504 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18505 buffers for readlink input and output.
18506
18507 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18508
18509 [BZ #22624]
18510 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18511 inhibit_stack_protector.
18512
18513 [BZ #22624]
18514 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18515 inhibit_stack_protector.
18516
18517 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18518
18519 [BZ #22627]
18520 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18521 code and invocation.
18522
18523 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18524
18525 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18526
18527 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18528
18529 [BZ #22505]
18530 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18531
18532 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18533
18534 * sysdeps/s390/fpu/libm-test-ulps: Update.
18535
18536 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18537
18538 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18539
18540 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18541
18542 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18543 constants to s_sincosf.h file.
18544 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18545 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18546 implementation.
18547 * sysdeps/ieee754/flt-32/s_sincosf.h:
18548 New file.
18549
18550 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18551
18552 [BZ #14681]
18553 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18554 before mtrace.
18555
18556 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18557
18558 [BZ #19574]
18559 * INSTALL: Regenerated.
18560 * Makeconfig (real-static-start-installed-name): New.
18561 (pic-default): Updated for --enable-static-pie.
18562 (pie-default): New for --enable-static-pie.
18563 (default-pie-ldflag): Likewise.
18564 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18565 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18566 Replace $(static-start-installed-name) with
18567 $(real-static-start-installed-name).
18568 (+prectorT): Updated for --enable-static-pie.
18569 (+postctorT): Likewise.
18570 (CFLAGS-.o): Add $(pie-default).
18571 (CFLAGS-.op): Likewise.
18572 * NEWS: Mention --enable-static-pie.
18573 * config.h.in (ENABLE_STATIC_PIE): New.
18574 * configure.ac (--enable-static-pie): New configure option.
18575 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18576 (have-static-pie): Likewise.
18577 Enable static PIE if linker supports --no-dynamic-linker.
18578 (ENABLE_STATIC_PIE): New AC_DEFINE.
18579 (enable-static-pie): New LIBC_CONFIG_VAR.
18580 * configure: Regenerated.
18581 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18582 gr$(start-installed-name) for --enable-static-pie.
18583 (extra-objs): Likewise.
18584 (install-lib): Likewise.
18585 (extra-objs): Add static-reloc.o and static-reloc.os
18586 ($(objpfx)$(start-installed-name)): Also depend on
18587 $(objpfx)static-reloc.o.
18588 ($(objpfx)r$(start-installed-name)): New.
18589 ($(objpfx)g$(start-installed-name)): Also depend on
18590 $(objpfx)static-reloc.os.
18591 ($(objpfx)gr$(start-installed-name)): New.
18592 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18593 in libc.a.
18594 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18595 initimage.
18596 * csu/static-reloc.c: New file.
18597 * elf/Makefile (routines): Add dl-reloc-static-pie.
18598 (elide-routines.os): Likewise.
18599 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18600 (tst-tls1-static-non-pie-no-pie): New.
18601 * elf/dl-reloc-static-pie.c: New file.
18602 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18603 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18604 STATIC_PIE_BOOTSTRAP.
18605 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18606 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18607 (tests-static): Likewise.
18608 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18609 (tst-gmon-static-no-pie): New.
18610 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18611 (CRT-tst-gmon-static-pie): Likewise.
18612 (tst-gmon-static-pie-ENV): Likewise.
18613 (tests-special): Likewise.
18614 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18615 (clean-tst-gmon-static-pie-data): Likewise.
18616 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18617 * gmon/tst-gmon-static-pie.c: New file.
18618 * manual/install.texi: Document --enable-static-pie.
18619 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18620 (_dl_get_dl_main_map): Likewise.
18621 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18622 * sysdeps/x86_64/configure.ac: Likewise.
18623 * sysdeps/i386/configure: Regenerated.
18624 * sysdeps/x86_64/configure: Likewise.
18625 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18626 (ASFLAGS-.op): Likewise.
18627
18628 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18629
18630 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18631 * posix/tst-mmap-offset.c (fname): Use /tmp.
18632 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18633
18634 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18635
18636 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18637
18638 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18639
18640 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18641 errno.
18642
18643 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18644
18645 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18646 --with-float=hard for arm-linux-gnueabihf configurations.
18647
18648 [BZ #14121]
18649 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18650 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18651 ($(mo-installed)): Use $(objpfx)%.mo.
18652 (realclean): Remove rule.
18653
18654 * po/Makefile (linguas): Remove rule and dependencies.
18655 (linguas.mo): Likewise.
18656 (.PHONY): Do not depend on linguas and linguas.mo.
18657 (podir): Remove variable.
18658 (pofiles): Likewise.
18659 [$(pofiles)] (%.po): Remove rule.
18660
18661 * sysdeps/sparc/sparc32/Makefile
18662 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18663 start-of-line whitespace in argument of echo.
18664 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18665 with whitespace. Generate __wrap_.udiv alias.
18666 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18667 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18668 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18669 * sysdeps/sparc/sparc32/urem.S: Likewise.
18670
18671 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18672
18673 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18674 for aligned inputs.
18675
18676 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18677
18678 * benchtests/bench-strcmp.c: Print output in JSON format.
18679
18680 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18681
18682 2017-12-14 Florian Weimer <fweimer@redhat.com>
18683
18684 [BZ #22607]
18685 CVE-2017-1000409
18686 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18687 the expanded path string.
18688
18689 2017-12-14 Florian Weimer <fweimer@redhat.com>
18690
18691 [BZ #22606]
18692 CVE-2017-1000408
18693 * elf/dl-load.c (system_dirs): Update comment.
18694 (nsystem_dirs_len): Use array_length.
18695 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18696
18697 2017-12-14 Florian Weimer <fweimer@redhat.com>
18698
18699 Simplify compiling most of support/ outside of glibc.
18700 * support/check_addrinfo.c: Include <string.h>.
18701 * support/check_dns_packet.c: Likewise.
18702 * support/check_hostent.c: Likewise.
18703 * support/support_can_chroot.c: Include <support/xunistd.h>.
18704 * support/support_format_addrinfo.c: Include <stdlib.h>
18705 * support/support_format_dns_packet.c: Include <stdbool.h>.
18706 * support/support_format_hostent.c: Include <stdlib.h>.
18707 * support/support_format_netent.c: Likewise.
18708 * support/support_write_string.c: Include <support/xunistd.h>.
18709 * support/xdlfcn.c: Include <stddef.h>.
18710
18711 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18712
18713 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18714
18715 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18716 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18717
18718 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18719 (sysdeps_routines): Add memset-niagara7.
18720 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18721 Likewise.
18722 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18723 file.
18724 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18725 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18726 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18727 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18728 Add niagara7 option.
18729 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18730 memset.
18731
18732 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18733 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18734 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18735 Likewise.
18736 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18737 New file.
18738 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18739 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18740 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18741 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18742 and __memmove_niagara7.
18743 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18744 Add niagara7 option.
18745 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18746 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18747 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18748 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18749 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18750
18751 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18752
18753 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18754 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18755 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18756 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18757
18758 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18759 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18760 _dl_sparc_cap_flags array.
18761 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18762
18763 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18764
18765 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18766 time whenever possible.
18767
18768 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18769
18770 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18771 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18772
18773 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18774
18775 * soft-fp/fmadf4.c: Move to ....
18776 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18777 * soft-fp/fmasf4.c: Move to ....
18778 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18779 * soft-fp/fmatf4.c: Move to ....
18780 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18781 * sysdeps/ieee754/soft-fp/Makefile: New file.
18782 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18783 * sysdeps/arm/preconfigure: Regenerated.
18784 * sysdeps/arm/nofpu/Implies: New file.
18785 * sysdeps/arm/s_fma.c: Remove file.
18786 * sysdeps/arm/s_fmaf.c: Likewise.
18787 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18788 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18789 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18790 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18791 * sysdeps/microblaze/s_fma.c: Remove file.
18792 * sysdeps/microblaze/s_fmaf.c: Likewise.
18793 * sysdeps/mips/mips32/nofpu/Implies: New file.
18794 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18795 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18796 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18797 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18798 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18799 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18800 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18801 implementation.
18802 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18803 * sysdeps/nios2/s_fma.c: Remove file.
18804 * sysdeps/nios2/s_fmaf.c: Likewise.
18805 * sysdeps/sh/nofpu/Implies: New file.
18806 * sysdeps/sh/s_fma.c: Remove file.
18807 * sysdeps/sh/s_fmaf.c: Likewise.
18808 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18809 * sysdeps/tile/s_fma.c: Remove file.
18810 * sysdeps/tile/s_fmaf.c: Likewise.
18811
18812 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18813
18814 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18815 Add s_cosf-sse2 and s_cosf-fma.
18816 (CFLAGS-s_cosf-fma.c): New.
18817 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18818 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18819 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18820
18821 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18822
18823 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18824
18825 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18826
18827 * libio/Makefile (tests): Add tst-bz22415.
18828 (tst-bz22415-ENV): New rule.
18829 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18830 (tests-special): Add tst-bz22415-mem.out.
18831 ($(objpfx)tst-bz22415-mem.out): New rule.
18832 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18833 in case of a successful seek operation.
18834 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18835 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18836 buffer is required.
18837 * libio/tst-bz22415.c: New test.
18838
18839 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18840
18841 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18842
18843 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18844 __IPC_64 to 0 to avoid IPC_64 being set.
18845
18846 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18847
18848 [BZ #22593]
18849 * math/bits/mathcalls.h (nextafter): Remove const.
18850 (nexttoward): Likewise.
18851
18852 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18853
18854 * configure.ac (--with-fp): Remove configure option.
18855 (with_fp_cond): New variable.
18856 (libc_cv_with_fp): New configure test. Use this variable instead
18857 of with_fp.
18858 * configure: Regenerated.
18859 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18860 * manual/install.texi (Configuring and compiling): Remove
18861 --without-fp.
18862 * INSTALL: Regenerated.
18863 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18864 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18865 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18866 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18867 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18868 use --without-fp to configure glibc.
18869
18870 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18871
18872 * manual/locale.texi (nl_langinfo): Fix a typo.
18873
18874 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18875
18876 [BZ #22588]
18877 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18878
18879 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18880
18881 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18882 (CFLAGS-argp-parse.c): Likewise.
18883 (CFLAGS-argp-fmtstream.c): Likewise.
18884 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18885 (CPPFLAGS-sha512-crypt.c): Likewise.
18886 (CPPFLAGS-md5-crypt.c): Likewise.
18887 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18888 (CFLAGS-stack_chk_fail_local.c): Likewise.
18889 (CFLAGS-backtrace.c): Likewise.
18890 (CFLAGS-sprintf_chk.c): Likewise.
18891 (CFLAGS-snprintf_chk.c): Likewise.
18892 (CFLAGS-vsprintf_chk.c): Likewise.
18893 (CFLAGS-vsnprintf_chk.c): Likewise.
18894 (CFLAGS-asprintf_chk.c): Likewise.
18895 (CFLAGS-vasprintf_chk.c): Likewise.
18896 (CFLAGS-obprintf_chk.c): Likewise.
18897 (CFLAGS-dprintf_chk.c): Likewise.
18898 (CFLAGS-vdprintf_chk.c): Likewise.
18899 (CFLAGS-printf_chk.c): Likewise.
18900 (CFLAGS-fprintf_chk.c): Likewise.
18901 (CFLAGS-vprintf_chk.c): Likewise.
18902 (CFLAGS-vfprintf_chk.c): Likewise.
18903 (CFLAGS-gets_chk.c): Likewise.
18904 (CFLAGS-fgets_chk.c): Likewise.
18905 (CFLAGS-fgets_u_chk.c): Likewise.
18906 (CFLAGS-fread_chk.c): Likewise.
18907 (CFLAGS-fread_u_chk.c): Likewise.
18908 (CFLAGS-swprintf_chk.c): Likewise.
18909 (CFLAGS-vswprintf_chk.c): Likewise.
18910 (CFLAGS-wprintf_chk.c): Likewise.
18911 (CFLAGS-fwprintf_chk.c): Likewise.
18912 (CFLAGS-vwprintf_chk.c): Likewise.
18913 (CFLAGS-vfwprintf_chk.c): Likewise.
18914 (CFLAGS-fgetws_chk.c): Likewise.
18915 (CFLAGS-fgetws_u_chk.c): Likewise.
18916 (CFLAGS-read_chk.c): Likewise.
18917 (CFLAGS-pread_chk.c): Likewise.
18918 (CFLAGS-pread64_chk.c): Likewise.
18919 (CFLAGS-recv_chk.c): Likewise.
18920 (CFLAGS-recvfrom_chk.c): Likewise.
18921 (CFLAGS-tst-longjmp_chk.c): Likewise.
18922 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18923 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18924 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18925 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18926 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18927 (CFLAGS-tst-chk1.c): Likewise.
18928 (CFLAGS-tst-chk2.c): Likewise.
18929 (CFLAGS-tst-chk3.c): Likewise.
18930 (CFLAGS-tst-chk4.cc): Likewise.
18931 (CFLAGS-tst-chk5.cc): Likewise.
18932 (CFLAGS-tst-chk6.cc): Likewise.
18933 (CFLAGS-tst-lfschk1.c): Likewise.
18934 (CFLAGS-tst-lfschk2.c): Likewise.
18935 (CFLAGS-tst-lfschk3.c): Likewise.
18936 (CFLAGS-tst-lfschk4.cc): Likewise.
18937 (CFLAGS-tst-lfschk5.cc): Likewise.
18938 (CFLAGS-tst-lfschk6.cc): Likewise.
18939 (CFLAGS-tst-ssp-1.c): Likewise.
18940 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18941 (CFLAGS-scandir64.c): Likewise.
18942 (CFLAGS-scandir-tail.c): Likewise.
18943 (CFLAGS-scandir64-tail.c): Likewise.
18944 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18945 (CFLAGS-dl-tunables.c): Likewise.
18946 (CFLAGS-dl-runtime.c): Likewise.
18947 (CFLAGS-dl-lookup.c): Likewise.
18948 (CFLAGS-dl-iterate-phdr.c): Likewise.
18949 (CFLAGS-vismain.c): Likewise.
18950 (CFLAGS-tst-linkall-static.c): Likewise.
18951 (CFLAGS-tst-linkall-static.c): Likewise.
18952 (CPPFLAGS-dl-load.c): Likewise.
18953 (CFLAGS-ldconfig.c): Likewise.
18954 (CFLAGS-dl-cache.c): Likewise.
18955 (CFLAGS-cache.c): Likewise.
18956 (CFLAGS-rtld.c): Likewise.
18957 (CFLAGS-multiload.c): Likewise.
18958 (CFLAGS-filtmod1.c): Likewise.
18959 (CFLAGS-tst-align.c): Likewise.
18960 (CFLAGS-tst-align2.c): Likewise.
18961 (CFLAGS-tst-alignmod.c): Likewise.
18962 (CFLAGS-tst-alignmod2.c): Likewise.
18963 (CPPFLAGS-tst-execstack.c): Likewise.
18964 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18965 (CFLAGS-tst-latepthreadmod.c): Likewise.
18966 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18967 (CFLAGS-getgrnam_r.c): Likewise.
18968 (CFLAGS-getgrent_r.c): Likewise.
18969 (CFLAGS-getgrent.c): Likewise.
18970 (CFLAGS-fgetgrent.c): Likewise.
18971 (CFLAGS-fgetgrent_r.c): Likewise.
18972 (CFLAGS-putgrent.c): Likewise.
18973 (CFLAGS-initgroups.c): Likewise.
18974 (CFLAGS-getgrgid.c): Likewise.
18975 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18976 (CFLAGS-getsgent.c): Likewise.
18977 (CFLAGS-fgetsgent.c): Likewise.
18978 (CFLAGS-fgetsgent_r.c): Likewise.
18979 (CFLAGS-putsgent.c): Likewise.
18980 (CFLAGS-getsgnam.c): Likewise.
18981 (CFLAGS-getsgnam_r.c): Likewise.
18982 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18983 (CFLAGS-iconv_charmap.c): Likewise.
18984 (CFLAGS-dummy-repertoire.c): Likewise.
18985 (CFLAGS-charmap.c): Likewise.
18986 (CFLAGS-linereader.c): Likewise.
18987 (CFLAGS-simple-hash.c): Likewise.
18988 (CFLAGS-gconv_conf.c): Likewise.
18989 (CFLAGS-iconvconfig.c): Likewise.
18990 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18991 (CFLAGS-gethstbyad.c): Likewise.
18992 (CFLAGS-gethstbynm_r.c): Likewise.
18993 (CFLAGS-gethstbynm.c): Likewise.
18994 (CFLAGS-gethstbynm2_r.c): Likewise.
18995 (CFLAGS-gethstbynm2.c): Likewise.
18996 (CFLAGS-gethstent_r.c): Likewise.
18997 (CFLAGS-gethstent.c): Likewise.
18998 (CFLAGS-rcmd.c): Likewise.
18999 (CFLAGS-getnetbynm_r.c): Likewise.
19000 (CFLAGS-getnetbynm.c): Likewise.
19001 (CFLAGS-getnetbyad_r.c): Likewise.
19002 (CFLAGS-getnetbyad.c): Likewise.
19003 (CFLAGS-getnetent_r.c): Likewise.
19004 (CFLAGS-getnetent.c): Likewise.
19005 (CFLAGS-getaliasent_r.c): Likewise.
19006 (CFLAGS-getaliasent.c): Likewise.
19007 (CFLAGS-getrpcent_r.c): Likewise.
19008 (CFLAGS-getrpcent.c): Likewise.
19009 (CFLAGS-getservent_r.c): Likewise.
19010 (CFLAGS-getservent.c): Likewise.
19011 (CFLAGS-getprtent_r.c): Likewise.
19012 (CFLAGS-getprtent.c): Likewise.
19013 (CFLAGS-either_ntoh.c): Likewise.
19014 (CFLAGS-either_hton.c): Likewise.
19015 (CFLAGS-getnetgrent.c): Likewise.
19016 (CFLAGS-getnetgrent_r.c): Likewise.
19017 (CFLAGS-tst-checks-posix.c): Likewise.
19018 (CFLAGS-tst-sockaddr.c): Likewise.
19019 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
19020 (CFLAGS-tst-translit.c): Likewise.
19021 (CFLAGS-tst-gettext2.c): Likewise.
19022 (CFLAGS-tst-codeset.c): Likewise.
19023 (CFLAGS-tst-gettext3.c): Likewise.
19024 (CFLAGS-tst-gettext4.c): Likewise.
19025 (CFLAGS-tst-gettext5.c): Likewise.
19026 (CFLAGS-tst-gettext6.c): Likewise.
19027 * io/Makefile (CFLAGS-open.c): Likewise.
19028 (CFLAGS-open64.c): Likewise.
19029 (CFLAGS-creat.c): Likewise.
19030 (CFLAGS-creat64.c): Likewise.
19031 (CFLAGS-fcntl.c): Likewise.
19032 (CFLAGS-poll.c): Likewise.
19033 (CFLAGS-ppoll.c): Likewise.
19034 (CFLAGS-lockf.c): Likewise.
19035 (CFLAGS-statfs.c): Likewise.
19036 (CFLAGS-fstatfs.c): Likewise.
19037 (CFLAGS-statvfs.c): Likewise.
19038 (CFLAGS-fstatvfs.c): Likewise.
19039 (CFLAGS-fts.c): Likewise.
19040 (CFLAGS-fts64.c): Likewise.
19041 (CFLAGS-ftw.c): Likewise.
19042 (CFLAGS-ftw64.c): Likewise.
19043 (CFLAGS-lockf.c): Likewise.
19044 (CFLAGS-posix_fallocate.c): Likewise.
19045 (CFLAGS-posix_fallocate64.c): Likewise.
19046 (CFLAGS-fallocate.c): Likewise.
19047 (CFLAGS-fallocate64.c): Likewise.
19048 (CFLAGS-read.c): Likewise.
19049 (CFLAGS-write.c): Likewise.
19050 (CFLAGS-test-stat.c): Likewise.
19051 (CFLAGS-test-lfs.c): Likewise.
19052 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19053 (CFLAGS-fputc.c): Likewise.
19054 (CFLAGS-fputwc.c): Likewise.
19055 (CFLAGS-freopen64.c): Likewise.
19056 (CFLAGS-freopen.c): Likewise.
19057 (CFLAGS-fseek.c): Likewise.
19058 (CFLAGS-fseeko64.c): Likewise.
19059 (CFLAGS-fseeko.c): Likewise.
19060 (CFLAGS-ftello64.c): Likewise.
19061 (CFLAGS-ftello.c): Likewise.
19062 (CFLAGS-fwide.c): Likewise.
19063 (CFLAGS-genops.c): Likewise.
19064 (CFLAGS-getc.c): Likewise.
19065 (CFLAGS-getchar.c): Likewise.
19066 (CFLAGS-getwc.c): Likewise.
19067 (CFLAGS-getwchar.c): Likewise.
19068 (CFLAGS-iofclose.c): Likewise.
19069 (CFLAGS-iofflush.c): Likewise.
19070 (CFLAGS-iofgetpos64.c): Likewise.
19071 (CFLAGS-iofgetpos.c): Likewise.
19072 (CFLAGS-iofgets.c): Likewise.
19073 (CFLAGS-iofgetws.c): Likewise.
19074 (CFLAGS-iofputs.c): Likewise.
19075 (CFLAGS-iofputws.c): Likewise.
19076 (CFLAGS-iofread.c): Likewise.
19077 (CFLAGS-iofsetpos64.c): Likewise.
19078 (CFLAGS-iofsetpos.c): Likewise.
19079 (CFLAGS-ioftell.c): Likewise.
19080 (CFLAGS-iofwrite.c): Likewise.
19081 (CFLAGS-iogetdelim.c): Likewise.
19082 (CFLAGS-iogetline.c): Likewise.
19083 (CFLAGS-iogets.c): Likewise.
19084 (CFLAGS-iogetwline.c): Likewise.
19085 (CFLAGS-ioputs.c): Likewise.
19086 (CFLAGS-ioseekoff.c): Likewise.
19087 (CFLAGS-ioseekpos.c): Likewise.
19088 (CFLAGS-iosetbuffer.c): Likewise.
19089 (CFLAGS-iosetvbuf.c): Likewise.
19090 (CFLAGS-ioungetc.c): Likewise.
19091 (CFLAGS-ioungetwc.c): Likewise.
19092 (CFLAGS-oldfileops.c): Likewise.
19093 (CFLAGS-oldiofclose.c): Likewise.
19094 (CFLAGS-oldiofgetpos64.c): Likewise.
19095 (CFLAGS-oldiofgetpos.c): Likewise.
19096 (CFLAGS-oldiofsetpos64.c): Likewise.
19097 (CFLAGS-oldiofsetpos.c): Likewise.
19098 (CFLAGS-peekc.c): Likewise.
19099 (CFLAGS-putc.c): Likewise.
19100 (CFLAGS-putchar.c): Likewise.
19101 (CFLAGS-putwc.c): Likewise.
19102 (CFLAGS-putwchar.c): Likewise.
19103 (CFLAGS-rewind.c): Likewise.
19104 (CFLAGS-wfileops.c): Likewise.
19105 (CFLAGS-wgenops.c): Likewise.
19106 (CFLAGS-oldiofopen.c): Likewise.
19107 (CFLAGS-iofopen.c): Likewise.
19108 (CFLAGS-iofopen64.c): Likewise.
19109 (CFLAGS-oldtmpfile.c): Likewise.
19110 (CFLAGS-tst_putwc.c): Likewise.
19111 * locale/Makefile (CFLAGS-md5.c): Likewise.
19112 (CFLAGS-charmap.c): Likewise.
19113 (CFLAGS-locfile.c): Likewise.
19114 (CFLAGS-charmap-dir.c): Likewise.
19115 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19116 (CFLAGS-getpt.c): Likewise.
19117 (CFLAGS-pt_chown.c): Likewise.
19118 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19119 (CFLAGS-obstack.c): Likewise.
19120 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19121 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19122 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19123 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19124 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19125 (CFLAGS-test-tgmath.c): Likewise.
19126 (CFLAGS-test-tgmath2.c): Likewise.
19127 (CFLAGS-test-tgmath-ret.c): Likewise.
19128 (CFLAGS-test-powl.c): Likewise.
19129 (CFLAGS-test-snan.c): Likewise.
19130 (CFLAGS-test-signgam-finite.c): Likewise.
19131 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19132 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19133 (CFLAGS-test-signgam-uchar.c): Likewise.
19134 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19135 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19136 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19137 (CFLAGS-test-signgam-uint.c): Likewise.
19138 (CFLAGS-test-signgam-uint-init.c): Likewise.
19139 (CFLAGS-test-signgam-uint-static.c): Likewise.
19140 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19141 (CFLAGS-test-signgam-ullong.c): Likewise.
19142 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19143 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19144 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19145 (CFLAGS-test-math-cxx11.cc): Likewise.
19146 (CFLAGS-test-math-isinff.cc): Likewise.
19147 (CFLAGS-test-math-iszero.cc): Likewise.
19148 (CFLAGS-test-math-issignaling.cc): Likewise.
19149 (CFLAGS-test-math-iscanonical.cc): Likewise.
19150 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19151 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19152 (CFLAGS-test-flt-eval-method.c): Likewise.
19153 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19154 (CFLAGS-test-finite-macros.c): Likewise.
19155 * misc/Makefile (CFLAGS-select.c): Likewise.
19156 (CFLAGS-tsearch.c): Likewise.
19157 (CFLAGS-lsearch.c): Likewise.
19158 (CFLAGS-pselect.c): Likewise.
19159 (CFLAGS-readv.c): Likewise.
19160 (CFLAGS-writev.c): Likewise.
19161 (CFLAGS-preadv.c): Likewise.
19162 (CFLAGS-preadv64.c): Likewise.
19163 (CFLAGS-pwritev.c): Likewise.
19164 (CFLAGS-pwritev64.c): Likewise.
19165 (CFLAGS-preadv2.c): Likewise.
19166 (CFLAGS-preadv64v2.c): Likewise.
19167 (CFLAGS-pwritev2.c): Likewise.
19168 (CFLAGS-pwritev64v2.c): Likewise.
19169 (CFLAGS-usleep.c): Likewise.
19170 (CFLAGS-syslog.c): Likewise.
19171 (CFLAGS-error.c): Likewise.
19172 (CFLAGS-getpass.c): Likewise.
19173 (CFLAGS-mkstemp.c): Likewise.
19174 (CFLAGS-mkstemp64.c): Likewise.
19175 (CFLAGS-getsysstats.c): Likewise.
19176 (CFLAGS-getusershell.c): Likewise.
19177 (CFLAGS-err.c): Likewise.
19178 (CFLAGS-tst-tsearch.c): Likewise.
19179 (CFLAGS-msync.c): Likewise.
19180 (CFLAGS-fdatasync.c): Likewise.
19181 (CFLAGS-fsync.c): Likewise.
19182 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19183 (CFLAGS-unwind.c): Likewise.
19184 (CFLAGS-unwind-forcedunwind.c): Likewise.
19185 (CFLAGS-pthread_cancel.c): Likewise.
19186 (CFLAGS-pthread_setcancelstate.c): Likewise.
19187 (CFLAGS-pthread_setcanceltype.c): Likewise.
19188 (CFLAGS-cancellation.c): Likewise.
19189 (CFLAGS-libc-cancellation.c): Likewise.
19190 (CFLAGS-pthread_exit.c): Likewise.
19191 (CFLAGS-forward.c): Likewise.
19192 (CFLAGS-pthread_testcancel.c): Likewise.
19193 (CFLAGS-pthread_join.c): Likewise.
19194 (CFLAGS-pthread_timedjoin.c): Likewise.
19195 (CFLAGS-pthread_once.c): Likewise.
19196 (CFLAGS-pthread_cond_wait.c): Likewise.
19197 (CFLAGS-sem_wait.c): Likewise.
19198 (CFLAGS-sem_timedwait.c): Likewise.
19199 (CFLAGS-fcntl.c): Likewise.
19200 (CFLAGS-lockf.c): Likewise.
19201 (CFLAGS-pread.c): Likewise.
19202 (CFLAGS-pread64.c): Likewise.
19203 (CFLAGS-pwrite.c): Likewise.
19204 (CFLAGS-pwrite64.c): Likewise.
19205 (CFLAGS-wait.c): Likewise.
19206 (CFLAGS-waitpid.c): Likewise.
19207 (CFLAGS-sigwait.c): Likewise.
19208 (CFLAGS-msgrcv.c): Likewise.
19209 (CFLAGS-msgsnd.c): Likewise.
19210 (CFLAGS-tcdrain.c): Likewise.
19211 (CFLAGS-open.c): Likewise.
19212 (CFLAGS-open64.c): Likewise.
19213 (CFLAGS-pause.c): Likewise.
19214 (CFLAGS-recv.c): Likewise.
19215 (CFLAGS-send.c): Likewise.
19216 (CFLAGS-accept.c): Likewise.
19217 (CFLAGS-sendto.c): Likewise.
19218 (CFLAGS-connect.c): Likewise.
19219 (CFLAGS-recvfrom.c): Likewise.
19220 (CFLAGS-recvmsg.c): Likewise.
19221 (CFLAGS-sendmsg.c): Likewise.
19222 (CFLAGS-close.c): Likewise.
19223 (CFLAGS-read.c): Likewise.
19224 (CFLAGS-write.c): Likewise.
19225 (CFLAGS-nanosleep.c): Likewise.
19226 (CFLAGS-sigsuspend.c): Likewise.
19227 (CFLAGS-msync.c): Likewise.
19228 (CFLAGS-fdatasync.c): Likewise.
19229 (CFLAGS-fsync.c): Likewise.
19230 (CFLAGS-pt-system.c): Likewise.
19231 (CFLAGS-tst-cleanup2.c): Likewise.
19232 (CFLAGS-tst-cleanupx2.c): Likewise.
19233 (CFLAGS-flockfile.c): Likewise.
19234 (CFLAGS-ftrylockfile.c): Likewise.
19235 (CFLAGS-funlockfile.c): Likewise.
19236 (CFLAGS-tst-initializers1.c): Likewise.
19237 (CFLAGS-tst-initializers1-c89.c): Likewise.
19238 (CFLAGS-tst-initializers1-c99.c): Likewise.
19239 (CFLAGS-tst-initializers1-c11.c): Likewise.
19240 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19241 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19242 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19243 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19244 (CFLAGS-nscd_getgr_r.c): Likewise.
19245 (CFLAGS-nscd_gethst_r.c): Likewise.
19246 (CFLAGS-nscd_getai.c): Likewise.
19247 (CFLAGS-nscd_initgroups.c): Likewise.
19248 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19249 (CFLAGS-pause.c): Likewise.
19250 (CFLAGS-pread.c): Likewise.
19251 (CFLAGS-pread64.c): Likewise.
19252 (CFLAGS-pwrite.c): Likewise.
19253 (CFLAGS-pwrite64.c): Likewise.
19254 (CFLAGS-sleep.c): Likewise.
19255 (CFLAGS-wait.c): Likewise.
19256 (CFLAGS-waitid.c): Likewise.
19257 (CFLAGS-waitpid.c): Likewise.
19258 (CFLAGS-getopt.c): Likewise.
19259 (CFLAGS-wordexp.c): Likewise.
19260 (CFLAGS-sysconf.c): Likewise.
19261 (CFLAGS-pathconf.c): Likewise.
19262 (CFLAGS-fpathconf.c): Likewise.
19263 (CFLAGS-spawn.c): Likewise.
19264 (CFLAGS-spawnp.c): Likewise.
19265 (CFLAGS-spawni.c): Likewise.
19266 (CFLAGS-glob.c): Likewise.
19267 (CFLAGS-glob64.c): Likewise.
19268 (CFLAGS-getconf.c): Likewise.
19269 (CFLAGS-nanosleep.c): Likewise.
19270 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19271 (CFLAGS-getpwent.c): Likewise.
19272 (CFLAGS-getpw.c): Likewise.
19273 (CFLAGS-fgetpwent_r.c): Likewise.
19274 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19275 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19276 (CFLAGS-mq_timedreceive.c): Likewise.
19277 (CFLAGS-mq_timedsend.c): Likewise.
19278 (CFLAGS-clock_nanosleep.c): Likewise.
19279 (CFLAGS-librt-cancellation.c): Likewise.
19280 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19281 (CFLAGS-getspent.c): Likewise.
19282 (CFLAGS-fgetspent.c): Likewise.
19283 (CFLAGS-fgetspent_r.c): Likewise.
19284 (CFLAGS-putspent.c): Likewise.
19285 (CFLAGS-getspnam.c): Likewise.
19286 (CFLAGS-getspnam_r.c): Likewise.
19287 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19288 (CFLAGS-sigsuspend.c): Likewise.
19289 (CFLAGS-sigtimedwait.c): Likewise.
19290 (CFLAGS-sigwait.c): Likewise.
19291 (CFLAGS-sigwaitinfo.c): Likewise.
19292 (CFLAGS-sigreturn.c): Likewise.
19293 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19294 (CFLAGS-vfwprintf.c): Likewise.
19295 (CFLAGS-tmpfile.c): Likewise.
19296 (CFLAGS-tmpfile64.c): Likewise.
19297 (CFLAGS-tempname.c): Likewise.
19298 (CFLAGS-psignal.c): Likewise.
19299 (CFLAGS-vprintf.c): Likewise.
19300 (CFLAGS-cuserid.c): Likewise.
19301 (CFLAGS-errlist.c): Likewise.
19302 (CFLAGS-siglist.c): Likewise.
19303 (CFLAGS-scanf15.c): Likewise.
19304 (CFLAGS-scanf17.c): Likewise.
19305 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19306 (CFLAGS-msort.c): Likewise.
19307 (CFLAGS-qsort.c): Likewise.
19308 (CFLAGS-system.c): Likewise.
19309 (CFLAGS-fmtmsg.c): Likewise.
19310 (CFLAGS-strfmon.c): Likewise.
19311 (CFLAGS-strfmon_l.c): Likewise.
19312 (CFLAGS-strfromd.c): Likewise.
19313 (CFLAGS-strfromf.c): Likewise.
19314 (CFLAGS-strfroml.c): Likewise.
19315 (CFLAGS-tst-bsearch.c): Likewise.
19316 (CFLAGS-tst-qsort.c): Likewise.
19317 (CFLAGS-tst-makecontext2.c): Likewise.
19318 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19319 (CFLAGS-xnlm_prot.c): Likewise.
19320 (CFLAGS-xrstat.c): Likewise.
19321 (CFLAGS-xyppasswd.c): Likewise.
19322 (CFLAGS-xklm_prot.c): Likewise.
19323 (CFLAGS-xrex.c): Likewise.
19324 (CFLAGS-xsm_inter.c): Likewise.
19325 (CFLAGS-xmount.c): Likewise.
19326 (CFLAGS-xrusers.c): Likewise.
19327 (CFLAGS-xspray.c): Likewise.
19328 (CFLAGS-xnfs_prot.c): Likewise.
19329 (CFLAGS-xrquota.c): Likewise.
19330 (CFLAGS-xkey_prot.c): Likewise.
19331 (CFLAGS-auth_unix.c): Likewise.
19332 (CFLAGS-key_call.c): Likewise.
19333 (CFLAGS-pmap_rmt.c): Likewise.
19334 (CFLAGS-clnt_perr.c): Likewise.
19335 (CFLAGS-openchild.c): Likewise.
19336 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19337 (CFLAGS-msgsnd.c): Likewise.
19338 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19339 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19340 (CFLAGS-tzset.c): Likewise.
19341 (CFLAGS-getdate.c): Likewise.
19342 (CFLAGS-test_time.c): Likewise.
19343 (CPPFLAGS-tst-tzname.c): Likewise.
19344 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19345 (CFLAGS-zic.c): Likewise.
19346 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19347 (CFLAGS-wcswidth.c): Likewise.
19348 (CFLAGS-wcstol.c): Likewise.
19349 (CFLAGS-wcstoul.c): Likewise.
19350 (CFLAGS-wcstoll.c): Likewise.
19351 (CFLAGS-wcstoull.c): Likewise.
19352 (CFLAGS-wcstod.c): Likewise.
19353 (CFLAGS-wcstold.c): Likewise.
19354 (CFLAGS-wcstof128.c): Likewise.
19355 (CFLAGS-wcstof.c): Likewise.
19356 (CFLAGS-wcstol_l.c): Likewise.
19357 (CFLAGS-wcstoul_l.c): Likewise.
19358 (CFLAGS-wcstoll_l.c): Likewise.
19359 (CFLAGS-wcstoull_l.c): Likewise.
19360 (CFLAGS-wcstod_l.c): Likewise.
19361 (CFLAGS-wcstold_l.c): Likewise.
19362 (CFLAGS-wcstof128_l.c): Likewise.
19363 (CFLAGS-wcstof_l.c): Likewise.
19364 (CPPFLAGS-tst-wchar-h.c): Likewise.
19365 (CPPFLAGS-wcstold_l.c): Likewise.
19366
19367 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19368
19369 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19370
19371 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19372 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19373
19374 * manual/tunables.texi (Hardware Capability Tunables): Document
19375 glibc.tune.cached_memopt.
19376 * sysdeps/powerpc/cpu-features.c: New file.
19377 * sysdeps/powerpc/cpu-features.h: New file.
19378 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19379 _dl_powerpc_cpu_features.
19380 * sysdeps/powerpc/dl-tunables.list: New file.
19381 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19382 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19383 (INIT_ARCH): Initialize use_aligned_memopt.
19384 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19385 IS_IN(rtld))]: Restrict dl_platform_init availability and
19386 initialize CPU features used by tunables.
19387 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19388 Add memcpy-power8-cached.
19389 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19390 __memcpy_power8_cached.
19391 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19392 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19393 New file.
19394
19395 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19396
19397 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19398 (CFLAGS-noinl-tester.c): Likewise.
19399 (CFLAGS-tst-strlen.c): Likewise.
19400 (CFLAGS-stratcliff.c): Likewise.
19401 (CFLAGS-test-ffs.c): Likewise.
19402 (CFLAGS-tst-inlcall.c): Likewise.
19403 (CFLAGS-tst-xbzero-opt.c): Likewise.
19404 (CFLAGS-memcpy.c): Likewise.
19405 (CFLAGS-wordcopy.c): Likewise.
19406
19407 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19408
19409 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19410 Store r15 on stack and add cfi rule.
19411 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19412 Likewise.
19413
19414 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19415
19416 [BZ #22577]
19417 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19418 call.
19419
19420 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19421
19422 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19423 Add s_sinf-sse2 and s_sinf-fma.
19424 (CFLAGS-s_sinf-fma.c): New.
19425 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19426 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19427 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19428
19429 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19430
19431 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19432
19433 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19434
19435 [BZ #22568]
19436 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19437 part of result to imaginary part of argument if it is zero and the
19438 real part of the argument is not finite.
19439 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19440 of result to real part of argument if it is zero and the imaginary
19441 part of the argument is not finite.
19442
19443 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19444
19445 [BZ #22524]
19446 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19447 and to the list of locales to be built for testing.
19448 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19449 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19450 and build the collation rules upon that.
19451
19452 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19453
19454 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19455 * manual/math.texi (Mathematics): Document support for _Float32.
19456 * math/Makefile (test-types): Add float32.
19457 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19458 * stdlib/Versions (GLIBC_2.27): Likewise.
19459 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19460 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19461 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19462 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19463 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19464 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19465 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19466 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19467 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19469 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19470 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19471 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19472 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19473 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19474 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19475 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19476 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19477 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19478 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19479 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19480 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19481 Likewise.
19482 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19483 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19484 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19485 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19486 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19488 Likewise.
19489 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19490 Likewise.
19491 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19492 Likewise.
19493 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19494 Likewise.
19495
19496 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19497 Likewise.
19498 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19499 Likewise.
19500 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19501 Likewise.
19502 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19503 Likewise.
19504 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19505 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19506 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19507 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19508 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19509 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19510 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19511 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19512 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19513 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19514 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19515 Likewise.
19516 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19517 Likewise.
19518 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19519 Likewise.
19520 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19521 Likewise.
19522 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19523 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19524 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19525 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19526 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19527 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19528 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19529 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19530
19531 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19532
19533 * stdlib/strtof.c: Include <bits/floatn.h>
19534 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19535 and later undefine as macro. Define as weak alias if
19536 [!USE_WIDE_CHAR].
19537 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19538 and later undefine as macro. Define as weak alias if
19539 [USE_WIDE_CHAR].
19540 * stdlib/strtof_l.c: Include <bits/floatn.h>
19541 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19542 and later undefine as macro. Define as weak alias if
19543 [!USE_WIDE_CHAR].
19544 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19545 and later undefine as macro. Define as weak alias if
19546 [USE_WIDE_CHAR].
19547
19548 * stdlib/strfromf.c: Include <bits/floatn.h>.
19549 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19550 and later undefine as macro and define as weak alias.
19551
19552 * math/test-float32.h: New file.
19553
19554 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19555 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19556 (libm_alias_float_other_r): Create f32 alias.
19557 (libm_alias_float_r): Use semicolon before call to
19558 libm_alias_float_other_r.
19559
19560 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19561 second argument to libm_alias_float_other.
19562 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19563 second argument to libm_alias_float_other.
19564 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19565 argument to libm_alias_float_other.
19566
19567 [BZ #22561]
19568 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19569 real part of result for argument 0 + i * NaN.
19570 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19571 results for tests of 0 + i * NaN.
19572
19573 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19574
19575 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19576
19577 2017-12-06 David S. Miller <davem@davemloft.net>
19578
19579 * sysdeps/sparc/fpu/libm-test-ulps: Update
19580 exp_{downward,towardzero,upward} ulps.
19581
19582 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19583
19584 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19585 variables static.
19586
19587 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19588 (Y0_2D): Likewise.
19589 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19590 (Y0_2D): Likewise.
19591 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19592 (Y0_2D): Likewise.
19593 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19594 (Y0_2D): Likewise.
19595
19596 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19597
19598 [BZ #22515]
19599 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19600 and to the list of locales to be built for testing.
19601 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19602 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19603 and build the collation rules upon that.
19604
19605 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19606
19607 * NEWS: Add sinf to list of optimized functions.
19608
19609 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19610
19611 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19612 (__HAVE_FLOAT32X): Likewise.
19613 * manual/math.texi (Mathematics): Document support for _Float64
19614 and _Float32x.
19615 * math/Makefile (test-types): Add float64 and float32x.
19616 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19617 functions.
19618 * stdlib/Versions (GLIBC_2.27): Likewise.
19619 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19620 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19621 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19622 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19623 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19624 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19625 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19626 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19627 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19628 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19629 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19630 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19631 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19632 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19633 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19634 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19635 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19636 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19637 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19638 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19639 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19640 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19641 Likewise.
19642 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19643 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19644 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19645 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19646 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19647 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19648 Likewise.
19649 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19650 Likewise.
19651 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19652 Likewise.
19653 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19654 Likewise.
19655 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19656 Likewise.
19657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19658 Likewise.
19659 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19660 Likewise.
19661 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19662 Likewise.
19663 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19664 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19665 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19666 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19667 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19668 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19669 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19670 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19671 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19672 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19673 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19674 Likewise.
19675 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19676 Likewise.
19677 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19678 Likewise.
19679 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19680 Likewise.
19681 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19682 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19683 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19684 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19685 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19686 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19687 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19688 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19689
19690 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19691
19692 * bits/floatn-common.h: Include <bits/long-double.h>.
19693 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19694 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19695 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19696 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19697 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19698 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19699 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19700 (__builtin_huge_valf64): Use __builtin_huge_vall.
19701 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19702 (__builtin_inff64): Use __builtin_infl.
19703 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19704 (__builtin_nanf64): Use __builtin_nanl.
19705 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19706 (__builtin_nansf64): Use __builtin_nansl.
19707
19708 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19709 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19710 Carlos O'Donnell <carlos@redhat.com>
19711
19712 * elf/dl-tunables.list: Add elision parameters.
19713 * manual/tunables.texi: Add entries about elision tunable.
19714 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19715 Add callback functions to dynamically enable/disable elision.
19716 Add multiple callbacks functions to set elision parameters.
19717 Deleted __libc_enable_secure check.
19718 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19719 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19720 * configure: Regenerated.
19721 * configure.ac: Option enable_lock_elision was deleted.
19722 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19723 * config.make.in: Remove references to enable_lock_elision.
19724 * manual/install.texi: Elision configure option was removed.
19725 * INSTALL: Regenerated to remove enable_lock_elision.
19726 * nptl/Makefile:
19727 Disable elision so it can verify error case for destroying a mutex.
19728 * sysdeps/powerpc/nptl/elide.h:
19729 Cleanup ENABLE_LOCK_ELISION check.
19730 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19731 * sysdeps/s390/configure: Regenerated.
19732 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19733 * nptl/tst-mutex8.c:
19734 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19735 * sysdeps/powerpc/powerpc32/sysdep.h:
19736 Deleted all ENABLE_LOCK_ELISION checks.
19737 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19738 * sysdeps/powerpc/sysdep.h: Likewise.
19739 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19740 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19741 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19742 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19743 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19744 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19745 enable-lock-elision.
19746
19747 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19748
19749 * stdlib/strtod.c: Include <bits/floatn.h>.
19750 (BUILD_DOUBLE): New macro.
19751 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19752 (strtof64): Define and later undefine as macro. Define as weak
19753 alias if [!USE_WIDE_CHAR].
19754 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19755 (wcstof64): Define and later undefine as macro. Define as weak
19756 alias if [USE_WIDE_CHAR].
19757 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19758 (strtof32x): Define and later undefine as macro. Define as weak
19759 alias if [!USE_WIDE_CHAR].
19760 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19761 (wcstof32x): Define and later undefine as macro. Define as weak
19762 alias if [USE_WIDE_CHAR].
19763 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19764 (BUILD_DOUBLE): New macro.
19765 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19766 (strtof64_l): Define and later undefine as macro. Define as weak
19767 alias if [!USE_WIDE_CHAR].
19768 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19769 (wcstof64_l): Define and later undefine as macro. Define as weak
19770 alias if [USE_WIDE_CHAR].
19771 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19772 (strtof32x_l): Define and later undefine as macro. Define as weak
19773 alias if [!USE_WIDE_CHAR].
19774 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19775 (wcstof32x_l): Define and later undefine as macro. Define as weak
19776 alias if [USE_WIDE_CHAR].
19777
19778 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19779
19780 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19781 (reduced): Use ones as double instead of integer.
19782
19783 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19784
19785 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19786
19787 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19788
19789 * stdlib/strfromd.c: Include <bits/floatn.h>.
19790 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19791 and later undefine as macro and define as weak alias.
19792 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19793 Likewise.
19794
19795 * math/test-float32x.h: New file.
19796 * math/test-float64.h: Likewise.
19797
19798 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19799 (libm_alias_double_other_r_f64): New macro.
19800 (libm_alias_double_other_r_f32x): Likewise.
19801 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19802 libm_alias_double_other_r_f32x.
19803 (libm_alias_double_r): Use semicolon before call to
19804 libm_alias_double_other_r.
19805 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19806 <bits/floatn.h>.
19807 (libm_alias_double_other_r_f64): New macro.
19808 (libm_alias_double_other_r_f32x): Likewise.
19809 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19810 libm_alias_double_other_r_f32x.
19811
19812 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19813
19814 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19815 int.
19816 (SINF_FUNC): Likewise. Replace floor with simple casts.
19817
19818 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19819
19820 [BZ #22517]
19821 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19822 and to the list of locales to be built for testing.
19823 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19824 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19825 and build the collation rules upon that.
19826
19827 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19828
19829 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19830 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19831 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19832 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19833 instead of __insn__xxx.
19834 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19835 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19836 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19837 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19838 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19839 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19840
19841 2017-12-05 Florian Weimer <fweimer@redhat.com>
19842
19843 Linux: Implement interfaces for memory protection keys
19844 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19845 xsignal, xsysconf.
19846 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19847 * support/xunistd.h (xsysconf): Declare.
19848 * support/xraise.c: New file.
19849 * support/xsigaction.c: Likewise.
19850 * support/xsignal.c: Likewise.
19851 * support/xsysconf.c: Likewise.
19852 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19853 pkey_set, pkey_get, pkey_mprotect.
19854 [misc] (tests): Add tst-pkey.
19855 (tst-pkey): Link with -lpthread.
19856 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19857 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19858 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19859 (PKEY_DISABLE_WRITE): Define.
19860 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19861 Declare.
19862 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19863 (SEGV_PKUERR): Add.
19864 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19865 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19866 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19867 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19868 Add.
19869 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19870 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19871 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19872 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19873 * sysdeps/unix/sysv/linux/**.abilist: Update.
19874
19875 2017-12-05 Florian Weimer <fweimer@redhat.com>
19876
19877 * support/tst-test_compare.c (subprocess): Use long long instead
19878 of long argument for consistent type width across 32-bit and
19879 64-bit architectures.
19880 (do_test): Adjust expected output.
19881
19882 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19883
19884 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19885 (cosf): Define using libm_alias_float.
19886 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19887 (fabsf): Define using libm_alias_float.
19888 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19889 (fmaf): Define using libm_alias_float.
19890 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19891 (rintf): Define using libm_alias_float.
19892 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19893 (sinf): Define using libm_alias_float.
19894 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19895 <libm-alias-float.h>.
19896 (modff): Define using libm_alias_float.
19897 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19898 <libm-alias-float.h>.
19899 (logbf): Define using libm_alias_float.
19900 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19901 <libm-alias-float.h>.
19902 (ceilf): Define using libm_alias_float.
19903 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19904 <libm-alias-float.h>.
19905 (copysignf): Define using libm_alias_float.
19906 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19907 <libm-alias-float.h>.
19908 (floorf): Define using libm_alias_float.
19909 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19910 <libm-alias-float.h>.
19911 (llrintf): Define using libm_alias_float.
19912 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19913 <libm-alias-float.h>.
19914 (llroundf): Define using libm_alias_float.
19915 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19916 <libm-alias-float.h>.
19917 (lrintf): Define using libm_alias_float.
19918 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19919 <libm-alias-float.h>.
19920 (lroundf): Define using libm_alias_float.
19921 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19922 <libm-alias-float.h>.
19923 (nearbyintf): Define using libm_alias_float.
19924 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19925 <libm-alias-float.h>.
19926 (rintf): Define using libm_alias_float.
19927 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19928 <libm-alias-float.h>.
19929 (roundf): Define using libm_alias_float.
19930 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19931 <libm-alias-float.h>.
19932 (truncf): Define using libm_alias_float.
19933 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19934 Include <libm-alias-float.h>.
19935 (ceilf): Define using libm_alias_float.
19936 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19937 Include <libm-alias-float.h>.
19938 (copysignf): Define using libm_alias_float.
19939 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19940 Include <libm-alias-float.h>.
19941 (floorf): Define using libm_alias_float.
19942 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19943 Include <libm-alias-float.h>.
19944 (llrintf): Define using libm_alias_float.
19945 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19946 Include <libm-alias-float.h>.
19947 (llroundf): Define using libm_alias_float.
19948 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19949 Include <libm-alias-float.h>.
19950 (logbf): Define using libm_alias_float.
19951 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19952 Include <libm-alias-float.h>.
19953 (lrintf): Define using libm_alias_float.
19954 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19955 Include <libm-alias-float.h>.
19956 (lroundf): Define using libm_alias_float.
19957 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19958 Include <libm-alias-float.h>.
19959 (modff): Define using libm_alias_float.
19960 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19961 Include <libm-alias-float.h>.
19962 (roundf): Define using libm_alias_float.
19963 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19964 Include <libm-alias-float.h>.
19965 (truncf): Define using libm_alias_float.
19966 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19967 <libm-alias-float.h>.
19968 (llrintf): Define using libm_alias_float.
19969 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19970 <libm-alias-float.h>.
19971 (llroundf): Define using libm_alias_float.
19972 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19973 <libm-alias-float.h>.
19974 (ceilf): Define using libm_alias_float.
19975 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19976 <libm-alias-float.h>.
19977 (floorf): Define using libm_alias_float.
19978 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19979 <libm-alias-float.h>.
19980 (llroundf): Define using libm_alias_float.
19981 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19982 <libm-alias-float.h>.
19983 (lroundf): Define using libm_alias_float.
19984 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19985 <libm-alias-float.h>.
19986 (roundf): Define using libm_alias_float.
19987 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19988 <libm-alias-float.h>.
19989 (truncf): Define using libm_alias_float.
19990 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19991 <libm-alias-float.h>.
19992 (copysignf): Define using libm_alias_float.
19993 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19994 <libm-alias-float.h>.
19995 (llrintf): Define using libm_alias_float.
19996 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19997 <libm-alias-float.h>.
19998 (llroundf): Define using libm_alias_float.
19999 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20000 <libm-alias-float.h>.
20001 (lrintf): Define using libm_alias_float.
20002 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20003 <libm-alias-float.h>.
20004 (lroundf): Define using libm_alias_float.
20005 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
20006 <libm-alias-float.h>.
20007 (ceilf): Define using libm_alias_float.
20008 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
20009 <libm-alias-float.h>.
20010 (copysignf): Define using libm_alias_float.
20011 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
20012 <libm-alias-float.h>.
20013 (cosf): Define using libm_alias_float.
20014 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
20015 <libm-alias-float.h>.
20016 (floorf): Define using libm_alias_float.
20017 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
20018 <libm-alias-float.h>.
20019 (llrintf): Define using libm_alias_float.
20020 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
20021 <libm-alias-float.h>.
20022 (llroundf): Define using libm_alias_float.
20023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
20024 <libm-alias-float.h>.
20025 (logbf): Define using libm_alias_float.
20026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
20027 <libm-alias-float.h>.
20028 (modff): Define using libm_alias_float.
20029 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
20030 <libm-alias-float.h>.
20031 (roundf): Define using libm_alias_float.
20032 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
20033 <libm-alias-float.h>.
20034 (sinf): Define using libm_alias_float.
20035 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
20036 <libm-alias-float.h>.
20037 (truncf): Define using libm_alias_float.
20038 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20039 <libm-alias-float.h>.
20040 (ceilf): Define using libm_alias_float.
20041 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20042 <libm-alias-float.h>.
20043 (copysignf): Define using libm_alias_float.
20044 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20045 <libm-alias-float.h>.
20046 (floorf): Define using libm_alias_float.
20047 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20048 <libm-alias-float.h>.
20049 (llrintf): Define using libm_alias_float.
20050 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20051 <libm-alias-float.h>.
20052 (llroundf): Define using libm_alias_float.
20053 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20054 <libm-alias-float.h>.
20055 (nearbyintf): Define using libm_alias_float.
20056 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20057 <libm-alias-float.h>.
20058 (rintf): Define using libm_alias_float.
20059 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20060 <libm-alias-float.h>.
20061 (roundf): Define using libm_alias_float.
20062 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20063 <libm-alias-float.h>.
20064 (truncf): Define using libm_alias_float.
20065 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20066 <libm-alias-float.h>.
20067 (ceilf): Define using libm_alias_float.
20068 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20069 <libm-alias-float.h>.
20070 (floorf): Define using libm_alias_float.
20071 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20072 <libm-alias-float.h>.
20073 (llroundf): Define using libm_alias_float.
20074 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20075 <libm-alias-float.h>.
20076 (roundf): Define using libm_alias_float.
20077 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20078 <libm-alias-float.h>.
20079 (truncf): Define using libm_alias_float.
20080 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20081 <libm-alias-float.h>.
20082 (copysignf): Define using libm_alias_float.
20083 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20084 <libm-alias-float.h>.
20085 (llrintf): Define using libm_alias_float.
20086 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20087 <libm-alias-float.h>.
20088 (llroundf): Define using libm_alias_float.
20089 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20090 <libm-alias-float.h>.
20091 (cosf): Define using libm_alias_float.
20092 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20093 <libm-alias-float.h>.
20094 (llrintf): Define using libm_alias_float.
20095 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20096 <libm-alias-float.h>.
20097 (llroundf): Define using libm_alias_float.
20098 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20099 <libm-alias-float.h>.
20100 (sinf): Define using libm_alias_float.
20101
20102 2017-12-04 Florian Weimer <fweimer@redhat.com>
20103
20104 * support/check.h (TEST_COMPARE): Define.
20105 (support_test_compare_failure): Declare.
20106 * support/Makefile (libsupport-routines): Add
20107 support_test_compare_failure.
20108 (tests): Add tst-test_compare.
20109 * support /support_test_compare_failure.c: New file.
20110 * support/tst-test_compare.c: Likewise.
20111
20112 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20113
20114 [BZ #22527]
20115 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20116 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20117 available, this rewrite of the collation rules does reproduce
20118 the test file in the same order.
20119
20120 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20121
20122 [BZ #10580]
20123 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20124 digraphs in the month and day names. Using single code points for
20125 digraphs is deprecated. While there are dedicated Unicode
20126 codepoints, for the digraphs, these are included for backwards
20127 compatibility and modern texts use a sequence of Basic Latin
20128 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20129 This makes the month and day names agree exactly with CLDR now,
20130 CLDR does not use the single code points for the digraphs either.
20131
20132 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20133
20134 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20135
20136 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20137
20138 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20139 of floor.
20140
20141 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20142
20143 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20144 Define only for libc.so.
20145
20146 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20147
20148 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20149 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20150 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20151 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20152 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20153
20154 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20155
20156 [BZ #5997]
20157 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20158
20159 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20160
20161 [BZ libc/19170]
20162 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20163 PREINIT_FUNCTION_WEAK is nonzero.
20164 (gmon_initializer): New function. Put procedure label for it in
20165 .init_array section.
20166 (_init): Don't call PREINIT_FUNCTION.
20167 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20168 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20169 value when map argument is null.
20170
20171 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20172 depi instruction from PIC pc-relative sequence.
20173 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20174 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20175 (elf_machine_load_address): Likewise.
20176 (elf_machine_runtime_setup): Likewise.
20177
20178 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20179
20180 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20181 <libm-alias-double.h>.
20182 (logb): Define using libm_alias_double.
20183 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20184 <libm-alias-double.h>.
20185 (copysign): Define using libm_alias_double.
20186 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20187 <libm-alias-double.h>.
20188 (llrint): Define using libm_alias_double.
20189 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20190 <libm-alias-double.h>.
20191 (llround): Define using libm_alias_double.
20192 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20193 <libm-alias-double.h>.
20194 (lrint): Define using libm_alias_double.
20195 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20196 <libm-alias-double.h>.
20197 (lround): Define using libm_alias_double.
20198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20199 Include <libm-alias-double.h>.
20200 (copysign): Define using libm_alias_double.
20201 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20202 Include <libm-alias-double.h>.
20203 (llrint): Define using libm_alias_double.
20204 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20205 Include <libm-alias-double.h>.
20206 (llround): Define using libm_alias_double.
20207 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20208 <libm-alias-double.h>.
20209 (logb): Define using libm_alias_double.
20210 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20211 Include <libm-alias-double.h>.
20212 (lrint): Define using libm_alias_double.
20213 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20214 Include <libm-alias-double.h>.
20215 (lround): Define using libm_alias_double.
20216 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20217 <libm-alias-double.h>.
20218 (llrint): Define using libm_alias_double.
20219 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20220 <libm-alias-double.h>.
20221 (llround): Define using libm_alias_double.
20222 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20223 <libm-alias-double.h>.
20224 (llround): Define using libm_alias_double.
20225 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20226 <libm-alias-double.h>.
20227 (lround): Define using libm_alias_double.
20228 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20229 <libm-alias-double.h>.
20230 (copysign): Define using libm_alias_double.
20231 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20232 <libm-alias-double.h>.
20233 (llrint): Define using libm_alias_double.
20234 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20235 <libm-alias-double.h>.
20236 (llround): Define using libm_alias_double.
20237 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20238 <libm-alias-double.h>.
20239 (lrint): Define using libm_alias_double.
20240 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20241 <libm-alias-double.h>.
20242 (lround): Define using libm_alias_double.
20243 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20244 <libm-alias-double.h>.
20245 (copysign): Define using libm_alias_double.
20246 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20247 <libm-alias-double.h>.
20248 (llrint): Define using libm_alias_double.
20249 (lrint): Likewise.
20250 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20251 <libm-alias-double.h>.
20252 (llround): Define using libm_alias_double.
20253 (lround): Likewise.
20254 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20255 <libm-alias-double.h>.
20256 (logb): Define using libm_alias_double.
20257 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20258 <libm-alias-double.h>.
20259 (copysign): Define using libm_alias_double.
20260 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20261 <libm-alias-double.h>.
20262 (llrint): Define using libm_alias_double.
20263 (lrint): Likewise.
20264 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20265 <libm-alias-double.h>.
20266 (llround): Define using libm_alias_double.
20267 (lround): Likewise.
20268 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20269 <libm-alias-double.h>.
20270 (llround): Define using libm_alias_double.
20271 (lround): Likewise.
20272 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20273 <libm-alias-double.h>.
20274 (copysign): Define using libm_alias_double.
20275 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20276 <libm-alias-double.h>.
20277 (llrint): Define using libm_alias_double.
20278 (lrint): Likewise.
20279 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20280 <libm-alias-double.h>.
20281 (llround): Define using libm_alias_double.
20282 (lround): Likewise.
20283 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20284 <libm-alias-double.h>.
20285 (llrint): Define using libm_alias_double.
20286 (lrint): Likewise.
20287 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20288 <libm-alias-double.h>.
20289 (llround): Define using libm_alias_double.
20290 (lround): Likewise.
20291
20292 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20293
20294 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20295 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20296 compat symbol based on llround.
20297
20298 * sysdeps/powerpc/power7/fpu/s_logb.c
20299 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20300 symbol based on __logb, not on logb.
20301 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20302 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20303 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20304 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20305
20306 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20307 (rint): Define using libm_alias_double.
20308 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20309 <libm-alias-double.h>.
20310 (modf): Define using libm_alias_double.
20311 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20312 <libm-alias-double.h>.
20313 (ceil): Define using libm_alias_double.
20314 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20315 <libm-alias-double.h>.
20316 (floor): Define using libm_alias_double.
20317 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20318 <libm-alias-double.h>.
20319 (nearbyint): Define using libm_alias_double.
20320 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20321 <libm-alias-double.h>.
20322 (rint): Define using libm_alias_double.
20323 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20324 <libm-alias-double.h>.
20325 (round): Define using libm_alias_double.
20326 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20327 <libm-alias-double.h>.
20328 (trunc): Define using libm_alias_double.
20329 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20330 <libm-alias-double.h>.
20331 (ceil): Define using libm_alias_double.
20332 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20333 Include <libm-alias-double.h>.
20334 (floor): Define using libm_alias_double.
20335 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20336 <libm-alias-double.h>.
20337 (modf): Define using libm_alias_double.
20338 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20339 Include <libm-alias-double.h>.
20340 (round): Define using libm_alias_double.
20341 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20342 Include <libm-alias-double.h>.
20343 (trunc): Define using libm_alias_double.
20344 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20345 <libm-alias-double.h>.
20346 (ceil): Define using libm_alias_double.
20347 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20348 <libm-alias-double.h>.
20349 (floor): Define using libm_alias_double.
20350 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20351 <libm-alias-double.h>.
20352 (round): Define using libm_alias_double.
20353 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20354 <libm-alias-double.h>.
20355 (trunc): Define using libm_alias_double.
20356 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20357 <libm-alias-double.h>.
20358 (ceil): Define using libm_alias_double.
20359 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20360 <libm-alias-double.h>.
20361 (floor): Define using libm_alias_double.
20362 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20363 <libm-alias-double.h>.
20364 (modf): Define using libm_alias_double.
20365 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20366 <libm-alias-double.h>.
20367 (round): Define using libm_alias_double.
20368 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20369 <libm-alias-double.h>.
20370 (trunc): Define using libm_alias_double.
20371 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20372 <libm-alias-double.h>.
20373 (ceil): Define using libm_alias_double.
20374 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20375 <libm-alias-double.h>.
20376 (floor): Define using libm_alias_double.
20377 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20378 <libm-alias-double.h>.
20379 (nearbyint): Define using libm_alias_double.
20380 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20381 <libm-alias-double.h>.
20382 (rint): Define using libm_alias_double.
20383 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20384 <libm-alias-double.h>.
20385 (round): Define using libm_alias_double.
20386 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20387 <libm-alias-double.h>.
20388 (trunc): Define using libm_alias_double.
20389 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20390 <libm-alias-double.h>.
20391 (ceil): Define using libm_alias_double.
20392 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20393 <libm-alias-double.h>.
20394 (floor): Define using libm_alias_double.
20395 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20396 <libm-alias-double.h>.
20397 (round): Define using libm_alias_double.
20398 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20399 <libm-alias-double.h>.
20400 (trunc): Define using libm_alias_double.
20401
20402 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20403 (fabs): Define using libm_alias_double.
20404 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20405 (fma): Define using libm_alias_double.
20406 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20407 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20408 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20409 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20410
20411 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20412
20413 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20414
20415 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20416 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20417 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20418
20419 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20420 due redirect macro.
20421
20422 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20423
20424 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20425
20426 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20427
20428 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20429 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20430 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20431 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20432
20433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20434 (libm-sysdep_routines): Add s_nearbyintf-generic and
20435 s_nearbyint-generic.
20436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20437 New file.
20438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20440 Likewise.
20441 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20442 Likewise.
20443 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20444 file.
20445 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20446 Likewise.
20447
20448 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20449 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20450 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20451 file.
20452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20454 Likewise.
20455 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20456 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20457 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20458
20459 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20460 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20461 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20462 file.
20463 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20464 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20465 Likewise.
20466 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20467 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20468 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20469
20470 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20471 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20472 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20473 file.
20474 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20475 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20476 Likewise.
20477 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20478 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20479 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20480
20481 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20482 (sysdep_calls): New rule.
20483 (sysdep_routines): Use sysdep_calls as base.
20484 (libm-sysdep_routines): Add generic rule for symbols shared with
20485 libc. Add s_copysign-generic and s_copysign-generic objects.
20486 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20487 New file.
20488 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20489 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20490 Likewise.
20491 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20492 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20493 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20494
20495 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20496
20497 [BZ #22519]
20498 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20499 the list of locales to be built for testing.
20500 * localedata/is_IS.UTF-8.in: New file.
20501 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20502 on iso14651_t1.
20503
20504 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20505
20506 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20507 <libm-alias-float.h>.
20508 (fabsf): Define using libm_alias_float.
20509
20510 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20511
20512 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20513
20514 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20515
20516 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20517 <libm-alias-float.h>.
20518 (fabsf): Define using libm_alias_float.
20519 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20520 <libm-alias-float.h>.
20521 (lrintf): Define using libm_alias_float.
20522 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20523 <libm-alias-float.h>.
20524 (rintf): Define using libm_alias_float.
20525
20526 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20527 <libm-alias-double.h>.
20528 (fabs): Define using libm_alias_double.
20529 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20530 <libm-alias-double.h>.
20531 (lrint): Define using libm_alias_double.
20532 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20533 <libm-alias-double.h>.
20534 (rint): Define using libm_alias_double.
20535
20536 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20537 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20538 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20539 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20540 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20541 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20542 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20543 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20544 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20545 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20546 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20547 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20548 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20549 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20550 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20551 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20552 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20553 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20554 s_atan_template.c.
20555 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20556 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20557 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20558 s_ceil_template.c.
20559 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20560 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20561 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20562 s_cos_template.c.
20563 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20564 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20565 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20566 s_expm1_template.c.
20567 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20568 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20569 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20570 s_fabs_template.c.
20571 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20572 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20573 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20574 s_floor_template.c.
20575 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20576 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20577 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20578 s_frexp_template.c.
20579 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20580 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20581 s_lrint_template.c.
20582 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20583 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20584 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20585 s_modf_template.c.
20586 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20587 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20588 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20589 s_nearbyint_template.c.
20590 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20591 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20592 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20593 s_remquo_template.c.
20594 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20595 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20596 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20597 s_rint_template.c.
20598 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20599 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20600 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20601 s_sin_template.c.
20602 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20603 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20604 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20605 s_sincos_template.c.
20606 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20607 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20608 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20609 s_tan_template.c.
20610 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20611 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20612 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20613 s_tanh_template.c.
20614 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20615 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20616 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20617 s_trunc_template.c.
20618 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20619 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20620 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20621 s_atan.c instead of including s_atan.c.
20622 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20623 s_atanf.c instead of including s_atanf.c.
20624 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20625 s_atanl.c instead of including s_atanl.c.
20626 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20627 instead of s_atan.c.
20628 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20629 instead of s_atanf.c.
20630 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20631 instead of s_atanl.c.
20632
20633 * scripts/update-copyrights: Do not handle intl/plural.c
20634 specially.
20635
20636 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20637
20638 [BZ #22432]
20639 * configure.ac (BISON): Require to be present.
20640 * configure: Regenerated.
20641 * intl/Makefile (generated): Add plural.c.
20642 [$(BISON) != no]: Make code unconditional.
20643 (plural.c): Change rule to $(objpfx)plural.c.
20644 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20645 * intl/plural.c: Remove.
20646 * manual/install.texi (Tools for Compilation): Document bison as
20647 required.
20648 * INSTALL: Regenerated.
20649
20650 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20651
20652 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20653 <libm-alias-double.h>.
20654 (llrint): Define using libm_alias_double.
20655 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20656 <libm-alias-float.h>.
20657 (llrintf): Define using libm_alias_float.
20658 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20659 <libm-alias-ldouble.h>.
20660 (llrintl): Define using libm_alias_ldouble.
20661
20662 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20663 declare_mgen_alias instead of weak_alias.
20664 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20665 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20666 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20667
20668 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20669
20670 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20671 Add add_n-generic.
20672 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20673 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20674 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20675
20676 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20677 Add submul_1-generic.
20678 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20679 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20680 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20681
20682 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20683 Add addmul_1-generic.
20684 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20685 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20686 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20687
20688 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20689 Add sub_n-generic.
20690 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20691 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20692 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20693
20694 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20695 Add mul_1-generic.
20696 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20697 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20698 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20699
20700 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20701
20702 According to CLDR, collation rules for Serbian and Bosnian
20703 should be the same as for Croatian.
20704
20705 [BZ #22534]
20706 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20707 and to the list of locales to be built for testing.
20708 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20709 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20710 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20711 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20712
20713 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20714
20715 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20716 to make test case pass.
20717 * localedata/hr_HR.UTF-8.in: Add more test strings.
20718
20719 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20720
20721 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20722
20723 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20724
20725 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20726 the list of locales to built for testing.
20727 * localedata/hr_HR.UTF-8.in: New file.
20728
20729 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20730
20731 [BZ #10580]
20732 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20733 iso14651_t1.
20734 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20735 CLDR (except use ligatures for the digraphs, CLDR does not use
20736 the ligatures), add first_workday, some fixes in the date and time
20737 formats.
20738 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20739 for Đ and đ.
20740 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20741 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20742 Add int_p_cs_precedes and int_n_cs_precedes.
20743 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20744 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20745 LC_MONETARY now).
20746 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20747 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20748 name_miss.
20749 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20750 and lang_lib. Change postal_fmt.
20751
20752 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20753
20754 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20755 <setjmp.h>.
20756 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20757 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20758 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20759 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20760 * sysdeps/generic/setjmpP.h: New file.
20761 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20762 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20763 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20764 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20765 Add jmp_buf-ssp.sym.
20766 (tests): Add tst-saved_mask-1.
20767
20768 2017-11-30 Arjun Shankar <arjun@redhat.com>
20769
20770 [BZ #22375]
20771 CVE-2017-17426
20772 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20773 instead of request2size.
20774
20775 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20776
20777 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20778 (__lllrint): Remove alias.
20779 (lllrint): Likewise.
20780 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20781 (__lllrintf): Likewise.
20782 (lllrintf): Likewise.
20783
20784 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20785 <libm-alias-float.h>.
20786 (copysignf): Define using libm_alias_float.
20787 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20788 <libm-alias-float.h>.
20789 (fabsf): Define using libm_alias_float.
20790 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20791 Include <libm-alias-float.h>.
20792 (copysignf): Define using libm_alias_float.
20793 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20794 <libm-alias-float.h>.
20795 (fabsf): Define using libm_alias_float.
20796 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20797 <libm-alias-float.h>.
20798 (fdimf): Define using libm_alias_float.
20799 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20800 <libm-alias-float.h>.
20801 (fmaf): Define using libm_alias_float.
20802 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20803 <libm-alias-float.h>.
20804 (llrintf): Define using libm_alias_float.
20805 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20806 Include <libm-alias-float.h>.
20807 (nearbyintf): Define using libm_alias_float.
20808 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20809 <libm-alias-float.h>.
20810 (rintf): Define using libm_alias_float.
20811 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20812 <libm-alias-float.h>.
20813 (llrintf): Define using libm_alias_float.
20814 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20815 <libm-alias-float.h>.
20816 (lrintf): Define using libm_alias_float.
20817 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20818 <libm-alias-float.h>.
20819 (nearbyintf): Define using libm_alias_float.
20820 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20821 <libm-alias-float.h>.
20822 (rintf): Define using libm_alias_float.
20823 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20824 <libm-alias-float.h>.
20825 (ceilf): Define using libm_alias_float.
20826 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20827 <libm-alias-float.h>.
20828 (floorf): Define using libm_alias_float.
20829 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20830 <libm-alias-float.h>.
20831 (fmaf): Define using libm_alias_float.
20832 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20833 <libm-alias-float.h>.
20834 (lrintf): Define using libm_alias_float.
20835 (llrintf): Likewise.
20836 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20837 <libm-alias-float.h>.
20838 (nearbyintf): Define using libm_alias_float.
20839 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20840 <libm-alias-float.h>.
20841 (rintf): Define using libm_alias_float.
20842 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20843 <libm-alias-float.h>.
20844 (truncf): Define using libm_alias_float.
20845 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20846 <libm-alias-float.h>.
20847 (copysignf): Define using libm_alias_float.
20848 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20849 <libm-alias-float.h>.
20850 (fabsf): Define using libm_alias_float.
20851 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20852 <libm-alias-float.h>.
20853 (lrintf): Define using libm_alias_float.
20854 (llrintf): Likewise.
20855 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20856 <libm-alias-float.h>.
20857 (nearbyintf): Define using libm_alias_float.
20858 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20859 <libm-alias-float.h>.
20860 (rintf): Define using libm_alias_float.
20861
20862 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20863
20864 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20865 <libm-alias-double.h>.
20866 (copysign): Define using libm_alias_double.
20867 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20868 <libm-alias-double.h>.
20869 (fabs): Define using libm_alias_double.
20870 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20871 Include <libm-alias-double.h>.
20872 (copysign): Define using libm_alias_double.
20873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20874 <libm-alias-double.h>.
20875 (fabs): Define using libm_alias_double.
20876 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20877 <libm-alias-double.h>.
20878 (fdim): Define using libm_alias_double.
20879 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20880 <libm-alias-double.h>.
20881 (fma): Define using libm_alias_double.
20882 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20883 <libm-alias-double.h>.
20884 (llrint): Define using libm_alias_double.
20885 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20886 Include <libm-alias-double.h>.
20887 (nearbyint): Define using libm_alias_double.
20888 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20889 <libm-alias-double.h>.
20890 (rint): Define using libm_alias_double.
20891 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20892 <libm-alias-double.h>.
20893 (fabs): Define using libm_alias_double.
20894 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20895 <libm-alias-double.h>.
20896 (llrint): Define using libm_alias_double.
20897 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20898 <libm-alias-double.h>.
20899 (nearbyint): Define using libm_alias_double.
20900 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20901 <libm-alias-double.h>.
20902 (rint): Define using libm_alias_double.
20903 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20904 <libm-alias-double.h>.
20905 (ceil): Define using libm_alias_double.
20906 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20907 <libm-alias-double.h>.
20908 (floor): Define using libm_alias_double.
20909 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20910 <libm-alias-double.h>.
20911 (fma): Define using libm_alias_double.
20912 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20913 <libm-alias-double.h>.
20914 (lrint): Define using libm_alias_double.
20915 (llrint): Likewise.
20916 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20917 <libm-alias-double.h>.
20918 (nearbyint): Define using libm_alias_double.
20919 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20920 <libm-alias-double.h>.
20921 (rint): Define using libm_alias_double.
20922 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20923 <libm-alias-double.h>.
20924 (trunc): Define using libm_alias_double.
20925 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20926 <libm-alias-double.h>.
20927 (copysign): Define using libm_alias_double.
20928 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20929 <libm-alias-double.h>.
20930 (fabs): Define using libm_alias_double.
20931 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20932 <libm-alias-double.h>.
20933 (lrint): Define using libm_alias_double.
20934 (llrint): Likewise.
20935 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20936 <libm-alias-double.h>.
20937 (nearbyint): Define using libm_alias_double.
20938 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20939 <libm-alias-double.h>.
20940 (rint): Define using libm_alias_double.
20941
20942 [BZ #22229]
20943 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20944 <math_ldbl_opt.h>.
20945 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20946
20947 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20948 SPARC --disable-multi-arch glibc variants.
20949
20950 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20951 <libm-alias-float.h>.
20952 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20953 if [SHARED].
20954 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20955 <libm-alias-float.h>.
20956 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20957 if [SHARED].
20958 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20959 <libm-alias-float.h>.
20960 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20961 if [SHARED].
20962 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20963 <libm-alias-float.h>.
20964 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20965 if [SHARED].
20966 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20967 <libm-alias-float.h>.
20968 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20969 if [SHARED].
20970 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20971 <libm-alias-float.h>.
20972 (ceilf): Define using libm_alias_float.
20973 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20974 <libm-alias-float.h>.
20975 (floorf): Define using libm_alias_float.
20976 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20977 <libm-alias-float.h>.
20978 (fmaf): Define using libm_alias_float.
20979 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20980 <libm-alias-float.h>.
20981 (nearbyintf): Define using libm_alias_float.
20982 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20983 <libm-alias-float.h>.
20984 (rintf): Define using libm_alias_float.
20985 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20986 <libm-alias-float.h>.
20987 (truncf): Define using libm_alias_float.
20988 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20989 (copysignf): Define using libm_alias_float.
20990 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20991 (cosf): Define using libm_alias_float.
20992 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20993 (fabsf): Define using libm_alias_float.
20994 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20995 (fmaxf): Define using libm_alias_float.
20996 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20997 (fminf): Define using libm_alias_float.
20998 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20999 (llrintf): Define using libm_alias_float.
21000 [!__ILP32__] (lrintf): Likewise.
21001 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
21002 (sincosf): Define using libm_alias_float.
21003 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
21004 (sinf): Define using libm_alias_float.
21005 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21006 (lrintf): Define using libm_alias_float.
21007
21008 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
21009 <libm-alias-double.h>.
21010 (atan): Define using libm_alias_double.
21011 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
21012 <libm-alias-double.h>.
21013 (ceil): Define using libm_alias_double.
21014 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
21015 <libm-alias-double.h>.
21016 (floor): Define using libm_alias_double.
21017 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
21018 <libm-alias-double.h>.
21019 (fma): Define using libm_alias_double.
21020 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
21021 <libm-alias-double.h>.
21022 (nearbyint): Define using libm_alias_double.
21023 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
21024 <libm-alias-double.h>.
21025 (rint): Define using libm_alias_double.
21026 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
21027 <libm-alias-double.h>.
21028 (sin): Define using libm_alias_double.
21029 (cos): Likewise.
21030 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
21031 <libm-alias-double.h>.
21032 (tan): Define using libm_alias_double.
21033 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
21034 <libm-alias-double.h>.
21035 (trunc): Define using libm_alias_double.
21036 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
21037 (copysign): Define using libm_alias_double.
21038 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21039 (fabs): Define using libm_alias_double.
21040 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21041 (fmax): Define using libm_alias_double.
21042 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21043 (fmin): Define using libm_alias_double.
21044 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21045 (llrint): Define using libm_alias_double.
21046 [!__ILP32__] (lrint): Likewise.
21047 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21048 (lrint): Define using libm_alias_double.
21049
21050 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21051
21052 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21053 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21054 objects.
21055 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21056 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21057 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21058 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21059 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21060 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21061
21062 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21063 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21064 objects.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21066 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21067 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21068 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21069 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21070 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21071
21072 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21073 (libm-sysdep_routines): Add s_nearbyint-generic and
21074 s_nearbyintf-generic objects.
21075 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21076 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21077 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21078 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21079 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21080 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21081
21082 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21083 Add s_finitef-generic and s_finite-generic objects.
21084 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21085 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21086 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21087 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21088 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21089 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21090
21091 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21092 Add s_isinff-generic and s_isinf-generic objects.
21093 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21094 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21095 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21096 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21097 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21098 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21099
21100 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21101 Add s_isnanf-generic and s_isnan-generic objects.
21102 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21103 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21104 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21105 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21106 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21107 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21108
21109 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21110 macro.
21111 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21112 rule.
21113 (sysdep_routines): Use sysdep_calls as base.
21114 (libm-sysdep_routines): Add generic rule for symbols shared with
21115 libc. Add s_signbit-generic and s_signbitf-generic objects.
21116 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21117 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21118 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21119 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21120 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21121 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21122
21123 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21124
21125 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21126 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21127 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21128 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21129 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21130 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21131 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21132 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21133 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21134 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21135 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21136 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21137 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21138 libm_alias_float_r.
21139 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21140 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21141 (logf): Likewise.
21142 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21143 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21144 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21145 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21146 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21147 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21148 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21149 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21150 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21151 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21152 libm_alias_float.
21153 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21154 (cosf): Likewise.
21155 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21156 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21157 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21158 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21159 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21160 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21161 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21162 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21163 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21164 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21165 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21166 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21167 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21168 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21169 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21170 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21171 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21172 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21173 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21174 libm_alias_float.
21175 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21176 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21177 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21178 * sysdeps/ia64/fpu/w_lgammaf_main.c
21179 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21180 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21181
21182 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21183 Alexandre Oliva <aoliva@redhat.com>
21184
21185 [BZ #17750]
21186 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21187 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21188 accents sorting.
21189 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21190 sorting.
21191 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21192 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21193 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21194 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21195 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21196 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21197 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21198 instead of “ifdef DIACRIT_BACKWARD”.
21199
21200 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21201
21202 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21203 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21204 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21205 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21206 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21207 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21208 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21209 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21210 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21211 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21212 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21213 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21214 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21215 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21216 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21217 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21218 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21219 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21220 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21221 ($(have-as-vis3) == yes): Remove conditional.
21222 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21223 Likewise.
21224 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21225 file.
21226 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21227 file.
21228 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21229 file.
21230 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21231 file.
21232 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21233 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21234 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21235 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21236 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21237 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21238 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21239 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21240
21241 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21242
21243 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21244 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21245 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21246 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21247 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21248 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21249 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21250 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21251 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21252 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21253 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21254 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21255 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21256 libm_alias_double_r.
21257 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21258 (log): Likewise.
21259 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21260 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21261 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21262 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21263 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21264 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21265 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21266 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21267 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21268 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21269 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21270 libm_alias_double.
21271 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21272 (cos): Likewise.
21273 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21274 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21275 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21276 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21277 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21278 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21279 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21280 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21281 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21282 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21283 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21284 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21285 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21286 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21287 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21288 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21289 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21290 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21291 libm_alias_double.
21292 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21293 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21294 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21295 * sysdeps/ia64/fpu/w_lgamma_main.c
21296 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21297 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21298
21299 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21300
21301 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21302 address of $global$ into %dp register earlier. Use pc-relative
21303 instruction sequence for PIC case.
21304
21305 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21306
21307 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21308 (asinhf): Define using libm_alias_float.
21309 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21310 (atanf): Define using libm_alias_float.
21311 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21312 (cbrtf): Define using libm_alias_float.
21313 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21314 (ceilf): Define using libm_alias_float.
21315 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21316 (copysignf): Define using libm_alias_float.
21317 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21318 (expm1f): Define using libm_alias_float.
21319 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21320 (fabsf): Define using libm_alias_float.
21321 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21322 (floorf): Define using libm_alias_float.
21323 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21324 (fmaxf): Define using libm_alias_float.
21325 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21326 (fminf): Define using libm_alias_float.
21327 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21328 (frexpf): Define using libm_alias_float.
21329 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21330 (llrintf): Define using libm_alias_float.
21331 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21332 (logbf): Define using libm_alias_float.
21333 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21334 (lrintf): Define using libm_alias_float.
21335 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21336 (nearbyintf): Define using libm_alias_float.
21337 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21338 (remquof): Define using libm_alias_float.
21339 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21340 (rintf): Define using libm_alias_float.
21341 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21342 (truncf): Define using libm_alias_float.
21343 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21344 <libm-alias-float.h>.
21345 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21346 if [SHARED].
21347 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21348 <libm-alias-float.h>.
21349 (expf): Define using libm_alias_float, or libm_alias_float_other
21350 if [SHARED].
21351 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21352 <libm-alias-float.h>.
21353 (log2f): Define using libm_alias_float, or libm_alias_float_other
21354 if [SHARED].
21355 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21356 <libm-alias-float.h>.
21357 (logf): Define using libm_alias_float, or libm_alias_float_other
21358 if [SHARED].
21359 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21360 <libm-alias-float.h>.
21361 (powf): Define using libm_alias_float, or libm_alias_float_other
21362 if [SHARED].
21363 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21364 <libm-alias-float.h>.
21365 (cosf): Define using libm_alias_float.
21366 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21367 <libm-alias-float.h>.
21368 (sincosf): Define using libm_alias_float.
21369 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21370 <libm-alias-float.h>.
21371 (sinf): Define using libm_alias_float.
21372 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21373 (fmaxf): Define using libm_alias_float.
21374 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21375 (fminf): Define using libm_alias_float.
21376 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21377 <libm-alias-float.h>.
21378 (fmaf): Define using libm_alias_float.
21379
21380 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21381 (asinh): Define using libm_alias_double.
21382 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21383 (atan): Define using libm_alias_double.
21384 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21385 (cbrt): Define using libm_alias_double.
21386 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21387 (ceil): Define using libm_alias_double.
21388 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21389 (copysign): Define using libm_alias_double.
21390 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21391 (expm1): Define using libm_alias_double.
21392 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21393 (fabs): Define using libm_alias_double.
21394 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21395 (fdim): Define using libm_alias_double.
21396 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21397 (floor): Define using libm_alias_double.
21398 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21399 (fmax): Define using libm_alias_double.
21400 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21401 (fmin): Define using libm_alias_double.
21402 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21403 (frexp): Define using libm_alias_double.
21404 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21405 (llrint): Define using libm_alias_double.
21406 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21407 (logb): Define using libm_alias_double.
21408 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21409 (lrint): Define using libm_alias_double.
21410 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21411 (nearbyint): Define using libm_alias_double.
21412 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21413 (remquo): Define using libm_alias_double.
21414 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21415 (rint): Define using libm_alias_double.
21416 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21417 (trunc): Define using libm_alias_double.
21418 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21419 (fmax): Define using libm_alias_double.
21420 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21421 (fmin): Define using libm_alias_double.
21422 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21423 (fma): Define using libm_alias_double.
21424
21425 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21426
21427 [BZ #22370]
21428 * elf/dl-hwcaps.c (ROUND): Removed.
21429 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21430 and ELF_NOTE_NEXT_OFFSET.
21431 * elf/dl-load.c (ROUND): Removed.
21432 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21433 * elf/readelflib.c (ROUND): Removed.
21434 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21435 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21436 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21437 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21438
21439 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21440
21441 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21442 [!__fmaf] (fmaf): Define using libm_alias_float.
21443
21444 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21445 [!__fma] (fma): Define using libm_alias_double.
21446 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21447
21448 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21449
21450 [BZ #22336]
21451 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21452 and implement the collation rules for cs from CLDR on top of that.
21453 * Makefile: Add cs_CZ.UTF-8 to test-input.
21454 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21455
21456 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21457
21458 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21459
21460 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21461 Icarus Sparry <icarus.w.sparry@intel.com>
21462
21463 * benchtests/Makefile:Add BENCHSET to allow subsets of
21464 benchmarks to be run.
21465 * benchtests/README: Add documentation for: Running subsets of
21466 benchmarks.
21467
21468 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21469
21470 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21471 range of tests names.
21472
21473 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21474 result from property and remove "max", min" and "mean" from
21475 required properties based on benchtests/bench-skeleton.c.
21476
21477 2017-11-28 Florian Weimer <fweimer@redhat.com>
21478
21479 [BZ #20826]
21480 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21481 due to Internet requirement.
21482 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21483 tst-getaddrinfo5.
21484 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21485
21486 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21487
21488 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21489 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21490 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21491 (sysdep_routines): Add memset-ultra1.
21492 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21493 file.
21494 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21495 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21496 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21497 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21498 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21499 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21500 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21501 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21502
21503 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21504 file.
21505 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21506 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21507 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21508 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21509 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21510 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21511 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21512 macro.
21513 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21514 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21515 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21516 (sysdep_routines): Add memcpy-ultra1.
21517 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21518 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21519
21520 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21521
21522 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21523 (cfloat_versions): Take function argument without trailing 'f'.
21524 Call libm_alias_float_other.
21525 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21526 * sysdeps/alpha/fpu/cargf.c: Likewise.
21527 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21528 * sysdeps/alpha/fpu/conjf.c: Likewise.
21529 * sysdeps/alpha/fpu/crealf.c: Likewise.
21530 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21531 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21532 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21533 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21534 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21535 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21536 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21537 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21538 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21539 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21540 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21541 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21542 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21543 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21544 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21545 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21546 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21547 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21548 (clog10f): Use libm_alias_float_other.
21549 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21550 (ceilf): Define using libm_alias_float.
21551 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21552 (copysignf): Define using libm_alias_float.
21553 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21554 (fabsf): Define using libm_alias_float.
21555 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21556 (floorf): Define using libm_alias_float.
21557 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21558 (fmaxf): Define using libm_alias_float.
21559 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21560 (fminf): Define using libm_alias_float.
21561 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21562 (lrintf): Define using libm_alias_float.
21563 (llrintf): Likewise.
21564 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21565 (lroundf): Define using libm_alias_float.
21566 (llroundf): Likewise.
21567 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21568 (rintf): Define using libm_alias_float.
21569 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21570 (truncf): Define using libm_alias_float.
21571
21572 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21573 (ceilf): Define using libm_alias_float.
21574 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21575 (floorf): Define using libm_alias_float.
21576 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21577 (fmaf): Define using libm_alias_float.
21578 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21579 (fmaxf): Define using libm_alias_float.
21580 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21581 (fminf): Define using libm_alias_float.
21582 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21583 (llrintf): Define using libm_alias_float.
21584 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21585 (llroundf): Define using libm_alias_float.
21586 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21587 (lrintf): Define using libm_alias_float.
21588 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21589 (lroundf): Define using libm_alias_float.
21590 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21591 <libm-alias-float.h>.
21592 (nearbyintf): Define using libm_alias_float.
21593 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21594 (rintf): Define using libm_alias_float.
21595 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21596 (roundf): Define using libm_alias_float.
21597 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21598 (truncf): Define using libm_alias_float.
21599
21600 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21601 (ceil): Define using libm_alias_double.
21602 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21603 (copysign): Define using libm_alias_double.
21604 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21605 (fabs): Define using libm_alias_double.
21606 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21607 (floor): Define using libm_alias_double.
21608 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21609 (fmax): Define using libm_alias_double.
21610 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21611 (fmin): Define using libm_alias_double.
21612 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21613 (lrint): Define using libm_alias_double.
21614 (llrint): Likewise.
21615 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21616 (lround): Define using libm_alias_double.
21617 (llround): Likewise.
21618 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21619 (rint): Define using libm_alias_double.
21620 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21621 (trunc): Define using libm_alias_double.
21622
21623 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21624 (libm_alias_double_r): Add semicolon after weak_alias call.
21625
21626 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21627
21628 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21629 (ceil): Define using libm_alias_double.
21630 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21631 (floor): Define using libm_alias_double.
21632 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21633 (fma): Define using libm_alias_double.
21634 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21635 (fmax): Define using libm_alias_double.
21636 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21637 (fmin): Define using libm_alias_double.
21638 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21639 (llrint): Define using libm_alias_double.
21640 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21641 (llround): Define using libm_alias_double.
21642 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21643 (lrint): Define using libm_alias_double.
21644 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21645 (lround): Define using libm_alias_double.
21646 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21647 (nearbyint): Define using libm_alias_double.
21648 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21649 (rint): Define using libm_alias_double.
21650 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21651 (round): Define using libm_alias_double.
21652 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21653 (trunc): Define using libm_alias_double.
21654
21655 2017-11-27 Florian Weimer <fweimer@redhat.com>
21656
21657 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21658 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21659 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21660 (tests): Add tst-mlock2.
21661 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21662 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21663 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21664 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21665 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21666 for mlock. Document mlock2.
21667
21668 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21669
21670 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21671 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21672 Likewise.
21673 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21674 Likewise.
21675 * sysdeps/x86/Makeconfig: New file.
21676 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21677 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21678 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21679 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21680 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21681 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21682 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21683 Likewise.
21684 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21685 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21686 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21687 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21688 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21689 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21690 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21691 * manual/math.texi (Mathematics): Document support for _Float64x.
21692 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21693 * stdlib/Versions (GLIBC_2.27): Likewise.
21694 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21695 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21696 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21697 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21698 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21699 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21700 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21701 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21702 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21703 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21704 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21705 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21706 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21707 Likewise.
21708 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21709 Likewise.
21710 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21711 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21712 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21713 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21714 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21715 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21716 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21717 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21718 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21719 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21720 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21721 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21722 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21723 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21724
21725 2017-11-27 Andreas Schwab <schwab@suse.de>
21726
21727 * elf/Makefile (dl-routines): Add dl-sort-maps.
21728 * elf/dl-sort-maps.c: New file.
21729 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21730 (_dl_sort_maps): Declare.
21731 * elf/dl-fini.c (_dl_sort_fini): Remove.
21732 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21733 * elf/dl-close.c (_dl_close_worker): Likewise.
21734 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21735 open-coding it.
21736 * elf/dl-open.c (dl_open_worker): Likewise.
21737
21738 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21739
21740 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21741 using libm_alias_float128.
21742 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21743 Likewise.
21744 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21745 Likewise.
21746 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21747 (setpayloadsigf128): Likewise.
21748 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21749 Likewise.
21750 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21751 Likewise.
21752
21753 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21754 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21755 -mfloat128 to CFLAGS.
21756 ($(foreach
21757 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21758 Likewise.
21759 (CFLAGS-libm-test-support-float64x.c): New variable.
21760 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21761 $(f128-loader-link) to gnulib-tests.
21762
21763 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21764 (libm_alias_float128_other_r): If
21765 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21766 alias.
21767 (libm_alias_float128_r): Add semicolon after weak_alias call.
21768 * sysdeps/generic/libm-alias-ldouble.h
21769 (libm_alias_ldouble_other_r_f128): New macro.
21770 (libm_alias_ldouble_other_r_f64x): Likewise.
21771 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21772 and libm_alias_ldouble_other_r_f64x.
21773 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21774 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21775 (libm_alias_ldouble_other_r_f128): New macro.
21776 (libm_alias_ldouble_other_r_f64x): Likewise.
21777 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21778 and libm_alias_ldouble_other_r_f64x.
21779
21780 * stdlib/strfroml.c: Always include <stdlib.h>.
21781 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21782 undefine as macro and define as weak alias.
21783 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21784 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21785 <stdlib.h>.
21786 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21787 Define and later undefine as macro and define as weak alias.
21788
21789 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21790 Define and later undefine as macro. Define as weak alias if
21791 [!USE_WIDE_CHAR].
21792 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21793 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21794 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21795 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21796 Define and later undefine as macro. Define as weak alias if
21797 [!USE_WIDE_CHAR].
21798 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21799 Define and later undefine as macro. Define as weak alias if
21800 [USE_WIDE_CHAR].
21801 * sysdeps/ieee754/float128/strtof128_l.c
21802 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21803 Define and later undefine as macro. Define as weak alias if
21804 [!USE_WIDE_CHAR].
21805 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21806 Define and later undefine as macro. Define as weak alias if
21807 [USE_WIDE_CHAR].
21808 * sysdeps/ieee754/ldbl-128/strtold_l.c
21809 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21810 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21811 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21812 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21813 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21814 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21815 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21816 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21817 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21818 * sysdeps/ieee754/ldbl-96/strtold_l.c
21819 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21820 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21821 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21822 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21823
21824 * math/test-float64x.h: New file.
21825 * math/Makefile (type-float64x-yes): New variable.
21826 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21827
21828 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21829 function-like macro.
21830 (min_of_type_): Likewise.
21831 (min_of_type_l): Likewise.
21832 (min_of_type_f128): Likewise.
21833 (min_of_type): Pass () as last argument of __MATH_TG.
21834
21835 * stdlib/tst-strtod-round-skeleton.c
21836 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21837 headers.
21838
21839 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21840 for combinations of long double with _Float64 and _Float64x.
21841
21842 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21843 (__DECL_SIMD_cosf32): Likewise.
21844 (__DECL_SIMD_cosf64): Likewise.
21845 (__DECL_SIMD_cosf32x): Likewise.
21846 (__DECL_SIMD_cosf64x): Likewise.
21847 (__DECL_SIMD_cosf128x): Likewise.
21848 (__DECL_SIMD_sinf16): Likewise.
21849 (__DECL_SIMD_sinf32): Likewise.
21850 (__DECL_SIMD_sinf64): Likewise.
21851 (__DECL_SIMD_sinf32x): Likewise.
21852 (__DECL_SIMD_sinf64x): Likewise.
21853 (__DECL_SIMD_sinf128x): Likewise.
21854 (__DECL_SIMD_sincosf16): Likewise.
21855 (__DECL_SIMD_sincosf32): Likewise.
21856 (__DECL_SIMD_sincosf64): Likewise.
21857 (__DECL_SIMD_sincosf32x): Likewise.
21858 (__DECL_SIMD_sincosf64x): Likewise.
21859 (__DECL_SIMD_sincosf128x): Likewise.
21860 (__DECL_SIMD_logf16): Likewise.
21861 (__DECL_SIMD_logf32): Likewise.
21862 (__DECL_SIMD_logf64): Likewise.
21863 (__DECL_SIMD_logf32x): Likewise.
21864 (__DECL_SIMD_logf64x): Likewise.
21865 (__DECL_SIMD_logf128x): Likewise.
21866 (__DECL_SIMD_expf16): Likewise.
21867 (__DECL_SIMD_expf32): Likewise.
21868 (__DECL_SIMD_expf64): Likewise.
21869 (__DECL_SIMD_expf32x): Likewise.
21870 (__DECL_SIMD_expf64x): Likewise.
21871 (__DECL_SIMD_expf128x): Likewise.
21872 (__DECL_SIMD_powf16): Likewise.
21873 (__DECL_SIMD_powf32): Likewise.
21874 (__DECL_SIMD_powf64): Likewise.
21875 (__DECL_SIMD_powf32x): Likewise.
21876 (__DECL_SIMD_powf64x): Likewise.
21877 (__DECL_SIMD_powf128x): Likewise.
21878
21879 * stdlib/Versions (libc): Move entries for wcstof128 and
21880 wcstof128_l to ....
21881 * wcsmbs/Versions (libc): ... here.
21882 Include <float128-abi.h>.
21883
21884 2017-11-24 Florian Weimer <fweimer@redhat.com>
21885
21886 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21887 bits/mman-shared.h.
21888 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21889 <bits/mman-shared.h>.
21890 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21891 to ...
21892 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21893 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21894 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21895 <bits/mman-shared.h>.
21896
21897 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21898
21899 [BZ #22457]
21900 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21901 posix_memalign/free.
21902 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21903
21904 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21905
21906 [BZ #22469]
21907 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21908 and implement the collation rules for pl from CLDR on top of that.
21909 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21910 of locales to be built for testing.
21911 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21912
21913 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21914
21915 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21916 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21917 libm_alias_ldouble_other.
21918 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21919 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21920 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21921 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21922 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21923 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21924 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21925 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21926 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21927 libm_alias_ldouble_r.
21928 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21929 libm_alias_ldouble_other.
21930 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21931 (log10l): Likewise.
21932 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21933 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21934 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21935 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21936 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21937 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21938 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21939 (atan2l): Likewise.
21940 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21941 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21942 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21943 libm_alias_ldouble.
21944 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21945 (cosl): Likewise.
21946 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21947 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21948 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21949 (expl): Likewise.
21950 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21951 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21952 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21953 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21954 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21955 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21956 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21957 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21958 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21959 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21960 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21961 libm_alias_ldouble.
21962 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21963 libm_alias_ldouble_other.
21964 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21965 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21966 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21967 libm_alias_ldouble.
21968 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21969 libm_alias_ldouble_other.
21970 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21971 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21972 * sysdeps/ia64/fpu/w_lgammal_main.c
21973 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21974 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21975
21976 2017-11-23 Florian Weimer <fweimer@redhat.com>
21977
21978 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21979 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21980 alike. Remove freeres marker.
21981 * malloc/arena.c (arena_thread_freeres): Call
21982 tcache_thread_shutdown.
21983
21984 2017-11-23 Florian Weimer <fweimer@redhat.com>
21985
21986 [BZ #22459]
21987 Export nscd hash function as __nss_hash.
21988 * include/nss.h (__nss_hash): Declare.
21989 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21990 symbol.
21991 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21992 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21993 of __nscd_hash.
21994 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21995 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21996 * nss/Makefiles (routines): Add nss_hash.
21997 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21998 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21999 (__nss_hash): Rename from __nis_hash. Define hidden alias.
22000 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
22001
22002 2017-11-23 Florian Weimer <fweimer@redhat.com>
22003
22004 [BZ #22478]
22005 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
22006 Return error code, not -1.
22007 * signal/tst-sigwait-eintr.c: New file.
22008 * signal/Makefile (tests): Add tst-sigwait-eintr.
22009
22010 2017-11-23 Florian Weimer <fweimer@redhat.com>
22011
22012 Linux: Add memfd_create system call wrapper
22013 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
22014 tst-memfd_create.
22015 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
22016 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
22017 [__USE_GNU] (memfd_create): Declare.
22018 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
22019 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
22020 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
22021 * sysdeps/unix/sysv/linux/**.abilist: Update.
22022 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
22023
22024 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22025
22026 * localedata/gen-locale.sh: Fix typo in variable name.
22027
22028 * resolv/res_debug.c (p_secstodate): Condition definition on
22029 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
22030 directly as __p_secstodate, and as a compat symbol. Do not use
22031 libresolv_hidden_def.
22032 * resolv/resolv.h (p_secstodate): Remove macro and function
22033 declaration.
22034 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
22035 using p_secstodate.
22036 * include/resolv.h (__p_secstodate): Do not use
22037 libresolv_hidden_proto.
22038 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22039 (tests-internal): ... here.
22040 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22041 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22042 and declare and use __p_secstodate and use compat_symbol_reference
22043 in that case.
22044 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22045 implementation returning 77.
22046
22047 [BZ #22463]
22048 * resolv/res_debug.c: Include <libc-diag.h>.
22049 (p_secstodate): Assert time_t at least as wide as u_long. On
22050 overflow, use integer seconds since the epoch as output, or use
22051 "<overflow>" as output and set errno to EOVERFLOW if integer
22052 seconds since the epoch would be 14 or more characters.
22053 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22054 for sprintf call.
22055 * resolv/tst-p_secstodate.c: New file.
22056 * resolv/Makefile (tests): Add tst-p_secstodate.
22057 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22058
22059 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22060 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22061 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22062
22063 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22064
22065 * posix/regcomp.c (init_word_char): Add comments.
22066
22067 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22068
22069 [BZ #22447]
22070 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22071 strlen to compute length of ut_user and set trailing NUL byte of
22072 result explicitly.
22073
22074 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22075
22076 [BZ #15537]
22077 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22078 using “copy "iso14651_t1"” and then implementing the
22079 collation rules for lv from CLDR on top of that.
22080 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22081 of locales to be built for testing.
22082 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22083 sorting.
22084
22085 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22086
22087 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22088 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22089 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22090 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22091 [__USE_MISC] (MADV_HWPOISON): New macro.
22092 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22093
22094 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22095
22096 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22097 -Wmissing-braces on GCC 4.9.
22098
22099 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22100
22101 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22102 * sysdeps/s390/s390-32/start.S (_start): Likewise
22103 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22104 (thread_start): Likewise.
22105 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22106 (thread_start): Likewise.
22107 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22108 (__makecontext_ret): Likewise.
22109 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22110 (__makecontext_ret): Likewise.
22111
22112 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22113
22114 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22115 __wcschrnul): Remove attribute_hidden.
22116
22117 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22118
22119 regex: don't assume uint64_t or uint32_t
22120 This avoids -Werror=overflow errors for 32-bit systems in
22121 the 64-bit case. Problem reported by Joseph Myers in:
22122 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22123 Also, when this code is used in Gnulib it ports to platforms
22124 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22125 them, and on some 32-bit compilers there is no uint64_t.
22126 Problem reported by Gianluigi Tiesi in:
22127 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22128 * posix/regcomp.c (init_word_char): Don't assume that the types
22129 uint64_t and uint32_t exist. Adapted from Gnulib patch
22130 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22131 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22132
22133 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22134
22135 * sysdeps/aarch64/memset-reg.h: New file.
22136 * sysdeps/aarch64/memset.S: Use it.
22137 (__memset): Rename to MEMSET macro.
22138 [ZVA_MACRO]: Use zva_macro.
22139 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22140 Add memset_generic and memset_falkor.
22141 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22142 (__libc_ifunc_impl_list): Add memset ifuncs.
22143 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22144 local variable zva_size.
22145 * sysdeps/aarch64/multiarch/memset.c: New file.
22146 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22147 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22148 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22149 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22150 (DCZID_DZP_MASK): New macro.
22151 (DCZID_BS_MASK): Likewise.
22152 (init_cpu_features): Read and set zva_size.
22153 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22154 (struct cpu_features): New member zva_size.
22155
22156 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22157 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22158 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22159
22160 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22161 backwards. Fix timing computation.
22162 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22163 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22164 on memset by N at a time. Fix timing computation.
22165
22166 2017-11-20 Florian Weimer <fweimer@redhat.com>
22167
22168 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22169 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22170
22171 2017-11-19 Florian Weimer <fweimer@redhat.com>
22172
22173 manual: Document mprotect
22174 * manual/memory.texi (Memory Protection): New section.
22175 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22176 documentation of PROT_* flags and reference the Memory Protection
22177 section instead.
22178
22179 2017-11-19 Florian Weimer <fweimer@redhat.com>
22180
22181 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22182 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22183 (Scatter-Gather): ... to here. Remove misleading comment.
22184
22185 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22186
22187 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22188 style.
22189
22190 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22191 when /proc/<pid>/setgroups does not exist.
22192
22193 2017-11-18 Florian Weimer <fweimer@redhat.com>
22194
22195 * sysdeps/unix/sysv/linux/tst-ttyname.c
22196 (become_root_in_mount_ns): Remove.
22197 (do_in_chroot_1): Call support_enter_mount_namespace.
22198 (do_in_chroot_2): Likewise.
22199 (do_test): Call support_become_root early.
22200
22201 2017-11-18 Florian Weimer <fweimer@redhat.com>
22202
22203 * support/namespace.h (support_enter_mount_namespace): Declare.
22204 * support/support_enter_mount_namespace.c: New file.
22205 * support/Makefile (libsupport-routines): Add
22206 support_enter_mount_namespace.
22207
22208 2017-11-18 Florian Weimer <fweimer@redhat.com>
22209
22210 * support/temp_file.c (support_create_temp_directory): Use
22211 test_dir and do not rely on the presence of the XXXXXX suffix.
22212 * support/temp_file.h (support_create_temp_directory): Update
22213 comment.
22214 * support/tst-xreadlink.c (do_test): Adjust.
22215 * support/support_chroot.c (support_chroot_create): Likewise.
22216
22217 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22218
22219 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22220 macro.
22221 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22222 htm-no-suspend.
22223
22224 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22225
22226 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22227 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22228 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22229 (ceill): Define using libm_alias_ldouble.
22230 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22231 <libm-alias-ldouble.h>.
22232 (copysignl): Define using libm_alias_ldouble.
22233 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22234 (fabsl): Define using libm_alias_ldouble.
22235 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22236 (floorl): Define using libm_alias_ldouble.
22237 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22238 (fmaxl): Define using libm_alias_ldouble.
22239 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22240 (fminl): Define using libm_alias_ldouble.
22241 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22242 (llrintl): Define using libm_alias_ldouble.
22243 (lrintl): Likewise.
22244 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22245 <libm-alias-ldouble.h>.
22246 (nearbyintl): Define using libm_alias_ldouble.
22247 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22248 (truncl): Define using libm_alias_ldouble.
22249 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22250 <libm-alias-ldouble.h>.
22251 (lrintl): Define using libm_alias_ldouble.
22252
22253 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22254 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22255 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22256 (asinhl): Define using libm_alias_ldouble.
22257 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22258 (atanl): Define using libm_alias_ldouble.
22259 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22260 (cbrtl): Define using libm_alias_ldouble.
22261 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22262 (ceill): Define using libm_alias_ldouble.
22263 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22264 (copysignl): Define using libm_alias_ldouble.
22265 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22266 (fabsl): Define using libm_alias_ldouble.
22267 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22268 (floorl): Define using libm_alias_ldouble.
22269 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22270 (fmaxl): Define using libm_alias_ldouble.
22271 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22272 (fminl): Define using libm_alias_ldouble.
22273 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22274 (frexpl): Define using libm_alias_ldouble.
22275 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22276 (llrintl): Define using libm_alias_ldouble.
22277 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22278 (logbl): Define using libm_alias_ldouble.
22279 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22280 (lrintl): Define using libm_alias_ldouble.
22281 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22282 (nearbyintl): Define using libm_alias_ldouble.
22283 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22284 (nextafterl): Define using libm_alias_ldouble.
22285 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22286 (remquol): Define using libm_alias_ldouble.
22287 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22288 (rintl): Define using libm_alias_ldouble.
22289 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22290 (truncl): Define using libm_alias_ldouble.
22291 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22292 (fmaxl): Define using libm_alias_ldouble.
22293 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22294 (fminl): Define using libm_alias_ldouble.
22295
22296 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22297 to C syntax instead of availability and properties of types.
22298 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22299 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22300 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22301 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22302 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22303 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22304
22305 2017-11-17 Florian Weimer <fweimer@redhat.com>
22306
22307 support_become_root: Enable file creation in namespaces.
22308 * support/support_become_root.c (setup_mapping): New function.
22309 (support_become_root): Call it.
22310
22311 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22312
22313 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22314 macro.
22315
22316 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22317
22318 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22319 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22320
22321 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22322
22323 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22324
22325 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22326 version to 4.14.
22327
22328 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22329
22330 * INSTALL: Fix botched up regeneration.
22331
22332 * NEWS: Update sourceare link to https.
22333 * configure.ac: Likewise.
22334 * crypt/md5test-giant.c: Likewise.
22335 * dlfcn/bug-atexit1.c: Likewise.
22336 * dlfcn/bug-atexit2.c: Likewise.
22337 * localedata/README: Likewise.
22338 * malloc/tst-mallocfork.c: Likewise.
22339 * manual/install.texi: Likewise.
22340 * nptl/tst-pthread-getattr.c: Likewise.
22341 * stdio-common/tst-fgets.c: Likewise.
22342 * stdio-common/tst-fwrite.c: Likewise.
22343 * sunrpc/Makefile: Likewise.
22344 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22345 * wcsmbs/tst-mbrtowc2.c: Likewise.
22346 * configure: Regenerate.
22347 * INSTALL: Regenerate.
22348
22349 2017-11-15 Martin Sebor <msebor@redhat.com>
22350
22351 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22352 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22353 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22354
22355 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22356
22357 [BZ #22145]
22358 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22359 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22360
22361 [BZ #22145]
22362 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22363 Defer is_pty check until end of the function.
22364 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22365
22366 [BZ #22145]
22367 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22368 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22369 (ttyname): Likewise.
22370 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22371 (__ttyname_r): Likewise.
22372
22373 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22374 int to bool.
22375
22376 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22377
22378 * manual/terminal.texi (Is It a Terminal):
22379 Mention ENODEV for ttyname and ttyname_r.
22380
22381 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22382
22383 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22384 constant and macro.
22385
22386 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22387 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22388 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22389 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22390 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22391 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22392
22393 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22394
22395 * signal/sigrelse.c (sigrelse): Optimize implementation.
22396
22397 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22398 (__sigpause): Rely on __sigsuspend to implement single thread
22399 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22400
22401 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22402
22403 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22404 kernel version to 4.14.
22405
22406 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22407
22408 [BZ #22442]
22409 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22410 Check if ifname is too long.
22411
22412 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22413
22414 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22415
22416 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22417
22418 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22419 was accidentally lost.
22420
22421 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22422
22423 * localedata/locales/az_IR: Add standard copyright header.
22424
22425 2017-11-15 Florian Weimer <fweimer@redhat.com>
22426
22427 [BZ #22439]
22428 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22429 not just the top one. Output a new "subheaps" statistic.
22430
22431 2017-11-15 Florian Weimer <fweimer@redhat.com>
22432
22433 [BZ #22408]
22434 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22435 under the per-arena lock.
22436 * malloc/Makefile (tests): Add tst-malloc_info.
22437 (tst-malloc_info): Link with libpthread.
22438 * malloc/tst-malloc_info.c: New file.
22439
22440 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22441
22442 [BZ #21660]
22443 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22444 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22445 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22446 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22447 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22448 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22449 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22450 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22451 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22452 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22453 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22454 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22455 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22456 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22457 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22458 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22459 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22460 (__floating_type): Likewise.
22461 (__real_integer_type): Likewise.
22462 (__complex_integer_type): Likewise.
22463 (__expr_is_real): Likewise.
22464 (__tgmath_real_type_sub): Likewise.
22465 (__tgmath_real_type): Likewise.
22466 (__tgmath_complex_type_sub): Likewise.
22467 (__tgmath_complex_type): Likewise.
22468 (__TGMATH_F128): Likewise.
22469 (__TGMATH_CF128): Likewise.
22470 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22471 new macros.
22472 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22473 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22474 Likewise.
22475 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22476 Likewise.
22477 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22478 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22479 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22480 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22481 Likewise.
22482 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22483 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22484 Likewise.
22485 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22486 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22487 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22488 Likewise.
22489 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22490 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22491 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22492 (cimag): Likewise.
22493 (creal): Likewise.
22494
22495 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22496
22497 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22498 for stpncpy calls for GCC 8.
22499 (test_strncat): Disable -Wstringop-truncation warning for strncat
22500 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22501 strncat call for GCC 7.
22502 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22503 calls for GCC 8.
22504 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22505 trailing NUL.
22506
22507 * string/bug-strncat1.c: Include <libc-diag.h>.
22508 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22509
22510 2017-11-13 Claude Paroz <claude@2xlibre.net>
22511
22512 [BZ #22387]
22513 * localedata/locales/aa_DJ: Improved readibility by replacing
22514 <Uxxxx> sequences in the ASCII printable range by their ASCII
22515 character equivalents.
22516 * localedata/locales/aa_ER: Likewise.
22517 * localedata/locales/aa_ER@saaho: Likewise.
22518 * localedata/locales/aa_ET: Likewise.
22519 * localedata/locales/af_ZA: Likewise.
22520 * localedata/locales/agr_PE: Likewise.
22521 * localedata/locales/ak_GH: Likewise.
22522 * localedata/locales/am_ET: Likewise.
22523 * localedata/locales/anp_IN: Likewise.
22524 * localedata/locales/ar_AE: Likewise.
22525 * localedata/locales/ar_BH: Likewise.
22526 * localedata/locales/ar_DZ: Likewise.
22527 * localedata/locales/ar_EG: Likewise.
22528 * localedata/locales/ar_IN: Likewise.
22529 * localedata/locales/ar_IQ: Likewise.
22530 * localedata/locales/ar_JO: Likewise.
22531 * localedata/locales/ar_KW: Likewise.
22532 * localedata/locales/ar_LB: Likewise.
22533 * localedata/locales/ar_LY: Likewise.
22534 * localedata/locales/ar_MA: Likewise.
22535 * localedata/locales/ar_OM: Likewise.
22536 * localedata/locales/ar_QA: Likewise.
22537 * localedata/locales/ar_SA: Likewise.
22538 * localedata/locales/ar_SD: Likewise.
22539 * localedata/locales/ar_SS: Likewise.
22540 * localedata/locales/ar_SY: Likewise.
22541 * localedata/locales/ar_TN: Likewise.
22542 * localedata/locales/ar_YE: Likewise.
22543 * localedata/locales/as_IN: Likewise.
22544 * localedata/locales/ast_ES: Likewise.
22545 * localedata/locales/ayc_PE: Likewise.
22546 * localedata/locales/az_AZ: Likewise.
22547 * localedata/locales/az_IR: Likewise.
22548 * localedata/locales/be_BY: Likewise.
22549 * localedata/locales/be_BY@latin: Likewise.
22550 * localedata/locales/bem_ZM: Likewise.
22551 * localedata/locales/ber_DZ: Likewise.
22552 * localedata/locales/ber_MA: Likewise.
22553 * localedata/locales/bg_BG: Likewise.
22554 * localedata/locales/bhb_IN: Likewise.
22555 * localedata/locales/bho_IN: Likewise.
22556 * localedata/locales/bi_VU: Likewise.
22557 * localedata/locales/bn_BD: Likewise.
22558 * localedata/locales/bn_IN: Likewise.
22559 * localedata/locales/bo_CN: Likewise.
22560 * localedata/locales/bo_IN: Likewise.
22561 * localedata/locales/br_FR: Likewise.
22562 * localedata/locales/brx_IN: Likewise.
22563 * localedata/locales/bs_BA: Likewise.
22564 * localedata/locales/byn_ER: Likewise.
22565 * localedata/locales/ca_AD: Likewise.
22566 * localedata/locales/ca_ES: Likewise.
22567 * localedata/locales/ca_FR: Likewise.
22568 * localedata/locales/ca_IT: Likewise.
22569 * localedata/locales/ce_RU: Likewise.
22570 * localedata/locales/chr_US: Likewise.
22571 * localedata/locales/cmn_TW: Likewise.
22572 * localedata/locales/crh_UA: Likewise.
22573 * localedata/locales/cs_CZ: Likewise.
22574 * localedata/locales/csb_PL: Likewise.
22575 * localedata/locales/cv_RU: Likewise.
22576 * localedata/locales/cy_GB: Likewise.
22577 * localedata/locales/da_DK: Likewise.
22578 * localedata/locales/de_AT: Likewise.
22579 * localedata/locales/de_BE: Likewise.
22580 * localedata/locales/de_CH: Likewise.
22581 * localedata/locales/de_DE: Likewise.
22582 * localedata/locales/de_IT: Likewise.
22583 * localedata/locales/de_LI: Likewise.
22584 * localedata/locales/de_LU: Likewise.
22585 * localedata/locales/doi_IN: Likewise.
22586 * localedata/locales/dv_MV: Likewise.
22587 * localedata/locales/dz_BT: Likewise.
22588 * localedata/locales/el_CY: Likewise.
22589 * localedata/locales/el_GR: Likewise.
22590 * localedata/locales/en_AG: Likewise.
22591 * localedata/locales/en_AU: Likewise.
22592 * localedata/locales/en_BW: Likewise.
22593 * localedata/locales/en_CA: Likewise.
22594 * localedata/locales/en_DK: Likewise.
22595 * localedata/locales/en_GB: Likewise.
22596 * localedata/locales/en_HK: Likewise.
22597 * localedata/locales/en_IE: Likewise.
22598 * localedata/locales/en_IL: Likewise.
22599 * localedata/locales/en_IN: Likewise.
22600 * localedata/locales/en_NG: Likewise.
22601 * localedata/locales/en_NZ: Likewise.
22602 * localedata/locales/en_PH: Likewise.
22603 * localedata/locales/en_SG: Likewise.
22604 * localedata/locales/en_US: Likewise.
22605 * localedata/locales/en_ZA: Likewise.
22606 * localedata/locales/en_ZM: Likewise.
22607 * localedata/locales/en_ZW: Likewise.
22608 * localedata/locales/eo: Likewise.
22609 * localedata/locales/es_AR: Likewise.
22610 * localedata/locales/es_BO: Likewise.
22611 * localedata/locales/es_CL: Likewise.
22612 * localedata/locales/es_CO: Likewise.
22613 * localedata/locales/es_CR: Likewise.
22614 * localedata/locales/es_CU: Likewise.
22615 * localedata/locales/es_DO: Likewise.
22616 * localedata/locales/es_EC: Likewise.
22617 * localedata/locales/es_ES: Likewise.
22618 * localedata/locales/es_GT: Likewise.
22619 * localedata/locales/es_HN: Likewise.
22620 * localedata/locales/es_MX: Likewise.
22621 * localedata/locales/es_NI: Likewise.
22622 * localedata/locales/es_PA: Likewise.
22623 * localedata/locales/es_PE: Likewise.
22624 * localedata/locales/es_PR: Likewise.
22625 * localedata/locales/es_PY: Likewise.
22626 * localedata/locales/es_SV: Likewise.
22627 * localedata/locales/es_US: Likewise.
22628 * localedata/locales/es_UY: Likewise.
22629 * localedata/locales/es_VE: Likewise.
22630 * localedata/locales/et_EE: Likewise.
22631 * localedata/locales/eu_ES: Likewise.
22632 * localedata/locales/eu_ES@euro: Likewise.
22633 * localedata/locales/fa_IR: Likewise.
22634 * localedata/locales/ff_SN: Likewise.
22635 * localedata/locales/fi_FI: Likewise.
22636 * localedata/locales/fil_PH: Likewise.
22637 * localedata/locales/fo_FO: Likewise.
22638 * localedata/locales/fr_BE: Likewise.
22639 * localedata/locales/fr_CA: Likewise.
22640 * localedata/locales/fr_CH: Likewise.
22641 * localedata/locales/fr_FR: Likewise.
22642 * localedata/locales/fr_LU: Likewise.
22643 * localedata/locales/fur_IT: Likewise.
22644 * localedata/locales/fy_DE: Likewise.
22645 * localedata/locales/fy_NL: Likewise.
22646 * localedata/locales/ga_IE: Likewise.
22647 * localedata/locales/gd_GB: Likewise.
22648 * localedata/locales/gez_ER: Likewise.
22649 * localedata/locales/gez_ET: Likewise.
22650 * localedata/locales/gl_ES: Likewise.
22651 * localedata/locales/gu_IN: Likewise.
22652 * localedata/locales/gv_GB: Likewise.
22653 * localedata/locales/ha_NG: Likewise.
22654 * localedata/locales/hak_TW: Likewise.
22655 * localedata/locales/he_IL: Likewise.
22656 * localedata/locales/hi_IN: Likewise.
22657 * localedata/locales/hif_FJ: Likewise.
22658 * localedata/locales/hne_IN: Likewise.
22659 * localedata/locales/hr_HR: Likewise.
22660 * localedata/locales/hsb_DE: Likewise.
22661 * localedata/locales/ht_HT: Likewise.
22662 * localedata/locales/hu_HU: Likewise.
22663 * localedata/locales/hy_AM: Likewise.
22664 * localedata/locales/i18n: Likewise.
22665 * localedata/locales/ia_FR: Likewise.
22666 * localedata/locales/id_ID: Likewise.
22667 * localedata/locales/ig_NG: Likewise.
22668 * localedata/locales/ik_CA: Likewise.
22669 * localedata/locales/is_IS: Likewise.
22670 * localedata/locales/it_CH: Likewise.
22671 * localedata/locales/it_IT: Likewise.
22672 * localedata/locales/iu_CA: Likewise.
22673 * localedata/locales/ja_JP: Likewise.
22674 * localedata/locales/ka_GE: Likewise.
22675 * localedata/locales/kk_KZ: Likewise.
22676 * localedata/locales/kl_GL: Likewise.
22677 * localedata/locales/kn_IN: Likewise.
22678 * localedata/locales/ko_KR: Likewise.
22679 * localedata/locales/kok_IN: Likewise.
22680 * localedata/locales/ks_IN: Likewise.
22681 * localedata/locales/ks_IN@devanagari: Likewise.
22682 * localedata/locales/ku_TR: Likewise.
22683 * localedata/locales/kw_GB: Likewise.
22684 * localedata/locales/ky_KG: Likewise.
22685 * localedata/locales/lb_LU: Likewise.
22686 * localedata/locales/lg_UG: Likewise.
22687 * localedata/locales/li_BE: Likewise.
22688 * localedata/locales/li_NL: Likewise.
22689 * localedata/locales/lij_IT: Likewise.
22690 * localedata/locales/ln_CD: Likewise.
22691 * localedata/locales/lo_LA: Likewise.
22692 * localedata/locales/lt_LT: Likewise.
22693 * localedata/locales/lv_LV: Likewise.
22694 * localedata/locales/lzh_TW: Likewise.
22695 * localedata/locales/mag_IN: Likewise.
22696 * localedata/locales/mai_IN: Likewise.
22697 * localedata/locales/mg_MG: Likewise.
22698 * localedata/locales/mhr_RU: Likewise.
22699 * localedata/locales/mi_NZ: Likewise.
22700 * localedata/locales/mk_MK: Likewise.
22701 * localedata/locales/ml_IN: Likewise.
22702 * localedata/locales/mn_MN: Likewise.
22703 * localedata/locales/mni_IN: Likewise.
22704 * localedata/locales/mr_IN: Likewise.
22705 * localedata/locales/ms_MY: Likewise.
22706 * localedata/locales/mt_MT: Likewise.
22707 * localedata/locales/my_MM: Likewise.
22708 * localedata/locales/nan_TW: Likewise.
22709 * localedata/locales/nan_TW@latin: Likewise.
22710 * localedata/locales/nb_NO: Likewise.
22711 * localedata/locales/nds_DE: Likewise.
22712 * localedata/locales/nds_NL: Likewise.
22713 * localedata/locales/ne_NP: Likewise.
22714 * localedata/locales/nhn_MX: Likewise.
22715 * localedata/locales/niu_NU: Likewise.
22716 * localedata/locales/niu_NZ: Likewise.
22717 * localedata/locales/nl_AW: Likewise.
22718 * localedata/locales/nl_BE: Likewise.
22719 * localedata/locales/nl_NL: Likewise.
22720 * localedata/locales/nn_NO: Likewise.
22721 * localedata/locales/nr_ZA: Likewise.
22722 * localedata/locales/nso_ZA: Likewise.
22723 * localedata/locales/oc_FR: Likewise.
22724 * localedata/locales/om_ET: Likewise.
22725 * localedata/locales/om_KE: Likewise.
22726 * localedata/locales/or_IN: Likewise.
22727 * localedata/locales/os_RU: Likewise.
22728 * localedata/locales/pa_IN: Likewise.
22729 * localedata/locales/pa_PK: Likewise.
22730 * localedata/locales/pap_AW: Likewise.
22731 * localedata/locales/pap_CW: Likewise.
22732 * localedata/locales/pl_PL: Likewise.
22733 * localedata/locales/ps_AF: Likewise.
22734 * localedata/locales/pt_BR: Likewise.
22735 * localedata/locales/pt_PT: Likewise.
22736 * localedata/locales/quz_PE: Likewise.
22737 * localedata/locales/raj_IN: Likewise.
22738 * localedata/locales/ro_RO: Likewise.
22739 * localedata/locales/ru_RU: Likewise.
22740 * localedata/locales/ru_UA: Likewise.
22741 * localedata/locales/rw_RW: Likewise.
22742 * localedata/locales/sa_IN: Likewise.
22743 * localedata/locales/sat_IN: Likewise.
22744 * localedata/locales/sc_IT: Likewise.
22745 * localedata/locales/sd_IN: Likewise.
22746 * localedata/locales/sd_IN@devanagari: Likewise.
22747 * localedata/locales/se_NO: Likewise.
22748 * localedata/locales/sgs_LT: Likewise.
22749 * localedata/locales/shs_CA: Likewise.
22750 * localedata/locales/si_LK: Likewise.
22751 * localedata/locales/sid_ET: Likewise.
22752 * localedata/locales/sk_SK: Likewise.
22753 * localedata/locales/sl_SI: Likewise.
22754 * localedata/locales/sm_WS: Likewise.
22755 * localedata/locales/so_DJ: Likewise.
22756 * localedata/locales/so_ET: Likewise.
22757 * localedata/locales/so_KE: Likewise.
22758 * localedata/locales/so_SO: Likewise.
22759 * localedata/locales/sq_AL: Likewise.
22760 * localedata/locales/sq_MK: Likewise.
22761 * localedata/locales/sr_ME: Likewise.
22762 * localedata/locales/sr_RS: Likewise.
22763 * localedata/locales/sr_RS@latin: Likewise.
22764 * localedata/locales/ss_ZA: Likewise.
22765 * localedata/locales/st_ZA: Likewise.
22766 * localedata/locales/sv_FI: Likewise.
22767 * localedata/locales/sv_SE: Likewise.
22768 * localedata/locales/sw_KE: Likewise.
22769 * localedata/locales/sw_TZ: Likewise.
22770 * localedata/locales/szl_PL: Likewise.
22771 * localedata/locales/ta_IN: Likewise.
22772 * localedata/locales/ta_LK: Likewise.
22773 * localedata/locales/tcy_IN: Likewise.
22774 * localedata/locales/te_IN: Likewise.
22775 * localedata/locales/tg_TJ: Likewise.
22776 * localedata/locales/th_TH: Likewise.
22777 * localedata/locales/the_NP: Likewise.
22778 * localedata/locales/ti_ER: Likewise.
22779 * localedata/locales/ti_ET: Likewise.
22780 * localedata/locales/tig_ER: Likewise.
22781 * localedata/locales/tk_TM: Likewise.
22782 * localedata/locales/tl_PH: Likewise.
22783 * localedata/locales/tn_ZA: Likewise.
22784 * localedata/locales/to_TO: Likewise.
22785 * localedata/locales/tpi_PG: Likewise.
22786 * localedata/locales/tr_CY: Likewise.
22787 * localedata/locales/tr_TR: Likewise.
22788 * localedata/locales/ts_ZA: Likewise.
22789 * localedata/locales/tt_RU: Likewise.
22790 * localedata/locales/tt_RU@iqtelif: Likewise.
22791 * localedata/locales/ug_CN: Likewise.
22792 * localedata/locales/uk_UA: Likewise.
22793 * localedata/locales/unm_US: Likewise.
22794 * localedata/locales/ur_IN: Likewise.
22795 * localedata/locales/ur_PK: Likewise.
22796 * localedata/locales/uz_UZ: Likewise.
22797 * localedata/locales/uz_UZ@cyrillic: Likewise.
22798 * localedata/locales/ve_ZA: Likewise.
22799 * localedata/locales/vi_VN: Likewise.
22800 * localedata/locales/wa_BE: Likewise.
22801 * localedata/locales/wae_CH: Likewise.
22802 * localedata/locales/wal_ET: Likewise.
22803 * localedata/locales/wo_SN: Likewise.
22804 * localedata/locales/xh_ZA: Likewise.
22805 * localedata/locales/yi_US: Likewise.
22806 * localedata/locales/yo_NG: Likewise.
22807 * localedata/locales/yue_HK: Likewise.
22808 * localedata/locales/yuw_PG: Likewise.
22809 * localedata/locales/zh_CN: Likewise.
22810 * localedata/locales/zh_HK: Likewise.
22811 * localedata/locales/zh_SG: Likewise.
22812 * localedata/locales/zh_TW: Likewise.
22813 * localedata/locales/zu_ZA: Likewise.
22814
22815 2017-11-13 Florian Weimer <fweimer@redhat.com>
22816
22817 * support/next_to_fault.h, support/next_to_fault.c: New files.
22818 * support/Makefile (libsupport-routines): Add next_to_fault.
22819 * resolv/tst-inet_pton.c (struct next_to_fault)
22820 (next_to_fault_allocate, next_to_fault_free): Remove.
22821 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22822
22823 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22824
22825 * elf/dl-support.c: Include <dl-procruntime.c>.
22826 * include/link.h: Include <link_map.h>.
22827 * sysdeps/generic/dl-procruntime.c: New file.
22828 * sysdeps/generic/link_map.h: Likewise.
22829 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22830 the writable ld.so namespace.
22831
22832 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22833
22834 timezone: pacify GCC -Wstringop-truncation
22835 Problem reported by Martin Sebor in:
22836 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22837 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22838
22839 2017-11-12 Florian Weimer <fweimer@redhat.com>
22840
22841 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22842 tst-xreadlink.
22843 (tests): Add tst-xreadlink.
22844 * support/support.h (xstrndup): Declare.
22845 * support/xunistd.h (xunlink, xreadlink): Declare.
22846 * support/temp_file.h (support_create_temp_directory): Declare.
22847 * support/temp_file.c (support_create_temp_directory): New function.
22848 * support/support_chroot.c (support_chroot_create): Use it.
22849 * support/xreadlink.c: New file.
22850 * support/xstrndup.c: Likewise.
22851 * support/xunlink.c: Likewise.
22852 * support/tst-xreadlink.c: Likewise.
22853
22854 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22855
22856 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22857
22858 2017-11-11 Florian Weimer <fweimer@redhat.com>
22859
22860 [BZ #22409]
22861 [BZ #22412]
22862 * resolv/res_comp.c (printable_string, binary_hnok)
22863 (binary_leading_dash): New functions.
22864 (res_hnok): Reimplement using these functions and ns_name_pton.
22865 (res_ownok): Likewise.
22866 (res_mailok): Reimplement using printable_string, ns_name_pton and
22867 binary_hnok.
22868 (res_dnok): Reimplement using printable_string and ns_name_pton.
22869 * resolv/tst-res_hnok.c (tests): Add additional tests.
22870 (LETTERDIGITS, PRINTABLE): Define.
22871 (do_test): Adjust one_char results.
22872
22873 2017-11-11 Florian Weimer <fweimer@redhat.com>
22874
22875 [BZ #22413]
22876 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22877 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22878
22879 2017-11-11 Florian Weimer <fweimer@redhat.com>
22880
22881 * resolv/tst-ns_name_pton.c: New file.
22882 * resolv/Makefile (tests): Add tst-ns_name_pton.
22883 (tst-ns_name_pton): Link against libresolv.
22884
22885 2017-11-11 Florian Weimer <fweimer@redhat.com>
22886
22887 * resolv/tst-res_hnok.c: New file.
22888 * resolv/Makefile (tests): Add tst-res_hnok.
22889 (tst-res_hnok): Link against libresolv.
22890
22891 2017-11-11 Florian Weimer <fweimer@redhat.com>
22892
22893 * resolv/tst-resolv-network.c: Use test framework instead explicit
22894 main function.
22895
22896 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22897
22898 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22899 <jmp_buf-macros.h>.
22900 [!_ISOMAC] (STR_HELPER): New.
22901 [!_ISOMAC] (STR): Likewise.
22902 [!_ISOMAC] (TEST_SIZE): Likewise.
22903 [!_ISOMAC] (TEST_ALIGN): Likewise.
22904 [!_ISOMAC] (TEST_OFFSET): Likewise.
22905 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22906 field offsets of jmp_buf as well as sigjmp_buf.
22907 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22908 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22909 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22910 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22911 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22912 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22913 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22914 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22915 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22916 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22917 Likewise.
22918 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22919 Likewise.
22920 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22921 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22922 Likewise.
22923 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22924 Likewise.
22925 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22926 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22927 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22928 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22929 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22930 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22931 Likewise.
22932 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22933 Likewise.
22934 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22935 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22936 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22937
22938 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22939
22940 * include/float.h
22941 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22942 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22943 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22944 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22945 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22946 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22947 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22948 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22949 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22950 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22951 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22952 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22953 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22954 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22955 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22956 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22957 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22958 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22959 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22960 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22961 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22962 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22963 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22964 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22965 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22966 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22967 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22968 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22969 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22970 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22971 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22972 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22973 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22974 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22975 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22976 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22977 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22978 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22979 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22980 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22981 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22982 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22983 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22984 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22985 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22986 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22987 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22988 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22989 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22990 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22991 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22992 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22993 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22994 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22995 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22996 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22997 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22998 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22999 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23000 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
23001 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23002 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
23003 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23004 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
23005 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23006 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
23007 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23008 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
23009 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23010 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
23011 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23012 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
23013 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23014 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
23015 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23016 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
23017 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23018 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
23019 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23020 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
23021 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23022 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
23023 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23024 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
23025 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23026 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
23027 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
23028 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
23029
23030 * stdlib/tst-strtod.h (F16): New macro.
23031 (F32): Likewise.
23032 (F64): Likewise.
23033 (F32X): Likewise.
23034 (F64X): Likewise.
23035 (F128X): Likewise.
23036 (IF_FLOAT16): Likewise.
23037 (IF_FLOAT32): Likewise.
23038 (IF_FLOAT64): Likewise.
23039 (IF_FLOAT32X): Likewise.
23040 (IF_FLOAT64X): Likewise.
23041 (IF_FLOAT128X): Likewise.
23042 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23043 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23044 (STRTOD_TEST_FOREACH): Likewise.
23045 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23046 (CHOOSE_f64): Likewise.
23047 (CHOOSE_f32x): Likewise.
23048 (CHOOSE_f64x): Likewise.
23049
23050 2017-11-07 Andreas Schwab <schwab@suse.de>
23051
23052 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23053
23054 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23055
23056 [BZ #22403]
23057 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23058 to be escaped.
23059 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23060 to be escaped.
23061
23062 2017-11-07 Claude Paroz <claude@2xlibre.net>
23063
23064 [BZ #22403]
23065 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23066 to be escaped.
23067 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23068 to be escaped.
23069 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23070 to be escaped.
23071
23072 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23073
23074 [BZ #22298]
23075 * nptl/allocatestack.c (allocate_stack): Check if
23076 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23077 __PTHREAD_MUTEX_HAVE_PREV is defined.
23078 * nptl/descr.h (pthread): Likewise.
23079 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23080 Likewise.
23081 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23082 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23083 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23084 * sysdeps/nptl/bits/thread-shared-types.h
23085 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23086 defines.
23087 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23088 of __WORDSIZE for internal layout.
23089 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23090 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23091 instead of __WORDSIZE whether to use an union for __spins and __list
23092 fields.
23093 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23094 case.
23095 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23096 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23097 defines.
23098 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23099 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23100 Likewise.
23101 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23102 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23103 Likewise.
23104 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23105 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23106 Likewise.
23107 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23108 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23109 Likewise.
23110 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23111 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23112 Likewise.
23113 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23114 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23115 Likewise.
23116 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23117 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23118 Likewise.
23119 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23120 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23121 Likewise.
23122 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23123 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23124 Likewise.
23125 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23126 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23127 Likewise.
23128 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23129 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23130 Likewise.
23131 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23132 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23133 Likewise.
23134 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23135 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23136 Likewise.
23137 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23138 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23139 Likewise.
23140
23141 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23142 New macros.
23143 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23144 checks for expected input type size.
23145 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23146 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23147 Likewise.
23148 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23149 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23150 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23151 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23152 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23153 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23154 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23155 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23156 superflous runtime assert check.
23157 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23158 Likewise.
23159 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23160 Likewise.
23161 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23162 Likewise.
23163 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23164 Likewise.
23165 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23166 Likewise.
23167 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23168 Likewise.
23169 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23170 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23171 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23172 Likewise.
23173 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23174 Likewise.
23175 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23176 Likewise.
23177 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23178 Likewise.
23179 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23180 Likewise.
23181 * nptl/pthread_attr_setinheritsched.c
23182 (__pthread_attr_setinheritsched): Likewise.
23183 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23184 Likewise.
23185 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23186 Likewise.
23187 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23188 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23189 __old_pthread_attr_setstack): Likewise.
23190 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23191 Likewise.
23192 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23193 Likewise.
23194 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23195 Likewise.
23196 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23197 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23198 Likewise.
23199 * nptl/tst-typesizes.c: Remove file.
23200
23201 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23202 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23203 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23204 checks for internal pthread_mutex_t offsets.
23205 * sysdeps/aarch64/nptl/pthread-offsets.h
23206 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23207 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23208 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23209 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23210 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23211 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23212 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23213 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23214 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23215 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23216 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23217 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23218 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23219 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23220 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23221 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23222 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23223 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23224
23225 2017-11-07 Florian Weimer <fweimer@redhat.com>
23226
23227 * bits/mman-linux.h: Move ...
23228 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23229 comment.
23230 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23231 outdated comment.
23232
23233 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23234
23235 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23236 Redefine STRNLEN as __strnlen_power8.
23237
23238 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23239
23240 * signal/sighold.c (sighold): Optimize implementation.
23241
23242 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23243 __NR_rt_sigqueueinfo.
23244
23245 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23246 __sigtimedwait.
23247 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23248 assume __NR_rt_sigtimedwait.
23249 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23250 and add LIBC_CANCEL_HANDLED for cancellation marking.
23251 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23252
23253 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23254 (sysdeps_routines): Add memchr_noneon.
23255 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23256 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23257 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23258 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23259 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23260 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23261 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23262
23263 * sysdeps/arm/arm-ifunc.h: New file.
23264 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23265 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23266 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23267 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23268 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23269 (__memcpy_neon): Avoid create hidden alias.
23270 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23271 (__memcpy_vfp): Likewise.
23272 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23273 (sysdep_routines): Add memcpy_arm.
23274 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23275
23276 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23277
23278 [BZ #22362]
23279 * Makerules (make-link-multidir): New.
23280 * config.make.in (multidir): New.
23281 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23282 * configure: Regenerated.
23283 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23284 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23285 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23286 New target.
23287
23288 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23289
23290 [BZ #22402]
23291 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23292 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23293
23294 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23295
23296 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23297 to be escaped.
23298
23299 2017-11-04 Florian Weimer <fweimer@redhat.com>
23300
23301 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23302
23303 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23304
23305 * math/math.h [__HAVE_DISTINCT_FLOAT16
23306 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23307 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23308 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23309 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23310 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23311 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23312 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23313 (__MATH_TG_F32): New macro.
23314 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23315 (__MATH_TG_F64X): Likewise.
23316 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23317 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23318
23319 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23320
23321 * po/de.po: Update translations.
23322 * po/ru.po: Likewise.
23323
23324 2017-11-03 Florian Weimer <fweimer@redhat.com>
23325
23326 * manual/filesys.texi (Hard Links): Document linkat.
23327
23328 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23329
23330 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23331 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23332 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23333 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23334 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23335 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23336 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23337 the same as _Float128.
23338 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23339 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23340 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23341
23342 * stdlib/stdlib.h
23343 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23344 Declare.
23345 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23346 Likewise.
23347 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23348 Likewise.
23349 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23350 (strtof32x): Likewise.
23351 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23352 (strtof64x): Likewise.
23353 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23354 (strtof128x): Likewise.
23355 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23356 (strfromf16): Likewise.
23357 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23358 (strfromf32): Likewise.
23359 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23360 (strfromf64): Likewise.
23361 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23362 (strfromf32x): Likewise.
23363 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23364 (strfromf64x): Likewise.
23365 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23366 (strfromf128x): Likewise.
23367 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23368 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23369 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23370 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23371 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23372 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23373
23374 2017-11-03 Richard Henderson <rth@twiddle.net>
23375
23376 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23377
23378 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23379
23380 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23381
23382 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23383
23384 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23385 DT_TLSDESC_GOT initialization.
23386 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23387 (_dl_tlsdesc_resolve_hold): Likewise.
23388 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23389 (_dl_tlsdesc_resolve_hold): Likewise.
23390 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23391 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23392
23393 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23394
23395 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23396
23397 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23398
23399 [BZ #18572]
23400 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23401 non-lazily for R_ARM_TLS_DESC.
23402
23403 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23404
23405 [BZ #17078]
23406 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23407 R_ARM_TLS_DESC case.
23408 (elf_machine_lazy_rel): Remove the prelink check.
23409
23410 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23411
23412 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23413 DT_TLSDESC_GOT initialization.
23414 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23415 (_dl_tlsdesc_resolve_rela): Likewise.
23416 (_dl_tlsdesc_resolve_hold): Likewise.
23417 (_dl_tlsdesc_undefweak): Remove ldar.
23418 (_dl_tlsdesc_dynamic): Likewise.
23419 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23420 (_dl_tlsdesc_resolve_rela): Likewise.
23421 (_dl_tlsdesc_resolve_hold): Likewise.
23422 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23423 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23424 (_dl_tlsdesc_resolve_rela): Likewise.
23425 (_dl_tlsdesc_resolve_hold): Likewise.
23426
23427 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23428
23429 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23430 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23431
23432 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23433
23434 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23435 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23436
23437 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23438
23439 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23440 Declare.
23441 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23442 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23443 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23444 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23445 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23446 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23447 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23448 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23449 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23450 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23451 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23452
23453 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23454
23455 [BZ #22382]
23456 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23457 * localedata/locales/tpi_PG: Add standard header.
23458
23459 2017-11-02 Florian Weimer <fweimer@redhat.com>
23460
23461 test-errno-linux: quotactl can fail with EPERM in containers.
23462 * sysdeps/unix/sysv/linux/test-errno-linux.c
23463 (LIST, LIST_FORWARD): New macros.
23464 (check_error_in_list): New function.
23465 (test_wrp_rv): Accept list of permitted error codes.
23466 (test_wrp_rv2): Remove.
23467 (test_wrp): Call test_wrp_rv with list of error codes.
23468 (test_wrp2): Accept list of error codes.
23469 (do_test): Adjust. Allow EPERM for quotactl.
23470
23471 2017-11-02 Florian Weimer <fweimer@redhat.com>
23472
23473 * stdio-common/bug16.c (do_test): Use array_length.
23474 * stdio-common/errlist.c (_sys_nerr): Likewise.
23475 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23476 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23477 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23478 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23479 (do_test): Use array_length.
23480 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23481 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23482 * stdio-common/tst-printf-round.c (do_test): Likewise.
23483 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23484 (CHECK): Use array_length.
23485 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23486 * stdio-common/tstscanf.c (main): Likewise.
23487 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23488
23489 2017-11-02 Florian Weimer <fweimer@redhat.com>
23490
23491 Add array_length and array_end macros.
23492 * include/array_length.h: New file.
23493
23494 2017-11-02 Florian Weimer <fweimer@redhat.com>
23495
23496 [BZ #22332]
23497 * posix/tst-glob-tilde.c (do_noescape): New variable.
23498 (one_test): Process it.
23499 (do_test): Set do_noescape. Add unescaping test case.
23500
23501 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23502
23503 * math/complex.h
23504 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23505 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23506 with appropriate macros defined and undefined.
23507 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23508 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23509 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23510 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23511 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23512 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23513 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23514 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23515 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23516 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23517
23518 * math/complex.h
23519 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23520 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23521 that for long double. Do not condition define and undefine of
23522 _Mdouble_complex_ on [__CFLOAT128].
23523
23524 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23525
23526 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23527 of <sysdeps/generic/sysdep.h>.
23528 (ALIGNARG): Removed.
23529 (ASM_SIZE_DIRECTIVE): Likewise.
23530 (ENTRY): Likewise.
23531 (END): Likewise.
23532 (ENTRY_CHK): Likewise.
23533 (END_CHK): Likewise.
23534 (syscall_error): Likewise.
23535 (mcount): Likewise.
23536 (PSEUDO_END): Likewise.
23537 (L): Likewise.
23538 (atom_text_section): Likewise.
23539 * sysdeps/x86/sysdep.h: New file.
23540 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23541 of <sysdeps/generic/sysdep.h>.
23542 (ALIGNARG): Removed.
23543 (ASM_SIZE_DIRECTIVE): Likewise.
23544 (ENTRY): Likewise.
23545 (END): Likewise.
23546 (ENTRY_CHK): Likewise.
23547 (END_CHK): Likewise.
23548 (syscall_error): Likewise.
23549 (mcount): Likewise.
23550 (PSEUDO_END): Likewise.
23551 (L): Likewise.
23552 (atom_text_section): Likewise.
23553
23554 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23555
23556 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23557 category of LC_CTYPE set to "i18n:2012".
23558 * localedata/locales/i18n_ctype: Regenerate.
23559
23560 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23561
23562 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23563 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23564 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23565 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23566
23567 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23568 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23569 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23570 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23571
23572 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23573
23574 * math/complex.h
23575 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23576 New macro.
23577 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23578 Likewise.
23579 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23580 Likewise.
23581 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23582 (CMPLXF32X): Likewise.
23583 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23584 (CMPLXF64X): Likewise.
23585 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23586 (CMPLXF128X): Likewise.
23587
23588 * math/math.h
23589 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23590 (__MATH_EVAL_FMT2): Define to add 0.0f.
23591
23592 2017-10-31 Alan Modra <amodra@gmail.com>
23593
23594 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23595 include sysdep.h.
23596 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23597 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23599 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23600 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23601 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23602 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23603 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23604 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23605 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23606 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23607 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23608 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23609 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23610 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23611 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23612 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23613 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23614 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23615 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23616 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23617 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23618 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23619 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23620 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23621 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23622 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23623 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23624 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23625 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23626 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23627 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23628 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23629 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23630 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23631 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23632 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23633 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23634 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23635 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23636 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23637 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23638 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23639 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23640 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23641 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23642 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23643 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23644 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23645 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23646 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23647 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23648 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23649 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23650 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23651 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23652 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23653 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23654 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23655 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23656 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23657 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23658 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23659 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23660 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23661 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23662 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23663 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23664 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23665
23666 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23667 include sysdep.h and math_ldbl_opt.h.
23668
23669 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23670 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23671 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23672 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23673 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23674 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23675 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23676 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23677 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23678 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23679 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23680 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23681 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23682 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23683 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23684 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23686 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23687 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23688 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23689 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23690 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23691 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23692 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23693 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23694 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23695
23696 2017-10-31 Alan Modra <amodra@gmail.com>
23697
23698 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23699 string/strncase_l.c, not string/strncase.c.
23700 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23701 (libc_hidden_def): Redefine.
23702
23703 2017-10-31 Alan Modra <amodra@gmail.com>
23704
23705 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23706 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23707 (__strcasecmp): Don't define.
23708
23709 2017-10-31 Alan Modra <amodra@gmail.com>
23710
23711 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23712 IS_IN (libc).
23713 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23714 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23715 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23716
23717 2017-10-31 Alan Modra <amodra@gmail.com>
23718
23719 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23720 USE_AS_STPNCPY.
23721
23722 2017-10-31 Alan Modra <amodra@gmail.com>
23723
23724 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23725 Redefine only when SHARED.
23726
23727 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23728
23729 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23730 Include <bits/math-finite.h> with appropriate macros defined and
23731 undefined.
23732 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23733 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23734 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23735 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23736 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23737
23738 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23739 [!_Mlong_double_] (_Mlong_double_): Likewise.
23740 [!_Mfloat16_] (_Mfloat16_): Likewise.
23741 [!_Mfloat32_] (_Mfloat32_): Likewise.
23742 [!_Mfloat64_] (_Mfloat64_): Likewise.
23743 [!_Mfloat128_] (_Mfloat128_): Likewise.
23744 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23745 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23746 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23747 (_Mdouble_): Define without indirection through those macros.
23748 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23749 [!_Mfloat128_] (_Mfloat128_): Likewise.
23750 [_Mlong_double_] (_Mlong_double_): Likewise.
23751 (_Mdouble_): Define without indirection through those macros.
23752 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23753 not add -D_Mlong_double_=double.
23754 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23755 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23756
23757 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23758
23759 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23760
23761 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23762
23763 * sysdeps/x86/libc-start.c: Reformat.
23764
23765 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23766
23767 [BZ #22353]
23768 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23769 (1): Renamed to ...
23770 (L(Src0)): This.
23771 (L(Src1)): New.
23772 (L(Src2)): Likewise.
23773 (L(1)): Renamed to ...
23774 (L(Src3)): This.
23775
23776 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23777
23778 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23779 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23780 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23781 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23782 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23783 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23784 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23785 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23786 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23787 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23788 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23789 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23790 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23791 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23792 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23793 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23794 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23795 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23796 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23797 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23798 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23799 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23800 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23801 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23802 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23803 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23804 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23805 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23806 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23807 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23808 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23809 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23810 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23811 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23812 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23813 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23814 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23815 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23816 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23817 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23818 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23819 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23820 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23821 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23822 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23823 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23824 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23825 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23826 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23827 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23828 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23829 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23830 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23831 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23832 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23833 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23834 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23835 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23836 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23837 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23838 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23839 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23840 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23841 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23842 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23843 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23844
23845 2017-10-30 Florian Weimer <fweimer@redhat.com>
23846
23847 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23848 always defined.
23849 * io/tst-mkdirat.c (do_test): Likewise.
23850 * io/tst-mkfifoat.c (do_test): Likewise.
23851 * io/tst-mknodat.c (do_test): Likewise.
23852 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23853 * locale/programs/locale.c (select_dirs): Likewise.
23854 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23855 * posix/bug-glob2.c (my_readdir): Likewise.
23856 * posix/tst-dir.c (main): Likewise.
23857 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23858 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23859
23860 2017-10-30 Florian Weimer <fweimer@redhat.com>
23861
23862 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23863 just __USE_GNU.
23864
23865 2017-10-30 Florian Weimer <fweimer@redhat.com>
23866
23867 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23868 Convert to support/test-driver.c.
23869 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23870 New macro parameters.
23871 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23872 * posix/tst-gnuglob.c: New file.
23873 * posix/tst-gnuglob64.c: Likewise.
23874 * posix/Makefile (tests): Add tst-gnuglob64.
23875
23876 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23877
23878 [BZ #19485]
23879 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23880 and use a better translation for March in “mon”.
23881 * localedata/locales/csb_PL: Use more ASCII to improve the
23882 readability of the source.
23883
23884 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23885
23886 [BZ #13953]
23887 * localedata/locales/km_KH: Use ASCII as much
23888 as possible for better readability of the source and
23889 remove useless comments.
23890 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23891 was commented out and apparently wrong anyway because it was
23892 using Lao characters. If Buddhist era should be used
23893 for km_KH, a native speaker should write the correct formaat
23894 for Khmer.
23895 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23896 (According to CLDR, the first weekday for Cambodia is Sunday).
23897 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23898 (These were using Lao characters which must be wrong. If we get
23899 the correct data from a native speaker, we could add it back, until
23900 then it is better not to have name_mr and name_mrs at all than
23901 having it wrong).
23902
23903 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23904
23905 * locale/loadlocale.c: Correct size of
23906 _nl_value_type_LC_<category> arrays.
23907
23908 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23909
23910 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23911 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23912 with appropriate macros defined and undefined.
23913 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23914 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23915 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23916 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23917 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23918
23919 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23920
23921 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23922 "-O2 -march=i586".
23923
23924 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23925
23926 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23927 with lowercase letters to make it agree with CLDR.
23928
23929 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23930
23931 [BZ #15260]
23932 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23933 first letters of yesstr and nostr in yesexpr and noexpr,
23934 not for the full words.
23935 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23936 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23937 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23938 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23939 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23940 first letters of yesstr and nostr in yesexpr and noexpr,
23941 until now only English was matched in yesexpr and noexpr.
23942 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23943 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23944 fil but not for tl. As tl and fil are very similar, using fil
23945 is probably better than using English.
23946
23947 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23948
23949 [BZ #21706]
23950 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23951 in yesstr and nostr.
23952
23953 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23954
23955 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23956 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23957 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23958 Likewise.
23959 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23960 Likewise.
23961 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23962 Likewise.
23963 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23964 Likewise.
23965 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23966 (SNANF128X): Likewise.
23967
23968 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23969 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23970 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23971 (HUGE_VAL_F32): Likewise.
23972 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23973 (HUGE_VAL_F64): Likewise.
23974 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23975 (HUGE_VAL_F32X): Likewise.
23976 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23977 (HUGE_VAL_F64X): Likewise.
23978 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23979 (HUGE_VAL_F128X): Likewise.
23980
23981 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23982
23983 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23984 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23985 for the br_FR locale.
23986
23987 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23988
23989 [BZ #21706]
23990 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23991
23992 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23993
23994 * locale/programs/record-status.h: Define globals, and function
23995 prototypes. Move function bodies...
23996 * locale/programs/record-status.c: ... to here. New file.
23997 * iconv/Makefile (iconv_prog-modules): Add record-status.
23998 * locale/Makefile (lib-modules): Likewise.
23999 * iconv/iconv_prog.c: Remove verbose.
24000 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
24001 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
24002 record a warning about ASCII compatibility.
24003 * locale/programs/ld-monetary.c (monetary_finish): If
24004 warn_int_curr_symbol is true then record a warning about the symbol
24005 not being in our ISO 4217 list.
24006 * locale/programs/locale.c: Include record-status.h. Remove verbose.
24007 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
24008 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
24009 (OPT_NO_WARN): Define.
24010 (OPT_WARN): Define.
24011 (options): Add entry for --no-warnings, and --warnings.
24012 (set_warnings): New function to enable/disable warnings.
24013 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
24014 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
24015 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
24016 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
24017 Pass flags to generate_locale.
24018 (generate_locale): Accept new flag argument and pass it to localedef
24019 invocation.
24020 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
24021 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
24022
24023 * localedata/Makefile (test-input-data): Use full file name.
24024 * localedata/da_DK.in: Rename to...
24025 * localedata/da_DK.ISO-8859-1.in: ...this.
24026 * localedata/de_DE.in: Rename to...
24027 * localedata/de_DE.ISO-8859-1.in: ...this.
24028 * localedata/en_US.in: Rename to...
24029 * localedata/en_US.ISO-8859-1.in: ...this.
24030 * localedata/fr_FR.in: Rename to...
24031 * localedata/fr_FR.UTF-8.in: ... this.
24032 * localedata/hr_HR.in: Rename to...
24033 * localedata/hr_HR.ISO-8859-2.in: ...this.
24034 * localedata/hu_HU.in: Rename to...
24035 * localedata/hu_HU.UTF-8.in: ...this.
24036 * localedata/si_LK.in: Rename to...
24037 * localedata/si_LK.UTF-8.in: ...this.
24038 * localedata/sv_SE.in: Rename to...
24039 * localedata/sv_SE.ISO-8859-1.in: ...this.
24040 * localedata/tr_TR.in: Rename to...
24041 * localedata/tr_TR.UTF-8.in: ...this.
24042 * localedata/uk_UA.in: Rename to...
24043 * localedata/uk_UA.UTF-8.in: ...this.
24044 * localedata/sort-test.sh: Test file is locale name with the
24045 suffix.
24046
24047 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24048 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24049 file.
24050 * localedata/locales/i18n_ctype: Regenerate.
24051 * localedata/locales/tr_TR: Likewise.
24052 * localedata/locales/translit_circle: Likewise.
24053 * localedata/locales/translit_cjk_compat: Likewise.
24054 * localedata/locales/translit_combining: Likewise.
24055 * localedata/locales/translit_compat: Likewise.
24056 * localedata/locales/translit_font: Likewise.
24057 * localedata/locales/translit_fraction: Likewise.
24058
24059 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24060
24061 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24062 lxvd2x/stxvd2x with lvx/stvx.
24063 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24064
24065 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24066
24067 * include/alloc_buffer.h: Replace "if if " with "if " in
24068 comments.
24069 * sysdeps/mips/memcpy.S: Likkewise.
24070 * sysdeps/mips/memset.S: Likewise.
24071 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24072 Likewise.
24073 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24074 Likewise.
24075 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24076 Likewise.
24077
24078 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24079
24080 [BZ #15261]
24081 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24082 yesexpr and noexpr.
24083 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24084 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24085 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24086 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24087 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24088 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24089 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24090
24091 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24092
24093 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24094 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24095 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24096 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24097 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24098 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24099 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24100 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24101 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24102 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24103 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24104 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24105
24106 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24107
24108 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24109 as possible for better readability of the source.
24110 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24111 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24112 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24113 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24114 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24115 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24116 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24117 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24118 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24119 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24120 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24121 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24122 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24123 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24124 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24125 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24126 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24127 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24128 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24129 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24130 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24131 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24132 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24133 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24134 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24135 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24136 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24137 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24138 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24139 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24140 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24141 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24142 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24143 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24144 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24145 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24146 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24147 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24148 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24149 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24150 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24151 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24152 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24153 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24154 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24155 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24156 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24157 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24158 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24159 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24160 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24161 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24162 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24163 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24164 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24165 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24166 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24167 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24168 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24169 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24170 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24171 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24172 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24173 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24174 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24175 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24176 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24177 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24178 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24179 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24180 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24181 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24182 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24183 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24184 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24185 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24186 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24187 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24188 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24189 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24190 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24191 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24192 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24193 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24194 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24195 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24196 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24197 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24198 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24199 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24200 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24201 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24202 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24203 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24204 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24205 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24206 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24207 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24208 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24209 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24210 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24211 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24212 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24213 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24214 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24215 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24216 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24217 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24218 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24219 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24220 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24221 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24222 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24223 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24224 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24225 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24226 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24227 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24228 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24229 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24230 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24231 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24232 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24233 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24234 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24235 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24236 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24237 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24238 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24239 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24240 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24241 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24242 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24243 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24244 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24245 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24246 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24247 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24248 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24249 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24250 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24251 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24252 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24253 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24254 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24255 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24256 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24257 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24258 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24259 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24260 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24261 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24262 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24263 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24264 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24265 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24266 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24267 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24268 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24269 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24270 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24271 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24272 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24273 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24274 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24275 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24276 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24277 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24278 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24279 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24280 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24281 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24282 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24283 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24284
24285 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24286
24287 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24288 (Use first letters of yesstr and nostr correctly instead of using
24289 full words).
24290
24291 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24292
24293 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24294 (Use first letters of yesstr and nostr correctly).
24295
24296 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24297
24298 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24299 also check for the first characters of yesstr and nostr.
24300 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24301 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24302
24303 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24304
24305 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24306 also check for Chinese characters.
24307
24308 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24309
24310 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24311 match also for the contents of yesstr and nostr. As the first letter
24312 of yesstr and nostr is equal, checking only for the first letter
24313 is not enough.
24314
24315 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24316
24317 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24318 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24319
24320 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24321
24322 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24323 of main contributor.
24324
24325 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24326
24327 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24328 instead of using English.
24329
24330 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24331
24332 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24333 by including the first letters of nostr and yesexpr in the regexp.
24334 Also make it more readable by using ASCII where possible.
24335
24336 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24337
24338 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24339 the first letter of nostr in the regexp. It agrees with CLDR now.
24340 Also make it more readable by using ASCII where possible.
24341
24342 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24343
24344 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24345 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24346 these strings contain a U+17D6 (which somewhat looks like a colon)
24347 instead of a real colon to separate the full words for “yes”
24348 and “no” from the single letter responses.
24349
24350 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24351
24352 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24353 it agree with CLDR (include the first letter of yesstr).
24354 Also make it more readable by using ASCII where possible.
24355
24356 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24357
24358 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24359 and improve yesexpr and noexpr. The yesstr and nostr apparently
24360 came from CLDR. And CLDR has a bug there: these strings contain
24361 a U+0903 (which looks like a colon) instead of a real colon
24362 to separate the full words for “yes” and “no” from the single
24363 letter responses.
24364
24365 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24366
24367 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24368 letters of the full yesstr and nostr in yesexpr and noexpr.
24369
24370 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24371
24372 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24373 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24374 * localedata/locales/an_ES: Make source more readable by using ASCII
24375 where possible.
24376
24377 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24378
24379 [BZ #20952]
24380 * localedata/locales/yuw_PG: New file.
24381 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24382 * locale/iso-639.def: Add Yau (Uruwa).
24383
24384 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24385
24386 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24387
24388 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24389
24390 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24391 (__libc_realloc): Likewise.
24392 (_mid_memalign): Likewise.
24393 (__libc_calloc): Likewise.
24394
24395 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24396
24397 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24398 by adding the generic +1 and -0 as in all other locales.
24399 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24400 day names and make it more readable by using ASCII where possible.
24401
24402 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24403
24404 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24405 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24406
24407 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24408
24409 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24410 WNOHANG in waitpid call.
24411
24412 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24413
24414 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24415 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24416
24417 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24418 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24419 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24420 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24421 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24422 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24423 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24424 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24425 variables.
24426
24427 2017-10-23 Michael Collison <michael.collison@arm.com>
24428
24429 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24430 with __builtin_sqrt.
24431 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24432 with __builtin_sqrtf.
24433 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24434 with __builtin_ceil.
24435 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24436 with __builtin_ceilf.
24437 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24438 with __builtin_floor.
24439 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24440 with __builtin_floorf.
24441 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24442 with __builtin_fma.
24443 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24444 with __builtin_fmaf.
24445 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24446 with __builtin_fmax.
24447 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24448 with __builtin_fmaxf.
24449 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24450 with __builtin_fmin.
24451 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24452 with __builtin_fminf.
24453 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24454 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24455 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24456 with builtin_rint and conversion to int.
24457 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24458 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24459 with builtin_llround.
24460 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24461 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24462 with builtin_rint and conversion to long int.
24463 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24464 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24465 with builtin_lround.
24466 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24467 with builtin_lroundf.
24468 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24469 statements with __builtin_nearbyint.
24470 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24471 statements with __builtin_nearbyintf.
24472 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24473 with __builtin_rint.
24474 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24475 with __builtin_rintf.
24476 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24477 with __builtin_round.
24478 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24479 with __builtin_roundf.
24480 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24481 with __builtin_trunc.
24482 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24483 with __builtin_truncf.
24484 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24485 and s_l[l]round[f].c too.
24486
24487 2017-10-23 Alan Modra <amodra@gmail.com>
24488
24489 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24490 Adjust stack after restoring regs. Add missing LR cfi_restore.
24491
24492 2017-10-23 Alan Modra <amodra@gmail.com>
24493
24494 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24495 Move LR save and frame setup/teardown and LR restore to
24496 immediately around memset call. Provide cfi.
24497
24498 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24499
24500 * sysdeps/i386/fpu/e_powf.S: Removed.
24501 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24502 * sysdeps/i386/fpu/w_powf.c: Likewise.
24503 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24504 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24505 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24506 Add e_powf-sse2.
24507 (CFLAGS-e_powf-sse2.c): New.
24508 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24509 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24510
24511 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24512
24513 * sysdeps/i386/fpu/e_log2f.S: Removed.
24514 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24515 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24516 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24517 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24518 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24519 Add e_log2f-sse2.
24520 (CFLAGS-e_log2f-sse2.c): New.
24521 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24522 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24523
24524 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24525
24526 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24527 Add e_powf-fma.
24528 (CFLAGS-e_powf-fma.c): New.
24529 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24530 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24531
24532 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24533
24534 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24535 Add e_log2f-fma.
24536 (CFLAGS-e_log2f-fma.c): New.
24537 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24538 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24539
24540 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24541
24542 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24543 Add e_logf-fma.
24544 (CFLAGS-e_logf-fma.c): New.
24545 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24546 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24547
24548 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24549
24550 * sysdeps/i386/fpu/e_logf.S: Removed.
24551 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24552 * sysdeps/i386/fpu/w_logf.c: Likewise.
24553 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24554 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24555 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24556 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24557 Add e_logf-sse2.
24558 (CFLAGS-e_logf-sse2.c): New.
24559 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24560 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24561
24562 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24563
24564 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24565 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24566 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24567 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24568 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24569 Add e_exp2f-sse2.
24570 (CFLAGS-e_exp2f-sse2.c): New.
24571 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24572 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24573
24574 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24575
24576 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24577 Add e_exp2f-fma.
24578 (CFLAGS-e_exp2f-fma.c): New.
24579 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24580 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24581
24582 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24583
24584 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24585 * sysdeps/i386/fpu/e_expf.S: Likewise.
24586 * sysdeps/i386/fpu/math_errf.c: Likewise.
24587 * sysdeps/i386/fpu/w_expf.c: Likewise.
24588 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24589 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24590 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24591 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24592 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24593 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24594 Remove e_expf-ia32.
24595 (CFLAGS-e_expf-sse2.c): New.
24596 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24597 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24598
24599 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24600
24601 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24602 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24603 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24604 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24605 e_expf.c.
24606 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24607 New.
24608 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24609 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24610 Renamed to ...
24611 (__redirect_expf): This.
24612 (SYMBOL_NAME): Changed to expf.
24613 (__ieee754_expf): Renamed to ...
24614 (__expf): This.
24615 (__GI___expf): This.
24616 (__ieee754_expf): Add strong_alias.
24617 (__expf_finite): Likewise.
24618 (__expf): New.
24619 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24620
24621 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24622
24623 [BZ #22332]
24624 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24625 unescaping.
24626
24627 2017-10-21 Florian Weimer <fweimer@redhat.com>
24628
24629 * posix/Makefile (tests): Add tst-glob-tilde.
24630 (tests-special): Add tst-glob-tilde-mem.out
24631 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24632 (tst-glob-tilde-mem.out): Add mtrace check.
24633 * posix/tst-glob-tilde.c: New file.
24634
24635 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24636
24637 * bits/floatn-common.h: New file.
24638 * math/Makefile (headers): Add bits/floatn-common.h.
24639 * bits/floatn.h: Include <bits/floatn-common.h>.
24640 * sysdeps/ia64/bits/floatn.h: Likewise.
24641 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24642 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24643 * sysdeps/powerpc/bits/floatn.h: Likewise.
24644 * sysdeps/x86/bits/floatn.h: Likewise.
24645
24646 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24647
24648 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24649 indicates whether compiler emits an warning for alias for
24650 functions with incompatible types.
24651
24652 [BZ #22273]
24653 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24654 the auxiliary process is terminated by a signal before calling _exit
24655 or execve.
24656
24657 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24658
24659 [BZ #21265]
24660 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24661 New.
24662 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24663 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24664 and bit_arch_XSAVEC_Usable if needed.
24665 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24666 and bit_arch_Use_dl_runtime_resolve_opt.
24667 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24668 Removed.
24669 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24670 (bit_arch_Prefer_No_AVX512): Updated.
24671 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24672 (bit_arch_XSAVEC_Usable): New.
24673 (STATE_SAVE_OFFSET): Likewise.
24674 (STATE_SAVE_MASK): Likewise.
24675 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24676 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24677 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24678 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24679 (index_arch_XSAVEC_Usable): New.
24680 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24681 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24682 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24683 is enabled.
24684 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24685 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24686 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24687 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24688 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24689 _dl_runtime_resolve_xsavec.
24690 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24691 Removed.
24692 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24693 instead of VEC_SIZE.
24694 (REGISTER_SAVE_BND0): Removed.
24695 (REGISTER_SAVE_BND1): Likewise.
24696 (REGISTER_SAVE_BND3): Likewise.
24697 (REGISTER_SAVE_RAX): Always defined to 0.
24698 (VMOV): Removed.
24699 (_dl_runtime_resolve_avx): Likewise.
24700 (_dl_runtime_resolve_avx_slow): Likewise.
24701 (_dl_runtime_resolve_avx_opt): Likewise.
24702 (_dl_runtime_resolve_avx512): Likewise.
24703 (_dl_runtime_resolve_avx512_opt): Likewise.
24704 (_dl_runtime_resolve_sse): Likewise.
24705 (_dl_runtime_resolve_sse_vex): Likewise.
24706 (USE_FXSAVE): New.
24707 (_dl_runtime_resolve_fxsave): Likewise.
24708 (USE_XSAVE): Likewise.
24709 (_dl_runtime_resolve_xsave): Likewise.
24710 (USE_XSAVEC): Likewise.
24711 (_dl_runtime_resolve_xsavec): Likewise.
24712 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24713 Removed.
24714 (_dl_runtime_resolve_avx512_opt): Likewise.
24715 (_dl_runtime_resolve_avx): Likewise.
24716 (_dl_runtime_resolve_avx_opt): Likewise.
24717 (_dl_runtime_resolve_sse): Likewise.
24718 (_dl_runtime_resolve_sse_vex): Likewise.
24719 (_dl_runtime_resolve_fxsave): New.
24720 (_dl_runtime_resolve_xsave): Likewise.
24721 (_dl_runtime_resolve_xsavec): Likewise.
24722
24723 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24724
24725 [BZ #22320]
24726 CVE-2017-15670
24727 * posix/glob.c (__glob): Fix one-byte overflow.
24728
24729 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24730
24731 * malloc/malloc.c (sysdep-cancel.h): Add include.
24732
24733 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24734
24735 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24736
24737 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24738
24739 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24740 (tests): Remove $(objpfx)ga_test depdendency.
24741 * resolv/ga_test.c: Remove file.
24742
24743 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24744
24745 [BZ #18812]
24746 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24747 * localedata/locales/kab_DZ: New file.
24748
24749 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24750
24751 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24752 _dl_relocate_static_pie instead of _dl_start to compute load
24753 address in static PIE.
24754
24755 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24756
24757 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24758
24759 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24760
24761 [BZ #13605]
24762 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24763 * localedata/locales/shn_MM: New file.
24764
24765 2017-10-20 Florian Weimer <fweimer@redhat.com>
24766
24767 [BZ #22321]
24768 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24769 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24770 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24771 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24772 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24773 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24774
24775 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24776
24777 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24778
24779 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24780
24781 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24782
24783 [BZ #22322]
24784 * sysdeps/mips/bits/long-double.h: Move to ....
24785 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24786
24787 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24788
24789 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24790
24791 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24792 H.J. Lu <hongjiu.lu@intel.com>
24793
24794 [BZ #22299]
24795 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24796 GLRO(dl_platform) to NULL.
24797 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24798 (modules-names): Add tst-platformmod-1 and
24799 x86_64/tst-platformmod-2.
24800 (CFLAGS-tst-platform-1.c): New.
24801 (CFLAGS-tst-platformmod-1.c): Likewise.
24802 (CFLAGS-tst-platformmod-2.c): Likewise.
24803 (LDFLAGS-tst-platformmod-2.so): Likewise.
24804 ($(objpfx)tst-platform-1): Likewise.
24805 ($(objpfx)tst-platform-1.out): Likewise.
24806 (tst-platform-1-ENV): Likewise.
24807 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24808 * sysdeps/x86_64/tst-platform-1.c: New file.
24809 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24810 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24811
24812 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24813
24814 [BZ #13994]
24815 * locale/iso-639.def: Add Karbi.
24816 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24817 * localedata/locales/mjw_IN: New file.
24818
24819 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24820
24821 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24822 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24823 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24824 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24825 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24826 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24827 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24828 <bits/floatn.h>.
24829 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24830 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24831 * manual/math.texi (Mathematics): Document additional architecture
24832 support for _Float128.
24833 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24834 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24835 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24836 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24837 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24838 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24839 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24840 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24841 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24842 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24843 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24844 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24845 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24846 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24847 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24848
24849 2017-10-18 Renlin Li <renlin.li@arm.com>
24850
24851 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24852 _DYNAMIC symbol to calculate load address.
24853
24854 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24855
24856 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24857 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24858 summary bits.
24859 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24860 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24861
24862 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24863
24864 [BZ #16777]
24865 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24866 and improve readability by using more ASCII.
24867 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24868 and improve readability by using more ASCII.
24869
24870 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24871
24872 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24873 not all targets support atomics on bool.
24874
24875 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24876
24877 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24878 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24879 __f128.
24880 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24881 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24882 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24883 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24884 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24885 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24886
24887 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24888
24889 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24890 defines.
24891
24892 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24893
24894 [BZ #22159]
24895 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24896 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24897 (do_check_remalloced_chunk): Fix build bug.
24898 (do_check_malloc_state): Add assert that checks arena->top.
24899 (malloc_consolidate): Remove initialization.
24900 (int_mallinfo): Remove call to malloc_consolidate.
24901 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24902
24903 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24904
24905 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24906 (have_fastchunks): Remove.
24907 (clear_fastchunks): Remove.
24908 (set_fastchunks): Remove.
24909 (malloc_state): Add have_fastchunks.
24910 (malloc_init_state): Use have_fastchunks.
24911 (do_check_malloc_state): Remove incorrect invariant checks.
24912 (_int_malloc): Use have_fastchunks.
24913 (_int_free): Likewise.
24914 (malloc_consolidate): Likewise.
24915
24916 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24917
24918 * malloc/malloc.c (tcache_put): Inline.
24919 (tcache_get): Inline.
24920
24921 2017-10-17 Jordi Mallach <jordi@gnu.org>
24922
24923 Aurelien Jarno <aurelien@aurel32.net>
24924 [BZ #2522]
24925 * localedata/locales/ca_ES@valencia: New file.
24926 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24927
24928 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24929
24930 [BZ #22296]
24931 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24932 < 6.x
24933
24934 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24935
24936 * scripts/build-many-glibcs.py (Context.add_all_configs):
24937 Add arm-linux-gnueabihf multiarch extra_glibcs.
24938
24939 * sysdeps/generic/ifunc-init.h: New file.
24940 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24941
24942 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24943
24944 [BZ #22019]
24945 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24946 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24947 * stdlib/tst-strfmon_l.c: adapt test case.
24948
24949 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24950
24951 * sysdeps/generic/float128-abi.h: New file.
24952 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24953 non-__prefixed symbols to ....
24954 * math/Versions: ... here. Include <float128-abi.h>.
24955 * stdlib/Versions ... and here. Include <float128-abi.h>
24956
24957 2017-10-16 Florian Weimer <fweimer@redhat.com>
24958
24959 * version.h (VERSION): Switch to ".9000" as the development
24960 version suffix.
24961
24962 2017-10-16 Florian Weimer <fweimer@redhat.com>
24963
24964 [BZ #22050]
24965 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24966 compat_symbol_reference to access non-default version.
24967
24968 2017-10-16 Florian Weimer <fweimer@redhat.com>
24969
24970 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24971
24972 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24973
24974 * include/shlib-compat.h (compat_symbol_reference): Update
24975 comment.
24976
24977 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24978
24979 * math/Makefile (test-types): Add
24980 $(type-float128-$(float128-alias-fcts)).
24981 * math/test-float128.h (TYPE_STR): Define conditional on
24982 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24983 (ULP_IDX): Likewise.
24984 (ULP_I_IDX): Likewise.
24985
24986 * stdlib/strtold.c: Include <bits/floatn.h>
24987 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24988 and later undefine as macro. Define as weak alias if
24989 [!USE_WIDE_CHAR].
24990 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24991 and later undefine as macro. Define as weak alias if
24992 [USE_WIDE_CHAR].
24993 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24994 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24995 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24996 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24997 Define and later undefine as macro. Define as weak alias if
24998 [USE_WIDE_CHAR].
24999 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
25000 <bits/floatn.h>.
25001 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
25002 Define and later undefine as macro. Define as weak alias if
25003 [!USE_WIDE_CHAR].
25004 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
25005 Define and later undefine as macro. Define as weak alias if
25006 [USE_WIDE_CHAR].
25007
25008 2017-10-15 Carlos O'Donell <carlos@redhat.com>
25009
25010 * localedata/collate-test.c (allocate_arrays): Don't use \n in
25011 record_verbose messages.
25012
25013 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
25014
25015 [BZ #22052]
25016 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
25017 to silence -O3 -Wall warning with GCC 7.
25018
25019 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
25020
25021 * Makeconfig (+link-static-before-libc): Use the first of
25022 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
25023 * gmon/Makefile (tests): Add tst-gmon-static.
25024 (tests-static): Likewise.
25025 (CFLAGS-tst-gmon-static.c): New.
25026 (CRT-tst-gmon-static): Likewise.
25027 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
25028 (tst-gmon-static-ENV): Likewise.
25029 (tests-special): Likewise.
25030 ($(objpfx)tst-gmon-static.out): Likewise.
25031 (clean-tst-gmon-static-data): Likewise.
25032 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
25033 * gmon/tst-gmon-static-gprof.sh: New file.
25034 * gmon/tst-gmon-static.c: Likewise.
25035
25036 2017-10-13 Carlos O'Donell <carlos@redhat.com>
25037
25038 [BZ #22295]
25039 * locale/programs/linereader.c (get_string): Don't warn on
25040 non-symbolic character.
25041
25042 [BZ #22294]
25043 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25044 int_curr_symbol.
25045
25046 [BZ #22292]
25047 * locale/programs/record-status.h: New file
25048 * locale/programs/locale.c: Add comment.
25049 * locale/programs/charmap-dir.c: Don't include error.h.
25050 (charmap_opendir): Use record_error.
25051 * locale/programs/charmap.c: Don't include error.h.
25052 (charmap_read): Use record_error, and record_warning.
25053 (parse_charmap): Likewise.
25054 * locale/programs/ld-address.c: Don't include error.h.
25055 (address_finish): Use record_error, and record_warning.
25056 * locale/programs/ld-collate.c: Don't include error.h.
25057 (collate_finish): Use record_error, and record_error_at_line.
25058 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25059 (ctype_class_new): Likewise.
25060 (ctype_map_new): Likewise.
25061 (set_one_default): Likewise.
25062 (set_class_defaults): Likewise.
25063 (translit_flatten): Likewise.
25064 (allocate_arrays): Use record_error, and record_verbose.
25065 * locale/programs/ld-identification.c: Don't include error.h.
25066 (indentation_finish): Use record_error and record_warning.
25067 * locale/programs/ld-measurement.c: Don't include error.h.
25068 (measurement_finish): Use record_error.
25069 * locale/programs/ld-messages.c
25070 (message_finish): Likewise.
25071 * locale/programs/ld-monetary.c
25072 (monetary_finish): Likewise.
25073 * locale/programs/ld-name.c (name_finish): Use record_error
25074 and record_warning.
25075 * locale/programs/ld-numeric.c
25076 (numeric_finish): Use record_error.
25077 * locale/programs/ld-paper.c: Don't include error.h.
25078 (paper_finish): Use record_error.
25079 * locale/programs/ld-telephone.c: Don't include error.h.
25080 (telephone_finish): Use record_error.
25081 * locale/programs/ld-time.c (time_finish): Likewise.
25082 * locale/programs/linereader.h (lr_error): Make inline func.
25083 * locale/programs/localedef.c: Define recorded_warning_count,
25084 and recorded_error_count.
25085 (main): Use record_error. Use recorded_error_count and
25086 recorded_warning_count to issue correct error returns.
25087 (add_to_readlist): Use record_error.
25088 (find_locale): Likewise.
25089 (load_locale): Likewise.
25090 * locale/programs/localedef.h: Remove be_quiet
25091 and WITH_CUR_LOCALE.
25092 * locale/programs/locarchive.c (compare_from_file): Use
25093 record_error.
25094 * locale/programs/locfile.c (write_locale_data): Use
25095 record_error.
25096 * locale/programs/repertoire.c: Dont include error.h.
25097 (repertoire_complain): Use record_error.
25098 * localedata/tst-fmon.sh: Expect failures from localedef.
25099 * localedata/tst-locale.sh: Likewise.
25100 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25101
25102 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25103 (REPORTS): Likewise.
25104 (check): Likewise.
25105 (i18n): Rename to...
25106 (i18n_ctype): ...this.
25107 (i18n-report): Rename to...
25108 (i18n_ctype-report): ...this.
25109 * localedata/locales/i18n_ctype: Regenerate.
25110 * localedata/locales/i18n: copy i18n_ctype.
25111
25112 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25113
25114 * stdlib/strfroml.c: Include <bits/floatn.h>.
25115 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25116 Define before include of <stdlib.h> and undefine afterwards, then
25117 define as weak alias.
25118
25119 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25120 Undefine and restore default definition. Use
25121 libm_alias_ldouble_other.
25122
25123 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25124
25125 [BZ #22153]
25126 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25127 in coredumps.
25128
25129 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25130
25131 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25132 Assign sym_map to be map for local symbols, as TLS relocations
25133 use sym_map to determine whether the symbol is defined and to
25134 extract the TLS information.
25135 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25136 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25137
25138 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25139
25140 [BZ #22189]
25141 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25142 (math_force_eval): Add powerpc version.
25143
25144 [BZ #22142]
25145 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25146 -DBL_MAX.
25147 (do_test): Likewise.
25148 * stdio-common/tst-printf.sh: Likewise.
25149 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25150 ifdef clause in order to set the carry bit right. Replace r0 by
25151 0 without changing the behavior.
25152
25153 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25154
25155 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25156 <libm-alias-ldouble.h>.
25157 (fabsl): Define using libm_alias_ldouble.
25158 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25159 <libm-alias-ldouble.h>.
25160 (fabsl): Define using libm_alias_ldouble.
25161
25162 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25163 Remove conditional code.
25164
25165 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25166 Rename to __clog10_internal_l.
25167 (__clog10_internal_l): Define aliases using
25168 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25169 with __clog10.
25170
25171 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25172
25173 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25174 * benchtests/sincosf-inputs: New file.
25175 * benchtests/cosf-inputs: New file.
25176 * benchtests/sinf-inputs: New file.
25177
25178 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25179
25180 * posix/tst-spawn.c (do_test): Wait for both children.
25181
25182 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25183
25184 [BZ #22284]
25185 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25186 tests-pie): Add tst-gmon-pie.
25187 (CFLAGS-tst-gmon-pie.c): New.
25188 (CRT-tst-gmon-pie): Likewise.
25189 (tst-gmon-pie-ENV): Likewise.
25190 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25191 ($(objpfx)tst-gmon-pie.out): Likewise.
25192 (clean-tst-gmon-pie-data): Likewise.
25193 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25194 * gmon/gmon.c [PIC]: Include <link.h>.
25195 [PIC] (callback): New function.
25196 (write_hist): Add an argument for load address. Subtract load
25197 address from PCs.
25198 (write_call_graph): Likewise.
25199 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25200 it to write_hist and write_call_graph.
25201 * gmon/tst-gmon-pie.c: New file.
25202
25203 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25204
25205 * math/Makefile (test-types-basic): New variable.
25206 (test-types): Likewise.
25207 (libm-test-support): Use $(test-types) instead of $(types).
25208 (libm-tests-base-normal): Likewise.
25209 (libm-tests-base-finite): Likewise.
25210 (libm-tests-base-inline): Likewise.
25211 (generated): Likewise.
25212 ($(objpfx)libm-test-support-$(t).c): Likewise.
25213 (libm-tests-for-type iterator): Likewise.
25214 (libm-test-support iterator): Likewise.
25215 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25216 (ulp_idx): Use ULP_IDX.
25217 * math/test-ldouble.h: Include <float.h>.
25218 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25219 (ULP_IDX): New macro.
25220 (ULP_I_IDX): Likewise.
25221 * math/test-double.h (ULP_IDX): Likewise.
25222 (ULP_I_IDX): Likewise.
25223 * math/test-float.h (ULP_IDX): Likewise.
25224 (ULP_I_IDX): Likewise.
25225 * math/test-float128.h (ULP_IDX): Likewise.
25226 (ULP_I_IDX): Likewise.
25227
25228 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25229
25230 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25231 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25232 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25233 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25234 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25235 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25236 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25237 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25238 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25239 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25240 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25241 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25242 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25243 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25244 (SINGLE_THREAD_BY_GLOBAL): Define.
25245 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25246 Likewise.
25247 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25248 Likewise.
25249 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25250 Likewise.
25251 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25252 Likewise.
25253 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25254 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25255 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25256 Likewise.
25257
25258 2017-10-11 Andreas Schwab <schwab@suse.de>
25259
25260 * nis/Makefile (aux): Remove.
25261 * nscd/Makefile (aux): Add nscd_hash.
25262 (nscd-modules): Likewise.
25263 ($(objpfx)nscd): Don't depend on libnsl.
25264 * nscd/nscd_hash.c: New file.
25265 * nscd/nscd_hash.h: Likewise.
25266 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25267 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25268 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25269 instead of <nis/rpcsvc/nis.h>.
25270 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25271
25272 2017-10-11 Florian Weimer <fweimer@redhat.com>
25273
25274 [BZ #22078]
25275 Avoid large NSS buffers with many addresses, aliases.
25276 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25277 using dynarrays and struct alloc_buffer.
25278 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25279 (tst-nss-files-hosts-multi): Link with -ldl.
25280 * nss/tst-nss-files-hosts-multi.c: New file.
25281
25282 2017-10-11 Florian Weimer <fweimer@redhat.com>
25283
25284 [BZ #18023]
25285 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25286 scratch_buffer. Eliminate gotos.
25287
25288 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25289
25290 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25291 libm_alias_ldouble_other.
25292 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25293 undefine and redefine.
25294 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25295 (exp10l): Do not define here.
25296 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25297 (weak_alias): Undefine and redefine.
25298 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25299 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25300 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25301 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25302
25303 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25304 [!__fma] (fma): Define using libm_alias_double.
25305 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25306 [!__fmaf] (fmaf): Define using libm_alias_float.
25307 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25308 (fmal): Define using libm_alias_ldouble.
25309
25310 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25311
25312 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25313 New macro.
25314 (libm_alias_double_other): Likewise.
25315 (libm_alias_double_r): Use libm_alias_double_other_r.
25316 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25317 New macro.
25318 (libm_alias_float_other): Likewise.
25319 (libm_alias_float_r): Use libm_alias_float_other_r.
25320 * sysdeps/generic/libm-alias-float128.h
25321 (libm_alias_float128_other_r): New macro.
25322 (libm_alias_float128_other): Likewise.
25323 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25324 * sysdeps/generic/libm-alias-ldouble.h
25325 (libm_alias_ldouble_other_r): New macro.
25326 (libm_alias_ldouble_other): Likewise.
25327 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25328 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25329 (libm_alias_double_other_r): New macro.
25330 (libm_alias_double_other): Likewise.
25331 (libm_alias_double_r): Use libm_alias_double_other_r.
25332 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25333 (libm_alias_ldouble_other_r): New macro.
25334 (libm_alias_ldouble_other): Likewise.
25335 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25336 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25337 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25338 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25339 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25340 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25341 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25342 * math/w_exp2f.c: Use libm_alias_float_other.
25343 * math/w_expf.c: Likewise.
25344 * math/w_log2f.c: Likewise.
25345 * math/w_logf.c: Likewise.
25346 * math/w_powf.c: Likewise.
25347 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25348 [!__exp2f]: Use libm_alias_float_other.
25349 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25350 [!__expf]: Use libm_alias_float_other.
25351 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25352 [!__log2f]: Use libm_alias_float_other.
25353 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25354 [!__logf]: Use libm_alias_float_other.
25355 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25356 [!__powf]: Use libm_alias_float_other.
25357
25358 2017-10-10 Florian Weimer <fweimer@redhat.com>
25359
25360 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25361 function.
25362 (_nss_files_gethostbyname3_r): Call it.
25363
25364 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25365
25366 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25367 error. Remove default definition of declare_mgen_alias.
25368 [!declare_mgen_alias_r]: Likewise.
25369 * sysdeps/generic/math-type-macros-double.h
25370 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25371 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25372 (declare_mgen_alias_r): Likewise.
25373 * sysdeps/generic/math-type-macros-float128.h
25374 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25375 * sysdeps/generic/math-type-macros-ldouble.h
25376 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25377 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25378 macro.
25379 (declare_mgen_alias_r_s): Likewise.
25380 (declare_mgen_alias_r): Likewise.
25381 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25382 (lgamma_r): Define using libm_alias_double_r.
25383 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25384 (lgammaf_r): Define using libm_alias_float_r.
25385 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25386 (lgammal_r): Define using libm_alias_ldouble_r.
25387 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25388 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25389
25390 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25391
25392 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25393 extern declaration.
25394
25395 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25396
25397 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25398
25399 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25400
25401 [BZ #21326]
25402 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25403 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25404 * math/Makefile (test-math-cxx11): New test.
25405 * math/test-math-cxx11.cc: New file.
25406
25407 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25408
25409 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25410
25411 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25412 call to allocate the slave pty file descriptor.
25413
25414 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25415
25416 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25417 [!__fma] (fma): Define using libm_alias_double.
25418 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25419 [!__fma] (fma): Define using libm_alias_double.
25420
25421 * sysdeps/ieee754/float128/float128_private.h: Include
25422 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25423 (libm_alias_ldouble_r): Undefine and redefine.
25424 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25425 <libm-alias-ldouble.h>.
25426 (asinhl): Define using libm_alias_ldouble.
25427 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25428 <libm-alias-ldouble.h>.
25429 (atanl): Define using libm_alias_ldouble.
25430 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25431 <libm-alias-ldouble.h>.
25432 (cbrtl): Define using libm_alias_ldouble.
25433 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25434 <libm-alias-ldouble.h>.
25435 (ceill): Define using libm_alias_ldouble.
25436 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25437 <libm-alias-ldouble.h>.
25438 (copysignl): Define using libm_alias_ldouble.
25439 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25440 <libm-alias-ldouble.h>.
25441 (cosl): Define using libm_alias_ldouble.
25442 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25443 <libm-alias-ldouble.h>.
25444 (erfl): Define using libm_alias_ldouble.
25445 (erfcl): Likewise.
25446 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25447 <libm-alias-ldouble.h>.
25448 (expm1l): Define using libm_alias_ldouble.
25449 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25450 <libm-alias-ldouble.h>.
25451 (fabsl): Define using libm_alias_ldouble.
25452 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25453 <libm-alias-ldouble.h>.
25454 (floorl): Define using libm_alias_ldouble.
25455 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25456 <libm-alias-ldouble.h>.
25457 (fmal): Define using libm_alias_ldouble.
25458 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25459 <libm-alias-ldouble.h>.
25460 (frexpl): Define using libm_alias_ldouble.
25461 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25462 libm_alias_ldouble.
25463 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25464 <libm-alias-ldouble.h>.
25465 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25466 libm_alias_ldouble.
25467 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25468 <libm-alias-ldouble.h>.
25469 (getpayloadl): Define using libm_alias_ldouble.
25470 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25471 <libm-alias-ldouble.h>.
25472 (llrintl): Define using libm_alias_ldouble.
25473 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25474 <libm-alias-ldouble.h>.
25475 (llroundl): Define using libm_alias_ldouble.
25476 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25477 <libm-alias-ldouble.h>.
25478 (logbl): Define using libm_alias_ldouble.
25479 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25480 <libm-alias-ldouble.h>.
25481 (lrintl): Define using libm_alias_ldouble.
25482 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25483 <libm-alias-ldouble.h>.
25484 (lroundl): Define using libm_alias_ldouble.
25485 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25486 <libm-alias-ldouble.h>.
25487 (modfl): Define using libm_alias_ldouble.
25488 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25489 <libm-alias-ldouble.h>.
25490 (nearbyintl): Define using libm_alias_ldouble.
25491 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25492 <libm-alias-ldouble.h>.
25493 (nextafterl): Define using libm_alias_ldouble.
25494 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25495 <libm-alias-ldouble.h>.
25496 (nextupl): Define using libm_alias_ldouble.
25497 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25498 <libm-alias-ldouble.h>.
25499 (remquol): Define using libm_alias_ldouble.
25500 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25501 <libm-alias-ldouble.h>.
25502 (rintl): Define using libm_alias_ldouble.
25503 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25504 <libm-alias-ldouble.h>.
25505 (roundevenl): Define using libm_alias_ldouble.
25506 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25507 <libm-alias-ldouble.h>.
25508 (roundl): Define using libm_alias_ldouble.
25509 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25510 using libm_alias_ldouble.
25511 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25512 <libm-alias-ldouble.h>.
25513 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25514 Define using libm_alias_ldouble.
25515 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25516 <libm-alias-ldouble.h>.
25517 (sincosl): Define using libm_alias_ldouble.
25518 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25519 <libm-alias-ldouble.h>.
25520 (sinl): Define using libm_alias_ldouble.
25521 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25522 <libm-alias-ldouble.h>.
25523 (tanhl): Define using libm_alias_ldouble.
25524 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25525 <libm-alias-ldouble.h>.
25526 (tanl): Define using libm_alias_ldouble.
25527 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25528 <libm-alias-ldouble.h>.
25529 (totalorderl): Define using libm_alias_ldouble.
25530 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25531 <libm-alias-ldouble.h>.
25532 (totalordermagl): Define using libm_alias_ldouble.
25533 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25534 <libm-alias-ldouble.h>.
25535 (truncl): Define using libm_alias_ldouble.
25536 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25537 libm_alias_ldouble.
25538 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25539 libm_alias_ldouble.
25540 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25541 <libm-alias-ldouble.h>.
25542 (weak_alias): Do not undefine and redefine.
25543 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25544 (copysignl): Define with long_double_symbol only if [IS_IN
25545 (libc)].
25546 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25547 <libm-alias-ldouble.h>.
25548 (weak_alias): Do not undefine and redefine.
25549 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25550 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25551 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25552 <libm-alias-ldouble.h>.
25553 (weak_alias): Do not undefine and redefine.
25554 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25555 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25556 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25557 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25558 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25559 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25560 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25561 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25562 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25563 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25564 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25565 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25566 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25567 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25568 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25569 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25570 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25571 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25572 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25573 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25574 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25575 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25576 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25577 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25578 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25579 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25580
25581 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25582
25583 [BZ #22111]
25584 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25585 (tcache_thread_freeres): Set tcache_shutting_down before
25586 freeing the tcache.
25587 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25588 * malloc/tst-malloc-tcache-leak.c: New file.
25589
25590 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25591
25592 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25593 back to powerpc32 file.
25594 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25595 (memrchr): Add __memrchr_power8 to ifunc list.
25596 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25597 extra bytes for unaligned inputs.
25598
25599 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25600
25601 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25602 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25603 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25604 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25605 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25606
25607 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25608
25609 * sysdeps/arm/libm-test-ulps: Update.
25610
25611 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25612 <libm-alias-ldouble.h>.
25613 (asinhl): Define using libm_alias_ldouble.
25614 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25615 <libm-alias-ldouble.h>.
25616 (cbrtl): Define using libm_alias_ldouble.
25617 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25618 <libm-alias-ldouble.h>.
25619 (copysignl): Define using libm_alias_ldouble.
25620 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25621 <libm-alias-ldouble.h>.
25622 (cosl): Define using libm_alias_ldouble.
25623 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25624 <libm-alias-ldouble.h>.
25625 (erfl): Define using libm_alias_ldouble.
25626 (erfcl): Likewise.
25627 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25628 <libm-alias-ldouble.h>.
25629 (fmal): Define using libm_alias_ldouble.
25630 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25631 <libm-alias-ldouble.h>.
25632 (frexpl): Define using libm_alias_ldouble.
25633 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25634 libm_alias_ldouble.
25635 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25636 <libm-alias-ldouble.h>.
25637 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25638 libm_alias_ldouble.
25639 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25640 <libm-alias-ldouble.h>.
25641 (getpayloadl): Define using libm_alias_ldouble.
25642 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25643 <libm-alias-ldouble.h>.
25644 (llrintl): Define using libm_alias_ldouble.
25645 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25646 <libm-alias-ldouble.h>.
25647 (llroundl): Define using libm_alias_ldouble.
25648 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25649 <libm-alias-ldouble.h>.
25650 (lrintl): Define using libm_alias_ldouble.
25651 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25652 <libm-alias-ldouble.h>.
25653 (lroundl): Define using libm_alias_ldouble.
25654 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25655 <libm-alias-ldouble.h>.
25656 (modfl): Define using libm_alias_ldouble.
25657 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25658 <libm-alias-ldouble.h>.
25659 (nextupl): Define using libm_alias_ldouble.
25660 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25661 <libm-alias-ldouble.h>.
25662 (remquol): Define using libm_alias_ldouble.
25663 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25664 <libm-alias-ldouble.h>.
25665 (roundevenl): Define using libm_alias_ldouble.
25666 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25667 <libm-alias-ldouble.h>.
25668 (roundl): Define using libm_alias_ldouble.
25669 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25670 using libm_alias_ldouble.
25671 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25672 <libm-alias-ldouble.h>.
25673 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25674 <libm-alias-ldouble.h>.
25675 (setpayloadsigl): Define using libm_alias_ldouble.
25676 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25677 <libm-alias-ldouble.h>.
25678 (sincosl): Define using libm_alias_ldouble.
25679 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25680 <libm-alias-ldouble.h>.
25681 (sinl): Define using libm_alias_ldouble.
25682 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25683 <libm-alias-ldouble.h>.
25684 (tanhl): Define using libm_alias_ldouble.
25685 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25686 <libm-alias-ldouble.h>.
25687 (tanl): Define using libm_alias_ldouble.
25688 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25689 <libm-alias-ldouble.h>.
25690 (totalorderl): Define using libm_alias_ldouble.
25691 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25692 <libm-alias-ldouble.h>.
25693 (totalordermagl): Define using libm_alias_ldouble.
25694 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25695 libm_alias_ldouble.
25696 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25697 libm_alias_ldouble.
25698
25699 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25700
25701 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25702 memmove_falkor.
25703 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25704 (__libc_ifunc_impl_list): Likewise.
25705 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25706 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25707
25708 * benchtests/bench-memmove-walk.c: New file.
25709 * benchtests/Makefile (string-benchset): Add it.
25710
25711 * benchtests/bench-memset-walk.c: New file.
25712 * benchtests/Makefile (string-benchset): Add it.
25713
25714 * benchtests/bench-memcpy-walk.c: New file.
25715 * benchtests/Makefile (string-benchset): Add it.
25716
25717 2017-10-05 Florian Weimer <fweimer@redhat.com>
25718
25719 nscd: Eliminate compilation time dependency in the build output.
25720 * nscd/nscd_stat.c (STATDATA_VERSION)
25721 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25722 (STATDATA_VERSION_FULL): New macro definitions.
25723 (compilation): Remove.
25724 (struct statdata): Adjust version member.
25725 (send_stats): Set version from STATDATA_VERSION_FULL.
25726 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25727
25728 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25729
25730 * configure.ac (--enable-add-ons): Remove option.
25731 (machine): Do not mention add-ons in comment.
25732 (LIBC_PRECONFIGURE): Likewise.
25733 (add_ons): Remove variable and sanity checks and logic to locate
25734 add-ons.
25735 (add_ons_automatic): Remove variable.
25736 (configured_add_ons): Likewise.
25737 (add_ons_sfx): Likewise.
25738 (add_ons_pfx): Likewise.
25739 (add_on_subdirs): Likewise.
25740 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25741 consideration of add-ons in Implies handling.
25742 (sysdeps_add_ons): Likewise.
25743 * configure: Regenerated.
25744 * libidn/configure.ac: Remove.
25745 * libidn/configure: Likewise.
25746 * sysdeps/unix/inet/configure.ac: New file.
25747 * sysdeps/unix/inet/configure: New generated file.
25748 * sysdeps/unix/inet/Subdirs: Add libidn.
25749 * Makeconfig (sysdeps-srcdirs): Remove variable.
25750 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25751 ($(common-objpfx)config.status): Do not depend on add-on files.
25752 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25753 comment.
25754 (all-subdirs): Do not include $(add-on-subdirs).
25755 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25756 * config.make.in (add-ons): Remove variable.
25757 (add-on-subdirs): Likewise.
25758 (sysdeps-add-ons): Likewise.
25759 * manual/Makefile (add-chapters): Remove.
25760 ($(objpfx)texis): Do not depend on $(add-chapters).
25761 (nonexamples): Do not handle $(add-chapters).
25762 (examples): Do not handle $(add-ons).
25763 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25764 libc-texinfo.sh.
25765 * manual/install.texi (Installation): Do not mention add-ons.
25766 (--enable-add-ons): Do not document configure option.
25767 * INSTALL: Regenerated.
25768 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25769 * manual/maint.texi (Hierarchy Conventions): Do not mention
25770 add-ons.
25771 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25772 --enable-add-ons.
25773 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25774 add-ons.
25775 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25776 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25777
25778 2017-10-05 Andreas Schwab <schwab@suse.de>
25779
25780 [BZ #15142]
25781 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25782 (_IO_flush_all_lockp): Always lock list_all_lock.
25783 (_IO_flush_all_linebuffered): Likewise.
25784 (_IO_unbuffer_all): Likewise.
25785
25786 2017-10-05 Florian Weimer <fweimer@redhat.com>
25787
25788 [BZ #15436]
25789 Do not flush stdio streams on abort.
25790 * stdlib/abort.c (fflush): Remove macro definition.
25791 (abort): Remove stages related to stdio flushing.
25792
25793 2017-10-05 Florian Weimer <fweimer@redhat.com>
25794
25795 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25796
25797 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25798
25799 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25800
25801 2017-10-05 Florian Weimer <fweimer@redhat.com>
25802
25803 * support/support_format_hostent.c (support_format_hostent): Add
25804 more error information for NETDB_INTERNAL.
25805
25806 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25807
25808 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25809 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25810 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25811 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25812 AC_DEFINE if multi-arch is enabled.
25813 * sysdeps/i386/configure: Regenerated.
25814
25815 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25816
25817 * Makeconfig (+link-static-before-libc): Use
25818 $(DEFAULT-LDFLAGS-$(@F)).
25819 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25820 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25821 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25822
25823 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25824
25825 * elf/Makefile (tests): Add tst-main1.
25826 (modules-names): Add tst-main1mod.
25827 ($(objpfx)tst-main1): New.
25828 (CRT-tst-main1): Likewise.
25829 (LDFLAGS-tst-main1): Likewise.
25830 (LDLIBS-tst-main1): Likewise.
25831 (tst-main1mod.so-no-z-defs): Likewise.
25832 * elf/tst-main1.c: New file.
25833 * elf/tst-main1mod.c: Likewise.
25834
25835 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25836
25837 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25838
25839 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25840
25841 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25842 (fma): Define using libm_alias_double.
25843 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25844 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25845 <math_ldbl_opt.h>.
25846 (fmal): Do not define as compat symbol here.
25847 * sysdeps/alpha/fpu/s_fma.c: New file.
25848
25849 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25850
25851 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25852
25853 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25854
25855 [BZ #22229]
25856 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25857 <math_ldbl_opt.h>
25858 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25859 and libc.
25860 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25861 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25862 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25863 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25864 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25865 Include <math_ldbl_opt.h>
25866 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25867 and libc.
25868 (compat_symbol): Undefine and redefine.
25869 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25870 <math_ldbl_opt.h>
25871 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25872 (compat_symbol): Undefine and redefine.
25873 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25874 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25875 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25876 GLIBC_2_1 for libm.
25877 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25878 GLIBC_2.0 copysignl symbol.
25879 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25880 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25881
25882 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25883
25884 2017-10-04 Florian Weimer <fweimer@redhat.com>
25885
25886 * scripts/check-local-headers.sh: Ignore nspr4 header file
25887 directory in addition to nspr.
25888
25889 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25890
25891 [BZ #17956]
25892 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25893 * configure: Regenerate.
25894 * crypt/Makefile (nss-cpp-flags): New variable.
25895 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25896 (CPPFLAGS-md5-crypt.c): Use it.
25897 * scripts/check-local-headers.sh: Ignore nspr header file
25898 directory.
25899
25900 2017-10-04 Andreas Schwab <schwab@suse.de>
25901
25902 * nis/Makefile (services): Remove compat.
25903 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25904 ($(objpfx)libnss_compat.so): Remove rule.
25905 * nis/Versions (libnss_compat): Remove.
25906 * nss/Makefile (services): Add compat.
25907 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25908 * nss/Versions (libnss_compat): Define.
25909 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25910 Don't include <rpc/types.h>. Replace bool_t by bool.
25911 * nss/nss_compat/compat-initgroups.c: Likewise.
25912 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25913 instead of <rpcsrv/ypclnt.h>.
25914 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25915 yp_get_default_domain.
25916 * nss/nss_compat/compat-pwd.c: Likewise.
25917 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25918 yp_get_default_domain.
25919 * nss/nss_compat/nisdomain.c: New file.
25920 * nss/nss_compat/nisdomain.h: Likewise.
25921
25922 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25923
25924 [BZ #22244]
25925 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25926 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25927
25928 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25929
25930 [BZ #22243]
25931 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25932 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25933
25934 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25935
25936 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25937 "movl main@GOTOFF(%ebx), %eax".
25938
25939 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25940
25941 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25942 allow undefined _DYNAMIC in PIE libc.a.
25943 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25944 Likewse.
25945
25946 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25947
25948 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25949 check _DYNAMIC.
25950
25951 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25952
25953 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25954 check _DYNAMIC.
25955
25956 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25957
25958 * math/test-math-iscanonical.cc (error): Replace bool with int.
25959
25960 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25961
25962 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25963 (modf): Define using libm_alias_double, only if [!__modf].
25964 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25965 <libm-alias-double.h>.
25966 (modf): Define using libm_alias_double, only if [!__modf].
25967 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25968 compat symbol here.
25969 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25970 (weak_alias): Do not undefine and redefine.
25971 (strong_alias): Likewise.
25972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25973 (weak_alias): Likewise.
25974 (strong_alias): Likewise.
25975
25976 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25977 (logb): Define using libm_alias_double, only if [!__logb].
25978 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25979 <libm-alias-double.h>.
25980 (logb): Define using libm_alias_double, only if [!__logb].
25981 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25982 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25983 (weak_alias): Do not undefine and redefine.
25984 (strong_alias): Likewise.
25985 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25986 (weak_alias): Likewise.
25987 (strong_alias): Likewise.
25988
25989 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25990
25991 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25992 Check SHARED instead PIC.
25993
25994 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25995
25996 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25997 [!__fmaf] (fmaf): Define using libm_alias_float.
25998
25999 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
26000 (frexp): Define using libm_alias_double.
26001 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
26002 <libm-alias-double.h>.
26003 (frexp): Define using libm_alias_double.
26004 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
26005 compat symbol here.
26006
26007 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
26008
26009 [BZ #22235]
26010 * math/math.h: Trivial fix for unbalanced parentheses in comment.
26011 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
26012 (CFLAGS-test-math-iscanonical.cc): New variable.
26013 * math/test-math-iscanonical.cc: New file.
26014 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
26015 Provide a C++ implementation based on function overloading,
26016 rather than using __MATH_TG, which uses C-only builtins.
26017 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
26018 Likewise.
26019 * sysdeps/powerpc/powerpc64le/Makefile
26020 (CFLAGS-test-math-iscanonical.cc): New variable.
26021
26022 2017-10-03 Joseph Myers <joseph@codesourcery.com>
26023
26024 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
26025 (ceil): Define using libm_alias_double.
26026 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
26027 (floor): Define using libm_alias_double.
26028 * sysdeps/ieee754/dbl-64/s_llround.c: Include
26029 <libm-alias-double.h>.
26030 (llround): Define using libm_alias_double.
26031 * sysdeps/ieee754/dbl-64/s_lround.c: Include
26032 <libm-alias-double.h>.
26033 (lround): Define using libm_alias_double.
26034 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
26035 <libm-alias-double.h>.
26036 (nearbyint): Define using libm_alias_double.
26037 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
26038 <libm-alias-double.h>.
26039 (remquo): Define using libm_alias_double.
26040 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26041 (rint): Define using libm_alias_double.
26042 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26043 (round): Define using libm_alias_double.
26044 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26045 (trunc): Define using libm_alias_double.
26046 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26047 <libm-alias-double.h>.
26048 (ceil): Define using libm_alias_double.
26049 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26050 <libm-alias-double.h>.
26051 (floor): Define using libm_alias_double.
26052 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26053 <libm-alias-double.h>.
26054 (llround): Define using libm_alias_double.
26055 [_LP64] (lround): Likewise.
26056 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26057 <libm-alias-double.h>.
26058 [!_LP64] (lround): Define using libm_alias_double.
26059 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26060 <libm-alias-double.h>.
26061 (nearbyint): Define using libm_alias_double.
26062 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26063 <libm-alias-double.h>.
26064 (remquo): Define using libm_alias_double.
26065 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26066 <libm-alias-double.h>.
26067 (rint): Define using libm_alias_double.
26068 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26069 <libm-alias-double.h>.
26070 (round): Define using libm_alias_double.
26071 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26072 <libm-alias-double.h>.
26073 (trunc): Define using libm_alias_double.
26074 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26075 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26076 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26077 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26078 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26079 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26080 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26081 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26082 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26083
26084 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26085
26086 * math/w_remainder.c: New file.
26087 * math/w_remainderf.c: New file.
26088 * math/w_remainderl.c: New file.
26089
26090 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26091
26092 * elf/rtld.c (BOOTSTRAP_MAP): New.
26093 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26094 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26095 Likewise.
26096 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26097 Likewise.
26098 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26099 Likewise.
26100
26101 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26102
26103 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26104 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26105 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26106 rtld_hidden_data_ver): Define to empty.
26107 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26108 __assert_perror_fail): Likewise.
26109 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26110 (__rewinddir): Likewise.
26111 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26112 (__profile_frequency): Likewise.
26113 * include/setjmp.h (__sigsetjmp): Likewise.
26114 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26115 __libc_sigaction): Likewise.
26116 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26117 not set hidden attribute.
26118 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26119 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26120 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26121 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26122 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26123 __fxstatat64): Likewise.
26124 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26125 (__uname): Likewise.
26126 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26127 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26128 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26129 (NO_RTLD_HIDDEN): Set.
26130 * sysdeps/mach/hurd/configure: Refresh.
26131 * config.h.in: Refresh.
26132
26133 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26134
26135 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26136 (atan): Define using libm_alias_double.
26137 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26138 (tan): Define using libm_alias_double.
26139 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26140 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26141
26142 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26143 define as weak alias of __atan. Do not define any aliases if
26144 [__atan].
26145 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26146 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26147 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26148 as weak alias of __tan. Do not define any aliases if [__tan].
26149 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26150 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26151 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26152 __atan.
26153 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26154 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26155 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26156 and define as weak alias of __atan.
26157 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26158 __atan.
26159 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26160 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26161 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26162 define as weak alias of __tan.
26163
26164 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26165
26166 * math/w_lgamma.c: New file.
26167 * math/w_lgammaf.c: New file.
26168 * math/w_lgammal.c: New file.
26169
26170 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26171
26172 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26173 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26174 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26175 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26176 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26177 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26178 * sysdeps/i386/fpu/w_log2f.c: New file.
26179 * sysdeps/i386/fpu/w_logf.c: New file.
26180 * sysdeps/i386/fpu/w_powf.c: New file.
26181 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26182 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26183 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26184
26185 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26186 H.J. Lu <hongjiu.lu@intel.com>
26187
26188 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26189 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26190 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26191 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26192 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26193 the new expf code.
26194 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26195 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26196 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26197 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26198 * sysdeps/i386/fpu/w_exp2f.c: New file.
26199 * sysdeps/i386/fpu/w_expf.c: New file.
26200 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26201 * sysdeps/x86_64/fpu/w_expf.c: New file.
26202
26203 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26204
26205 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26206 (log2f): Likewise.
26207 (powf): Likewise.
26208 * math/w_log2f.c: New file.
26209 * math/w_logf.c: New file.
26210 * math/w_powf.c: New file.
26211 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26212 * math/w_logf_compat.c (__logf_compat): Likewise.
26213 * math/w_powf_compat.c (__powf_compat): Likewise.
26214 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26215 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26216 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26217 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26218 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26219 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26220 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26221 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26222 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26223 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26224 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26225 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26226 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26227 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26228 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26229 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26230 Likewise.
26231 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26232 Likewise.
26233 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26234 Likewise.
26235 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26236 Likewise.
26237 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26238 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26239 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26240 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26241 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26242 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26243 Likewise.
26244 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26245 Likewise.
26246 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26247 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26248 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26249
26250 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26251
26252 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26253 (sysdep_routines): Add memrchr_power8.
26254 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26255 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26256 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26257 New file.
26258 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26259 (memrchr): Add __memrchr_power8 to ifunc list.
26260 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26261
26262 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26263
26264 [BZ #18822]
26265 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26266 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26267 libc_hidden_def.
26268 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26269 (__posix_fallocate64_l64): Likewise.
26270
26271 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26272
26273 [BZ #18822]
26274 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26275 (__sched_setaffinity_new): Add libc_hidden_proto and
26276 libc_hidden_def.
26277
26278 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 [BZ #18822]
26281 * include/glob.h (__glob64): Add libc_hidden_proto.
26282 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26283 libc_hidden_def.
26284
26285 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26286
26287 [BZ #18822]
26288 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26289 attribute_hidden.
26290
26291 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26292
26293 [BZ #18822]
26294 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26295
26296 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26297
26298 [BZ #18822]
26299 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26300 libc_hidden_def.
26301
26302 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26303
26304 [BZ #18822]
26305 * csu/version.c (__libc_print_version): Add attribute_hidden.
26306
26307 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26308
26309 [BZ #18822]
26310 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26311
26312 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 [BZ #18822]
26315 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26316
26317 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26318
26319 [BZ #18822]
26320 * nscd/nscd_helper.c (__nis_hash): New prototype.
26321
26322 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26323
26324 [BZ #18822]
26325 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26326 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26327 libc_hidden_def.
26328 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26329 * termios/tcgetattr.c (__tcgetattr): Likewise.
26330
26331 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26332
26333 [BZ #18822]
26334 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26335 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26336 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26337 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26338 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26339
26340 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26341
26342 [BZ #18822]
26343 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26344
26345 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26346
26347 [BZ #18822]
26348 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26349 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26350
26351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 [BZ #18822]
26354 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26355
26356 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26357
26358 [BZ #18822]
26359 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26360 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26361
26362 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26363
26364 [BZ #18822]
26365 * include/ifreq.h: New file.
26366 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26367 (__ifreq): Likewise.
26368 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26369 (__ifreq): Likewise.
26370
26371 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26372
26373 [BZ #18822]
26374 * include/idna.h: New file.
26375 * inet/getnameinfo.c: Include <idna.h> instead of
26376 <libidn/idna.h>.
26377 (__idna_to_unicode_lzlz): Removed.
26378 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26379 <libidn/idna.h>.
26380 (__idna_to_ascii_lz): Removed.
26381 (__idna_to_unicode_lzlz): Likewise.
26382
26383 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26384
26385 [BZ #18822]
26386 * include/plural-exp.h: New file.
26387 * intl/plural-exp.c: Include <plural-exp.h> instead of
26388 "plural-exp.h".
26389
26390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26391
26392 [BZ #18822]
26393 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26394 "getsourcefilter.h".
26395 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26396 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26397 "getsourcefilter.h".
26398 (__get_sol): Removed.
26399
26400 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26401
26402 [BZ #18822]
26403 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26404 to ...
26405 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26406
26407 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26408
26409 [BZ #18822]
26410 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26411 attribute_hidden.
26412
26413 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26414
26415 [BZ #18822]
26416 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26417
26418 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26419
26420 [BZ #18822]
26421 * include/search.h (__tdestroy): Add libc_hidden_proto.
26422 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26423
26424 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26425
26426 [BZ #18822]
26427 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26428
26429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26430
26431 [BZ #18822]
26432 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26433 attribute_hidden.
26434
26435 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26436
26437 [BZ #18822]
26438 * include/signal.h (__kill): Add libc_hidden_proto.
26439 (__sigblock): Likewise.
26440 (__sigprocmask): Likewise.
26441 (__sigaltstack): Likewise.
26442 * signal/kill.c (__kill): Add libc_hidden_def.
26443 * signal/sigblock.c (__sigblock): Likewise.
26444 * signal/sigprocmask.c (__sigprocmask): Likewise.
26445 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26446 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26447 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26448 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26449 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26450 Likewise.
26451 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26452 Likewise.
26453 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26454 (__sigprocmask): Likewise.
26455 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26456 Likewise.
26457 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26458 (__sigprocmask): Likewise.
26459 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26460 Likewise.
26461
26462 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26463
26464 [BZ #18822]
26465 * include/string.h (__strsep): Add libc_hidden_proto.
26466 * string/strsep.c (__strsep): Add libc_hidden_def.
26467
26468 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26469
26470 [BZ #18822]
26471 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26472 attribute_hidden.
26473 (__spawni): Likewise.
26474
26475 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26476
26477 [BZ #18822]
26478 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26479 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26480 libc_hidden_def.
26481
26482 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26483
26484 [BZ #18822]
26485 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26486
26487 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26488
26489 [BZ #18822]
26490 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26491 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26492 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26493 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26494 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26495 Likewise.
26496 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26497 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26498
26499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26500
26501 [BZ #18822]
26502 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26503 (__dcigettext): Likewise.
26504
26505 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26506
26507 [BZ #18822]
26508 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26509 libc_hidden_proto.
26510 (__get_nprocs): Likewise.
26511 (__get_phys_pages): Likewise.
26512 (__get_avphys_pages): Likewise.
26513 (__get_child_max): Add attribute_hidden.
26514 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26515 (__get_nprocs): Likewise.
26516 (__get_phys_pages): Likewise.
26517 (__get_avphys_pages): Likewise.
26518 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26519 libc_hidden_def.
26520 (__get_nprocs): Likewise.
26521 (__get_phys_pages): Likewise.
26522 (__get_avphys_pages): Likewise.
26523 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26524 libc_hidden_def.
26525 (__get_nprocs_conf): Likewise.
26526 (__get_phys_pages): Likewise.
26527 (__get_avphys_pages): Likewise.
26528
26529 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26530
26531 [BZ #18822]
26532 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26533 attribute_hidden.
26534 (__netlink_close): Likewise.
26535 (__netlink_free_handle): Likewise.
26536 (__netlink_request): Likewise.
26537
26538 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26539
26540 [BZ #18822]
26541 * include/rpc/rpc.h (__rpc_thread_variables): Add
26542 attribute_hidden.
26543 (__rpc_thread_svc_cleanup): Likewise.
26544 (__rpc_thread_clnt_cleanup): Likewise.
26545 (__rpc_thread_key_cleanup): Likewise.
26546
26547 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26548
26549 [BZ #18822]
26550 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26551 (__writev): Likewise.
26552 * misc/readv.c (__readv): Add libc_hidden_def.
26553 * misc/writev.c (__writev): Likewise.
26554 * sysdeps/posix/readv.c (__readv): Likewise.
26555 * sysdeps/posix/writev.c (__writev): Likewise.
26556 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26557 (__readv): Likewise.
26558 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26559 (__writev): Likewise.
26560
26561 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26562
26563 [BZ #18822]
26564 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26565 (__regcomp): Add libc_hidden_proto.
26566 (__regexec): Likewise.
26567 (__regfree): Likewise.
26568 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26569 (__regfree): Likewise.
26570 * posix/regexec.c (__regexec): Likewise.
26571
26572 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26573
26574 [BZ #18822]
26575 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26576 (__getutent): Likewise.
26577 (__getutid): Likewise.
26578 (__getutline): Likewise.
26579 (__pututline): Likewise.
26580 (__getutent_r): Likewise.
26581 (__getutid_r): Likewise.
26582 (__getutline_r): Likewise.
26583 (__utmpname): Add attribute_hidden.
26584 (__setutent): Likewise.
26585 (__endutent): Likewise.
26586 * login/getutent.c (__getutent): Add libc_hidden_def.
26587 * login/getutent_r.c (__getutent_r): Likewise.
26588 (__pututline): Likewise.
26589 * login/getutid.c (__getutid): Likewise.
26590 * login/getutid_r.c (__getutid_r): Likewise.
26591 * login/getutline.c (__getutline): Likewise.
26592 * login/getutline_r.c (__getutline_r): Likewise.
26593 * login/updwtmp.c (__updwtmp): Likewise.
26594
26595 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26596
26597 [BZ #18822]
26598 * include/dirent.h (__opendir): Always add attribute_hidden.
26599 (__fdopendir): Likewise.
26600 (__closedir): Likewise.
26601 (__readdir): Likewise.
26602 (__readdir64): Add libc_hidden_proto.
26603 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26604 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26605 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26606 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26607 New alias.
26608
26609 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26610
26611 [BZ #18822]
26612 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26613 * include/netdb.h (__gethostbyaddr_r): Likewise.
26614 (__gethostbyname_r): Likewise.
26615 (__gethostbyname2_r): Likewise.
26616 (__getnetbyaddr_r): Likewise.
26617 (__getnetbyname_r): Likewise.
26618 (__getservbyname_r): Likewise.
26619 (__getservbyport_r): Likewise.
26620 (__getprotobyname_r): Likewise.
26621 (__getprotobynumber_r): Likewise.
26622 (__getnetgrent_r): Likewise.
26623 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26624 (__getrpcbynumber_r): Likewise.
26625 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26626
26627 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26628
26629 [BZ #18822]
26630 * include/stdio.h (__fcloseall): Add attribute_hidden.
26631 (__getline): Likewise.
26632 (__path_search): Likewise.
26633 (__gen_tempname): Likewise.
26634 (__libc_message): Likewise.
26635 (__flockfile): Likewise.
26636 (__funlockfile): Likewise.
26637 (__fxprintf): Likewise.
26638 (__fxprintf_nocancel): Likewise.
26639
26640 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26641
26642 [BZ #18822]
26643 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26644 (__sgetsgent_r): Likewise.
26645
26646 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26647
26648 [BZ #18822]
26649 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26650 (__statfs64): Likewise.
26651 (__fstatfs64): Likewise.
26652 * include/sys/statvfs.h (__statvfs64): Likewise.
26653 (__fstatvfs64): Likewise.
26654 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26655 (__statfs_filesize_max): Likewise.
26656 (__statfs_symlinks): Likewise.
26657 (__statfs_chown_restricted): Likewise.
26658
26659 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26660
26661 [BZ #18822]
26662 * include/time.h (__tzstring): Add attribute_hidden.
26663 (__tzfile_read): Likewise.
26664 (__tzfile_compute): Likewise.
26665 (__tzfile_default): Likewise.
26666 (__tzset_parse_tz): Likewise.
26667 (__offtime): Likewise.
26668 (__asctime_r): Likewise.
26669 (__tzset): Likewise.
26670 (__tz_convert): Likewise.
26671 (__getdate_r): Likewise.
26672 (__getclktck): Likewise.
26673
26674 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26675
26676 [BZ #18822]
26677 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26678 (__nscd_unmap): Likewise.
26679 (__nscd_cache_search): Likewise.
26680 (__nscd_get_nl_timestamp): Likewise.
26681 (__nscd_getpwnam_r): Likewise.
26682 (__nscd_getpwuid_r): Likewise.
26683 (__nscd_getgrnam_r): Likewise.
26684 (__nscd_getgrgid_r): Likewise.
26685 (__nscd_gethostbyname_r): Likewise.
26686 (__nscd_gethostbyname2_r): Likewise.
26687 (__nscd_gethostbyaddr_r): Likewise.
26688 (__nscd_getai): Likewise.
26689 (__nscd_getgrouplist): Likewise.
26690 (__nscd_getservbyname_r): Likewise.
26691 (__nscd_getservbyport_r): Likewise.
26692 (__nscd_innetgr): Likewise.
26693 (__nscd_setnetgrent): Likewise.
26694
26695 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26696
26697 [BZ #18822]
26698 * include/gmp.h: Declare internal functions only if _ISOMAC is
26699 undefined.
26700 (__mpn_extract_double): Add attribute_hidden.
26701 (__mpn_extract_long_double): Likewise.
26702 (__mpn_extract_float128): Likewise.
26703 (__mpn_construct_float): Likewise.
26704 (__mpn_construct_double): Likewise.
26705 (__mpn_construct_long_double): Likewise.
26706 (__mpn_construct_float128): Likewise.
26707 (mpn_add_1): Likewise.
26708 (mpn_addmul_1): Likewise.
26709 (mpn_add_n): Likewise.
26710 (mpn_cmp): Likewise.
26711 (mpn_divrem): Likewise.
26712 (mpn_lshift): Likewise.
26713 (mpn_mul): Likewise.
26714 (mpn_mul_1): Likewise.
26715 (mpn_rshift): Likewise.
26716 (mpn_sub_1): Likewise.
26717 (mpn_submul_1): Likewise.
26718 (mpn_sub_n): Likewise.
26719
26720 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26721
26722 [BZ #18822]
26723 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26724 (__wcscat): Likewise.
26725 (__btowc): Likewise.
26726 (__wcrtomb): Likewise.
26727 (__mbsrtowcs): Likewise.
26728 (__wcsrtombs): Likewise.
26729 (__mbsnrtowcs): Likewise.
26730 (__wcsnrtombs): Likewise.
26731 (__wcsncpy): Likewise.
26732 (__wcpncpy): Likewise.
26733 (__wmemcpy): Likewise.
26734 (__wmempcpy): Likewise.
26735 (__wmemmove): Likewise.
26736 (__wcschrnul): Likewise.
26737 (__vfwscanf): Likewise.
26738 (__vswprintf): Likewise.
26739 (__fwprintf): Likewise.
26740 (__vfwprintf): Likewise.
26741
26742 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26743
26744 [BZ #18822]
26745 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26746 (__getgrgid_r): Likewise.
26747 (__getgrnam_r): Likewise.
26748 * include/pwd.h (__getpwuid_r): Likewise.
26749 (__getpwnam_r): Likewise.
26750 (__fgetpwent_r): Likewise.
26751 * include/shadow.h (__getspnam_r): Likewise.
26752 (__sgetspent_r): Likewise.
26753 (__fgetspent_r): Likewise.
26754
26755 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26756
26757 [BZ #18822]
26758 * include/unistd.h (__access): Add attribute_hidden.
26759 (__lseek64): Likewise.
26760 (__libc_pread64): Likewise.
26761 (__pipe2): Likewise.
26762 (__sleep): Likewise.
26763 (__chdir): Likewise.
26764 (__fchdir): Likewise.
26765 (__getcwd): Likewise.
26766 (__rmdir): Likewise.
26767 (__execvpe): Likewise.
26768 (__execve): Likewise.
26769 (__setsid): Likewise.
26770 (__getuid): Likewise.
26771 (__geteuid): Likewise.
26772 (__getgid): Likewise.
26773 (__getegid): Likewise.
26774 (__getgroups): Likewise.
26775 (__group_member): Likewise.
26776 (__ttyname_r): Likewise.
26777 (__isatty): Likewise.
26778 (__readlink): Likewise.
26779 (__unlink): Likewise.
26780 (__gethostname): Likewise.
26781 (__profil): Likewise.
26782 (__getdtablesize): Likewise.
26783 (__brk): Likewise.
26784 (__ftruncate): Likewise.
26785 (__ftruncate64): Likewise.
26786
26787 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26788
26789 [BZ #18822]
26790 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26791 * argp/argp-fs-xinl.c: Likewise.
26792 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26793 * argp/argp-parse.c: Include <argp.h>.
26794 * argp/argp-xinl.c: Likewise.
26795 * include/argp-fmtstream.h: New file.
26796 * include/argp.h (__argp_error): Add attribute_hidden.
26797 (__argp_failure): Likewise.
26798 (__argp_input): Likewise.
26799 (__argp_state_help): Likewise.
26800
26801 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26802
26803 [BZ #18822]
26804 * include/wchar.h (____wcstof_l_internal): New prototype.
26805 (____wcstod_l_internal): Likewise.
26806 (____wcstold_l_internal): Likewise.
26807 (____wcstol_l_internal): Likewise.
26808 (____wcstoul_l_internal): Likewise.
26809 (____wcstoll_l_internal): Likewise.
26810 (____wcstoull_l_internal): Likewise.
26811 (____wcstof128_l_internal): Likewise.
26812 * sysdeps/ieee754/float128/wcstof128.c
26813 (____wcstof128_l_internal): Removed.
26814 * sysdeps/ieee754/float128/wcstof128_l.c
26815 (____wcstof128_l_internal): Likewise.
26816 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26817 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26818 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26819 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26820 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26821 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26822 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26823 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26824 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26825 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26826
26827 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26828
26829 [BZ #18822]
26830 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26831 instead of <sys/statvfs.h>.
26832 (__internal_statvfs): Removed.
26833 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26834 instead of <sys/statvfs.h>.
26835 (__internal_statvfs64): Removed.
26836 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26837 "internal_statvfs.h" instead of <sys/statvfs.h>.
26838 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26839 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26840 instead of <sys/statvfs.h>.
26841 (__internal_statvfs): Removed.
26842 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26843 instead of <sys/statvfs.h>.
26844 (__internal_statvfs64): Removed.
26845
26846 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26847
26848 [BZ #18822]
26849 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26850 (__gconv_close): Likewise.
26851 (__gconv): Likewise.
26852 (__gconv_find_transform): Likewise.
26853 (__gconv_lookup_cache): Likewise.
26854 (__gconv_compare_alias_cache): Likewise.
26855 (__gconv_load_cache): Likewise.
26856 (__gconv_get_path): Likewise.
26857 (__gconv_close_transform): Likewise.
26858 (__gconv_release_cache): Likewise.
26859 (__gconv_find_shlib): Likewise.
26860 (__gconv_release_shlib): Likewise.
26861 (__gconv_get_builtin_trans): Likewise.
26862 (__gconv_compare_alias): Likewise.
26863 * include/dlfcn.h (_dlerror_run): Likewise.
26864 * include/stdio.h (__fortify_fail_abort): Likewise.
26865 * include/time.h (__tz_compute): Likewise.
26866 (__strptime_internal): Likewise.
26867 * intl/gettextP.h (_nl_find_domain): Likewise.
26868 (_nl_load_domain): Likewise.
26869 (_nl_find_msg): Likewise.
26870 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26871 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26872 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26873 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26874 (__gai_find_request): Likewise.
26875 (__gai_remove_request): Likewise.
26876 (__gai_notify): Likewise.
26877 (__gai_notify_only): Likewise.
26878 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26879 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26880 (_dl_non_dynamic_init): Likewise.
26881 (_dl_aux_init): Likewise.
26882 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26883 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26884 Likewise.
26885 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26886 (__wcsmbs_clone_conv): Likewise.
26887 (__wcsmbs_named_conv): Likewise.
26888
26889 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26890
26891 [BZ #18822]
26892 * include/stdlib.h (__random): Add attribute_hidden.
26893 (__random_r): Likewise.
26894 (__srandom_r): Likewise.
26895 (__initstate_r): Likewise.
26896 (__setstate_r): Likewise.
26897 (__erand48_r): Likewise.
26898 (__nrand48_r): Likewise.
26899 (__jrand48_r): Likewise.
26900 (__srand48_r): Likewise.
26901 (__seed48_r): Likewise.
26902 (__lcong48_r): Likewise.
26903 (__drand48_iterate): Likewise.
26904 (__setenv): Likewise.
26905 (__unsetenv): Likewise.
26906 (__clearenv): Likewise.
26907 (__ptsname_r): Likewise.
26908 (__posix_openpt): Likewise.
26909 (__add_to_environ): Likewise.
26910 (__realpath): Add libc_hidden_proto.
26911 (__ecvt_r): Likewise.
26912 (__fcvt_r): Likewise.
26913 (__qecvt_r): Likewise.
26914 (__qfcvt_r): Likewise.
26915 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26916 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26917
26918 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26919
26920 [BZ #18822]
26921 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26922 * include/time.h (__mktime_internal): Likewise.
26923 * libio/iolibio.h (__fopen_internal): Likewise.
26924
26925 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26926
26927 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26928 pointer in frame.
26929 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26930 Correct offset used to restore PIC register.
26931
26932 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26933
26934 [BZ libc/22165]
26935 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26936 code to load address of __getcontext_ret when generating PIC code.
26937
26938 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26939
26940 * elf/Makefile (tests-static-internal): Add
26941 tst-tls1-static-non-pie.
26942 (LDFLAGS-tst-tls1-static-non-pie): New.
26943 * elf/tst-tls1-static-non-pie.c: New file.
26944
26945 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26946
26947 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26948 (asinh): Define using libm_alias_double.
26949 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26950 (cbrt): Define using libm_alias_double.
26951 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26952 <libm-alias-double.h>.
26953 (copysign): Define using libm_alias_double.
26954 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26955 (erf): Define using libm_alias_double.
26956 (erfc): Likewise.
26957 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26958 (expm1): Define using libm_alias_double.
26959 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26960 (fabs): Define using libm_alias_double.
26961 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26962 libm_alias_double.
26963 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26964 <libm-alias-double.h>.
26965 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26966 libm_alias_double.
26967 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26968 <libm-alias-double.h>.
26969 (getpayload): Define using libm_alias_double.
26970 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26971 <libm-alias-double.h>.
26972 (llrint): Define using libm_alias_double.
26973 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26974 (lrint): Define using libm_alias_double.
26975 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26976 <libm-alias-double.h>.
26977 (nextup): Define using libm_alias_double.
26978 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26979 <libm-alias-double.h>.
26980 (roundeven): Define using libm_alias_double.
26981 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26982 libm_alias_double.
26983 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26984 <libm-alias-double.h>.
26985 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26986 using libm_alias_double.
26987 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26988 (cos): Define using libm_alias_double.
26989 (sin): Likewise.
26990 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26991 <libm-alias-double.h>.
26992 (sincos): Define using libm_alias_double.
26993 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26994 (tanh): Define using libm_alias_double.
26995 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26996 <libm-alias-double.h>.
26997 (totalorder): Define using libm_alias_double.
26998 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26999 <libm-alias-double.h>.
27000 (totalordermag): Define using libm_alias_double.
27001 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
27002 libm_alias_double.
27003 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
27004 libm_alias_double.
27005 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
27006 <libm-alias-double.h>.
27007 (getpayload): Define using libm_alias_double.
27008 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
27009 <libm-alias-double.h>.
27010 (roundeven): Define using libm_alias_double.
27011 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
27012 <libm-alias-double.h>.
27013 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
27014 <libm-alias-double.h>.
27015 (totalorder): Define using libm_alias_double.
27016 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
27017 <libm-alias-double.h>.
27018 (totalordermag): Define using libm_alias_double.
27019 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
27020 libc compat symbol here.
27021 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
27022 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
27023 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
27024 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
27025 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
27026 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
27027 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
27028 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
27029 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
27030 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
27031
27032 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27033
27034 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
27035 _dl_relocate_static_pie instead of _dl_start to compute load
27036 address in static PIE. Return 0 if _DYNAMIC is undefined for
27037 static executable.
27038
27039 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27040
27041 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27042 _DYNAMIC is undefined for static executable.
27043
27044 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27045
27046 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27047
27048 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27049
27050 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27051
27052 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27053
27054 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27055 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27056 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27057 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27058 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27059 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27060 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27061 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27062 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27063 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27064 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27065 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27066 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27067 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27068 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27069 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27070 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27071
27072 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27073
27074 * math/bits/cmathcalls.h (cimag): Remove inline.
27075 (creal): Remove inline.
27076 (conj): Remove inline.
27077
27078 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27079
27080 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27081 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27082 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27083 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27084 (issignalingf_inline): Likewise.
27085 (POWF_LOG2_TABLE_BITS): Likewise.
27086 (POWF_LOG2_POLY_ORDER): Likewise.
27087 (POWF_SCALE_BITS): Likewise.
27088 (POWF_SCALE): Likewise.
27089 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27090 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27091 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27092
27093 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27094
27095 * math/Makefile (type-float-routines): Add e_log2f_data.
27096 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27097 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27098 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27099 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27100 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27101 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27102 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27103
27104 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27105
27106 * math/Makefile (type-float-routines): Add e_logf_data.
27107 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27108 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27109 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27110 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27111 * sysdeps/i386/fpu/e_logf_data.c: New file.
27112 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27113 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27114
27115 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27116
27117 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27118 undefined _DYNAMIC in PIE libc.a.
27119 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27120 Likewse.
27121
27122 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27123
27124 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27125 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27126 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27127 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27128 (__signbit): Remove.
27129 (__signbitl): Remove.
27130 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27131 (__signbit): Remove.
27132 (__signbitl): Remove.
27133 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27134 (__signbit): Remove.
27135 (__signbitl): Remove.
27136 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27137 (__signbit): Remove.
27138 (__signbitl): Remove.
27139 * sysdeps/tile/bits/mathinline.h: Delete file.
27140 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27141 (__signbit): Remove.
27142 (__signbitl): Remove.
27143
27144 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27145
27146 * math/math.h: Improve handling of C99 isgreater macros.
27147 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27148 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27149 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27150 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27151 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27152
27153 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27154
27155 * sysdeps/aarch64/libm-test-ulps: Update.
27156
27157 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27158
27159 [BZ #22225]
27160 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27161 math_opt_barrier on argument when doing arithmetic on it.
27162 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27163 Likewise. Use math_force_eval not math_opt_barrier after
27164 arithmetic.
27165 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27166 math_opt_barrier on argument when doing arithmetic on it.
27167 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27168 Likewise.
27169
27170 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27171
27172 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27173 libc_hidden_def.
27174 (__freeifaddrs): Likewise.
27175
27176 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27177
27178 * include/dirent.h (__dirfd): New declaration.
27179 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27180 alias.
27181 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27182 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27183 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27184 * include/unistd.h (__revoke): New declaration.
27185 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27186 alias.
27187 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27188 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27189 revoke.
27190 * include/dirent.h (__seekdir): New declaration.
27191 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27192 redefine as weak alias.
27193 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27194 of seekdir.
27195 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27196 and use libc_hidden_def on them.
27197 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27198 them.
27199 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27200 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27201 instead of getifaddrs and freeifaddrs.
27202
27203 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27204
27205 [BZ #18822]
27206 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27207 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27208 (__dso_handle): Remove declaration.
27209 * dlfcn/tstatexit.c (__dso_handle): Removed.
27210 (main): Don't check __dso_handle.
27211 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27212 (main): Don't check __dso_handle.
27213 * include/dso_handle.h: New file.
27214 * malloc/mtrace.c: Include <dso_handle.h>.
27215 (mtrace): Pass __dso_handle directly.
27216 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27217 (__dso_handle): Remove declaration.
27218 (__pthread_atfork): Pass __dso_handle directly.
27219 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27220 (__dso_handle): Removed.
27221 * posix/wordexp-test.c: Include <dso_handle.h>.
27222 (__dso_handle): Remove declaration.
27223 (__app_register_atfork): Pass __dso_handle directly.
27224 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27225 (__dso_handle): Remove declaration.
27226 (at_quick_exit): Pass __dso_handle directly.
27227 * stdlib/atexit.c: Include <dso_handle.h>.
27228 (__dso_handle): Remove declaration.
27229 (atexit): Pass __dso_handle directly.
27230 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27231 (__dso_handle): Removed.
27232
27233 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27234
27235 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27236 using VDSO.
27237
27238 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27239
27240 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27241 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27242 values to correct default value for given type.
27243
27244 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27245
27246 [BZ #22101]
27247 * elf/Makefile (tests): Add tst-debug1.
27248 ($(objpfx)tst-debug1): New.
27249 ($(objpfx)tst-debug1.out): Likewise.
27250 ($(objpfx)tst-debug1mod1.so): Likewise.
27251 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27252 with p_filesz == 0.
27253 * elf/tst-debug1.c: New file.
27254
27255 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27256
27257 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27258 Define using __ifunc.
27259
27260 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27261
27262 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27263 exp2f() values.
27264
27265 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27266
27267 [BZ #22156]
27268 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27269
27270 2017-09-26 Florian Weimer <fweimer@redhat.com>
27271
27272 * resolv/Makefile (tests-internal): Fix typo in comment.
27273
27274 2017-09-26 Florian Weimer <fweimer@redhat.com>
27275
27276 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27277
27278 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27279
27280 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27281 Use an union instead of a max_align_t array for __space,
27282 so that __space is the same size on all platforms.
27283 * malloc/scratch_buffer_grow_preserve.c
27284 (__libc_scratch_buffer_grow_preserve): Likewise.
27285
27286 [BZ #22183]
27287 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27288 version to 2.
27289 * posix/Makefile (routines): Add glob-lstat-compat and
27290 glob64-lstat-compat.
27291 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27292 * posix/glob-lstat-compat.c: New file.
27293 * posix/glob64-lstat-compat.c: Likewise.
27294 * posix/tst-glob_lstat_compat.c: Likewise.
27295 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27296 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27297 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27298 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27299 Likewise.
27300 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27301 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27302 * posix/glob.c (glob_lstat): New function.
27303 (glob): Rename to __glob and add versioned symbol to 2.27.
27304 (glob_in_dir): Use glob_lstat.
27305 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27306 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27307 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27308 2.27.
27309 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27310 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27311 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27312 gl_lstat on glob call.
27313 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27314 and glob64 symbols.
27315 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27316 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27317 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27318 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27319 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27320 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27321 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27322 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27323 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27324 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27325 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27326 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27327 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27328 Likewise.
27329 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27330 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27331 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27332 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27333 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27334 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27335 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27336 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27337 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27338 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27339 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27340 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27341
27342 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27343
27344 * configure.ac (AS): Require binutils 2.25 or later.
27345 * configure: Regenerated.
27346
27347 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27348
27349 [BZ #22207]
27350 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27351 VM size.
27352
27353 2017-09-25 DJ Delorie <dj@redhat.com>
27354
27355 [BZ #22161]
27356 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27357 resetting timeout.
27358
27359 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27360
27361 * sysdeps/ieee754/dbl-64/sincos32.h
27362 [SINCCOS32_H]: Remove define.
27363 [SINCOS32_H]: Define.
27364
27365 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27366
27367 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27368 (exp2f): Likewise.
27369 * math/w_exp2f.c: New file.
27370 * math/w_expf.c: New file.
27371 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27372 * math/w_expf_compat.c (__expf_compat): Likewise.
27373 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27374 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27375 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27376 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27377 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27378 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27379 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27380 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27381 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27382 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27383 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27384 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27385 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27386 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27387 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27388 Likewise.
27389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27390 Likewise.
27391 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27392 Likewise.
27393 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27394 Likewise.
27395 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27396 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27397 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27398 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27399 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27400 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27401 Likewise.
27402 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27403 Likewise.
27404 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27405 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27406 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27407
27408 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27409
27410 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27411 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27412 (roundtoint, converttoint): Likewise.
27413 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27414 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27415 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27416 * sysdeps/ieee754/flt-32/math_config.h: New file.
27417 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27418 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27419 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27420 * sysdeps/i386/fpu/math_errf.c: New file.
27421 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27422 * sysdeps/ia64/fpu/math_errf.c: New file.
27423 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27424 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27425
27426 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27427
27428 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27429 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27430 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27431 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27432 to make sure that these symbols are defined.
27433 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27434 of <limits.h>
27435 (__need_NULL): Do not define.
27436 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27437 alignment.
27438 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27439 CMGROUP_MAX, cmsgcred): Do not define.
27440 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27441 NULL.
27442 * bits/socket.h: Likewise.
27443 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27444 __gettimeofday instead of gettimeofday.
27445 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27446 instead of settimeofday.
27447
27448 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27449
27450 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27451 (asinhf): Define using libm_alias_float.
27452 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27453 (atanf): Define using libm_alias_float.
27454 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27455 (cbrtf): Define using libm_alias_float.
27456 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27457 (ceilf): Define using libm_alias_float.
27458 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27459 <libm-alias-float.h>.
27460 (copysignf): Define using libm_alias_float.
27461 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27462 (cosf): Define using libm_alias_float.
27463 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27464 (erff): Define using libm_alias_float.
27465 (erfcf): Likewise.
27466 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27467 (expm1f): Define using libm_alias_float.
27468 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27469 (fabsf): Define using libm_alias_float.
27470 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27471 (floorf): Define using libm_alias_float.
27472 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27473 (frexpf): Define using libm_alias_float.
27474 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27475 libm_alias_float.
27476 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27477 <libm-alias-float.h>.
27478 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27479 libm_alias_float.
27480 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27481 <libm-alias-float.h>.
27482 (getpayloadf): Define using libm_alias_float.
27483 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27484 <libm-alias-float.h>.
27485 (llrintf): Define using libm_alias_float.
27486 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27487 <libm-alias-float.h>.
27488 (llroundf): Define using libm_alias_float.
27489 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27490 (logbf): Define using libm_alias_float.
27491 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27492 (lrintf): Define using libm_alias_float.
27493 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27494 (lroundf): Define using libm_alias_float.
27495 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27496 (modff): Define using libm_alias_float.
27497 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27498 <libm-alias-float.h>.
27499 (nearbyintf): Define using libm_alias_float.
27500 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27501 <libm-alias-float.h>.
27502 (nextafterf): Define using libm_alias_float.
27503 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27504 <libm-alias-float.h>.
27505 (nextupf): Define using libm_alias_float.
27506 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27507 <libm-alias-float.h>.
27508 (remquof): Define using libm_alias_float.
27509 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27510 (rintf): Define using libm_alias_float.
27511 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27512 <libm-alias-float.h>.
27513 (roundevenf): Define using libm_alias_float.
27514 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27515 (roundf): Define using libm_alias_float.
27516 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27517 using libm_alias_float.
27518 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27519 <libm-alias-float.h>.
27520 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27521 Define using libm_alias_float.
27522 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27523 <libm-alias-float.h>.
27524 (sincosf): Define using libm_alias_float.
27525 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27526 (sinf): Define using libm_alias_float.
27527 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27528 (tanf): Define using libm_alias_float.
27529 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27530 (tanhf): Define using libm_alias_float.
27531 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27532 <libm-alias-float.h>.
27533 (totalorderf): Define using libm_alias_float.
27534 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27535 <libm-alias-float.h>.
27536 (totalordermagf): Define using libm_alias_float.
27537 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27538 (truncf): Define using libm_alias_float.
27539 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27540 libm_alias_float.
27541 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27542 libm_alias_float.
27543
27544 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27545
27546 [BZ #22146]
27547 math/math.h: Let fpclassify use the builtin in C++ mode, even
27548 when optimazing for size.
27549
27550 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27551
27552 * csu/Makefile (generated): Do not add version-info.h.
27553 (before-compile): Likewise.
27554 (all-Banner-files): Remove variable.
27555 ($(objpfx)version-info.h): Remove rule.
27556 * csu/version.c (banner): Do not include "version-info.h".
27557 * libidn/Banner: Remove.
27558 * manual/contrib.texi (Simon Josefsson): New entry.
27559
27560 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27561
27562 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27563 Remove conditionals on LDBL_MANT_DIG.
27564 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27565 (__ieee754_lgammal_r): Likewise.
27566
27567 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27568
27569 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27570 _Float128 and L().
27571 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27572 _Float128 and L(). Replace _Float128 with long double and L(x)
27573 with xL, throughout the file.
27574 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27575 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27576 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27577 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27578
27579 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27580
27581 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27582 sysdeps/ieee754/ldbl-128ibm.
27583 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27584 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27585 of including it. Keep _Float128 and L() intact. These will be
27586 reviewed by a separate patch.
27587 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27588 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27589 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27590 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27591
27592 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27593
27594 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27595 (__finitef128): Define to __redirect___finitef128.
27596 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27597 (__isinff128): Define to __redirect___isinff128.
27598 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27599 (__isnanf128): Define to __redirect___isnanf128.
27600
27601 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27602
27603 * sysdeps/powerpc/powerpc64le/Makefile
27604 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27605 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27606
27607 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27608 Carlos O'Donell <carlos@redhat.com>
27609
27610 [BZ #22180]
27611 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27612 * stdlib/test-dlclose-exit-race.c: New file.
27613 * stdlib/test-dlclose-exit-race-helper.c: New file.
27614 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27615
27616 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27617
27618 * crypt/Banner: Remove file.
27619 * nptl/Banner: Likewise.
27620 * resolv/Banner: Likewise.
27621 * soft-fp/Banner: Likewise.
27622 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27623 ($(objpfx)version.d): Remove dependency on banner.h.
27624 ($(objpfx)version.os): Likewise.
27625 * nptl/version.c (banner): Do not include banner.h.
27626 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27627 Jelinek and BIND code.
27628
27629 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27630 Carlos O'Donell <carlos@redhat.com>
27631
27632 * support/xdlfcn.h: New file.
27633 * support/xdlfcn.c: New file.
27634 * support/Makefile (libsupport-routines): Add xdlfcn.
27635 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27636
27637 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27638
27639 [BZ #20142]
27640 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27641 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27642 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27643 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27644 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27645 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27646 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27647 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27648
27649 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27650 Ricky Zhou <rickyz@google.com>
27651 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27652
27653 [BZ #14333]
27654 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27655 Remove atomics.
27656 (__new_exitfn): Fail registration when we finished at_exit processing.
27657 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27658 * stdlib/on_exit.c (__on_exit): Likewise.
27659 * stdlib/exit.c (__exit_funcs_done): New variable.
27660 (__run_exit_handlers): Use __exit_funcs_lock.
27661 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27662 declarations.
27663 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27664 (test-cxa_atexit-race, test-on_exit-race): New tests.
27665 * stdlib/test-atexit-race-common.c: New file.
27666 * stdlib/test-atexit-race.c: New file.
27667 * stdlib/test-at_quick_exit-race.c: New file.
27668 * stdlib/test-cxa_atexit-race.c: New file.
27669 * stdlib/test-on_exit-race.c: New file.
27670
27671 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27672
27673 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27674 * benchtests/exp2f-inputs: Copy of expf-inputs.
27675 * benchtests/log2f-inputs: Copy of logf-inputs.
27676
27677 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27678
27679 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27680 Explicitly take address of first element of array arguments in
27681 call to INLINE_SYSCALL.
27682
27683 2017-09-19 Andreas Schwab <schwab@suse.de>
27684
27685 [BZ #22134]
27686 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27687 execveat first.
27688 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27689 unimplemented.
27690 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27691 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27692 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27693 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27694 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27695 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27696 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27697 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27698 * posix/Makefile (tests): Add tst-fexecve.
27699 * posix/tst-fexecve.c: New file.
27700
27701 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27702
27703 * benchtests/Makefile: Add logf benchmark.
27704 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27705
27706 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27707
27708 * benchtests/Makefile: Add expf benchmark.
27709 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27710
27711 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27712
27713 * csu/Makefile: Add -funwind-tables to libc-start.c.
27714 * debug/Makefile: Add -funwind-tables to backtrace.c.
27715 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27716 * sysdeps/arm/Makefile: Likewise.
27717 * sysdeps/i386/Makefile: Likewise.
27718 * sysdeps/m68k/Makefile: Likewise.
27719 * sysdeps/mips/Makefile: Likewise.
27720 * sysdeps/nios2/Makefile: Likewise.
27721 * sysdeps/sh/Makefile: Likewise.
27722 * sysdeps/sparc/Makefile: Likewise.
27723
27724 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27725
27726 * benchtests/Makefile (bench-math): Add trunc and truncf.
27727 (CFLAGS-bench-trunc.c): New variable.
27728 (CFLAGS-bench-truncf.c): Likewise.
27729 * benchtests/trunc-inputs: New file.
27730 * benchtests/truncf-inputs: Likewise.
27731
27732 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27733
27734 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27735
27736 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27737
27738 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27739 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27740 redefine.
27741 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27742 (exp10l): Define as weak alias.
27743 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27744 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27745 and redefine.
27746 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27747 (remainderl): Define as weak alias.
27748
27749 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27750 (fmal): Define using libm_alias_ldouble.
27751 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27752 (acoshl): Define using libm_alias_ldouble.
27753 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27754 (acosl): Define using libm_alias_ldouble.
27755 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27756 (asinl): Define using libm_alias_ldouble.
27757 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27758 (atan2l): Define using libm_alias_ldouble.
27759 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27760 (atanhl): Define using libm_alias_ldouble.
27761 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27762 (coshl): Define using libm_alias_ldouble.
27763 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27764 (exp10l): Define using libm_alias_ldouble.
27765 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27766 (exp2l): Define using libm_alias_ldouble.
27767 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27768 (expl): Define using libm_alias_ldouble.
27769 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27770 (fmodl): Define using libm_alias_ldouble.
27771 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27772 (hypotl): Define using libm_alias_ldouble.
27773 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27774 (j0l): Define using libm_alias_ldouble.
27775 (y0l): Likewise.
27776 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27777 (j1l): Define using libm_alias_ldouble.
27778 (y1l): Likewise.
27779 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27780 (jnl): Define using libm_alias_ldouble.
27781 (ynl): Likewise.
27782 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27783 (log10l): Define using libm_alias_ldouble.
27784 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27785 (log2l): Define using libm_alias_ldouble.
27786 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27787 (logl): Define using libm_alias_ldouble.
27788 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27789 (powl): Define using libm_alias_ldouble.
27790 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27791 (remainderl): Define using libm_alias_ldouble.
27792 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27793 (sinhl): Define using libm_alias_ldouble.
27794 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27795 (sqrtl): Define using libm_alias_ldouble.
27796 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27797 (tgammal): Define using libm_alias_ldouble.
27798 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27799 (exp10l): Do not use long_double_symbol here.
27800 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27801 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27802 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27803 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27804 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27805 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27806 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27807 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27808 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27809 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27810 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27811 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27812 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27813 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27814 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27815 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27816 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27817 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27818 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27819 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27820 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27821 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27822
27823 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27824
27825 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27826 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27827
27828 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27829
27830 * io/read.c (read): Add libc_hidden_weak.
27831 * sysdeps/mach/hurd/read.c (read): Likewise.
27832 * io/write.c (write): Likewise.
27833 * sysdeps/mach/hurd/write.c (write): Likewise.
27834 * io/pread64.c (__pread64): Likewise.
27835 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27836 * posix/pread64.c (__pread64): Add libc_hidden_def.
27837
27838 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27839
27840 * benchtests/scripts/compare_strings.py: New option -g.
27841 (draw_graph): Print a message that a graph is being generated.
27842 (process_results): Generate graph only if -g is passed.
27843 (main): Process option -g.
27844
27845 * benchtests/scripts/compare_strings.py (process_results):
27846 Better spacing for output.
27847
27848 * benchtests/scripts/compare_strings.py: Use argparse.
27849 * benchtests/README: Document existence of compare_strings.py.
27850
27851 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27852
27853 * math/s_fma.c: Include <libm-alias-double.h>.
27854 (fma): Define using libm_alias_double.
27855 * math/s_nextafter.c: Include <libm-alias-double.h>.
27856 (nextafter): Define using libm_alias_double.
27857 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27858 (acos): Define using libm_alias_double.
27859 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27860 (aocsh): Define using libm_alias_double.
27861 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27862 (asin): Define using libm_alias_double.
27863 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27864 (atan2): Define using libm_alias_double.
27865 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27866 (atanh): Define using libm_alias_double.
27867 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27868 (cosh): Define using libm_alias_double.
27869 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27870 (exp10): Define using libm_alias_double.
27871 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27872 (exp2): Define using libm_alias_double.
27873 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27874 (exp): Define using libm_alias_double.
27875 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27876 (fmod): Define using libm_alias_double.
27877 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27878 (hypot): Define using libm_alias_double.
27879 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27880 (j0): Define using libm_alias_double.
27881 (y0): Likewise.
27882 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27883 (j1): Define using libm_alias_double.
27884 (y1): Likewise.
27885 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27886 (jn): Define using libm_alias_double.
27887 (yn): Likewise.
27888 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27889 (log10): Define using libm_alias_double.
27890 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27891 (log2): Define using libm_alias_double.
27892 * math/w_log_compat.c: Include <libm-alias-double.h>.
27893 (log): Define using libm_alias_double.
27894 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27895 (pow): Define using libm_alias_double.
27896 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27897 (remainder): Define using libm_alias_double.
27898 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27899 (sinh): Define using libm_alias_double.
27900 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27901 (sqrt): Define using libm_alias_double.
27902 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27903 (tgamma): Define using libm_alias_double.
27904 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27905 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27906 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27907 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27908 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27909 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27910 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27911 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27912 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27913 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27914 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27915 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27916 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27917 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27918 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27919 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27920 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27921 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27922 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27923 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27924 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27925 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27926 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27927 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27928 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27929
27930 * math/e_acoshl.c: Remove.
27931 * math/e_acosl.c: Likewise.
27932 * math/e_asinl.c: Likewise.
27933 * math/e_atan2l.c: Likewise.
27934 * math/e_atanhl.c: Likewise.
27935 * math/e_coshl.c: Likewise.
27936 * math/e_expl.c: Likewise.
27937 * math/e_fmodl.c: Likewise.
27938 * math/e_gammal_r.c: Likewise.
27939 * math/e_hypotl.c: Likewise.
27940 * math/e_j0l.c: Likewise.
27941 * math/e_j1l.c: Likewise.
27942 * math/e_jnl.c: Likewise.
27943 * math/e_lgammal_r.c: Likewise.
27944 * math/e_log10l.c: Likewise.
27945 * math/e_log2l.c: Likewise.
27946 * math/e_logl.c: Likewise.
27947 * math/e_powl.c: Likewise.
27948 * math/e_rem_pio2l.c: Likewise.
27949 * math/e_sinhl.c: Likewise.
27950 * math/e_sqrtf128.c: Likewise.
27951 * math/e_sqrtl.c: Likewise.
27952 * math/k_cosl.c: Likewise.
27953 * math/k_sinl.c: Likewise.
27954 * math/k_tanl.c: Likewise.
27955 * math/s_asinhl.c: Likewise.
27956 * math/s_atanl.c: Likewise.
27957 * math/s_cbrtl.c: Likewise.
27958 * math/s_erfl.c: Likewise.
27959 * math/s_expm1l.c: Likewise.
27960 * math/s_log1pl.c: Likewise.
27961 * math/s_tanhl.c: Likewise.
27962
27963 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27964
27965 [BZ #21745]
27966 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27967 [$(subdir) = math] (sysdep_calls): New variable. Has the
27968 previous contents of sysdep_routines, but re-sorted..
27969 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27970 sysdep_calls.
27971 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27972 defined in sysdep_calls and replace by the respective m_* names.
27973 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27974 (compat_symbol): Undefine to avoid duplicated compat symbols in
27975 libc.
27976
27977 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27978
27979 * math/s_fmaf.c: Include <libm-alias-float.h>.
27980 (fmaf): Define using libm_alias_float.
27981 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27982 (acosf): Define using libm_alias_float.
27983 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27984 (acoshf): Define using libm_alias_float.
27985 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27986 (asinf): Define using libm_alias_float.
27987 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27988 (atan2f): Define using libm_alias_float.
27989 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27990 (atanhf): Define using libm_alias_float.
27991 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27992 (coshf): Define using libm_alias_float.
27993 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27994 (exp10f): Define using libm_alias_float.
27995 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27996 (fmodf): Define using libm_alias_float.
27997 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27998 (hypotf): Define using libm_alias_float.
27999 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
28000 (j0f): Define using libm_alias_float.
28001 (y0f): Likewise.
28002 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
28003 (j1f): Define using libm_alias_float.
28004 (y1f): Likewise.
28005 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
28006 (jnf): Define using libm_alias_float.
28007 (ynf): Likewise.
28008 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
28009 (log10f): Define using libm_alias_float.
28010 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
28011 (log2f): Define using libm_alias_float.
28012 * math/w_logf_compat.c: Include <libm-alias-float.h>.
28013 (logf): Define using libm_alias_float.
28014 * math/w_powf_compat.c: Include <libm-alias-float.h>.
28015 (powf): Define using libm_alias_float.
28016 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
28017 (remainderf): Define using libm_alias_float.
28018 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
28019 (sinhf): Define using libm_alias_float.
28020 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
28021 (sqrtf): Define using libm_alias_float.
28022 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
28023 (tgammaf): Define using libm_alias_float.
28024
28025 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28026
28027 * include/math.h (roundeven): Change hidden_proto call to
28028 __roundeven.
28029 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
28030 alias.
28031 [NO_LONG_DOUBLE] (__j0l): New strong alias.
28032 (y0): Rename to __y0 and define as weak alias.
28033 [NO_LONG_DOUBLE] (__y0l): New strong alias.
28034 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
28035 alias.
28036 (y0f): Rename to __y0f and define as weak alias.
28037 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
28038 alias.
28039 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28040 (y1): Rename to __y1 and define as weak alias.
28041 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28042 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28043 alias.
28044 (y1f): Rename to __y1f and define as weak alias.
28045 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28046 alias.
28047 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28048 (yn): Rename to __yn and define as weak alias.
28049 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28050 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28051 alias.
28052 (ynf): Rename to __ynf and define as weak alias.
28053 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28054 (fromfp): Define as weak alias.
28055 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28056 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28057 (fromfpx): Define as weak alias.
28058 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28059 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28060 __getpayload and define as weak alias.
28061 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28062 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28063 __roundeven and define as weak alias.
28064 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28065 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28066 __setpayload.
28067 (setpayload): Define as weak alias.
28068 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28069 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28070 __setpayloadsig.
28071 (setpayloadsig): Define as weak alias.
28072 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28073 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28074 __totalorder and define as weak alias.
28075 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28076 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28077 to __totalordermag and define as weak alias.
28078 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28079 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28080 (ufromfp): Define as weak alias.
28081 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28082 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28083 __ufromfpx.
28084 (ufromfpx): Define as weak alias.
28085 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28086 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28087 Rename to __getpayload and define as weak alias.
28088 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28089 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28090 Rename to __roundeven and define as weak alias.
28091 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28092 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28093 Rename to __totalorder and define as weak alias.
28094 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28095 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28096 (totalordermag): Rename to __totalordermag and define as weak
28097 alias.
28098 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28099 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28100 macro.
28101 (__roundevenl): Likewise.
28102 (__totalorderl): Likewise.
28103 (__totalordermagl): Likewise
28104 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28105 __fromfpf128.
28106 (fromfpf128): Define as weak alias.
28107 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28108 __fromfpxf128.
28109 (fromfpxf128): Define as weak alias.
28110 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28111 __setpayloadf128.
28112 (setpayloadf128): Define as weak alias.
28113 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28114 __setpayloadsigf128.
28115 (setpayloadsigf128): Define as weak alias.
28116 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28117 __ufromfpf128.
28118 (ufromfpf128): Define as weak alias.
28119 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28120 __ufromfpxf128.
28121 (ufromfpxf128): Define as weak alias.
28122 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28123 (fromfpf): Define as weak alias.
28124 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28125 __fromfpxf.
28126 (fromfpxf): Define as weak alias.
28127 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28128 __getpayloadf and define as weak alias.
28129 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28130 __roundevenf and define as weak alias.
28131 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28132 __setpayloadf.
28133 (setpayloadf): Define as weak alias.
28134 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28135 __setpayloadsigf.
28136 (setpayloadsigf): Define as weak alias.
28137 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28138 __totalorderf and define as weak alias.
28139 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28140 Rename to __totalordermagf and define as weak alias.
28141 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28142 __ufromfpf.
28143 (ufromfpf): Define as weak alias.
28144 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28145 __ufromfpxf.
28146 (ufromfpxf): Define as weak alias.
28147 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28148 __fromfpl.
28149 (fromfpl): Define as weak alias.
28150 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28151 __fromfpxl.
28152 (fromfpxl): Define as weak alias.
28153 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28154 to __getpayloadl and define as weak alias.
28155 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28156 __roundevenl and define as weak alias.
28157 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28158 __setpayloadl.
28159 (setpayloadl): Define as weak alias.
28160 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28161 __setpayloadsigl.
28162 (setpayloadsigl): Define as weak alias.
28163 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28164 to __totalorderl and define as weak alias.
28165 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28166 Rename to __totalordermagl and define as weak alias.
28167 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28168 __ufromfpl.
28169 (ufromfpl): Define as weak alias.
28170 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28171 __ufromfpxl.
28172 (ufromfpxl): Define as weak alias.
28173 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28174 __fromfpl.
28175 (fromfpl): Define as weak alias.
28176 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28177 __fromfpxl.
28178 (fromfpxl): Define as weak alias.
28179 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28180 Rename to __getpayloadl and define as weak alias.
28181 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28182 to __roundevenl and define as weak alias. Call __roundeven
28183 instead of roundeven.
28184 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28185 __setpayloadl.
28186 (setpayloadl): Define as weak alias.
28187 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28188 __setpayloadsigl.
28189 (setpayloadsigl): Define as weak alias.
28190 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28191 Rename to __totalorderl and define as weak alias.
28192 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28193 Rename to __totalordermagl and define as weak alias.
28194 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28195 __ufromfpl.
28196 (ufromfpl): Define as weak alias.
28197 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28198 __ufromfpxl.
28199 (ufromfpxl): Define as weak alias.
28200 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28201 __fromfpl.
28202 (fromfpl): Define as weak alias.
28203 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28204 __fromfpxl.
28205 (fromfpxl): Define as weak alias.
28206 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28207 __getpayloadl and define as weak alias.
28208 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28209 __roundevenl and define as weak alias.
28210 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28211 __setpayloadl.
28212 (setpayloadl): Define as weak alias.
28213 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28214 __setpayloadsigl.
28215 (setpayloadsigl): Define as weak alias.
28216 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28217 __totalorderl and define as weak alias.
28218 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28219 Rename to __totalordermagl and define as weak alias.
28220 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28221 __ufromfpl.
28222 (ufromfpl): Define as weak alias.
28223 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28224 __ufromfpxl.
28225 (ufromfpxl): Define as weak alias.
28226
28227 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28228
28229 * benchtests/bench-string.h (realloc_bufs): New function.
28230 (test_init): Call it.
28231 * benchtests/bench-memset-large.c (do_test): Likewise.
28232 * benchtests/bench-memset.c (do_test): Likewise.
28233
28234 * benchtests/bench-memset-large.c: Print output in JSON
28235 format.
28236 * benchtests/bench-memset.c: Likewise.
28237
28238 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28239
28240 [BZ #21084]
28241 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28242 * iconvdata/Makefile: Add IBM858.
28243 * iconvdata/gconv-modules: Likewise.
28244 * iconvdata/tst-tables.sh: Likewise.
28245 * iconvdata/ibm858.c: New file.
28246 * localedata/charmaps/IBM858: Likewise.
28247
28248 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28249
28250 [BZ #22023]
28251 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28252 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28253
28254 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28255
28256 [BZ #22112]
28257 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28258 and add tel_int_fmt.
28259
28260 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28261
28262 * sysdeps/generic/libm-alias-float128.h: New file.
28263 * sysdeps/generic/math-type-macros-float128.h: Include
28264 <libm-alias-float128.h>.
28265 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28266
28267 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28268
28269 * sysdeps/generic/libm-alias-ldouble.h: New file.
28270 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28271 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28272 * sysdeps/generic/math-type-macros-ldouble.h: Include
28273 <libm-alias-ldouble.h>.
28274 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28275 libm_alias_ldouble.
28276
28277 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28278
28279 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28280 * math/w_exp_compat.c: ... here.
28281 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28282 * math/w_expf_compat.c: ... here.
28283 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28284 * math/w_expl_compat.c: ... here.
28285 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28286 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28287 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28288 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28289
28290 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28291
28292 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28293 redefine.
28294 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28295 macro.
28296 (ldexpl): Only define as compat symbol for libc, not libm.
28297 (scalbnl): Define as compat symbol for libc here.
28298 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28299 define for [IS_IN (libc)].
28300 (__ldexpl_2): Remove alias.
28301 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28302 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28303 name in long_double_symbol call.
28304 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28305 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28306 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28307 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28308 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28309 Remove macro.
28310 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28311 Define as compat symbol.
28312
28313 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28314
28315 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28316 * sysdeps/unix/sysv/linux/alpha/Makefile
28317 [$(subdir) = csu] (sysdep_routines): Remove rule.
28318
28319 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28320
28321 * sysdeps/generic/libm-alias-double.h: New file.
28322 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28323 * sysdeps/generic/math-type-macros-double.h: Include
28324 <libm-alias-double.h>.
28325 [declare_mgen_alias] (declare_mgen_alias): Define to use
28326 libm_alias_double.
28327 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28328 (M_LIBM_NEED_COMPAT): Remove macro.
28329 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28330 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28331 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28332 code.
28333 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28334 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28335 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28336 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28337 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28338 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28339 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28340 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28341 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28342 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28343 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28344 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28345 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28346 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28347 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28348 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28349 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28350 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28351 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28352 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28353 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28354 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28355 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28356 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28357 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28358 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28359 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28360 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28361 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28362 macro.
28363 (declare_mgen_alias): New macro.
28364 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28365 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28366 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28367 (M_LIBM_NEED_COMPAT): Remove macro.
28368 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28369 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28370 <first-versions.h>.
28371 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28372 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28373
28374 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28375
28376 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28377 (declare_mgen_alias_2): Remove.
28378 * sysdeps/generic/math-type-macros-double.h
28379 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28380 Likewise.
28381 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28382 alias.
28383 (ldexp): Define with declare_mgen_alias.
28384 (scalbn): Likewise.
28385
28386 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28387
28388 * grp/initgroups.c: Include config.h.
28389 (DEFAULT_CONFIG): New macro.
28390 (internal_getgrouplist): Use DEFAULT_CONFIG.
28391 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28392 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28393 (DEFAULT_DEFCONFIG): New macro.
28394 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28395 * nss/grp-lookup.c: Include config.h
28396 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28397 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28398 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28399 * manual/nss.texi: Update default values section.
28400
28401 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28402
28403 [BZ #21967]
28404 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28405 New.
28406 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28407 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28408 Handle MathVec_Prefer_No_AVX512.
28409 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28410 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28411 is set.
28412
28413 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28414
28415 * posix/sched_primax.c (__sched_get_priority_max): Add
28416 libc_hidden_def.
28417 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28418 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28419 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28420 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28421 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28422 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28423 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28424 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28425 Add aliases.
28426
28427 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28428
28429 * sysdeps/generic/libm-alias-float.h: New file.
28430 * sysdeps/generic/math-type-macros-float.h: Include
28431 <libm-alias-float.h>.
28432 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28433
28434 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28435
28436 [BZ #22093]
28437 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28438 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28439 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28440 (HWCAP_IMPORTANT): Likewise.
28441 (HWCAP_X86_64): New enum.
28442 (HWCAP_X86_AVX512_1): Updated.
28443 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28444 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28445 (modules-names): Add x86_64/tst-x86_64mod-1.
28446 (LDFLAGS-tst-x86_64mod-1.so): New.
28447 ($(objpfx)tst-x86_64-1): Likewise.
28448 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28449 (tst-x86_64-1-clean): Likewise.
28450 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28451 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28452
28453 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28454
28455 * po/sv.po: Update translations.
28456 * po/fr.po: Likewise.
28457
28458 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28459
28460 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28461 seconds.
28462 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28463 seconds.
28464 * elf/rtld-Rules: Fix $(error) use.
28465
28466 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28467
28468 [BZ #14925]
28469 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28470 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28471 * localedata/locales/bn_BD: “Bengali” was still used in some
28472 comments. Change it to “Bangla”.
28473
28474 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28475
28476 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28477
28478 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28479
28480 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28481 thunderx2t99p1 to list of cpu names.
28482 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28483 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28484
28485 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28486
28487 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28488 Use strcmp instead of tunable_is_name.
28489
28490 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28491
28492 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28493 (F_GET_RW_HINT): New macro.
28494 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28495 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28496 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28497 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28498 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28499 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28500 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28501 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28502 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28503
28504 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28505 (F_ADD_SEALS): New macro.
28506 [__USE_GNU] (F_GET_SEALS): Likewise.
28507 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28508 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28509 [__USE_GNU] (F_SEAL_GROW): Likewise.
28510 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28511
28512 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28513
28514 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28515 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28516 * posix/glob_internal.h (__glob_pattern_type):
28517 * posix/glob.c (glob):
28518 * posix/glob_pattern_p.c (__glob_pattern_p):
28519 Use them.
28520
28521 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28522 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28523 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28524 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28525 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28526 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28527 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28528 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28529 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28530 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28531 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28532 * sysdeps/wordsize-64/glob.c: Likewise.
28533 * sysdeps/wordsize-64/glob64.c: Likewise.
28534 * sysdeps/wordsize-64/globfree.c: Likewise.
28535 * sysdeps/wordsize-64/globfree64.c: Likewise.
28536 * sysdeps/unix/sysv/linux/glob.c: New file.
28537 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28538 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28539 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28540 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28541 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28542 adds !GLOB_NO_OLD_VERSION as an extra condition.
28543 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28544 using relative path instead of absolute one.
28545 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28546 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28547 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28548 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28549 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28550 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28551
28552 [BZ #1062]
28553 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28554 (glob): Use the same scratch buffer for both getlogin_r and
28555 getpwnam_r. Don’t require preallocation of the login name. This
28556 simplifies storage allocation, and corrects the handling of
28557 long login names.
28558
28559 [BZ #1062]
28560 * posix/glob.c (glob): Port recent patches to platforms
28561 lacking getpwnam_r.
28562 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28563 returns an error number rather than setting errno.
28564
28565 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28566 instead of GCC extension.
28567 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28568 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28569 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28570
28571 [BZ #866]
28572 [BZ #1062]
28573 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28574 * posix/bug-glob1.c: Remove file.
28575 * posix/tst-glob_symlinks.c: New file.
28576 * posix/glob.c (__lstat64): New macro.
28577 (is_dir): New function.
28578 (glob, glob_in_dir): Match symlinks even if they are dangling.
28579 (link_stat, link_exists_p): Remove. All uses removed.
28580
28581 [BZ #1062]
28582 [BZ #19971]
28583 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28584 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28585 All uses removed.
28586
28587 [BZ #1062]
28588 CVE-2017-15671
28589 * posix/Makefile (routines): Add globfree, globfree64, and
28590 glob_pattern_p.
28591 * posix/flexmember.h: New file.
28592 * posix/glob_internal.h: Likewise.
28593 * posix/glob_pattern_p.c: Likewise.
28594 * posix/globfree.c: Likewise.
28595 * posix/globfree64.c: Likewise.
28596 * sysdeps/gnu/globfree64.c: Likewise.
28597 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28598 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28599 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28600 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28601 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28602 * sysdeps/wordsize-64/globfree.c: Likewise.
28603 * sysdeps/wordsize-64/globfree64.c: Likewise.
28604 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28605 [NDEBUG): Remove comments.
28606 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28607 (dirent_type): New type. Use uint_fast8_t not
28608 uint8_t, as C99 does not require uint8_t.
28609 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28610 (struct readdir_result): Use dirent_type. Do not define skip_entry
28611 unless it is needed; this saves a byte on platforms lacking d_ino.
28612 (readdir_result_type, readdir_result_skip_entry):
28613 New functions, replacing ...
28614 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28615 these functions, which were removed. This makes the callers
28616 easier to read. All callers changed.
28617 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28618 (size_add_wrapv, glob_use_alloca): New static functions.
28619 (glob, glob_in_dir): Check for size_t overflow in several places,
28620 and fix some size_t checks that were not quite right.
28621 Remove old code using SHELL since Bash no longer
28622 uses this.
28623 (glob, prefix_array): Separate MS code better.
28624 (glob_in_dir): Remove old Amiga and VMS code.
28625 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28626 separate files.
28627 (glob_in_dir): Do not rely on undefined behavior in accessing
28628 struct members beyond their bounds. Use a flexible array member
28629 instead
28630 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28631 0/1. Caller changed.
28632 (glob): Fix memory leaks.
28633 * posix/glob64 (globfree64): Move to separate file.
28634 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28635 (globfree64): Remove hidden alias.
28636 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28637 oldglob.
28638 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28639 separate file.
28640 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28641 define.
28642 Move compat code to separate file.
28643 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28644 separate file.
28645
28646 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28647
28648 * resolv/tst-resolv-qtypes.c (domain): Changed to
28649 "const char domain[] =".
28650
28651 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28652
28653 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28654 version to 3.1.6.
28655
28656 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28657 (TCP_MD5SIG_EXT): Likewise.
28658 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28659 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28660 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28661
28662 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28663
28664 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28665
28666 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28667
28668 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28669
28670 [BZ #22100]
28671 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28672
28673 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28674
28675 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28676 before assuming that the file is empty. Avoid testing buffer content
28677 when nread == 0.
28678
28679 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28680
28681 [BZ #18858]
28682 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28683 Remove define.
28684 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28685 Likewise.
28686 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28687 Likewise.
28688 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28689 Likewise.
28690 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28691 Likewise.
28692 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28693 Likewise.
28694 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28695 Likewise.
28696
28697 2017-09-06 Florian Weimer <fweimer@redhat.com>
28698
28699 * malloc/dynarray_emplace_enlarge.c
28700 (__libc_dynarray_emplace_enlarge): Add missing else.
28701
28702 2017-09-06 Florian Weimer <fweimer@redhat.com>
28703
28704 [BZ #22096]
28705 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28706 case of failure to obtain the global conf object.
28707
28708 2017-09-06 Florian Weimer <fweimer@redhat.com>
28709
28710 [BZ #22095]
28711 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28712 dynarray allocation failure.
28713
28714 2017-09-06 Florian Weimer <fweimer@redhat.com>
28715
28716 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28717 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28718 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28719 New functions.
28720 (response): Call them. Add 'p', '6' flag processing.
28721 (test_reverse): New function.
28722 (test_get2_any): Call it.
28723 (test_no_inet6): Add 'p' test.
28724 (test_inet6): Likewise.
28725
28726 2017-09-06 Florian Weimer <fweimer@redhat.com>
28727
28728 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28729 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28730 the QNAME.
28731 (test_gai): Adjust query names. Add additional tests.
28732 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28733 test_get2. Adjust query names. Add additional tests.
28734 (test_no_inet6): New function, extracted from threadfunc.
28735 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28736 Add additional tests.
28737
28738 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28739
28740 [BZ #22070]
28741 * localedata/unicode-gen/utf8_gen.py: Set the width for
28742 characters with Prepended_Concatenation_Mark property to 1
28743 * localedata/charmaps/UTF-8: Updated using the improved script.
28744
28745 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28746
28747 [BZ #21750]
28748 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28749 use the range notation for all ranges of neighbouring characters
28750 with the same width.
28751
28752 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28753
28754 * sysdeps/generic/math-type-macros-double.h: Include
28755 <math-svid-compat.h>.
28756 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28757 * sysdeps/generic/math-type-macros-float.h: Include
28758 <math-svid-compat.h>.
28759 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28760 * sysdeps/generic/math-type-macros-ldouble.h: Include
28761 <math-svid-compat.h>.
28762 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28763 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28764 condition.
28765 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28766 * math/w_acosf_compat.c: Likewise.
28767 * math/w_acosh_compat.c: Likewise.
28768 * math/w_acoshf_compat.c: Likewise.
28769 * math/w_acoshl_compat.c: Likewise.
28770 * math/w_acosl_compat.c: Likewise.
28771 * math/w_asin_compat.c: Likewise.
28772 * math/w_asinf_compat.c: Likewise.
28773 * math/w_asinl_compat.c: Likewise.
28774 * math/w_atan2_compat.c: Likewise.
28775 * math/w_atan2f_compat.c: Likewise.
28776 * math/w_atan2l_compat.c: Likewise.
28777 * math/w_atanh_compat.c: Likewise.
28778 * math/w_atanhf_compat.c: Likewise.
28779 * math/w_atanhl_compat.c: Likewise.
28780 * math/w_cosh_compat.c: Likewise.
28781 * math/w_coshf_compat.c: Likewise.
28782 * math/w_coshl_compat.c: Likewise.
28783 * math/w_exp10_compat.c: Likewise.
28784 * math/w_exp10f_compat.c: Likewise.
28785 * math/w_exp10l_compat.c: Likewise.
28786 * math/w_exp2_compat.c: Likewise.
28787 * math/w_exp2f_compat.c: Likewise.
28788 * math/w_exp2l_compat.c: Likewise.
28789 * math/w_fmod_compat.c: Likewise.
28790 * math/w_fmodf_compat.c: Likewise.
28791 * math/w_fmodl_compat.c: Likewise.
28792 * math/w_hypot_compat.c: Likewise.
28793 * math/w_hypotf_compat.c: Likewise.
28794 * math/w_hypotl_compat.c: Likewise.
28795 * math/w_j0_compat.c: Likewise.
28796 * math/w_j0f_compat.c: Likewise.
28797 * math/w_j0l_compat.c: Likewise.
28798 * math/w_j1_compat.c: Likewise.
28799 * math/w_j1f_compat.c: Likewise.
28800 * math/w_j1l_compat.c: Likewise.
28801 * math/w_jn_compat.c: Likewise.
28802 * math/w_jnf_compat.c: Likewise.
28803 * math/w_jnl_compat.c: Likewise.
28804 * math/w_lgamma_r_compat.c: Likewise.
28805 * math/w_lgammaf_r_compat.c: Likewise.
28806 * math/w_lgammal_r_compat.c: Likewise.
28807 * math/w_log10_compat.c: Likewise.
28808 * math/w_log10f_compat.c: Likewise.
28809 * math/w_log10l_compat.c: Likewise.
28810 * math/w_log2_compat.c: Likewise.
28811 * math/w_log2f_compat.c: Likewise.
28812 * math/w_log2l_compat.c: Likewise.
28813 * math/w_log_compat.c: Likewise.
28814 * math/w_logf_compat.c: Likewise.
28815 * math/w_logl_compat.c: Likewise.
28816 * math/w_pow_compat.c: Likewise.
28817 * math/w_powf_compat.c: Likewise.
28818 * math/w_powl_compat.c: Likewise.
28819 * math/w_remainder_compat.c: Likewise.
28820 * math/w_remainderf_compat.c: Likewise.
28821 * math/w_remainderl_compat.c: Likewise.
28822 * math/w_sinh_compat.c: Likewise.
28823 * math/w_sinhf_compat.c: Likewise.
28824 * math/w_sinhl_compat.c: Likewise.
28825 * math/w_sqrt_compat.c: Likewise.
28826 * math/w_sqrtf_compat.c: Likewise.
28827 * math/w_sqrtl_compat.c: Likewise.
28828 * math/w_tgamma_compat.c: Likewise.
28829 * math/w_tgammaf_compat.c: Likewise.
28830 * math/w_tgammal_compat.c: Likewise.
28831 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28832 [LIBM_SVID_COMPAT].
28833 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28834 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28835 [LIBM_SVID_COMPAT].
28836 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28837 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28838 [LIBM_SVID_COMPAT].
28839 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28840 * sysdeps/i386/fpu/w_sqrt.c: New file.
28841 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28842 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28843 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28844 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28845 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28846 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28847 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28848 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28849 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28850 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28851 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28852 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28853 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28854 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28855 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28856 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28857 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28858 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28859 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28860 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28861 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28862 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28863 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28864 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28865 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28866 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28867 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28868 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28869 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28870 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28871 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28872 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28873 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28874 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28875 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28876 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28877 * sysdeps/ia64/fpu/w_log.c: Likewise.
28878 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28879 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28880 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28881 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28882 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28883 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28884 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28885 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28886 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28887 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28888 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28889 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28890 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28891 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28892 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28893 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28894 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28895 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28896 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28897 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28898 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28899 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28900 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28901 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28902 [LIBM_SVID_COMPAT].
28903 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28904 * sysdeps/ieee754/k_standard.c: Likewise.
28905 * sysdeps/ieee754/k_standardf.c: Likewise.
28906 * sysdeps/ieee754/k_standardl.c: Likewise.
28907 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28908 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28909 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28910 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28911 long_double_symbol call on [LIBM_SVID_COMPAT].
28912 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28913 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28914 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28915 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28916 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28917 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28918 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28919 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28920 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28921 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28922 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28923 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28924 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28925 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28926 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28927 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28928 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28929 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28930 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28931 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28932 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28933 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28934
28935 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28936
28937 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28938 * malloc/tst-mallocstate.c: Convert from test-skeleton
28939 to test-driver. Ifdef code using TEST_COMPAT macro.
28940 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28941 * math/test-matherr.c: Likewise.
28942
28943 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28944
28945 [BZ #22086]
28946 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28947 comparing word with byte-swapped constant.
28948
28949 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28950
28951 [BZ #20498]
28952 * locale/iso-639.def: add Miskito.
28953 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28954 * localedata/locales/miq_NI: New file.
28955
28956 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28957
28958 [BZ #18822]
28959 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28960 (__mkdir): Likewise.
28961 * io/chmod.c (__chmod): Add libc_hidden_def.
28962 * io/mkdir.c (__mkdir): Likewise.
28963 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28964 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28965 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28966 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28967
28968 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28969
28970 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28971 version to 4.13.
28972
28973 [BZ #22082]
28974 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28975 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28976
28977 2017-09-04 Florian Weimer <fweimer@redhat.com>
28978
28979 * math/math.h: Issue warning if log is defined.
28980
28981 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28982
28983 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28984 kernel version to 4.13.
28985
28986 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28987
28988 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28989 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28990 parameter.
28991 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28992 just <bits/types.h>.
28993 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28994 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28995 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28996 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28997 * misc/preadv2.c: Include <errno.h>.
28998 * misc/preadv64v2.c: Include <errno.h>.
28999 * misc/pwritev2.c: Include <errno.h>.
29000 * misc/pwritev64v2.c: Include <errno.h>.
29001 * sysdeps/posix/preadv2.c: Include <errno.h>.
29002 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
29003 Fix <unistd.h> inclusion.
29004 * sysdeps/posix/pwritev2.c: Include <errno.h>.
29005 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
29006 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
29007 __strtoul_internal): New functions.
29008 * sysdeps/posix/pause.c: Include <sigsetops.h>.
29009 * sysdeps/posix/system.c: Include <sigsetops.h>.
29010 * sysdeps/mach/hurd/i386/Makefile
29011 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
29012 [$(subdir) = csu] (sysdep-only-routines): Likewise.
29013 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
29014 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
29015 __feraiseexcept_renamed to feraiseexcept instead of
29016 __GI_feraiseexcept.
29017 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
29018 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
29019 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
29020 RWF_NOWAIT): Define to 0 if undefined already.
29021 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
29022 boils down to 0.
29023 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
29024 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
29025
29026 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29027
29028 * manual/math.texi (pow10): Do not document.
29029 (pow10f): Likewise.
29030 (pow10l): Likewise.
29031 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
29032 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
29033 * math/libm-test-exp10.inc (pow10_test): Remove.
29034 (do_test): Do not call pow10.
29035 * math/w_exp10_compat.c (pow10): Make into compat symbol.
29036 [NO_LONG_DOUBLE] (pow10l): Likewise.
29037 * math/w_exp10f_compat.c (pow10f): Likewise.
29038 * math/w_exp10l_compat.c (pow10l): Likewise.
29039 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29040 (pow10): Make into compat symbol.
29041 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29042 (pow10f): Make into compat symbol.
29043 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29044 (pow10l): Make into compat symbol.
29045 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29046 pow10.
29047 (CFLAGS-nldbl-pow10.c): Remove variable..
29048 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29049 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29050 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29051 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29052 Undefine and redefine.
29053 (pow10l): Make into compat symbol.
29054 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29055 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29056 * sysdeps/arm/libm-test-ulps: Likewise.
29057 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29058 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29059 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29060 * sysdeps/microblaze/libm-test-ulps: Likewise.
29061 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29062 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29063 * sysdeps/nios2/libm-test-ulps: Likewise.
29064 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29065 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29066 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29067 * sysdeps/sh/libm-test-ulps: Likewise.
29068 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29069 * sysdeps/tile/libm-test-ulps: Likewise.
29070 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29071
29072 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29073
29074 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29075
29076 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29077
29078 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29079 "../ChangeLog.old/ChangeLog.8".
29080 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29081 "../ChangeLog.old/ChangeLog.14".
29082
29083 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29084
29085 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29086 Threads Library.
29087
29088 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29089
29090 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29091
29092 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29093
29094 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29095 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29096
29097 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29098
29099 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29100 32 atexit handlers.
29101
29102 2017-09-01 Zack Weinberg <zackw@panix.com>
29103
29104 * math/math.h (HUGE_VAL): Improve commentary.
29105
29106 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29107 Andreas Schwab <schwab@suse.de>
29108
29109 [BZ #21530]
29110 * include/stdio.h (__gen_tempfd): New function.
29111 * stdio-common/Makefile (routines): Add gentempfd.
29112 * stdio-common/gentempfd.c: New file.
29113 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29114 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29115 unnamed file first.
29116
29117 2017-09-01 Florian Weimer <fweimer@redhat.com>
29118
29119 [BZ #21915]
29120 [BZ #21922]
29121 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29122 result to determine success or failure, not the errno value.
29123 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29124 (tst-nss-files-hosts-erange): Link with -ldl.
29125 * nss/tst-nss-files-hosts-erange.c: New file.
29126 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29127 (do_test): Add NO_DATA tests.
29128 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29129 (do_test): Call it.
29130
29131 2017-09-01 Florian Weimer <fweimer@redhat.com>
29132
29133 [BZ #21922]
29134 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29135 coming from gethostbyname2_r.
29136
29137 2017-09-01 Florian Weimer <fweimer@redhat.com>
29138
29139 * support/namespace.h (struct support_chroot_configuration): Add
29140 hosts, host_conf.
29141 (struct support_chroot): Add path_hosts, path_host_conf.
29142 * support/support_chroot.c (write_file): New function.
29143 (support_chroot_create): Call it to process /etc/resolv.conf,
29144 /etc/hosts, /etc/host.conf.
29145 (support_chroot_free): Update.
29146
29147 2017-09-01 Florian Weimer <fweimer@redhat.com>
29148
29149 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29150 status indicates it is set.
29151
29152 2017-09-01 Florian Weimer <fweimer@redhat.com>
29153
29154 [BZ #20532]
29155 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29156 function lookup failures more reliable.
29157
29158 2017-09-01 Florian Weimer <fweimer@redhat.com>
29159
29160 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29161 (getcanonname): Likewise.
29162 (gaih_inet): Likewise.
29163
29164 2017-09-01 Florian Weimer <fweimer@redhat.com>
29165
29166 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29167 (getcanonname): Likewise.
29168 (gaih_inet): Likewise.
29169
29170 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29171 Richard Henderson <rth@twiddle.net>
29172
29173 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29174 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29175 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29176 (IREG_SIZE, OREG_SIZE): New macros.
29177 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29178 (IREG_SIZE, OREG_SIZE): New macros.
29179 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29180 (IREG_SIZE): New macro.
29181 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29182 (IREG_SIZE): New macro.
29183 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29184 New includes.
29185 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29186 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29187 (__CONCATX): Handle exceptions correctly on large values that may
29188 set FE_INVALID.
29189 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29190 Initialize if not already set.
29191 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29192
29193 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29194
29195 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29196 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29197 Likewise.
29198 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29199 Likewise.
29200 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29201 Likewise.
29202 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29203 Likewise.
29204 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29205 Likewise.
29206 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29207 Likewise.
29208 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29209 Likewise.
29210 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29211 (NO_CANCELLATION): Likewise.
29212 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29213 Likewise.
29214 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29215 Likewise.
29216 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29217 Likewise.
29218 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29219 (NO_CANCELLATION): Likewise.
29220 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29221 (NO_CANCELLATION): Likewise.
29222 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29223 Likewise
29224 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29225 Likewise.
29226 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29227 Likewise.
29228 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29229 Likewise.
29230 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29231 hidden prototype.
29232 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29233 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29234
29235 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29236
29237 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29238 in resolver call.
29239
29240 2017-08-31 Florian Weimer <fweimer@redhat.com>
29241
29242 * include/libc-symbols.h (internal_function): Remove.
29243
29244 2017-08-31 Florian Weimer <fweimer@redhat.com>
29245
29246 * stdlib/fmtmsg.c (internal_addseverity): Remove
29247 internal_function.
29248
29249 2017-08-31 Florian Weimer <fweimer@redhat.com>
29250
29251 * stdio-common/printf_fp.c (group_number): Remove
29252 internal_function.
29253 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29254
29255 2017-08-31 Florian Weimer <fweimer@redhat.com>
29256
29257 * posix/fnmatch.c (internal_function): Remove definition.
29258 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29259 * posix/regcomp.c (peek_token, init_word_char)
29260 (duplicate_node_closure, fetch_token, peek_token)
29261 (peek_token_bracket, build_range_exp, build_collating_symbol):
29262 Likewise.
29263 * posix/regex_internal.c (re_string_construct_common)
29264 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29265 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29266 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29267 (re_string_translate_buffer, re_string_reconstruct)
29268 (re_string_peek_byte_case, re_string_fetch_byte_case)
29269 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29270 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29271 (re_node_set_add_intersect, re_node_set_init_union)
29272 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29273 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29274 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29275 (re_acquire_state_context): Likewise.
29276 * posix/regex_internal.h (internal_function): Remove definition.
29277 (re_string_realloc_buffers, build_wcs_buffer)
29278 (build_wcs_upper_buffer, build_upper_buffer)
29279 (re_string_translate_buffer, re_string_context_at)
29280 (re_string_char_size_at, re_string_wchar_at)
29281 (re_string_elem_size_at): Likewise.
29282 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29283 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29284 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29285 (re_search_internal, re_search_2_stub, re_search_stub)
29286 (re_copy_regs, prune_impossible_nodes, check_matching)
29287 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29288 (free_fail_stack_return, sift_states_iter_mb)
29289 (sift_states_backward, build_sifted_states)
29290 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29291 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29292 (check_subexp_limits, sift_states_bkref, merge_state_array)
29293 (find_recover_state, transit_state, merge_state_with_log)
29294 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29295 (transit_state_mb, transit_state_bkref, get_subexp)
29296 (get_subexp_sub, find_subexp_node, check_arrival)
29297 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29298 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29299 (check_node_accept_bytes, find_collation_sequence_value)
29300 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29301 (acquire_init_state_context, check_halt_node_context)
29302 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29303 (sub_epsilon_src_nodes): Likewise.
29304 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29305 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29306 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29307 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29308 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29309 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29310 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29311 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29312 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29313 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29314 (PREADV): Likewise.
29315 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29316 (PREADV): Likewise.
29317 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29318 (PWRITEV): Likewise.
29319 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29320 (PWRITEV): Likewise.
29321 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29322 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29323
29324 2017-08-31 Florian Weimer <fweimer@redhat.com>
29325
29326 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29327 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29328 Remove internal_function.
29329 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29330 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29331 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29332 (__deallocate_stack, __libc_pthread_init)
29333 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29334 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29335 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29336 Likewise.
29337 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29338 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29339 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29340 Likewise.
29341 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29342 (__pthread_mutex_unlock_usercnt): Likewise.
29343
29344 2017-08-31 Florian Weimer <fweimer@redhat.com>
29345
29346 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29347 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29348 (fts_safe_changedir): Remove internal_function.
29349 * io/ftw.c (internal_function): Remove definition.
29350 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29351
29352 2017-08-31 Florian Weimer <fweimer@redhat.com>
29353
29354 * inet/deadline.c (__deadline_current_time)
29355 (__deadline_from_timeval, __deadline_to_ms): Remove
29356 internal_function.
29357 * inet/getnameinfo.c (nrl_domainname): Likewise.
29358 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29359 * inet/inet6_option.c (add_pad): Likewise.
29360 * inet/net-internal.h (__deadline_current_time)
29361 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29362 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29363 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29364 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29365
29366 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29367
29368 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29369 include <bits/nan.h>.
29370 * math/Makefile (headers): Remove bits/nan.h.
29371 * bits/nan.h: Remove.
29372 * sysdeps/ieee754/bits/nan.h: Likewise.
29373 * sysdeps/mips/bits/nan.h: Likewise.
29374
29375 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29376 not include <bits/inf.h>.
29377 * math/Makefile (headers): Remove bits/inf.h.
29378 * bits/inf.h: Remove.
29379 * sysdeps/ieee754/bits/inf.h: Likewise.
29380
29381 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29382 bits/huge_vall.h or bits/huge_val_flt128.h.
29383 (HUGE_VAL): Define directly here.
29384 [__USE_ISOC99] (HUGE_VALF): Likewise.
29385 [__USE_ISOC99] (HUGE_VALL): Likewise.
29386 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29387 (HUGE_VAL_F128): Likewise.
29388 * math/Makefile (headers): Remove bits/huge_val.h,
29389 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29390 * bits/huge_val.h: Remove.
29391 * bits/huge_val_flt128.h: Likewise.
29392 * bits/huge_valf.h: Likewise.
29393 * bits/huge_vall.h: Likewise.
29394 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29395 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29396 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29397 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29398 * sysdeps/sh/bits/huge_val.h: Likewise.
29399 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29400 * sysdeps/x86/bits/huge_vall.h: Likewise.
29401
29402 2017-08-31 Florian Weimer <fweimer@redhat.com>
29403
29404 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29405 internal_function.
29406 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29407 Likewise.
29408 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29409 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29410 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29411 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29412 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29413 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29414 * elf/dl-libc.c (dlerror_run): Likewise.
29415 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29416 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29417 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29418 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29419 Likewise.
29420 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29421 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29422 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29423 * elf/dl-profile.c (_dl_start_profile): Likewise.
29424 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29425 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29426 Likewise.
29427 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29428 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29429 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29430 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29431 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29432 (_dl_allocate_tls_storage): Likewise.
29433 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29434 (_dl_check_all_versions): Likewise.
29435 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29436 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29437 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29438 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29439 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29440 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29441 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29442 internal_function from __dl_start.
29443 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29444 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29445 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29446 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29447 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29448 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29449 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29450 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29451 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29452 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29453 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29454 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29455 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29456 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29457 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29458 Likewise.
29459 (struct rtld_global_ro): Remove internal_function from the
29460 _dl_lookup_symbol_x member.
29461 (_dl_symbol_value): Remove. No longer defined anywhere.
29462 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29463 internal_function.
29464 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29465 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29466 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29467 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29468 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29469 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29470 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29471 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29472 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29473 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29474 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29475 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29476
29477 2017-08-31 Florian Weimer <fweimer@redhat.com>
29478
29479 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29480 Remove internal_function.
29481 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29482 Likewise.
29483 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29484 Likewise.
29485
29486 2017-08-31 Florian Weimer <fweimer@redhat.com>
29487
29488 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29489 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29490 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29491
29492 2017-08-31 Florian Weimer <fweimer@redhat.com>
29493
29494 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29495 (__gai_enqueue_request): Remove internal_function.
29496 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29497 (__gai_remove_request, __gai_notify, __gai_notify_only)
29498 (__gai_sigqueue): Likewise.
29499 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29500 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29501 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29502 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29503 Likewise.
29504
29505 2017-08-31 Florian Weimer <fweimer@redhat.com>
29506
29507 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29508 * include/dirent.h (__opendirat, __getdents, __getdents64)
29509 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29510 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29511 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29512 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29513 Likewise.
29514 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29515
29516 2017-08-31 Florian Weimer <fweimer@redhat.com>
29517
29518 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29519 internal_function.
29520 (GETCWD_RETURN_TYPE): Likewise.
29521
29522 2017-08-31 Florian Weimer <fweimer@redhat.com>
29523
29524 * include/time.h (__tz_compute, __strptime_internal): Remove
29525 internal_function.
29526 * time/strptime_l.c (__strptime_internal): Likewise.
29527 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29528
29529 2017-08-31 Florian Weimer <fweimer@redhat.com>
29530
29531 * iconv/gconv.c (__gconv): Remove internal_function.
29532 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29533 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29534 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29535 (__gconv_release_cache): Likewise.
29536 * iconv/gconv_close.c (__gconv_close): Likewise.
29537 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29538 (read_conf_file, __gconv_get_path): Likewise.
29539 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29540 (__gconv_release_step, gen_steps, increment_counter)
29541 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29542 (__gconv_close_transform, free_modules_db): Likewise.
29543 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29544 Likewise.
29545 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29546 (__gconv_find_transform, __gconv_lookup_cache)
29547 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29548 (__gconv_close_transform, __gconv_release_cache)
29549 (__gconv_loaded_object, __gconv_release_shlib)
29550 (__gconv_compare_alias): Likewise.
29551 * iconv/gconv_open.c (__gconv_open): Likewise.
29552 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29553 * iconv/iconvconfig.c (add_module): Likewise.
29554 * intl/dcigettext.c (plural_lookup, guess_category_value)
29555 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29556 * intl/eval-plural.h (plural_eval): Likewise.
29557 * intl/finddomain.c (_nl_find_domain): Likewise.
29558 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29559 (_nl_load_domain, _nl_find_msg): Likewise.
29560 (internal_function): Remove definition.
29561 * intl/loadinfo.h (internal_function): Likewise.
29562 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29563 internal_function.
29564 * intl/localealias.c (internal_function): Remove definition.
29565 (read_alias_file): Remove internal_function.
29566 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29567 * intl/plural-exp.h (internal_function): Remove definition.
29568 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29569 internal_function.
29570 * intl/plural.c: Regenerate.
29571 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29572 * locale/coll-lookup.c (__collidx_table_lookup)
29573 (__collseq_table_lookup): Likewise.
29574 * locale/coll-lookup.h (__collidx_table_lookup)
29575 (__collseq_table_lookup): Likewise.
29576 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29577 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29578 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29579 (_nl_unload_locale): Likewise.
29580 * locale/localeinfo.h (struct __locale_data): Remove
29581 internal_function from cleanup member.
29582 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29583 (_nl_remove_locale, _nl_load_locale_from_archive)
29584 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29585 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29586 (_nl_cleanup_time): Remove internal_function.
29587 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29588 (_nl_parse_alt_digit): Likewise.
29589 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29590 (_nl_select_era_entry): Likewise.
29591 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29592 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29593 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29594 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29595 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29596
29597 2017-08-31 Florian Weimer <fweimer@redhat.com>
29598
29599 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29600 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29601 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29602 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29603 Likewise.
29604 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29605 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29606 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29607 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29608 Likewise.
29609 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29610
29611 2017-08-31 Florian Weimer <fweimer@redhat.com>
29612
29613 * misc/getttyent.c (skip, value): Remove internal_function.
29614 * misc/syslog.c (openlog_internal): Likewise.
29615 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29616
29617 2017-08-31 Florian Weimer <fweimer@redhat.com>
29618
29619 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29620 (__nss_rewrite_field): Remove internal_function.
29621 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29622 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29623 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29624 * nss/nsswitch.c (nss_parse_file, nss_getline)
29625 (nss_parse_service_list, nss_new_service): Likewise.
29626 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29627 * nss/valid_field.c (__nss_valid_field): Likewise.
29628 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29629
29630 2017-08-31 Florian Weimer <fweimer@redhat.com>
29631
29632 * malloc/arena.c (__malloc_fork_lock_parent)
29633 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29634 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29635 internal_function from defintions.
29636 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29637 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29638 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29639 internal_function from declarations.
29640 * malloc/malloc.c (internal_function): Do not define.
29641 (mem2mem_check): Remove internal_function from declaration.
29642 (munmap_chunk, mremap_chunk): Remove internal_function.
29643 * malloc/mtrace.c (tr_where): Likewise.
29644
29645 2017-08-31 Florian Weimer <fweimer@redhat.com>
29646
29647 * include/rpc/pmap_clnt.h (__get_socket): Remove
29648 internal_function.
29649 * sunrpc/auth_des.c (synchronize): Likewise.
29650 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29651 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29652 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29653 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29654 (key_call): Likewise.
29655 * sunrpc/pm_getport.c (__get_socket): Likewise.
29656 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29657 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29658 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29659 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29660 (invalidate): Likewise.
29661 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29662 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29663 (set_input_fragment, get_input_bytes): Likewise.
29664
29665 2017-08-31 Florian Weimer <fweimer@redhat.com>
29666
29667 * malloc/malloc.c (_int_free): Remove locked variable and related
29668 asserts.
29669
29670 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29671
29672 [BZ #22051]
29673 * Makerules (build-module-helper-objlist): Filter out
29674 $(elf-objpfx)sofini.os.
29675 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29676 needed.
29677
29678 2017-08-31 Florian Weimer <fweimer@redhat.com>
29679
29680 * libio/fcloseall.c: Assume weak_alias is defined.
29681 * libio/feof.c: Likewise.
29682 * libio/fileno.c: Likewise.
29683 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29684 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29685 definitions.
29686 (_IO_file_open): Call __open directly.
29687 (_IO_new_file_sync): Assume ESPIPE is defined.
29688 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29689 (_IO_new_file_write): Call __write directly.
29690 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29691 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29692 * libio/genops.c: Assume _LIBC is defined.
29693 (save_for_backup): Remove internal_function.
29694 * libio/getc.c: Assume weak_alias is defined.
29695 * libio/getwc.c: Likewise.
29696 * libio/iofclose.c: Assume _LIBC is defined.
29697 * libio/iofdopen.c: Likewise.
29698 (_IO_fcntl): Remove macro definition.
29699 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29700 Call __fcntl directly.
29701 * libio/iofflush.c: Assume weak_alias is defined.
29702 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29703 defined.
29704 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29705 * libio/iofgets.c: Likewise.
29706 * libio/iofopen.c: Assume _LIBC is defined.
29707 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29708 * libio/iofputs.c: Assume weak_alias is defined.
29709 * libio/iofread.c: Likewise.
29710 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29711 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29712 * libio/ioftell.c: Assume weak_alias is defined.
29713 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29714 * libio/iofwide.c: Assume _LIBC is defined.
29715 (_IO_fwide): Drop SHARED conditional because it is implied by
29716 SHLIB_COMPAT.
29717 * libio/iofwrite.c: Assume weak_alias is defined.
29718 * libio/iogetdelim.c: Likewise.
29719 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29720 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29721 (_IO_getwline): Call __wmemcpy directly.
29722 * libio/iopopen.c: Assume _LIBC is defined.
29723 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29724 (_IO_close): Remove macro definitions.
29725 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29726 _exit directly.
29727 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29728 directly.
29729 * libio/ioputs.c: Assume weak_alias is defined.
29730 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29731 * libio/iosetbuffer.c: Assume weak_alias is defined.
29732 * libio/iosetvbuf.c: Likewise.
29733 * libio/ioungetc.c: Likewise.
29734 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29735 libc_hidden_def, libc_hidden_weak, NULL are defined.
29736 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29737 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29738 defined.
29739 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29740 definitions.
29741 (_IO_old_file_init_internal): Drop SHARED conditional because it
29742 is implied by SHLIB_COMPAT.
29743 (_IO_old_file_fopen): Call __open directly.
29744 (_IO_old_file_sync): Assume ESPIPE is defined.
29745 (_IO_old_file_write): Call __write directly.
29746 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29747 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29748 Call __fcntl directly.
29749 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29750 (_IO_old_fgetpos): Assume EIO is defined.
29751 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29752 (_IO_old_fgetpos64): Assume EIO is defined.
29753 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29754 (_IO_old_fsetpos): Assume EIO is defined.
29755 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29756 (_IO_old_fsetpos64): Assume EIO is defined.
29757 * libio/oldiopopen.c: Assume _LIBC is defined.
29758 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29759 (_IO_close): Remove macro definitions.
29760 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29761 directly.
29762 (_IO_old_proc_close): Call __close, __waitpid directly.
29763 * libio/put.c: Assume weak_alias is defined.
29764 * libio/stdfiles.c: Assume _LIBC is defined.
29765 * libio/stdio.c: Likewise.
29766 * libio/wfileops.c: Likewise.
29767 (_IO_wfile_sync): Assume ESPIPE is defined.
29768 * libio/wgenops.c: Assume _LIBC is defined.
29769 (save_for_wbackup): Remove internal_function.
29770
29771 2017-08-31 Florian Weimer <fweimer@redhat.com>
29772
29773 * malloc/malloc.c (top_check): Change return type to void. Remove
29774 internal_function.
29775 * malloc/hooks.c (top_check): Likewise.
29776 (malloc_check, realloc_check, memalign_check): Adjust.
29777
29778 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29779
29780 [BZ #21457]
29781 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29782 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29783 sigcontext and namespace requirements.
29784 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29785 * sysdeps/m68k/sys/ucontext.h: Likewise.
29786 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29787 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29788 <bits/sigcontext.h>.
29789 (__ctx): Define earlier.
29790 (mcontext_t): Define structure contents rather than using struct
29791 sigcontext.
29792 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29793 __glibc_reserved1 instead of __reserved.
29794 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29795 <bits/sigcontext.h>.
29796 (__ctx): Define earlier.
29797 (mcontext_t): Define structure contents rather than using struct
29798 sigcontext.
29799 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29800 mcontext_t instead of struct sigcontext.
29801 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29802 <bits/sigcontext.h>.
29803 (__ctx): Define earlier.
29804 (mcontext_t): Define structure contents rather than using struct
29805 sigcontext.
29806 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29807 <bits/sigcontext.h>.
29808 (__ctx): Define earlier.
29809 (mcontext_t): Define structure contents rather than using struct
29810 sigcontext.
29811 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29812 mcontext_t instead of struct sigcontext.
29813 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29814 mcontext_t instead of struct sigcontext.
29815 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29816 <bits/sigcontext.h>.
29817 (__ctx): New macro.
29818 (struct __ia64_fpreg_mcontext): New type.
29819 (mcontext_t): Define structure contents rather than using struct
29820 sigcontext.
29821 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29822 (uc_sigmask): Define using __ctx.
29823 (uc_stack): Likewise.
29824 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29825 <bits/sigcontext.h>.
29826 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29827 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29828 <bits/sigcontext.h>.
29829 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29830 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29831 <bits/sigcontext.h>.
29832 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29833 <bits/sigcontext.h>.
29834 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29835 <bits/sigcontext.h>.
29836 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29837 <bits/sigcontext.h>.
29838 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29839 <bits/sigcontext.h>.
29840 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29841 <bits/sigcontext.h>.
29842 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29843 <bits/sigcontext.h>.
29844 (__ctx): Define earlier.
29845 (mcontext_t): Define structure contents rather than using struct
29846 sigcontext.
29847 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29848 <bits/sigcontext.h>. Include <bits/types.h>.
29849 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29850 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29851 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29852 (test-xfail-UNIX98/signal.h/conform): Likewise.
29853 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29854 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29855 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29856 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29857 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29858 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29859 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29860 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29861 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29862
29863 2017-08-30 Florian Weimer <fweimer@redhat.com>
29864
29865 * malloc/dynarray_emplace_enlarge.c
29866 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29867 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29868 * malloc/tst-dynarray.c (test_long_overflow): New function.
29869 (do_test): Call it.
29870
29871 2017-08-30 Florian Weimer <fweimer@redhat.com>
29872
29873 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29874 (set_arena_corrupt): Remove definitions.
29875 (mtrim): Do not check for corrupt arena.
29876 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29877 Likewise.
29878
29879 2017-08-30 Florian Weimer <fweimer@redhat.com>
29880
29881 [BZ #21754]
29882 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29883 check_action.
29884 (ptmalloc_init): Do not set or use check_action.
29885 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29886 call to malloc_printerr. Remove return statement.
29887 (free_check): Likewise. Remove arena unlock.
29888 (top_check): Update comment. Adjust call to malloc_printerr.
29889 Remove heap repair code.
29890 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29891 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29892 (sysmalloc): Adjust call to malloc_printerr.
29893 (munmap_chunk, __libc_realloc): Likewise. Remove return
29894 statement.
29895 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29896 Remove errout label and corresponding gotos.
29897 (_int_free): Likewise. Remove arena unlock.
29898 (do_set_mallopt_check): Do not set check_action.
29899 (malloc_printerr): Adjust parameter list. Do not mark arena as
29900 corrupt.
29901 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29902 comment.
29903 * manual/probes.texi (Memory Allocation Probes): Remove
29904 memory_mallopt_check_action.
29905
29906 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29907
29908 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29909 Use pointer to uint64_t instead of long int for sp.
29910
29911 2017-08-30 Florian Weimer <fweimer@redhat.com>
29912
29913 [BZ #21754]
29914 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29915 without printing a backtrace. Do not leak any information in the
29916 error message.
29917 * manual/memory.texi (Heap Consistency Checking): Update.
29918 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29919
29920 2017-08-30 Florian Weimer <fweimer@redhat.com>
29921
29922 Do not scale NPTL tests with available number of CPUs.
29923 * nptl/tst-cond16.c (count): Set to constant value of 8.
29924 * nptl/tst-cond18.c (count): Likewise.
29925
29926 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29927
29928 [BZ #22035]
29929 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29930 Define to take a second argument that is a macro that
29931 concatentates a suffix, not the suffix itself.
29932 (__CONCAT_d): New macro.
29933 (__CONCAT_f): Likewise.
29934 (__CONCAT_l): Likewise.
29935
29936 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29937
29938 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29939 by child.
29940
29941 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29942 Aurelien Jarno <aurelien@aurel32.net>
29943 Maciej W. Rozycki <macro@imgtec.com>
29944
29945 [BZ #21956]
29946 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29947 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29948 `mips16-syscall6' and `mips16-syscall7'.
29949 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29950 (CFLAGS-mips16-syscall7.c): Remove.
29951 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29952 Remove `__mips16_syscall5', `__mips16_syscall6' and
29953 `__mips16_syscall7'.
29954 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29955 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29956 `__mips_syscall_return'.
29957 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29958 (__mips16_syscall1): Likewise.
29959 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29960 (__mips16_syscall2): Likewise.
29961 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29962 (__mips16_syscall3): Likewise.
29963 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29964 (__mips16_syscall4): Likewise.
29965 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29966 Remove.
29967 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29968 Remove.
29969 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29970 Remove.
29971 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29972 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29973 `__mips16_syscall5'. Remove prototype.
29974 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29975 `__mips16_syscall6'. Remove prototype.
29976 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29977 `__mips16_syscall7'. Remove prototype.
29978 (__nomips16, __mips16_syscall_return): Move to...
29979 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29980 (__nomips16, __mips_syscall_return): ... here.
29981 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29982 `__mips16_syscall_return' to `__mips_syscall_return'.
29983 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29984 `internal_syscall##nr'.
29985 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29986 `internal_syscall##nr'.
29987 (FORCE_FRAME_POINTER): Remove.
29988 (__mips_syscall5): New prototype.
29989 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29990 (__mips_syscall6): New prototype.
29991 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29992 (__mips_syscall7): New prototype.
29993 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29994 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29995 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29996 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29997 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29998 (sysdep_routines): Add libc-do-syscall.
29999 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
30000 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
30001
30002 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30003
30004 [BZ #21672]
30005 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
30006 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
30007 (advise_stack_range): New function.
30008 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
30009 stack non required to advise_stack_range at allocatestack.c
30010
30011 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
30012
30013 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
30014
30015 2017-08-29 Florian Weimer <fweimer@redhat.com>
30016
30017 [BZ #22026]
30018 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
30019 __end_fct. Mangle __end_fct after setting it to NULL.
30020 * iconv/Makefile (tests): Add tst-gconv-init-failure.
30021 (modules-names, modules-names-tests): Add
30022 tst-gconv-init-failure-mod.
30023 (gconv-modules): New target.
30024 (tst-gconv-init-failure-mod.so): Link against libsupport.
30025 (tst-gconv-init-failure): Depend on gconv-modules,
30026 tst-gconv-init-failure-mod.so.
30027 * iconv/tst-gconv-init-failure-mod.c: New file.
30028 * iconv/tst-gconv-init-failure.c: Likewise.
30029 * iconv/test-gconv-modules: Likewise.
30030
30031 2017-08-29 Florian Weimer <fweimer@redhat.com>
30032
30033 [BZ #22025]
30034 * iconv/gconv_db.c (free_derivation): Remove redundant
30035 parentheses.
30036 (gen_steps): Unconditionally mangle __btowc_fct after
30037 initialization.
30038 (increment_counter): Likewise. Do not call init_fct for internal
30039 modules.
30040
30041 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30042
30043 [BZ #22028]
30044 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30045 (_MSUF_): Remove macro.
30046 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30047 Likewise.
30048 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30049 (__REDIRFROM_X): New macro.
30050 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30051 Likewise.
30052 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30053 (__REDIRTO_X): Likewise.
30054 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30055 arguments.
30056 (__MATH_REDIRCALL_2): Likewise.
30057 (__MATH_REDIRCALL_INTERNAL): Likewise.
30058 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30059 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30060 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30061 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30062 * math/test-finite-macros.c: New file.
30063 * math/Makefile (tests): Add test-finite-macros.
30064 (CFLAGS-test-finite-macros.c): New variable.
30065
30066 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30067 Jeff Law <law@redhat.com>
30068
30069 [BZ #22025]
30070 Mangle NULL pointers in iconv/gconv.
30071 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30072 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30073 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30074 is non-NULL before demangling the end_fct. Check for NULL
30075 end_fct after demangling.
30076 (__gconv_release_step): Demangle the end_fct before checking
30077 it for NULL. Remove assert on __shlibc_handle != NULL.
30078 (gen_steps): Don't check btowc_fct for NULL before mangling.
30079 Demangle init_fct before checking for NULL.
30080 (increment_counter): Likewise.
30081 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30082 end_fct for NULL before mangling.
30083 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30084 for NULL.
30085
30086 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30087
30088 [BZ #21971]
30089 * locale/iso-639.def: add Morisyen.
30090
30091 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30092
30093 [BZ #21930]
30094 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30095 (iszero): New C++ implementation that does not use
30096 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30097 signaling nans are enabled, since __builtin_types_compatible_p
30098 is a C-only feature.
30099 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30100 defined, include ieee754_float128.h for access to the union and
30101 member ieee854_float128.ieee.
30102 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30103 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30104 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30105 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30106 options of test-math-zero on powerpc64le.
30107
30108 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30109
30110 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30111 Change double to float.
30112
30113 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30114
30115 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30116 unconditional.
30117 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30118 conditional code; define contents only for [LIBM_SVID_COMPAT].
30119
30120 2017-08-28 Florian Weimer <fweimer@redhat.com>
30121
30122 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30123 (abi-lp64_be-options): Remove.
30124 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30125 (abi-hard-options): Likewise.
30126 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30127 (abi-o32_hard-options, abi-o32_soft_2008-options)
30128 (abi-o32_hard_2008-options, abi-n32_soft-options)
30129 (abi-n32_hard-options, abi-n32_soft_2008-options)
30130 (abi-n32_hard_2008-options, abi-n64_soft-options)
30131 (abi-n64_hard-options, abi-n64_soft_2008-options)
30132 (abi-n64_hard_2008-options): Likewise.
30133 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30134 (abi-64-v1-options, abi-64-v2-options): Likewise.
30135 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30136 (abi-64-options): Likewise.
30137 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30138 (abi-64-options): Likewise.
30139 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30140 (abi-64-options): Likewise.
30141 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30142 (abi-64-options, abi-x32-options): Likewise.
30143
30144 2017-08-28 Florian Weimer <fweimer@redhat.com>
30145
30146 Store supported list of SYS_* system calls in the source tree.
30147 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30148 (bits/syscall.h): Generate from list file.
30149 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30150 [$(subdir) = misc] (tests): Add tst-syscall-list.
30151 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30152 [$(subdir) = misc] (tst-syscall-list-macros.list)
30153 [$(subdir) = misc] (tst-syscall-list-nr.list)
30154 (tst-syscall-list-sys.list): Helper targets for new
30155 tst-syscall-list test.
30156 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30157 tst-syscall-list.sh.
30158 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30159 target. Do not include bits/syscall.d.
30160 [$(subdir) = misc] (generated): Do not update.
30161 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30162 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30163 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30164 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30165
30166 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30167
30168 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30169 (tst-cxa_atexit, tst-on_exit): Likewise.
30170 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30171 tst-cxa_atexit, and tst-on_exit.
30172 * stdlib/tst-atexit-common.c: New file.
30173 * stdlib/tst-atexit.c: New file.
30174 * stdlib/tst-at_quick_exit.c: New file.
30175 * stdlib/tst-cxa_atexit.c: New file.
30176 * stdlib/tst-on_exit.c: New file.
30177
30178 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30179
30180 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30181 * mach/stack_chk_fail_local.c: New file.
30182 * hurd/stack_chk_fail_local.c: New file.
30183 * mach/Machrules ($(interface-library)-routines): Add
30184 stack_chk_fail_local.
30185 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30186 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30187 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30188 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30189 * hurd/Makefile (CFLAGS-hurdstartup.o,
30190 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30191
30192 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30193
30194 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30195 (index_cpu_*, index_arch_*): Removed.
30196
30197 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30198
30199 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30200 Use uint64_t instead of unsigned long.
30201
30202 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30203
30204 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30205 [__HAVE_DISTINCT_FLOAT128].
30206
30207 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30208 of <bits/math-finite.h>.
30209 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30210 inclusion of <bits/math-finite.h>.
30211 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30212 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30213 __NO_LONG_DOUBLE_MATH].
30214 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30215 (__MATH_REDIRCALL_2): Likewise.
30216 (__MATH_REDIRCALL_INTERNAL): Likewise.
30217 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30218 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30219 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30220
30221 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30222 Remove file.
30223 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30224 Likewise.
30225 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30226 Likewise.
30227 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30228 Likewise.
30229 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30230 Likewise.
30231 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30232 Likewise.
30233 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30234 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30235 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30236 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30237 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30238 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30239 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30240 w_sqrtf_compat-ppc32.
30241
30242 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30243
30244 * math/math.h [defined __cplusplus] (issignaling): In the long
30245 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30246 is not defined. Call __issignaling, otherwise.
30247
30248 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30249
30250 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30251 syscall definitions and replace __builtin_expect with __glibc_likely.
30252 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30253 syscall.
30254 (SYSCALL_CANCELLABLE): Removedefinition
30255 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30256 definition.
30257 (PSEUDO_END): Likewise.
30258 [IS_IN (libpthread)] (CENABLE): Likewise.
30259 [IS_IN (libpthread)] (CDISABLE): Likewise.
30260 [IS_IN (libc)] (CENABLE): Likewise.
30261 [IS_IN (libc)] (CENABLE): Likewise.
30262 [IS_IN (librt)] (CDISABLE): Likewise.
30263 [IS_IN (librt)] (CDISABLE): Likewise.
30264 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30265 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30266 definition.
30267 (PSEUDO_END): Likewise.
30268 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30269 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30270 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30271 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30272 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30273 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30274 (CENABLE): Likewise.
30275 (CDISABLE): Likewise.
30276 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30277 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30278 defintion.
30279 (PSEUDO_END): Likewise.
30280 [IS_IN (libpthread)] (CENABLE): Likewise.
30281 [IS_IN (libpthread)] (CDISABLE): Likewise.
30282 [IS_IN (libc)] (CENABLE): Likewise.
30283 [IS_IN (libc)] (CENABLE): Likewise.
30284 [IS_IN (librt)] (CDISABLE): Likewise.
30285 [IS_IN (librt)] (CDISABLE): Likewise.
30286 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30287 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30288 definition.
30289 (PSEUDO_END): Likewise.
30290 [IS_IN (libpthread)] (CENABLE): Likewise.
30291 [IS_IN (libpthread)] (CDISABLE): Likewise.
30292 [IS_IN (libc)] (CENABLE): Likewise.
30293 [IS_IN (libc)] (CENABLE): Likewise.
30294 [IS_IN (librt)] (CDISABLE): Likewise.
30295 [IS_IN (librt)] (CDISABLE): Likewise.
30296 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30297 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30298 definition.
30299 (PSEUDO_END): Likewise.
30300 [IS_IN (libpthread)] (CENABLE): Likewise.
30301 [IS_IN (libpthread)] (CDISABLE): Likewise.
30302 [IS_IN (libc)] (CENABLE): Likewise.
30303 [IS_IN (libc)] (CENABLE): Likewise.
30304 [IS_IN (librt)] (CDISABLE): Likewise.
30305 [IS_IN (librt)] (CDISABLE): Likewise.
30306 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30307 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30308 definition.
30309 (PSEUDO_END): Likewise.
30310 [IS_IN (libpthread)] (CENABLE): Likewise.
30311 [IS_IN (libpthread)] (CDISABLE): Likewise.
30312 [IS_IN (libc)] (CENABLE): Likewise.
30313 [IS_IN (libc)] (CENABLE): Likewise.
30314 [IS_IN (librt)] (CDISABLE): Likewise.
30315 [IS_IN (librt)] (CDISABLE): Likewise.
30316 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30317 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30318 definition.
30319 (PSEUDO_END): Likewise.
30320 [IS_IN (libpthread)] (CENABLE): Likewise.
30321 [IS_IN (libpthread)] (CDISABLE): Likewise.
30322 [IS_IN (libc)] (CENABLE): Likewise.
30323 [IS_IN (libc)] (CENABLE): Likewise.
30324 [IS_IN (librt)] (CDISABLE): Likewise.
30325 [IS_IN (librt)] (CDISABLE): Likewise.
30326 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30327 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30328 definition.
30329 (PSEUDO_END): Likewise.
30330 [IS_IN (libpthread)] (CENABLE): Likewise.
30331 [IS_IN (libpthread)] (CDISABLE): Likewise.
30332 [IS_IN (libc)] (CENABLE): Likewise.
30333 [IS_IN (libc)] (CENABLE): Likewise.
30334 [IS_IN (librt)] (CDISABLE): Likewise.
30335 [IS_IN (librt)] (CDISABLE): Likewise.
30336 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30337 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30338 Remove definition.
30339 (PSEUDO_END): Likewise.
30340 [IS_IN (libpthread)] (CENABLE): Likewise.
30341 [IS_IN (libpthread)] (CDISABLE): Likewise.
30342 [IS_IN (libc)] (CENABLE): Likewise.
30343 [IS_IN (libc)] (CENABLE): Likewise.
30344 [IS_IN (librt)] (CDISABLE): Likewise.
30345 [IS_IN (librt)] (CDISABLE): Likewise.
30346 (SINGLE_THREAD_P): Likewise.
30347 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30348 definition.
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/nios2/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/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30368 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30369 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30370 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30371 definition.
30372 (PSEUDO_END): Likewise.
30373 [IS_IN (libpthread)] (CENABLE): Likewise.
30374 [IS_IN (libpthread)] (CDISABLE): Likewise.
30375 [IS_IN (libc)] (CENABLE): Likewise.
30376 [IS_IN (libc)] (CENABLE): Likewise.
30377 [IS_IN (librt)] (CDISABLE): Likewise.
30378 [IS_IN (librt)] (CDISABLE): Likewise.
30379 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30380 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30381 definition.
30382 (PSEUDO_END): Likewise.
30383 [IS_IN (libpthread)] (CENABLE): Likewise.
30384 [IS_IN (libpthread)] (CDISABLE): Likewise.
30385 [IS_IN (libc)] (CENABLE): Likewise.
30386 [IS_IN (libc)] (CENABLE): Likewise.
30387 [IS_IN (librt)] (CDISABLE): Likewise.
30388 [IS_IN (librt)] (CDISABLE): Likewise.
30389 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30390 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30391 definition.
30392 (PSEUDO_END): Likewise.
30393 [IS_IN (libpthread)] (CENABLE): Likewise.
30394 [IS_IN (libpthread)] (CDISABLE): Likewise.
30395 [IS_IN (libc)] (CENABLE): Likewise.
30396 [IS_IN (libc)] (CENABLE): Likewise.
30397 [IS_IN (librt)] (CDISABLE): Likewise.
30398 [IS_IN (librt)] (CDISABLE): Likewise.
30399 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30400 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30401 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30402 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30403 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30404 definition.
30405 (PSEUDO_END): Likewise.
30406 [IS_IN (libpthread)] (CENABLE): Likewise.
30407 [IS_IN (libpthread)] (CDISABLE): Likewise.
30408 [IS_IN (libc)] (CENABLE): Likewise.
30409 [IS_IN (libc)] (CENABLE): Likewise.
30410 [IS_IN (librt)] (CDISABLE): Likewise.
30411 [IS_IN (librt)] (CDISABLE): Likewise.
30412 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30413 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30414 definition.
30415 (PSEUDO_END): Likewise.
30416 [IS_IN (libpthread)] (CENABLE): Likewise.
30417 [IS_IN (libpthread)] (CDISABLE): Likewise.
30418 [IS_IN (libc)] (CENABLE): Likewise.
30419 [IS_IN (libc)] (CENABLE): Likewise.
30420 [IS_IN (librt)] (CDISABLE): Likewise.
30421 [IS_IN (librt)] (CDISABLE): Likewise.
30422 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30423
30424 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30425
30426 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30427
30428 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30429
30430 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30431
30432 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30433
30434 [BZ #21982]
30435 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30436 middle and outer with size_t instead of int. Repleace %d and
30437 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30438 "MAX (outer, nchars - 64)" to support unsigned outer and
30439 nchars. Also exit loop when outer == 0.
30440
30441 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30442
30443 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30444 * include/signal.h (__sigsuspend_nocancel): Likewise.
30445 * include/time.h (__nanosleep_nocancel): Likewise.
30446 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30447 * login/utmp_file.c: Include non cancellable syscall header.
30448 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30449 prototype.
30450
30451 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30452
30453 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30454 .byte sequences with AVX512F instructions.
30455 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30456 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30457 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30458 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30459 Likewise.
30460 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30461 Likewise.
30462
30463 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30464 Steve Ellcey <sellcey@cavium.com>
30465
30466 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30467 Use PTR_REG macro in cmp instruction.
30468
30469 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30470
30471 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30472 Change the return type of the ifunc resolver to match the return
30473 type of the target function.
30474
30475 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30476
30477 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30478 (preadv64): Likewise.
30479 (pwrite64(: Likewise.
30480 (pwritev64): Likewise.
30481
30482 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30483 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30484 (LOAD_ARGS_0): Likewise.
30485 (LOAD_ARGS_1): Likewise.
30486 (LOAD_ARGS_2): Likewise.
30487 (LOAD_ARGS_3): Likewise.
30488 (LOAD_ARGS_4): Likewise.
30489 (LOAD_ARGS_5): Likewise.
30490 (LOAD_ARGS_6): Likewise.
30491 (LOAD_REGS_0): Likewise.
30492 (LOAD_REGS_1): Likewise.
30493 (LOAD_REGS_2): Likewise.
30494 (LOAD_REGS_3): Likewise.
30495 (LOAD_REGS_4): Likewise.
30496 (LOAD_REGS_5): Likewise.
30497 (LOAD_REGS_6): Likewise.
30498 (ASM_ARGS_0): Likewise.
30499 (ASM_ARGS_1): Likewise.
30500 (ASM_ARGS_2): Likewise.
30501 (ASM_ARGS_3): Likewise.
30502 (ASM_ARGS_4): Likewise.
30503 (ASM_ARGS_5): Likewise.
30504 (ASM_ARGS_6): Likewise.
30505 (LOAD_ARGS_TYPES_1): Likewise.
30506 (LOAD_ARGS_TYPES_2): Likewise.
30507 (LOAD_ARGS_TYPES_3): Likewise.
30508 (LOAD_ARGS_TYPES_4): Likewise.
30509 (LOAD_ARGS_TYPES_5): Likewise.
30510 (LOAD_ARGS_TYPES_6): Likewise.
30511 (LOAD_REGS_TYPES_1): Likewise.
30512 (LOAD_REGS_TYPES_2): Likewise.
30513 (LOAD_REGS_TYPES_3): Likewise.
30514 (LOAD_REGS_TYPES_4): Likewise.
30515 (LOAD_REGS_TYPES_5): Likewise.
30516 (LOAD_REGS_TYPES_6): Likewise.
30517 (TYPEFY): New define.
30518 (ARGIFY): Likewise.
30519 (internal_syscall0): Likewise.
30520 (internal_syscall1): Likewise.
30521 (internal_syscall2): Likewise.
30522 (internal_syscall3): Likewise.
30523 (internal_syscall4): Likewise.
30524 (internal_syscall5): Likewise.
30525 (internal_syscall6): Likewise.
30526 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30527 (INTERNAL_SYSCALL_NCS): Remove define.
30528 (internal_syscall1): Add define.
30529
30530 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30531
30532 * math/w_remainder_compat.c: Remove duplicate inclusion of
30533 math-svid-compat.h.
30534 * math/w_remainderf_compat.c: Likewise.
30535 * math/w_remainderl_compat.c: Likewise.
30536
30537 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30538
30539 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30540
30541 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30542
30543 [BZ #21684]
30544 * math/tgmath.h (__floating_type): Simplify definitions.
30545 (__real_integer_type): New macro.
30546 (__complex_integer_type): Likewise.
30547 (__expr_is_real): Likewise.
30548 (__tgmath_real_type_sub): Update comment to describe handling of
30549 complex types.
30550 (__tgmath_complex_type_sub): New macro.
30551 (__tgmath_complex_type): Likewise.
30552 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30553 (__TGMATH_CF128): Use __expr_is_real.
30554 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30555 __expr_is_real.
30556 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30557 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30558 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30559 integer types.
30560
30561 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30562
30563 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30564 macro.
30565 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30566 alias.
30567 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30568 Likewise.
30569
30570 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30571 nanosleep_not_cancel with __nanosleep_nocancel.
30572 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30573 (__nanosleep_nocancel): New macro.
30574 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30575 function.
30576 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30577 macro.
30578 (__nanosleep_nocancel): New prototype.
30579
30580 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30581 pause_not_cancel with __pause_nocancel.
30582 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30583 (__pause_nocancel): New macro.
30584 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30585 macro.
30586 (__pause_nocancel): New prototype.
30587 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30588
30589 2017-08-22 Martin Sebor <msebor@redhat.com>
30590
30591 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30592 to return a pointer to the same type as the target function.
30593
30594 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30595
30596 [BZ #18822]
30597 [BZ #21986]
30598 * include/printf.h (__printf_fphex): Add attribute_hidden.
30599 (__guess_grouping): New prototype.
30600 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30601 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30602 libc_hidden_proto and libc_hidden_def.
30603 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30604 (__vstrfmon_l): Remove the third argument passed to
30605 __guess_grouping.
30606
30607 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30608
30609 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30610 definition for issignaling that does not rely on __MATH_TG,
30611 since __MATH_TG uses __builtin_types_compatible_p, which is only
30612 available in C mode.
30613 (CFLAGS-test-math-issignaling.cc): New variable.
30614 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30615 * math/test-math-issignaling.cc: New test for C++ implementation
30616 of type-generic issignaling.
30617 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30618 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30619 options of test-math-issignaling on powerpc64le.
30620
30621 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30622
30623 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30624 building libc.a.
30625 (hidden_proto): Likewise.
30626 (hidden_tls_proto): Likewise.
30627 (__hidden_proto): Likewise.
30628
30629 2017-08-22 Florian Weimer <fweimer@redhat.com>
30630
30631 math: Statically link tests of internal functionality.
30632 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30633 atest-exp2.
30634 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30635 (gmp-objs): Remove assignment.
30636 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30637
30638 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30639
30640 [BZ #21987]
30641 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30642 and copy to ...
30643 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30644 ... here.
30645 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30646 ... and here.
30647
30648 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30649 variable definitions above inclusion of ../Rules.
30650
30651 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30652
30653 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30654 case calling __builtin_unreachable.
30655
30656 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30657
30658 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30659 __waitpid_nocancel.
30660 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30661 (__waitpid_nocancel): New macro.
30662 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30663 macro.
30664 (__waitpid_nocancel): Replace macro with a function.
30665 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30666 function.
30667
30668 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30669 __fcntl_nocancel.
30670 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30671 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30672
30673 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30674 __writev_nocancel_nostatus.
30675 (write_call_graph): Likewise.
30676 (write_bb_counts): Likewise.
30677 * resolv/herror.c (herror): Likewise.
30678 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30679 macro.
30680 (__writev_nocancel_nostatus): New macro.
30681 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30682 Remove macro.
30683 (__writev_nocancel_nostatus): New function.
30684
30685 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30686
30687 Revert:
30688 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30689
30690 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30691 building libc.a.
30692 (hidden_proto): Likewise.
30693 (hidden_tls_proto): Likewise.
30694 (__hidden_proto): Likewise.
30695
30696 [BZ #21973]
30697 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30698 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30699 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30700 Likewise.
30701 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30702 Likewise.
30703 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30704 Likewise.
30705 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30706 Likewise.
30707 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30708 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30709 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30710 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30711 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30712 GLIBC_2.0 sqrtl symbol.
30713
30714 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30715 [__USE_MISC] (_LIB_VERSION): Likewise.
30716 [__USE_MISC] (struct exception): Likewise.
30717 [__USE_MISC] (matherr): Likewise.
30718 [__USE_MISC] (DOMAIN): Likewise.
30719 [__USE_MISC] (SING): Likewise.
30720 [__USE_MISC] (OVERFLOW): Likewise.
30721 [__USE_MISC] (UNDERFLOW): Likewise.
30722 [__USE_MISC] (TLOSS): Likewise.
30723 [__USE_MISC] (PLOSS): Likewise.
30724 [__USE_MISC] (HUGE): Likewise.
30725 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30726 * math/math-svid-compat.h: New file.
30727 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30728 and matherrl.
30729 * include/math.h [!_ISOMAC] (__matherr): Remove.
30730 * manual/arith.texi (FP Exceptions): Do not document matherr.
30731 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30732 (tests-internal): New variable.
30733 (install-lib): Do not add libieee.a.
30734 (non-lib.a): Likewise.
30735 (extra-objs): Do not add libieee.a and ieee-math.o.
30736 (CPPFLAGS-s_lib_version.c): Remove variable.
30737 ($(objpfx)libieee.a): Remove rule.
30738 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30739 * math/ieee-math.c: Remove.
30740 * math/libm-test-support.c (matherr): Remove.
30741 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30742 and license notices. Include <math-svid-compat.h> and
30743 <shlib-compat.h>.
30744 (matherr): Undefine as macro. Use compat_symbol_reference.
30745 (_LIB_VERSION): Likewise.
30746 * math/test-matherr-2.c: New file.
30747 * math/test-matherr-3.c: Likewise.
30748 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30749 declaration.
30750 (__kernel_standard_f): Likewise.
30751 (__kernel_standard_l): Likewise.
30752 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30753 <math_private.h>. Include <math-svid-compat.h>.
30754 (_LIB_VERSION): Undefine as macro.
30755 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30756 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30757 [LIBM_SVID_COMPAT], use compat_symbol.
30758 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30759 <math_private.h>. Include <math-svid-compat.h>.
30760 (matherr): Undefine as macro.
30761 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30762 compat_symbol.
30763 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30764 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30765 compat_symbol_reference.
30766 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30767 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30768 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30769 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30770 (MATHERR_D): Remove declaration.
30771 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30772 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30773 [LIBM_BUILD] (pmatherrf): Likewise.
30774 [LIBM_BUILD] (pmatherr): Likewise.
30775 [LIBM_BUILD] (pmatherrl): Likewise.
30776 (DOMAIN): Likewise.
30777 (SING): Likewise.
30778 (OVERFLOW): Likewise.
30779 (UNDERFLOW): Likewise.
30780 (TLOSS): Likewise.
30781 (PLOSS): Likewise.
30782 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30783 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30784 compat_symbol.
30785 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30786 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30787 compat_symbol.
30788 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30789 * math/w_acos_compat.c: Likewise.
30790 * math/w_acosf_compat.c: Likewise.
30791 * math/w_acosh_compat.c: Likewise.
30792 * math/w_acoshf_compat.c: Likewise.
30793 * math/w_acoshl_compat.c: Likewise.
30794 * math/w_acosl_compat.c: Likewise.
30795 * math/w_asin_compat.c: Likewise.
30796 * math/w_asinf_compat.c: Likewise.
30797 * math/w_asinl_compat.c: Likewise.
30798 * math/w_atan2_compat.c: Likewise.
30799 * math/w_atan2f_compat.c: Likewise.
30800 * math/w_atan2l_compat.c: Likewise.
30801 * math/w_atanh_compat.c: Likewise.
30802 * math/w_atanhf_compat.c: Likewise.
30803 * math/w_atanhl_compat.c: Likewise.
30804 * math/w_cosh_compat.c: Likewise.
30805 * math/w_coshf_compat.c: Likewise.
30806 * math/w_coshl_compat.c: Likewise.
30807 * math/w_exp10_compat.c: Likewise.
30808 * math/w_exp10f_compat.c: Likewise.
30809 * math/w_exp10l_compat.c: Likewise.
30810 * math/w_exp2_compat.c: Likewise.
30811 * math/w_exp2f_compat.c: Likewise.
30812 * math/w_exp2l_compat.c: Likewise.
30813 * math/w_fmod_compat.c: Likewise.
30814 * math/w_fmodf_compat.c: Likewise.
30815 * math/w_fmodl_compat.c: Likewise.
30816 * math/w_hypot_compat.c: Likewise.
30817 * math/w_hypotf_compat.c: Likewise.
30818 * math/w_hypotl_compat.c: Likewise.
30819 * math/w_j0_compat.c: Likewise.
30820 * math/w_j0f_compat.c: Likewise.
30821 * math/w_j0l_compat.c: Likewise.
30822 * math/w_j1_compat.c: Likewise.
30823 * math/w_j1f_compat.c: Likewise.
30824 * math/w_j1l_compat.c: Likewise.
30825 * math/w_jn_compat.c: Likewise.
30826 * math/w_jnf_compat.c: Likewise.
30827 * math/w_jnl_compat.c: Likewise.
30828 * math/w_lgamma_main.c: Likewise.
30829 * math/w_lgamma_r_compat.c: Likewise.
30830 * math/w_lgammaf_main.c: Likewise.
30831 * math/w_lgammaf_r_compat.c: Likewise.
30832 * math/w_lgammal_main.c: Likewise.
30833 * math/w_lgammal_r_compat.c: Likewise.
30834 * math/w_log10_compat.c: Likewise.
30835 * math/w_log10f_compat.c: Likewise.
30836 * math/w_log10l_compat.c: Likewise.
30837 * math/w_log2_compat.c: Likewise.
30838 * math/w_log2f_compat.c: Likewise.
30839 * math/w_log2l_compat.c: Likewise.
30840 * math/w_log_compat.c: Likewise.
30841 * math/w_logf_compat.c: Likewise.
30842 * math/w_logl_compat.c: Likewise.
30843 * math/w_pow_compat.c: Likewise.
30844 * math/w_powf_compat.c: Likewise.
30845 * math/w_powl_compat.c: Likewise.
30846 * math/w_remainder_compat.c: Likewise.
30847 * math/w_remainderf_compat.c: Likewise.
30848 * math/w_remainderl_compat.c: Likewise.
30849 * math/w_scalb_compat.c: Likewise.
30850 * math/w_scalbf_compat.c: Likewise.
30851 * math/w_scalbl_compat.c: Likewise.
30852 * math/w_sinh_compat.c: Likewise.
30853 * math/w_sinhf_compat.c: Likewise.
30854 * math/w_sinhl_compat.c: Likewise.
30855 * math/w_sqrt_compat.c: Likewise.
30856 * math/w_sqrtf_compat.c: Likewise.
30857 * math/w_sqrtl_compat.c: Likewise.
30858 * math/w_tgamma_compat.c: Likewise.
30859 * math/w_tgammaf_compat.c: Likewise.
30860 * math/w_tgammal_compat.c: Likewise.
30861 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30862 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30863 * sysdeps/ieee754/k_standard.c: Likewise.
30864 * sysdeps/ieee754/k_standardf.c: Likewise.
30865 * sysdeps/ieee754/k_standardl.c: Likewise.
30866 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30867 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30868 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30869 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30870 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30871 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30872 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30873 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30874 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30875 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30876 Likewise.
30877 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30878 Likewise.
30879 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30880 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30881 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30882 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30883
30884 2017-08-21 Florian Weimer <fweimer@redhat.com>
30885
30886 [BZ #21864]
30887 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30888 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30889 Move before inclusion of ../Rules.
30890
30891 2017-08-21 Florian Weimer <fweimer@redhat.com>
30892
30893 [BZ #21972]
30894 * assert/assert.h (assert): Use static_cast (bool) for C++.
30895 Use the ternary operator in the warning branch for GNU C.
30896 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30897 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30898 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30899 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30900 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30901
30902 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30903
30904 [BZ #18822]
30905 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30906 (__syscall_clock_gettime): Add attribute_hidden.
30907 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30908 (__start_context): Likewise.
30909
30910 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30911
30912 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30913 building libc.a.
30914 (hidden_proto): Likewise.
30915 (hidden_tls_proto): Likewise.
30916 (__hidden_proto): Likewise.
30917
30918 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30919
30920 * include/libc-symbols.h (attribute_hidden): Enable hidden
30921 visibility in libc.a compiled with PIE.
30922
30923 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30924
30925 [BZ #18822]
30926 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30927 Add attribute_hidden.
30928
30929 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30930
30931 [BZ #21864]
30932 * Makerules (all-nonlib): Add $(others-extras).
30933 * catgets/Makefile (others-extras): New.
30934 * elf/Makefile (others-extras): Likewise.
30935 * nss/Makefile (others-extras): Likewise.
30936
30937 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30938
30939 [BZ #18822]
30940 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30941 * elf/dl-open.c: Include <libc-internal.h>.
30942 (__libc_multiple_libcs): Removed.
30943 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30944 <hp-timing.h>.
30945 * include/libc-internal.h (__libc_multiple_libcs): New.
30946 * misc/sbrk.c: Include <libc-internal.h>.
30947 (__libc_multiple_libcs): Removed.
30948
30949 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30950
30951 [BZ #18822]
30952 * grp/initgroups.c (__nss_group_database): Removed.
30953 (__nss_initgroups_database): Likewise.
30954 * nscd/gai.c (__nss_hosts_database): Likewise.
30955 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30956 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30957 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30958 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30959 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30960 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30961 attribute_hidden.
30962 * nss/nsswitch.c (__nss_database_custom): Define only if
30963 USE_NSCD is defined.
30964 (__nss_configure_lookup): Use __nss_database_custom only if
30965 USE_NSCD is defined.
30966 * nss/nsswitch.h (__nss_database_custom): Declare only if
30967 USE_NSCD is defined. Add attribute_hidden.
30968 (__nss_setent): Add attribute_hidden.
30969 (__nss_endent): Likewise.
30970 (__nss_getent_r): Likewise.
30971 (__nss_getent): Likewise.
30972 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30973
30974 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30975
30976 [BZ #18822]
30977 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30978 libc_hidden_proto and libc_hidden_def.
30979
30980 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30981
30982 [BZ #18822]
30983 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30984 Add libc_hidden_proto.
30985 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30986 Add libc_hidden_def.
30987
30988 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30989
30990 [BZ #21974]
30991 * gmon/Makefile (routines): Remove bb_init_func and
30992 bb_exit_func.
30993 (elide-routines.os): Removed.
30994 * gmon/bb_exit_func.c: Likewise.
30995 * gmon/bb_init_func.c: Likewise.
30996 * include/sys/gmon.h (__bb): Likewise.
30997 (__bb_init_func): Likewise.
30998 (__bb_exit_func): Likewise.
30999 * sysdeps/alpha/bb_init_func.S: Likewise.
31000
31001 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
31002
31003 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
31004 * include/setjmp.h (____longjmp_chk): Here. Add
31005 attribute_hidden.
31006
31007 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
31008
31009 [BZ #18822]
31010 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
31011 attribute_hidden.
31012 (__strspn_sse2): Likewise.
31013
31014 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31015
31016 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
31017 (close_not_cancel_no_status): Likewise.
31018 (__close_nocancel): New macro.
31019 (__close_nocancel_nostatus): Likewise.
31020 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
31021 macro.
31022 (close_not_cancel): Likewise.
31023 (close_not_cancel_no_status): Likewise.
31024 (__close_nocancel): New prototype.
31025 (__close_nocancel_nostatus): New function.
31026 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
31027 * catgets/open_catalog.c (__open_catalog): Replace
31028 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
31029 * gmon/gmon.c (write_gmon): Likewise.
31030 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
31031 * intl/loadmsgcat.c (close): Likewise.
31032 * io/ftw.c (open_dir_stream): Likewise.
31033 (ftw_startup): Likewise.
31034 * libio/fileops.c (_IO_file_open): Likewise.
31035 (_IO_file_close_mmap): Likewise.
31036 (_IO_file_close): Likewise.
31037 * libio/iopopen.c (_IO_dup2): Likewise.
31038 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31039 * locale/loadlocale.c (_nl_load_locale): Likewise.
31040 * login/utmp_file.c (pututline_file): Likewise.
31041 (endutent_file): Likewise.
31042 * misc/daemon.c (daemon): Likewise.
31043 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31044 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31045 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31046 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31047 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31048 * nscd/nscd_helper.c (open_socket): Likewise.
31049 (__nscd_open_socket): Likewise.
31050 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31051 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31052 (__nscd_innetgr): Likewise.
31053 * nss/nss_db/db-open.c (internal_setent): Likewise.
31054 * resolv/res-close.c (__res_iclose): Likewise.
31055 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31056 * sysdeps/posix/closedir.c (__closedir): Likewise.
31057 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31058 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31059 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31060 (opendir_tail): Likewise.
31061 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31062 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31063 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31064 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31065 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31066 (gethostid): Likewise.
31067 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31068 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31069 Likewise.
31070 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31071 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31072 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31073 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31074 Likewise.
31075 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31076 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31077 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31078 Likewise.
31079 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31080 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31081 Likewise.
31082 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31083 Likewise.
31084 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31085 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31086 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31087 __close_nocancel.
31088
31089 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31090 (openat_not_cancel_3): Likewise.
31091 (openat64_not_cancel_3): Likewise).
31092 (openat_not_cancel_3): Likewise).
31093 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31094 macro.
31095 (openat_not_cancel_3): Likewise.
31096 (openat64_not_cancel): Likewise.
31097 (openat64_not_cancel_3): Likewise.
31098 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31099 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31100 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31101 __open{64}_nocancel.
31102 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31103 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31104 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31105
31106 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31107
31108 [BZ #18822]
31109 * include/argz.h (__argz_create_sep): New function prototype.
31110 (__argz_append): Likewise.
31111 (__argz_add): Likewise.
31112 (__argz_add_sep): Likewise.
31113 (__argz_delete): Likewise.
31114 (__argz_insert): Likewise.
31115 (__argz_replace): Likewise.
31116 * string/argz.h (__argz_create_sep): Removed.
31117 (__argz_append): Likewise.
31118 (__argz_add): Likewise.
31119 (__argz_add_sep): Likewise.
31120 (__argz_delete): Likewise.
31121 (__argz_insert): Likewise.
31122 (__argz_replace): Likewise.
31123
31124 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31125
31126 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31127 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31128 (GNU_PROPERTY_STACK_SIZE): Likewie.
31129 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31130 (GNU_PROPERTY_LOPROC): Likewise.
31131 (GNU_PROPERTY_HIPROC): Likewise.
31132 (GNU_PROPERTY_LOUSER): Likewise.
31133 (GNU_PROPERTY_HIUSER): Likewise.
31134 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31135 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31136 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31137 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31138 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31139 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31140 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31141 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31142 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31143 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31144 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31145 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31146 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31147 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31148 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31149 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31150 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31151 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31152 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31153 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31154 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31155 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31156 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31157
31158 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31159
31160 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31161 in C++ mode.
31162
31163 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31164
31165 [BZ #21930]
31166 * math/math.h (isinf): Check if in C or C++ mode before using
31167 __builtin_types_compatible_p, since this is a C mode feature.
31168
31169 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31170
31171 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31172 (__write_nocancel): New macro.
31173 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31174 Rewrite as a function prototype.
31175 (write_not_cancel): Remove macro.
31176 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31177 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31178 (write_gmon): Likewise.
31179 * libio/fileops.c (_IO_new_file_write): Likewise.
31180 * login/utmp_file.c (pututline_file): Likewise.
31181 (updwtmp_file): Likewise.
31182 * stdio-common/psiginfo.c (psiginfo): Likewise.
31183 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31184 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31185 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31186 Likewise.
31187 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31188 Likewise.
31189
31190 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31191 (__read_nocancel): New macro.
31192 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31193 __read_nocancel.
31194 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31195 macro.
31196 (__read_nocancel): New prototype.
31197 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31198 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31199 with __read_nocancel.
31200 * intl/loadmsgcat.c (read): Likewise.
31201 * libio/fileops.c (_IO_file_read): Likewise.
31202 * locale/loadlocale.c (_nl_load_locale): Likewise.
31203 * login/utmp_file.c (getutent_r_file): Likewise.
31204 (internal_getut_r): Likewise.
31205 (getutline_r_file): Likewise.
31206 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31207 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31208 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31209 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31210 Likewise.
31211 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31212 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31213 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31214 Likewise.
31215 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31216 Likewise.
31217 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31218 Likewise.
31219 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31220 Likewise.
31221 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31222
31223 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31224
31225 [BZ #21966]
31226 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31227 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31228 usable.
31229
31230 2017-08-17 DJ Delorie <dj@redhat.com>
31231
31232 * bug17079.c: Update to new test harness.
31233 * test-digits-dots.c: Likewise.
31234 * test-netdb.c: Likewise.
31235 * tst-field.c: Likewise.
31236 * tst-nss-getpwent.c: Likewise.
31237 * tst-nss-static.c: Likewise.
31238 * tst-nss-test1.c: Likewise.
31239 * tst-nss-test2.c: Likewise.
31240 * tst-nss-test3.c: Likewise.
31241 * tst-nss-test4.c: Likewise.
31242 * tst-nss-test5.c: Likewise.
31243
31244 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31245
31246 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31247 (open_not_cancel_2): Likewise.
31248 (open_nocancel): New macro.
31249 (open64_nocancel): Likewise.
31250 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31251 (open_not_cancel_2): Likewise.
31252 (__open_nocancel): New prototype.
31253 (__open64_nocancel): Likewise.
31254 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31255 __open_nocancel.
31256 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31257 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31258 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31259 with __open_nocancel.
31260 * csu/check_fds.c (check_one_fd): Likewise.
31261 * gmon/gmon.c (write_gmon): Likewise.
31262 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31263 * intl/loadmsgcat.c (open): Likewise.
31264 * libio/fileops.c (_IO_file_open): Likewise.
31265 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31266 * locale/loadlocale.c (_nl_load_locale): Likewise.
31267 * login/utmp_file.c (setutent_file): Likewise.
31268 * misc/daemon.c (daemon): Likewise.
31269 * nss/nss_db/db-open.c (internal_setent): Likewise.
31270 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31271 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31272 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31273 (__opendir): Likewise.
31274 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31275 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31276 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31277 (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 (__get_nprocs): Likewise.
31282 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31283 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31284 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31285 Likewise.
31286 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31287 Likewise.
31288 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31289 Likewise.
31290 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31291 Likewise.
31292 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31293 Likewise.
31294 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31295 Likewise.
31296 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31297 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31298
31299 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31300
31301 * benchtests/bench-skeleton.c (main): Add support for
31302 latency benchmarking.
31303 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31304
31305 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31306
31307 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31308 the startup object.
31309
31310 2017-08-17 Florian Weimer <fweimer@redhat.com>
31311
31312 * include/sys/socket.h (__opensock): Remove internal_function.
31313 * socket/opensock.c (__opensock): Likewise.
31314 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31315
31316 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31317
31318 [BZ #21944]
31319 * signal/bits/types/__sigval_t.h: New file.
31320 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31321 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31322 and define sigval_t using __sigval_t.
31323 * include/bits/types/__sigval_t.h: New file.
31324 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31325 instead of <bits/types/__sigval_t.h>.
31326 (struct sigevent): Use __sigval_t instead of sigval_t.
31327 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31328 instead of <bits/types/__sigval_t.h>.
31329 (siginfo_t): Use __sigval_t instead of sigval_t.
31330 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31331 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31332 (struct sigevent): Use __sigval_t instead of sigval_t.
31333 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31334 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31335 (siginfo_t): Use __sigval_t instead of sigval_t.
31336 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31337
31338 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31339
31340 * NEWS: Remove "[Add new features here]" for 2.27.
31341
31342 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31343
31344 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31345 libc.so.
31346
31347 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31348
31349 * NEWS: Mention x86-64 FMA optimization.
31350
31351 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31352
31353 [BZ #21912]
31354 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31355 Add e_expf-fma.
31356 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31357 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31358 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31359
31360 2017-08-16 Andreas Schwab <schwab@suse.de>
31361
31362 [BZ #16750]
31363 CVE-2009-5064
31364 * elf/ldd.bash.in: Never run file directly.
31365
31366 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31367
31368 [BZ #21955]
31369 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31370 (L(SP_INF_0)): Likewise.
31371
31372 2017-08-15 Florian Weimer <fweimer@redhat.com>
31373
31374 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31375 run-built-tests.
31376
31377 2017-08-15 Florian Weimer <fweimer@redhat.com>
31378
31379 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31380 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31381 BROKEN_THREAD_SIGNALS code.
31382 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31383 request_list): Remove caller_pid member used for
31384 BROKEN_THREAD_SIGNALS.
31385 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31386 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31387 Remove BROKEN_THREAD_SIGNALS support.
31388 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31389 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31390
31391 2017-08-15 Florian Weimer <fweimer@redhat.com>
31392
31393 * gmon/Makefile (tests): Add tst-gmon.
31394 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31395 Set.
31396 (tests-special): Add tst-gmon-prof.out.
31397 (tst-gmon.out): Depend on clean-tst-gmon-data.
31398 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31399 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31400 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31401 startup object.
31402 * aclocal.m4 (GPROF): Set and substitute.
31403 * config.amke.in (GPROF): Set.
31404 * configure: Regenerate.
31405
31406 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31407
31408 * elf/elf.h A (NT_PPC_TAR): New macro.
31409 (NT_PPC_PPR): Likewise.
31410 (NT_PPC_DSCR): Likewise.
31411 (NT_PPC_EBB): Likewise.
31412 (NT_PPC_PMU): Likewise.
31413 (NT_PPC_TM_CGPR): Likewise.
31414 (NT_PPC_TM_CFPR): Likewise.
31415 (NT_PPC_TM_CVMX): Likewise.
31416 (NT_PPC_TM_CVSX): Likewise.
31417 (NT_PPC_TM_SPR): Likewise.
31418 (NT_PPC_TM_CTAR): Likewise.
31419 (NT_PPC_TM_CPPR): Likewise.
31420 (NT_PPC_TM_CDSCR): Likewise.
31421
31422 2017-08-15 Florian Weimer <fweimer@redhat.com>
31423
31424 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31425 regparm (2) instead of internal_function.
31426 (_MCOUNT_DECL): Adjust.
31427
31428 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31429
31430 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31431 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31432
31433 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31434
31435 * conform/data/sys/wait.h-data (si_value): Do not expect for
31436 XPG42.
31437
31438 2017-08-14 Florian Weimer <fweimer@redhat.com>
31439
31440 [BZ #21962]
31441 NSS: Create stubs for accidentally exported lookup functions.
31442 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31443 Remove declaration.
31444 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31445 (ether_hostton): Call __nss_ethers_lookup2 instead.
31446 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31447 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31448 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31449 (setup): Call __nss_netgroup_lookup2 instead.
31450 * nss/Makefile (routines): Add compat-lookup.
31451 * nss/Versions (GLIBC_2.27): Add symbol version.
31452 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31453 (DB_COMPAT_FCT): Remove.
31454 * nss/compat-lookup.c: New file.
31455 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31456 from databases.def.
31457 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31458 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31459 (netname2user): Call __nss_publickey_lookup2 instead.
31460 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31461 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31462 instead.
31463
31464 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31465 Sergei Trofimovich <slyfox@inbox.ru>
31466
31467 [BZ #21908]
31468 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31469 Rename to MMAP2_PAGE_UNIT.
31470 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31471 __OFF_T_MATCHES_OFF64_T is not defined.
31472 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31473 uint64_t.
31474 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31475 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31476
31477 2017-08-14 Florian Weimer <fweimer@redhat.com>
31478
31479 i386: Do not set internal_function.
31480 * config.h.in (USE_REGPARMS, internal_function): Remove.
31481 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31482 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31483
31484 2017-08-14 Florian Weimer <fweimer@redhat.com>
31485
31486 * elf/dl-init.c (_dl_init): Remove internal_function.
31487 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31488 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31489
31490 2017-08-14 Florian Weimer <fweimer@redhat.com>
31491
31492 * elf/rtld.c (_dl_start): Remove internal_function.
31493 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31494 _dl_start.
31495
31496 2017-08-14 Florian Weimer <fweimer@redhat.com>
31497
31498 * elf/dl-fini.c (_dl_fini): Remove internal_function
31499 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31500
31501 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31502
31503 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31504 (bit_cpu_SHSTK): Likewise.
31505 (index_cpu_IBT): Likewise.
31506 (index_cpu_SHSTK): Likewise.
31507 (reg_IBT): Likewise.
31508 (reg_SHSTK): Likewise.
31509 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31510 Handle index_cpu_IBT and index_cpu_SHSTK.
31511
31512 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31513
31514 [BZ #19982]
31515 * po/fr.po: Fix spelling mistake.
31516
31517 2017-08-13 Florian Weimer <fweimer@redhat.com>
31518
31519 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31520 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31521 (_dl_catch_error, _dl_receive_error): Likewise.
31522 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31523 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31524 (_dl_deallocate_tls): Likewise.
31525 * include/dlfcn.h (_dl_addr): Likewise.
31526 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31527 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31528 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31529 Likewise.
31530
31531 2017-08-13 Florian Weimer <fweimer@redhat.com>
31532
31533 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31534 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31535 internal_function.
31536 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31537
31538 2017-08-13 Florian Weimer <fweimer@redhat.com>
31539
31540 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31541 internal_function.
31542 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31543 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31544 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31545 internal_function from _dl_make_stack_executable_hook member.
31546 (_dl_make_stack_executable): Remove internal_function.
31547 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31548 Likewise.
31549 * sysdeps/unix/sysv/linux/dl-execstack.c
31550 (_dl_make_stack_executable): Likewise.
31551
31552 2017-08-13 Florian Weimer <fweimer@redhat.com>
31553
31554 * sysdeps/unix/sysv/linux/netlinkaccess.h
31555 (__netlink_assert_response): Remove internal_function.
31556 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31557 (__netlink_assert_response): Likewise.
31558
31559 2017-08-13 Florian Weimer <fweimer@redhat.com>
31560
31561 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31562 internal_function.
31563 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31564
31565 2017-08-13 Florian Weimer <fweimer@redhat.com>
31566
31567 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31568 internal_function.
31569 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31570 * inet/netgroup.h (__internal_setnetgrent)
31571 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31572 * inet/getnetgrent_r.c (__internal_setnetgrent)
31573 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31574 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31575 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31576 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31577 * nss/nsswitch.h (db_lookup_function): Likewise.
31578
31579 2017-08-13 Florian Weimer <fweimer@redhat.com>
31580
31581 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31582 Remove internal_function.
31583 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31584 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31585 message argument on the stack.
31586 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31587 Likeweise.
31588
31589 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31590
31591 Adapt test case data to the changes in the thousands
31592 separators.
31593
31594 [BZ #20756]
31595 * localedata/tst-langinfo.sh: Adapt test case data.
31596 * stdlib/tst-strfmon_l.c: Likewise.
31597 * stdlib/tst-strtod4.c: Likewise.
31598 * stdlib/tst-strtod5i.c: Likewise.
31599
31600 2017-08-11 Florian Weimer <fweimer@redhat.com>
31601
31602 [BZ #21242]
31603 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31604 Suppress pedantic warning resulting from statement expression.
31605 (__ASSERT_FUNCTION): Add missing __extension__.
31606
31607 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31608
31609 * benchtests/bench-memmove-large.c: Print output in JSON
31610 format.
31611 * benchtests/bench-memmove.c: Likewise.
31612
31613 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31614 * benchtests/bench-memchr.c (do_one_test): Likewise.
31615 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31616 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31617 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31618 * benchtests/bench-memmove.c (do_one_test): Likewise.
31619 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31620 * benchtests/bench-memset.c (do_one_test): Likewise.
31621 * benchtests/bench-string.h (test_init): Remove memsets.
31622
31623 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31624
31625 * manual/lang.texi
31626 (Computing the Width of an Integer Data Type): Rename section to
31627 "Width of an Integer Type". Remove inaccurate statement regarding
31628 lack of C language facilities for determining width of integer
31629 types, and reorder content to improve flow and context of
31630 discussion.
31631
31632 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31633
31634 * lang.texi (va_copy): Change standard from ISO to C99.
31635 (__va_copy): Add standard and header annotation.
31636 Update description for clarity of origins and current use.
31637
31638 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31639
31640 [BZ #21941]
31641 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31642 xssqrtqp requires operands to be in Vector Registers
31643 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31644 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31645 (__ieee754_sqrtf128): Likewise.
31646
31647 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31648
31649 * sysdeps/aarch64/memcmp.S (memcmp):
31650 Rewrite of optimized memcmp.
31651
31652 2017-08-10 Florian Weimer <fweimer@redhat.com>
31653
31654 Introduce ld.so exceptions.
31655 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31656 (_dl_exception_create, _dl_exception_create_format)
31657 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31658 (_dl_catch_exception): Declare.
31659 (_dl_catch_error): Update comment.
31660 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31661 errstring, malloced members with exception member.
31662 (_dl_out_of_memory): Remove.
31663 (fatal_error): New function, extracted from _dl_signal_error.
31664 (_dl_signal_exception, _dl_signal_cexception): New functions.
31665 (_dl_signal_error): Call _dl_exception_create to allocate an
31666 exception object.
31667 (_dl_catch_exception): New function, based on _dl_catch_error.
31668 (_dl_catch_error): Implement using _dl_catch_exception.
31669 * elf/dl-exception.c: New file.
31670 * elf/Makefile (dl-routines): Add dl-exception.
31671 (elide-routines.os): Likewise.
31672 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31673 _dl_exception_create_format, _dl_exception_free.
31674 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31675 _dl_signal_exception.
31676 * elf/dl-lookup.c (make_string): Remove.
31677 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31678 _dl_signal_cexception, _dl_exception_free.
31679 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31680 _dl_signal_exception.
31681 * elf/dl-sym.c (do_sym): Likewise.
31682 * elf/dl-version.c (make_string): Remove.
31683 (match_symbol): Use _dl_exception_create_format,
31684 _dl_signal_cexception, _dl_exception_free.
31685 (_dl_check_map_versions): Likewise.
31686 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31687 _dl_catch_exception.
31688 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31689 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31690 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31691 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31692 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31693 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31694 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31695 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31696 Likewise.
31697 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31698 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31699 (ld.so): Likewise.
31700 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31701 (ld.so): Likewise.
31702 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31703 Likewise.
31704 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31705 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31706 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31707 Likewise.
31708 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31709 Likewise.
31710 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31711
31712 2017-08-10 Florian Weimer <fweimer@redhat.com>
31713
31714 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31715 attribute_hidden, internal_function.
31716 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31717 internal_function.
31718
31719 2017-08-10 Florian Weimer <fweimer@redhat.com>
31720
31721 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31722 function which calls __builtin_unreachable.
31723
31724 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31725
31726 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31727 Indian monetary formatting
31728 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31729 test cases.
31730
31731 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31732
31733 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31734 Fix typo in comment.
31735
31736 [BZ #21928]
31737 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31738 PTRACE_SEIZE_DEVEL): Remove.
31739 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31740 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31741 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31742 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31743 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31744
31745 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31746
31747 * posix/bits/types.h (__qaddr_t): Remove.
31748
31749 [BZ #21457]
31750 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31751 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31752 __glibc_reserved1.
31753 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31754 (ucontext_t): Use __ctx with uc_flags.
31755 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31756 (__ctxt): Likewise.
31757 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31758 __glibc_reserved1.
31759 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31760 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31761 __glibc_reserved1.
31762 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31763 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31764 __glibc_reserved1.
31765 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31766 macro.
31767 (ucontext_t): Use __ctx with uc_flags.
31768 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31769 (ucontext_t): Use __ctx with uc_flags.
31770 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31771 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31772 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31773 (ucontext_t): Use __ctx with uc_flags.
31774 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31775 undefine further down.
31776 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31777 __glibc_reserved1.
31778 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31779 undefine further down.
31780 (ucontext_t): Use __ctx with uc_flags.
31781 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31782 undefine further down.
31783 (ucontext_t): Use __ctx with uc_flags.
31784 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31785 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31786 Rename uc_pad to __glibc_reserved1.
31787 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31788 undefine further down.
31789 (ucontext_t): Use __ctx with uc_flags.
31790 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31791 further down.
31792 (ucontext_t): Use __ctx with uc_flags.
31793 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31794 __ctx with uc_flags.
31795 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31796 (ucontext_t): Use __ctx with uc_flags.
31797 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31798 __ctx with uc_flags.
31799
31800 2017-08-09 Florian Weimer <fweimer@redhat.com>
31801
31802 [BZ #21932]
31803 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31804 before early return.
31805
31806 2017-08-09 Andreas Schwab <schwab@suse.de>
31807
31808 [BZ #21041]
31809 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31810 renamed alias.
31811
31812 [BZ #21041]
31813 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31814 tst-compat-forwarder.
31815 (modules-names): Add tst-compat-forwarder-mod.
31816 ($(objpfx)tst-compat-forwarder): Depend on
31817 $(objpfx)tst-compat-forwarder-mod.so.
31818 * nptl/tst-compat-forwarder.c: New file.
31819 * nptl/tst-compat-forwarder-mod.c: New file.
31820
31821 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31822
31823 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31824 comments.
31825
31826 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31827 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31828 memcpy_falkor.
31829 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31830 Bump.
31831 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31832 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31833 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31834 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31835 Add falkor.
31836 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31837 New macro.
31838
31839 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31840
31841 [BZ #759]
31842 * manual/setjmp.texi (getcontex): Document uc_stack value
31843 compatibility differences.
31844
31845 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31846
31847 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31848 (old_malloc_hook): Likewise.
31849 (old_memalign_hook): Likewise.
31850 (old_realloc_hook): Likewise.
31851 (struct hdr): Likewise.
31852 (flood): Likewise.
31853 (freehook): Likewise.
31854 (mallochook): Likewise.
31855 (memalignhook): Likewise.
31856 (reallochook): Likewise.
31857 (mprobe): Likewise.
31858 * malloc/mtrace.c (mallwatch): Likewise.
31859 (tr_old_free_hook): Likewise.
31860 (tr_old_malloc_hook): Likewise.
31861 (tr_old_realloc_hook): Likewise.
31862 (tr_old_memalign_hook): Likewise.
31863 (tr_where): Likewise.
31864 (lock_and_info): Likewise.
31865 (tr_freehook): Likewise.
31866 (tr_mallochook): Likewise.
31867 (tr_reallochook): Likewise.
31868 (tr_memalignhook): Likewise.
31869 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31870 * misc/mmap.c (__mmap): Likewise.
31871 * misc/mmap64.c (__mmap64): Likewise.
31872 * misc/mprotect.c (__mprotect): Likewise.
31873 * misc/msync.c (msync): Likewise.
31874 * misc/munmap.c (__munmap): Likewise.
31875 * posix/posix_madvise.c (posix_madvise): Likewise.
31876 * socket/send.c (__send): Likewise.
31877 * socket/sendto.c (__sendto): Likewise.
31878 * socket/setsockopt.c (__setsockopt): Likewise.
31879 * string/memcmp.c (__ptr_t): Remove macro.
31880 (MEMCMP): Use void * instead of ptr_t.
31881 * string/memrchr.c (__ptr_t): Remove macro.
31882 (__memrchr): Use void * instead of ptr_t.
31883 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31884 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31885 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31886 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31887 * sysdeps/mach/msync.c (msync): Likewise.
31888 * sysdeps/mach/munmap.c (__munmap): Likewise.
31889 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31890 Likewise.
31891 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31892 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31893 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31894 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31895 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31896 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31897 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31898 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31899 Likewise.
31900 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31901 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31902 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31903 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31904 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31905 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31906 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31907 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31908 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31909 Likewise.
31910 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31911 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31912 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31913 (MEMCMP): Use void * instead of ptr_t.
31914 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31915 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31916
31917 2017-08-08 Florian Weimer <fweimer@redhat.com>
31918
31919 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31920 return statement.
31921
31922 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31923
31924 [BZ #21913]
31925 * csu/libc-tls.c: Include <startup.h> first.
31926 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31927 * elf/dl-tunables.c: Include <startup.h> first.
31928 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31929 * sysdeps/generic/startup.h: New file.
31930 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31931 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31932 (I386_USE_SYSENTER): New. Defined to 0.
31933
31934 2017-08-08 Andreas Schwab <schwab@suse.de>
31935
31936 [BZ #21041]
31937 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31938 * nptl/pt-system.c (system): Likewise.
31939
31940 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31941
31942 [BZ #21780]
31943 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31944 EOPNOTSUPP.
31945 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31946 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31947 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31948 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31949 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31950 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31951 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31952
31953 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31954
31955 [BZ #21899]
31956 * bits/sigaction.h (struct sigaction): Define sa_handler and
31957 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31958 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31959 [__USE_XOPEN_EXTENDED].
31960 (SA_RESTART): Likewise.
31961 (SA_NODEFER): Likewise.
31962 (SA_RESETHAND): Likewise.
31963 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31964 (struct sigaction): Define sa_handler and sa_sigaction using union
31965 also for [__USE_XOPEN_EXTENDED].
31966 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31967 [__USE_XOPEN_EXTENDED].
31968 (SA_RESTART): Likewise.
31969 (SA_NODEFER): Likewise.
31970 (SA_RESETHAND): Likewise.
31971 * sysdeps/unix/sysv/linux/bits/sigaction.h
31972 (struct sigaction): Define sa_handler and sa_sigaction using union
31973 also for [__USE_XOPEN_EXTENDED].
31974 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31975 [__USE_XOPEN_EXTENDED].
31976 (SA_RESTART): Likewise.
31977 (SA_NODEFER): Likewise.
31978 (SA_RESETHAND): Likewise.
31979 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31980 (struct sigaction): Define sa_handler and sa_sigaction using union
31981 also for [__USE_XOPEN_EXTENDED].
31982 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31983 [__USE_XOPEN_EXTENDED].
31984 (SA_RESTART): Likewise.
31985 (SA_NODEFER): Likewise.
31986 (SA_RESETHAND): Likewise.
31987 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31988 (struct sigaction): Define sa_handler and sa_sigaction using union
31989 also for [__USE_XOPEN_EXTENDED].
31990 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31991 [__USE_XOPEN_EXTENDED].
31992 (SA_RESTART): Likewise.
31993 (SA_NODEFER): Likewise.
31994 (SA_RESETHAND): Likewise.
31995 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31996 (struct sigaction): Define sa_handler and sa_sigaction using union
31997 also for [__USE_XOPEN_EXTENDED].
31998 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31999 [__USE_XOPEN_EXTENDED].
32000 (SA_RESTART): Likewise.
32001 (SA_NODEFER): Likewise.
32002 (SA_RESETHAND): Likewise.
32003 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
32004 (struct sigaction): Define sa_handler and sa_sigaction using union
32005 also for [__USE_XOPEN_EXTENDED].
32006 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32007 [__USE_XOPEN_EXTENDED].
32008 (SA_RESTART): Likewise.
32009 (SA_NODEFER): Likewise.
32010 (SA_RESETHAND): Likewise.
32011 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
32012 (struct sigaction): Define sa_handler and sa_sigaction using union
32013 also for [__USE_XOPEN_EXTENDED].
32014 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32015 [__USE_XOPEN_EXTENDED].
32016 (SA_RESTART): Likewise.
32017 (SA_NODEFER): Likewise. Define directly rather than as alias.
32018 (SA_RESETHAND): Likewise.
32019 (SA_INTERRUPT): Define only for [__USE_MISC].
32020 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
32021 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
32022 [__USE_MISC].
32023 (SA_STACK): Define only for [__USE_MISC].
32024 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
32025 (struct sigaction): Define sa_handler and sa_sigaction using union
32026 also for [__USE_XOPEN_EXTENDED].
32027 (SA_ONSTACK): Change [__USE_UNIX98] condition to
32028 [__USE_XOPEN_EXTENDED].
32029 (SA_RESTART): Likewise.
32030 (SA_NODEFER): Likewise.
32031 (SA_RESETHAND): Likewise.
32032 (SA_NOPTRACE): Define only for [__USE_MISC].
32033
32034 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
32035 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
32036 (struct catalog_info): Likewise.
32037 * inet/htontest.c (lo): Likewise.
32038 (foo): Likewise.
32039 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32040 * inet/inet_net.c (inet_network): Likewise.
32041 * inet/inet_netof.c (inet_netof): Likewise.
32042 * inet/rcmd.c (__ivaliduser): Likewise.
32043 (iruserok): Likewise.
32044 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32045 * locale/programs/locale-spec.c (locale_special): Likewise.
32046 * nis/nis_findserv.c (struct findserv_req): Likewise.
32047 (__nis_findfastest_with_timeout): Likewise.
32048 * nss/test-netdb.c (test_network): Likewise.
32049 * resolv/inet_neta.c (inet_neta): Likewise.
32050 * resolv/ns_date.c (ns_datetosecs): Likewise.
32051 (SECS_PER_DAY): Likewise.
32052 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32053 Likewise.
32054 * resolv/res_comp.c (__putlong): Likewise.
32055 (__putshort): Likewise.
32056 (_getlong): Likewise.
32057 (_getshort): Likewise.
32058 * resolv/res_debug.c (p_time): Likewise.
32059 (precsize_ntoa): Likewise.
32060 (precsize_aton): Likewise.
32061 (latlon2ul): Likewise.
32062 (loc_aton): Likewise.
32063 (loc_ntoa): Likewise.
32064 * resolv/res_hconf.c (struct netaddr): Likewise.
32065 (_res_hconf_reorder_addrs): Likewise.
32066 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32067 (clnttcp_control): Likewise.
32068 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32069 (clntudp_control): Likewise.
32070 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32071 (clntunix_control): Likewise.
32072 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32073 * sunrpc/rpc/auth.h (union des_block): Likewise.
32074 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32075 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32076 (xdrrec_create): Likewise.
32077 (xdrrec_endofrecord): Likewise.
32078 (flush_out): Likewise.
32079 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32080 (xdrstdio_putlong): Likewise.
32081 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32082 Likewise.
32083
32084 * misc/sys/cdefs.h (__long_double_t): Remove.
32085 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32086 instead of __long_double_t,
32087 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32088
32089 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32090
32091 * benchtests/scripts/compare_strings.py: Avoid display error when
32092 running on a text terminal.
32093
32094 * benchtests/scripts/compare_strings.py (main): Add an
32095 optional -base option.
32096 (process_results): New argument base_func.
32097
32098 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32099 hardcoding memcpy.
32100 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32101 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32102
32103 2017-08-07 Andreas Schwab <schwab@suse.de>
32104
32105 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32106 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32107 * intl/Makefile ($(objpfx)tst-gettext.out)
32108 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32109 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32110 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32111 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32112 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32113 * posix/Makefile ($(objpfx)globtest.out)
32114 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32115 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32116 ($(objpfx)tst-printf.out): Likewise.
32117 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32118 ($(objpfx)tst-setcontext3.out): Likewise.
32119
32120 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32121
32122 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32123 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32124 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32125 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32126 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32127 and mptan-fma.
32128 (CFLAGS-doasin-fma.c): New.
32129 (CFLAGS-dosincos-fma.c): Likewise.
32130 (CFLAGS-e_asin-fma.c): Likewise.
32131 (CFLAGS-e_atan2-fma.c): Likewise.
32132 (CFLAGS-e_exp-fma.c): Likewise.
32133 (CFLAGS-e_log-fma.c): Likewise.
32134 (CFLAGS-e_pow-fma.c): Likewise.
32135 (CFLAGS-halfulp-fma.c): Likewise.
32136 (CFLAGS-mpa-fma.c): Likewise.
32137 (CFLAGS-mpatan-fma.c): Likewise.
32138 (CFLAGS-mpatan2-fma.c): Likewise.
32139 (CFLAGS-mpexp-fma.c): Likewise.
32140 (CFLAGS-mplog-fma.c): Likewise.
32141 (CFLAGS-mpsqrt-fma.c): Likewise.
32142 (CFLAGS-mptan-fma.c): Likewise.
32143 (CFLAGS-s_atan-fma.c): Likewise.
32144 (CFLAGS-sincos32-fma.c): Likewise.
32145 (CFLAGS-slowexp-fma.c): Likewise.
32146 (CFLAGS-slowpow-fma.c): Likewise.
32147 (CFLAGS-s_sin-fma.c): Likewise.
32148 (CFLAGS-s_tan-fma.c): Likewise.
32149 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32150 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32151 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32152 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32153 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32154 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32155 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32156 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32157 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32158 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32159 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32160 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32161 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32162 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32163 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32164 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32165 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32166 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32167 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32168 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32169 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32170 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32171 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32172 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32173 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32174 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32175 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32176 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32177 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32178 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32179 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32180
32181 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32182
32183 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32184 (min_of_type_f): New macro.
32185 (min_of_type_): Likewise.
32186 (min_of_type_l): Likewise.
32187 (min_of_type_f128): Likewise.
32188 (min_of_type): Define using __MATH_TG and taking an expression
32189 argument.
32190 (math_check_force_underflow): Pass expression instead of type to
32191 min_of_type.
32192 (math_check_force_underflow_nonneg): Likewise.
32193
32194 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32195
32196 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32197 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32198 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32199
32200 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32201
32202 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32203 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32204 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32205 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32206 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32207 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32208 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32209 memmove_chk-nonshared and memset_chk-nonshared
32210 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32211 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32212 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32213 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32214 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32215 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32216 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32217 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32218 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32219 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32220 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32221 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32222 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32223 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32224 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32225 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32226 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32227 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32228 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32229 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32230 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32231 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32232 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32233 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32234 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32235 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32236 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32237 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32238 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32239 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32240 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32241 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32242 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32243 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32244 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32245 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32246 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32247 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32248 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32249 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32250 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32251 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32252 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32253 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32254 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32255 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32256 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32257 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32258 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32259 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32260 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32261 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32262 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32263 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32264 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32265 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32266 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32267 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32268 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32269 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32270 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32271 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32272 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32273 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32274 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32275 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32276 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32277 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32278 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32279 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32280 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32281 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32282 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32283 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32284 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32285 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32286 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32287 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32288 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32289 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32290 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32291 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32292 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32293 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32294 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32295 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32296 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32297 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32298 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32299 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32300 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32301 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32302 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32303 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32304 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32305 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32306 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32307 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32308 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32309 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32310 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32311 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32312 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32313 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32314 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32315 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32316 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32317 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32318
32319 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32320
32321 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32322 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32323 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32324 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32325 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32326 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32327 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32328 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32329 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32330 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32331 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32332 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32333 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32334 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32335 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32336 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32337 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32338 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32339 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32340 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32341 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32342 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32343 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32344 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32346 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32347 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32348 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32349 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32351 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32352 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32353 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32354 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32356 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32357 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32358 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32359 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32361 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32362 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32363 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32364 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32365 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32366 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32367 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32368 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32369 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32370 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32371 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32372 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32373 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32374 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32375 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32376 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32377 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32378 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32379 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32380 ...
32381 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32382 Don't include <sysdep.h> nor <init-arch.h>.
32383 (_ZGVbN2v_cos): Removed.
32384 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32385 ...
32386 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32387 Don't include <sysdep.h> nor <init-arch.h>.
32388 (_ZGVdN4v_cos): Removed.
32389 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32390 ...
32391 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32392 Don't include <sysdep.h> nor <init-arch.h>.
32393 (_ZGVeN8v_cos): Removed.
32394 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32395 ...
32396 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32397 Don't include <sysdep.h> nor <init-arch.h>.
32398 (_ZGVbN2v_exp): Removed.
32399 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32400 ...
32401 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32402 Don't include <sysdep.h> nor <init-arch.h>.
32403 (_ZGVdN4v_exp): Removed.
32404 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32405 ...
32406 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32407 Don't include <sysdep.h> nor <init-arch.h>.
32408 (_ZGVeN8v_exp): Removed.
32409 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32410 ...
32411 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32412 Don't include <sysdep.h> nor <init-arch.h>.
32413 (_ZGVbN2v_log): Removed.
32414 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32415 ...
32416 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32417 Don't include <sysdep.h> nor <init-arch.h>.
32418 (_ZGVdN4v_log): Removed.
32419 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32420 ...
32421 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32422 Don't include <sysdep.h> nor <init-arch.h>.
32423 (_ZGVeN8v_log): Removed.
32424 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32425 ...
32426 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32427 Don't include <sysdep.h> nor <init-arch.h>.
32428 (_ZGVbN2vv_pow): Removed.
32429 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32430 ...
32431 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32432 Don't include <sysdep.h> nor <init-arch.h>.
32433 (_ZGVdN4vv_pow): Removed.
32434 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32435 ...
32436 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32437 Don't include <sysdep.h> nor <init-arch.h>.
32438 (_ZGVeN8vv_pow): Removed.
32439 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32440 ...
32441 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32442 Don't include <sysdep.h> nor <init-arch.h>.
32443 (_ZGVbN2v_sin): Removed.
32444 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32445 ...
32446 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32447 Don't include <sysdep.h> nor <init-arch.h>.
32448 (_ZGVbN4v_sin): Removed.
32449 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32450 ...
32451 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32452 Don't include <sysdep.h> nor <init-arch.h>.
32453 (_ZGVbN8v_sin): Removed.
32454 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32455 ...
32456 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32457 Don't include <sysdep.h> nor <init-arch.h>.
32458 (_ZGVbN2vvv_sincos): Removed.
32459 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32460 ...
32461 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32462 Don't include <sysdep.h> nor <init-arch.h>.
32463 (_ZGVdN4vvv_sincos): Removed.
32464 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32465 ...
32466 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32467 Don't include <sysdep.h> nor <init-arch.h>.
32468 (_ZGVeN8vvv_sincos): Removed.
32469 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32470 ...
32471 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32472 Don't include <sysdep.h> nor <init-arch.h>.
32473 (_ZGVeN16v_cosf): Removed.
32474 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32475 ...
32476 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32477 Don't include <sysdep.h> nor <init-arch.h>.
32478 (_ZGVbN4v_cosf): Removed.
32479 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32480 ...
32481 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32482 Don't include <sysdep.h> nor <init-arch.h>.
32483 (_ZGVdN8v_cosf): Removed.
32484 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32485 ...
32486 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32487 Don't include <sysdep.h> nor <init-arch.h>.
32488 (_ZGVeN16v_expf): Removed.
32489 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32490 ...
32491 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32492 Don't include <sysdep.h> nor <init-arch.h>.
32493 (_ZGVbN4v_expf): Removed.
32494 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32495 ...
32496 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32497 Don't include <sysdep.h> nor <init-arch.h>.
32498 (_ZGVdN8v_expf): Removed.
32499 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32500 ...
32501 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32502 Don't include <sysdep.h> nor <init-arch.h>.
32503 (_ZGVeN16v_logf): Removed.
32504 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32505 ...
32506 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32507 Don't include <sysdep.h> nor <init-arch.h>.
32508 (_ZGVbN4v_logf): Removed.
32509 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32510 ...
32511 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32512 Don't include <sysdep.h> nor <init-arch.h>.
32513 (_ZGVdN8v_logf): Removed.
32514 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32515 ...
32516 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32517 Don't include <sysdep.h> nor <init-arch.h>.
32518 (_ZGVeN16vv_powf): Removed.
32519 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32520 ...
32521 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32522 Don't include <sysdep.h> nor <init-arch.h>.
32523 (_ZGVbN4vv_powf): Removed.
32524 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32525 ...
32526 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32527 Don't include <sysdep.h> nor <init-arch.h>.
32528 (_ZGVdN8vv_powf): Removed.
32529 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32530 ...
32531 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32532 Don't include <sysdep.h> nor <init-arch.h>.
32533 (_ZGVeN16vvv_sincosf): Removed.
32534 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32535 ...
32536 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32537 Don't include <sysdep.h> nor <init-arch.h>.
32538 (_ZGVbN4vvv_sincosf): Removed.
32539 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32540 ...
32541 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32542 Don't include <sysdep.h> nor <init-arch.h>.
32543 (_ZGVdN8vvv_sincosf): Removed.
32544 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32545 ...
32546 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32547 Don't include <sysdep.h> nor <init-arch.h>.
32548 (_ZGVeN16v_sinf): Removed.
32549 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32550 ...
32551 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32552 Don't include <sysdep.h> nor <init-arch.h>.
32553 (_ZGVbN4v_sinf): Removed.
32554 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32555 ...
32556 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32557 Don't include <sysdep.h> nor <init-arch.h>.
32558 (_ZGVdN8v_sinf): Removed.
32559
32560 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32561
32562 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32563 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32564 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32565 s_rint-sse4_1 and s_rintf-sse4_1.
32566 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32567 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32568 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32569 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32570 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32571 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32572 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32573 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32574 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32575 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32576 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32577 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32578 (__ceil): Removed.
32579 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32580 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32581 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32582 (__ceilf): Removed.
32583 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32584 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32585 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32586 (__floor): Removed.
32587 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32588 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32589 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32590 (__floorf): Removed.
32591 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32592 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32593 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32594 (__nearbyint): Removed.
32595 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32596 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32597 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32598 (__nearbyintf): Removed.
32599 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32600 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32601 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32602 (__rint): Removed.
32603 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32604 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32605 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32606 (__rintf): Removed.
32607
32608 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32609
32610 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32611 SHARED. Avoid dynamic relocation against main in static PIE.
32612
32613 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32614
32615 [BZ #21815]
32616 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32617 (LDFLAGS-tst-prelink): Likewise.
32618
32619 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32620
32621 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32622 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32623 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32624 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32625 (INTERNAL_SYSCALL_NCS): Likewise.
32626 (LOADARGS_1): Likewise.
32627 (LOADARGS_5): Likewise.
32628 (RESTOREARGS_1): Likewise.
32629 (RESTOREARGS_5): Likewise.
32630
32631 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32632
32633 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32634 (MEMPCPY_SYMBOL): Likewise.
32635 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32636 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32637 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32638 in libc.a.
32639 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32640 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32641 Likewise.
32642 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32643 (__hidden_ver1): Don't use in libc.a.
32644 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32645 (__mempcpy): Don't create a weak alias in libc.a.
32646 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32647 libc.a.
32648 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32649 (__hidden_ver1): Don't use in libc.a.
32650
32651 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32652
32653 * config.make.in (have-insert): New.
32654 * configure.ac (libc_cv_insert): New. Set to yes if linker
32655 supports INSERT in linker script.
32656 (AC_SUBST(libc_cv_insert): New.
32657 * configure: Regenerated.
32658 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32659 if $(have-insert) == yes.
32660
32661 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32662
32663 * elf/Makefile (tests): Add vismain only if
32664 $(have-protected-data) == yes.
32665 (tests-pie): Likewise.
32666
32667 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32668
32669 [BZ #21871]
32670 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32671 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32672
32673 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32674
32675 [BZ #21790]
32676 * sysdeps/i386/i586/memset.S
32677 (__memset_zero_constant_len_parameter): Removed.
32678 * sysdeps/i386/i686/memset.S
32679 (__memset_zero_constant_len_parameter): Likewise.
32680 * sysdeps/i386/i686/multiarch/memset_chk.S
32681 (__memset_zero_constant_len_parameter): Likewise.
32682 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32683 Likewise.
32684
32685 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32686
32687 * stdlib/getentropy.c (getentropy): Change return type to int.
32688
32689 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32690
32691 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32692
32693 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32694
32695 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32696 u_intN_t.
32697 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32698 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32699 Likewise.
32700 (ieee_float_shape_type): Likewise.
32701 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32702 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32703 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32704 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32705 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32706 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32707 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32708 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32709 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32710 Likewise.
32711 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32712 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32713 (__ieee754_yn): Likewise.
32714 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32715 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32716 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32717 Likewise.
32718 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32719 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32720 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32721 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32722 (__erfc): Likewise.
32723 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32724 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32725 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32726 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32727 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32728 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32729 Likewise.
32730 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32731 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32732 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32733 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32734 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32735 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32736 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32737 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32738 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32739 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32740 (__issignaling): Likewise.
32741 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32742 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32743 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32744 Likewise.
32745 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32746 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32747 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32748 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32749 Likewise.
32750 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32751 Likewise.
32752 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32753 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32754 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32755 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32756 (__erfcf): Likewise.
32757 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32758 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32759 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32760 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32761 Likewise.
32762 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32763 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32764 Likewise.
32765 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32766 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32767 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32768 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32769 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32770 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32771 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32772 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32773 Likewise.
32774 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32775 Likewise.
32776 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32777 Likewise.
32778 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32779 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32780 Likewise.
32781 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32782 Likewise.
32783 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32784 (__ieee754_ynl): Likewise.
32785 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32786 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32787 Likewise.
32788 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32789 Likewise.
32790 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32791 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32792 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32793 Likewise.
32794 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32795 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32796 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32797 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32798 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32799 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32800 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32801 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32802 Likewise.
32803 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32804 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32805 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32806 Likewise.
32807 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32808 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32809 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32810 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32811 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32812 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32813 Likewise.
32814 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32815 Likewise.
32816 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32817 Likewise.
32818 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32819 Likewise.
32820 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32821 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32822 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32823 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32824 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32825 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32826 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32827 Likewise.
32828 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32829 Likewise.
32830 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32831 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32832 Likewise.
32833 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32834 (__ieee754_remainderl): Likewise.
32835 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32836 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32837 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32838 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32839 Likewise.
32840 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32841 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32842 Likewise.
32843 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32844 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32845 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32846 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32847 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32848 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32849 Likewise.
32850 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32851 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32852 (__ieee754_y0l): Likewise.
32853 (pzero): Likewise.
32854 (qzero): Likewise.
32855 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32856 (__ieee754_y1l): Likewise.
32857 (pone): Likewise.
32858 (qone): Likewise.
32859 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32860 (__ieee754_ynl): Likewise.
32861 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32862 (__ieee754_lgammal_r): Likewise.
32863 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32864 Likewise.
32865 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32866 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32867 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32868 (__erfcl): Likewise.
32869 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32870 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32871 Likewise.
32872 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32873 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32874 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32875 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32876 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32877 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32878 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32879 Likewise.
32880 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32881 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32882 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32883 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32884 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32885 Likewise.
32886 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32887 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32888 Likewise.
32889 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32890 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32891 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32892 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32893 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32894
32895 2017-08-03 Florian Weimer <fweimer@redhat.com>
32896
32897 [BZ #21885]
32898 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32899 on memory allocation failure.
32900
32901 2017-08-03 Alan Modra <amodra@gmail.com>
32902
32903 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32904 tst-tlsopt-powerpc.c with function name change and no test harness.
32905 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32906 Call tls_get_addr_opt_test.
32907 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32908 (modules-names): Add mod-tlsopt-powerpc.
32909 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32910 (tst-tlsopt-powerpc): Depend on .so.
32911 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32912 define. Expand use in TLS_GD and TLS_LD.
32913
32914 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32915
32916 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32917 function.
32918 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32919
32920 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32921
32922 [BZ #21686]
32923 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32924 comparing size with that of double.
32925 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32926 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32927 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32928 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32929 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32930 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32931 unsigned __int128 types.
32932
32933 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32934
32935 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32936 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32937 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32938 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32939 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32940
32941 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32942
32943 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32944
32945 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32946
32947 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32948 of SHARED.
32949 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32950 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32951 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32952 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32953 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32954 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32955 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32956
32957 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32958
32959 [BZ #21685]
32960 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32961 bit-field expressions passed to sizeof or typeof.
32962 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32963 (__TGMATH_F128): Likewise.
32964 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32965 (__TGMATH_CF128): Likewise.
32966 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32967 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32968 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32969 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32970 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32971 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32972 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32973 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32974 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32975 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32976 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32977 (__TGMATH_UNARY_IMAG): Likewise.
32978 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32979 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32980 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32981 type.
32982 (define_vars_for_type): Handle bit_field type specially.
32983 (Tests.__init__): Declare structure with bit-field element.
32984
32985 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32986
32987 [BZ #21791]
32988 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32989 (MEMCPY_CHK): Define only if SHARED is defined.
32990 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32991 Likewise.
32992 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32993 Likewise.
32994
32995 See ChangeLog.18 for earlier changes.