]> git.ipfire.org Git - thirdparty/glibc.git/blob - ChangeLog
ldbl-opt: Reuse test cases from misc/ that check long double
[thirdparty/glibc.git] / ChangeLog
1 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2
3 * misc/tst-ldbl-error.c (do_one_test): Adapt for reuse by nldbl
4 tests.
5 (do_test): Likewise.
6 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
7 (do_test_call_varg): Likewise.
8 (do_test_call_rarg): Likewise.
9 * sysdeps/ieee754/ldbl-opt/Makefile
10 [subdir == misc] (tests-internal): Add tst-nldbl-warn,
11 tst-nldbl-error.
12 ($(objpfx)tst-nldbl-warn.c): New rule.
13 ($(objpfx)tst-nldbl-error.c): Likewise.
14 (CFLAGS-tst-nldbl-warn.c, CFLAGS-tst-nldbl-error.c):
15 New variables.
16
17 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18
19 [BZ #23984]
20 * include/bits/error-ldbl.h: New file.
21 * include/error.h: Include stdarg.h. Declare internal functions
22 __error_internal and __error_at_line_internal.
23 * misc/Makefile (headers): Add bits/error-ldbl.h.
24 * misc/bits/error-ldbl.h: New file.
25 * misc/error.h [__LDBL_COMPAT]: Include bits/error-ldbl.h and
26 avoid the inclusion of bits/error.h.
27 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_error,
28 and __nldbl_error_at_line.
29 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include error.h.
30 (__nldbl_error, __ndlbl_error_at_line): New functions.
31 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include error.h.
32 Redirect error and error_at_line.
33 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
34 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
35 Likewise.
36 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
37 Likewise.
38 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
39 Likewise.
40 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
41 Likewise.
42 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
43 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
44 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
45
46 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
47
48 [BZ #23984]
49 * include/bits/err-ldbl.h: New file.
50 * include/err.h: Add prototypes for the internal functions:
51 __vwarnx_internal and __vwarn_internal.
52 * misc/Makefile (headers): Add bits/err-ldbl.h.
53 * misc/bits/err-ldbl.h: New file.
54 * misc/err.h: Include bits/err-ldbl.h when __LDBL_COMPAT is
55 defined, i.e.: when -mlong-double-64 is in use.
56 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add __nldbl_warn,
57 __nldbl_vwarn, __nldbl_warnx, __nldbl_vwarnx, __nldbl_err,
58 __nldbl_verr, __nldbl_errx, and __nldbl_verrx.
59 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include err.h.
60 (VA_CALL): New macro.
61 (__nldbl_vwarn, __nldbl_vwarnx, __nldbl_warn, __nldbl_warnx)
62 (__nldbl_verr, __nldbl_verrx, __nldbl_err, __nldbl_errx): New
63 functions.
64 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include err.h and
65 declare prototypes for the new functions.
66 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
67 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
68 Likewise.
69 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
70 Likewise.
71 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
72 Likewise.
73 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
74 Likewise.
75 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
76 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
77 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
78
79 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
80
81 * sysdeps/ieee754/ldbl-opt/Makefile
82 [subdir == argp] (tests-internal): Add tst-nldbl-argp.
83 [subdir == argp] ($(objpfx)tst-nldbl-argp.c): New rule.
84 [subdir == argp] (CFLAGS-tst-nldbl-argp.c): New variable.
85
86 2019-03-01 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
87
88 [BZ #23983]
89 * argp/Makefile (headers): Add bits/argp-ldbl.h.
90 * argp/argp.h [defined __LDBL_COMPAT]: Include bits/argp-ldbl.h.
91 * argp/bits/argp-ldbl.h: New file.
92 * include/argp.h: Include stdarg.h. Add prototypes for internal
93 functions: __argp_error_internal and __argp_failure_internal.
94 * include/bits/argp-ldbl.h: New file.
95 * sysdeps/ieee754/ldbl-opt/Versions (libc): Add
96 __nldbl_argp_error and __nldbl_argp_failure.
97 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include argp.h.
98 (__nldbl_argp_error, __nldbl_argp_failure): New functions.
99 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Include argp.h.
100 Redirect argp_error and argp_failure calls.
101 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Update.
102 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
103 Likewise.
104 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
105 Likewise.
106 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
107 Likewise.
108 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
109 Likewise.
110 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
111 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
112 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
113
114 2019-03-01 Florian Weimer <fweimer@redhat.com>
115
116 [BZ #20419]
117 * elf/tst-big-note-lib.S: Create a syntactically valid note.
118 * elf/Makefile (tst-big-note-lib.so): Do not link with startup
119 code, to avoid creating an ABI tag note.
120 (modules-names-nobuild): Add tst-big-note-lib.
121
122 2019-03-01 Stefan Liebler <stli@linux.ibm.com>
123
124 * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
125 __wcscpy, __GI___wcscpy and weak alias to wcscpy.
126
127 2019-03-01 Florian Weimer <fweimer@redhat.com>
128
129 [BZ #20271]
130 * sysdeps/unix/sysv/linux/netlink_assert_response.c
131 (__netlink_assert_response): Add additional missing newlines.
132
133 2019-02-28 Joseph Myers <joseph@codesourcery.com>
134
135 * sysdeps/powerpc/powerpc32/dl-machine.c
136 (__elf_machine_fixup_plt): Use space before '('.
137 (__process_machine_rela): Likewise.
138 * sysdeps/powerpc/powerpc32/register-dump.h (register_dump):
139 Likewise.
140 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h (TI_BITS):
141 Likewise.
142 * sysdeps/powerpc/powerpc64/register-dump.h (register_dump):
143 Likewise.
144 * sysdeps/powerpc/test-arith.c (union_t): Likewise.
145 (pattern): Likewise.
146 (delta): Likewise.
147 (check_result): Likewise.
148 (check_excepts): Likewise.
149 (check_op): Likewise.
150 (fail_xr): Likewise.
151 * sysdeps/unix/alpha/sysdep.h (syscall_promote): Likewise.
152 * sysdeps/unix/sysv/linux/alpha/a.out.h (AOUTHSZ): Likewise.
153 (SCNHSZ): Likewise.
154 * sysdeps/unix/sysv/linux/hppa/makecontext.c (FRAME_SIZE_BYTES):
155 Likewise.
156 (ARGS): Likewise.
157 (__makecontext): Likewise.
158 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t):
159 Likewise.
160
161 2019-02-28 Florian Weimer <fweimer@redhat.com>
162
163 [BZ #23937]
164 elf: Add test with a local IFUNC resolver.
165 * elf/ifuncmain9.c: New file.
166 * elf/ifuncmain9pic.c: Likewise.
167 * elf/ifuncmain9picstatic.c: Likewise.
168 * elf/ifuncmain9pie.c: Likewise.
169 * elf/ifuncmain9static.c: Likewise.
170 * elf/Makefile [multi-arch] (tests-ifuncstatic): Add
171 ifuncmain9static, ifuncmain9picstatic.
172 * elf/Makefile [multi-arch && build-shared] (tests-internal):
173 Add ifuncmain9, ifuncmain9pic.
174 * elf/Makefile [multi-arch && build-shared && have-fpie]
175 (ifunc-pie-tests): Add ifuncmain9pie.
176 (CFLAGS-ifuncmain9pic.c): Add $(pic-ccflag).
177 (CFLAGS-ifuncmain9picstatic.c): Likewise.
178 (CFLAGS-ifuncmain9pie.c): Add $(pie-ccflag).
179
180 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
181
182 * configure.ac (have-ifunc): New LIBC_CONFIG_VAR.
183 * configure: Regenerated.
184 * elf/Makefile: Run IFUNC tests if binutils supports IFUNC.
185
186 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
187
188 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Define ifunc
189 symbol as __wcspcy instead of wcscpy.
190
191 2019-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
192
193 * include/stdio.h (__renameat2): New hidden prototype.
194 * stdio-common/renameat2.c (__renameat2): Add hidden definition.
195 * sysdeps/mach/hurd/renameat.c (__renameat): Move implementation to...
196 * sysdeps/mach/hurd/renameat2.c (__renameat2): ... new function.
197 * sysdeps/unix/sysv/linux/renameat2.c (__renameat2): Add hidden definition.
198
199 2019-02-27 Joseph Myers <joseph@codesourcery.com>
200
201 * hurd/hurdinit.c (_hurd_init): Use braces around empty body of an
202 if statement.
203
204 * benchtests/bench-strcpy.c (do_test): Use space before '('.
205 * benchtests/bench-string.h (cmdline_process_function): Likewise.
206 * benchtests/bench-strlen.c (do_test): Likewise.
207 (test_main): Likewise.
208 * catgets/gencat.c (read_old): Likewise.
209 * elf/cache.c (load_aux_cache): Likewise.
210 * iconvdata/bug-iconv8.c (do_test): Likewise.
211 * math/test-tgmath-ret.c (do_test): Likewise.
212 * nis/nis_call.c (rec_dirsearch): Likewise.
213 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
214 * nptl/tst-audit-threads.c (do_test): Likewise.
215 * nptl/tst-cancel4-common.h (set_socket_buffer): Likewise.
216 * nss/nss_test1.c (init): Likewise.
217 * nss/test-netdb.c (test_hosts): Likewise.
218 * posix/execvpe.c (maybe_script_execute): Likewise.
219 * stdio-common/tst-fmemopen4.c (do_test): Likewise.
220 * stdio-common/tst-printf.c (do_test): Likewise.
221 * stdio-common/vfscanf-internal.c (__vfscanf_internal): Likewise.
222 * stdlib/fmtmsg.c (NKEYWORDS): Likewise.
223 * stdlib/qsort.c (STACK_SIZE): Likewise.
224 * stdlib/test-canon.c (do_test): Likewise.
225 * stdlib/tst-swapcontext1.c (do_test): Likewise.
226 * string/memcmp.c (OPSIZ): Likewise.
227 * string/test-strcpy.c (do_test): Likewise.
228 (do_random_tests): Likewise.
229 * string/test-strlen.c (do_test): Likewise.
230 (test_main): Likewise.
231 * string/test-strrchr.c (do_test): Likewise.
232 (do_random_tests): Likewise.
233 * string/tester.c (test_memrchr): Likewise.
234 (test_memchr): Likewise.
235 * sysdeps/generic/memcopy.h (OPSIZ): Likewise.
236 * sysdeps/generic/unwind-dw2.c (execute_stack_op): Likewise.
237 * sysdeps/generic/unwind-pe.h (read_sleb128): Likewise.
238 (read_encoded_value_with_base): Likewise.
239 * sysdeps/hppa/dl-machine.h (elf_machine_runtime_setup): Likewise.
240 * sysdeps/hppa/fpu/feupdateenv.c (__feupdateenv): Likewise.
241 * sysdeps/ia64/fpu/sfp-machine.h (TI_BITS): Likewise.
242 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
243 * sysdeps/posix/spawni.c (maybe_script_execute): Likewise.
244 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (query_auxv):
245 Likewise.
246 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h (ELF_NGREG):
247 Likewise.
248 * sysdeps/unix/sysv/linux/arm/bits/procfs.h (ELF_NGREG): Likewise.
249 * sysdeps/unix/sysv/linux/arm/ioperm.c (init_iosys): Likewise.
250 * sysdeps/unix/sysv/linux/csky/bits/procfs.h (ELF_NGREG):
251 Likewise.
252 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h (ELF_NGREG):
253 Likewise.
254 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h (ELF_NGREG):
255 Likewise.
256 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
257 Likewise.
258 * sysdeps/unix/sysv/linux/x86/bits/procfs.h (ELF_NGREG): Likewise.
259 * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h
260 (FP_XSTATE_MAGIC2_SIZE): Likewise.
261 * sysdeps/x86/fpu/sfp-machine.h (TI_BITS): Likewise.
262 * time/test_time.c (main): Likewise.
263
264 2019-02-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
265
266 * wcsmbs/wcsnlen.c (__wcsnlen): Rewrite using wmemchr.
267
268 * wcsmbs/wcsncpy.c (__wcsncpy): Rewrite using wcsnlen, wmemset, and
269 wmemcpy.
270
271 * wcsmbs/wcsncat.c (wcsncat): Rewrite using wcslen, wcsnlen, and
272 wmemcpy.
273
274 * wcsmbs/wcscpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
275
276 * include/wchar.h (__wcscpy): New prototype.
277 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c
278 (__wcscpy): Route internal symbol to generic implementation.
279 * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c (wcscpy):
280 Add internal __wcscpy alias.
281 * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c (wcscpy): Likewise.
282 * sysdeps/s390/wcscpy.c (wcscpy): Likewise.
283 * sysdeps/x86_64/multiarch/wcscpy.c (wcscpy): Likewise.
284 * wcsmbs/wcscpy.c (wcscpy): Add
285 * sysdeps/x86_64/multiarch/wcscpy-c.c (WCSCPY): Adjust macro to
286 use generic implementation.
287 * wcsmbs/wcscat.c (wcscat): Rewrite using wcslen and wcscpy.
288
289 * wcsmbs/wcpncpy.c (__wcpcpy): Rewrite using wcslen, wmemcpy, and
290 wmemset.
291
292 * sysdeps/m68k/wcpcpy.c: Remove file.
293 * wcsmbs/wcpcpy.c (__wcpcpy): Rewrite using wcslen and wmemcpy.
294
295 2019-02-26 Joseph Myers <joseph@codesourcery.com>
296
297 * sysdeps/arm/sysdep.h (#if condition): Break lines before rather
298 than after operators.
299 * sysdeps/mach/hurd/fork.c (__fork): Likewise.
300 * sysdeps/mach/hurd/getcwd.c
301 (__hurd_canonicalize_directory_name_internal): Likewise.
302 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c
303 (pthread_mutex_consistent): Likewise.
304 * sysdeps/mach/hurd/htl/pt-mutex-init.c (_pthread_mutex_init):
305 Likewise.
306 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c
307 (__pthread_mutex_transfer_np): Likewise.
308 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c
309 (__pthread_mutex_unlock): Likewise.
310 * sysdeps/mach/hurd/htl/pt-mutex.h (ROBUST_LOCK): Likewise.
311 (mtx_owned_p): Likewise.
312 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c
313 (pthread_mutexattr_getrobust): Likewise.
314 * sysdeps/mach/hurd/i386/init-first.c (init1): Likewise.
315 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
316 Likewise.
317 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
318 * sysdeps/mach/hurd/jmp-unwind.c (_longjmp_unwind): Likewise.
319 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
320 * sysdeps/mach/hurd/mig-reply.c (__mig_get_reply_port): Likewise.
321 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
322 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
323 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (#if condition):
324 Likewise.
325 * sysdeps/unix/sysv/linux/alpha/ioperm.c (process_cpuinfo):
326 Likewise.
327 * sysdeps/unix/sysv/linux/bits/timex.h (STA_RONLY): Likewise.
328 * sysdeps/unix/sysv/linux/csky/sysdep.h (#if condition): Likewise.
329 * sysdeps/unix/sysv/linux/generic/____longjmp_chk.c
330 (____longjmp_chk): Likewise.
331 * sysdeps/unix/sysv/linux/generic/futimesat.c (futimesat):
332 Likewise.
333 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
334 (INTERNAL_SYSCALL): Likewise.
335 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
336 (INTERNAL_SYSCALL): Likewise.
337 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
338 (__get_clockfreq_via_cpuinfo): Likewise.
339
340 * sysdeps/i386/dl-machine.h (elf_machine_rela): Add fall-through
341 comments.
342 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (s(__cexp)): Likewise.
343 * sysdeps/m68k/memcopy.h (WORD_COPY_FWD): Likewise.
344 (WORD_COPY_BWD): Likewise.
345 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
346 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
347 Likewise.
348 * sysdeps/s390/iso-8859-1_cp037_z900.c (TR_LOOP): Likewise.
349 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Move fall-through
350 comment.
351 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
352
353 2019-02-25 Joseph Myers <joseph@codesourcery.com>
354
355 * dirent/dirent.h [!_DIRENT_HAVE_D_NAMLEN
356 && _DIRENT_HAVE_D_RECLEN] (_D_ALLOC_NAMLEN): Break lines before
357 rather than after operators.
358 * elf/cache.c (print_cache): Likewise.
359 * gshadow/fgetsgent_r.c (__fgetsgent_r): Likewise.
360 * htl/pt-getattr.c (__pthread_getattr_np): Likewise.
361 * hurd/hurdinit.c (_hurd_setproc): Likewise.
362 * hurd/hurdkill.c (_hurd_sig_post): Likewise.
363 * hurd/hurdlookup.c (__file_name_lookup_under): Likewise.
364 * hurd/hurdsig.c (_hurd_internal_post_signal): Likewise.
365 (reauth_proc): Likewise.
366 * hurd/lookup-at.c (__file_name_lookup_at): Likewise.
367 (__file_name_split_at): Likewise.
368 (__directory_name_split_at): Likewise.
369 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
370 * hurd/port2fd.c (_hurd_port2fd): Likewise.
371 * iconv/gconv_dl.c (do_print): Likewise.
372 * inet/netinet/in.h (struct sockaddr_in): Likewise.
373 * libio/wstrops.c (_IO_wstr_seekoff): Likewise.
374 * locale/setlocale.c (new_composite_name): Likewise.
375 * malloc/memusagestat.c (main): Likewise.
376 * misc/fstab.c (fstab_convert): Likewise.
377 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_usercnt):
378 Likewise.
379 * nss/nss_compat/compat-grp.c (getgrent_next_nss): Likewise.
380 (getgrent_next_file): Likewise.
381 (internal_getgrnam_r): Likewise.
382 (internal_getgrgid_r): Likewise.
383 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss):
384 Likewise.
385 (internal_getgrent_r): Likewise.
386 * nss/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
387 (getpwent_next_nss): Likewise.
388 (getpwent_next_file): Likewise.
389 (internal_getpwnam_r): Likewise.
390 (internal_getpwuid_r): Likewise.
391 * nss/nss_compat/compat-spwd.c (getspent_next_nss_netgr):
392 Likewise.
393 (getspent_next_nss): Likewise.
394 (internal_getspnam_r): Likewise.
395 * pwd/fgetpwent_r.c (__fgetpwent_r): Likewise.
396 * shadow/fgetspent_r.c (__fgetspent_r): Likewise.
397 * string/strchr.c (STRCHR): Likewise.
398 * string/strchrnul.c (STRCHRNUL): Likewise.
399 * sysdeps/aarch64/fpu/fpu_control.h (_FPU_FPCR_IEEE): Likewise.
400 * sysdeps/aarch64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
401 * sysdeps/csky/dl-machine.h (elf_machine_rela): Likewise.
402 * sysdeps/generic/memcopy.h (PAGE_COPY_FWD_MAYBE): Likewise.
403 * sysdeps/generic/symbol-hacks.h (__stack_chk_fail_local):
404 Likewise.
405 * sysdeps/gnu/netinet/ip_icmp.h (ICMP_INFOTYPE): Likewise.
406 * sysdeps/gnu/updwtmp.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
407 * sysdeps/gnu/utmp_file.c (TRANSFORM_UTMP_FILE_NAME): Likewise.
408 * sysdeps/hppa/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Likewise.
409 * sysdeps/mach/hurd/bits/stat.h (S_ISPARE): Likewise.
410 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Likewise.
411 (open_file): Likewise.
412 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c
413 (pthread_mutexattr_setprotocol): Likewise.
414 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
415 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
416 * sysdeps/mach/hurd/ptrace.c (ptrace): Likewise.
417 * sysdeps/mach/hurd/spawni.c (__spawni): Likewise.
418 * sysdeps/microblaze/dl-machine.h (elf_machine_type_class):
419 Likewise.
420 (elf_machine_rela): Likewise.
421 * sysdeps/mips/mips32/sfp-machine.h (_FP_CHOOSENAN): Likewise.
422 * sysdeps/mips/mips64/sfp-machine.h (_FP_CHOOSENAN): Likewise.
423 * sysdeps/mips/sys/asm.h (multiple #if conditionals): Likewise.
424 * sysdeps/posix/rename.c (rename): Likewise.
425 * sysdeps/powerpc/novmx-sigjmp.c (__novmx__sigjmp_save): Likewise.
426 * sysdeps/powerpc/sigjmp.c (__vmx__sigjmp_save): Likewise.
427 * sysdeps/s390/fpu/fenv_libc.h (FPC_VALID_MASK): Likewise.
428 * sysdeps/s390/utf8-utf16-z9.c (gconv_end): Likewise.
429 * sysdeps/unix/grantpt.c (grantpt): Likewise.
430 * sysdeps/unix/sysv/linux/a.out.h (N_TXTOFF): Likewise.
431 * sysdeps/unix/sysv/linux/updwtmp.c (TRANSFORM_UTMP_FILE_NAME):
432 Likewise.
433 * sysdeps/unix/sysv/linux/utmp_file.c (TRANSFORM_UTMP_FILE_NAME):
434 Likewise.
435 * sysdeps/x86/cpu-features.c (get_common_indices): Likewise.
436 * time/tzfile.c (__tzfile_compute): Likewise.
437
438 2019-02-22 Joseph Myers <joseph@codesourcery.com>
439
440 * benchtests/bench-memmem.c (simple_memmem): Break lines before
441 rather than after operators.
442 * benchtests/bench-skeleton.c (TIMESPEC_AFTER): Likewise.
443 * crypt/md5.c (md5_finish_ctx): Likewise.
444 * crypt/sha256.c (__sha256_finish_ctx): Likewise.
445 * crypt/sha512.c (__sha512_finish_ctx): Likewise.
446 * elf/cache.c (load_aux_cache): Likewise.
447 * elf/dl-load.c (open_verify): Likewise.
448 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
449 * elf/readelflib.c (process_elf_file): Likewise.
450 * elf/rtld.c (dl_main): Likewise.
451 * elf/sprof.c (generate_call_graph): Likewise.
452 * hurd/ctty-input.c (_hurd_ctty_input): Likewise.
453 * hurd/ctty-output.c (_hurd_ctty_output): Likewise.
454 * hurd/dtable.c (reauth_dtable): Likewise.
455 * hurd/getdport.c (__getdport): Likewise.
456 * hurd/hurd/signal.h (_hurd_interrupted_rpc_timeout): Likewise.
457 * hurd/hurd/sigpreempt.h (HURD_PREEMPT_SIGNAL_P): Likewise.
458 * hurd/hurdfault.c (_hurdsig_fault_catch_exception_raise):
459 Likewise.
460 * hurd/hurdioctl.c (fioctl): Likewise.
461 * hurd/hurdselect.c (_hurd_select): Likewise.
462 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Likewise.
463 (STOPSIGS): Likewise.
464 * hurd/hurdstartup.c (_hurd_startup): Likewise.
465 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Likewise.
466 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
467 * hurd/msgportdemux.c (msgport_server): Likewise.
468 * hurd/setauth.c (_hurd_setauth): Likewise.
469 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): Likewise.
470 * libio/libioP.h [IO_DEBUG] (CHECK_FILE): Likewise.
471 * locale/programs/ld-ctype.c (set_class_defaults): Likewise.
472 * localedata/tests-mbwc/tst_swscanf.c (tst_swscanf): Likewise.
473 * login/tst-utmp.c (do_check): Likewise.
474 (simulate_login): Likewise.
475 * mach/lowlevellock.h (lll_lock): Likewise.
476 (lll_trylock): Likewise.
477 * math/test-fenv.c (ALL_EXC): Likewise.
478 * math/test-fenvinline.c (ALL_EXC): Likewise.
479 * misc/sys/cdefs.h (__attribute_deprecated_msg__): Likewise.
480 * nis/nis_call.c (__do_niscall3): Likewise.
481 * nis/nis_callback.c (cb_prog_1): Likewise.
482 * nis/nis_defaults.c (searchaccess): Likewise.
483 * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
484 * nis/nis_ismember.c (internal_ismember): Likewise.
485 * nis/nis_local_names.c (nis_local_principal): Likewise.
486 * nis/nss_nis/nis-rpc.c (_nss_nis_getrpcbyname_r): Likewise.
487 * nis/nss_nisplus/nisplus-netgrp.c (_nss_nisplus_getnetgrent_r):
488 Likewise.
489 * nis/ypclnt.c (yp_match): Likewise.
490 (yp_first): Likewise.
491 (yp_next): Likewise.
492 (yp_master): Likewise.
493 (yp_order): Likewise.
494 * nscd/hstcache.c (cache_addhst): Likewise.
495 * nscd/initgrcache.c (addinitgroupsX): Likewise.
496 * nss/nss_compat/compat-pwd.c (copy_pwd_changes): Likewise.
497 (internal_getpwuid_r): Likewise.
498 * nss/nss_compat/compat-spwd.c (copy_spwd_changes): Likewise.
499 * posix/glob.h (__GLOB_FLAGS): Likewise.
500 * posix/regcomp.c (peek_token): Likewise.
501 (peek_token_bracket): Likewise.
502 (parse_expression): Likewise.
503 * posix/regexec.c (sift_states_iter_mb): Likewise.
504 (check_node_accept_bytes): Likewise.
505 * posix/tst-spawn3.c (do_test): Likewise.
506 * posix/wordexp-test.c (testit): Likewise.
507 * posix/wordexp.c (parse_tilde): Likewise.
508 (exec_comm): Likewise.
509 * posix/wordexp.h (__WRDE_FLAGS): Likewise.
510 * resource/vtimes.c (TIMEVAL_TO_VTIMES): Likewise.
511 * setjmp/sigjmp.c (__sigjmp_save): Likewise.
512 * stdio-common/printf_fp.c (__printf_fp_l): Likewise.
513 * stdio-common/tst-fileno.c (do_test): Likewise.
514 * stdio-common/vfprintf-internal.c (vfprintf): Likewise.
515 * stdlib/strfmon_l.c (__vstrfmon_l_internal): Likewise.
516 * stdlib/strtod_l.c (round_and_return): Likewise.
517 (____STRTOF_INTERNAL): Likewise.
518 * stdlib/tst-strfrom.h (TEST_STRFROM): Likewise.
519 * string/strcspn.c (STRCSPN): Likewise.
520 * string/test-memmem.c (simple_memmem): Likewise.
521 * termios/tcsetattr.c (tcsetattr): Likewise.
522 * time/alt_digit.c (_nl_parse_alt_digit): Likewise.
523 * time/asctime.c (asctime_internal): Likewise.
524 * time/strptime_l.c (__strptime_internal): Likewise.
525 * time/sys/time.h (timercmp): Likewise.
526 * time/tzfile.c (__tzfile_compute): Likewise.
527
528 2019-02-21 Patsy Griffin Franklin <pfrankli@redhat.com>
529
530 [BZ #21915]
531 * nss/tst-nss-files-hosts-long.root/etc/host.conf: New file.
532
533 2019-02-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
534
535 * argp/argp-help.c (__argp_error_internal): New function,
536 renamed from __argp_error, but that takes a 'mode_flags'
537 parameter to control the format of long double parameters.
538 (__argp_error): Converted into a call __argp_error_internal.
539 (__argp_failure_internal): New function, renamed from
540 __argp_failure, but that takes a 'mode_flags' parameter.
541 (__argp_failure): Converted into a call __argp_failure_internal.
542 * misc/err.c (__vwarnx_internal): New function, renamed from
543 vwarnx, but that takes a 'mode_flags' parameter.
544 (vwarnx): Converted into a call to __vwarnx_internal.
545 (__vwarn_internal): New function, renamed from vwarn, but that
546 takes a 'mode_flags' parameter.
547 (vwarn): Converted into a call to __vwarn_internal.
548 * misc/error.c (error_tail): Add 'mode_flags' parameter. Update
549 call to __vfxprintf with 'mode_flags'.
550 (__error_internal): New function, renamed from error, but that
551 takes a 'mode_flags' parameter.
552 (error): Converted into a call to __error_internal.
553 (__error_at_line_internal): New function, renamed from
554 error_at_line, but that takes a 'mode_flags' parameter.
555 (error_at_line): Converted into a call to
556 __error_at_line_internal.
557 * include/stdio.h (__vfxprintf): Add mode_flags parameter.
558 * stdio-common/fxprintf.c (locked_vfxprintf, __vfxprintf):
559 Likewise.
560
561 2019-02-20 Martin Liska <mliska@suse.cz>
562
563 * math/Makefile: Install math-vector-fortran.h.
564 * bits/math-vector-fortran.h: New file.
565 * sysdeps/x86/fpu/bits/math-vector-fortran.h: New file.
566
567 2019-02-20 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
568
569 * sysdeps/powerpc/powerpc64/le/configure.ac: Remove test.
570 * sysdeps/powerpc/powerpc64/le/configure: Regenerate.
571
572 2019-02-19 Wolfram Sang <wsa@the-dreams.de>
573
574 * nptl/pthread_mutex_trylock.c: Fix comment.
575
576 2019-02-19 Carlos O'Donell <carlos@redhat.com>
577
578 * nptl/pthread_tryjoin.c: Fix comment.
579
580 2019-02-18 Joseph Myers <joseph@codesourcery.com>
581
582 [BZ #24231]
583 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Add break
584 after R_SPARC_H34 case.
585
586 2019-02-18 Florian Weimer <fweimer@redhat.com>
587
588 * resolv/compat-gethnamaddr.c (Dprintf): Remove definition.
589 (getanswer): Do not call Dprintf.
590 (res_gethostbyname2_context): Likewise.
591 (res_gethostbyaddr_context): Likewise.
592
593 2019-02-18 Florian Weimer <fweimer@redhat.com>
594
595 * libio/libio.h (_IO_stdin, _IO_stdout, _IO_stderr): Remove
596 declaration.
597 * libio/stdio.c (AL, AL2, _IO_stdin, _IO_stdout, _IO_stderr):
598 Remove definitions.
599 * libio/stdfiles.c: Update comment.
600 * libio/oldstdfiles.c (_IO_check_libio): Update comment. Do not
601 set _IO_stdin, _IO_stdout, _IO_stderr.
602 * libio/libioP.h (_IO_fake_stdiobuf): Remove unused declaration.
603 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)] (_IO_legacy_file): New
604 inline function.
605 (_IO_deallocate_file): New inline function.
606 * libio/iolibio.h (_IO_vprintf): Remove definition.
607 * libio/iofclose.c (_IO_new_fclose): Use _IO_deallocate_file.
608 * libio/oldiofclose.c (_IO_old_fclose): Likewise.
609 * libio/iofwide.c (_IO_fwide): Use __glibc_unlikely and
610 _IO_legacy_file.
611 * libio/oldfileops.c (_IO_old_file_init_internal): Remove
612 __builtin_expect. Use _IO_legacy_file.
613
614 2019-02-18 Stefan Liebler <stli@linux.ibm.com>
615
616 * sysdeps/unix/sysv/linux/tst-clone3.c (do_test):
617 Initialize ctid with a known value and remove update of ctid
618 after clone.
619 (wait_tid): Adjust arguments and call futex_wait with ctid_val
620 as assumed current value of ctid_ptr.
621
622 2019-02-15 Florian Weimer <fweimer@redhat.com>
623
624 Check that non-sysdeps headers have wrapper headers.
625 * scripts/check-wrapper-headers.py: New file.
626 * Makefile (tests-special): Add check-wrapper-headers.out.
627 (check-wrapper-headers.out): New target.
628 * Rules (tests-special): Add check-wrapper-headers.out.
629 (check-wrapper-headers.out): New target.
630
631 2019-02-15 Florian Weimer <fweimer@redhat.com>
632
633 Add missing header wrappers under include/.
634 * include/ar.h: New file.
635 * include/bits/mqueue2.h: Likewise.
636 * include/bits/stdio.h: Likewise.
637 * include/bits/stdio2.h: Likewise.
638 * include/fstab.h: Likewise.
639 * include/fts.h: Likewise.
640 * include/lastlog.h: Likewise.
641 * include/netinet/icmp6.h: Likewise.
642 * include/netinet/igmp.h: Likewise.
643 * include/netinet/ip6.h: Likewise.
644 * include/re_comp.h: Likewise.
645 * include/regexp.h: Likewise.
646 * include/rpcsvc/bootparam.h: Likewise.
647 * include/rpcsvc/yp_prot.h: Likewise.
648 * include/sys/random.h: Likewise.
649 * include/sys/stropts.h: Likewise.
650 * include/sys/ttychars.h: Likewise.
651 * include/sys/vfs.h: Likewise.
652 * include/wait.h: Likewise.
653
654 2019-02-15 Florian Weimer <fweimer@redhat.com>
655
656 * nptl_db/proc_service.h: Move to ...
657 * sysdeps/nptl/proc_service.h: ... here.
658 * nptl_db/thread_db.h: Move to ...
659 * sysdeps/nptl/thread_db.h: ... here.
660 * nptl/descr.h: Include <thread_db.h>.
661
662 2019-02-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
663
664 * io/Makefile (tests): Add tst-lockf.
665 * io/lockf.c (lockf): Use __fcntl and only define for
666 !__OFF_T_MATCHES_OFF64_T.
667 * io/lockf64.c (__lockf64): Call __fcntl64 and alias to lockf for
668 __OFF_T_MATCHES_OFF64_T case.
669 * io/tst-lockf.c: New file.
670 * sysdeps/unix/sysv/linux/i386/lockf64.c: Remove file.
671 * sysdeps/unix/sysv/linux/arm/lockf64.c: Likewise.
672 * sysdeps/unix/sysv/linux/m68k/lockf64.c: Likewise.
673 * sysdeps/unix/sysv/linux/mips/mips32/lockf64.c: Likewise.
674 * sysdeps/unix/sysv/linux/mips/mips64/n32/lockf64.c: Likewise.
675 * sysdeps/unix/sysv/linux/powerpc/powerpc32/lockf64.c: Likewise.
676 * sysdeps/unix/sysv/linux/s390/s390-32/lockf64.c: Likewise.
677 * sysdeps/unix/sysv/linux/sh/lockf64.c: Likewise.
678 * sysdeps/unix/sysv/linux/sparc/sparc32/lockf64.c: Likewise.
679
680 2019-02-15 Florian Weimer <fweimer@redhat.com>
681
682 [BZ #24211]
683 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Do not read
684 pd->result after the thread descriptor has been freed.
685
686 2019-02-15 Joseph Myers <joseph@codesourcery.com>
687
688 * sunrpc/tst-svc_register.c (rpcbind_address): Remove qualifier
689 from function return type.
690
691 * setjmp/tst-setjmp.c (jump): Use __attribute__ ((__noreturn__)).
692
693 2019-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
694
695 * scripts/test_printers_common.py: Set TERM to a known harmless
696 value.
697
698 2019-02-14 Joseph Myers <joseph@codesourcery.com>
699
700 * sunrpc/xdr.c (xdr_int): Add fall-through comment.
701 (xdr_u_int): Likewise.
702 (xdr_enum): Likewise.
703 (xdr_bytes): Reword fall-through comment.
704 (xdr_string): Likewise.
705
706 2019-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
707
708 [BZ #2421]
709 * nptl/Makefile (lpthread-routines): Remove lll_timedwait_tid.
710 (tests): Add tst-join8 tst-join9.
711 * nptl/lll_timedwait_tid.c: Remove file.
712 * sysdeps/sparc/sparc32/lll_timedwait_tid.c: Likewise.
713 * sysdeps/unix/sysv/linux/i386/lll_timedwait_tid.c: Likewise.
714 * sysdeps/sysv/linux/x86_64/lll_timedwait_tid.c: Likewise.
715 * nptl/pthread_join_common.c (timedwait_tid): New function.
716 (__pthread_timedjoin_ex): Act as cancellation entrypoint is block
717 is set.
718 * nptl/tst-join5.c (thread_join): New function.
719 (tf1, tf2, do_test): Use libsupport and add pthread_timedjoin_np
720 check.
721 * nptl/tst-join8.c: New file.
722 * nptl/tst-join9.c: Likewise.
723 * sysdeps/nptl/lowlevellock-futex.h (lll_futex_wait_cancel,
724 lll_futex_timed_wait_cancel): Add generic macros.
725 * sysdeps/nptl/lowlevellock.h (__lll_timedwait_tid, lll_wait_tid):
726 Remove definitions.
727 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
728 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
729 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
730 * sysdeps/sparc/sparc32/lowlevellock.c (__lll_timedwait_tid):
731 Remove function.
732 * sysdeps/unix/sysv/linux/i386/lowlevellock.S (__lll_timedwait_tid):
733 Likewise.
734 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
735 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
736 (lll_futex_timed_wait_cancel): New macro.
737
738 2019-02-14 Wilco Dijkstra <wdijkstr@arm.com>
739
740 * benchtests/Makefile: Add malloc-simple benchmark.
741 * benchtests/bench-malloc-simple.c: New benchmark.
742
743 2019-02-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
744
745 * benchtests/bench-memmove.c (do_one_test): Remove unused
746 ORIG_SRC.
747 (do_test): Adjust.
748 * benchtests/bench-memmove-large.c (do_one_test): Remove unused
749 ORIG_SRC.
750 (do_test): Adjust.
751
752 2019-01-13 Jim Wilson <jimw@sifive.com>
753
754 [BZ #24040]
755 * elf/Makefile (CFLAGS-tst-unwind-main.c): Add -DUSE_PTHREADS=0.
756 * elf/tst-unwind-main.c: If USE_PTHEADS, include pthread.h and error.h
757 (func): New.
758 (main): If USE_PTHREADS, call pthread_create to run func. Otherwise
759 call func directly.
760 * nptl/Makefile (tests): Add tst-unwind-thread.
761 (CFLAGS-tst-unwind-thread.c): Define.
762 * nptl/tst-unwind-thread.c: New file.
763 * sysdeps/unix/sysv/linux/riscv/clone.S (__thread_start): Mark ra
764 as undefined.
765
766 2019-02-13 Joseph Myers <joseph@codesourcery.com>
767
768 * iconvdata/cns11643.h (ucs4_to_cns11643): Adjust fall-through
769 comment wording.
770 * nis/nis_call.c (__do_niscall3): Likewise.
771
772 * catgets/gencat.c (normalize_line): Use braces around empty
773 'else' body.
774 * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
775 (STAP_PROBE0): Use do {} while (0) for do-nothing definition.
776 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE1): Likewise.
777 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE2): Likewise.
778 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE3): Likewise.
779 [!USE_STAP_PROBE && !__ASSEMBLER__] (STAP_PROBE4): Likewise.
780 * libio/libio.h (_IO_funlockfile): Use ((void) 0) for do-nothing
781 definition.
782
783 * support/test-container.c (recursive_remove): Use FAIL_EXIT1 if
784 execlp returns.
785
786 2019-02-12 Wilco Dijkstra <wdijkstr@arm.com>
787
788 * benchtests/bench-strcasecmp.c (stupid_strcasecmp): Remove.
789 * benchtests/bench-strcasestr.c (stupid_strcasestr): Remove.
790 * benchtests/bench-strchr.c (stupid_strchr): Remove.
791 * benchtests/bench-strcmp.c (stupid_strcmp): Remove.
792 * benchtests/bench-strcspn.c (stupid_strcspn): Remove.
793 * benchtests/bench-strlen.c (builtin_strlen): Remove.
794 * benchtests/bench-strncasecmp.c (stupid_strncasecmp): Remove.
795 * benchtests/bench-strncmp.c (stupid_strncmp): Remove.
796 * benchtests/bench-strpbrk.c (stupid_strpbrk): Remove.
797 * benchtests/bench-strspn.c (stupid_strspn): Remove.
798 * benchtests/Makefile: Remove bench-bcopy.c and bench-bzero.c.
799 * benchtests/bench-bcopy.c: Delete file.
800 * benchtests/bench-bzero.c: Likewise.
801 * benchtests/bench-memccpy.c (stupid_memccpy): Remove.
802 (simple_memccpy): Remove.
803 (generic_memccpy): Add function.
804 * benchtests/bench-memcpy.c: (builtin_memcpy): Remove.
805 * benchtests/bench-memmove.c (simple_bcopy): Remove.
806 * benchtests/bench-mempcpy.c (simple_mempcpy): Remove.
807 (generic_mempcpy): Add new function.
808 * benchtests/bench-memset.c (simple_bzero): Remove.
809 (builtin_bzero): Remove.
810 (builtin_memset): Remove.
811 * benchtests/bench-rawmemchr.c (simple_rawmemchr): Remove.
812 (generic_rawmemchr): Add new function.
813
814 2019-02-12 Florian Weimer <fweimer@redhat.com>
815
816 * nss/getent.c (ahosts_keys_int): Include IPv6 scope ID in output.
817
818 2019-02-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
819
820 [BZ #24122]
821 * elf/Makefile (tests): Add tst-audit13.
822 (modules-names): Add tst-audit13mod1.
823 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
824 rule.
825 * elf/tst-audit13.c: New file.
826 * elf/tst-audit13mod1.c: Likewise.
827
828 2019-02-12 Florian Weimer <fweimer@redhat.com>
829
830 [BZ #24122]
831 * elf/rtld.c (unload_audit_module): New function.
832 (report_audit_module_load_error): Likewise.
833 (load_audit_module): Likewise. Extracted from dl_main. Call
834 _dl_close if the laversion symbol cannot be found. Use early
835 returns for error handling. Add malloc error check. Check for a
836 zero return value from la_version. Remove spurious comment about
837 static TLS initialization. Remove useless casts.
838 (notify_audit_modules_of_loaded_object): New function. Extracted
839 from dl_main.
840 (load_audit_module): Likewise.
841 (dl_main): Call load_audit_modules.
842
843 2019-02-12 Joseph Myers <joseph@codesourcery.com>
844
845 * elf/dl-exception.c (_dl_exception_create_format): Add
846 fall-through comments.
847 * elf/ldconfig.c (parse_conf_include): Likewise.
848 * elf/rtld.c (print_statistics): Likewise.
849 * locale/programs/charmap.c (parse_charmap): Likewise.
850 * misc/mntent_r.c (__getmntent_r): Likewise.
851 * posix/wordexp.c (parse_arith): Likewise.
852 (parse_backtick): Likewise.
853 * resolv/ns_ttl.c (ns_parse_ttl): Likewise.
854 * sysdeps/x86/cpu-features.c (init_cpu_features): Likewise.
855 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
856
857 2019-02-11 Paul A. Clarke <pc@us.ibm.com>
858
859 * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrtf):
860 Use float instead of double.
861
862 2019-02-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
863
864 * time/strftime_l.c: Fix a few whitespace arrangement inconsistencies.
865
866 2019-02-08 Joseph Myers <joseph@codesourcery.com>
867
868 * sysdeps/powerpc/bits/mathinline.h: Remove.
869
870 2019-02-08 Florian Weimer <fweimer@redhat.com>
871
872 math: Enable <bits/math-finite.h> sysdeps override, as used on ia64.
873 * math/bits/math-finite.h: Move to ...
874 * bits/math-finite.h: ... here.
875
876 2019-02-08 Florian Weimer <fweimer@redhat.com>
877
878 * sysdeps/generic/bits/unistd_ext.h: Move to ...
879 * bits/unistd_ext.h: here.
880
881 2019-02-08 Patsy Griffin Franklin <pfrankli@redhat.com>
882
883 [BZ #21915]
884 * nss/Makefile (test-container): Add tst-nss-files-hosts-long.
885 * nss/tst-nss-files-hosts-long.c: New file.
886 * nss/tst-nss-files-hosts-long.root: New directory.
887 * nss/tst-nss-files-hosts-long.root/etc: Likewise.
888 * nss/tst-nss-files-hosts-long.root/etc/hosts: New file.
889
890 2019-02-08 Florian Weimer <fweimer@redhat.com>
891
892 * include/bits/unistd_ext.h: Remove file.
893 * posix/bits/unistd_ext.h: Move to ...
894 * sysdeps/generic/bits/unistd_ext.h: ... here.
895
896 2019-02-08 Florian Weimer <fweimer@redhat.com>
897
898 * include/bits/unistd_ext.h: New file.
899
900 2019-02-08 TAMUKI Shoichi <tamuki@linet.gr.jp>
901
902 * time/tst-strftime2.c: Use array_length macros instead of magic
903 numbers.
904
905 2019-02-08 Florian Weimer <fweimer@redhat.com>
906
907 [BZ #24161]
908 * sysdeps/nptl/fork.h (__run_fork_handlers): Add multiple_threads
909 argument.
910 * nptl/register-atfork.c (__run_fork_handlers): Only perform
911 locking if the new do_locking argument is true.
912 * sysdeps/nptl/fork.c (__libc_fork): Pass multiple_threads to
913 __run_fork_handlers.
914
915 2019-02-08 Florian Weimer <fweimer@redhat.com>
916
917 [BZ #6399]
918 Linux: Add gettid system call wrapper.
919 * posix/Makefile (headers): Add bits/unistd_ext.h.
920 * posix/bits/unistd_ext.h: New file.
921 * posix/unistd.h: Include it.
922 * manual/process.texi (Process Identification): Document gettid.
923 * sysdeps/unix/sysv/linux/Makefile [subdir == misc] (tests): Add
924 tst-gettid, tst-gettid-kill.
925 (tst-gettid): Link with $(shared-thread-library).
926 * sysdeps/unix/sysv/linux/Version (GLIBC_2.30): Export gettid.
927 * sysdeps/unix/sysv/linux/bits/unistd_ext.h: New file.
928 * sysdeps/unix/sysv/linux/bits/syscalls.list (gettid): Add.
929 * sysdeps/unix/sysv/linux/bits/tst-gettid.c: New file.
930 * sysdeps/unix/sysv/linux/bits/tst-gettid-kill.c: Likewise.
931 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.30):
932 Add gettid.
933 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.30):
934 Likewise.
935 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.30): Likewise.
936 * sysdeps/unix/sysv/linux/csky/libc.abilist (GLIBC_2.30):
937 Likewise.
938 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.30):
939 Likewise.
940 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.30):
941 Likewise.
942 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.30):
943 Likewise.
944 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.30):
945 Likewise.
946 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.30):
947 Likewise.
948 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.30):
949 Likewise.
950 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
951 (GLIBC_2.30): Likewise.
952 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
953 (GLIBC_2.30): Likewise.
954 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
955 (GLIBC_2.30): Likewise.
956 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
957 (GLIBC_2.30): Likewise.
958 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.30):
959 Likewise.
960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
961 (GLIBC_2.30): Likewise.
962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
963 (GLIBC_2.30): Likewise.
964 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/libc.abilist
965 (GLIBC_2.30): Likewise.
966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/libc.abilist
967 (GLIBC_2.30): Likewise.
968 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.30):
969 Likewise.
970 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.30):
971 Likewise.
972 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.30):
973 Likewise.
974 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.30): Likewise.
975 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.30):
976 Likewise.
977 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.30):
978 Likewise.
979 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.30):
980 Likewise.
981 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.30):
982 Likewise.
983 * sysdeps/unix/sysv/linux/tst-setgetname.c (gettid): Remove.
984
985 2019-02-07 Florian Weimer <fweimer@redhat.com>
986
987 * rt/clock-compat.c (COMPAT_REDIRECT): Turn librt forwarders into
988 compatibility symbols.
989
990 2019-02-07 Stefan Liebler <stli@linux.ibm.com>
991
992 [BZ #24180]
993 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
994 Add compiler barriers and comments.
995
996 2019-02-07 Florian Weimer <fweimer@redhat.com>
997
998 * include/array_length.h (array_length): Do not use a statement
999 expression and _Static_assert, so that array_length can be used at
1000 file scope and as a constant expression.
1001
1002 2019-02-07 Florian Weimer <fweimer@redhat.com>
1003
1004 * support/xdlfcn.h (xdlmopen): Declare.
1005 * support/xdlmopen.c: New file.
1006 * support/Makefile (libsupport-routines): Add xdlmopen.
1007
1008 2019-02-06 Joseph Myers <joseph@codesourcery.com>
1009
1010 * elf/dl-load.h (_dl_postprocess_loadcmd): Use __always_inline
1011 before return type, without separate inline.
1012 * elf/dl-tunables.c (maybe_enable_malloc_check): Likewise.
1013 * elf/dl-tunables.h (tunable_is_name): Likewise.
1014 * malloc/malloc.c (do_set_trim_threshold): Likewise.
1015 (do_set_top_pad): Likewise.
1016 (do_set_mmap_threshold): Likewise.
1017 (do_set_mmaps_max): Likewise.
1018 (do_set_mallopt_check): Likewise.
1019 (do_set_perturb_byte): Likewise.
1020 (do_set_arena_test): Likewise.
1021 (do_set_arena_max): Likewise.
1022 (do_set_tcache_max): Likewise.
1023 (do_set_tcache_count): Likewise.
1024 (do_set_tcache_unsorted_limit): Likewise.
1025 * nis/nis_subr.c (count_dots): Likewise.
1026 * nptl/allocatestack.c (advise_stack_range): Likewise.
1027 * sysdeps/ieee754/dbl-64/s_sin.c (do_cos): Likewise.
1028 (do_sin): Likewise.
1029 (reduce_sincos): Likewise.
1030 (do_sincos): Likewise.
1031 * sysdeps/unix/sysv/linux/x86/elision-conf.c
1032 (do_set_elision_enable): Likewise.
1033 (TUNABLE_CALLBACK_FNDECL): Likewise.
1034
1035 2019-02-06 Florian Weimer <fweimer@redhat.com>
1036
1037 * support/xdlfcn.c (xdlopen, xdlclose): Do not call dlerror.
1038 (xdlsym): Use dlerror to detect a NULL symbol.
1039
1040 2019-02-06 Florian Weimer <fweimer@redhat.com>
1041
1042 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Do not include
1043 <stap-probe.h>.
1044 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1045
1046 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1047
1048 * libio/tst-bz24153.c (wide): Use wide char format specifier.
1049
1050 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1051
1052 * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
1053 __wmemcmp and weak alias to wmemcmp.
1054
1055 2019-02-06 Stefan Liebler <stli@linux.ibm.com>
1056
1057 [BZ #23403]
1058 * nptl/allocatestack.c (allocate_stack): Align pointer pd for
1059 TLS_TCB_AT_TP tls variant.
1060 * nptl/tst-tls1.c: Migrate to support/test-driver.c.
1061 Add alignment checks.
1062 * support/Makefile (libsupport-routines): Add xposix_memalign and
1063 xpthread_setstack.
1064 * support/support.h: Add xposix_memalign.
1065 * support/xthread.h: Add xpthread_attr_setstack.
1066 * support/xposix_memalign.c: New File.
1067 * support/xpthread_attr_setstack.c: Likewise.
1068
1069 2019-02-05 Florian Weimer <fweimer@redhat.com>
1070
1071 [BZ #24164]
1072 arm: Use "nr" constraint for Systemtap probes, to avoid the
1073 compiler using memory operands for constants, due to the "o"
1074 alternative in the default "nor" constraint.
1075 * include/stap-probe.h [USE_STAP_PROBE]: Include
1076 <stap-probe-machine.h>
1077 * sysdeps/generic/stap-probe-machine.h: New file.
1078 * sysdeps/arm/stap-probe-machine.h: Likewise.
1079
1080 2019-02-04 Joseph Myers <joseph@codesourcery.com>
1081
1082 * malloc/malloc.c (tcache_get): Compare tcache->counts[tc_idx]
1083 with 0, not tcache->entries[tc_idx].
1084
1085 * nscd/connections.c (reqinfo): Initialize SHUTDOWN element only
1086 once.
1087
1088 2019-02-04 Andreas Schwab <schwab@suse.de>
1089
1090 [BZ #16976]
1091 [BZ #17396]
1092 * posix/fnmatch_loop.c (internal_fnmatch, internal_fnwmatch): When
1093 looking up collating elements match against (wide) character
1094 sequence instead of name. Correct alignment adjustment.
1095 * posix/fnmatch.c: Don't include "../locale/elem-hash.h".
1096 (WMEMCMP) [HANDLE_MULTIBYTE]: Define.
1097 * posix/Makefile (tests): Add tst-fnmatch4 and tst-fnmatch5.
1098 (LOCALES): Add cs_CZ.ISO-8859-2.
1099 * posix/tst-fnmatch4.c: New file.
1100 * posix/tst-fnmatch5.c: New file.
1101 * include/wchar.h (__wmemcmp): Declare.
1102 * wcsmbs/wmemcmp.c: Define __wmemcmp and add wmemcmp as weak alias.
1103 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
1104 * sysdeps/x86_64/multiarch/wmemcmp.c: Likewise.
1105 * sysdeps/s390/wmemcmp.c: Likewise.
1106
1107 2019-02-04 H.J. Lu <hongjiu.lu@intel.com>
1108
1109 [BZ #24155]
1110 CVE-2019-7309
1111 * NEWS: Updated for CVE-2019-7309.
1112 * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the
1113 upper 32 bits of RDX register for x32. Use unsigned Jcc
1114 instructions, instead of signed.
1115 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2.
1116 * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test.
1117
1118 2019-02-04 Florian Weimer <fweimer@redhat.com>
1119
1120 * posix/spawn.h (posix_spawn, posix_spawnp): Add __nonnull attribute.
1121 (posix_spawnattr_init, posix_spawnattr_destroy): Likewise.
1122 (posix_spawnattr_getsigdefault, posix_spawnattr_setsigdefault):
1123 Likewise.
1124 (posix_spawnattr_getsigmask, posix_spawnattr_setsigmask): Likewise.
1125 (posix_spawnattr_getflags, posix_spawnattr_setflags): Likewise.
1126 (posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Likewise.
1127 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy):
1128 Likewise.
1129 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam):
1130 Likewise.
1131 (posix_spawn_file_actions_init, posix_spawn_file_actions_destroy):
1132 Likewise.
1133 (posix_spawn_file_actions_addopen): Likewise.
1134 (posix_spawn_file_actions_addclose): Likewise.
1135 (posix_spawn_file_actions_adddup2): Likewise.
1136 (posix_spawn_file_actions_addchdir_np): Likewise. Add __restrict
1137 qualifiers.
1138 (posix_spawn_file_actions_addfchdir_np): Likewise.
1139
1140 2019-02-04 David Newall <glibc@davidnewall.com>
1141
1142 elf: Implement --preload option for the dynamic linker.
1143 * elf/rtld.c (preloadarg): New variable.
1144 (handle_preload_list): Pass through “where” argument to
1145 do_preload.
1146 (dl_main): Handle "--preload" and add second call to
1147 handle_preload_list.
1148 * elf/Makefile (tests-special): Add tst-rtld-preload.out.
1149 (tst-rtld-preload-OBJS): Set variable.
1150 (tst-rtld-preload.out): New target.
1151 * elf/tst-rtld-preload.sh: New file.
1152
1153 2019-02-04 Matthew Malcomson <matthew.malcomson@arm.com>
1154
1155 * Makefile (testrun.sh): Exit in case of incorrect argument.
1156
1157 2019-02-04 Florian Weimer <fweimer@redhat.com>
1158
1159 * time/tzfile.c (__tzfile_read): Reorder suballocations to avoid
1160 alignment gaps.
1161
1162 2019-02-03 Florian Weimer <fweimer@redhat.com>
1163
1164 * time/tzfile.c (__tzfile_read): Use struct alloc_buffer and its
1165 implicit overflow checks.
1166
1167 2019-02-03 Aurelien Jarno <aurelien@aurel32.net>
1168
1169 * stdlib/isomac.c: Include <unistd.h>.
1170
1171 2019-02-03 Florian Weimer <fweimer@redhat.com>
1172
1173 * include/time.h (__tzfile_default): Use int, not long int, for
1174 the GMT offsets.
1175 * time/tzfile.c (struct ttinfo): Change type of the offset member
1176 to int.
1177 (__tzfile_read): Remove useless cast.
1178 (__tzfile_default): Adjust prototype.
1179 * time/tzset.c (tz_rule): Change type of the offset member to int.
1180 (parse_offset): Change the type of the sign variable to int.
1181
1182 2019-02-03 Florian Weimer <fweimer@redhat.com>
1183
1184 [BZ #24153]
1185 * debug/gets_chk.c (__gets_chk): Use stdin instead of _IO_stdin.
1186 * libio/getchar.c (getchar): Likewise.
1187 * libio/getchar_u.c (getchar_unlocked): Likewise.
1188 * libio/getwchar.c (getwchar): Likewise.
1189 * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1190 * libio/iogets.c (_IO_gets): Likewise.
1191 * libio/vscanf.c (_IO_vscanf): Likewise.
1192 * libio/vwscanf.c (__vwscanf): Likewise.
1193 * libio/tst-bz24153.c: New file.
1194 * libio/Makefile (tests): Add it.
1195
1196 2019-02-02 Florian Weimer <fweimer@redhat.com>
1197
1198 [BZ #14829]
1199 * manual/resource.texi (Basic Scheduling Functions): Add
1200 portability note. Change process to task throughout the section.
1201 Remove incorrect comment about sched_yield as it affects
1202 tasks/threads, not entire processes.
1203 * sysdeps/unix/sysv/linux/bits/posix_opt.h
1204 (_POSIX_PRIORITY_SCHEDULING): Update comment.
1205
1206 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1207
1208 * configure.ac (libc_cv_compiler_ok): Require GCC 6.2 or later.
1209 * configure: Regenerated.
1210 * manual/install.texi (Tools for Compilation): Update minimum GCC
1211 version.
1212 * INSTALL: Regenerated.
1213
1214 2019-02-01 Florian Weimer <fweimer@redhat.com>
1215
1216 * support/support_test_compare_string.c
1217 (support_test_compare_string): Use "string" in error message.
1218 * support/tst-test_compare_string.c (do_test): Adjust.
1219
1220 2019-02-01 Florian Weimer <fweimer@redhat.com>
1221
1222 * support/support_format_address_family.c
1223 (support_format_address_family): Handle AF_LOCAL, AF_UNSPEC.
1224
1225 2019-02-01 Florian Weimer <fweimer@redhat.com>
1226
1227 * manual/socket.texi (Internet Address Formats): Clarify the byte
1228 order of struct sockaddr_in, struct sockaddr_in6. Document
1229 sin6_flowinfo and sin6_scope_id.
1230
1231 2019-02-01 Wilco Dijkstra <wdijkstr@arm.com>
1232
1233 * sysdeps/posix/clock_getres.c (__clock_getres): Cleanup.
1234 * sysdeps/unix/clock_gettime.c (__clock_gettime): Cleanup.
1235 * sysdeps/unix/clock_settime.c (__clock_settime): Cleanup.
1236 * sysdeps/unix/sysv/linux/clock_getres.c (__clock_getres): Cleanup.
1237 * sysdeps/unix/sysv/linux/clock_gettime.c (__clock_gettime): Cleanup.
1238 * sysdeps/unix/sysv/linux/clock_settime.c (__clock_settime): Cleanup.
1239
1240 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1241
1242 * sysdeps/aarch64/memchr.S (__memchr): Rename to MEMCHR.
1243 [!MEMCHR](MEMCHR): Set to __memchr.
1244 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1245 Add memchr_generic and memchr_nosimd.
1246 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1247 (__libc_ifunc_impl_list): Add memchr ifuncs.
1248 * sysdeps/aarch64/multiarch/memchr.c: New file.
1249 * sysdeps/aarch64/multiarch/memchr_generic.S: Likewise.
1250 * sysdeps/aarch64/multiarch/memchr_nosimd.S: Likewise.
1251
1252 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1253
1254 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
1255 Add memset_emag.
1256 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
1257 (__libc_ifunc_impl_list): Add __memset_emag to memset ifunc.
1258 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc):
1259 Add IS_EMAG check for ifunc dispatch.
1260 * sysdeps/aarch64/multiarch/memset_base64.S: New file.
1261 * sysdeps/aarch64/multiarch/memset_emag.S: New file.
1262
1263 2019-02-01 Feng Xue <fxue@os.amperecomputing.com>
1264
1265 * manual/tunables.texi (Tunable glibc.cpu.name): Add emag.
1266 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1267 Add emag.
1268 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_EMAG):
1269 New macro.
1270
1271 2019-02-01 Stefan Liebler <stli@linux.ibm.com>
1272
1273 * posix/tst-spawn do_test(): Move waitpid before posix_spawn.
1274
1275 2019-01-31 Vineet Gupta <vgupta@synopsys.com>
1276
1277 * sysdeps/unix/make-syscalls.sh: Fix comment referencing
1278 syscall-template file.
1279
1280 2019-01-31 Carlos O'Donell <carlos@redhat.com>
1281 Torvald Riegel <triegel@redhat.com>
1282 Rik Prohaska <prohaska7@gmail.com>
1283
1284 [BZ# 23844]
1285 * nptl/Makefile (tests): Add tst-rwlock-tryrdlock-stall, and
1286 tst-rwlock-trywrlock-stall.
1287 * nptl/pthread_rwlock_tryrdlock.c (__pthread_rwlock_tryrdlock):
1288 Wake waiters if PTHREAD_RWLOCK_FUTEX_USED is set.
1289 * nptl/pthread_rwlock_trywrlock.c (__pthread_rwlock_trywrlock):
1290 Set __wrphase_fute to 1 only if we started the write phase.
1291 * nptl/tst-rwlock-tryrdlock-stall.c: New file.
1292 * nptl/tst-rwlock-trywrlock-stall.c: New file.
1293 * support/Makefile (libsupport-routines): Add xpthread_rwlock_destroy.
1294 * support/xpthread_rwlock_destroy.c: New file.
1295 * support/xthread.h: Declare xpthread_rwlock_destroy.
1296
1297 2019-02-01 Joseph Myers <joseph@codesourcery.com>
1298
1299 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
1300 version to 4.0.2.
1301
1302 2019-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1303
1304 [BZ #24051]
1305 * libio/ioputs.c (_IO_puts): Use stdout instead of _IO_stdout.
1306 * libio/fileops.c (_IO_new_file_underflow): Likewise
1307 * libio/wfileops.c (_IO_wfile_underflow): Likewise
1308 * libio/putchar.c (putchar): Likewise.
1309 * libio/putchar_u.c (putchar_unlocked): Likewise.
1310 * libio/putwchar.c (putchar): Likewise.
1311 * libio/putwchar_u.c (putwchar_unlocked): Likewise.
1312 * libio/tst-bz24051.c: New test.
1313 * libio/Makefile (tests): Add tst-bz24051
1314
1315 2019-01-31 Paul Eggert <eggert@cs.ucla.edu>
1316
1317 regex: fix read overrun [BZ #24114]
1318 Problem found by AddressSanitizer, reported by Hongxu Chen in:
1319 https://debbugs.gnu.org/34140
1320 * posix/regexec.c (proceed_next_node):
1321 Do not read past end of input buffer.
1322
1323 2019-01-31 Florian Weimer <fweimer@redhat.com>
1324
1325 [BZ #24059]
1326 * nss/nss_files/files-alias.c (get_next_alias): Handle
1327 continuation line without newline at the end.
1328 * nss/tst-nss-files-alias-truncated.c: New file.
1329 * nss/Makefile [$(build-shared)] (tests): Add
1330 tst-nss-files-alias-truncated.
1331 (tst-nss-files-alias-truncated): Link with libnss_files.so.
1332 * support/namespace.h (struct support_chroot_configuration): Add
1333 aliases member.
1334 (struct support_chroot): Add path_aliases member.
1335 * support/support_chroot.c (support_chroot_create): Handle
1336 aliases.
1337 (support_chroot_free): Free path_aliases.
1338
1339 2019-01-31 Siddhesh Poyarekar <siddhesh@sourceware.org>
1340
1341 * version.h (RELEASE): Set to "development".
1342 (VERSION): Set to "2.29.9000".
1343 * NEWS: Add section for 2.30.
1344
1345 * version.h (RELEASE): Set to "stable".
1346 (VERSION): Set to "2.29".
1347 * include/features.h (__GLIBC_MINOR__): Set to 2.29.
1348
1349 * NEWS: Add the list of bugs fixed in 2.29.
1350 * manual/contrib.texi: Update contributors list with some more
1351 names.
1352 * manual/install.texi: Update latest versions of packages
1353 tested.
1354 * INSTALL: Regenerated.
1355
1356 2019-01-25 Siddhesh Poyarekar <siddhesh@sourceware.org>
1357
1358 * po/be.po: Update translations.
1359 * po/bg.po: Likewise.
1360 * po/ca.po: Likewise.
1361 * po/cs.po: Likewise.
1362 * po/da.po: Likewise.
1363 * po/de.po: Likewise.
1364 * po/el.po: Likewise.
1365 * po/eo.po: Likewise.
1366 * po/es.po: Likewise.
1367 * po/fi.po: Likewise.
1368 * po/fr.po: Likewise.
1369 * po/gl.po: Likewise.
1370 * po/hr.po: Likewise.
1371 * po/hu.po: Likewise.
1372 * po/ia.po: Likewise.
1373 * po/id.po: Likewise.
1374 * po/it.po: Likewise.
1375 * po/ja.po: Likewise.
1376 * po/ko.po: Likewise.
1377 * po/lt.po: Likewise.
1378 * po/nb.po: Likewise.
1379 * po/nl.po: Likewise.
1380 * po/pl.po: Likewise.
1381 * po/pt_BR.po: Likewise.
1382 * po/ru.po: Likewise.
1383 * po/rw.po: Likewise.
1384 * po/sk.po: Likewise.
1385 * po/sl.po: Likewise.
1386 * po/sv.po: Likewise.
1387 * po/tr.po: Likewise.
1388 * po/uk.po: Likewise.
1389 * po/vi.po: Likewise.
1390 * po/zh_CN.po: Likewise.
1391 * po/zh_TW.po: Likewise.
1392
1393 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
1394
1395 [BZ #24130]
1396 * sysdeps/alpha/remqu.S (__remqu): Add missing restore
1397 of $f3 register on $y_is_neg path.
1398
1399 2019-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
1400
1401 [BZ #24110]
1402 * hurd/hurdsig.c (_hurd_thread_sigstate): Set SS_DISABLE in
1403 sigaltstack.ss_flags.
1404
1405 2019-01-24 TAMUKI Shoichi <tamuki@linet.gr.jp>
1406
1407 [BZ #23758]
1408 * manual/time.texi (strftime): Document "%Ey".
1409 * time/strftime_l.c (__strftime_internal): Set the default width
1410 padding with zero of "%Ey" to 2.
1411
1412 [BZ #24096]
1413 * manual/time.texi (strftime): Document "%EC" and "%EY".
1414 * time/Makefile (tests): Add tst-strftime2.
1415 (LOCALES): Add ja_JP.UTF-8, lo_LA.UTF-8, and th_TH.UTF-8.
1416 * time/strftime_l.c (__strftime_internal): Add argument yr_spec to
1417 override padding for "%Ey".
1418 If an optional flag ('_' or '-') is specified to "%EY", interpret the
1419 "%Ey" in the subformat as if decorated with that flag.
1420 * time/tst-strftime2.c: New file.
1421
1422 2019-01-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1423
1424 * support/xsigstack.c (MAP_NORESERVE, MAP_STACK): Define if they
1425 are not defined.
1426
1427 [BZ #24122]
1428 * elf/Makefile (tests): Add tst-audit13.
1429 (modules-names): Add tst-audit13mod1.
1430 (tst-audit13.out, LDFLAGS-tst-audit13mod1.so, tst-audit13-ENV): New
1431 rule.
1432 * elf/rtld.c (dl_main): Handle invalid audit module version.
1433 * elf/tst-audit13.c: New file.
1434 * elf/tst-audit13mod1.c: Likewise.
1435
1436 2019-01-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
1437
1438 * sysdeps/mach/hurd/faccessat.c (__faccessat_common): Check for errors
1439 returned by __hurd_at_flags.
1440 * hurd/lookup-at.c (__file_name_lookup_at): When at_flags contains
1441 AT_EMPTY_PATH, call __dir_lookup and __hurd_file_name_lookup_retry
1442 directly instead of __hurd_file_name_lookup.
1443
1444 2019-01-21 Joseph Myers <joseph@codesourcery.com>
1445
1446 * scripts/build-many-glibcs.py (Context.checkout): Default
1447 binutils version to 2.32 branch.
1448
1449 2019-01-21 Florian Weimer <fweimer@redhat.com>
1450
1451 [BZ #20018]
1452 CVE-2016-10739
1453 resolv: Reject trailing characters in host names
1454 * include/arpa/inet.h (__inet_aton_exact): Declare.
1455 (inet_aton): Remove hidden prototype. No longer used internally.
1456 * nscd/gai.c (__inet_aton): Do not define.
1457 * nscd/gethstbynm3_r.c (__inet_aton): Likewise.
1458 * nss/digits_dots.c (__inet_aton): Likewise.
1459 (__nss_hostname_digits_dots_context): Call __inet_aton_exact.
1460 * resolv/Makefile (tests-internal): Add tst-inet_aton_exact.
1461 (tests): Add tst-resolv-nondecimal, tst-resolv-trailing.
1462 (tst-resolv-nondecimal): Link with libresolv.so and libpthread.
1463 (tst-resolv-trailing): Likewise.
1464 * resolv/Versions (GLIBC_PRIVATE): Export __inet_aton_exact from
1465 libc.
1466 * resolv/inet_addr.c (inet_aton_end): Remame from __inet_aton.
1467 Make static. Add endp parameter.
1468 (__inet_aton_exact): New function.
1469 (__inet_aton_ignore_trailing): New function, aliased to inet_aton.
1470 (__inet_addr): Call inet_aton_end.
1471 * resolv/res_init.c (res_vinit_1): Truncate nameserver for IPv4,
1472 not just IPv6. Call __inet_aton_exact.
1473 * resolv/tst-aton.c: Switch to <support/test-driver.c>.
1474 (tests): Make const. Add additional test cases with trailing
1475 characters.
1476 (do_test): Use array_length.
1477 * resolv/tst-inet_aton_exact.c: New file.
1478 * resolv/tst-resolv-trailing.c: Likewise.
1479 * resolv/tst-resolv-nondecimal.c: Likewise.
1480 * sysdeps/posix/getaddrinfo.c (gaih_inet): Call __inet_aton_exact.
1481
1482 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1483
1484 [BZ# 24097]
1485 CVE-2019-6488
1486 * sysdeps/x86_64/multiarch/strlen-avx2.S: Use RSI_LP for length.
1487 Clear the upper 32 bits of RSI register.
1488 * sysdeps/x86_64/strlen.S: Use RSI_LP for length.
1489 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strnlen
1490 and tst-size_t-wcsnlen.
1491 * sysdeps/x86_64/x32/tst-size_t-strnlen.c: New file.
1492 * sysdeps/x86_64/x32/tst-size_t-wcsnlen.c: Likewise.
1493
1494 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1495
1496 [BZ# 24097]
1497 CVE-2019-6488
1498 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Use RDX_LP for length.
1499 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1500 * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1501 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncpy.
1502 * sysdeps/x86_64/x32/tst-size_t-strncpy.c: New file.
1503
1504 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1505
1506 [BZ# 24097]
1507 CVE-2019-6488
1508 * sysdeps/x86_64/multiarch/strcmp-avx2.S: Use RDX_LP for length.
1509 * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
1510 * sysdeps/x86_64/strcmp.S: Likewise.
1511 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-strncasecmp,
1512 tst-size_t-strncmp and tst-size_t-wcsncmp.
1513 * sysdeps/x86_64/x32/tst-size_t-strncasecmp.c: New file.
1514 * sysdeps/x86_64/x32/tst-size_t-strncmp.c: Likewise.
1515 * sysdeps/x86_64/x32/tst-size_t-wcsncmp.c: Likewise.
1516
1517 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1518
1519 [BZ# 24097]
1520 CVE-2019-6488
1521 * sysdeps/x86_64/multiarch/memset-avx512-no-vzeroupper.S: Use
1522 RDX_LP for length. Clear the upper 32 bits of RDX register.
1523 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S: Likewise.
1524 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-wmemset.
1525 * sysdeps/x86_64/x32/tst-size_t-memset.c: New file.
1526 * sysdeps/x86_64/x32/tst-size_t-wmemset.c: Likewise.
1527
1528 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1529
1530 [BZ# 24097]
1531 CVE-2019-6488
1532 * sysdeps/x86_64/memrchr.S: Use RDX_LP for length.
1533 * sysdeps/x86_64/multiarch/memrchr-avx2.S: Likewise.
1534 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memrchr.
1535 * sysdeps/x86_64/x32/tst-size_t-memrchr.c: New file.
1536
1537 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1538
1539 [BZ# 24097]
1540 CVE-2019-6488
1541 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Use RDX_LP for
1542 length. Clear the upper 32 bits of RDX register.
1543 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1544 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
1545 Likewise.
1546 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:
1547 Likewise.
1548 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcpy.
1549 tst-size_t-wmemchr.
1550 * sysdeps/x86_64/x32/tst-size_t-memcpy.c: New file.
1551
1552 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1553
1554 [BZ# 24097]
1555 CVE-2019-6488
1556 * sysdeps/x86_64/multiarch/memcmp-avx2-movbe.S: Use RDX_LP for
1557 length. Clear the upper 32 bits of RDX register.
1558 * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1559 * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1560 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp and
1561 tst-size_t-wmemcmp.
1562 * sysdeps/x86_64/x32/tst-size_t-memcmp.c: New file.
1563 * sysdeps/x86_64/x32/tst-size_t-wmemcmp.c: Likewise.
1564
1565 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 [BZ# 24097]
1568 CVE-2019-6488
1569 * sysdeps/x86_64/memchr.S: Use RDX_LP for length. Clear the
1570 upper 32 bits of RDX register.
1571 * sysdeps/x86_64/multiarch/memchr-avx2.S: Likewise.
1572 * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memchr and
1573 tst-size_t-wmemchr.
1574 * sysdeps/x86_64/x32/test-size_t.h: New file.
1575 * sysdeps/x86_64/x32/tst-size_t-memchr.c: Likewise.
1576 * sysdeps/x86_64/x32/tst-size_t-wmemchr.c: Likewise.
1577
1578 2019-01-18 Florian Weimer <fweimer@redhat.com>
1579
1580 [BZ #24112]
1581 resolv: Do not send queries for non-host-names in nss_dns.
1582 * resolv/nss_dns/dns-host.c (check_name): New function.
1583 (_nss_dns_gethostbyname2_r): Use it.
1584 (_nss_dns_gethostbyname_r): Likewise.
1585 (_nss_dns_gethostbyname4_r): Likewise.
1586
1587 2019-01-21 Florian Weimer <fweimer@redhat.com>
1588
1589 * resolv/inet_addr.c: Reformat to GNU style.
1590 (__inet_addr, __inet_aton): Update comment.
1591
1592 2019-01-18 Florian Weimer <fweimer@redhat.com>
1593
1594 malloc: Revert commit 6923f6db1e688dedcf3a6556da76e0bf24a41872
1595 ("malloc: Use current (C11-style) atomics for fastbin access").
1596 This commit introduces a substantial performance regression on
1597 POWER and Aarch64.
1598 * malloc/malloc.c (fastbin_push_entry, fastbin_pop_entry): Remove.
1599 (REMOVE_FB): Define.
1600 (_int_malloc): Use it and reindent.
1601 (_int_free): Use CAS loop with
1602 catomic_compare_and_exchange_val_rel.
1603 (malloc_consolidate): Use atomic_exchange_acq.
1604
1605
1606 2019-01-18 H.J. Lu <hongjiu.lu@intel.com>
1607
1608 * signal/Makefile (LDFLAGS-tst-minsigstksz-1): New. Set to
1609 -Wl,-z,now.
1610 (LDFLAGS-tst-minsigstksz-2): Likewise.
1611 (LDFLAGS-tst-minsigstksz-3): Likewise.
1612 (LDFLAGS-tst-minsigstksz-3a): Likewise.
1613 (LDFLAGS-tst-minsigstksz-4): Likewise.
1614
1615 2019-01-18 TAMUKI Shoichi <tamuki@linet.gr.jp>
1616
1617 * manual/time.texi (strftime): Fix the wording to "alternative" rather
1618 than "alternate".
1619
1620 2019-01-16 Paul A. Clarke <pc@us.ibm.com>
1621
1622 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Fix #ifdef.
1623
1624 2019-01-16 Zack Weinberg <zackw@panix.com>
1625
1626 * support/xsignal.h (xalloc_sigstack, xfree_sigstack)
1627 (xget_sigstack_location): New test support functions.
1628 * support/xsigstack.c: New file, implementing them.
1629 * support/tst-xsigstack.c: New test for them.
1630 * support/Makefile: Update.
1631
1632 * signal/tst-minsigstksz-1.c
1633 * signal/tst-minsigstksz-2.c
1634 * signal/tst-minsigstksz-3.c
1635 * signal/tst-minsigstksz-3a.c
1636 * signal/tst-minsigstksz-4.c: New tests.
1637 * signal/Makefile: Run them.
1638
1639 2019-01-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
1640
1641 * po/libc.pot: Regenerate.
1642
1643 2019-01-15 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
1644
1645 * math/libm-test-fma.inc (fma_test_data): Set
1646 XFAIL_ROUNDING_IBM128_LIBGCC to more tests.
1647
1648 2019-01-15 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1649
1650 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c:
1651 (do_test): Changed __vector __int128_t to __vector unsigned int.
1652
1653 2019-01-14 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
1654
1655 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
1656 strcat-avx2, strncat-avx2, strcpy-avx2, strncpy-avx2,
1657 stpcpy-avx2 and stpncpy-avx2.
1658 * sysdeps/x86_64/multiarch/ifunc-impl-list.c:
1659 (__libc_ifunc_impl_list): Add tests for __strcat_avx2,
1660 __strncat_avx2, __strcpy_avx2, __strncpy_avx2, __stpcpy_avx2
1661 and __stpncpy_avx2.
1662 * sysdeps/x86_64/multiarch/{ifunc-unaligned-ssse3.h =>
1663 ifunc-strcpy.h}: rename header for a more generic name.
1664 * sysdeps/x86_64/multiarch/ifunc-strcpy.h:
1665 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
1666 AVX unaligned load is fast and vzeroupper is preferred.
1667 * sysdeps/x86_64/multiarch/stpcpy-avx2.S: New file.
1668 * sysdeps/x86_64/multiarch/stpncpy-avx2.S: Likewise.
1669 * sysdeps/x86_64/multiarch/strcat-avx2.S: Likewise.
1670 * sysdeps/x86_64/multiarch/strcpy-avx2.S: Likewise.
1671 * sysdeps/x86_64/multiarch/strncat-avx2.S: Likewise.
1672 * sysdeps/x86_64/multiarch/strncpy-avx2.S: Likewise.
1673
1674 2019-01-12 Dmitry V. Levin <ldv@altlinux.org>
1675
1676 * argp/argp-help.c: Fix typo in comment.
1677 * misc/sys/cdefs.h: Likewise.
1678 * posix/regexec.c (sift_states_iter_mb): Likewise.
1679 * socket/sockatmark.c: Likewise.
1680 * socket/sys/socket.h: Likewise.
1681 * sysdeps/ia64/fpu/libm_sincos_large.S: Likewise.
1682 * sysdeps/ia64/fpu/libm_sincosl.S: Likewise.
1683 * sysdeps/ia64/fpu/s_cosl.S: Likewise.
1684 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1685 * sysdeps/unix/sockatmark.c: Likewise.
1686 * time/strptime_l.c: Likewise.
1687
1688 2019-01-11 TAMUKI Shoichi <tamuki@linet.gr.jp>
1689
1690 * time/strftime_l.c (__strftime_internal): Use "L_" macros, also add a
1691 missing space after the cast of "_NL_CURRENT".
1692
1693 2019-01-11 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
1694
1695 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (vscr_t): Added
1696 ifdef to fix read of VSCR.
1697 * sysdeps/powerpc/powerpc64/Makefile [$subdir == stdlib]: Add
1698 tst-ucontext-ppc64-vscr.c to test list.
1699 * sysdeps/powerpc/powerpc64/tst-ucontext-ppc64-vscr.c: New test file.
1700
1701 2019-01-10 Andreas K. Hüttel <dilfridge@gentoo.org>
1702
1703 * resolv/tst-resolv-ai_idn-common.c (response): Avoid switch
1704 fall-through.
1705
1706 2019-01-09 Jim Wilson <jimw@sifive.com>
1707
1708 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
1709
1710 2019-01-09 Wilco Dijkstra <wdijkstr@arm.com>
1711
1712 * manual/tunables.texi (glibc.cpu.name): Add ares tunable.
1713 * sysdeps/aarch64/multiarch/memcpy.c (__libc_memcpy): Use
1714 __memcpy_falkor for ares.
1715 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_ARES):
1716 Add new define.
1717 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
1718 Add ares cpu.
1719
1720 2019-01-07 H.J. Lu <hongjiu.lu@intel.com>
1721
1722 [BZ #24066]
1723 * soft-fp/extenddftf2.c: Use "_FP_W_TYPE_SIZE < 64" to check if
1724 4_FP_W_TYPEs are used for IEEE quad precision.
1725 * soft-fp/extendhftf2.c: Likewise.
1726 * soft-fp/extendsftf2.c: Likewise.
1727 * soft-fp/extendxftf2.c: Likewise.
1728 * soft-fp/trunctfdf2.c: Likewise.
1729 * soft-fp/trunctfhf2.c: Likewise.
1730 * soft-fp/trunctfsf2.c: Likewise.
1731 * soft-fp/trunctfxf2.c: Likewise.
1732 * sysdeps/alpha/ots_cvttx.c: Likewise.
1733 * sysdeps/alpha/ots_cvtxt.c: Likewise.
1734 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
1735 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
1736 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
1737 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
1738 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
1739 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
1740 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
1741 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
1742 * sysdeps/sparc/sparc32/q_dtoq.c: Likewise.
1743 * sysdeps/sparc/sparc32/q_qtod.c: Likewise.
1744 * sysdeps/sparc/sparc32/q_qtos.c: Likewise.
1745 * sysdeps/sparc/sparc32/q_stoq.c: Likewise.
1746 * sysdeps/sparc/sparc64/qp_dtoq.c: Likewise.
1747 * sysdeps/sparc/sparc64/qp_qtod.c: Likewise.
1748 * sysdeps/sparc/sparc64/qp_qtos.c: Likewise.
1749 * sysdeps/sparc/sparc64/qp_stoq.c: Likewise.
1750
1751 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1752
1753 [BZ #24024]
1754 * Makeconfig: Build libm with -fno-math-errno but build the remaining
1755 code with -fmath-errno.
1756 * string/Makefile [$(build-shared)] (tests): Add test-strerror-errno.
1757 [$(build-shared)] (LDLIBS-test-strerror-errno): New variable.
1758 * string/test-strerror-errno.c: New file.
1759
1760 2019-01-07 Aurelien Jarno <aurelien@aurel32.net>
1761
1762 [BZ #24046]
1763 * localedata/locales/en_US (date_fmt): Add, set to
1764 "%a %d %b %Y %r %Z".
1765
1766 2019-01-07 Florian Weimer <fweimer@redhat.com>
1767
1768 [BZ #24063]
1769 * manual/arith.texi (Math Error Reporting): Use @code{errno}
1770 instead of @var{errno}.
1771 (Parsing of Integers): Likewise.
1772 (Parsing of Floats): Likewise.
1773 * manual/filesys.texi (Working with Directory Trees): Likewise.
1774 (Temporary Files): Likewise.
1775 * manual/job.texi (Terminal Access Functions): Likewise.
1776 * manual/llio.texi (Synchronizing I/O): Likewise.
1777 * manual/math.texi (SVID Random): Likewise.
1778 * manual/message.texi (The catgets Functions): Likewise.
1779 (Translation with gettext): Likewise.
1780 (Locating gettext catalog): Likewise.
1781 (Charset conversion in gettext): Likewise.
1782 * manual/nss.texi (NSS Module Function Internals): Likewise.
1783 * manual/search.texi (Hash Search Function): Likewise.
1784 * manual/setjmp.texi (System V contexts): Likewise.
1785 * manual/time.texi (Sleeping): Likewise.
1786 * manual/users.texi (Lookup User): Likewise.
1787 (Lookup Group): Likewise.
1788
1789 2019-01-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1790
1791 * posix/tst-spawn.c (do_test): Extend spargv to new required size and
1792 fix typo.
1793
1794 2019-01-04 Martin Jansa <Martin.Jansa@gmail.com>
1795
1796 [BZ #19444]
1797 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Use
1798 __builtin_unreachable for default case in switch.
1799 (__ieee754_yn): Likewise.
1800 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
1801 (__ieee754_ynl): Likewise.
1802 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
1803 (__ieee754_ynl): Likewise.
1804 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1805 (__ieee754_ynl): Likewise.
1806
1807 2019-01-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
1808
1809 * manual/maint.texi: Use @{ and @}.
1810
1811 2019-01-04 Florian Weimer <fweimer@redhat.com>
1812
1813 * sysdeps/unix/sysv/linux/tst-ttyname.c (adjust_file_limit): New
1814 function.
1815 (do_in_chroot_1): Call it.
1816 (run_chroot_tests):
1817 Improve error reporting in case it is not possible to create a
1818 collision for the PTY name required by the test.
1819
1820 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1821
1822 * nptl/pthread_join_common.c (__pthread_timedjoin_ex): Use
1823 lll_wait_tid with timeout.
1824 * nptl/sem_wait.c (__old_sem_wait): Use lll_futex_wait_cancel.
1825 * sysdeps/nptl/aio_misc.h (AIO_MISC_WAIT): Use
1826 futex_reltimed_wait_cancelable for cancelabla mode.
1827 * sysdeps/nptl/gai_misc.h (GAI_MISC_WAIT): Likewise.
1828 * sysdeps/posix/open64.c (__libc_open64): Do not call cancelation
1829 macros.
1830 * sysdeps/posix/sigwait.c (__sigwait): Likewise.
1831 * sysdeps/posix/waitid.c (__sigwait): Likewise.
1832 * sysdeps/unix/sysdep.h (__SYSCALL_CANCEL_CALL,
1833 SYSCALL_CANCEL_NCS): New macro.
1834 * sysdeps/nptl/lowlevellock.h (lll_wait_tid): Add timeout argument.
1835 (lll_timedwait_tid): Remove macro.
1836 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_wait_tid):
1837 Likewise.
1838 (lll_timedwait_tid): Likewise.
1839 * sysdeps/unix/sysv/linux/sparc/lowlevellock.h (lll_wait_tid):
1840 Likewise.
1841 (lll_timedwait_tid): Likewise.
1842 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_wait_tid):
1843 Likewise.
1844 (lll_timedwait_tid): Likewise.
1845 * sysdeps/unix/sysv/linux/clock_nanosleep.c (__clock_nanosleep):
1846 Use INTERNAL_SYSCALL_CANCEL.
1847 * sysdeps/unix/sysv/linux/futex-internal.h
1848 (futex_reltimed_wait_cancelable): Use LIBC_CANCEL_{ASYNC,RESET}
1849 instead of __pthread_{enable,disable}_asynccancel.
1850 * sysdeps/unix/sysv/linux/lowlevellock-futex.h
1851 (lll_futex_wait_cancel): New macro.
1852
1853 * sysdeps/i386/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1854 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1855
1856 * sysdeps/x86_64/nptl/tls.h (THREAD_ATOMIC_CMPXCHG_VAL,
1857 THREAD_ATOMIC_AND, THREAD_ATOMIC_BIT_SET): Remove macros.
1858
1859 * debug/tst-backtrace5.c (handle_signal): Avoid cancellable wrappers
1860 in backtrace analysis.
1861 * nptl/tst-cancel4.c (tf_write): Handle cancelled syscall with
1862 side-effects.
1863 (tf_send): Likewise.
1864
1865 * io/creat.c (LIBC_CANCEL_HANDLED): Remove macro.
1866 * io/ppoll.c (LIBC_CANCEL_HANDLED): Likewise.
1867 * misc/pselect.c (LIBC_CANCEL_HANDLED): Likewise.
1868 * nptl/pthreadP.h (LIBC_CANCEL_HANDLED): Likewise.
1869 * sysdeps/generic/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1870 * sysdeps/mach/hurd/sysdep-cancel.h (LIBC_CANCEL_HANDLED): Likewise.
1871 * sysdeps/posix/pause.c (LIBC_CANCEL_HANDLED): Likewise.
1872 * sysdeps/posix/sigpause.c (LIBC_CANCEL_HANDLED): Likewise.
1873 * sysdeps/unix/sysv/linux/creat.c (LIBC_CANCEL_HANDLED): Likewise.
1874 * sysdeps/unix/sysv/linux/creat64.c (LIBC_CANCEL_HANDLED): Likewise.
1875 * sysdeps/unix/sysv/linux/sigwait.c (LIBC_CANCEL_HANDLED): Likewise.
1876 * sysdeps/unix/sysv/linux/sigwaitinfo.c (LIBC_CANCEL_HANDLED):
1877 Likewise.
1878 * nptl/Makefile [$(run-built-tests) = yes] (tests-special): Remove
1879 tst-cancel-wrappers.sh.
1880 (generated): Remove tst-cancel-wrappers.out.
1881 (tst-cancel-wrappers.out): Remove rule.
1882 * nptl/tst-cancel-wrappers.sh: Remove file.
1883
1884 2019-01-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1885
1886 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h: Add comment.
1887 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
1888 Update.
1889
1890 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1891
1892 [BZ #23640]
1893 * posix/tst-spawn.c (do_prepare, handle_restart, do_test): Add
1894 posix_spawn_file_actions_adddup2 test to check O_CLOCEXEC reset.
1895 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Add
1896 close-on-exec reset for adddup2 file action.
1897 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
1898
1899 2019-01-03 Zack Weinberg <zackw@panix.com>
1900
1901 * include/features.h (__GLIBC_USE_DEPRECATED_SCANF): New __GLIBC_USE
1902 parameter. Only use deprecated scanf when __USE_GNU is defined
1903 and __STDC_VERSION__ is less than 199901L or __cplusplus is less
1904 than 201103L, whichever is relevant for the language being compiled.
1905
1906 * libio/stdio.h, libio/bits/stdio-ldbl.h: Decide whether to redirect
1907 scanf, fscanf, sscanf, vscanf, vfscanf, and vsscanf to their
1908 __isoc99_ variants based only on __GLIBC_USE (DEPRECATED_SCANF).
1909 * wcsmbs/wchar.h: wcsmbs/bits/wchar-ldbl.h: Likewise for
1910 wscanf, fwscanf, swscanf, vwscanf, vfwscanf, and vswscanf.
1911
1912 * libio/iovsscanf.c
1913 * libio/fwscanf.c
1914 * libio/iovswscanf.c
1915 * libio/swscanf.c
1916 * libio/vscanf.c
1917 * libio/vwscanf.c
1918 * libio/wscanf.c
1919 * stdio-common/fscanf.c
1920 * stdio-common/scanf.c
1921 * stdio-common/vfscanf.c
1922 * stdio-common/vfwscanf.c
1923 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
1924 * sysdeps/ieee754/ldbl-opt/nldbl-fscanf.c
1925 * sysdeps/ieee754/ldbl-opt/nldbl-fwscanf.c
1926 * sysdeps/ieee754/ldbl-opt/nldbl-iovfscanf.c
1927 * sysdeps/ieee754/ldbl-opt/nldbl-scanf.c
1928 * sysdeps/ieee754/ldbl-opt/nldbl-sscanf.c
1929 * sysdeps/ieee754/ldbl-opt/nldbl-swscanf.c
1930 * sysdeps/ieee754/ldbl-opt/nldbl-vfscanf.c
1931 * sysdeps/ieee754/ldbl-opt/nldbl-vfwscanf.c
1932 * sysdeps/ieee754/ldbl-opt/nldbl-vscanf.c
1933 * sysdeps/ieee754/ldbl-opt/nldbl-vsscanf.c
1934 * sysdeps/ieee754/ldbl-opt/nldbl-vswscanf.c
1935 * sysdeps/ieee754/ldbl-opt/nldbl-vwscanf.c
1936 * sysdeps/ieee754/ldbl-opt/nldbl-wscanf.c:
1937 Override __GLIBC_USE_DEPRECATED_SCANF to 1.
1938
1939 * stdio-common/sscanf.c: Likewise. Remove ldbl_hidden_def for __sscanf.
1940 * stdio-common/isoc99_sscanf.c: Add libc_hidden_def for __isoc99_sscanf.
1941 * include/stdio.h: Provide libc_hidden_proto for __isoc99_sscanf,
1942 not sscanf.
1943 [!__GLIBC_USE (DEPRECATED_SCANF)]: Define sscanf as __isoc99_scanf
1944 with a preprocessor macro.
1945
1946 * stdio-common/bug21.c, stdio-common/scanf14.c:
1947 Use %ms instead of %as, %mS instead of %aS, %m[] instead of %a[];
1948 remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1949 * stdio-common/scanf16.c: Likewise. Add __attribute__ ((format (scanf)))
1950 to xscanf, xfscanf, xsscanf.
1951
1952 * stdio-common/scanf14a.c: New copy of scanf14.c which still uses
1953 %as, %aS, %a[]. Remove DIAG_IGNORE_NEEDS_COMMENT for -Wformat.
1954 * stdio-common/scanf16a.c: New copy of scanf16.c which still uses
1955 %as, %aS, %a[]. Add __attribute__ ((format (scanf))) to xscanf,
1956 xfscanf, xsscanf.
1957 * stdio-common/scanf15.c, stdio-common/scanf17.c: No need to
1958 override feature selection macros or provide definitions of u_char etc.
1959 * stdio-common/Makefile (tests): Add scanf14a and scanf16a.
1960 (CFLAGS-scanf15.c, CFLAGS-scanf17.c): Remove.
1961 (CFLAGS-scanf14a.c, CFLAGS-scanf16a.c): New. Compile these files
1962 with -std=gnu89.
1963
1964 2019-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
1965
1966 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1967 bits/termios-misc.h.
1968 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Remove file.
1969 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1970 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1971 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1972 * sysdeps/unix/sysv/linux/bits/termios-misc.h: New file.
1973 * sysdeps/unix/sysv/linux/bits/termios.h: Include termios-misc.h.
1974
1975 * sysdeps/unix/sysv/linux/powerpc/bits/termios-misc.h: New file.
1976 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
1977 (struct sgtty, struct tchars, struct ltchars, TIOCPKT_DATA,
1978 TIOCPKT_FLUSHREAD, TIOCPKT_FLUSHWRITE, TIOCPKT_STOP, TIOCPKT_START,
1979 TIOCPKT_NOSTOP, TIOCPKT_DOSTOP, _VINTR, _VQUIT, _VERASE, _VKILL,
1980 _VEOF, _VMIN, _VEOL, _VTIME, _VEOL2, _VSWTC): Move to
1981 termios-misc.h.
1982 * sysdeps/unix/sysv/linux/powerpc/Makefile [$subdir == misc]
1983 (sysdep_headers): Add termios-misc.h.
1984
1985 * sysdeps/unix/sysv/linux/bits/termios.h (_IOT_termios): Remove.
1986 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1987 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1988
1989 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1990 termios-tcflow.h.
1991 * sysdeps/unix/sysv/linux/bits/termios-tcflow.h: New file.
1992 * sysdeps/unix/sysv/linux/mips/bits/termios-tcflow.h: Likewise.
1993 * sysdeps/unix/sysv/linux/bits/termios.h (TCSANOW, TCSADRAIN,
1994 TCSAFLUSH): Move to termios-tcflow.h.
1995 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
1996 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
1997 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
1998 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
1999
2000 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2001 termios-c_lflag.h.
2002 * sysdeps/unix/sysv/linux/bits/termios-c_lflag.h: New file.
2003 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_lflag.h: Likewise.
2004 * sysdeps/unix/sysv/linux/mips/bits/termios-c_lflag.h: Likewise.
2005 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_lflag.h: Likewise.
2006 * sysdeps/unix/sysv/linux/bits/termios.h (ISIG, ISCANON, ECHO, ECHOE,
2007 ECHOK, ECHONL, NOFLSH, TOSTOP, IEXTEN): Move to termios-c_lflag.h.
2008 [__USE_MISC || (__USE_XOPEN && !__USE_XOPEN2K)] (XCASE): Likewise.
2009 [__USE_MISC] (ECHOCTL, ECHOPRT, ECHOKE, FLUSHO, PENDIN, EXTPROC):
2010 Likewise.
2011 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2012 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2013 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2014 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2015
2016 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2017 termios-c_cflag.h.
2018 * sysdeps/unix/sysv/linux/bits/termios-c_cflag.h: New file.
2019 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cflag.h: Likewise.
2020 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cflag.h: Likewise.
2021 * sysdeps/unix/sysv/linux/bits/termios.h (CSIZE, CS5, CS6, CS7, CS8,
2022 CSTOPB, CREAD, PARENB, PARODD, HUPCL, CLOCAL): Move to
2023 termios-c_cflag.h.
2024 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2025 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2026 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2027 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2028
2029 [BZ #23783]
2030 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2031 termios-baud.h.
2032 * sysdeps/unix/sysv/linux/bits/termios-baud.h: New file.
2033 * sysdeps/unix/sysv/linux/alpha/bits/termios-baud.h: Likewise.
2034 * sysdeps/unix/sysv/linux/powerpc/bits/termios-baud.h: Likewise.
2035 * sysdeps/unix/sysv/linux/sparc/bits/termios-baud.h: Likewise.
2036 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (B57600, B115200,
2037 B230400, B460800, B500000, B576000, B921600, B1000000, B1152000,
2038 B1500000, B2000000, B2500000, B3000000, B3500000, B4000000,
2039 __MAX_BAUD): Move to termios-baud.h.
2040 [__USE_MISC] (CBAUD, CBAUDEX): Likewise.
2041 * sysdeps/unix/sysv/linux/bits/termios.h: Likewise.
2042 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2043 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2044 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2045
2046 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add
2047 termios-c_oflag.h.
2048 * sysdeps/unix/sysv/linux/bits/termios-c_oflag.h: New file.
2049 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_oflag.h: Likewise.
2050 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_oflag.h: Likewise.
2051 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_oflag.h: Likewise.
2052 * sysdeps/unix/sysv/linux/bits/termios.h (OPOST, OLCUC, ONLCR, OCRNL,
2053 ONOCR, ONLRET, OFILL, OFDEL, VTDLY, VT0, VT1): Move to
2054 termios-c_oflag.h.
2055 [__USE_MISC || __USE_XOPEN] (NLDLY, NL0, NL1, CRDLY, CR0, CR1, CR2,
2056 CR3, TABDLY, TAB0, TAB1, TAB2, TAB3, BSDLY, BS0, BS1, FFDLY, FF0,
2057 FFR1): Likewise.
2058 [USE_MISC] (XTABS): Likewise.
2059 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2060 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2061 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2062 * sysdeps/unix/sysv/linux/sparc/bits/termios.h Likewise.
2063
2064 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2065 termios-c_iflag.h.
2066 * sysdeps/unix/sysv/linux/bits/termios-c_iflag.h: New file.
2067 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_iflag.h: Likewise.
2068 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_iflag.h: Likewise.
2069 * sysdeps/unix/sysv/linux/bits/termios.h (IGNBRK, BRKINT, IGNPAR, PARMRK,
2070 INPCK, ISTRIP, INLCR, IGNCR, ICRNL, IXON, IXOFF, IXANY, IUCLC, IMAXBEL,
2071 IUTF8): Move to termios-c_iflag.h.
2072 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2073 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2074 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2075 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2076
2077 * sysdeps/unix/sysv/linux/Makefile (sysdeps_headers): Add
2078 termios-cc.h.
2079 * sysdeps/unix/sysv/linux/bits/termios-c_cc.h: Likewise.
2080 * sysdeps/unix/sysv/linux/alpha/bits/termios-c_cc.h: New file.
2081 * sysdeps/unix/sysv/linux/mips/bits/termios-c_cc.h: Likewise.
2082 * sysdeps/unix/sysv/linux/powerpc/bits/termios-c_cc.h: Likewise.
2083 * sysdeps/unix/sysv/linux/sparc/bits/termios-c_cc.h: Likewise.
2084 * sysdeps/unix/sysv/linux/bits/termios.h (VINTR, VQUIT, VERASE,
2085 VKILL, VEOF, VTIME, VMIN, VSWTC, VSTART, VSTOP, VSUSP, VEOL,
2086 VREPRINT, VDISCARD, VWERASE, VLNEXT, VEOLF2): Move to termios-cc.h.
2087 * sysdeps/unix/sysv/linux/alpha/bits/termios.h: Likewise.
2088 * sysdeps/unix/sysv/linux/mips/bits/termios.h: Likewise.
2089 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
2090 * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
2091
2092 * sysdeps/unix/sysv/linux/alpha/bits/termios-struct.h: New file.
2093 * sysdeps/unix/sysv/linux/bits/termios-struct.h: Likewise.
2094 * sysdeps/unix/sysv/linux/mips/bits/termios-struct.h: Likewise.
2095 * sysdeps/unix/sysv/linux/sparc/bits/termios-struct.h: Likewise.
2096 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2097 termios-struct.h.
2098 * sysdeps/unix/sysv/linux/bits/termios.h (struct termios): Move to
2099 termios-struct.h.
2100 * sysdeps/unix/sysv/linux/alpha/bits/termios.h (struct termios):
2101 Likewise.
2102 * sysdeps/unix/sysv/linux/mips/bits/termios.h (struct termios):
2103 Likewise.
2104 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct termios):
2105 Likewise.
2106 * sysdeps/unix/sysv/linux/sparc/bits/termios.h (struct termios):
2107 Likewise.
2108 * sysdeps/unix/sysv/linux/kernel_termios.h (_HAVE_C_ISPEED,
2109 _HAVE_C_OSPEED): Define.
2110 * sysdeps/unix/sysv/linux/mips/kernel_termios.h (_HAVE_C_ISPEED,
2111 _HAVE_C_OSPEED): Likewise.
2112 * sysdeps/unix/sysv/linux/sparc/kernel_termios.h (_HAVE_C_ISPEED,
2113 _HAVE_C_OSPEED): Likewise.
2114 * sysdeps/unix/sysv/linux/speed.c [_HAVE_STRUCT_TERMIOS_C_OSPEED]
2115 (cfsetospeed): Check for define value instead of existence.
2116 [_HAVE_STRUCT_TERMIOS_C_ISPEED] (cfsetispeed): Likewise.
2117 * sysdeps/unix/sysv/linux/tcgetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2118 && _HAVE_C_ISPEED] (__tcgetattr): Likewise.
2119 * sysdeps/unix/sysv/linux/tcsetattr.c [_HAVE_STRUCT_TERMIOS_C_ISPEED
2120 && _HAVE_C_ISPEED] (__tcsetattr): Likewise.
2121
2122 [BZ #17783]
2123 * sysdeps/unix/sysv/linux/bits/termios.h [__USE_MISC] (TIOCSER_TEMT):
2124 Define.
2125 * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]
2126 (TIOCSER_TEMT): Likewise.
2127 * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_MISC]
2128 (TEOCSER_TEMT): Likewise.
2129
2130 2019-01-02 PanderMusubi <pander@users.sourceforge.net>
2131
2132 [BZ #24011]
2133 * localedata/locales/bs_BA (LC_TELEPHONE): Fix a typo in comment.
2134
2135 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2136
2137 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
2138
2139 2019-01-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
2140
2141 * sysdeps/htl/pt-barrierattr-setpshared.c
2142 (pthread_barrierattr_setpshared): Add stub warning.
2143 * sysdeps/htl/pt-condattr-setpshared.c
2144 (pthread_condattr_setpshared): Likewise.
2145 * sysdeps/htl/pt-mutexattr-setpshared.c
2146 (pthread_mutexattr_setpshared): Likewise.
2147 * sysdeps/htl/pt-rwlockattr-setpshared.c
2148 (pthread_rwlockattr_setpshared): Likewise.
2149 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c
2150 (pthread_mutexattr_setpshared): Likewise.
2151
2152 2019-01-02 Joseph Myers <joseph@codesourcery.com>
2153
2154 * sysdeps/unix/sysv/linux/tst-mman-consts.py (main): Expect
2155 constants to match with Linux 4.20.
2156
2157 * sysdeps/mips/mips32/libm-test-ulps: Update.
2158 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
2159
2160 2019-01-02 Aurelien Jarno <aurelien@aurel32.net>
2161
2162 [BZ #24034]
2163 * sysdeps/unix/sysv/linux/arm/atomic-machine.h
2164 (__arm_assisted_compare_and_exchange_val_32_acq): Use uint32_t rather
2165 than __typeof (...) for the a_ptr variable.
2166
2167 2019-01-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
2168
2169 * debug/sprintf_chk.c (___sprintf_chk): Use PRINTF_CHK.
2170 * debug/vsprintf_chk.c (___vsprintf_chk): Likewise.
2171 * libio/Makefile (tests): Add tst-sprintf-ub and
2172 tst-sprintf-chk-ub.
2173 (CFLAGS-tst-sprintf-ub.c): New variable.
2174 (CFLAGS-tst-sprintf-chk-ub.c): Likewise.
2175 * libio/iovsprintf.c (__vsprintf_internal): Only erase the
2176 destination buffer and check for overflows in fortified mode.
2177 * libio/libioP.h (PRINTF_CHK): New macro.
2178 * libio/tst-sprintf-chk-ub.c: New file.
2179 * libio/tst-sprintf-ub.c: Likewise.
2180
2181 2019-01-02 Florian Weimer <fweimer@redhat.com>
2182
2183 [BZ #24018]
2184 * intl/dcigettext.c (DCIGETTEXT): Do not return NULL on asprintf
2185 failure.
2186
2187 2019-01-02 Florian Weimer <fweimer@redhat.com>
2188
2189 * nptl/tst-audit-threads.c: Switch to <support/test-driver.c>.
2190
2191 2019-01-01 Joseph Myers <joseph@codesourcery.com>
2192
2193 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_MULTICAST_ALL): New
2194 macro.
2195
2196 * sysdeps/unix/sysv/linux/netpacket/packet.h
2197 (PACKET_IGNORE_OUTGOING): New macro.
2198
2199 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SSBS): New
2200 macro.
2201
2202 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
2203 version to 4.20.
2204 (riscv_flush_icache): New syscall.
2205
2206 * manual/texinfo.tex: Update to version 2018-12-28.17 with
2207 trailing whitespace removed.
2208 * scripts/config.guess: Update to version 2019-01-01.
2209 * scripts/config.sub: Update to version 2019-01-01.
2210 * scripts/move-if-change: Update from gnulib.
2211
2212 * NEWS: Update copyright dates.
2213 * catgets/gencat.c (print_version): Likewise.
2214 * csu/version.c (banner): Likewise.
2215 * debug/catchsegv.sh: Likewise.
2216 * debug/pcprofiledump.c (print_version): Likewise.
2217 * debug/xtrace.sh (do_version): Likewise.
2218 * elf/ldconfig.c (print_version): Likewise.
2219 * elf/ldd.bash.in: Likewise.
2220 * elf/pldd.c (print_version): Likewise.
2221 * elf/sotruss.sh: Likewise.
2222 * elf/sprof.c (print_version): Likewise.
2223 * iconv/iconv_prog.c (print_version): Likewise.
2224 * iconv/iconvconfig.c (print_version): Likewise.
2225 * locale/programs/locale.c (print_version): Likewise.
2226 * locale/programs/localedef.c (print_version): Likewise.
2227 * login/programs/pt_chown.c (print_version): Likewise.
2228 * malloc/memusage.sh (do_version): Likewise.
2229 * malloc/memusagestat.c (print_version): Likewise.
2230 * malloc/mtrace.pl: Likewise.
2231 * manual/libc.texinfo: Likewise.
2232 * nptl/version.c (banner): Likewise.
2233 * nscd/nscd.c (print_version): Likewise.
2234 * nss/getent.c (print_version): Likewise.
2235 * nss/makedb.c (print_version): Likewise.
2236 * posix/getconf.c (main): Likewise.
2237 * scripts/test-installation.pl: Likewise.
2238 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2239
2240 * All files with FSF copyright notices: Update copyright dates
2241 using scripts/update-copyrights.
2242 * locale/programs/charmap-kw.h: Regenerated.
2243 * locale/programs/locfile-kw.h: Likewise.
2244
2245 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2246
2247 * timezone/zdump.c: Update from tzcode 2018i.
2248 * timezone/zic.c: Likewise.
2249
2250 2018-12-31 Paul Eggert <eggert@cs.ucla.edu>
2251
2252 regex: improve Gnulib port to AIX
2253 From the glibc point of view, this removes duplicate macro
2254 definitions and is obviously safe.
2255 From the Gnulib point of view, this pacifies xlc 12.01 on AIX 7.1.
2256 * posix/regex_internal.h:
2257 (__attribute__, __attribute_warn_unused_result__):
2258 Remove; already defined elsewhere.
2259
2260 2018-12-31 Florian Weimer <fw@deneb.enyo.de>
2261
2262 [BZ #24027]
2263 * malloc/malloc.c (_int_realloc): Always call memcpy for the
2264 copying operation. (ncopies had the wrong type, resulting in an
2265 integer wraparound and too few elements being copied.)
2266
2267 2018-12-31 H.J. Lu <hongjiu.lu@intel.com>
2268
2269 [BZ #24022]
2270 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Check if
2271 <asm/syscalls.h> exists with __has_include__ before including it.
2272
2273 2018-12-31 Joseph Myers <joseph@codesourcery.com>
2274
2275 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
2276 version to 4.20.
2277
2278 2018-12-28 Justus Winter <4winter@informatik.uni-hamburg.de>
2279
2280 * hurd/lookup-retry: Include <unistd.h>.
2281 (__hurd_file_name_lookup_retry): Keep a ref on last result in `lastdir'.
2282 Release it on return. Handle "pid" magical lookup retry.
2283
2284 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2285
2286 [BZ #10496]
2287 * localedata/locales/aa_DJ (t_fmt): Set to "%l:%M:%S %p".
2288 (t_fmt_ampm): Likewise.
2289 * localedata/locales/aa_ER (t_fmt): Likewise.
2290 (t_fmt_ampm): Likewise.
2291 * localedata/locales/aa_ER@saaho (t_fmt): Likewise.
2292 (t_fmt_ampm): Likewise.
2293 * localedata/locales/aa_ET (t_fmt): Likewise.
2294 (t_fmt_ampm): Likewise.
2295 * localedata/locales/am_ET (t_fmt): Likewise.
2296 (t_fmt_ampm): Likewise.
2297 * localedata/locales/byn_ER (t_fmt): Likewise.
2298 (t_fmt_ampm): Likewise.
2299 * localedata/locales/om_ET (t_fmt): Likewise.
2300 (t_fmt_ampm): Likewise.
2301 * localedata/locales/sid_ET (t_fmt): Likewise.
2302 (t_fmt_ampm): Likewise.
2303 * localedata/locales/so_DJ (t_fmt): Likewise.
2304 (t_fmt_ampm): Likewise.
2305 * localedata/locales/so_ET (t_fmt): Likewise.
2306 (t_fmt_ampm): Likewise.
2307 * localedata/locales/so_SO (t_fmt): Likewise.
2308 (t_fmt_ampm): Likewise.
2309 * localedata/locales/ti_ER (t_fmt): Likewise.
2310 (t_fmt_ampm): Likewise.
2311 * localedata/locales/ti_ET (t_fmt): Likewise.
2312 (t_fmt_ampm): Likewise.
2313 * localedata/locales/tig_ER (t_fmt): Likewise.
2314 (t_fmt_ampm): Likewise.
2315 * localedata/locales/wal_ET (t_fmt): Likewise.
2316 (t_fmt_ampm): Likewise.
2317
2318 * localedata/locales/anp_IN (t_fmt): Set to "%I:%M:%S %p %Z".
2319 * localedata/locales/ar_IN (t_fmt): Likewise.
2320 * localedata/locales/bhb_IN (t_fmt): Likewise.
2321 * localedata/locales/bho_IN (t_fmt): Likewise.
2322 * localedata/locales/bi_VU (t_fmt): Likewise.
2323 * localedata/locales/bn_BD (t_fmt): Likewise.
2324 * localedata/locales/bn_IN (t_fmt): Likewise.
2325 * localedata/locales/brx_IN (t_fmt): Likewise.
2326 * localedata/locales/doi_IN (t_fmt): Likewise.
2327 * localedata/locales/en_HK (t_fmt): Likewise.
2328 (t_fmt_ampm): Likewise.
2329 * localedata/locales/en_IN (t_fmt): Likewise.
2330 * localedata/locales/en_PH (t_fmt): Likewise.
2331 * localedata/locales/gu_IN (t_fmt): Likewise.
2332 * localedata/locales/hi_IN (t_fmt): Likewise.
2333 * localedata/locales/hif_FJ (t_fmt): Likewise.
2334 * localedata/locales/hne_IN (t_fmt): Likewise.
2335 * localedata/locales/kn_IN (t_fmt): Likewise.
2336 * localedata/locales/kok_IN (t_fmt): Likewise.
2337 * localedata/locales/ks_IN (t_fmt): Likewise.
2338 * localedata/locales/ks_IN@devanagari (t_fmt): Likewise.
2339 * localedata/locales/mag_IN (t_fmt): Likewise.
2340 * localedata/locales/mai_IN (t_fmt): Likewise.
2341 * localedata/locales/mjw_IN (t_fmt): Likewise.
2342 * localedata/locales/ml_IN (t_fmt): Likewise.
2343 * localedata/locales/mni_IN (t_fmt): Likewise.
2344 * localedata/locales/mr_IN (t_fmt): Likewise.
2345 * localedata/locales/ms_MY (t_fmt): Likewise.
2346 * localedata/locales/pa_IN (t_fmt): Likewise.
2347 * localedata/locales/raj_IN (t_fmt): Likewise.
2348 * localedata/locales/sa_IN (t_fmt): Likewise.
2349 * localedata/locales/sat_IN (t_fmt): Likewise.
2350 * localedata/locales/sd_IN (t_fmt): Likewise.
2351 * localedata/locales/sd_IN@devanagari (t_fmt): Likewise.
2352 * localedata/locales/tcy_IN (t_fmt): Likewise.
2353 * localedata/locales/the_NP (t_fmt): Likewise.
2354 * localedata/locales/to_TO (t_fmt): Likewise.
2355 * localedata/locales/ur_IN (t_fmt): Likewise.
2356
2357 * localedata/locales/hif_FJ (d_t_fmt): Set to
2358 "%A %d %b %Y %I:%M:%S %p".
2359 (date_fmt): Add, set to "%A %d %b %Y %I:%M:%S %p %Z".
2360
2361 * localedata/locales/ar_AE (t_fmt): Set to "%Z %I:%M:%S %p".
2362 * localedata/locales/ar_BH (t_fmt): Likewise.
2363 * localedata/locales/ar_DZ (t_fmt): Likewise.
2364 * localedata/locales/ar_EG (t_fmt): Likewise.
2365 * localedata/locales/ar_IQ (t_fmt): Likewise.
2366 * localedata/locales/ar_JO (t_fmt): Likewise.
2367 * localedata/locales/ar_KW (t_fmt): Likewise.
2368 * localedata/locales/ar_LB (t_fmt): Likewise.
2369 * localedata/locales/ar_LY (t_fmt): Likewise.
2370 * localedata/locales/ar_OM (t_fmt): Likewise.
2371 * localedata/locales/ar_QA (t_fmt): Likewise.
2372 * localedata/locales/ar_SD (t_fmt): Likewise.
2373 * localedata/locales/ar_SS (t_fmt): Likewise.
2374 * localedata/locales/ar_SY (t_fmt): Likewise.
2375 * localedata/locales/ar_TN (t_fmt): Likewise.
2376 * localedata/locales/ar_YE (t_fmt): Likewise.
2377
2378 * localedata/locales/gez_ER (t_fmt): Set to "%l:%M:%S<U1361>%p".
2379 (t_fmt_ampm): Likewise.
2380 * localedata/locales/gez_ET (t_fmt): Likewise.
2381 (t_fmt_ampm): Likewise.
2382
2383 * localedata/locales/ta_IN (t_fmt): Set to "%p %I:%M:%S %Z".
2384 (t_fmt_ampm): Likewise.
2385 (d_t_fmt): Set to "%A %d %B %Y %p %I:%M:%S %Z".
2386
2387 * localedata/locales/zh_HK (t_fmt):
2388 Set to "%p %I<U6642>%M<U5206>%S<U79D2> %Z".
2389
2390 * localedata/locales/ar_MA (t_fmt_ampm): Set to "" (empty string)
2391 because this locale does not use the 12-hour clock.
2392 (t_fmt): Set to "%Z %H:%M:%S".
2393 (d_t_fmt): Set to "%d %b, %Y %Z %H:%M:%S".
2394
2395 * localedata/locales/mt_MT (t_fmt_ampm): Set to "" (empty string)
2396 because this locale does not use the 12-hour clock.
2397 (t_fmt): Set to "%H:%M:%S %Z".
2398 (d_t_fmt): Set to "%A, %d ta %b, %Y %H:%M:%S %Z".
2399
2400 * localedata/locales/so_KE (t_fmt_ampm): Set to "" (empty string)
2401 because this locale does not use the 12-hour clock.
2402 (t_fmt): Set to "%T".
2403 (d_t_fmt): Set to "%A, %B %e, %Y %X %Z".
2404 (date_fmt): Set to "%A, %B %e, %X %Z %Y".
2405
2406 * localedata/locales/ta_LK (t_fmt_ampm): Set to "" (empty string)
2407 because this locale does not use the 12-hour clock.
2408 (t_fmt): Set to "%H:%M:%S %Z".
2409 (d_t_fmt): Set to "%A %d %B %Y %H:%M:%S %Z".
2410
2411 * localedata/locales/bg_BG (t_fmt_ampm): Set to "" (empty string)
2412 because this locale does not use the 12-hour clock.
2413 * localedata/locales/cs_CZ (t_fmt_ampm): Likewise.
2414 * localedata/locales/sk_SK (t_fmt_ampm): Likewise.
2415
2416 2018-12-28 Rafal Luzynski <digitalfreak@lingonborough.com>
2417
2418 [BZ #10496]
2419 [BZ #23724]
2420 * localedata/locales/sq_AL (t_fmt): Set to "%I:%M:%S.%p %Z".
2421 (t_fmt_ampm): Likewise.
2422 (d_t_fmt): Set to "%a %-d %b %Y %I:%M:%S.%p".
2423 (date_fmt): Add, set to "%a %-d %b %Y %I:%M:%S.%p %Z".
2424 (d_fmt): Set to "%-d.%-m.%y".
2425
2426 2018-12-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2427
2428 * malloc/alloc_buffer_alloc_array.c (__libc_alloc_buffer_alloc_array):
2429 Use __builtin_mul_overflow in place of check_mul_overflow_size_t.
2430 * malloc/dynarray_emplace_enlarge.c (__libc_dynarray_emplace_enlarge):
2431 Likewise.
2432 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
2433 * malloc/reallocarray.c (__libc_reallocarray): Likewise.
2434 * malloc/malloc-internal.h (check_mul_overflow_size_t): Remove
2435 function.
2436 * support/blob_repeat.c (check_mul_overflow_size_t,
2437 (minimum_stride_size, support_blob_repeat_allocate): Likewise.
2438
2439 2018-12-28 Aurelien Jarno <aurelien@aurel32.net>
2440
2441 * sysdeps/alpha/fpu/libm-test-ulps: Regenerated.
2442
2443 2018-12-27 Paul Eggert <eggert@cs.ucla.edu>
2444
2445 regex: simplify Gnulib port
2446 This simplifies the code, by removing stuff intended for porting
2447 to Gnulib but no longer needed there.
2448 * posix/regcomp.c [!_LIBC]: No need to put #ifdef _LIBC around
2449 uses of libc_hidden_def, weak_alias.
2450 * posix/regcomp.c, posix/regexec.c: Use __restrict rather than
2451 _Restrict_ except for public-facing headers.
2452 * posix/regex_internal.h (attribute_hidden) [!_LIBC]:
2453 Remove; already defined elsewhere.
2454 * posix/regex.c, posix/regex_internal.h:
2455 Use __GNUC_PREREQ instead of rolling our own.
2456 * posix/regex_internal.h (__GNUC_PREREQ): Remove duplicate defn.
2457
2458 2018-12-27 Wilco Dijkstra <wdijkstr@arm.com>
2459
2460 * benchtests/bench-strlen.c (generic_strlen): New function.
2461 (memchr_strlen): New function.
2462
2463 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2464
2465 * sysdeps/x86_64/fpu/s_sincosf.S: Removed.
2466 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
2467 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.c: New file.
2468
2469 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2470
2471 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
2472
2473 2018-12-26 H.J. Lu <hongjiu.lu@intel.com>
2474
2475 * sysdeps/ieee754/flt-32/s_sincosf.h: Include <sincosf_poly.h>.
2476 (sincos_t, sincosf_poly, sinf_poly): Moved to ...
2477 * sysdeps/ieee754/flt-32/sincosf_poly.h: Here. New file.
2478 * sysdeps/x86/fpu/s_sincosf_data.c: New file.
2479 * sysdeps/x86/fpu/sincosf_poly.h: Likewise.
2480 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Just include
2481 <sysdeps/ieee754/flt-32/s_sincosf.c>.
2482
2483 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2484
2485 [BZ #24023]
2486 * sysdeps/unix/sysv/linux/nios2/localplt.data: Allow __floatundidf
2487 PLT reference in libc.so.
2488 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Allow
2489 _Q_lltoq and _Q_qtod PLT references in libc.so.
2490
2491 2018-12-21 Wilco Dijkstra <wdijkstr@arm.com>
2492
2493 * benchtests/bench-memchr.c: Cleanup defines.
2494 * benchtests/bench-memcmp.c: Likewise.
2495 * benchtests/bench-memset.c: Likewise.
2496 * benchtests/bench-memset-large.c: Likewise.
2497 * benchtests/bench-memset-walk.c: Likewise.
2498 * benchtests/bench-stpcpy.c: Likewise.
2499 * benchtests/bench-stpncpy.c: Likewise.
2500 * benchtests/bench-strcat.c: Likewise.
2501 * benchtests/bench-strchr.c: Likewise.
2502 * benchtests/bench-strcmp.c: Likewise.
2503 * benchtests/bench-strcpy.c: Likewise.
2504 * benchtests/bench-strcspn.c: Likewise.
2505 * benchtests/bench-string.h: Likewise.
2506 * benchtests/bench-strlen.c: Likewise.
2507 * benchtests/bench-strncat.c: Likewise.
2508 * benchtests/bench-strncmp.c: Likewise.
2509 * benchtests/bench-strncpy.c: Likewise.
2510 * benchtests/bench-strnlen.c: Likewise.
2511 * benchtests/bench-strpbrk.c: Likewise.
2512 * benchtests/bench-strrchr.c: Likewise.
2513 * benchtests/bench-strspn.c: Likewise.
2514
2515 2018-12-21 Joseph Myers <joseph@codesourcery.com>
2516
2517 * stdlib/longlong.h: Update from GCC.
2518
2519 [BZ #23993]
2520 * configure.ac (libc_cv_compiler_ok): Require GCC 5 or later.
2521 * configure: Regenerated.
2522 * manual/install.texi (Tools for Compilation): Update minimum GCC
2523 version.
2524 * INSTALL: Regenerated.
2525
2526 2018-12-21 Istvan Kurucsai <pistukem@gmail.com>
2527
2528 * malloc/malloc.c (munmap_chunk): Verify chunk alignment.
2529
2530 2018-12-20 Istvan Kurucsai <pistukem@gmail.com>
2531
2532 * malloc/malloc.c (mremap_chunk): Additional checks.
2533
2534 2018-12-21 Mao Han <han_mao@c-sky.com>
2535
2536 * config.h.in (CSKYABI, CSKY_HARD_FLOAT): New Define.
2537 * scripts/build-many-glibcs.py: Add C-SKY targets.
2538 * sysdeps/csky/Implies: New file.
2539 * sysdeps/csky/Makefile: Likewise.
2540 * sysdeps/csky/abiv2/__longjmp.S: Likewise.
2541 * sysdeps/csky/abiv2/csky-mcount.S: Likewise.
2542 * sysdeps/csky/abiv2/dl-trampoline.S: Likewise.
2543 * sysdeps/csky/abiv2/memcmp.S: Likewise.
2544 * sysdeps/csky/abiv2/memcpy.S: Likewise.
2545 * sysdeps/csky/abiv2/memmove.S: Likewise.
2546 * sysdeps/csky/abiv2/memset.S: Likewise.
2547 * sysdeps/csky/abiv2/setjmp.S: Likewise.
2548 * sysdeps/csky/abiv2/start.S: Likewise.
2549 * sysdeps/csky/abiv2/strcmp.S: Likewise.
2550 * sysdeps/csky/abiv2/strcpy.S: Likewise.
2551 * sysdeps/csky/abiv2/strlen.S: Likewise.
2552 * sysdeps/csky/abiv2/tls-macros.h: Likewise.
2553 * sysdeps/csky/abort-instr.h: Likewise.
2554 * sysdeps/csky/atomic-machine.h: Likewise.
2555 * sysdeps/csky/bits/endian.h: Likewise.
2556 * sysdeps/csky/bits/fenv.h: Likewise.
2557 * sysdeps/csky/bits/link.h: Likewise.
2558 * sysdeps/csky/bits/setjmp.h: Likewise.
2559 * sysdeps/csky/bsd-_setjmp.S: Likewise.
2560 * sysdeps/csky/bsd-setjmp.S: Likewise.
2561 * sysdeps/csky/configure: Likewise.
2562 * sysdeps/csky/configure.ac: Likewise.
2563 * sysdeps/csky/dl-machine.h: Likewise.
2564 * sysdeps/csky/dl-procinfo.c: Likewise.
2565 * sysdeps/csky/dl-procinfo.h: Likewise.
2566 * sysdeps/csky/dl-sysdep.h: Likewise.
2567 * sysdeps/csky/dl-tls.h: Likewise.
2568 * sysdeps/csky/fpu/fclrexcpt.c: Likewise.
2569 * sysdeps/csky/fpu/fedisblxcpt.c: Likewise.
2570 * sysdeps/csky/fpu/feenablxcpt.c: Likewise.
2571 * sysdeps/csky/fpu/fegetenv.c: Likewise.
2572 * sysdeps/csky/fpu/fegetexcept.c: Likewise.
2573 * sysdeps/csky/fpu/fegetmode.c: Likewise.
2574 * sysdeps/csky/fpu/fegetround.c: Likewise.
2575 * sysdeps/csky/fpu/feholdexcpt.c: Likewise.
2576 * sysdeps/csky/fpu/fenv_libc.h: Likewise.
2577 * sysdeps/csky/fpu/fenv_private.h: Likewise.
2578 * sysdeps/csky/fpu/fesetenv.c: Likewise.
2579 * sysdeps/csky/fpu/fesetexcept.c: Likewise.
2580 * sysdeps/csky/fpu/fesetmode.c: Likewise.
2581 * sysdeps/csky/fpu/fesetround.c: Likewise.
2582 * sysdeps/csky/fpu/feupdateenv.c: Likewise.
2583 * sysdeps/csky/fpu/fgetexcptflg.c: Likewise.
2584 * sysdeps/csky/fpu/fix-fp-int-convert-overflow.h: Likewise.
2585 * sysdeps/csky/fpu/fraiseexcpt.c: Likewise.
2586 * sysdeps/csky/fpu/fsetexcptflg.c: Likewise.
2587 * sysdeps/csky/fpu/ftestexcept.c: Likewise.
2588 * sysdeps/csky/fpu/libm-test-ulps: Likewise.
2589 * sysdeps/csky/fpu/libm-test-ulps-name: Likewise.
2590 * sysdeps/csky/fpu_control.h: Likewise.
2591 * sysdeps/csky/gccframe.h: Likewise.
2592 * sysdeps/csky/jmpbuf-unwind.h: Likewise.
2593 * sysdeps/csky/ldsodefs.h: Likewise.
2594 * sysdeps/csky/libc-tls.c: Likewise.
2595 * sysdeps/csky/linkmap.h: Likewise.
2596 * sysdeps/csky/machine-gmon.h: Likewise.
2597 * sysdeps/csky/memusage.h: Likewise.
2598 * sysdeps/csky/nofpu/Implies: Likewise.
2599 * sysdeps/csky/nofpu/libm-test-ulps: Likewise.
2600 * sysdeps/csky/nofpu/libm-test-ulps-name: Likewise.
2601 * sysdeps/csky/nptl/Makefile: Likewise.
2602 * sysdeps/csky/nptl/bits/pthreadtypes-arch.h: Likewise.
2603 * sysdeps/csky/nptl/bits/semaphore.h: Likewise.
2604 * sysdeps/csky/nptl/pthread-offsets.h: Likewise.
2605 * sysdeps/csky/nptl/pthreaddef.h: Likewise.
2606 * sysdeps/csky/nptl/tcb-offsets.sym: Likewise.
2607 * sysdeps/csky/nptl/tls.h: Likewise.
2608 * sysdeps/csky/preconfigure: Likewise.
2609 * sysdeps/csky/sfp-machine.h: Likewise.
2610 * sysdeps/csky/sotruss-lib.c: Likewise.
2611 * sysdeps/csky/stackinfo.h: Likewise.
2612 * sysdeps/csky/sysdep.h: Likewise.
2613 * sysdeps/csky/tininess.h: Likewise.
2614 * sysdeps/csky/tst-audit.h: Likewise.
2615 * sysdeps/unix/sysv/linux/csky/Implies: Likewise.
2616 * sysdeps/unix/sysv/linux/csky/Makefile: Likewise.
2617 * sysdeps/unix/sysv/linux/csky/Versions: Likewise.
2618 * sysdeps/unix/sysv/linux/csky/abiv2/____longjmp_chk.S: Likewise.
2619 * sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
2620 * sysdeps/unix/sysv/linux/csky/abiv2/getcontext.S: Likewise.
2621 * sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
2622 * sysdeps/unix/sysv/linux/csky/abiv2/swapcontext.S: Likewise.
2623 * sysdeps/unix/sysv/linux/csky/abiv2/syscall.S: Likewise.
2624 * sysdeps/unix/sysv/linux/csky/abiv2/sysdep.S: Likewise.
2625 * sysdeps/unix/sysv/linux/csky/abiv2/ucontext_i.sym: Likewise.
2626 * sysdeps/unix/sysv/linux/csky/bits/procfs.h: Likewise.
2627 * sysdeps/unix/sysv/linux/csky/bits/shmlba.h: Likewise.
2628 * sysdeps/unix/sysv/linux/csky/c++-types.data: Likewise.
2629 * sysdeps/unix/sysv/linux/csky/configure: Likewise.
2630 * sysdeps/unix/sysv/linux/csky/configure.ac: Likewise.
2631 * sysdeps/unix/sysv/linux/csky/ipc_priv.h: Likewise.
2632 * sysdeps/unix/sysv/linux/csky/jmp_buf-macros.h: Likewise.
2633 * sysdeps/unix/sysv/linux/csky/kernel-features.h: Likewise.
2634 * sysdeps/unix/sysv/linux/csky/ld.abilist: Likewise.
2635 * sysdeps/unix/sysv/linux/csky/ldconfig.h: Likewise.
2636 * sysdeps/unix/sysv/linux/csky/libBrokenLocale.abilist: Likewise.
2637 * sysdeps/unix/sysv/linux/csky/libanl.abilist: Likewise.
2638 * sysdeps/unix/sysv/linux/csky/libc.abilist: Likewise.
2639 * sysdeps/unix/sysv/linux/csky/libcrypt.abilist: Likewise.
2640 * sysdeps/unix/sysv/linux/csky/libdl.abilist: Likewise.
2641 * sysdeps/unix/sysv/linux/csky/libm.abilist: Likewise.
2642 * sysdeps/unix/sysv/linux/csky/libpthread.abilist: Likewise.
2643 * sysdeps/unix/sysv/linux/csky/libresolv.abilist: Likewise.
2644 * sysdeps/unix/sysv/linux/csky/librt.abilist: Likewise.
2645 * sysdeps/unix/sysv/linux/csky/libthread_db.abilist: Likewise.
2646 * sysdeps/unix/sysv/linux/csky/libutil.abilist: Likewise.
2647 * sysdeps/unix/sysv/linux/csky/localplt.data: Likewise.
2648 * sysdeps/unix/sysv/linux/csky/makecontext.c: Likewise.
2649 * sysdeps/unix/sysv/linux/csky/profil-counter.h: Likewise.
2650 * sysdeps/unix/sysv/linux/csky/pt-vfork.S: Likewise.
2651 * sysdeps/unix/sysv/linux/csky/register-dump.h: Likewise.
2652 * sysdeps/unix/sysv/linux/csky/shlib-versions: Likewise.
2653 * sysdeps/unix/sysv/linux/csky/sigcontextinfo.h: Likewise.
2654 * sysdeps/unix/sysv/linux/csky/sys/cachectl.h: Likewise.
2655 * sysdeps/unix/sysv/linux/csky/sys/ucontext.h: Likewise.
2656 * sysdeps/unix/sysv/linux/csky/sys/user.h: Likewise.
2657 * sysdeps/unix/sysv/linux/csky/syscalls.list: Likewise.
2658 * sysdeps/unix/sysv/linux/csky/sysdep.h: Likewise.
2659
2660 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2661
2662 * include/time.h (__difftime64): Add.
2663 * time/difftime.c (subtract): convert to 64-bit time.
2664 * time/difftime.c (__difftime64): Add.
2665 * time/difftime.c (__difftime): Wrap around __difftime64.
2666
2667 2018-12-20 H.J. Lu <hongjiu.lu@intel.com>
2668
2669 * manual/examples/add.c: Remove redundant "if not".
2670 * manual/examples/argp-ex1.c: Likewise.
2671 * manual/examples/argp-ex2.c: Likewise.
2672 * manual/examples/argp-ex3.c: Likewise.
2673 * manual/examples/argp-ex4.c: Likewise.
2674 * manual/examples/atexit.c: Likewise.
2675 * manual/examples/db.c: Likewise.
2676 * manual/examples/dir.c: Likewise.
2677 * manual/examples/dir2.c: Likewise.
2678 * manual/examples/execinfo.c: Likewise.
2679 * manual/examples/filecli.c: Likewise.
2680 * manual/examples/filesrv.c: Likewise.
2681 * manual/examples/fmtmsgexpl.c: Likewise.
2682 * manual/examples/genpass.c: Likewise.
2683 * manual/examples/inetcli.c: Likewise.
2684 * manual/examples/inetsrv.c: Likewise.
2685 * manual/examples/isockad.c: Likewise.
2686 * manual/examples/longopt.c: Likewise.
2687 * manual/examples/memopen.c: Likewise.
2688 * manual/examples/memstrm.c: Likewise.
2689 * manual/examples/mkdirent.c: Likewise.
2690 * manual/examples/mkfsock.c: Likewise.
2691 * manual/examples/mkisock.c: Likewise.
2692 * manual/examples/mygetpass.c: Likewise.
2693 * manual/examples/pipe.c: Likewise.
2694 * manual/examples/popen.c: Likewise.
2695 * manual/examples/rprintf.c: Likewise.
2696 * manual/examples/search.c: Likewise.
2697 * manual/examples/select.c: Likewise.
2698 * manual/examples/setjmp.c: Likewise.
2699 * manual/examples/sigh1.c: Likewise.
2700 * manual/examples/sigusr.c: Likewise.
2701 * manual/examples/stpcpy.c: Likewise.
2702 * manual/examples/strdupa.c: Likewise.
2703 * manual/examples/strftim.c: Likewise.
2704 * manual/examples/subopt.c: Likewise.
2705 * manual/examples/swapcontext.c: Likewise.
2706 * manual/examples/termios.c: Likewise.
2707 * manual/examples/testopt.c: Likewise.
2708 * manual/examples/testpass.c: Likewise.
2709 * manual/examples/timeval_subtract.c: Likewise.
2710
2711 2018-12-19 Joseph Myers <joseph@codesourcery.com>
2712
2713 * sysdeps/x86/fpu/math_private.h: New file.
2714 * sysdeps/x86/fpu/bits/mathinline.h: Remove.
2715
2716 * sysdeps/x86/fpu/bits/mathinline.h (sinh): Remove inline
2717 definition.
2718 (cosh): Likewise.
2719 (tanh): Likewise.
2720
2721 2018-12-19 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
2722
2723 * elf/dl-sysdep.c (auxvars): Add AT_L1I_CACHESIZE,
2724 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHESIZE, AT_L1D_CACHEGEOMETRY,
2725 AT_L2_CACHESIZE, AT_L2_CACHEGEOMETRY, AT_L3_CACHESIZE and
2726 AT_L3_CACHEGEOMETRY. Fix indentation when printing the other
2727 fields.
2728 (_dl_show_auxv): Give a special treatment to
2729 AT_L1I_CACHEGEOMETRY, AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY
2730 and AT_L3_CACHEGEOMETRY.
2731 * sysdeps/powerpc/dl-procinfo.h (cache_geometry): New function.
2732 (_dl_procinfo): Fix indentation when printing AT_HWCAP and
2733 AT_HWCAP2. Add support for AT_L1I_CACHEGEOMETRY,
2734 AT_L1D_CACHEGEOMETRY, AT_L2_CACHEGEOMETRY and AT_L3_CACHEGEOMETRY.
2735
2736 2018-12-19 Andreas Schwab <schwab@suse.de>
2737
2738 * nscd/connections.c (check_use): Don't abort on invalid len.
2739
2740 2018-12-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
2741
2742 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Test against 64bit `cmd'
2743 values in the 64bit value cases.
2744
2745 2018-12-18 Albert ARIBAUD <albert.aribaud@3adev.fr>
2746
2747 * include/time.h
2748 (__ctime64_r): Add.
2749 * time/ctime_r.c
2750 (__ctime64_r): Add.
2751 [__TIMESIZE != 64] (__ctime_r): Turn into a wrapper.
2752
2753 * include/time.h
2754 (__ctime64): Add.
2755 * time/gmtime.c
2756 (__ctime64): Add.
2757 [__TIMESIZE != 64] (ctime): Turn into a wrapper.
2758
2759 * include/time.h
2760 (__gmtime64_r): Add.
2761 * time/gmtime.c
2762 (__gmtime64_r): Add.
2763 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2764
2765 * include/time.h
2766 (__gmtime64): Add.
2767 * time/gmtime.c
2768 (__gmtime64): Add.
2769 [__TIMESIZE != 64] (__gmtime): Turn into a wrapper.
2770
2771 * include/time.h
2772 (__localtime64_r): Add.
2773 * time/localtime.c
2774 (__localtime64_r): Add.
2775 [__TIMESIZE != 64] (__localtime_r): Turn into a wrapper.
2776
2777 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2778
2779 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Use Linux generic
2780 kernel_sigction definition.
2781
2782 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: Remove file.
2783
2784 * sysdeps/unix/sysv/linux/hppa/kernel_sigaction.h: Remove file.
2785
2786 * sysdeps/unix/sysv/linux/alpha/Makefile: Update comment about
2787 __syscall_rt_sigaction.
2788 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h
2789 (kernel_sigaction): Use Linux generic defintion.
2790 (STUB): Define.
2791 (__syscall_rt_sigreturn, __syscall_sigreturn): Add prototype.
2792 * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S
2793 (__syscall_rt_sigaction): Remove implementation.
2794 (__syscall_sigreturn, __syscall_rt_sigreturn): Define as global and
2795 hidden.
2796 * sysdeps/unix/sysv/linux/alpha/sigaction.c: Remove file.
2797 * sysdeps/unix/sysv/linux/alpha/sysdep.h (INLINE_SYSCALL,
2798 INTERNAL_SYSCALL): Remove definitions.
2799 * sysdeps/unix/sysv/linux/sigaction.c: Define STUB to accept both the
2800 action and signal set size.
2801 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c (STUB): Redefine.
2802 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c (STUB): Likewise.
2803
2804 2018-12-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2805 James Clarke <jrtc27@jrtc27.com>
2806
2807 [BZ #23967]
2808 * sysdeps/unix/sysv/linux/kernel_sigaction.h (HAS_SA_RESTORER):
2809 Define if SA_RESTORER is defined.
2810 (kernel_sigaction): Define sa_restorer if HAS_SA_RESTORER is defined.
2811 (SET_SA_RESTORER, RESET_SA_RESTORER): Define iff the macro are not
2812 already defined.
2813 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h (SA_RESTORER,
2814 kernel_sigaction, SET_SA_RESTORER, RESET_SA_RESTORER): Remove
2815 definitions.
2816 (HAS_SA_RESTORER): Define.
2817 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h (SA_RESTORER,
2818 SET_SA_RESTORER, RESET_SA_RESTORER): Remove definition.
2819 (HAS_SA_RESTORER): Define.
2820 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Include generic
2821 kernel_sigaction after define SET_SA_RESTORER and RESET_SA_RESTORER.
2822 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction.h: Likewise.
2823 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
2824 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
2825
2826 2018-12-18 Joseph Myers <joseph@codesourcery.com>
2827
2828 * sysdeps/unix/sysv/linux/kernel-features.h
2829 (__ASSUME_ST_INO_64_BIT): Remove macro definition.
2830 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
2831 (__ASSUME_ST_INO_64_BIT): Do not undefine and define.
2832 * sysdeps/unix/sysv/linux/sh/kernel-features.h
2833 (__ASSUME_ST_INO_64_BIT): Likewise.
2834 * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
2835 <kernel-features.h>.
2836 (___fxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2837 Remove conditional code.
2838 * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
2839 <kernel-features.h>.
2840 (___lxstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2841 Remove conditional code.
2842 * sysdeps/unix/sysv/linux/xstat64.c: Do not include
2843 <kernel-features.h>.
2844 (___xstat64) [_HAVE_STAT64___ST_INO && !__ASSUME_ST_INO_64_BIT]:
2845 Remove conditional code.
2846 * sysdeps/unix/sysv/linux/xstatconv.c: Do not include
2847 <kernel-features.h>.
2848 (__xstat32_conv) [_HAVE_STAT64___ST_INO]: Remove conditional code.
2849 [!_HAVE_STAT64___ST_INO]: Make code unconditional.
2850
2851 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2852
2853 * sysdeps/s390/multiarch/ifunc-resolve.h
2854 (s390_vx_libc_ifunc, s390_vx_libc_ifunc_redirected,
2855 s390_vx_libc_ifunc2, s390_vx_libc_ifunc_init,
2856 s390_vx_libc_ifunc2_redirected, s390_libc_ifunc):
2857 Delete macro definition.
2858 (s390_libc_ifunc_init): Rename to
2859 s390_libc_ifunc_expr_stfle_init.
2860 * sysdeps/s390/bzero: Use
2861 s390_libc_ifunc_expr_stfle_init instead of
2862 s390_libc_ifunc_init.
2863 * sysdeps/s390/memcmp.c: Likewise.
2864 * sysdeps/s390/memcpy.c: Likewise.
2865 * sysdeps/s390/mempcpy.c: Likewise.
2866 * sysdeps/s390/memset.c: Likewise.
2867
2868 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2869
2870 * sysdeps/s390/multiarch/gconv_simple.c (ICONV_VX_IFUNC):
2871 Define macro dependent on HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT.
2872
2873 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2874
2875 * sysdeps/s390/multiarch/Makefile
2876 (sysdep_routines): Remove wmemcmp variants.
2877 * sysdeps/s390/Makefile (sysdep_routines): Add wmemcmp variants.
2878 * sysdeps/s390/multiarch/ifunc-impl-list.c
2879 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemcmp.
2880 * sysdeps/s390/multiarch/wmemcmp-c.c: Move to ...
2881 * sysdeps/s390/wmemcmp-c.c: ... here and adjust ifunc handling.
2882 * sysdeps/s390/multiarch/wmemcmp-vx.S: Move to ...
2883 * sysdeps/s390/wmemcmp-vx.S: ... here and adjust ifunc handling.
2884 * sysdeps/s390/multiarch/wmemcmp.c: Move to ...
2885 * sysdeps/s390/wmemcmp.c: ... here and adjust ifunc handling.
2886 * sysdeps/s390/ifunc-wmemcmp.h: New file.
2887
2888 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2889
2890 * sysdeps/s390/multiarch/Makefile
2891 (sysdep_routines): Remove wmemset variants.
2892 * sysdeps/s390/Makefile (sysdep_routines): Add wmemset variants.
2893 * sysdeps/s390/multiarch/ifunc-impl-list.c
2894 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemset.
2895 * sysdeps/s390/multiarch/wmemset-c.c: Move to ...
2896 * sysdeps/s390/wmemset-c.c: ... here and adjust ifunc handling.
2897 * sysdeps/s390/multiarch/wmemset-vx.S: Move to ...
2898 * sysdeps/s390/wmemset-vx.S: ... here and adjust ifunc handling.
2899 * sysdeps/s390/multiarch/wmemset.c: Move to ...
2900 * sysdeps/s390/wmemset.c: ... here and adjust ifunc handling.
2901 * sysdeps/s390/ifunc-wmemset.h: New file.
2902
2903 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2904
2905 * sysdeps/s390/multiarch/Makefile
2906 (sysdep_routines): Remove wmemchr variants.
2907 * sysdeps/s390/Makefile (sysdep_routines): Add wmemchr variants.
2908 * sysdeps/s390/multiarch/ifunc-impl-list.c
2909 (__libc_ifunc_impl_list): Refactor ifunc handling for wmemchr.
2910 * sysdeps/s390/multiarch/wmemchr-c.c: Move to ...
2911 * sysdeps/s390/wmemchr-c.c: ... here and adjust ifunc handling.
2912 * sysdeps/s390/multiarch/wmemchr-vx.S: Move to ...
2913 * sysdeps/s390/wmemchr-vx.S: ... here and adjust ifunc handling.
2914 * sysdeps/s390/multiarch/wmemchr.c: Move to ...
2915 * sysdeps/s390/wmemchr.c: ... here and adjust ifunc handling.
2916 * sysdeps/s390/ifunc-wmemchr.h: New file.
2917
2918 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2919
2920 * sysdeps/s390/multiarch/Makefile
2921 (sysdep_routines): Remove wcscspn variants.
2922 * sysdeps/s390/Makefile (sysdep_routines): Add wcscspn variants.
2923 * sysdeps/s390/multiarch/ifunc-impl-list.c
2924 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscspn.
2925 * sysdeps/s390/multiarch/wcscspn-c.c: Move to ...
2926 * sysdeps/s390/wcscspn-c.c: ... here and adjust ifunc handling.
2927 * sysdeps/s390/multiarch/wcscspn-vx.S: Move to ...
2928 * sysdeps/s390/wcscspn-vx.S: ... here and adjust ifunc handling.
2929 * sysdeps/s390/multiarch/wcscspn.c: Move to ...
2930 * sysdeps/s390/wcscspn.c: ... here and adjust ifunc handling.
2931 * sysdeps/s390/ifunc-wcscspn.h: New file.
2932
2933 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2934
2935 * sysdeps/s390/multiarch/Makefile
2936 (sysdep_routines): Remove wcspbrk variants.
2937 * sysdeps/s390/Makefile (sysdep_routines): Add wcspbrk variants.
2938 * sysdeps/s390/multiarch/ifunc-impl-list.c
2939 (__libc_ifunc_impl_list): Refactor ifunc handling for wcspbrk.
2940 * sysdeps/s390/multiarch/wcspbrk-c.c: Move to ...
2941 * sysdeps/s390/wcspbrk-c.c: ... here and adjust ifunc handling.
2942 * sysdeps/s390/multiarch/wcspbrk-vx.S: Move to ...
2943 * sysdeps/s390/wcspbrk-vx.S: ... here and adjust ifunc handling.
2944 * sysdeps/s390/multiarch/wcspbrk.c: Move to ...
2945 * sysdeps/s390/wcspbrk.c: ... here and adjust ifunc handling.
2946 * sysdeps/s390/ifunc-wcspbrk.h: New file.
2947
2948 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2949
2950 * sysdeps/s390/multiarch/Makefile
2951 (sysdep_routines): Remove wcsspn variants.
2952 * sysdeps/s390/Makefile (sysdep_routines): Add wcsspn variants.
2953 * sysdeps/s390/multiarch/ifunc-impl-list.c
2954 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsspn.
2955 * sysdeps/s390/multiarch/wcsspn-c.c: Move to ...
2956 * sysdeps/s390/wcsspn-c.c: ... here and adjust ifunc handling.
2957 * sysdeps/s390/multiarch/wcsspn-vx.S: Move to ...
2958 * sysdeps/s390/wcsspn-vx.S: ... here and adjust ifunc handling.
2959 * sysdeps/s390/multiarch/wcsspn.c: Move to ...
2960 * sysdeps/s390/wcsspn.c: ... here and adjust ifunc handling.
2961 * sysdeps/s390/ifunc-wcsspn.h: New file.
2962
2963 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2964
2965 * sysdeps/s390/multiarch/Makefile
2966 (sysdep_routines): Remove wcsrchr variants.
2967 * sysdeps/s390/Makefile (sysdep_routines): Add wcsrchr variants.
2968 * sysdeps/s390/multiarch/ifunc-impl-list.c
2969 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsrchr.
2970 * sysdeps/s390/multiarch/wcsrchr-c.c: Move to ...
2971 * sysdeps/s390/wcsrchr-c.c: ... here and adjust ifunc handling.
2972 * sysdeps/s390/multiarch/wcsrchr-vx.S: Move to ...
2973 * sysdeps/s390/wcsrchr-vx.S: ... here and adjust ifunc handling.
2974 * sysdeps/s390/multiarch/wcsrchr.c: Move to ...
2975 * sysdeps/s390/wcsrchr.c: ... here and adjust ifunc handling.
2976 * sysdeps/s390/ifunc-wcsrchr.h: New file.
2977
2978 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2979
2980 * sysdeps/s390/multiarch/Makefile
2981 (sysdep_routines): Remove wcschrnul variants.
2982 * sysdeps/s390/Makefile (sysdep_routines): Add wcschrnul variants.
2983 * sysdeps/s390/multiarch/ifunc-impl-list.c
2984 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschrnul.
2985 * sysdeps/s390/multiarch/wcschrnul-c.c: Move to ...
2986 * sysdeps/s390/wcschrnul-c.c: ... here and adjust ifunc handling.
2987 * sysdeps/s390/multiarch/wcschrnul-vx.S: Move to ...
2988 * sysdeps/s390/wcschrnul-vx.S: ... here and adjust ifunc handling.
2989 * sysdeps/s390/multiarch/wcschrnul.c: Move to ...
2990 * sysdeps/s390/wcschrnul.c: ... here and adjust ifunc handling.
2991 * sysdeps/s390/ifunc-wcschrnul.h: New file.
2992
2993 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
2994
2995 * sysdeps/s390/multiarch/Makefile
2996 (sysdep_routines): Remove wcschr variants.
2997 * sysdeps/s390/Makefile (sysdep_routines): Add wcschr variants.
2998 * sysdeps/s390/multiarch/ifunc-impl-list.c
2999 (__libc_ifunc_impl_list): Refactor ifunc handling for wcschr.
3000 * sysdeps/s390/multiarch/wcschr-c.c: Move to ...
3001 * sysdeps/s390/wcschr-c.c: ... here and adjust ifunc handling.
3002 * sysdeps/s390/multiarch/wcschr-vx.S: Move to ...
3003 * sysdeps/s390/wcschr-vx.S: ... here and adjust ifunc handling.
3004 * sysdeps/s390/multiarch/wcschr.c: Move to ...
3005 * sysdeps/s390/wcschr.c: ... here and adjust ifunc handling.
3006 * sysdeps/s390/ifunc-wcschr.h: New file.
3007
3008 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3009
3010 * sysdeps/s390/multiarch/Makefile
3011 (sysdep_routines): Remove wcsncmp variants.
3012 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncmp variants.
3013 * sysdeps/s390/multiarch/ifunc-impl-list.c
3014 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncmp.
3015 * sysdeps/s390/multiarch/wcsncmp-c.c: Move to ...
3016 * sysdeps/s390/wcsncmp-c.c: ... here and adjust ifunc handling.
3017 * sysdeps/s390/multiarch/wcsncmp-vx.S: Move to ...
3018 * sysdeps/s390/wcsncmp-vx.S: ... here and adjust ifunc handling.
3019 * sysdeps/s390/multiarch/wcsncmp.c: Move to ...
3020 * sysdeps/s390/wcsncmp.c: ... here and adjust ifunc handling.
3021 * sysdeps/s390/ifunc-wcsncmp.h: New file.
3022
3023 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3024
3025 * sysdeps/s390/multiarch/Makefile
3026 (sysdep_routines): Remove wcscmp variants.
3027 * sysdeps/s390/Makefile (sysdep_routines): Add wcscmp variants.
3028 * sysdeps/s390/multiarch/ifunc-impl-list.c
3029 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscmp.
3030 * sysdeps/s390/multiarch/wcscmp-c.c: Move to ...
3031 * sysdeps/s390/wcscmp-c.c: ... here and adjust ifunc handling.
3032 * sysdeps/s390/multiarch/wcscmp-vx.S: Move to ...
3033 * sysdeps/s390/wcscmp-vx.S: ... here and adjust ifunc handling.
3034 * sysdeps/s390/multiarch/wcscmp.c: Move to ...
3035 * sysdeps/s390/wcscmp.c: ... here and adjust ifunc handling.
3036 * sysdeps/s390/ifunc-wcscmp.h: New file.
3037
3038 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3039
3040 * sysdeps/s390/multiarch/Makefile
3041 (sysdep_routines): Remove wcsncat variants.
3042 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncat variants.
3043 * sysdeps/s390/multiarch/ifunc-impl-list.c
3044 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncat.
3045 * sysdeps/s390/multiarch/wcsncat-c.c: Move to ...
3046 * sysdeps/s390/wcsncat-c.c: ... here and adjust ifunc handling.
3047 * sysdeps/s390/multiarch/wcsncat-vx.S: Move to ...
3048 * sysdeps/s390/wcsncat-vx.S: ... here and adjust ifunc handling.
3049 * sysdeps/s390/multiarch/wcsncat.c: Move to ...
3050 * sysdeps/s390/wcsncat.c: ... here and adjust ifunc handling.
3051 * sysdeps/s390/ifunc-wcsncat.h: New file.
3052
3053 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3054
3055 * sysdeps/s390/multiarch/Makefile
3056 (sysdep_routines): Remove wcscat variants.
3057 * sysdeps/s390/Makefile (sysdep_routines): Add wcscat variants.
3058 * sysdeps/s390/multiarch/ifunc-impl-list.c
3059 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscat.
3060 * sysdeps/s390/multiarch/wcscat-c.c: Move to ...
3061 * sysdeps/s390/wcscat-c.c: ... here and adjust ifunc handling.
3062 * sysdeps/s390/multiarch/wcscat-vx.S: Move to ...
3063 * sysdeps/s390/wcscat-vx.S: ... here and adjust ifunc handling.
3064 * sysdeps/s390/multiarch/wcscat.c: Move to ...
3065 * sysdeps/s390/wcscat.c: ... here and adjust ifunc handling.
3066 * sysdeps/s390/ifunc-wcscat.h: New file.
3067
3068 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3069
3070 * sysdeps/s390/multiarch/Makefile
3071 (sysdep_routines): Remove wcpncpy variants.
3072 * sysdeps/s390/Makefile (sysdep_routines): Add wcpncpy variants.
3073 * sysdeps/s390/multiarch/ifunc-impl-list.c
3074 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpncpy.
3075 * sysdeps/s390/multiarch/wcpncpy-c.c: Move to ...
3076 * sysdeps/s390/wcpncpy-c.c: ... here and adjust ifunc handling.
3077 * sysdeps/s390/multiarch/wcpncpy-vx.S: Move to ...
3078 * sysdeps/s390/wcpncpy-vx.S: ... here and adjust ifunc handling.
3079 * sysdeps/s390/multiarch/wcpncpy.c: Move to ...
3080 * sysdeps/s390/wcpncpy.c: ... here and adjust ifunc handling.
3081 * sysdeps/s390/ifunc-wcpncpy.h: New file.
3082
3083 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3084
3085 * sysdeps/s390/multiarch/Makefile
3086 (sysdep_routines): Remove wcsncpy variants.
3087 * sysdeps/s390/Makefile (sysdep_routines): Add wcsncpy variants.
3088 * sysdeps/s390/multiarch/ifunc-impl-list.c
3089 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsncpy.
3090 * sysdeps/s390/multiarch/wcsncpy-c.c: Move to ...
3091 * sysdeps/s390/wcsncpy-c.c: ... here and adjust ifunc handling.
3092 * sysdeps/s390/multiarch/wcsncpy-vx.S: Move to ...
3093 * sysdeps/s390/wcsncpy-vx.S: ... here and adjust ifunc handling.
3094 * sysdeps/s390/multiarch/wcsncpy.c: Move to ...
3095 * sysdeps/s390/wcsncpy.c: ... here and adjust ifunc handling.
3096 * sysdeps/s390/ifunc-wcsncpy.h: New file.
3097
3098 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3099
3100 * sysdeps/s390/multiarch/Makefile
3101 (sysdep_routines): Remove wcpcpy variants.
3102 * sysdeps/s390/Makefile (sysdep_routines): Add wcpcpy variants.
3103 * sysdeps/s390/multiarch/ifunc-impl-list.c
3104 (__libc_ifunc_impl_list): Refactor ifunc handling for wcpcpy.
3105 * sysdeps/s390/multiarch/wcpcpy-c.c: Move to ...
3106 * sysdeps/s390/wcpcpy-c.c: ... here and adjust ifunc handling.
3107 * sysdeps/s390/multiarch/wcpcpy-vx.S: Move to ...
3108 * sysdeps/s390/wcpcpy-vx.S: ... here and adjust ifunc handling.
3109 * sysdeps/s390/multiarch/wcpcpy.c: Move to ...
3110 * sysdeps/s390/wcpcpy.c: ... here and adjust ifunc handling.
3111 * sysdeps/s390/ifunc-wcpcpy.h: New file.
3112
3113 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3114
3115 * sysdeps/s390/multiarch/Makefile
3116 (sysdep_routines): Remove wcscpy variants.
3117 * sysdeps/s390/Makefile (sysdep_routines): Add wcscpy variants.
3118 * sysdeps/s390/multiarch/ifunc-impl-list.c
3119 (__libc_ifunc_impl_list): Refactor ifunc handling for wcscpy.
3120 * sysdeps/s390/multiarch/wcscpy-c.c: Move to ...
3121 * sysdeps/s390/wcscpy-c.c: ... here and adjust ifunc handling.
3122 * sysdeps/s390/multiarch/wcscpy-vx.S: Move to ...
3123 * sysdeps/s390/wcscpy-vx.S: ... here and adjust ifunc handling.
3124 * sysdeps/s390/multiarch/wcscpy.c: Move to ...
3125 * sysdeps/s390/wcscpy.c: ... here and adjust ifunc handling.
3126 * sysdeps/s390/ifunc-wcscpy.h: New file.
3127
3128 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3129
3130 * sysdeps/s390/multiarch/Makefile
3131 (sysdep_routines): Remove wcsnlen variants.
3132 * sysdeps/s390/Makefile (sysdep_routines): Add wcsnlen variants.
3133 * sysdeps/s390/multiarch/ifunc-impl-list.c
3134 (__libc_ifunc_impl_list): Refactor ifunc handling for wcsnlen.
3135 * sysdeps/s390/multiarch/wcsnlen-c.c: Move to ...
3136 * sysdeps/s390/wcsnlen-c.c: ... here and adjust ifunc handling.
3137 * sysdeps/s390/multiarch/wcsnlen-vx.S: Move to ...
3138 * sysdeps/s390/wcsnlen-vx.S: ... here and adjust ifunc handling.
3139 * sysdeps/s390/multiarch/wcsnlen.c: Move to ...
3140 * sysdeps/s390/wcsnlen.c: ... here and adjust ifunc handling.
3141 * sysdeps/s390/ifunc-wcsnlen.h: New file.
3142
3143 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3144
3145 * sysdeps/s390/multiarch/Makefile
3146 (sysdep_routines): Remove wcslen variants.
3147 * sysdeps/s390/Makefile (sysdep_routines): Add wcslen variants.
3148 * sysdeps/s390/multiarch/ifunc-impl-list.c
3149 (__libc_ifunc_impl_list): Refactor ifunc handling for wcslen.
3150 * sysdeps/s390/multiarch/wcslen-c.c: Move to ...
3151 * sysdeps/s390/wcslen-c.c: ... here and adjust ifunc handling.
3152 * sysdeps/s390/multiarch/wcslen-vx.S: Move to ...
3153 * sysdeps/s390/wcslen-vx.S: ... here and adjust ifunc handling.
3154 * sysdeps/s390/multiarch/wcslen.c: Move to ...
3155 * sysdeps/s390/wcslen.c: ... here and adjust ifunc handling.
3156 * sysdeps/s390/ifunc-wcslen.h: New file.
3157
3158 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3159
3160 * sysdeps/s390/multiarch/Makefile
3161 (sysdep_routines): Remove memrchr variants.
3162 * sysdeps/s390/Makefile (sysdep_routines): Add memrchr variants.
3163 * sysdeps/s390/multiarch/ifunc-impl-list.c
3164 (__libc_ifunc_impl_list): Refactor ifunc handling for memrchr.
3165 * sysdeps/s390/multiarch/memrchr-c.c: Move to ...
3166 * sysdeps/s390/memrchr-c.c: ... here and adjust ifunc handling.
3167 * sysdeps/s390/multiarch/memrchr-vx.S: Move to ...
3168 * sysdeps/s390/memrchr-vx.S: ... here and adjust ifunc handling.
3169 * sysdeps/s390/multiarch/memrchr.c: Move to ...
3170 * sysdeps/s390/memrchr.c: ... here and adjust ifunc handling.
3171 * sysdeps/s390/ifunc-memrchr.h: New file.
3172
3173 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3174
3175 * sysdeps/s390/multiarch/Makefile
3176 (sysdep_routines): Remove memccpy variants.
3177 * sysdeps/s390/Makefile (sysdep_routines): Add memccpy variants.
3178 * sysdeps/s390/multiarch/ifunc-impl-list.c
3179 (__libc_ifunc_impl_list): Refactor ifunc handling for memccpy.
3180 * sysdeps/s390/multiarch/memccpy-c.c: Move to ...
3181 * sysdeps/s390/memccpy-c.c: ... here and adjust ifunc handling.
3182 * sysdeps/s390/multiarch/memccpy-vx.S: Move to ...
3183 * sysdeps/s390/memccpy-vx.S: ... here and adjust ifunc handling.
3184 * sysdeps/s390/multiarch/memccpy.c: Move to ...
3185 * sysdeps/s390/memccpy.c: ... here and adjust ifunc handling.
3186 * sysdeps/s390/ifunc-memccpy.h: New file.
3187
3188 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3189
3190 * sysdeps/s390/multiarch/Makefile
3191 (sysdep_routines): Remove rawmemchr variants.
3192 * sysdeps/s390/Makefile (sysdep_routines): Add rawmemchr variants.
3193 * sysdeps/s390/multiarch/ifunc-impl-list.c
3194 (__libc_ifunc_impl_list): Refactor ifunc handling for rawmemchr.
3195 * sysdeps/s390/multiarch/rawmemchr-c.c: Move to ...
3196 * sysdeps/s390/rawmemchr-c.c: ... here and adjust ifunc handling.
3197 * sysdeps/s390/multiarch/rawmemchr-vx.S: Move to ...
3198 * sysdeps/s390/rawmemchr-vx.S: ... here and adjust ifunc handling.
3199 * sysdeps/s390/multiarch/rawmemchr.c: Move to ...
3200 * sysdeps/s390/rawmemchr.c: ... here and adjust ifunc handling.
3201 * sysdeps/s390/ifunc-rawmemchr.h: New file.
3202
3203 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3204
3205 * sysdeps/s390/multiarch/Makefile
3206 (sysdep_routines): Remove memchr variants.
3207 * sysdeps/s390/Makefile (sysdep_routines): Add memchr variants.
3208 * sysdeps/s390/multiarch/ifunc-impl-list.c
3209 (__libc_ifunc_impl_list): Refactor ifunc handling for memchr.
3210 * sysdeps/s390/multiarch/memchr-vx.S: Move to ...
3211 * sysdeps/s390/memchr-vx.S: ... here and adjust ifunc handling.
3212 * sysdeps/s390/multiarch/memchr.c: Move to ...
3213 * sysdeps/s390/memchr.c: ... here and adjust ifunc handling.
3214 * sysdeps/s390/ifunc-memchr.h: New file.
3215 * sysdeps/s390/s390-64/memchr.S: Move to ...
3216 * sysdeps/s390/memchr-z900.S: ... here and adjust to be usable
3217 for 31/64bit and ifunc handling.
3218 * sysdeps/s390/s390-32/multiarch/memchr.c: Delete file.
3219 * sysdeps/s390/s390-64/multiarch/memchr.c: Likewise.
3220 * sysdeps/s390/s390-32/memchr.S: Likewise.
3221
3222 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3223
3224 * sysdeps/s390/multiarch/Makefile
3225 (sysdep_routines): Remove strcspn variants.
3226 * sysdeps/s390/Makefile (sysdep_routines): Add strcspn variants.
3227 * sysdeps/s390/multiarch/ifunc-impl-list.c
3228 (__libc_ifunc_impl_list): Refactor ifunc handling for strcspn.
3229 * sysdeps/s390/multiarch/strcspn-c.c: Move to ...
3230 * sysdeps/s390/strcspn-c.c: ... here and adjust ifunc handling.
3231 * sysdeps/s390/multiarch/strcspn-vx.S: Move to ...
3232 * sysdeps/s390/strcspn-vx.S: ... here and adjust ifunc handling.
3233 * sysdeps/s390/multiarch/strcspn.c: Move to ...
3234 * sysdeps/s390/strcspn.c: ... here and adjust ifunc handling.
3235 * sysdeps/s390/ifunc-strcspn.h: New file.
3236
3237 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3238
3239 * sysdeps/s390/multiarch/Makefile
3240 (sysdep_routines): Remove strpbrk variants.
3241 * sysdeps/s390/Makefile (sysdep_routines): Add strpbrk variants.
3242 * sysdeps/s390/multiarch/ifunc-impl-list.c
3243 (__libc_ifunc_impl_list): Refactor ifunc handling for strpbrk.
3244 * sysdeps/s390/multiarch/strpbrk-c.c: Move to ...
3245 * sysdeps/s390/strpbrk-c.c: ... here and adjust ifunc handling.
3246 * sysdeps/s390/multiarch/strpbrk-vx.S: Move to ...
3247 * sysdeps/s390/strpbrk-vx.S: ... here and adjust ifunc handling.
3248 * sysdeps/s390/multiarch/strpbrk.c: Move to ...
3249 * sysdeps/s390/strpbrk.c: ... here and adjust ifunc handling.
3250 * sysdeps/s390/ifunc-strpbrk.h: New file.
3251
3252 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3253
3254 * sysdeps/s390/multiarch/Makefile
3255 (sysdep_routines): Remove strspn variants.
3256 * sysdeps/s390/Makefile (sysdep_routines): Add strspn variants.
3257 * sysdeps/s390/multiarch/ifunc-impl-list.c
3258 (__libc_ifunc_impl_list): Refactor ifunc handling for strspn.
3259 * sysdeps/s390/multiarch/strspn-c.c: Move to ...
3260 * sysdeps/s390/strspn-c.c: ... here and adjust ifunc handling.
3261 * sysdeps/s390/multiarch/strspn-vx.S: Move to ...
3262 * sysdeps/s390/strspn-vx.S: ... here and adjust ifunc handling.
3263 * sysdeps/s390/multiarch/strspn.c: Move to ...
3264 * sysdeps/s390/strspn.c: ... here and adjust ifunc handling.
3265 * sysdeps/s390/ifunc-strspn.h: New file.
3266
3267 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3268
3269 * sysdeps/s390/multiarch/Makefile
3270 (sysdep_routines): Remove strrchr variants.
3271 * sysdeps/s390/Makefile (sysdep_routines): Add strrchr variants.
3272 * sysdeps/s390/multiarch/ifunc-impl-list.c
3273 (__libc_ifunc_impl_list): Refactor ifunc handling for strrchr.
3274 * sysdeps/s390/multiarch/strrchr-c.c: Move to ...
3275 * sysdeps/s390/strrchr-c.c: ... here and adjust ifunc handling.
3276 * sysdeps/s390/multiarch/strrchr-vx.S: Move to ...
3277 * sysdeps/s390/strrchr-vx.S: ... here and adjust ifunc handling.
3278 * sysdeps/s390/multiarch/strrchr.c: Move to ...
3279 * sysdeps/s390/strrchr.c: ... here and adjust ifunc handling.
3280 * sysdeps/s390/ifunc-strrchr.h: New file.
3281
3282 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3283
3284 * sysdeps/s390/multiarch/Makefile
3285 (sysdep_routines): Remove strchrnul variants.
3286 * sysdeps/s390/Makefile (sysdep_routines): Add strchrnul variants.
3287 * sysdeps/s390/multiarch/ifunc-impl-list.c
3288 (__libc_ifunc_impl_list): Refactor ifunc handling for strchrnul.
3289 * sysdeps/s390/multiarch/strchrnul-c.c: Move to ...
3290 * sysdeps/s390/strchrnul-c.c: ... here and adjust ifunc handling.
3291 * sysdeps/s390/multiarch/strchrnul-vx.S: Move to ...
3292 * sysdeps/s390/strchrnul-vx.S: ... here and adjust ifunc handling.
3293 * sysdeps/s390/multiarch/strchrnul.c: Move to ...
3294 * sysdeps/s390/strchrnul.c: ... here and adjust ifunc handling.
3295 * sysdeps/s390/ifunc-strchrnul.h: New file.
3296
3297 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3298
3299 * sysdeps/s390/multiarch/Makefile
3300 (sysdep_routines): Remove strchr variants.
3301 * sysdeps/s390/Makefile (sysdep_routines): Add strchr variants.
3302 * sysdeps/s390/multiarch/ifunc-impl-list.c
3303 (__libc_ifunc_impl_list): Refactor ifunc handling for strchr.
3304 * sysdeps/s390/multiarch/strchr-c.c: Move to ...
3305 * sysdeps/s390/strchr-c.c: ... here and adjust ifunc handling.
3306 * sysdeps/s390/multiarch/strchr-vx.S: Move to ...
3307 * sysdeps/s390/strchr-vx.S: ... here and adjust ifunc handling.
3308 * sysdeps/s390/multiarch/strchr.c: Move to ...
3309 * sysdeps/s390/strchr.c: ... here and adjust ifunc handling.
3310 * sysdeps/s390/ifunc-strchr.h: New file.
3311
3312 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3313
3314 * sysdeps/s390/multiarch/Makefile
3315 (sysdep_routines): Remove strncmp variants.
3316 * sysdeps/s390/Makefile (sysdep_routines): Add strncmp variants.
3317 * sysdeps/s390/multiarch/ifunc-impl-list.c
3318 (__libc_ifunc_impl_list): Refactor ifunc handling for strncmp.
3319 * sysdeps/s390/multiarch/strncmp-c.c: Move to ...
3320 * sysdeps/s390/strncmp-c.c: ... here and adjust ifunc handling.
3321 * sysdeps/s390/multiarch/strncmp-vx.S: Move to ...
3322 * sysdeps/s390/strncmp-vx.S: ... here and adjust ifunc handling.
3323 * sysdeps/s390/multiarch/strncmp.c: Move to ...
3324 * sysdeps/s390/strncmp.c: ... here and adjust ifunc handling.
3325 * sysdeps/s390/ifunc-strncmp.h: New file.
3326
3327 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3328
3329 * sysdeps/s390/multiarch/Makefile
3330 (sysdep_routines): Remove strcmp variants.
3331 * sysdeps/s390/Makefile (sysdep_routines): Add strcmp variants.
3332 * sysdeps/s390/multiarch/ifunc-impl-list.c
3333 (__libc_ifunc_impl_list): Refactor ifunc handling for strcmp.
3334 * sysdeps/s390/multiarch/strcmp-vx.S: Move to ...
3335 * sysdeps/s390/strcmp-vx.S: ... here and adjust ifunc handling.
3336 * sysdeps/s390/multiarch/strcmp.c: Move to ...
3337 * sysdeps/s390/strcmp.c: ... here and adjust ifunc handling.
3338 * sysdeps/s390/ifunc-strcmp.h: New file.
3339 * sysdeps/s390/s390-64/strcmp.S: Move to ...
3340 * sysdeps/s390/strcmp-z900.S: ... here and adjust to be usable
3341 for 31/64bit and ifunc handling.
3342 * sysdeps/s390/s390-32/multiarch/strcmp.c: Delete file.
3343 * sysdeps/s390/s390-64/multiarch/strcmp.c: Likewise.
3344 * sysdeps/s390/s390-32/strcmp.S: Likewise.
3345
3346 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3347
3348 * sysdeps/s390/multiarch/Makefile
3349 (sysdep_routines): Remove strncat variants.
3350 * sysdeps/s390/Makefile (sysdep_routines): Add strncat variants.
3351 * sysdeps/s390/multiarch/ifunc-impl-list.c
3352 (__libc_ifunc_impl_list): Refactor ifunc handling for strncat.
3353 * sysdeps/s390/multiarch/strncat-c.c: Move to ...
3354 * sysdeps/s390/strncat-c.c: ... here and adjust ifunc handling.
3355 * sysdeps/s390/multiarch/strncat-vx.S: Move to ...
3356 * sysdeps/s390/strncat-vx.S: ... here and adjust ifunc handling.
3357 * sysdeps/s390/multiarch/strncat.c: Move to ...
3358 * sysdeps/s390/strncat.c: ... here and adjust ifunc handling.
3359 * sysdeps/s390/ifunc-strncat.h: New file.
3360
3361 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3362
3363 * sysdeps/s390/multiarch/Makefile
3364 (sysdep_routines): Remove strcat variants.
3365 * sysdeps/s390/Makefile (sysdep_routines): Add strcat variants.
3366 * sysdeps/s390/multiarch/ifunc-impl-list.c
3367 (__libc_ifunc_impl_list): Refactor ifunc handling for strcat.
3368 * sysdeps/s390/multiarch/strcat-c.c: Move to ...
3369 * sysdeps/s390/strcat-c.c: ... here and adjust ifunc handling.
3370 * sysdeps/s390/multiarch/strcat-vx.S: Move to ...
3371 * sysdeps/s390/strcat-vx.S: ... here and adjust ifunc handling.
3372 * sysdeps/s390/multiarch/strcat.c: Move to ...
3373 * sysdeps/s390/strcat.c: ... here and adjust ifunc handling.
3374 * sysdeps/s390/ifunc-strcat.h: New file.
3375
3376 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3377
3378 * sysdeps/s390/multiarch/Makefile
3379 (sysdep_routines): Remove stpncpy variants.
3380 * sysdeps/s390/Makefile (sysdep_routines): Add stpncpy variants.
3381 * sysdeps/s390/multiarch/ifunc-impl-list.c
3382 (__libc_ifunc_impl_list): Refactor ifunc handling for stpncpy.
3383 * sysdeps/s390/multiarch/stpncpy-c.c: Move to ...
3384 * sysdeps/s390/stpncpy-c.c: ... here and adjust ifunc handling.
3385 * sysdeps/s390/multiarch/stpncpy-vx.S: Move to ...
3386 * sysdeps/s390/stpncpy-vx.S: ... here and adjust ifunc handling.
3387 * sysdeps/s390/multiarch/stpncpy.c: Move to ...
3388 * sysdeps/s390/stpncpy.c: ... here and adjust ifunc handling.
3389 * sysdeps/s390/ifunc-stpncpy.h: New file.
3390
3391 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3392
3393 * sysdeps/s390/multiarch/Makefile
3394 (sysdep_routines): Remove strncpy variants.
3395 * sysdeps/s390/Makefile (sysdep_routines): Add strncpy variants.
3396 * sysdeps/s390/multiarch/ifunc-impl-list.c
3397 (__libc_ifunc_impl_list): Refactor ifunc handling for strncpy.
3398 * sysdeps/s390/multiarch/strncpy-vx.S: Move to ...
3399 * sysdeps/s390/strncpy-vx.S: ... here and adjust ifunc handling.
3400 * sysdeps/s390/multiarch/strncpy.c: Move to ...
3401 * sysdeps/s390/strncpy.c: ... here and adjust ifunc handling.
3402 * sysdeps/s390/ifunc-strncpy.h: New file.
3403 * sysdeps/s390/s390-64/strncpy.S: Move to ...
3404 * sysdeps/s390/s390-64/strncpy-z900.S: ... here
3405 and adjust ifunc handling.
3406 * sysdeps/s390/s390-32/strncpy.S: Move to ...
3407 * sysdeps/s390/s390-32/strncpy-z900.S: ... here
3408 and adjust ifunc handling.
3409 * sysdeps/s390/s390-32/multiarch/strncpy.c: Delete file.
3410 * sysdeps/s390/s390-64/multiarch/strncpy.c: Likewise.
3411
3412 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3413
3414 * sysdeps/s390/multiarch/Makefile
3415 (sysdep_routines): Remove stpcpy variants.
3416 * sysdeps/s390/Makefile (sysdep_routines): Add stpcpy variants.
3417 * sysdeps/s390/multiarch/ifunc-impl-list.c
3418 (__libc_ifunc_impl_list): Refactor ifunc handling for stpcpy.
3419 * sysdeps/s390/multiarch/stpcpy-c.c: Move to ...
3420 * sysdeps/s390/stpcpy-c.c: ... here and adjust ifunc handling.
3421 * sysdeps/s390/multiarch/stpcpy-vx.S: Move to ...
3422 * sysdeps/s390/stpcpy-vx.S: ... here and adjust ifunc handling.
3423 * sysdeps/s390/multiarch/stpcpy.c: Move to ...
3424 * sysdeps/s390/stpcpy.c: ... here and adjust ifunc handling.
3425 * sysdeps/s390/ifunc-stpcpy.h: New file.
3426
3427 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3428
3429 * sysdeps/s390/multiarch/Makefile
3430 (sysdep_routines): Remove strcpy variants.
3431 * sysdeps/s390/Makefile (sysdep_routines): Add strcpy variants.
3432 * sysdeps/s390/multiarch/ifunc-impl-list.c
3433 (__libc_ifunc_impl_list): Refactor ifunc handling for strcpy.
3434 * sysdeps/s390/multiarch/strcpy-vx.S: Move to ...
3435 * sysdeps/s390/strcpy-vx.S: ... here and adjust ifunc handling.
3436 * sysdeps/s390/multiarch/strcpy.c: Move to ...
3437 * sysdeps/s390/strcpy.c: ... here and adjust ifunc handling.
3438 * sysdeps/s390/ifunc-strcpy.h: New file.
3439 * sysdeps/s390/s390-64/strcpy.S: Move to ...
3440 * sysdeps/s390/strcpy-z900.S: ... here and adjust to be usable
3441 for 31/64bit and ifunc handling.
3442 * sysdeps/s390/s390-32/multiarch/strcpy.c: Delete file.
3443 * sysdeps/s390/s390-64/multiarch/strcpy.c: Likewise.
3444 * sysdeps/s390/s390-32/strcpy.S: Likewise.
3445
3446 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3447
3448 * sysdeps/s390/multiarch/Makefile
3449 (sysdep_routines): Remove strnlen variants.
3450 * sysdeps/s390/Makefile (sysdep_routines): Add strnlen variants.
3451 * sysdeps/s390/multiarch/ifunc-impl-list.c
3452 (__libc_ifunc_impl_list): Refactor ifunc handling for strnlen.
3453 * sysdeps/s390/multiarch/strnlen-c.c: Move to ...
3454 * sysdeps/s390/strnlen-c.c: ... here and adjust ifunc handling.
3455 * sysdeps/s390/multiarch/strnlen-vx.S: Move to ...
3456 * sysdeps/s390/strnlen-vx.S: ... here and adjust ifunc handling.
3457 * sysdeps/s390/multiarch/strnlen.c: Move to ...
3458 * sysdeps/s390/strnlen.c: ... here and adjust ifunc handling.
3459 * sysdeps/s390/ifunc-strnlen.h: New file.
3460
3461 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3462
3463 * sysdeps/s390/multiarch/Makefile
3464 (sysdep_routines): Remove strlen variants.
3465 * sysdeps/s390/Makefile (sysdep_routines): Add strlen variants.
3466 * sysdeps/s390/multiarch/ifunc-impl-list.c
3467 (__libc_ifunc_impl_list): Refactor ifunc handling for strlen.
3468 * sysdeps/s390/multiarch/strlen-c.c: Move to ...
3469 * sysdeps/s390/strlen-c.c: ... here and adjust ifunc handling.
3470 * sysdeps/s390/multiarch/strlen-vx.S: Move to ...
3471 * sysdeps/s390/strlen-vx.S: ... here and adjust ifunc handling.
3472 * sysdeps/s390/multiarch/strlen.c: Move to ...
3473 * sysdeps/s390/strlen.c: ... here and adjust ifunc handling.
3474 * sysdeps/s390/ifunc-strlen.h: New file.
3475
3476 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3477
3478 * sysdeps/s390/Makefile (sysdep_routines): Add memmem variants.
3479 * sysdeps/s390/multiarch/ifunc-impl-list.c
3480 (__libc_ifunc_impl_list): Add ifunc variants for memmem.
3481 * sysdeps/s390/ifunc-memmem.h: New file.
3482 * sysdeps/s390/memmem.c: Likewise.
3483 * sysdeps/s390/memmem-c.c: Likewise.
3484 * sysdeps/s390/memmem-vx.c: Likewise.
3485
3486 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3487
3488 * sysdeps/s390/Makefile (sysdep_routines): Add strstr variants.
3489 * sysdeps/s390/multiarch/ifunc-impl-list.c
3490 (__libc_ifunc_impl_list): Add ifunc variants for strstr.
3491 * sysdeps/s390/ifunc-strstr.h: New file.
3492 * sysdeps/s390/strstr.c: Likewise.
3493 * sysdeps/s390/strstr-c.c: Likewise.
3494 * sysdeps/s390/strstr-vx.c: Likewise.
3495
3496 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3497
3498 * sysdeps/s390/Makefile (sysdep_routines): Add memmove-c.
3499 * sysdeps/s390/ifunc-memcpy.h (HAVE_MEMMOVE_IFUNC,
3500 HAVE_MEMMOVE_IFUNC_AND_VX_SUPPORT, MEMMOVE_DEFAULT,
3501 HAVE_MEMMOVE_C, MEMMOVE_C, HAVE_MEMMOVE_Z13, MEMMOVE_Z13):
3502 New defines.
3503 * sysdeps/s390/memcpy-z900.S: Add z13 memmove implementation.
3504 * sysdeps/s390/memmove-c.c: New file.
3505 * sysdeps/s390/memmove.c: Likewise.
3506 * sysdeps/s390/multiarch/ifunc-impl-list.c
3507 (__libc_ifunc_impl_list): Add ifunc variants for memmove.
3508
3509 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3510
3511 * config.h.in (HAVE_S390_MIN_Z13_ZARCH_ASM_SUPPORT): New undefine.
3512 * sysdeps/s390/configure.ac: Add check for z13 support.
3513 * sysdeps/s390/configure: Regenerated.
3514
3515 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3516
3517 * sysdeps/s390/memcopy.h: New file.
3518
3519 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3520
3521 * sysdeps/s390/s390-32/bcopy.S: Remove.
3522 * sysdeps/s390/s390-64/bcopy.S: Likewise.
3523
3524 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3525
3526 * sysdeps/s390/ifunc-memcpy.h: New File.
3527 * sysdeps/s390/memcpy.S: Move to ...
3528 * sysdeps/s390/memcpy-z900.S ... here.
3529 Move implementations from memcpy-s390x.s to here.
3530 * sysdeps/s390/multiarch/memcpy-s390x.S: Delete File.
3531 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3532 Remove memcpy/mempcpy variants.
3533 * sysdeps/s390/Makefile (sysdep_routines):
3534 Add memcpy/mempcpy variants.
3535 * sysdeps/s390/multiarch/ifunc-impl-list.c
3536 (__libc_ifunc_impl_list): Adjust ifunc variants for
3537 memcpy and mempcpy.
3538 * sysdeps/s390/multiarch/memcpy.c: Move ifunc resolver
3539 to ...
3540 * sysdeps/s390/memcpy.c: ... here.
3541 Adjust ifunc variants for memcpy.
3542 * sysdeps/s390/multiarch/mempcpy.c: Move to ...
3543 * sysdeps/s390/mempcpy.c: ... here.
3544 Adjust ifunc variants for mempcpy.
3545 * sysdeps/s390/mempcpy.S: Delete file.
3546
3547 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3548
3549 * sysdeps/s390/s390-64/memcpy.S: Move to ...
3550 * sysdeps/s390/memcpy.S: ... here.
3551 Adjust to be usable for 31/64bit.
3552 * sysdeps/s390/s390-32/memcpy.S: Delete File.
3553 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcpy.
3554 * sysdeps/s390/s390-32/multiarch/Makefile: Delete file.
3555 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3556 * sysdeps/s390/s390-64/multiarch/memcpy-s390x.S: Move to ...
3557 * sysdeps/s390/multiarch/memcpy-s390x.S: ... here.
3558 Adjust to be usable for 31/64bit.
3559 * sysdeps/s390/s390-32/multiarch/memcpy-s390.S: Delete File.
3560 * sysdeps/s390/s390-64/multiarch/memcpy.c: Move to ...
3561 * sysdeps/s390/multiarch/memcpy.c: ... here.
3562 * sysdeps/s390/s390-32/multiarch/memcpy.c: Delete File.
3563
3564 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3565
3566 * sysdeps/s390/ifunc-memcmp.h: New File.
3567 * sysdeps/s390/memcmp.S: Move to ...
3568 * sysdeps/s390/memcmp-z900.S ... here.
3569 Move implementations from memcmp-s390x.s to here.
3570 * sysdeps/s390/multiarch/memcmp-s390x.S: Delete File.
3571 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3572 Remove memcmp variants.
3573 * sysdeps/s390/Makefile (sysdep_routines):
3574 Add memcmp variants.
3575 * sysdeps/s390/multiarch/ifunc-impl-list.c
3576 (__libc_ifunc_impl_list): Adjust ifunc variants for
3577 memcmp.
3578 * sysdeps/s390/multiarch/memcmp.c: Move ifunc resolver
3579 to ...
3580 * sysdeps/s390/memcmp.c: ... here.
3581 Adjust ifunc variants for memcmp.
3582
3583 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3584
3585 * sysdeps/s390/s390-64/memcmp.S: Move to ...
3586 * sysdeps/s390/memcmp.S: ... here.
3587 Adjust to be usable for 31/64bit.
3588 * sysdeps/s390/s390-32/memcmp.S: Delete File.
3589 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memcmp.
3590 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3591 Remove memcmp.
3592 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3593 * sysdeps/s390/s390-64/multiarch/memcmp-s390x.S: Move to ...
3594 * sysdeps/s390/multiarch/memcmp-s390x.S: ... here.
3595 Adjust to be usable for 31/64bit.
3596 * sysdeps/s390/s390-32/multiarch/memcmp-s390.S: Delete File.
3597 * sysdeps/s390/s390-64/multiarch/memcmp.c: Move to ...
3598 * sysdeps/s390/multiarch/memcmp.c: ... here.
3599 * sysdeps/s390/s390-32/multiarch/memcmp.c: Delete File.
3600
3601 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3602
3603 * sysdeps/s390/s390-32/bzero.S: Delete file.
3604 * sysdeps/s390/s390-64/bzero.S: Likewise.
3605 * sysdeps/s390/Makefile (sysdep_routines): Add bzero.
3606 * sysdeps/s390/bzero.c: New file.
3607 * sysdeps/s390/memset-z900.S: Add bzero entry points.
3608 * sysdeps/s390/ifunc-memset.h: Add bzero function macros.
3609 * sysdeps/s390/multiarch/ifunc-impl-list.c
3610 (__libc_ifunc_impl_list): Add bzero ifunc variants.
3611
3612 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3613
3614 * sysdeps/s390/ifunc-memset.h: New File.
3615 * sysdeps/s390/memset.S: Move to ...
3616 * sysdeps/s390/memset-z900.S ... here.
3617 Move implementations from memset-s390x.s to here.
3618 * sysdeps/s390/multiarch/memset-s390x.S: Delete File.
3619 * sysdeps/s390/multiarch/Makefile (sysdep_routines):
3620 Remove memset variants.
3621 * sysdeps/s390/Makefile (sysdep_routines):
3622 Add memset variants.
3623 * sysdeps/s390/multiarch/ifunc-impl-list.c
3624 (__libc_ifunc_impl_list): Adjust ifunc variants for
3625 memset.
3626 * sysdeps/s390/multiarch/memset.c: Move ifunc resolver
3627 to ...
3628 * sysdeps/s390/memset.c: ... here.
3629 Adjust ifunc variants for memset.
3630
3631 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3632
3633 * sysdeps/s390/s390-64/memset.S: Move to ...
3634 * sysdeps/s390/memset.S: ... here.
3635 Adjust to be usable for 31/64bit.
3636 * sysdeps/s390/s390-32/memset.S: Delete File.
3637 * sysdeps/s390/multiarch/Makefile (sysdep_routines): Add memset.
3638 * sysdeps/s390/s390-32/multiarch/Makefile (sysdep_routines):
3639 Remove memset.
3640 * sysdeps/s390/s390-64/multiarch/Makefile: Likewise.
3641 * sysdeps/s390/s390-64/multiarch/memset-s390x.S: Move to ...
3642 * sysdeps/s390/multiarch/memset-s390x.S: ... here.
3643 Adjust to be usable for 31/64bit.
3644 * sysdeps/s390/s390-32/multiarch/memset-s390.S: Delete File.
3645 * sysdeps/s390/s390-64/multiarch/memset.c: Move to ...
3646 * sysdeps/s390/multiarch/memset.c: ... here.
3647 * sysdeps/s390/s390-32/multiarch/memset.c: Delete File.
3648
3649 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3650
3651 * sysdeps/s390/multiarch/ifunc-resolve.h
3652 (s390_libc_ifunc_init, s390_libc_ifunc,
3653 s390_vx_libc_ifunc2_redirected): Use hwcap instead of dl_hwcap.
3654
3655 2018-12-18 Stefan Liebler <stli@linux.ibm.com>
3656
3657 * config.h.in (HAVE_S390_MIN_Z10_ZARCH_ASM_SUPPORT): New undefine.
3658 * sysdeps/s390/configure.ac: Add check for z10 support.
3659 * sysdeps/s390/configure: Regenerated.
3660
3661 2018-12-18 H.J. Lu <hongjiu.lu@intel.com>
3662
3663 * sysdeps/i386/atomic-machine.h: Merged with ...
3664 * sysdeps/x86_64/atomic-machine.h: To ...
3665 * sysdeps/x86/atomic-machine.h: This. New file.
3666
3667 2018-12-18 Florian Weimer <fweimer@redhat.com>
3668
3669 Rewrite locale/gen-translit.pl in Python.
3670 * locale/Makefile (generated): Add C-translit.h.
3671 (before-compile): Add $(objpfx)C-translit.h.
3672 (C-translit.h): Move to $(objpfx). Create target directory.
3673 Build using Python script.
3674 * locale/gen-translit.py: New file.
3675 * locale/gen-translit.pl: Remove file.
3676 * locale/C-translit.h.in: Change comment character to '#' for
3677 easier parsing without a C preprocessor.
3678 * locale/C-translit.h: Remove generated file.
3679 * manual/install.texi (Tools for Compilation): Do not mention
3680 C-translit.h.
3681 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
3682 Remove locale/C-translit.h.
3683 * scripts/update-copyrights: Likewise.
3684 * INSTALL: Regenerate.
3685
3686 2018-12-18 Florian Weimer <fweimer@redhat.com>
3687
3688 [BZ #23995]
3689 * localedata/locales/bi_VU: Remove executable bit from file.
3690
3691 2018-12-17 Albert ARIBAUD <albert.aribaud@3adev.fr>
3692
3693 * include/time.h
3694 (__localtime64): Add.
3695 * manual/maint.texi: Document Y2038 symbol handling.
3696 * time/localtime.c
3697 (__localtime64): Add.
3698 [__TIMESIZE != 64] (__localtime): Turn into a wrapper.
3699
3700 2018-12-17 Joseph Myers <joseph@codesourcery.com>
3701
3702 * sysdeps/unix/sysv/linux/ia64/sysdep.h (ASM_CLOBBERS_6_COMMON):
3703 Do not clobber r12.
3704
3705 * scripts/glibcextract.py (compare_macro_consts): Take parameters
3706 to allow extra macros from first or second sources.
3707 * sysdeps/unix/sysv/linux/tst-mman-consts.py: New file.
3708 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
3709 (tests-special): Add $(objpfx)tst-mman-consts.out.
3710 ($(objpfx)tst-mman-consts.out): New makefile target.
3711
3712 2018-12-17 Mao Han <han_mao@c-sky.com>
3713
3714 * sysdeps/unix/sysv/linux/Makefile: Add statx_cp.c.
3715 * sysdeps/unix/sysv/linux/fxstat64.c: Add conditionals for kernel
3716 without stat64 system call support.
3717 * sysdeps/unix/sysv/linux/fxstatat64.c: Likewise.
3718 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstat.c: Likewise.
3719 * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
3720 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat.c: Likewise.
3721 * sysdeps/unix/sysv/linux/generic/wordsize-32/lxstat64.c: Likewise.
3722 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat.c: Likewise.
3723 * sysdeps/unix/sysv/linux/generic/wordsize-32/xstat64.c: Likewise.
3724 * sysdeps/unix/sysv/linux/mips/mips64/statx_cp.c: New file.
3725 * sysdeps/unix/sysv/linux/statx_cp.c: Likewise.
3726 * sysdeps/unix/sysv/linux/statx_cp.h: Likewise.
3727 * sysdeps/unix/sysv/linux/wordsize-64/statx_cp.c: Likewise.
3728
3729 2018-12-15 Paul Eggert <eggert@cs.ucla.edu>
3730
3731 regex: fix storage-exhaustion error
3732 [BZ #18040]
3733 * posix/regexec.c (get_subexp):
3734 Do not continue if storage is exhausted.
3735
3736 2018-12-15 Assaf Gordon <assafgordon@gmail.com>
3737
3738 regex: fix heap-use-after-free error
3739 [BZ #18040]
3740 Problem reported by Saito Takaaki <tails.saito@gmail.com> in
3741 https://debbugs.gnu.org/32592
3742 Call stack get_subexp->get_subexp_sub->clean_state_log_if_needed may
3743 call extend_buffers which reallocates the re_string_t internal buffer.
3744 Local variable 'buf' was not updated in such case, resulting in
3745 use-after-free.
3746 * posix/regexec.c (get_subexp): Update 'buf' after call to
3747 get_subexp_sub.
3748
3749 2018-12-15 Florian Weimer <fweimer@redhat.com>
3750
3751 * support/blob_repeat.c (check_mul_overflow_size_t): New function.
3752 (minimum_stride_size): Use it.
3753 (support_blob_repeat_allocate): Likewise.
3754
3755 2018-12-14 Joseph Myers <joseph@codesourcery.com>
3756
3757 * sysdeps/x86/fpu/bits/mathinline.h (asinh): Remove inline
3758 definition.
3759 (acosh): Likewise.
3760 (atanh): Likewise.
3761
3762 2018-12-14 Florian Weimer <fweimer@redhat.com>
3763
3764 * manual/process.texi (Process Creation Concepts): Remove
3765 documentation of process (ID) lifetime. List more process
3766 creation functions. Reference Process Identification section.
3767 (Process Identification): Add information about process ID
3768 lifetime. Describe Linux thread/task IDs.
3769 * manual/signal.texi (Signaling Another Process): Mention that the
3770 signal is always sent to the process.
3771
3772 2018-12-14 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3773
3774 * misc/Makefile (tests): Remove tst-efgcvt. Add tst-dbl-efgcvt
3775 and tst-ldbl-efgcvt.
3776 * misc/tst-efgcvt.c: Renamed to misc/tst-efgcvt-template.c.
3777 * misc/tst-efgcvt-template.c: Renamed from misc/tst-efgcvt.c.
3778 (struct testcase, efcvt_func, efcvt_r_func, ecvt_tests)
3779 (fcvt_tests, output_error, output_r_error, do_test): Use the
3780 macros defined in tst-dbl-efgcvt.c and tst-ldbl-efgcvt.c to:
3781 select the type of floating-point variables and arguments; to
3782 produce extra tests for double and conversion specifiers for
3783 printf; and to set the names of called functions.
3784 * misc/tst-dbl-efgcvt.c: New file that defines the macros used
3785 in tst-efgcvt-template.c.
3786 * misc/tst-ldbl-efgcvt.c: Likewise.
3787
3788 2018-12-14 Stefan Liebler <stli@linux.ibm.com>
3789
3790 * nss/Makefile (tst-nss-test3.out): New rule.
3791
3792 2018-12-13 Joseph Myers <joseph@codesourcery.com>
3793
3794 * sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Do not
3795 clobber sp.
3796
3797 2018-12-13 fanjinke <fanjinke@hygon.cn>
3798
3799 * sysdeps/x86/cpu-features.c (init_cpu_features): Check for
3800 "HygonGenuine".
3801
3802 2018-12-13 Andreas Schwab <schwab@suse.de>
3803
3804 [BZ #23861]
3805 * nptl/pthread_rwlock_common.c: Reindent. Fix typos.
3806 (__pthread_rwlock_rdlock_full): Update expected value for
3807 __readers while waiting on PTHREAD_RWLOCK_RWAITING.
3808 * nptl/tst-rwlock-pwn.c: New file.
3809 * nptl/Makefile (tests): Add tst-rwlock-pwn.
3810
3811 2018-12-12 Joseph Myers <joseph@codesourcery.com>
3812
3813 * sysdeps/x86/fpu/bits/mathinline.h (hypot): Remove inline
3814 definition.
3815
3816 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3817
3818 * benchtests/scripts/compare_bench.py (do_compare): write to
3819 stderr in casestat is not present.
3820 * benchtests/scripts/compare_bench.py (plot_graphs): write to
3821 stderr in case timings field is not present. Also string showing
3822 the output filename goes into the stderr.
3823
3824 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3825
3826 * benchtests/scripts/compare_bench.py (do_compare): Catch KeyError
3827 and ZeroDivisorError exceptions.
3828 * benchtests/scripts/compare_bench.py (compare_runs): Use stats
3829 argument to loop through user provided statistics.
3830 * benchtests/scripts/compare_bench.py (main): Include the --stats
3831 argument.
3832
3833 2018-12-12 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
3834
3835 * benchtests/scripts/compare_bench.py (compare_runs): Continue
3836 instead of return.
3837
3838 2018-12-12 Florian Weimer <fweimer@redhat.com>
3839
3840 * sysdeps/posix/timespec_get.c: Add missing “any later version”
3841 clause to copyright header.
3842
3843 2018-12-12 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
3844
3845 [BZ #23614]
3846 * sysdeps/powerpc/powerpc64/addmul_1.S (FUNC): Add CFI offset for
3847 registers saved in the stack frame.
3848 * sysdeps/powerpc/powerpc64/lshift.S (__mpn_lshift): Likewise.
3849 * sysdeps/powerpc/powerpc64/mul_1.S (__mpn_mul_1): Likewise.
3850
3851 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3852
3853 * include/bits/monetary-ldbl.h: New file.
3854 * include/bits/printf-ldbl.h: Likewise.
3855 * include/bits/stdio-ldbl.h: Likewise.
3856 * include/bits/stdlib-ldbl.h: Likewise.
3857 * include/bits/syslog-ldbl.h: Likewise.
3858 * include/bits/wchar-ldbl.h: Likewise.
3859
3860 2018-12-11 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3861
3862 * libio/libio.h: Remove redirection for _IO_vfprintf.
3863
3864 2018-12-11 Andreas Schwab <schwab@suse.de>
3865
3866 * Makerules: Remove all references to abilist-pattern.
3867 (update-all-abi): Simplify find expression.
3868
3869 2018-12-11 Szabolcs Nagy <szabolcs.nagy@arm.com>
3870
3871 [BZ #23961]
3872 * math/auto-libm-test-in: Add new test case.
3873 * math/auto-libm-test-out-pow: Regenerated.
3874 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Fix overflow check.
3875
3876 2018-12-10 DJ Delorie <dj@redhat.com>
3877
3878 [BZ #23948]
3879 * support/test-container.c: Move postclean step to before we
3880 change namespaces.
3881
3882 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3883
3884 * scripts/gen-as-const.py (main): Handle --python option.
3885 * scripts/gen-py-const.awk: Remove.
3886 * Makerules (py-const-script): Use gen-as-const.py.
3887 ($(py-const)): Likewise.
3888 * nptl/nptl-printers.py (MutexPrinter.read_status_no_robust): Mask
3889 with 0xffffffff together with ~(PTHREAD_MUTEX_PRIO_CEILING_MASK).
3890 (MutexAttributesPrinter.read_values): Mask with 0xffffffff
3891 together with ~PTHREAD_MUTEXATTR_FLAG_BITS and
3892 ~PTHREAD_MUTEX_NO_ELISION_NP.
3893 * manual/README.pretty-printers: Update reference to
3894 gen-py-const.awk.
3895
3896 * scripts/glibcextract.py: New file.
3897 * scripts/gen-as-const.py: Do not import os.path, re, subprocess
3898 or tempfile. Import glibcexctract.
3899 (compute_c_consts): Remove. Moved to glibcextract.py.
3900 (gen_test): Update reference to compute_c_consts.
3901 (main): Likewise.
3902 * sysdeps/unix/sysv/linux/tst-signal-numbers.py: New file.
3903 * sysdeps/unix/sysv/linux/tst-signal-numbers.sh: Remove.
3904 * sysdeps/unix/sysv/linux/Makefile
3905 ($(objpfx)tst-signal-numbers.out): Use tst-signal-numbers.py.
3906 Redirect stderr as well as stdout.
3907
3908 2018-12-10 Rafael Ávila de Espíndola <rafael@espindo.la>
3909
3910 [BZ #19767]
3911 * sysdeps/unix/sysv/linux/mips/init-first.c: Remove #ifdef SHARED.
3912 * sysdeps/unix/sysv/linux/mips/libc-vdso.h: Remove #ifdef SHARED.
3913 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h: Define
3914 ALWAYS_USE_VSYSCALL.
3915 * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h: Define
3916 ALWAYS_USE_VSYSCALL.
3917 * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h: Define
3918 ALWAYS_USE_VSYSCALL.
3919
3920 2018-12-10 Florian Weimer <fweimer@redhat.com>
3921
3922 [BZ #23972]
3923 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): Check
3924 offset instead of count for clarity. Fix typo in comment.
3925 (__old_getdents64): Keep track of previous offset. Use it to call
3926 handle_overflow.
3927 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c (do_test): Check
3928 that d_off is never zero.
3929
3930 2018-12-10 Andreas Schwab <schwab@suse.de>
3931
3932 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*-le.abilist: Move to
3933 sysdeps/unix/sysv/linux/powerpc/powerpc64/le/*.abilist.
3934 * sysdeps/unix/sysv/linux/powerpc/powerpc64/*.abilist: Move to
3935 sysdeps/unix/sysv/linux/powerpc/powerpc64/be/*.abilist.
3936 * sysdeps/powerpc/Makefile (abilist-pattern): Don't define.
3937
3938 2018-12-10 Joseph Myers <joseph@codesourcery.com>
3939
3940 * timezone/private.h: Update from tzcode 2018g.
3941 * timezone/tzfile.h: Likewise.
3942 * timezone/tzselect.ksh: Likewise.
3943 * timezone/zdump.c: Likewise.
3944 * timezone/zic.c: Likewise.
3945
3946 2018-12-08 Paul Pluzhnikov <ppluzhnikov@google.com>
3947
3948 [BZ #23490]
3949 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c
3950 (do_test): Adjust buffer size and fix format.
3951
3952 2018-12-07 DJ Delorie <dj@redhat.com>
3953
3954 [BZ #23907]
3955 * malloc/tst-tcfree3.c: New.
3956 * malloc/Makefile: Add it.
3957
3958 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * include/sched.h (__getcpu): Don't use __typeof__ (getcpu).
3961
3962 2018-12-07 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
3963
3964 * libio/libioP.h (SCANF_LDBL_USES_FLOAT128): New macro to be
3965 used as a mask for the mode argument of __vfscanf_internal and
3966 __vfwscanf_internal.
3967 * stdio-common/vfscanf-internal.c
3968 [defined COMPILE_WSCANF && __HAVE_FLOAT128_UNLIKE_LDBL]
3969 (__strtof128_internal): Define to __wcstof128_internal.
3970 [__HAVE_FLOAT128_UNLIKE_LDBL] (__vfscanf_internal): Call
3971 __strtof128_internal or __wcstof128_internal when the format of
3972 long double is the same as _Float128.
3973
3974 2018-12-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
3975
3976 * include/unistd.h (__confstr): Add prototype and hidden prototype.
3977 * posix/confstr.c (confstr): Rename to __confstr.
3978 (__confstr): Add hidden def.
3979 (confstr): Add weak alias for __confstr.
3980 * sysdeps/mach/hurd/spawni.c (__spawni): Call __confstr instead of
3981 confstr.
3982
3983 2018-12-07 H.J. Lu <hongjiu.lu@intel.com>
3984
3985 * NEWS: Mention getcpu.
3986 * include/sched.h (__getcpu): New libc_hidden_proto.
3987 * manual/resource.texi: Document getcpu.
3988 * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add getcpu.
3989 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.29): Add getcpu.
3990 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add getcpu.
3991 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
3992 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
3993 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
3994 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
3995 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
3996 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
3997 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
3998 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
3999 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
4000 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
4001 Likewise.
4002 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
4003 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
4004 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
4005 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
4006 Likewise.
4007 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
4008 Likewise.
4009 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
4010 Likewise.
4011 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
4012 Likewise.
4013 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
4014 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
4015 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
4016 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
4017 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
4018 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
4019 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
4020 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
4021 * sysdeps/unix/sysv/linux/bits/sched.h (getcpu): New prototype.
4022 * sysdeps/unix/sysv/linux/getcpu.c: New file.
4023 * sysdeps/unix/sysv/linux/tst-skeleton-affinity.c (test_size):
4024 Also check getcpu.
4025
4026 2018-12-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
4027
4028 * sysdeps/mach/hurd/spawni.c (child_lookup_under, child_fchdir): New
4029 functions.
4030 (__spawni): Handle spawn_do_fchdir by calling child_fchdir.
4031
4032 2018-12-07 Florian Weimer <fweimer@redhat.com>
4033
4034 [BZ #17405]
4035 * posix/Makefile (routines): Add spawn_faction_addfchdir.
4036 * posix/Versions (GLIBC_2.29): Export
4037 posix_spawn_file_actions_addfchdir_np.
4038 * posix/spawn.h (posix_spawn_file_actions_addfchdir_np): Declare.
4039 * posix/spawn_faction_destroy.c
4040 (__posix_spawn_file_actions_destroy): Handle spawn_do_fchdir.
4041 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_fchdir
4042 and the field action.fchdir_action.
4043 * posix/tst-spawn-chdir.c (add_chdir): New function.
4044 (do_test): Add do_fchdir loop. Call add_chdir.
4045 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_fchdir.
4046 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
4047 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
4048 posix_spawn_file_actions_addfchdir_np.
4049 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
4050 Likewise.
4051 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
4052 Likewise.
4053 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
4054 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
4055 Likewise.
4056 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
4057 Likewise.
4058 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
4059 Likewise.
4060 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
4061 Likewise.
4062 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
4063 Likewise.
4064 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
4065 Likewise.
4066 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
4067 (GLIBC_2.29): Likewise.
4068 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
4069 (GLIBC_2.29): Likewise.
4070 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
4071 (GLIBC_2.29): Likewise.
4072 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
4073 (GLIBC_2.29): Likewise.
4074 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
4075 Likewise.
4076 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
4077 (GLIBC_2.29): Likewise.
4078 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
4079 (GLIBC_2.29): Likewise.
4080 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
4081 (GLIBC_2.29): Likewise.
4082 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
4083 (GLIBC_2.29): Likewise.
4084 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
4085 Likewise.
4086 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
4087 Likewise.
4088 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
4089 Likewise.
4090 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
4091 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
4092 Likewise.
4093 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
4094 Likewise.
4095 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
4096 Likewise.
4097 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
4098 Likewise.
4099
4100 2018-12-06 Joseph Myers <joseph@codesourcery.com>
4101
4102 * manual/texinfo.tex: Update to version 2018-09-21.20 with
4103 trailing whitespace removed.
4104 * scripts/config.guess: Update to version 2018-11-28.
4105 * scripts/config.sub: Update to version 2018-11-28.
4106 * scripts/install-sh: Update to version 2018-03-11.20.
4107 * scripts/mkinstalldirs: Update to version 2018-03-07.03.
4108 * scripts/move-if-change: Update to version 2018-03-07 03:47.
4109
4110 2018-12-07 Florian Weimer <fweimer@redhat.com>
4111
4112 [BZ #23927]
4113 CVE-2018-19591
4114 * inet/tst-if_index-long.c: New file.
4115 * inet/Makefile (tests): Add tst-if_index-long.
4116
4117 2018-12-07 Florian Weimer <fweimer@redhat.com>
4118
4119 * support/check.h (support_record_failure_is_failed): Declare.
4120 * support/descriptors.h: New file.
4121 * support/support_descriptors.c: Likewise.
4122 * support/tst-support_descriptors.c: Likewise.
4123 * support/support_record_failure.c
4124 (support_record_failure_is_failed): New function.
4125 * support/Makefile (libsupport-routines): Add support_descriptors.
4126 (tests): Add tst-support_descriptors.
4127
4128 2018-12-05 Zack Weinberg <zackw@panix.com>
4129 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4130
4131 * stdio-common/vfprintf-internal.c
4132 (__vfprintf_internal, __vfwprintf_internal): Don't use __ldbl_is_dbl.
4133 * sysdeps/generic/math_ldbl_opt.h: Remove __ldbl_is_dbl.
4134 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Remove __ldbl_is_dbl
4135 and __no_long_double.
4136 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.c: Remove file.
4137 * sysdeps/ieee754/ldbl-opt/Makefile (routines): Remove math_ldbl_opt.
4138 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Remove
4139 libc_hidden_proto and libc_hidden_def from all __nldbl_*printf*
4140 and __nldbl_*syslog* functions.
4141 (__nldbl_cleanup, set_no_long_double, clear_no_long_double): Remove.
4142 (__nldbl___asprintf, __nldbl_dprintf, __nldbl_fprintf)
4143 (__nldbl_fwprintf, __nldbl_printf, __nldbl_sprintf)
4144 (__nldbl_vfprintf, __nldbl___vsprintf, __nldbl_obstack_vprintf)
4145 (__ndlbl_obstack_printf, __nldbl_snprintf, __nldbl_swprintf)
4146 (__nldbl_vasprintf, __nldbl_vdprintf, __nldbl_vfwprintf)
4147 (__nldbl_vprintf, __nldbl_vsnprintf, __ndlbl_vswprintf)
4148 (__nldbl_vwprintf, __nldbl_wprintf):
4149 Directly call the appropriate __v*printf_internal routine, passing
4150 PRINTF_LDBL_IS_DBL. Do not mess with __no_long_double. Normalize
4151 variable names.
4152 (__nldbl___fprintf_chk, __nldbl___fwprintf_chk)
4153 (__nldbl___printf_chk, __nldbl___snprintf_chk)
4154 (__nldbl___sprintf_chk, __nldbl___swprintf_chk)
4155 (__nldbl___vfprintf_chk, __nldbl___vfwprintf_chk)
4156 (__nldbl___vprintf_chk, __nldbl___vsnprintf_chk)
4157 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4158 (__nldbl___vwprintf_chk, __nldbl___wprintf_chk)
4159 (__nldbl___vasprintf_chk, __nldbl___asprintf_chk)
4160 (__nldbl___vdprintf_chk, __nldbl___dprintf_chk)
4161 (__nldbl___obstack_vprintf_chk, __nldbl___obstack_printf_chk):
4162 Likewise, and also pass PRINTF_FORTIFY when appropriate.
4163 (__nldbl_syslog, __nldbl_vsyslog):
4164 Directly call __vsyslog_internal, passing PRINTF_LDBL_IS_DBL.
4165 (__nldbl_syslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4166 appropriate.
4167 (__nldbl_vsyslog_chk): Likewise, and also pass PRINTF_FORTIFY when
4168 appropriate.
4169
4170 2018-12-05 Zack Weinberg <zackw@panix.com>
4171 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4172
4173 [BZ #11319]
4174 * libio/iovsprintf.c (_IO_str_chk_overflow, libio_vtable):
4175 Moved here from debug/vsprintf_chk.c.
4176 (__vsprintf_internal): Add 'maxlen' argument. Change the setup
4177 and completion logic for the strfile to match exactly what
4178 __vsprintf_chk used to do, except, when maxlen is -1, pass -1 to
4179 _IO_str_init_static_internal instead of maxlen-1.
4180 (__vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4181 * stdio-common/sprintf.c (__sprintf): Pass -1 as maxlen to
4182 __vsprintf_internal.
4183
4184 * debug/vsprintf_chk.c (__vsprintf_chk)
4185 * debug/sprintf_chk.c (__sprintf_chk):
4186 Directly call __vsprintf_internal, passing PRINTF_FORTIFY if
4187 'flags' argument is positive, and slen as maxlen. No need to lock
4188 the FILE and/or construct a temporary FILE. Minimize and normalize
4189 header inclusions and variable names. Do not libc_hidden_def anything.
4190
4191 * debug/asprintf_chk.c (__asprintf_chk)
4192 * debug/dprintf_chk.c (__dprintf_chk)
4193 * debug/fprintf_chk.c (__fprintf_chk)
4194 * debug/fwprintf_chk.c (__fwprintf_chk)
4195 * debug/printf_chk.c (__printf_chk)
4196 * debug/snprintf_chk.c (__snprintf_chk)
4197 * debug/swprintf_chk.c (__swprintf_chk)
4198 * debug/vasprintf_chk.c (__vasprintf_chk)
4199 * debug/vdprintf_chk.c (__vdprintf_chk)
4200 * debug/vfprintf_chk.c (__vfprintf_chk)
4201 * debug/vfwprintf_chk.c (__vfwprintf_chk)
4202 * debug/vprintf_chk.c (__vprintf_chk)
4203 * debug/vsnprintf_chk.c (__vsnprintf_chk)
4204 * debug/vswprintf_chk.c (__vswprintf_chk)
4205 * debug/vwprintf_chk.c (__vwprintf_chk)
4206 * debug/wprintf_chk.c (__wprintf_chk):
4207 Directly call the corresponding vxxprintf_internal function, passing
4208 PRINTF_FORTIFY if 'flag' argument is positive. No need to lock
4209 the FILE and/or construct a temporary FILE. Minimize and normalize
4210 header inclusions and variable names. Do not libc_hidden_def anything.
4211
4212 * debug/obprintf_chk.c (__obstack_printf_chk): Directly call
4213 __obstack_vprintf_internal.
4214 (__obstack_vprintf_chk): Convert into a wrapper that calls
4215 __obstack_vprintf_internal (these two functions already had the
4216 same code) and move to new file...
4217 * debug/vobprintf_chk.c (__obstack_vprintf_chk): ... here. New
4218 file.
4219 * debug/obprintf.c (__obstack_vprintf_internal): Remove the checking of
4220 the flags argument and the setting of _IO_FLAGS2_FORTIFY.
4221 * debug/Makefile (routines): Add vobprintf_chk.
4222
4223 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
4224 (__nldbl___vsprintf): Pass -1 as maxlen to __vsprintf_internal.
4225 (__nldbl___vfprintf_chk, __nldbl___vsnprintf_chk)
4226 (__nldbl___vsprintf_chk, __nldbl___vswprintf_chk)
4227 (__nldbl___vasprintf_chk, __nldbl___vdprintf_chk)
4228 (__nldbl___obstack_vfprintf_chk):
4229 Directly call the corresponding vxxprintf_internal function,
4230 passing PRINTF_FORTIFY if 'flag' argument is positive. If necessary,
4231 duplicate comparison of slen with 0 or maxlen from the corresponding
4232 non-__nldbl function.
4233
4234 * include/stdio.h (__vsnprintf_chk, __vfprintf_chk, __vasprintf_chk)
4235 (__vdprintf_chk, __obstack_vfprintf_chk): Remove libc_hidden_proto.
4236 * include/wchar.h (__vfwprintf_chk, __vswprintf_chk):
4237 Remove libc_hidden_proto.
4238
4239 * stdio-common/vfprintf-internal.c
4240 (__vfprintf_internal, __vfwprintf_internal):
4241 Do not check _IO_FLAGS2_FORTIFY.
4242 * libio/libio.h (_IO_FLAGS2_FORTIFY): Remove.
4243 * libio/libioP.h: Update prototype of __vsprintf_internal and add
4244 a comment explaining why it has the maxlen argument.
4245 (_IO_acquire_lock_clear_flags2_fct): Remove.
4246 (_IO_acquire_lock_clear_flags2): Remove.
4247 (_IO_release_lock): Remove conditional statement which will
4248 now never execute.
4249 (_IO_acquire_lock): Remove variable which is now unused.
4250 * sysdeps/generic/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4251 * sysdeps/nptl/stdio-lock.h (_IO_acquire_lock_clear_flags2): Remove.
4252
4253 * stdio-common/Makefile (tests): Add tst-bz11319 and
4254 tst-bz11319-fortify2.
4255 (CFLAGS-tst-bz11319-fortify2.c): New macro.
4256 * stdio-common/tst-bz11319-fortify2.c: New file.
4257 * stdio-common/tst-bz11319.c: Likewise.
4258
4259 2018-12-05 Zack Weinberg <zackw@panix.com>
4260 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4261
4262 * misc/syslog.c: Include libioP.h, not iolibio.h.
4263 (__vsyslog_internal): New function with the former body of
4264 __vsyslog_chk; takes mode_flags argument same as
4265 __v*printf_internal. Call __vfprintf_internal directly.
4266
4267 (__vsyslog_chk): Now a wrapper around __vsyslog_internal.
4268 Remove libc_hidden_def.
4269 (__syslog, __syslog_chk): Use __vsyslog_internal.
4270 (__vsyslog): Move to just below __syslog. Use __vsyslog_internal.
4271
4272 * include/sys/syslog.h: Add multiple inclusion guard.
4273 Add prototype for __vsyslog_internal.
4274 Remove declaration and libc_hidden_proto for __vsyslog_chk.
4275
4276 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl___vsyslog_chk):
4277 Use __vsyslog_internal.
4278
4279 2018-12-05 Zack Weinberg <zackw@panix.com>
4280 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4281
4282 * libio/libioP.h (__vfprintf_internal, __vfwprintf_internal)
4283 (__vasprintf_internal, __vdprintf_internal, __obstack_vprintf_internal)
4284 (__vsprintf_internal, __vsnprintf_internal, __vswprintf_internal):
4285 New functions.
4286 (PRINTF_LDBL_IS_DBL, PRINTF_FORTIFY): New constants.
4287 (_IO_vasprintf, _IO_vdprintf, _IO_vsnprintf): Remove prototypes.
4288
4289 * stdio-common/vfprintf-internal.c: Rename from vfprintf.c.
4290 Include wctype.h here if COMPILE_WPRINTF is defined.
4291 Define __vfprintf_internal or __vfwprintf_internal, depending
4292 on COMPILE_WPRINTF.
4293 Temporarily, on entry to this function, update mode_flags
4294 according to the environmental settings corresponding to
4295 PRINTF_LDBL_IS_DBL and PRINTF_FORTIFY.
4296 Throughout, check mode_flags instead of __ldbl_is_dbl and
4297 _IO_FLAGS2_FORTIFY on the destination FILE.
4298 * stdio-common/vfwprintf-internal.c: Rename from vfwprintf.c.
4299 Include vfprintf-internal.c. Don't include wctype.h.
4300 * stdio-common/vfprintf.c: New file. Just define __vfprintf
4301 as a wrapper around __vfprintf_internal, with aliases _IO_vfprintf
4302 and vfprintf.
4303 * stdio-common/vfwprintf.c: New file. Just define __vfwprintf
4304 as a wrapper around __vfwprintf_internal, with aliases _IO_vfwprintf
4305 and vfwprintf.
4306 * stdio-common/Makefile: Add vfprintf-internal and vfwprintf-internal.
4307
4308 * libio/iovdprintf.c (_IO_vdprintf): Rename to __vdprintf_internal
4309 and add mode_flags argument; use __vfprintf_internal.
4310 (__vdprintf): New function. Alias vdprintf to this.
4311 * libio/iovsprintf.c (_IO_vsprintf, __vsprintf): Similarly.
4312 * libio/vasprintf.c (_IO_vasprintf, __vasprintf): Similarly.
4313 * libio/obprintf.c (_IO_obstack_vprintf, __obstack_vprintf): Similarly.
4314 (__obstack_printf): Use __obstack_printf_internal.
4315 * libio/vsnprintf.c (_IO_vsnprintf, ___vsnprintf): Similarly, with
4316 public aliases __vsnprintf and vsnprintf.
4317 Remove use of ldbl_hidden_def, since __vsnprintf is no longer
4318 called internally.
4319 * libio/vswprintf (_IO_vswprintf, __vswprintf): Similarly, with
4320 public aliases _IO_vsprintf and vsprintf.
4321 * libio/swprintf.c (__swprintf): Use __vswprintf_internal.
4322 * stdio-common/asprintf.c (__asprintf): Use __vasprintf_internal.
4323 * stdio-common/dprintf.c (__dprintf): Use __vdprintf_internal.
4324 * stdio-common/snprintf.c (__snprintf): Use __vsprintf_internal.
4325 * stdio-common/sprintf.c (__sprintf): Use __vsprintf_internal.
4326
4327 * debug/obprintf_chk.c, debug/vasprintf_chk.c, debug/vdprintf_chk.c
4328 * debug/vsnprintf_chk.c, debug/vsprintf_chk.c, hurd/vpprintf.c
4329 * stdio-common/fprintf.c, stdio-common/fxprintf.c
4330 * stdio-common/printf.c: Use __vfprintf_internal.
4331
4332 * debug/fwprintf_chk.c, debug/vfwprintf_chk.c, debug/vswprintf_chk.c
4333 * debug/vwprintf_chk.c, debug/wprintf_chk.c, libio/fwprintf.c
4334 * libio/vwprintf.c, libio/wprintf.c: Use __vfwprintf_internal.
4335
4336 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Use __vsprintf_internal,
4337 __obstack_vprintf_internal, __vasprintf_internal, __vdprintf_internal,
4338 __vsnprintf_internal, __vswprintf_internal, __vfprintf_internal, and
4339 __vfwprintf_internal.
4340
4341 * libio/libio.h: Remove libc_hidden_proto and declaration for
4342 _IO_vfprintf.
4343 Remove declaration of _IO_vfwprintf.
4344 * libio/iolibio.h: Remove libc_hidden_proto and declaration for
4345 _IO_vsprintf.
4346 Remove declarations of _IO_vswprintf, _IO_obstack_printf, and
4347 _IO_obstack_printf.
4348 * include/stdio.h: Add prototype for __vasprintf.
4349 (__vsnprintf): Remove declaration, because there are no more
4350 internal calls.
4351 * include/wchar.h (__vfwprintf, __vswprintf): Remove
4352 declaration, because there are no more internal calls.
4353
4354 * argp/argp-fmtstream.c (__argp_fmtstream_printf): Use
4355 __vsnprintf_internal, instead of _IO_vsnprintf.
4356 * argp/argp-help.c (__argp_error, __argp_failure): Use
4357 __vasprintf_internal, instead of _IO_vasprintf.
4358 * argp/argp-namefrob.h (__vsnprintf): Do not undefined then
4359 redefine, because there are no more internal calls.
4360
4361 2018-12-05 Zack Weinberg <zackw@panix.com>
4362 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4363
4364 * stdio-common/vfscanf-internal.c: Don't look at __ldbl_is_dbl.
4365 * sysdeps/ieee754/ldbl-opt/ndlbl-compat.c:
4366 Include libio/strfile.h instead of libioP.h.
4367 (__nldbl_IO_vfscanf, __ndlbl___vfscanf, __nldbl_sscanf)
4368 (__nldbl___vsscanf, __nldbl_vscanf, __nldbl_fscanf)
4369 (__nldbl_scanf, __nldbl_vfwscanf, __nldbl_swscanf)
4370 (__nldbl_vswscanf, __nldbl_vwscanf, __nldbl_fwscanf)
4371 (__nldbl_wscanf): Call __vfscanf_internal / __vfwscanf_internal
4372 directly, passing SCANF_LDBL_IS_DBL. Set up a strfile if
4373 necessary. Do not set __no_long_double. Normalize variable names.
4374 (__nldbl___isoc99_vfscanf, __nldbl___isoc99_sscanf)
4375 (__nldbl___isoc99_vsscanf, __nldbl___isoc99_vscanf)
4376 (__nldbl___isoc99_fscanf, __nldbl___isoc99_scanf)
4377 (__nldbl___isoc99_vfwscanf, __nldbl___isoc99_swscanf)
4378 (__nldbl___isoc99_vswscanf, __nldbl___isoc99_vwscanf)
4379 (__nldbl___isoc99_fwscanf, __nldbl___isoc99_wscanf):
4380 Call __vfscanf_internal / __vfwscanf_internal directly, passing
4381 SCANF_LDBL_IS_DBL | SCANF_ISOC99_A. Set up a strfile if necessary.
4382 Do not set __no_long_double. Normalize variable names.
4383
4384 2018-12-05 Zack Weinberg <zackw@panix.com>
4385 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4386
4387 * stdio-common/isoc99_scanf.c
4388 * stdio-common/isoc99_fscanf.c
4389 * stdio-common/isoc99_sscanf.c
4390 * stdio-common/isoc99_vscanf.c
4391 * stdio-common/isoc99_vfscanf.c
4392 * stdio-common/isoc99_vsscanf.c
4393 * wcsmbs/isoc99_wscanf.c
4394 * wcsmbs/isoc99_fwscanf.c
4395 * wcsmbs/isoc99_swscanf.c
4396 * wcsmbs/isoc99_vwscanf.c
4397 * wcsmbs/isoc99_vfwscanf.c
4398 * wcsmbs/isoc99_vswscanf.c:
4399 Pass SCANF_ISOC99_A to __vfscanf_internal and/or __vfwscanf_internal.
4400 Do not set _IO_FLAGS2_SCANF_STD on the FILE passed to that function.
4401 No need to lock and unlock the FILE passed to that function.
4402
4403 * stdio-common/vfscanf-internal.c
4404 (__vfscanf_internal, __vfwscanf_internal):
4405 Don't look at _IO_FLAGS2_SCANF_STD.
4406 * libio/libioP.h (_IO_acquire_lock_clear_flags2_fct)
4407 (_IO_release_lock): Don't clear _IO_FLAGS2_SCANF_STD.
4408 * libio/libio.h (_IO_FLAGS2_SCANF_STD): Delete.
4409
4410 2018-12-05 Zack Weinberg <zackw@panix.com>
4411 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
4412
4413 * libio/libioP.h (SCANF_LDBL_IS_DBL, SCANF_ISOC99_A): New constants.
4414 (__vfscanf_internal, __vfwscanf_internal): New function prototypes.
4415 * libio/libio.h: Remove libc_hidden_proto for _IO_vfscanf.
4416 * libio/strfile.h: Add multiple inclusion guard.
4417 (_IO_strfile_read, _IO_strfile_readw): New inline functions.
4418
4419 * sysdeps/generic/math_ldbl_opt.h: Include shlib-compat.h, for
4420 consistency with the other version of this file.
4421 (ldbl_compat_symbol): New macro.
4422 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h (ldbl_compat_symbol):
4423 New macro.
4424
4425 * stdio-common/vfscanf-internal.c: Rename from vfscanf.c.
4426 Define __vfscanf_internal or __vfwscanf_internal, depending on
4427 COMPILE_WSCANF; don't define any other public symbols.
4428 Remove errval and code to set errp.
4429 Temporarily check __ldbl_is_dbl and _IO_FLAGS2_SCANF_STD as well
4430 as the mode_flags argument.
4431 (encode_error, conv_error, input_error): Don't set errval.
4432 * stdio-common/vfwscanf-internal.c: Rename from vfwscanf.c.
4433 Include vfscanf-internal.c.
4434 * stdio-common/vfscanf.c: New file defining the public entry
4435 point vfscanf, which calls __vfscanf_internal.
4436 * stdio-common/vfwscanf.c: New file defining the public entry
4437 point vfwscanf, which calls __vfwscanf_internal.
4438
4439 * stdio-common/iovfscanf.c: New file.
4440 * stdio-common/iovfwscanf.c: Likewise.
4441
4442 * stdio-common/Makefile (routines): Add vfscanf-internal,
4443 vfwscanf-internal, iovfscanf, iovfwscanf.
4444 * stdio-common/Versions: Mention GLIBC_2.29, so that
4445 it can be used in SHLIB_COMPAT expressions.
4446 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c (__nldbl__IO_vfscanf):
4447 Wrap definition and compat_symbol line in #if SHLIB_COMPAT.
4448 Call __vfscanf_internal, instead of _IO_vfscanf.
4449 (__nldbl___vfscanf): Call __vfscanf_internal, instead of
4450 _IO_vfscanf.
4451 (__nldbl_vfwscanf): Call __vfwscanf_internal, instead of
4452 _IO_vfwscanf.
4453
4454 * libio/iovsscanf.c: Clean up includes, when possible. Use
4455 _IO_strfile_read or _IO_strfile_readw, when needed. Call
4456 __vfscanf_internal or __vfwscanf_internal directly.
4457 * libio/iovswscanf.c: Likewise.
4458 * libio/swscanf.c: Likewise.
4459 * libio/vscanf.c: Likewise.
4460 * libio/vwscanf.c: Likewise.
4461 * libio/wscanf.c: Likewise.
4462 * stdio-common/isoc99_fscanf.c: Likewise.
4463 * stdio-common/isoc99_scanf.c: Likewise.
4464 * stdio-common/isoc99_sscanf.c: Likewise.
4465 * stdio-common/isoc99_vfscanf.c: Likewise.
4466 * stdio-common/isoc99_vscanf.c: Likewise.
4467 * stdio-common/isoc99_vsscanf.c: Likewise.
4468 * stdio-common/scanf.c: Likewise.
4469 * stdio-common/sscanf.c: Likewise.
4470 * wcsmbs/isoc99_fwscanf.c: Likewise.
4471 * wcsmbs/isoc99_swscanf.c: Likewise.
4472 * wcsmbs/isoc99_vfwscanf.c: Likewise.
4473 * wcsmbs/isoc99_vswscanf.c: Likewise.
4474 * wcsmbs/isoc99_vwscanf.c: Likewise.
4475 * wcsmbs/isoc99_wscanf.c: Likewise.
4476
4477 2018-12-05 Albert ARIBAUD <albert.aribaud@3adev.fr>
4478
4479 * include/time.h
4480 (__tz_compute): Replace time_t with __time64_t.
4481 (__tz_convert): Replace time_t* with __time64_t.
4482 (__offtime): Replace time_t* with __time64_t.
4483 * time/gmtime.c
4484 (__gmtime_r): Adjust call to __tz_convert.
4485 (gmtime): Likewise.
4486 * time/localtime.c
4487 (__localtime_r): Likewise.
4488 (localtime): Likewise.
4489 * time/offtime.c: Replace time_t with __time64_t.
4490 * time/tzset.c: Likewise.
4491
4492 2018-12-04 Joseph Myers <joseph@codesourcery.com>
4493
4494 * Makefile ($(objpfx)testroot.pristine/install.stamp): Do not run
4495 dynamic linker unless [$(run-built-tests) = yes].
4496
4497 2018-12-03 DJ Delorie <dj@delorie.com>
4498
4499 * support/test-container.c (check_for_unshare_hints): New.
4500 (main): Call it if unshare fails. Add support for "su" scriptlet
4501 command.
4502
4503 2018-12-03 Joseph Myers <joseph@codesourcery.com>
4504
4505 * scripts/gen-as-const.py (compute_c_consts): Take an argument
4506 'START' to indicate that start text should be output.
4507 (gen_test): Likewise.
4508 (main): Generate 'START' for first symbol or '--' line, or at end
4509 of input if not previously generated.
4510
4511 2018-12-03 Rafael Ávila de Espíndola <rafael@espindo.la>
4512
4513 [BZ #19767]
4514 * sysdeps/unix/sysv/linux/arm/init-first.c: Remove #ifdef SHARED.
4515 * sysdeps/unix/sysv/linux/arm/libc-vdso.h: Remove #ifdef SHARED.
4516 * sysdeps/unix/sysv/linux/arm/sysdep.h: Define
4517 ALWAYS_USE_VSYSCALL.
4518
4519 2018-12-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4520
4521 [BZ #23913]
4522 * sysdeps/posix/spawni.c (maybe_script_execute): Increment size of
4523 new_argv by one.
4524
4525 2018-12-03 Carlos O'Donell <carlos@redhat.com>
4526
4527 [BZ #23923]
4528 * locale/programs/localedef.c: Declare boolean hard_links default true.
4529 (options): Add --no-hard-links option.
4530 (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false.
4531 * locale/programs/localedef.h: Declare prototype for hard_links.
4532 * locale/programs/locfile.c (write_locale_data): Don't use hard
4533 links if hard_links is false.
4534
4535 2018-12-03 H.J. Lu <hongjiu.lu@intel.com>
4536
4537 * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for
4538 cpu_features_basic.
4539 (__cache_sysconf): Likewise.
4540 (init_cacheinfo): Likewise.
4541 * sysdeps/x86/cpu-features.c (get_extended_indeces): Also
4542 populate COMMON_CPUID_INDEX_80000007 and
4543 COMMON_CPUID_INDEX_80000008.
4544 (get_common_indices): Also populate COMMON_CPUID_INDEX_D_ECX_1.
4545 Use CPU_FEATURES_CPU_P (cpu_features, XSAVEC) to check if
4546 XSAVEC is available. Set the bit_arch_XXX_Usable bits.
4547 (init_cpu_features): Use _Static_assert on
4548 index_arch_Fast_Unaligned_Load.
4549 __get_cpuid_registers and __get_arch_feature. Updated for
4550 cpu_features_basic. Set stepping in cpu_features.
4551 * sysdeps/x86/cpu-features.h: (FEATURE_INDEX_1): Changed to enum.
4552 (FEATURE_INDEX_2): New.
4553 (FEATURE_INDEX_MAX): Changed to enum.
4554 (COMMON_CPUID_INDEX_D_ECX_1): New.
4555 (COMMON_CPUID_INDEX_80000007): Likewise.
4556 (COMMON_CPUID_INDEX_80000008): Likewise.
4557 (cpuid_registers): Likewise.
4558 (cpu_features_basic): Likewise.
4559 (CPU_FEATURE_USABLE): Likewise.
4560 (bit_arch_XXX_Usable): Likewise.
4561 (cpu_features): Use cpuid_registers and cpu_features_basic.
4562 (bit_arch_XXX): Reweritten.
4563 (bit_cpu_XXX): Likewise.
4564 (index_cpu_XXX): Likewise.
4565 (reg_XXX): Likewise.
4566 * sysdeps/x86/tst-get-cpu-features.c: Include <stdio.h> and
4567 <support/check.h>.
4568 (CHECK_CPU_FEATURE): New.
4569 (CHECK_CPU_FEATURE_USABLE): Likewise.
4570 (cpu_kinds): Likewise.
4571 (do_test): Print vendor, family, model and stepping. Check
4572 HAS_CPU_FEATURE and CPU_FEATURE_USABLE.
4573 (TEST_FUNCTION): Removed.
4574 Include <support/test-driver.c> instead of
4575 "../../test-skeleton.c".
4576 * sysdeps/x86_64/multiarch/sched_cpucount.c (__sched_cpucount):
4577 Check POPCNT instead of POPCOUNT.
4578 * sysdeps/x86_64/multiarch/test-multiarch.c (do_test): Likewise.
4579
4580 2018-12-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
4581
4582 * scripts/gen-as-const.py (main): Avoid emitting empty line when
4583 there is no element in `consts'.
4584
4585 2018-12-01 Florian Weimer <fweimer@redhat.com>
4586
4587 * support/support_capture_subprocess.c
4588 (support_capture_subprocess): Check that pipe descriptors have
4589 expected values. Close original pipe descriptors in subprocess.
4590
4591 2018-12-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
4592
4593 [BZ #23032]
4594 * sysdeps/htl/pt-barrier-init.c (pthread_barrier_init): Fix comparing
4595 attr with __pthread_default_barrierattr.
4596 * sysdeps/htl/pt-cond-init.c (__pthread_cond_init): Fix comparing
4597 attr with __pthread_default_condattr.
4598 * sysdeps/htl/pt-mutex-init.c (_pthread_mutex_init): Fix comparing
4599 attr with __pthread_default_mutexattr.
4600 * sysdeps/htl/pt-rwlock-init.c (_pthread_rwlock_init): Fix comparing
4601 attr with __pthread_default_rwlockattr.
4602
4603 2018-12-01 Kemi Wang <kemi.wang@intel.com>
4604
4605 * manual/tunables.texi (POSIX Thread Tunables): New node.
4606 * nptl/Makefile (libpthread-routines): Add pthread_mutex_conf.
4607 * nptl/nptl-init.c: Include pthread_mutex_conf.h
4608 (__pthread_initialize_minimal_internal) [HAVE_TUNABLES]: Call
4609 __pthread_tunables_init.
4610 * nptl/pthreadP.h (MAX_ADAPTIVE_COUNT): Remove.
4611 (max_adaptive_count): Define.
4612 * nptl/pthread_mutex_conf.c: New file.
4613 * nptl/pthread_mutex_conf.h: New file.
4614 * sysdeps/generic/adaptive_spin_count.h: New file.
4615 * sysdeps/nptl/dl-tunables.list: New file.
4616 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Use
4617 max_adaptive_count () not MAX_ADAPTIVE_COUNT.
4618 * nptl/pthread_mutex_timedlock.c (__pthrad_mutex_timedlock):
4619 Likewise.
4620
4621 2018-12-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4622
4623 [BZ #20544]
4624 * stdlib/cxa_atexit.c (__internal_atexit): assert func != NULL.
4625 * stdlib/on_exit.c (__on_exit): Likewise.
4626 * stdlib/Makefile (tests): Add tst-bz20544.
4627 * stdlib/tst-bz20544.c: New test.
4628
4629 2018-11-30 Rafael Ávila de Espíndola <rafael@espindo.la>
4630
4631 [BZ #19767]
4632 * sysdeps/unix/sysv/linux/i386/init-first.c: Don't check SHARED.
4633 * sysdeps/unix/sysv/linux/i386/sysdep.h (ALWAYS_USE_VSYSCALL):
4634 New.
4635
4636 2018-11-30 Florian Weimer <fweimer@redhat.com>
4637
4638 * scripts/abilist.awk: Print "0x0" for size 0. Handle "g"/"D".
4639 Extend error logging.
4640 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.2.6): Adjust _end
4641 symbol.
4642
4643 2018-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4644
4645 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Use
4646 __sigismember instead of sigismember.
4647 * sysdeps/posix/system.c [SIGCANCEL] (cancel_handler_args,
4648 cancel_handler): New definitions.
4649 (do_system): Use posix_spawn instead of fork and execl and remove
4650 reentracy code.
4651 * sysdeps/generic/not-errno.h (__kill_noerrno): New prototype.
4652 * sysdeps/unix/sysv/linux/not-errno.h (__kill_noerrno): Likewise.
4653 * sysdeps/unix/sysv/linux/ia64/system.c: Remove file.
4654 * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
4655 * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
4656 * sysdeps/unix/sysv/linux/system.c: Likewise.
4657
4658 [BZ #22834]
4659 [BZ #17490]
4660 * NEWS: Add new semantic for atfork with popen and system.
4661 * libio/iopopen.c (_IO_new_proc_open): use posix_spawn instead of
4662 fork and execl.
4663
4664 2018-11-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
4665
4666 [BZ #23690]
4667 * elf/dl-runtime.c (_dl_profile_fixup): Guarantee memory
4668 modification order when accessing reloc_result->addr.
4669 * include/link.h (reloc_result): Add field init.
4670 * nptl/Makefile (tests): Add tst-audit-threads.
4671 (modules-names): Add tst-audit-threads-mod1 and
4672 tst-audit-threads-mod2.
4673 Add rules to build tst-audit-threads.
4674 * nptl/tst-audit-threads-mod1.c: New file.
4675 * nptl/tst-audit-threads-mod2.c: Likewise.
4676 * nptl/tst-audit-threads.c: Likewise.
4677 * nptl/tst-audit-threads.h: Likewise.
4678
4679 2018-11-30 Joseph Myers <joseph@codesourcery.com>
4680
4681 * scripts/gen-as-const.py: New file.
4682 * scripts/gen-as-const.awk: Remove.
4683 * Makerules ($(common-objpfx)%.h $(common-objpfx)%.h.d): Use
4684 gen-as-const.py.
4685 ($(objpfx)test-as-const-%.c): Likewise.
4686
4687 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4688
4689 * elf/dl-exception.c: Include <_itoa.h>.
4690
4691 2018-11-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4692
4693 * sysdeps/mach/hurd/fcntl.c (__libc_fcntl): Directly return value
4694 returned by __f_setlk.
4695
4696 2018-11-29 H.J. Lu <hongjiu.lu@intel.com>
4697 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4698
4699 * elf/Makefile (tests-internal): Add tst-create_format1.
4700 * elf/dl-exception.c (_dl_exception_create_format): Support
4701 %x, %lx and %zx.
4702 * elf/tst-create_format1.c: New file.
4703
4704 2018-11-29 Charles-Antoine Couret <charles-antoine.couret@essensium.com>
4705
4706 * argp/argp-fmtstream.c (__argp_fmtstream_update): Use [_LIBC]
4707 conditional on calls to _IO_fwide and putwc_unlocked. (Merge from
4708 gnulib.)
4709 * argp/argp-help.c (__argp_failure): Likewise.
4710
4711 2018-11-29 Mao Han <han_mao@c-sky.com>
4712
4713 * elf/elf.h (EM_CSKY, R_CKCORE_NONE, R_CKCORE_ADDR32)
4714 (R_CKCORE_PCRELIMM8BY4, R_CKCORE_PCRELIMM11BY2, R_CKCORE_PCREL32)
4715 (R_CKCORE_PCRELJSR_IMM11BY2, R_CKCORE_RELATIVE, R_CKCORE_COPY)
4716 (R_CKCORE_GLOB_DAT, R_CKCORE_JUMP_SLOT, R_CKCORE_GOTOFF)
4717 (R_CKCORE_GOTPC, R_CKCORE_GOT32, R_CKCORE_PLT32, R_CKCORE_ADDRGOT)
4718 (R_CKCORE_ADDRPLT, R_CKCORE_PCREL_IMM26BY2, R_CKCORE_PCREL_IMM16BY2)
4719 (R_CKCORE_PCREL_IMM16BY4, R_CKCORE_PCREL_IMM10BY2)
4720 (R_CKCORE_PCREL_IMM10BY4, R_CKCORE_ADDR_HI16, R_CKCORE_ADDR_LO16)
4721 (R_CKCORE_GOTPC_HI16, R_CKCORE_GOTPC_LO16, R_CKCORE_GOTOFF_HI16)
4722 (R_CKCORE_GOTOFF_LO16, R_CKCORE_GOT12, R_CKCORE_GOT_HI16)
4723 (R_CKCORE_GOT_LO16, R_CKCORE_PLT12, R_CKCORE_PLT_HI16)
4724 (R_CKCORE_PLT_LO16, R_CKCORE_ADDRGOT_HI16, R_CKCORE_ADDRGOT_LO16)
4725 (R_CKCORE_ADDRPLT_HI16, R_CKCORE_ADDRPLT_LO16)
4726 (R_CKCORE_PCREL_JSR_IMM26BY2, R_CKCORE_TOFFSET_LO16)
4727 (R_CKCORE_DOFFSET_LO16, R_CKCORE_PCREL_IMM18BY2)
4728 (R_CKCORE_DOFFSET_IMM18, R_CKCORE_DOFFSET_IMM18BY2)
4729 (R_CKCORE_DOFFSET_IMM18BY4, R_CKCORE_GOT_IMM18BY4)
4730 (R_CKCORE_PLT_IMM18BY4, R_CKCORE_PCREL_IMM7BY4, R_CKCORE_TLS_LE32)
4731 (R_CKCORE_TLS_IE32, R_CKCORE_TLS_GD32, R_CKCORE_TLS_LDM32)
4732 (R_CKCORE_TLS_LDO32, R_CKCORE_TLS_DTPMOD32, R_CKCORE_TLS_DTPOFF32)
4733 (R_CKCORE_TLS_TPOFF32): New defines.
4734
4735 2018-11-29 Florian Weimer <fweimer@redhat.com>
4736
4737 * posix/Makefile (before-compile): Remove testcases.h and
4738 ptestcases.h.
4739 (generated): Add testcases.h and ptestcases.h.
4740 (testcases.h, ptestcases.h): Move to $(objpfx).
4741 (runtests.o): Add dependency on testcases.h.
4742 (runptests.o): Add dependency on ptestcases.h.
4743 * posix/testcases.h, posix/ptestcases.h: Remove files.
4744 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps): Do
4745 not touch posix/testcases.h and posix/ptestcases.h.
4746
4747 2018-11-28 Florian Weimer <fweimer@redhat.com>
4748
4749 support: Add signal support to support_capture_subprocess_check.
4750 * support/capture_subprocess.h (support_capture_subprocess_check):
4751 Adjust comment and rename parameter.
4752 * support/support_capture_subprocess_check.c
4753 (print_actual_status): New function.
4754 (support_capture_subprocess_check): Support negative
4755 status_or_signal. Call print_actual_status.
4756 * support/tst-support_capture_subprocess.c (do_test): Call
4757 support_capture_subprocess_check.
4758 * libio/tst-vtables-common.c (termination_status)
4759 (init_termination_status): Remove.
4760 (check_for_termination): Adjust support_capture_subprocess_check
4761 call.
4762 (do_test): Remove call to init_termination_status.
4763
4764 2018-11-28 Joseph Myers <joseph@codesourcery.com>
4765
4766 * scripts/build-many-glibcs.py (Glibc.build_glibc): Use original
4767 source directory instead of a copy.
4768 (CommandList.create_copy_dir): Remove.
4769
4770 2018-11-28 Stefan Liebler <stli@linux.ibm.com>
4771
4772 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
4773
4774 2018-11-28 Florian Weimer <fweimer@redhat.com>
4775
4776 * support/support.h (support_quote_string): Do not use str
4777 parameter name.
4778
4779 2018-11-27 Joseph Myers <joseph@codesourcery.com>
4780
4781 * sysdeps/mach/hurd/Makefile ($(common-objpfx)stamp-errnos): Use
4782 $(hurd-objpfx)bits/errno.h-tmp, not $(hurd)/bits/errno.h-tmp.
4783
4784 2018-11-27 Florian Weimer <fweimer@redhat.com>
4785
4786 * support/support.h (support_quote_string): Declare.
4787 * support/support_quote_string.c: New file.
4788 * support/tst-support_quote_string.c: Likewise.
4789 * support/Makefile (libsupport-routines): Add
4790 support_quote_string.
4791 (tests): Add tst-support_quote_string.
4792
4793 2018-11-27 Florian Weimer <fweimer@redhat.com>
4794
4795 [BZ #23927]
4796 CVE-2018-19591
4797 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Avoid
4798 descriptor leak in case of ENODEV error.
4799
4800 2018-11-27 Rafael Ávila de Espíndola <rafael@espindo.la>
4801
4802 [BZ #19767]
4803 * sysdeps/unix/sysv/linux/aarch64/init-first.c: Remove #ifdef SHARED.
4804 * sysdeps/unix/sysv/linux/aarch64/libc-vdso.h: Remove #ifdef SHARED.
4805 * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Define ALWAYS_USE_VSYSCALL.
4806
4807 2018-11-26 Carlos O'Donell <carlos@redhat.com>
4808
4809 * scripts/abilist.awk: Handle .tdata. Error for unknown combinations.
4810 Error for unknown lines.
4811
4812 2018-11-26 Joseph Myers <joseph@codesourcery.com>
4813
4814 * scripts/build-many-glibcs.py (Context.fix_glibc_timestamps):
4815 Touch additional files.
4816
4817 2018-11-26 Florian Weimer <fweimer@redhat.com>
4818
4819 [BZ #23907]
4820 * malloc/malloc.c (_int_free): Validate tc_idx before checking for
4821 double-frees.
4822
4823 2018-11-26 Rafael Ávila de Espíndola <rafael@espindo.la>
4824
4825 [BZ #19767]
4826 * sysdeps/unix/sysv/linux/powerpc/init-first.c: Remove #ifdef SHARED.
4827 * sysdeps/unix/sysv/linux/powerpc/libc-vdso.h: Remove #ifdef
4828 SHARED. Include sysdep.h.
4829 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Define
4830 ALWAYS_USE_VSYSCALL.
4831 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Define
4832 ALWAYS_USE_VSYSCALL.
4833
4834 2018-11-23 Rafael Ávila de Espíndola <rafael@espindo.la>
4835
4836 [BZ #19767]
4837 * nptl/Makefile (tests-static): Add tst-cond11-static.
4838 (tests): Likewise.
4839 * nptl/tst-cond11-static.c: New File.
4840 * sysdeps/unix/sysv/linux/Makefile (tests-static): Add
4841 tst-affinity-static.
4842 (tests): Likewise.
4843 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Check USE_VSYSCALL
4844 instead of SHARED.
4845 * sysdeps/unix/sysv/linux/sysdep.h (ALWAYS_USE_VSYSCALL): New.
4846 (USE_VSYSCALL): Likewise.
4847 * sysdeps/unix/sysv/linux/tst-affinity-static.c: New file.
4848 * sysdeps/unix/sysv/linux/x86/libc-vdso.h: Check USE_VSYSCALL
4849 instead of SHARED.
4850 * sysdeps/unix/sysv/linux/x86_64/init-first.c: Don't check
4851 SHARED.
4852 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (ALWAYS_USE_VSYSCALL):
4853 New.
4854
4855 2018-11-23 Joseph Myers <joseph@codesourcery.com>
4856
4857 [BZ #23915]
4858 * sysdeps/unix/sysv/linux/arm/kernel-features.h
4859 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_COPY_FILE_RANGE):
4860 Undefine.
4861
4862 2018-11-23 H.J. Lu <hongjiu.lu@intel.com>
4863
4864 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1a.
4865 (tst-cet-legacy-1a-ARGS): New.
4866 ($(objpfx)tst-cet-legacy-1a): New target.
4867 * sysdeps/x86/tst-cet-legacy-1a.c: New file.
4868
4869 2018-11-22 Joseph Myers <joseph@codesourcery.com>
4870
4871 * conform/conformtest.py (CompileSubTest.__init__): Set
4872 self.run_early to False.
4873 (ExecuteSubTest.__init__): Likewise.
4874 (HeaderTests.run): Try running all non-optional, non-XFAILed
4875 compilation tests in a single execution of the compiler.
4876
4877 * conform/conformtest.py (CompileSubTest): New class.
4878 (ExecuteSubTest): Likewise.
4879 (ElementTest.run): Rename to gen_subtests. Append tests to
4880 self.subtests instead of running them.
4881 (ConstantTest.run): Likewise.
4882 (SymbolTest.run): Likewise.
4883 (TypeTest.run): Likewise.
4884 (TagTest.run): Likewise.
4885 (FunctionTest.run): Likewise.
4886 (VariableTest.run): Likewise.
4887 (MacroFunctionTest.run): Likewise.
4888 (MacroStrTest.run): Likewise.
4889 (HeaderTests.handle_test_line): Generate subtests for tests.
4890 (HeaderTests.run): Run subtests for tests.
4891
4892 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4893
4894 * math/Versions (GLIBC_2.29): Add pow.
4895 * math/w_pow_compat.c (__pow_compat): Change to versioned compat
4896 symbol.
4897 * math/w_pow.c: New file.
4898 * sysdeps/i386/fpu/w_pow.c: New file.
4899 * sysdeps/ia64/fpu/e_pow.S: Add versioned symbols.
4900 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Rename to __pow
4901 and add necessary aliases.
4902 * sysdeps/ieee754/dbl-64/w_pow.c: New file.
4903 * sysdeps/m68k/m680x0/fpu/w_pow.c: New file.
4904 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4905 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4906 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4907 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4908 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4909 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4910 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4911 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4912 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4913 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4914 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4915 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4916 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4917 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4918 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4919 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4920 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4921 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4922 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4923 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4924 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4925 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4926 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4927 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4928 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__ieee754_pow): Rename to
4929 __pow.
4930 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__ieee754_pow): Likewise.
4931 * sysdeps/x86_64/fpu/multiarch/e_pow.c (__ieee754_pow): Likewise.
4932 * sysdeps/x86_64/fpu/multiarch/w_pow.c: New file.
4933
4934 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4935
4936 * math/Versions (GLIBC_2.29): Add log2.
4937 * math/w_log2_compat.c (__log2_compat): Change to versioned compat
4938 symbol.
4939 * math/w_log2.c: New file.
4940 * sysdeps/i386/fpu/w_log2.c: New file.
4941 * sysdeps/ia64/fpu/e_log2.S: Add versioned symbols.
4942 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Rename to __log2
4943 and add necessary aliases.
4944 * sysdeps/ieee754/dbl-64/w_log2.c: New file.
4945 * sysdeps/m68k/m680x0/fpu/w_log2.c: New file.
4946 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4947 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4948 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4949 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4950 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4951 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4952 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4953 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4954 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4955 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4956 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4957 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4958 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4959 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4960 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4961 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4962 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
4963 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
4964 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
4965 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
4966 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
4967 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
4968 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
4969 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
4970
4971 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
4972
4973 * math/Versions (GLIBC_2.29): Add log.
4974 * math/w_log_compat.c (__log_compat): Change to versioned compat
4975 symbol.
4976 * math/w_log.c: New file.
4977 * sysdeps/i386/fpu/w_log.c: New file.
4978 * sysdeps/ia64/fpu/e_log.S: Update.
4979 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Rename to __log
4980 and add necessary aliases.
4981 * sysdeps/ieee754/dbl-64/w_log.c: New file.
4982 * sysdeps/m68k/m680x0/fpu/w_log.c: New file.
4983 * sysdeps/mach/hurd/i386/libm.abilist: Update.
4984 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
4985 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
4986 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
4987 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
4988 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
4989 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
4990 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
4991 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
4992 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
4993 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
4994 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
4995 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
4996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
4997 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
4998 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
4999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5000 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5001 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5002 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5003 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5004 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5005 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5006 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5007 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c (__ieee754_log): Rename to
5008 __log.
5009 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c (__ieee754_log): Likewise.
5010 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c (__ieee754_log): Likewise.
5011 * sysdeps/x86_64/fpu/multiarch/e_log.c (__ieee754_log): Likewise.
5012 * sysdeps/x86_64/fpu/multiarch/w_log.c: New file.
5013
5014 2018-11-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
5015
5016 * math/Versions (GLIBC_2.29): Add exp and exp2.
5017 * math/w_exp2_compat.c (__exp2_compat): Change to versioned compat
5018 symbol, handle NO_LONG_DOUBLE and LONG_DOUBLE_COMPAT explicitly.
5019 * math/w_exp_compat.c (__exp_compat): Likewise.
5020 * math/w_exp.c: New file.
5021 * math/w_exp2.c: New file.
5022 * sysdeps/i386/fpu/w_exp.c: New file.
5023 * sysdeps/i386/fpu/w_exp2.c: New file.
5024 * sysdeps/ia64/fpu/e_exp.S: Add versioned symbols.
5025 * sysdeps/ia64/fpu/e_exp2.S: Likewise.
5026 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Rename to __exp
5027 and add necessary aliases.
5028 * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Rename to __exp2
5029 and add necessary aliases.
5030 * sysdeps/ieee754/dbl-64/w_exp.c: New file.
5031 * sysdeps/ieee754/dbl-64/w_exp2.c: New file.
5032 * sysdeps/m68k/m680x0/fpu/w_exp.c: New file.
5033 * sysdeps/m68k/m680x0/fpu/w_exp2.c: New file.
5034 * sysdeps/mach/hurd/i386/libm.abilist: Update.
5035 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
5036 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Update.
5037 * sysdeps/unix/sysv/linux/arm/libm.abilist: Update.
5038 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Update.
5039 * sysdeps/unix/sysv/linux/i386/libm.abilist: Update.
5040 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Update.
5041 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Update.
5042 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Update.
5043 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Update.
5044 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Update.
5045 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Update.
5046 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Update.
5047 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Update.
5048 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Update.
5049 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Update.
5050 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Update.
5051 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Update.
5052 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Update.
5053 * sysdeps/unix/sysv/linux/sh/libm.abilist: Update.
5054 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Update.
5055 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Update.
5056 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Update.
5057 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Update.
5058 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__exp1): Remove.
5059 (__ieee754_exp): Rename to __exp.
5060 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__exp1): Remove.
5061 (__ieee754_exp): Rename to __exp.
5062 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__exp1): Remove.
5063 (__ieee754_exp): Rename to __exp.
5064 * sysdeps/x86_64/fpu/multiarch/e_exp.c (__ieee754_exp): Rename to
5065 __exp.
5066 * sysdeps/x86_64/fpu/multiarch/w_exp.c: New file.
5067
5068 2018-11-20 DJ Delorie <dj@redhat.com>
5069
5070 * malloc/malloc.c (tcache_entry): Add key field.
5071 (tcache_put): Set it.
5072 (tcache_get): Likewise.
5073 (_int_free): Check for double free in tcache.
5074 * malloc/tst-tcfree1.c: New.
5075 * malloc/tst-tcfree2.c: New.
5076 * malloc/Makefile: Run the new tests.
5077 * manual/probes.texi: Document memory_tcache_double_free probe.
5078
5079 * dlfcn/dlerror.c (check_free): Prevent double frees.
5080
5081 2018-11-20 Wilco Dijkstra <wdijkstr@arm.com>
5082
5083 * sysdeps/aarch64/memset.S (MEMSET): Improve non-zero memset loop.
5084
5085 2018-11-20 Joseph Myers <joseph@codesourcery.com>
5086
5087 * conform/conformtest.py (ElementTest.run): Use unique identifiers
5088 in tests. Use names for format arguments.
5089 (ConstantTest.run): Likewise.
5090 (SymbolTest.run): Likewise.
5091 (TypeTest.run): Likewise.
5092 (TagTest.run): Likewise.
5093 (FunctionTest.run): Likewise.
5094 (VariableTest.run): Likewise.
5095 (MacroFunctionTest.run): Likewise.
5096 (MacroStrTest.run): Likewise.
5097 (HeaderTests.__init__): Set self.num_tests.
5098 (HeaderTests.handle_test_line): Set test.num. Increment
5099 self.num_tests.
5100
5101 2018-11-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5102
5103 * sysdeps/mach/hurd/f_setlk.c: Include <unistd.h>.
5104 (__f_setlk): When whence is SEEK_CUR, use __lseek64 to convert it to
5105 SEEK_SET.
5106
5107 2018-11-19 Mao Han <han_mao@c-sky.com>
5108
5109 * scripts/config.guess: Update to version 2018-08-29.
5110 * scripts/config.sub: Update to version 2018-08-29.
5111
5112 2018-11-19 Florian Weimer <fweimer@redhat.com>
5113
5114 support: Print timestamps in timeout handler.
5115 * support/support_test_main.c (print_timestamp): New function.
5116 (signal_handler): Use it to print the termination time and the
5117 time of the last write to standard output.
5118
5119 2018-11-16 Zack Weinberg <zackw@panix.com>
5120 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5121
5122 * include/monetary.h (STRFMON_LDBL_IS_DBL): New constant.
5123 (__vstrfmon_l): Rename to __vstrfmon_l_internal and add flags
5124 argument.
5125 * stdlib/strfmon_l.c (__vstrfmon_l): Rename to __vstrfmon_l_internal
5126 and add flags argument. Check flags instead of __ldbl_is_dbl when
5127 deciding whether to set is_long_double.
5128 (__strfmon_l): Call __vstrfmon_l_internal instead of __vstrfmon_l,
5129 passing zero for flags argument.
5130 * stdlib/strfmon.c (strfmon): Same change as made to __strfmon_l.
5131
5132 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c
5133 (__nldbl___vstrfmon, __nldbl___vstrfmon_l)
5134 (__nldbl_strfmon, __nldbl___strfmon_l): Call __vstrfmon_l_internal
5135 directly, passing STRFMON_LDBL_IS_DBL for flags argument. Normalize
5136 variable names. Remove libc_hidden_def/libc_hidden_proto from
5137 __nldbl___vstrfmon and __nldbl___vstrfmon_l, because they are no
5138 longer called from within the library.
5139 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h: Don't use NLDBL_DECL
5140 for __nldbl___vstrfmon_l, declare it explicitly.
5141
5142 * manual/locale.texi: Update a reference to vstrfmon_l in comments.
5143
5144 2018-11-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
5145
5146 * sysdeps/mach/hurd/bits/fcntl.h (F_GETLK64, F_SETLK64, F_SETLKW64): New
5147 macros
5148 [__USE_FILE_OFFSET64] (F_GETLK, F_SETLK, F_SETLKW): Define to F_GETLK64,
5149 F_SETLK64, F_SETLKW64, respectively.
5150 * sysdeps/mach/hurd/f_setlk.c: New file.
5151 * sysdeps/mach/hurd/f_setlk.h: New file.
5152 * sysdeps/mach/hurd/Makefile [$(subdir) = io] (sysdeps_routines): Add
5153 f_setlk.
5154 * sysdeps/mach/hurd/fcntl.c: Include "f_setlk.h".h".
5155 (__libc_fcntl): Move non-flock operations to...
5156 * sysdeps/mach/hurd/vfcntl.c (__libc_vfcntl): ... New file.
5157 * sysdeps/mach/hurd/fcntl.c (fcntl64): Add missing alias.
5158
5159 2018-11-15 Paul Eggert <eggert@cs.ucla.edu>
5160
5161 mktime: DEBUG_MKTIME cleanup
5162 The DEBUG_MKTIME code no longer works in glibc or in Gnulib.
5163 And it’s no longer needed now that glibc and Gnulib both have
5164 their own testing mechanisms for mktime.
5165 * time/mktime.c (DEBUG_MKTIME): Remove. All uses removed.
5166
5167 mktime: fix non-EOVERFLOW errno handling
5168 [BZ#23789]
5169 mktime was not properly reporting failures when the underlying
5170 localtime_r fails with errno != EOVERFLOW; it incorrectly treated
5171 them like EOVERFLOW failures, and set errno to EOVERFLOW.
5172 The problem could happen on non-glibc platforms, with Gnulib.
5173 * time/mktime.c (guess_time_tm): Remove, replacing with ...
5174 (tm_diff): ... this simpler function, which does not change errno.
5175 All callers changed to deal with errno themselves.
5176 (ranged_convert, __mktime_internal): Return failure immediately if
5177 the underlying function reports any failure other than EOVERFLOW.
5178 (__mktime_internal): Set errno to EOVERFLOW if the spring-forward
5179 gap code fails.
5180
5181 mktime: fix bug with Y2038 DST transition
5182 [BZ#23789]
5183 * time/mktime.c (ranged_convert): On 32-bit platforms, don’t
5184 mishandle a DST transition that jumps over the Y2038 boundary.
5185 No such DST transitions are known so this is only a theoretical
5186 bug, but we might as well do things right.
5187
5188 mktime: make more room for overflow
5189 [BZ#23789]
5190 * time/mktime.c (long_int): Now 4⨯ int, not just 3⨯.
5191 This is so that we can add tm_diff results to a previous guess,
5192 which will be useful in a later patch.
5193
5194 mktime: simplify offset guess
5195 [BZ#23789]
5196 * time/mktime.c (__mktime_internal): Omit excess precision.
5197
5198 mktime: new test for mktime failure
5199 [BZ#23789]
5200 Based on a test suggested by Albert Aribaud in:
5201 https://www.sourceware.org/ml/libc-alpha/2018-10/msg00662.html
5202 * time/Makefile (tests): Add bug-mktime4.
5203 * time/bug-mktime4.c: New file.
5204
5205 mktime: fix EOVERFLOW bug
5206 [BZ#23789]
5207 * time/mktime.c [!_LIBC && !DEBUG_MKTIME]:
5208 Include libc-config.h, not config.h, for __set_errno.
5209 (guess_time_tm, __mktime_internal): Set errno to EOVERFLOW on overflow.
5210
5211 2018-11-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
5212
5213 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): Use
5214 __attribute_copy__ to copy attributes from name. Drop static qualifier
5215 to avoid warnings about leaf attribute not having effect on static
5216 functions.
5217
5218 2018-11-13 Florian Weimer <fweimer@redhat.com>
5219
5220 * malloc/malloc.c (fastbin_push_entry): New function.
5221 (fastbin_pop_entry): Likewise. Replaces REMOVE_FB.
5222 (REMOVE_FB): Remove macro.
5223 (_int_malloc): Use fastbin_pop_entry and reindent.
5224 (_int_free): Use fastbin_push_entry.
5225 (malloc_consolidate): Use atomic_exchange_acquire.
5226
5227 2018-11-13 Joseph Myers <joseph@codesourcery.com>
5228
5229 * sysdeps/mips/__longjmp.c (__longjmp): Define alias manually with
5230 alias attribute, not with strong_alias.
5231
5232 * include/libc-symbols.h [SHARED && !NO_HIDDEN && !__ASSEMBLER__]
5233 (__hidden_ver2): New macro. Use old definition of __hidden_ver1
5234 with additional parameter thread.
5235 [SHARED && !NO_HIDDEN && !__ASSEMBLER__] (__hidden_ver1): Define
5236 in terms of __hidden_ver2.
5237 (hidden_tls_def): New macro.
5238 (libc_hidden_tls_def): Likewise.
5239 (rtld_hidden_tls_def): Likewise.
5240 (libm_hidden_tls_def): Likewise.
5241 (libmvec_hidden_tls_def): Likewise.
5242 (libresolv_hidden_tls_def): Likewise.
5243 (librt_hidden_tls_def): Likewise.
5244 (libdl_hidden_tls_def): Likewise.
5245 (libnss_files_hidden_tls_def): Likewise.
5246 (libnsl_hidden_tls_def): Likewise.
5247 (libnss_nisplus_hidden_tls_def): Likewise.
5248 (libutil_hidden_tls_def): Likewise.
5249 (libutil_hidden_tls_def): Likweise.
5250 * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions_thread): Use
5251 libc_hidden_tls_def.
5252 (__sim_disabled_exceptions_thread): Likewise.
5253 (__sim_round_mode_thread): Likewise.
5254
5255 * sysdeps/sparc/sparc-ifunc.h [SHARED]
5256 (sparc_ifunc_redirected_hidden_def): Use __attribute_copy__ to
5257 copy attributes from name.
5258
5259 2018-11-12 Joseph Myers <joseph@codesourcery.com>
5260
5261 * sysdeps/arm/arm-ifunc.h [SHARED] (arm_libc_ifunc_hidden_def):
5262 Use __attribute_copy__ to copy attributes from name.
5263
5264 * sysdeps/i386/i686/fpu/multiarch/e_expf.c [SHARED]: Use __THROW
5265 with __hidden_ver1 call.
5266 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c [SHARED]: Likewise.
5267 * sysdeps/i386/i686/fpu/multiarch/e_logf.c [SHARED]: Likewise.
5268 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include <math.h>.
5269 (__cosf): Do not declare here.
5270 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include <math.h>.
5271 (__sincosf): Do not declare here.
5272 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include <math.h>.
5273 (__sinf): Do not declare here.
5274
5275 * sysdeps/ia64/fpu/sfp-machine.h (__LITTLE_ENDIAN): Remove.
5276 (__BIG_ENDIAN): Likewise.
5277 (__BYTE_ORDER): Likewise.
5278 (strong_alias): Likewise.
5279 (_strong_alias): Likewise.
5280
5281 2018-11-12 Florian Weimer <fweimer@redhat.com>
5282
5283 * malloc/malloc.c (unlink_chunk): Turn the unlink macro into this
5284 function. Move after the definition of in_smallbin_range. Do not
5285 use __builtin_expect for paths that lead to a noreturn function.
5286 Drop remaining __builtin_expect (p->fd_nextsize != NULL, 0)
5287 because it is unclear whether this is in fact an unlikely
5288 condition.
5289 (_int_malloc, _int_free): Adjust.
5290 (malloc_consolidate, _int_realloc): Adjust. Remove bck, fwd
5291 variables.
5292 * malloc/arena.c (heap_trim): Likewise.
5293
5294 2018-11-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
5295
5296 * sysdeps/mach/hurd/spawni.c (__spawni): Add ccwdir port. Test and use
5297 it, free it if needed.
5298 (reauthenticate): Test and use ccwdir.
5299 (child_init_port): In non-resetids case, test and use ccwdir.
5300 (child_chdir): New nested function to set ccwdir.
5301 * hurd/hurd/userlink.h (_hurd_userlink_move): New function.
5302 * hurd/hurd/port.h (_hurd_port_move): New function.
5303 * sysdeps/mach/hurd/spawni.c (NEW_ULINK_TABLE): New macro.
5304 (EXPAND_DTABLE): Use NEW_ULINK_TABLE macro for ulink_dtable.
5305 * hurd/Versions (_hurd_port_move): Export function.
5306 * sysdeps/mach/hurd/i386/libc.abilist (_hurd_port_move): Expect
5307 symbol.
5308 * sysdeps/mach/hurd/spawni.c (__spawni): Use orig_dtablesize instead
5309 of dtablesize for allocating dtable_cloexec.
5310
5311 2018-11-09 Martin Sebor <msebor@redhat.com>
5312
5313 * include/libc-symbols.h (__attribute_copy__): Define macro unless
5314 it's already defined.
5315 (_strong_alias): Use __attribute_copy__.
5316 (_weak_alias, __hidden_ver1, __hidden_nolink2): Same.
5317 * misc/sys/cdefs.h (__attribute_copy__): New macro.
5318 * sysdeps/x86_64/multiarch/memchr.c (memchr): Use __attribute_copy__.
5319 * sysdeps/x86_64/multiarch/memcmp.c (memcmp): Same.
5320 * sysdeps/x86_64/multiarch/mempcpy.c (mempcpy): Same.
5321 * sysdeps/x86_64/multiarch/memset.c (memset): Same.
5322 * sysdeps/x86_64/multiarch/stpcpy.c (stpcpy): Same.
5323 * sysdeps/x86_64/multiarch/strcat.c (strcat): Same.
5324 * sysdeps/x86_64/multiarch/strchr.c (strchr): Same.
5325 * sysdeps/x86_64/multiarch/strcmp.c (strcmp): Same.
5326 * sysdeps/x86_64/multiarch/strcpy.c (strcpy): Same.
5327 * sysdeps/x86_64/multiarch/strcspn.c (strcspn): Same.
5328 * sysdeps/x86_64/multiarch/strlen.c (strlen): Same.
5329 * sysdeps/x86_64/multiarch/strncmp.c (strncmp): Same.
5330 * sysdeps/x86_64/multiarch/strncpy.c (strncpy): Same.
5331 * sysdeps/x86_64/multiarch/strnlen.c (strnlen): Same.
5332 * sysdeps/x86_64/multiarch/strpbrk.c (strpbrk): Same.
5333 * sysdeps/x86_64/multiarch/strrchr.c (strrchr): Same.
5334 * sysdeps/x86_64/multiarch/strspn.c (strspn): Same.
5335
5336 2018-11-09 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5337
5338 * misc/tst-efgcvt.c: Include support/check.h and
5339 support/test-driver.c. Do not include test-skeleton.c.
5340 (error_count): Remove.
5341 (output_error): Replace increments to error_count with calls to
5342 support_record_failure.
5343 (output_r_error): Likewise.
5344 (special): Likewise.
5345 (do_test): Unconditionally return zero.
5346 (TEST_FUNCTION): Remove.
5347
5348 2018-11-09 Joseph Myers <joseph@codesourcery.com>
5349
5350 * conform/Makefile ($(conformtest-header-tests)): Create $(@D),
5351 not $(@D)/scratch.
5352 ($(linknamespace-header-tests)): Likewise.
5353
5354 * conform/conformtest.py: New file.
5355 * conform/conformtest.pl: Remove.
5356 * conform/GlibcConform.pm: Likewise.
5357 * conform/glibcconform.py (KEYWORDS_C90): New constant.
5358 (KEYWORDS_C99): Likewise.
5359 (KEYWORDS): Likewise.
5360 * conform/Makefile ($(conformtest-header-tests)): Use
5361 conformtest.py instead of conformtest.pl. Do not pass --tmpdir
5362 option. Use --header instead of --headers.
5363 * conform/data/arpa/inet.h-data: Remove trailing semicolons on
5364 function entries.
5365 * conform/data/spawn.h-data: Likewise.
5366 * conform/data/fcntl.h-data (openat): Add space after function
5367 name.
5368 * conform/data/wchar.h-data (wcscasecmp): Likewise.
5369 (wcscasecmp_l): Likewise.
5370 * conform/data/termios.h-data (c_cc): Add space after element
5371 name.
5372
5373 2018-11-08 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5374
5375 * argp/tst-ldbl-argp.c (do_one_test): Use TEST_COMPARE_STRING,
5376 instead of manually comparing and reporting mismatching strings.
5377 * misc/tst-ldbl-error.c (do_one_test): Likewise.
5378 * misc/tst-ldbl-warn.c (do_one_test): Likewise.
5379
5380 2018-11-08 Joseph Myers <joseph@codesourcery.com>
5381
5382 * sysdeps/unix/sysv/linux/kernel-features.h: Remove comment about
5383 __ASSUME_SOCKETCALL.
5384 * sysdeps/unix/sysv/linux/i386/kernel-features.h
5385 (__ASSUME_SOCKETCALL): Remove.
5386 * sysdeps/unix/sysv/linux/m68k/kernel-features.h
5387 (__ASSUME_SOCKETCALL): Likewise.
5388 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5389 (__ASSUME_SOCKETCALL): Likewise.
5390 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
5391 (__ASSUME_SOCKETCALL): Likewise.
5392 * sysdeps/unix/sysv/linux/s390/kernel-features.h
5393 (__ASSUME_SOCKETCALL): Likewise.
5394 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5395 (__ASSUME_SOCKETCALL): Likewise.
5396 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
5397 (__ASSUME_SOCKETCALL): Likewise.
5398
5399 2018-11-08 H.J. Lu <hongjiu.lu@intel.com>
5400
5401 [BZ #23509]
5402 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Skip
5403 note parsing if a NT_GNU_PROPERTY_TYPE_0 note has been processed.
5404 Update the l_cet field when processing NT_GNU_PROPERTY_TYPE_0 note.
5405 Check multiple NT_GNU_PROPERTY_TYPE_0 notes.
5406 * sysdeps/x86/link_map.h (l_cet): Expand to 3 bits, Add
5407 lc_unknown.
5408
5409 2018-11-08 Alexandra Hájková <ahajkova@redhat.com>
5410
5411 [BZ #17630]
5412 * resolv/tst-resolv-network.c: Add test for getnetbyname.
5413
5414 2018-11-07 Joseph Myers <joseph@codesourcery.com>
5415
5416 [BZ #23867]
5417 * sysdeps/unix/sysv/linux/arm/kernel-features.h
5418 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5419 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5420 [__LINUX_KERNEL_VERSION < 0x040700] (__ASSUME_MLOCK2): Undefine.
5421
5422 2018-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5423
5424 * support/support_test_compare_string.c
5425 (support_test_compare_string): Fix printf format.
5426
5427 2018-11-07 Florian Weimer <fweimer@redhat.com>
5428
5429 Implement TEST_COMPARE_STRING.
5430 * support/check.h (TEST_COMPARE_STRING): Define.
5431 (support_test_compare_string): Declare.
5432 * support/Makefile (libsupport-routines): Add
5433 support_test_compare_string.
5434 (tests): Add tst-test_compare_string.
5435 * support/support_test_compare_string.c: New file.
5436 * support/tst-test_compare_string.c: Likewise.
5437
5438 2018-11-07 Andreas Schwab <schwab@suse.de>
5439
5440 [BZ #23864]
5441 * sysdeps/unix/sysv/linux/riscv/kernel-features.h
5442 (__ASSUME_SET_ROBUST_LIST) [__LINUX_KERNEL_VERSION < 0x041400]:
5443 Undef.
5444
5445 2018-11-06 Joseph Myers <joseph@codesourcery.com>
5446
5447 [BZ #23862]
5448 * sysdeps/unix/sysv/linux/sh/kernel-features.h
5449 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_EXECVEAT): Undefine.
5450 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_MLOCK2): Likewise.
5451 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_COPY_FILE_RANGE):
5452 Likewise.
5453
5454 2018-11-06 Florian Weimer <fweimer@redhat.com>
5455
5456 [BZ #17405]
5457 * posix/Makefile (routines): Add spawn_faction_addchdir.
5458 (tests): Add tst-spawn-chdir.
5459 * posix/Versions (GLIBC_2.29): Add
5460 posix_spawn_file_actions_addchdir_np.
5461 * posix/spawn_faction_addchdir.c: New file.
5462 * posix/spawn_faction_destroy.c
5463 (__posix_spawn_file_actions_destroy): Handle spawn_do_chdir.
5464 * posix/spawn.h (posix_spawn_file_actions_addchdir_np): Declare.
5465 * posix/spawn_int.h (struct __spawn_action): Add spawn_do_chdir,
5466 chdir_action.
5467 * posix/tst-spawn-chdir.c: New file.
5468 * sysdeps/posix/spawni.c (__spawni_child): Handle spawn_do_chdir.
5469 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
5470 * sysdeps/mach/hurd/i386/libc.abilist (GLIBC_2.29): Add
5471 posix_spawn_file_actions_addchdir_np.
5472 * sysdeps/unix/sysv/linux/aarch64/libc.abilist (GLIBC_2.29):
5473 Likewise.
5474 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.29):
5475 Likewise.
5476 * sysdeps/unix/sysv/linux/arm/libc.abilist (GLIBC_2.29): Likewise.
5477 * sysdeps/unix/sysv/linux/hppa/libc.abilist (GLIBC_2.29):
5478 Likewise.
5479 * sysdeps/unix/sysv/linux/i386/libc.abilist (GLIBC_2.29):
5480 Likewise.
5481 * sysdeps/unix/sysv/linux/ia64/libc.abilist (GLIBC_2.29):
5482 Likewise.
5483 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist (GLIBC_2.29):
5484 Likewise.
5485 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist (GLIBC_2.29):
5486 Likewise.
5487 * sysdeps/unix/sysv/linux/microblaze/libc.abilist (GLIBC_2.29):
5488 Likewise.
5489 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist
5490 (GLIBC_2.29): Likewise.
5491 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist
5492 (GLIBC_2.29): Likewise.
5493 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist
5494 (GLIBC_2.29): Likewise.
5495 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist
5496 (GLIBC_2.29): Likewise.
5497 * sysdeps/unix/sysv/linux/nios2/libc.abilist (GLIBC_2.29):
5498 Likewise.
5499 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist
5500 (GLIBC_2.29): Likewise.
5501 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist
5502 (GLIBC_2.29): Likewise.
5503 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist
5504 (GLIBC_2.29): Likewise.
5505 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist
5506 (GLIBC_2.29): Likewise.
5507 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist (GLIBC_2.29):
5508 Likewise.
5509 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist (GLIBC_2.29):
5510 Likewise.
5511 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist (GLIBC_2.29):
5512 Likewise.
5513 * sysdeps/unix/sysv/linux/sh/libc.abilist (GLIBC_2.29): Likewise.
5514 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist (GLIBC_2.29):
5515 Likewise.
5516 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist (GLIBC_2.29):
5517 Likewise.
5518 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist (GLIBC_2.29):
5519 Likewise.
5520 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist (GLIBC_2.29):
5521 Likewise.
5522
5523 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5524
5525 * misc/Makefile (tests): Add tst-ldbl-error.
5526 * misc/tst-ldbl-error.c: New file.
5527
5528 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5529
5530 * misc/Makefile (tests): Add tst-ldbl-warn.
5531 * misc/tst-ldbl-warn.c: New file.
5532
5533 2018-11-06 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
5534
5535 * argp/Makefile (tests): Add tst-ldbl-argp.
5536 * argp/tst-ldbl-argp.c: New file.
5537
5538 2018-11-05 Arjun Shankar <arjun@redhat.com>
5539
5540 * iconv/gconv_conf.c (__gconv_read_conf): Remove NULL check for
5541 __gconv_path_elem and call __gconv_get_path unconditionally.
5542
5543 2018-11-05 Andreas Schwab <schwab@suse.de>
5544
5545 [BZ #22927]
5546 * resolv/gai_misc.c (__gai_enqueue_request): Don't crash if
5547 creating the first helper thread failed.
5548
5549 2018-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
5550
5551 * sysdeps/mach/hurd/msync.c: New file.
5552
5553 2018-11-02 Florian Weimer <fweimer@redhat.com>
5554
5555 * support/shell-container.c (copy_func): Call
5556 support_copy_file_range instead of copy_file_range to support
5557 cross-device copies.
5558
5559 2018-11-02 Florian Weimer <fweimer@redhat.com>
5560
5561 * support/test-container.c: Include <libc-pointer-arith.h> for
5562 ALIGN_UP.
5563
5564 2018-11-01 Zong Li <zong@andestech.com>
5565
5566 * soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
5567 (_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
5568 (_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
5569 (__FP_FRAC_SET_8): Add implementation for RV32 use.
5570
5571 * soft-fp/op-4.h (_FP_FRAC_SUB_3, _FP_FRAC_SUB_4): Use temporary
5572 variable to avoid overlap arguments.
5573
5574 2018-11-01 Joseph Myers <joseph@codesourcery.com>
5575
5576 * posix/bug-regex22.c (main): Use puts with distinct error
5577 messages for unexpected success of re_compile_pattern, not printf
5578 with NULL argument to %s.
5579
5580 * stdio-common/bug22.c: Include <libc-diag.h>.
5581 (do_test): Disable -Wformat-overflow= warnings around fprintf
5582 calls outputting more than INT_MAX characters.
5583 * stdio-common/tst-printf.c: Disable -Wformat-overflow= warnings
5584 around printf call with NULL %s argument.
5585
5586 [BZ #23848]
5587 * sysdeps/unix/sysv/linux/sparc/kernel-features.h [!__arch64__ &&
5588 __LINUX_KERNEL_VERSION < 0x040400] (__ASSUME_SENDMSG_SYSCALL):
5589 Undefine.
5590 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5591 (__ASSUME_RECVMSG_SYSCALL): Likewise.
5592 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5593 (__ASSUME_SENDTO_SYSCALL): Likewise.
5594 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5595 (__ASSUME_ACCEPT_SYSCALL): Undefine under this condition, not just
5596 [!__arch64__].
5597 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5598 (__ASSUME_CONNECT_SYSCALL): Likewise.
5599 [!__arch64__ && __LINUX_KERNEL_VERSION < 0x040400]
5600 (__ASSUME_RECVFROM_SYSCALL): Likewise.
5601 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_BIND_SYSCALL):
5602 Define.
5603 [__LINUX_KERNEL_VERSION >= 0x040400] (__ASSUME_LISTEN_SYSCALL):
5604 Likewise.
5605 [__LINUX_KERNEL_VERSION >= 0x040400]
5606 (__ASSUME_SETSOCKOPT_SYSCALL): Likewise.
5607 * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (bind):
5608 Remove.
5609 (listen): Likewise.
5610 (setsockopt): Likewise.
5611
5612 2018-11-01 Fredrik Noring <noring@nocrew.org>
5613
5614 * sysdeps/mips/sys/tas.h (_test_and_set): Handle the R5900 CPU
5615 with the ISA override.
5616
5617 2018-10-31 Rafael Avila de Espindola <rafael@espindo.la>
5618
5619 * sysdeps/unix/sysv/linux/sysdep-vdso.h: Simplify an #if #else
5620 #endif.
5621
5622 2018-10-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
5623
5624 * manual/errno.texi (EIEIO): Document how translators should
5625 translate the error message.
5626 * sysdeps/mach/hurd/errnos.awk: Avoid printing errnos.d. Avoid
5627 printing trailing whitespaces refused by git.
5628 * sysdeps/gnu/errlist.c (EIEIO): Regenerate.
5629 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
5630 * hurd/Makefile (user-interfaces): Add pci.
5631
5632 2018-10-30 Joseph Myers <joseph@codesourcery.com>
5633
5634 * conform/linknamespace.py: New file.
5635 * conform/linknamespace.pl: Remove file.
5636 * conform/Makefile ($(linknamespace-header-tests)): Use
5637 linknamespace.py instead of linknamespace.pl. Do not use --tmpdir
5638 option.
5639
5640 2018-10-30 Florian Weimer <fweimer@redhat.com>
5641
5642 * stdlib/test-bz22786.c (do_test): Additional free calls to avoid
5643 memory leaks.
5644
5645 2018-10-30 Florian Weimer <fweimer@redhat.com>
5646
5647 * support/blob_repeat.c (allocate_big): Call mkstemp directly.
5648
5649 2018-10-30 Florian Weimer <fweimer@redhat.com>
5650
5651 * stdlib/tst-strtod-overflow.c (do_test): Switch to
5652 support_blob_repeat.
5653
5654 2018-10-30 Florian Weimer <fweimer@redhat.com>
5655
5656 Avoid spurious test failures in stdlib/test-bz22786.
5657 * support/Makefile (libsupport-routines): Add blob_repeat.
5658 (tests): Add tst-support_blob_repeat.
5659 * support/blob_repeat.h: New file.
5660 * support/blob_repeat.c: Likewise.
5661 * support/tst-support_blob_repeat.c: Likewise.
5662 * stdlib/test-bz22786.c (do_test): Replace malloc and memset with
5663 support_blob_repeat_allocate.
5664
5665 2018-10-30 Andreas Schwab <schwab@suse.de>
5666
5667 [BZ #23125]
5668 * sysdeps/riscv/start.S (ENTRY_POINT): Mark ra as undefined.
5669 Don't use tail call.
5670 * elf/tst-unwind-main.c: New file.
5671 * elf/Makefile (tests): Add tst-unwind-main.
5672 (CFLAGS-tst-unwind-main.c): Define.
5673
5674 2018-10-29 Sergi Almacellas Abellana <sergi@koolpi.com>
5675
5676 [BZ #23791]
5677 * localedata/locales/ca_ES (LC_MONETARY): set p_cs_precedes and
5678 n_cs_precedes to 0.
5679 * localedata/locales/ca_ES (LC_MONETARY): set grouping to 3;3
5680
5681 2018-10-29 Joseph Myers <joseph@codesourcery.com>
5682
5683 * conform/glibcconform.py: Do not import shutil.
5684 (list_exported_functions): Use tempfile.TemporaryDirectory instead
5685 of mkdtemp.
5686
5687 * configure.ac (PYTHON_PROG): Use AC_CHECK_PROG_VER. Set
5688 critic_missing for versions before 3.4.
5689 * configure: Regenerated.
5690 * manual/install.texi (Tools for Compilation): Document
5691 requirement for Python to build glibc.
5692 * INSTALL: Regenerated.
5693 * Rules [PYTHON]: Make code unconditional.
5694 * benchtests/Makefile [PYTHON]: Likewise.
5695 * conform/Makefile [PYTHON]: Likewise.
5696 * manual/Makefile [PYTHON]: Likewise.
5697 * math/Makefile [PYTHON]: Likewise.
5698
5699 2018-10-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
5700
5701 * hurd/hurdsig.c (_hurd_interrupted_rpc_timeout): Set to 60000.
5702 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): When the server does not
5703 answer to interrupt_operation, return EIEIO instead of EINTR.
5704 * sysdeps/mach/hurd/i386/intr-msg.h (INTR_MSG_TRAP): Make
5705 _hurd_intr_rpc_msg_about_to global point to start of controlled
5706 assembly snippet. Make it check canceled flag.
5707 * hurd/hurdsig.c (_hurdsig_abort_rpcs): Only mutate thread if it passed
5708 the _hurd_intr_rpc_msg_about_to point.
5709 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Remove comment on mutation
5710 issue, remove cancel flag check.
5711
5712 2018-10-26 Joseph Myers <joseph@codesourcery.com>
5713
5714 * scripts/build-many-glibcs.py: Remove compatibility for missing
5715 os.cpu_count and re.fullmatch.
5716
5717 2018-10-26 Szabolcs Nagy <szabolcs.nagy@arm.com>
5718
5719 [BZ #23822]
5720 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Use WEAK_LIBM_ENTRY.
5721 * sysdeps/ia64/fpu/e_log2f.S (log2f): Likewise.
5722 * sysdeps/ia64/fpu/e_exp2f.S (powf): Likewise.
5723
5724 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5725
5726 * sysdeps/unix/sysv/linux/sys/inotify.h (IN_MASK_CREATE): New
5727 macro.
5728
5729 2018-10-25 Florian Weimer <fweimer@redhat.com>
5730
5731 [BZ #23562]
5732 [BZ #23821]
5733 XFAIL siginfo_t si_band conform test on sparc64.
5734 * sysdeps/unix/sysv/linux/sparc/bits/siginfo-arch.h
5735 (__SI_BAND_TYPE): Only override long int default type on sparc64.
5736 * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
5737 (conformtest-xfail-conds): Add sparc64-linux.
5738 * conform/data/signal.h-data (siginfo_t): XFAIL si_band test on
5739 sparc64.
5740 * conform/data/sys/wait.h-data (siginfo_t): Likewise.
5741
5742 2018-10-25 Joseph Myers <joseph@codesourcery.com>
5743
5744 * elf/elf.h (NT_MIPS_DSP): New macro.
5745 (NT_MIPS_FP_MODE): Likewise.
5746
5747 2018-10-25 Zong Li <zong@andestech.com>
5748
5749 * elf/Makefile (LDFLAGS-tst-execstack-mod.so): Change variable
5750 name by adding the file extension (.so).
5751
5752 2018-10-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
5753
5754 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
5755 (test-xfail-ISO11/threads.h/linknamespace,
5756 test-xfail-ISO11/threads.h/conform): Add.
5757
5758 2018-10-24 Joseph Myers <joseph@codesourcery.com>
5759
5760 * math/gen-libm-test.py: Import os.
5761 (ALL_FLOATS_MANUAL): New constant.
5762 (ALL_FLOATS_SUFFIX): Likewise.
5763 (Ulps.all_functions): New function.
5764 (real_all_ulps): Likewise.
5765 (generate_err_table_sub): Likewise.
5766 (generate_err_table): Likewise.
5767 (main): Handle -s and -m options.
5768 * manual/libm-err-tab.pl: Remove.
5769 * manual/Makefile ($(objpfx)stamp-libm-err): Use gen-libm-test.py
5770 instead of libm-err-tab.pl.
5771 [$(PERL) != no]: Change condition to [$(if $(PYTHON),$(PERL),no)
5772 != no].
5773 * manual/install.texi (Tools for Compilation): Document
5774 requirement for Python to build manual.
5775 * INSTALL: Regenerated.
5776
5777 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5778
5779 * bits/time64.h: New file.
5780 * include/time.h: Replace internal_time_t with __time64_t.
5781 * posix/bits/types (__time64_t): Add.
5782 * stdlib/Makefile: Add bits/time64.h to includes.
5783 * time/tzfile.c: Replace internal_time_t with __time64_t.
5784
5785 2018-10-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5786
5787 * include/spawn.h (__posix_spawn, posix_spawn_file_actions_addclose,
5788 __posix_spawn_file_actions_adddup2, __posix_spawn_file_actions_destroy,
5789 __posix_spawn_file_actions_init, __posix_spawnattr_init,
5790 __posix_spawnattr_destroy, __posix_spawnattr_setflags,
5791 __posix_spawnattr_setsigdefault, __posix_spawnattr_setsigmask): New
5792 prototype.
5793 * posix/spawn.c (__posix_spawn): Add libc_hidden_def.
5794 * posix/spawn_faction_addclose.c
5795 (__posix_spawn_file_actions_addclose): Add hidden definition.
5796 * posix/spawn_faction_adddup2.c
5797 (__posix_spawn_file_actions_adddup2): Likewise.
5798 * posix/spawn_faction_destroy.c
5799 (__posix_spawn_file_actions_destroy): Likewise.
5800 * posix/spawn_faction_init.c (__posix_spawn_file_actions_init):
5801 Likewise.
5802 * posix/spawnattr_destroy.c (__posix_spawnattr_destroy): Likewise.
5803 * posix/spawnattr_init.c (__posix_spawnattr_init): Likewise.
5804 * posix/spawnattr_setdefault.c (__posix_spawnattr_setsigdefault):
5805 Likewise.
5806 * posix/spawnattr_setflags.c (__posix_spawnattr_setflags): Likewise.
5807 * posix/spawnattr_setsigmask.c (__posix_spawnattr_setsigmask):
5808 Likewise.
5809
5810 2018-10-24 Andreas Schwab <schwab@suse.de>
5811
5812 [BZ #18093]
5813 * elf/dl-cache.c (_dl_load_cache_lookup): Check for truncated old
5814 format cache.
5815 * elf/cache.c (print_cache): Likewise.
5816
5817 2018-10-24 Albert ARIBAUD <albert.aribaud@3adev.fr>
5818
5819 * bits/timesize.h: New file.
5820 * stdlib/Makefile (headers): Add bits/timesize.h.
5821 * sysdeps/unix/sysv/linux/bits/msq-pad.h
5822 (__MSQ_PAD_AFTER_TIME): Use __TIMESIZE instead of __WORDSIZE.
5823 * sysdeps/unix/sysv/linux/bits/sem-pad.h
5824 (__SEM_PAD_AFTER_TIME): Likewise.
5825 * sysdeps/unix/sysv/linux/bits/shm-pad.h
5826 (__SHM_PAD_AFTER_TIME): Likewise.
5827 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h
5828 (__MSQ_PAD_BEFORE_TIME): Likewise.
5829 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h
5830 (__SEM_PAD_BEFORE_TIME): Likewise.
5831 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h
5832 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5833 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h
5834 (__MSQ_PAD_AFTER_TIME, __MSQ_PAD_BEFORE_TIME): Likewise.
5835 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h
5836 (__MSQ_PAD_BEFORE_TIME): Likewise.
5837 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h
5838 (__SEM_PAD_BEFORE_TIME): Likewise.
5839 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h
5840 (__SHM_PAD_BEFORE_TIME, __SHM_PAD_BETWEEN_TIME_AND_SEGSZ): Likewise.
5841 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h
5842 (__MSQ_PAD_BEFORE_TIME): Likewise.
5843 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h
5844 (__SEM_PAD_BEFORE_TIME): Likewise.
5845 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h
5846 (__SHM_PAD_BEFORE_TIME): Likewise.
5847 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Delete file.
5848 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
5849 * sysdeps/unix/sysv/linux/x86/bits/timesize.h: New file.
5850
5851 2018-10-24 H.J. Lu <hongjiu.lu@intel.com>
5852
5853 * benchtests/Makefile (CPPFLAGS-nonlib): Add -DUSE_RDTSCP if
5854 USE_RDTSCP is defined.
5855 * sysdeps/x86/hp-timing.h (HP_TIMING_NOW): Use RDTSCP if
5856 USE_RDTSCP is defined.
5857
5858 2018-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
5859
5860 * misc/tst-preadvwritev2-common.c (IOV_MAX): Define if not
5861 defined.
5862
5863 [BZ #23709]
5864 * sysdeps/x86/cpu-features.c (init_cpu_features): Set TSX bits
5865 independently of other flags.
5866
5867 2018-10-23 Florian Weimer <fweimer@redhat.com>
5868
5869 * time/tst-mktime2.c (N_STRINGS): Remove.
5870 (set_timezone): New function.
5871 (spring_forward_gap): Call it. Use FAIL_EXIT1.
5872 (mktime_test1): Report localtime failure and check errno value.
5873 Use TEST_COMPARE.
5874 (irix_6_4_bug, bigtime_test): Use TEST_COMPARE.
5875 (do_test): Remove alarm call. Use set_timezone and array_length.
5876
5877 2018-10-23 Andreas Schwab <schwab@suse.de>
5878
5879 * sysdeps/unix/sysv/linux/riscv/setcontext.S (__setcontext)
5880 (__start_context): Use END instead of PSEUDO_END.
5881
5882 2018-10-22 Joseph Myers <joseph@codesourcery.com>
5883
5884 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
5885 version to 4.19.
5886
5887 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
5888 version to 4.19.
5889
5890 [BZ #23793]
5891 * wcsmbs/c32rtomb.c: New file.
5892 * wcsmbs/mbrtoc32.c: Likewise.
5893 * wcsmbs/tst-c32-state.c: Likewise.
5894 * wcsmbs/mbrtowc.c (mbrtoc32): Do not define as alias.
5895 * wcsmbs/wcrtomb.c (c32rtomb): Likewise.
5896 * wcsmbs/Makefile (routines): Add mbrtoc32 and c32rtomb.
5897 (tests): Add tst-c32-state.
5898 [$(run-built-tests) = yes] ($(objpfx)tst-c32-state.out): Depend on
5899 $(gen-locales).
5900
5901 2018-10-21 H.J. Lu <hongjiu.lu@intel.com>
5902
5903 * sysdeps/x86/hp-timing.h: Don't include <x86intrin.h>.
5904 (HP_TIMING_NOW): Replace _rdtsc with __builtin_ia32_rdtsc.
5905
5906 2018-10-19 Joseph Myers <joseph@codesourcery.com>
5907
5908 [BZ #23794]
5909 * wcsmbs/c16rtomb.c (c16rtomb): Save first character of surrogate
5910 pair and return 0 in that case, and use saved character to
5911 interpret following character.
5912 * wcsmbs/tst-c16-surrogate.c: New file.
5913 * wcsmbs/Makefile (tests): Add tst-c16-surrogate.c.
5914 [$(run-built-tests) = yes] ($(objpfx)tst-c16-surrogate.out):
5915 Depend on $(gen-locales)
5916
5917 2018-10-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
5918
5919 [BZ #23562]
5920 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h
5921 (struct siginfo_t): Use correct type for si_band.
5922
5923 2018-10-19 Florian Weimer <fweimer@redhat.com>
5924
5925 [BZ #23689]
5926 * resource/bits/types/struct_rusage.h (struct rusage): Update
5927 comment on struct. Remove extraneous field comment.
5928
5929 2018-10-18 David S. Miller <davem@davemloft.net>
5930
5931 * sysdeps/unix/sysv/linux/sparc/init-first.c: New file.
5932 * sysdeps/unix/sysv/linux/sparc/libc-vdso.h: New file.
5933 * sysdeps/unix/sysv/linux/sparc/Makefile: Add dl-vdso to
5934 sysdep_routines in subdir elf.
5935 * sysdeps/unix/sysv/linux/sparc/Versions: Add GLIBC_PRIVATE
5936 version for __vdso_clock_gettime.
5937 * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_VSYSCALL_CALL):
5938 Define.
5939 (HAVE_CLOCK_GETTIME_VSYSCALL): Define.
5940 (HAVE_GETTIMEOFDAY_VSYSCALL): Define.
5941
5942 * sysdeps/sparc/fpu/libm-test-ulps: Regenerated.
5943
5944 2018-10-17 H.J. Lu <hongjiu.lu@intel.com>
5945
5946 * sysdeps/i386/init-arch.h: Removed.
5947 * sysdeps/i386/i586/init-arch.h: Likewise.
5948 * sysdeps/i386/i686/init-arch.h: Likewise.
5949 * sysdeps/i386/i686/hp-timing.h: Likewise.
5950 * sysdeps/x86_64/hp-timing.h: Likewise.
5951 * sysdeps/i386/isa.h: New file.
5952 * sysdeps/i386/i586/isa.h: Likewise.
5953 * sysdeps/i386/i686/isa.h: Likewise.
5954 * sysdeps/x86_64/isa.h: Likewise.
5955 * sysdeps/x86/hp-timing.h: New file.
5956 * sysdeps/x86/init-arch.h: Include <isa.h>.
5957
5958 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5959
5960 * math/libm-test-pow.inc (pow_test_data): Do not allow
5961 divide-by-zero exception for pow(+/- 0, -Inf).
5962
5963 2018-10-17 Zack Weinberg <zackw@panix.com>
5964
5965 * manual/job.texi (Job Control is Optional): Remove node, as
5966 job control has not been optional in quite some time.
5967 (Job Control): Mention briefly that systems older than
5968 POSIX.1-2001 might not support job control.
5969 * manual/conf.texi (_POSIX_JOB_CONTROL): Will always be
5970 defined on systems conforming to POSIX.1-2001.
5971
5972 2018-10-17 Arjun Shankar <arjun@redhat.com>
5973
5974 [BZ #22062]
5975 * iconv/gconv_conf.c (__gconv_get_path): Remove locking and fix
5976 indentation.
5977 * (__gconv_read_conf): Mark function static.
5978 * (once): New static variable.
5979 * (__gconv_load_conf): New function.
5980 * iconv/gconv_int.h (__gconv_load_conf): Likewise.
5981 * iconv/gconv_db.c (once): Remove static variable.
5982 * (__gconv_compare_alias): Use __gconv_load_conf instead of
5983 __gconv_read_conf.
5984 * (__gconv_find_transform): Likewise.
5985 * iconv/tst-iconv-mt.c: New test.
5986 * iconv/Makefile: Add tst-iconv_mt.
5987
5988 2018-10-17 Joseph Myers <joseph@codesourcery.com>
5989
5990 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5991 bits/shm-pad.h.
5992 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shm-pad.h>.
5993 (shmatt_t): Define as __syscall_ulong_t.
5994 (__SHM_PAD_TIME): New macro, depending on [__SHM_PAD_BEFORE_TIME]
5995 and [__SHM_PAD_AFTER_TIME].
5996 (struct shmid_ds): Define time fields using __SHM_PAD_TIME.
5997 Define shm_segsz and associated padding based on
5998 [__SHM_SEGSZ_AFTER_TIME] and [__SHM_PAD_BETWEEN_TIME_AND_SEGSZ].
5999 Use __syscall_ulong_t instead of unsigned long int.
6000 [__USE_MISC] (struct shminfo): Use __syscall_ulong_t instead of
6001 unsigned long int.
6002 [__USE_MISC] (struct shm_info): Likewise.
6003 * sysdeps/unix/sysv/linux/bits/shm-pad.h: New file.
6004 * sysdeps/unix/sysv/linux/hppa/bits/shm-pad.h: Likewise.
6005 * sysdeps/unix/sysv/linux/mips/bits/shm-pad.h: Likewise.
6006 * sysdeps/unix/sysv/linux/powerpc/bits/shm-pad.h: Likewise.
6007 * sysdeps/unix/sysv/linux/sparc/bits/shm-pad.h: Likewise.
6008 * sysdeps/unix/sysv/linux/x86/bits/shm-pad.h: Likewise.
6009 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Remove.
6010 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Likewise.
6011 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
6012 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
6013 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
6014
6015 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6016 bits/shmlba.h.
6017 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/shmlba.h>.
6018 (SHMLBA): Remove macro.
6019 (__getpagesize): Remove function declaration.
6020 * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Include
6021 <bits/shmlba.h>.
6022 (SHMLBA): Remove macro.
6023 * sysdeps/unix/sysv/linux/mips/bits/shm.h: Include
6024 <bits/shmlba.h>.
6025 (SHMLBA): Remove macro.
6026 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Include
6027 <bits/shmlba.h>.
6028 (SHMLBA): Remove macro.
6029 (__getpagesize): Remove function declaration.
6030 * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Include
6031 <bits/shmlba.h>.
6032 (SHMLBA): Remove macro.
6033 (__getshmlba): Remove function declaration.
6034 * sysdeps/unix/sysv/linux/x86/bits/shm.h: Include <bits/shmlba.h>.
6035 (SHMLBA): Remove macro.
6036 (__getpagesize): Remove function declaration.
6037 * sysdeps/unix/sysv/linux/arm/bits/shm.h: Remove file.
6038 * sysdeps/unix/sysv/linux/ia64/bits/shm.h: Likewise.
6039 * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
6040 * sysdeps/unix/sysv/linux/bits/shmlba.h: New file.
6041 * sysdeps/unix/sysv/linux/arm/bits/shmlba.h: Likewise.
6042 * sysdeps/unix/sysv/linux/hppa/bits/shmlba.h: Likewise.
6043 * sysdeps/unix/sysv/linux/ia64/bits/shmlba.h: Likewise.
6044 * sysdeps/unix/sysv/linux/mips/bits/shmlba.h: Likewise.
6045 * sysdeps/unix/sysv/linux/sh/bits/shmlba.h: Likewise.
6046 * sysdeps/unix/sysv/linux/sparc/bits/shmlba.h: Likewise.
6047
6048 2018-10-17 Stefan Liebler <stli@linux.ibm.com>
6049
6050 [BZ #23275]
6051 * nptl/tst-mutex10.c: New File.
6052 * nptl/Makefile (tests): Add tst-mutex10.
6053 (tst-mutex10-ENV): New variable.
6054 * sysdeps/unix/sysv/linux/s390/force-elision.h: (FORCE_ELISION):
6055 Ensure that elision path is used if elision is available.
6056 * sysdeps/unix/sysv/linux/powerpc/force-elision.h (FORCE_ELISION):
6057 Likewise.
6058 * sysdeps/unix/sysv/linux/x86/force-elision.h: (FORCE_ELISION):
6059 Likewise.
6060 * nptl/pthreadP.h (PTHREAD_MUTEX_TYPE, PTHREAD_MUTEX_TYPE_ELISION)
6061 (PTHREAD_MUTEX_PSHARED): Use atomic_load_relaxed.
6062 * nptl/pthread_mutex_consistent.c (pthread_mutex_consistent): Likewise.
6063 * nptl/pthread_mutex_getprioceiling.c (pthread_mutex_getprioceiling):
6064 Likewise.
6065 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full)
6066 (__pthread_mutex_cond_lock_adjust): Likewise.
6067 * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
6068 Likewise.
6069 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Likewise.
6070 * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
6071 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
6072 * sysdeps/nptl/bits/thread-shared-types.h (struct __pthread_mutex_s):
6073 Add comments.
6074 * nptl/pthread_mutex_destroy.c (__pthread_mutex_destroy):
6075 Use atomic_load_relaxed and atomic_store_relaxed.
6076 * nptl/pthread_mutex_init.c (__pthread_mutex_init):
6077 Use atomic_store_relaxed.
6078
6079 2018-10-17 Andreas Schwab <schwab@suse.de>
6080
6081 * benchtests/bench-strtod.c (TIMEOUT): Don't define.
6082 * crypt/badsalttest.c (TIMEOUT): Likewise.
6083 * crypt/sha256c-test.c (TIMEOUT): Likewise.
6084 * dirent/tst-fdopendir.c (TIMEOUT): Likewise.
6085 * io/test-lfs.c (TIMEOUT): Likewise.
6086 * libio/tst-atime.c (TIMEOUT): Likewise.
6087 * localedata/tst-leaks.c (TIMEOUT): Likewise.
6088 * nptl/tst-cancel19.c (TIMEOUT): Likewise.
6089 * nptl/tst-cancel22.c (TIMEOUT): Likewise.
6090 * nptl/tst-cancel25.c (TIMEOUT): Likewise.
6091 * nptl/tst-cancel7.c (TIMEOUT): Likewise.
6092 * nptl/tst-cond-except.c (TIMEOUT): Likewise.
6093 * nptl/tst-cond11.c (TIMEOUT): Likewise.
6094 * nptl/tst-cond14.c (TIMEOUT): Likewise.
6095 * nptl/tst-cond15.c (TIMEOUT): Likewise.
6096 * nptl/tst-cond24.c (TIMEOUT): Likewise.
6097 * nptl/tst-cond25.c (TIMEOUT): Likewise.
6098 * nptl/tst-kill2.c (TIMEOUT): Likewise.
6099 * nptl/tst-kill3.c (TIMEOUT): Likewise.
6100 * nptl/tst-mutex4.c (TIMEOUT): Likewise.
6101 * nptl/tst-mutex5.c (TIMEOUT): Likewise.
6102 * nptl/tst-mutex9.c (TIMEOUT): Likewise.
6103 * nptl/tst-once2.c (TIMEOUT): Likewise.
6104 * nptl/tst-once3.c (TIMEOUT): Likewise.
6105 * nptl/tst-once4.c (TIMEOUT): Likewise.
6106 * nptl/tst-robust8.c (TIMEOUT): Likewise.
6107 * nptl/tst-robust9.c (TIMEOUT): Likewise.
6108 * nptl/tst-rwlock16.c (TIMEOUT): Likewise.
6109 * nptl/tst-sem14.c (TIMEOUT): Likewise.
6110 * nptl/tst-sem6.c (TIMEOUT): Likewise.
6111 * nptl/tst-signal3.c (TIMEOUT): Likewise.
6112 * nptl/tst-spin4.c (TIMEOUT): Likewise.
6113 * nptl/tst-tls3.c (TIMEOUT): Likewise.
6114 * nptl/tst-tls4.c (TIMEOUT): Likewise.
6115 * posix/tst-chmod.c (TIMEOUT): Likewise.
6116 * posix/tst-getaddrinfo4.c (TIMEOUT): Likewise.
6117 * posix/tst-getaddrinfo5.c (TIMEOUT): Likewise.
6118 * posix/tst-preadwrite-common.c (TIMEOUT): Likewise.
6119 * posix/tst-regex2.c (TIMEOUT): Likewise.
6120 * posix/tst-waitid.c (TIMEOUT): Likewise.
6121 * rt/tst-aio.c (TIMEOUT): Likewise.
6122 * rt/tst-aio10.c (TIMEOUT): Likewise.
6123 * rt/tst-aio4.c (TIMEOUT): Likewise.
6124 * rt/tst-aio5.c (TIMEOUT): Likewise.
6125 * rt/tst-aio6.c (TIMEOUT): Likewise.
6126 * rt/tst-aio64.c (TIMEOUT): Likewise.
6127 * rt/tst-aio7.c (TIMEOUT): Likewise.
6128 * rt/tst-aio9.c (TIMEOUT): Likewise.
6129 * rt/tst-clock.c (TIMEOUT): Likewise.
6130 * rt/tst-cpuclock1.c (TIMEOUT): Likewise.
6131 * rt/tst-cpuclock2.c (TIMEOUT): Likewise.
6132 * rt/tst-mqueue2.c (TIMEOUT): Likewise.
6133 * rt/tst-mqueue4.c (TIMEOUT): Likewise.
6134 * rt/tst-mqueue5.c (TIMEOUT): Likewise.
6135 * rt/tst-timer4.c (TIMEOUT): Likewise.
6136 * stdio-common/tst-fseek.c (TIMEOUT): Likewise.
6137 * stdio-common/tst-rndseek.c (TIMEOUT): Likewise.
6138 * stdlib/tst-empty-env.c (TIMEOUT): Likewise.
6139 * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Likewise.
6140 * time/tst-ftime.c (TIMEOUT): Likewise.
6141 * timezone/tst-tzset.c (TIMEOUT): Likewise.
6142
6143 2018-10-16 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
6144
6145 * sysdeps/aarch64/multiarch/memcpy_thunderx.S: Remove thunderx2 code.
6146 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New implementation
6147 for thunderX2.
6148
6149 2018-10-15 Joseph Myers <joseph@codesourcery.com>
6150
6151 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6152 bits/sem-pad.h.
6153 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/sem-pad.h>
6154 instead of <bits/wordsize.h>.
6155 (__SEM_PAD_TIME): New macro, depending on [__SEM_PAD_BEFORE_TIME]
6156 and [__SEM_PAD_AFTER_TIME].
6157 (struct semid_ds): Define time fields using __SEM_PAD_TIME. Use
6158 __syscall_ulong_t instead of unsigned long int.
6159 * sysdeps/unix/sysv/linux/bits/sem-pad.h: New file.
6160 * sysdeps/unix/sysv/linux/hppa/bits/sem-pad.h: Likewise.
6161 * sysdeps/unix/sysv/linux/mips/bits/sem-pad.h: Likewise.
6162 * sysdeps/unix/sysv/linux/powerpc/bits/sem-pad.h: Likewise.
6163 * sysdeps/unix/sysv/linux/sparc/bits/sem-pad.h: Likewise.
6164 * sysdeps/unix/sysv/linux/x86/bits/sem-pad.h: Likewise.
6165 * sysdeps/unix/sysv/linux/hppa/bits/sem.h: Remove.
6166 * sysdeps/unix/sysv/linux/mips/bits/sem.h: Likewise.
6167 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
6168 * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
6169 * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
6170
6171 2018-10-14 Paul Eggert <eggert@cs.ucla.edu>
6172
6173 regex: simplify by using intprops.h
6174 [BZ#23744]
6175 * posix/regex_internal.h [_LIBC]: Include intprops.h.
6176 (TYPE_SIGNED, INT_ADD_WRAPV) [_LIBC]: Remove.
6177 intprops.h defines them.
6178
6179 regex: __builtin_expect → __glibc_unlikely
6180 [BZ#23744]
6181 This refactoring was prompted by a problem when the regex code is
6182 used as part of Gnulib and when the builder’s compiler does not grok
6183 __builtin_expect. Problem reported for Gawk by Nelson H.F. Beebe in:
6184 https://lists.gnu.org/r/bug-gnulib/2018-09/msg00137.html
6185 Although this refactoring does not fix the problem directly,
6186 we might as well have Gawk use the now-preferred glibc style for when
6187 __builtin_expect is unavailable.
6188 * posix/regex_internal.h (BE): Remove.
6189 All uses replaced by __glibc_unlikely or __glibc_likely.
6190
6191 2018-10-11 Joseph Myers <joseph@codesourcery.com>
6192
6193 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6194 bits/msq-pad.h.
6195 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/msq-pad.h>
6196 instead of <bits/wordsize.h>.
6197 (msgqnum_t): Define as __syscall_ulong_t.
6198 (msglen_t): Likewise.
6199 (__MSQ_PAD_TIME): New macro, depending on [__MSQ_PAD_BEFORE_TIME]
6200 and [__MSQ_PAD_AFTER_TIME].
6201 (struct msqid_ds): Define time fields using __MSQ_PAD_TIME. Use
6202 __syscall_ulong_t instead of unsigned long int.
6203 * sysdeps/unix/sysv/linux/bits/msq-pad.h: New file.
6204 * sysdeps/unix/sysv/linux/hppa/bits/msq-pad.h: Likewise.
6205 * sysdeps/unix/sysv/linux/mips/bits/msq-pad.h: Likewise.
6206 * sysdeps/unix/sysv/linux/powerpc/bits/msq-pad.h: Likewise.
6207 * sysdeps/unix/sysv/linux/sparc/bits/msq-pad.h: Likewise.
6208 * sysdeps/unix/sysv/linux/x86/bits/msq-pad.h: Likewise.
6209 * sysdeps/unix/sysv/linux/hppa/bits/msq.h: Remove.
6210 * sysdeps/unix/sysv/linux/mips/bits/msq.h: Likewise.
6211 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
6212 * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
6213 * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
6214
6215 2018-10-10 Joseph Myers <joseph@codesourcery.com>
6216
6217 * sysdeps/unix/sysv/linux/bits/shm.h: Include <bits/wordsize.h>.
6218 (struct shmid_ds): Condition padding after time fields on
6219 [__WORDSIZE == 32].
6220 * sysdeps/unix/sysv/linux/alpha/bits/shm.h: Remove file.
6221 * sysdeps/unix/sysv/linux/generic/bits/shm.h: Likewise.
6222 * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
6223
6224 * sysdeps/unix/sysv/linux/bits/sem.h: Include <bits/wordsize.h>.
6225 (struct semid_ds): Condition padding after time fields on
6226 [__WORDSIZE == 32].
6227 * sysdeps/unix/sysv/linux/alpha/bits/sem.h: Remove file.
6228 * sysdeps/unix/sysv/linux/generic/bits/sem.h: Likewise.
6229 * sysdeps/unix/sysv/linux/ia64/bits/sem.h: Likewise.
6230 * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
6231
6232 * sysdeps/unix/sysv/linux/bits/msq.h: Include <bits/wordsize.h>.
6233 (struct msqid_ds): Condition padding after time fields on
6234 [__WORDSIZE == 32].
6235 * sysdeps/unix/sysv/linux/alpha/bits/msq.h: Remove file.
6236 * sysdeps/unix/sysv/linux/generic/bits/msq.h: Likewise.
6237 * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Likewise.
6238 * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
6239
6240 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6241
6242 * nss/tst-nss-files-hosts-multi.c (TIMEOUT): Define.
6243
6244 2018-10-09 Szabolcs Nagy <szabolcs.nagy@arm.com>
6245
6246 * libio/tst-readline.c (TIMEOUT): Define.
6247
6248 2018-10-08 Paul Eggert <eggert@cs.ucla.edu>
6249
6250 mktime fix for Gnulib + coreutils
6251 [BZ#23745]
6252 This fix affects only Gnulib. Problem discovered when
6253 mktime.c was used as part of Gnulib in bleeding-edge Coreutils.
6254 * time/mktime.c:
6255 (my_tzset) [!_LIBC && !NEED_MKTIME_WORKING && !NEED_MKTIME_WINDOWS]:
6256 Do not define since it is not used. Defining an unused static
6257 function prompts a warning from GCC when Coreutils is configured
6258 with --enable-gcc-warnings.
6259
6260 2018-10-08 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
6261
6262 * benchtests/scripts/compare_bench.py (main): set float type on
6263 threshold argument.
6264
6265 2018-10-08 Rafal Luzynski <digitalfreak@lingonborough.com>
6266
6267 [BZ #23740]
6268 * localedata/locales/kl_GL (mon): Update, the relative case.
6269 (alt_mon): Add, fill with month names in the nominative case.
6270 (d_t_fmt): Set to "%a %b %d %Y %T %Z".
6271 (d_fmt): Set to "%b %d %Y".
6272
6273 2018-10-04 Joseph Myers <joseph@codesourcery.com>
6274
6275 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
6276 <bits/mman-linux.h>.
6277 (PROT_READ): Don't define here.
6278 (PROT_WRITE): Likewise.
6279 (PROT_EXEC): Likewise.
6280 (PROT_NONE): Likewise.
6281 (PROT_GROWSDOWN): Likewise.
6282 (PROT_GROWSUP): Likewise.
6283 (MAP_SHARED): Likewise.
6284 (MAP_PRIVATE): Likewise.
6285 [__USE_MISC] (MAP_SHARED_VALIDATE): Likewise.
6286 [__USE_MISC] (MAP_FILE): Likewise.
6287 [__USE_MISC] (MAP_ANONYMOUS): Likewise.
6288 [__USE_MISC] (MAP_ANON): Likewise.
6289 [__USE_MISC] (MAP_HUGE_SHIFT): Likewise.
6290 [__USE_MISC] (MAP_HUGE_MASK): Likewise.
6291 (MCL_CURRENT): Likewise.
6292 (MCL_FUTURE): Likewise.
6293 (MCL_ONFAULT): Likewise.
6294 [__USE_MISC] (MADV_NORMAL): Likewise.
6295 [__USE_MISC] (MADV_RANDOM): Likewise.
6296 [__USE_MISC] (MADV_SEQUENTIAL): Likewise.
6297 [__USE_MISC] (MADV_WILLNEED): Likewise.
6298 [__USE_MISC] (MADV_DONTNEED): Likewise.
6299 [__USE_MISC] (MADV_FREE): Likewise.
6300 [__USE_MISC] (MADV_REMOVE): Likewise.
6301 [__USE_MISC] (MADV_DONTFORK): Likewise.
6302 [__USE_MISC] (MADV_DOFORK): Likewise.
6303 [__USE_MISC] (MADV_HWPOISON): Likewise.
6304 [__USE_XOPEN2K] (POSIX_MADV_NORMAL): Likewise.
6305 [__USE_XOPEN2K] (POSIX_MADV_RANDOM): Likewise.
6306 [__USE_XOPEN2K] (POSIX_MADV_SEQUENTIAL): Likewise.
6307 [__USE_XOPEN2K] (POSIX_MADV_WILLNEED): Likewise.
6308 [__USE_XOPEN2K] (POSIX_MADV_DONTNEED): Likewise.
6309 (__MAP_ANONYMOUS): New macro.
6310 [__USE_MISC] (MAP_TYPE): Undefine and redefine after
6311 <bits/mman-linux.h> inclusion.
6312 (MAP_FIXED): Likewise.
6313 (MS_SYNC): Likewise.
6314 (MS_ASYNC): Likewise.
6315 (MS_INVALIDATE): Likewise.
6316 [__USE_MISC] (MADV_MERGEABLE): Likewise.
6317 [__USE_MISC] (MADV_UNMERGEABLE): Likewise.
6318 [__USE_MISC] (MADV_HUGEPAGE): Likewise.
6319 [__USE_MISC] (MADV_NOHUGEPAGE): Likewise.
6320 [__USE_MISC] (MADV_DONTDUMP): Likewise.
6321 [__USE_MISC] (MADV_DODUMP): Likewise.
6322 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
6323 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
6324
6325 [BZ #23735]
6326 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NO_MATH_REDIRECT):
6327 Define.
6328 * sysdeps/ieee754/ldbl-opt/test-nldbl-redirect.c: New file.
6329 * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math] (tests):
6330 Add test-nldbl-redirect.
6331 [$(subdir) = math] (CFLAGS-test-nldbl-redirect.c): New variable.
6332 [$(subdir) = math] ($(objpfx)test-nldbl-redirect): Depend on
6333 $(objpfx)libnldbl_nonshared.a.
6334
6335 2018-10-04 Stefan Liebler <stli@linux.ibm.com>
6336
6337 * support/support.h (support_objdir_elf_ldso): New variable.
6338 * support/support_paths.c (support_objdir_elf_ldso): Likewise.
6339 * support/Makefile (CFLAGS-support_paths.c): Add definition
6340 for OBJDIR_ELF_LDSO_PATH.
6341 * support/test-container.c (main): Search for the ld.so
6342 which is also used by the testsuite.
6343
6344 2018-10-02 Rafal Luzynski <digitalfreak@lingonborough.com>
6345
6346 [BZ #20209]
6347 * localedata/locales/kl_GL: (abday): Fix spelling of Sun (Sunday),
6348 should be "sap" rather than "sab".
6349 (day): Fix spelling of Sunday, should be "sapaat" rather than
6350 "sabaat".
6351
6352 2018-10-02 Joseph Myers <joseph@codesourcery.com>
6353
6354 * math/libm-test-fma.inc (fma_test_data): Add more tests.
6355
6356 2018-10-02 Martin Jansa <Martin.Jansa@gmail.com>
6357
6358 [BZ #19444]
6359 * sysdeps/ieee754/soft-fp/s_fdiv.c: Include <libc-diag.h> and use
6360 DIAG_PUSH_NEEDS_COMMENT, DIAG_IGNORE_NEEDS_COMMENT and
6361 DIAG_POP_NEEDS_COMMENT to disable -Wmaybe-uninitialized.
6362
6363 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6364
6365 * sysdeps/unix/sysv/linux/fd_to_filename.h: Add missing includes.
6366
6367 2018-10-02 H.J. Lu <hongjiu.lu@intel.com>
6368
6369 * sysdeps/unix/sysv/linux/x86/Makefile (CFLAGS-elision-lock.c):
6370 Add -mrtm.
6371 (CFLAGS-elision-unlock.c): Likewise.
6372 (CFLAGS-elision-timed.c): Likewise.
6373 (CFLAGS-elision-trylock.c): Likewise.
6374 * sysdeps/unix/sysv/linux/x86/hle.h: Rewritten.
6375
6376 2018-10-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6377
6378 [BZ #21037]
6379 * libio/Makefile (tests): Add tst-memstream4 and tst-wmemstream4.
6380 * libio/freopen.c (freopen): Sync stream before reopen and adjust to
6381 new fd_to_filename interface.
6382 * libio/freopen64.c (freopen64): Likewise.
6383 * libio/tst-memstream.h: New file.
6384 * libio/tst-memstream4.c: Likewise.
6385 * libio/tst-wmemstream4.c: Likewise.
6386 * sysdeps/generic/fd_to_filename.h (fd_to_filename): Change signature.
6387 * sysdeps/unix/sysv/linux/fd_to_filename.h (fd_to_filename): Likewise
6388 and remove internal dynamic allocation.
6389
6390 2018-10-01 Joseph Myers <joseph@codesourcery.com>
6391
6392 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
6393 (MREMAP_MAYMOVE): Do not define here.
6394 [__USE_GNU] (MREMAP_FIXED): Likewise.
6395 * sysdeps/unix/sysv/linux/bits/mman-shared.h [__USE_GNU]
6396 (MREMAP_MAYMOVE): Define here instead.
6397 [__USE_GNU] (MREMAP_FIXED): Likewise.
6398 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_GNU]
6399 (MREMAP_MAYMOVE): Remove.
6400 [__USE_GNU] (MREMAP_FIXED): Likewise.
6401
6402 2018-09-28 Joseph Myers <joseph@codesourcery.com>
6403
6404 * math/fromfp.h: Do not include <math_private.h>.
6405 * math/s_cacosh_template.c: Likewise.
6406 * math/s_casin_template.c: Likewise.
6407 * math/s_casinh_template.c: Likewise.
6408 * math/s_ccos_template.c: Likewise.
6409 * math/s_cproj_template.c: Likewise.
6410 * math/s_fdim_template.c: Likewise.
6411 * math/s_fmaxmag_template.c: Likewise.
6412 * math/s_fminmag_template.c: Likewise.
6413 * math/s_iseqsig_template.c: Likewise.
6414 * math/s_ldexp_template.c: Likewise.
6415 * math/s_nextdown_template.c: Likewise.
6416 * math/w_log1p_template.c: Likewise.
6417 * math/w_scalbln_template.c: Likewise.
6418 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
6419 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
6420 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
6421 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
6422 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
6423 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
6424 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
6425 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
6426 * sysdeps/i386/fpu/s_atanl.c: Likewise.
6427 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
6428 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
6429 * sysdeps/i386/fpu/s_fdim.c: Likewise.
6430 * sysdeps/i386/fpu/s_logbl.c: Likewise.
6431 * sysdeps/i386/fpu/s_rintl.c: Likewise.
6432 * sysdeps/i386/fpu/s_significandl.c: Likewise.
6433 * sysdeps/ia64/fpu/s_matherrf.c: Likewise.
6434 * sysdeps/ia64/fpu/s_matherrl.c: Likewise.
6435 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6436 * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6437 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
6438 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6439 * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6440 * sysdeps/ieee754/k_standardf.c: Likewise.
6441 * sysdeps/ieee754/k_standardl.c: Likewise.
6442 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6443 * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
6444 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c: Likewise.
6445 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
6446 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
6447 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
6448 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6449 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
6450 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
6451 * sysdeps/ieee754/s_signgam.c: Likewise.
6452 * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
6453 * sysdeps/powerpc/power5+/fpu/s_modff.c: Likewise.
6454 * sysdeps/powerpc/power7/fpu/s_logbf.c: Likewise.
6455 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
6456 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
6457 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
6458 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6459 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
6460 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6461 * sysdeps/riscv/rvd/s_finite.c: Likewise.
6462 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
6463 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
6464 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
6465 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
6466 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
6467 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
6468 * sysdeps/riscv/rvf/fegetround.c: Likewise.
6469 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
6470 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
6471 * sysdeps/riscv/rvf/fesetround.c: Likewise.
6472 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
6473 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
6474 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
6475 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
6476 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
6477 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
6478 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
6479 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
6480 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
6481 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
6482 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
6483 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
6484 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
6485 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
6486 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6487 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6488 * sysdeps/riscv/rv64/rvd/s_rint.c: Include <stdbool.h> instead of
6489 <math_private.h>.
6490 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
6491
6492 2018-09-28 H.J. Lu <hongjiu.lu@intel.com>
6493
6494 [BZ #23716]
6495 * sysdeps/i386/dl-cet.c: Removed.
6496 * sysdeps/i386/dl-machine.h (_dl_runtime_resolve_shstk): New
6497 prototype.
6498 (_dl_runtime_profile_shstk): Likewise.
6499 (elf_machine_runtime_setup): Use _dl_runtime_profile_shstk or
6500 _dl_runtime_resolve_shstk if SHSTK is enabled by kernel.
6501
6502 2018-09-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6503
6504 [BZ #23579]
6505 * misc/tst-preadvwritev2-common.c (do_test_with_invalid_fd,
6506 do_test_with_invalid_iov): New tests.
6507 * misc/tst-preadvwritev2.c, misc/tst-preadvwritev64v2.c (do_test):
6508 Call do_test_with_invalid_fd and do_test_with_invalid_iov.
6509 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Use fallback code iff
6510 errno is ENOSYS.
6511 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
6512 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
6513 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
6514
6515 2018-09-27 Joseph Myers <joseph@codesourcery.com>
6516
6517 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6518 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT]
6519 (MATH_REDIRECT_BINARY_ARGS): New macro.
6520 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
6521 && !NO_MATH_REDIRECT] (copysign): Redirect using MATH_REDIRECT.
6522 * sysdeps/alpha/fpu/s_copysign.c: Define NO_MATH_REDIRECT before
6523 header inclusion.
6524 * sysdeps/alpha/fpu/s_copysignf.c: Likewise.
6525 * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6526 * sysdeps/ieee754/float128/s_copysignf128.c: Likewise.
6527 * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6528 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6529 * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6530 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6531 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
6532 Likewise.
6533 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
6534 Likewise.
6535 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
6536 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Likewise.
6537 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
6538 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
6539 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c:
6540 Likewise.
6541 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c:
6542 Likewise.
6543 * sysdeps/generic/math_private_calls.h
6544 [!__MATH_DECLARING_LONG_DOUBLE || !NO_LONG_DOUBLE] (__copysign):
6545 Do not declare and define as an inline function.
6546 * math/divtc3.c (__divtc3): Use copysign functions instead of
6547 __copysign variants.
6548 * math/multc3.c (__multc3): Likewise.
6549 * sysdeps/generic/math-type-macros.h (M_COPYSIGN): Likewise.
6550 * sysdeps/ieee754/dbl-64/e_atan2.c (signArctan2): Likewise.
6551 * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
6552 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
6553 Likewise.
6554 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
6555 (__ieee754_yn): Likewise.
6556 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
6557 * sysdeps/ieee754/dbl-64/s_atan.c (__signArctan): Likewise.
6558 * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
6559 * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6560 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Likewise.
6561 (__sin): Likewise.
6562 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
6563 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6564 Likewise.
6565 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6566 Likewise.
6567 * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6568 Likewise.
6569 * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
6570 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6571 Likewise.
6572 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Likewise.
6573 (__ieee754_ynf): Likewise.
6574 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
6575 * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6576 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
6577 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6578 Likewise.
6579 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
6580 (__ieee754_ynl): Likewise.
6581 * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6582 * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6583 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6584 Likewise.
6585 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
6586 (__ieee754_ynl): Likewise.
6587 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Likewise.
6588 * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6589 * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6590 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6591 Likewise.
6592 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
6593 (__ieee754_ynl)
6594 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__asinhl): Likewise.
6595 * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6596 * sysdeps/ieee754/ldbl-opt/nldbl-copysign.c (copysignl): Likewise.
6597 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
6598 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
6599
6600 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6601 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (round): Redirect
6602 using MATH_REDIRECT.
6603 * sysdeps/aarch64/fpu/s_round.c: Define NO_MATH_REDIRECT before
6604 header inclusion.
6605 * sysdeps/aarch64/fpu/s_roundf.c: Likewise.
6606 * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6607 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6608 * sysdeps/ieee754/float128/s_roundf128.c: Likewise.
6609 * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6610 * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6611 * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6612 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: Likewise.
6613 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: Likewise.
6614 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Likewise.
6615 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Likewise.
6616 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
6617 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
6618 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
6619 (round): Redirect to __round.
6620 (__roundl): Call round instead of __round.
6621 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__round):
6622 Remove macro.
6623 [_ARCH_PWR5X] (__roundf): Likewise.
6624 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use round
6625 functions instead of __round variants.
6626 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
6627 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
6628 Likewise.
6629 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
6630 Likewise.
6631 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
6632 Likewise.
6633 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
6634 * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lroundl): Redirect to
6635 __lroundl.
6636 (__ieee754_expl): Call roundl instead of __roundl.
6637
6638 2018-09-27 Andreas Schwab <schwab@suse.de>
6639
6640 [BZ #23717]
6641 * stdlib/tst-setcontext9.c (f1a): Make st2 static.
6642 (do_test): Make st1 static.
6643
6644 2018-09-26 Andreas Schwab <schwab@suse.de>
6645
6646 [BZ #23707]
6647 * sysdeps/powerpc/powerpc32/dl-start.S: Add unwind information.
6648 * elf/Makefile (tests): Add tst-unwind-ctor.
6649 (modules-names): Add tst-unwind-ctor-lib.
6650 ($(objpfx)tst-unwind-ctor): Depend on
6651 $(objpfx)tst-unwind-ctor-lib.so.
6652
6653 2018-09-26 Joseph Myers <joseph@codesourcery.com>
6654
6655 * sysdeps/unix/sysv/linux/bits/mman-map-flags-generic.h: New
6656 file. Most contents moved from ....
6657 * sysdeps/unix/sysv/linux/bits/mman.h: ... here. Move contents to
6658 and include <bits/mman-map-flags-generic.h>.
6659 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6660 (sysdep_headers): Add bits/mman-map-flags-generic.h.
6661 * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Include
6662 <bits/mman-map-flags-generic.h>.
6663 [__USE_MISC] (MAP_GROWSUP): Only define this macro, not other
6664 macros defined in <bits/mman-map-flags-generic.h>.
6665 * sysdeps/unix/sysv/linux/x86/bits/mman.h: Include
6666 <bits/mman-map-flags-generic.h>.
6667 [__USE_MISC] (MAP_32BIT): Only define this macro, not other macros
6668 defined in <bits/mman-map-flags-generic.h>.
6669
6670 2018-09-26 Andreas Schwab <schwab@suse.de>
6671
6672 * Makefile ($(common-objpfx)testrun.sh): Remove leading space from
6673 output.
6674
6675 2018-09-25 Adam J. Richte <adam_richter2004@yahoo.com>
6676 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6677 Fangrui Song <maskray@google.com>
6678
6679 [BZ #20480]
6680 * config.make.in (have-textrel_ifunc): New define.
6681 * configure.ac: Add check if linker supports textrel relocation with
6682 ifunc.
6683 * elf/Makefile [have-textrel_ifunc == yes] (ifunc-pie-tests): Add
6684 tst-ifunc-textrel.
6685 (CFLAGS-tst-ifunc-textrel.c): New rule.
6686 * elf/dl-reloc.c (_dl_relocate_object): Use all required flags on
6687 DT_TEXTREL segments, not only PROT_READ and PROT_WRITE.
6688 * elf/tst-ifunc-textrel.c: New file.
6689
6690 2018-09-25 Joseph Myers <joseph@codesourcery.com>
6691
6692 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6693 <bits/procfs-prregset.h>.
6694 (prgregset_t): Define using __prgregset_t.
6695 (prfpregset_t): Define using __prfpregset_t.
6696 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6697 (sysdep_headers): Add bits/procfs-prregset.h.
6698 * sysdeps/unix/sysv/linux/bits/procfs-prregset.h: New file.
6699 * sysdeps/unix/sysv/linux/alpha/bits/procfs-prregset.h: Likewise.
6700 * sysdeps/unix/sysv/linux/alpha/bits/procfs.h: Likewise.
6701 * sysdeps/unix/sysv/linux/alpha/sys/procfs.h: Remove file.
6702
6703 * sysdeps/unix/sysv/linux/sys/procfs.h: Include
6704 <bits/procfs-id.h> and <bits/procfs-extra.h>.
6705 (struct elf_prpsinfo): Use __pr_uid_t and __pr_gid_t as types of
6706 pr_uid and pr_gid.
6707 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6708 (sysdep_headers): Add bits/procfs-id.h and bits/procfs-extra.h.
6709 * sysdeps/unix/sysv/linux/bits/procfs-extra.h: New file.
6710 * sysdeps/unix/sysv/linux/bits/procfs-id.h: Likewise.
6711 * sysdeps/unix/sysv/linux/arm/bits/procfs-id.h: Likewise.
6712 * sysdeps/unix/sysv/linux/arm/bits/procfs.h: Likewise.
6713 * sysdeps/unix/sysv/linux/m68k/bits/procfs-id.h: Likewise.
6714 * sysdeps/unix/sysv/linux/m68k/bits/procfs.h: Likewise.
6715 * sysdeps/unix/sysv/linux/s390/bits/procfs-extra.h: Likewise.
6716 * sysdeps/unix/sysv/linux/s390/bits/procfs-id.h: Likewise.
6717 * sysdeps/unix/sysv/linux/s390/bits/procfs.h: Likewise.
6718 * sysdeps/unix/sysv/linux/sh/bits/procfs-id.h: Likewise.
6719 * sysdeps/unix/sysv/linux/sh/bits/procfs.h: Likewise.
6720 * sysdeps/unix/sysv/linux/sparc/bits/procfs-extra.h: Likewise.
6721 * sysdeps/unix/sysv/linux/sparc/bits/procfs-id.h: Likewise.
6722 * sysdeps/unix/sysv/linux/sparc/bits/procfs.h: Likewise.
6723 * sysdeps/unix/sysv/linux/x86/bits/procfs-id.h: Likewise.
6724 * sysdeps/unix/sysv/linux/x86/bits/procfs.h: Likewise.
6725 * sysdeps/unix/sysv/linux/arm/sys/procfs.h: Remove file.
6726 * sysdeps/unix/sysv/linux/m68k/sys/procfs.h: Likewise.
6727 * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Likewise.
6728 * sysdeps/unix/sysv/linux/sh/sys/procfs.h: Likewise.
6729 * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
6730 * sysdeps/unix/sysv/linux/x86/sys/procfs.h: Likewise.
6731
6732 * sysdeps/unix/sysv/linux/sys/procfs.h: Replace with file based on
6733 AArch64 version. Include <bits/procfs.h>.
6734 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
6735 (sysdep_headers): Add bits/procfs.h.
6736 * sysdeps/unix/sysv/linux/bits/procfs.h: New file.
6737 * sysdeps/unix/sysv/linux/aarch64/bits/procfs.h: Likewise.
6738 * sysdeps/unix/sysv/linux/hppa/bits/procfs.h: Likewise.
6739 * sysdeps/unix/sysv/linux/ia64/bits/procfs.h: Likewise.
6740 * sysdeps/unix/sysv/linux/microblaze/bits/procfs.h: Likewise.
6741 * sysdeps/unix/sysv/linux/mips/bits/procfs.h: Likewise.
6742 * sysdeps/unix/sysv/linux/nios2/bits/procfs.h: Likewise.
6743 * sysdeps/unix/sysv/linux/powerpc/bits/procfs.h: Likewise.
6744 * sysdeps/unix/sysv/linux/riscv/bits/procfs.h: Likewise.
6745 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove file.
6746 * sysdeps/unix/sysv/linux/hppa/sys/procfs.h: Likewise.
6747 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Likewise.
6748 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h: Likewise.
6749 * sysdeps/unix/sysv/linux/mips/sys/procfs.h: Likewise.
6750 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h: Likewise.
6751 * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
6752 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
6753
6754 2018-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6755
6756 * posix/tst-spawn.c (do_prepare, handle_restart, do_test):
6757 Use libsupport.
6758
6759 2018-09-25 Arjun Shankar <arjun@redhat.com>
6760
6761 * iconv/gconv_int.h (__gconv_path_elem): Remove.
6762 (__gconv_max_path_elem_len): Likewise.
6763 (__gconv_nmodules): Likewise.
6764 (__gconv_get_path): Likewise.
6765 (path_elem): Move to ...
6766 * iconv/gconv_conf.c: ... here.
6767 (__gconv_get_path): Mark function static.
6768 * iconv/gconv_int.h (GCONV_NCHAR_GOAL): Move to ...
6769 * iconv/gconv_open.c: ... here.
6770
6771 2018-09-24 Andreas Schwab <schwab@suse.de>
6772
6773 * scripts/haveversions.awk: New file.
6774 * Makerules ($(common-objpfx)Versions.def)
6775 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6776 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6777 Move rules ...
6778 * Makeconfig ($(common-objpfx)Versions.def)
6779 ($(common-objpfx)Versions.all, $(common-objpfx)Versions.v.i)
6780 ($(common-objpfx)sysd-versions, $(common-objpfx)versions.stmp):
6781 ... here.
6782 ($(common-objpfx)Versions.mk): New rule. Include it.
6783 * nis/Makefile [!have-GLIBC_2.28]: Don't build any targets.
6784 Emit error if build-obsolete-nsl = yes.
6785 * manual/install.texi (Configuring and compiling): Describe
6786 --enable-obsolete-nsl as unavaiable after version 2.28.
6787 * INSTALL: Regenerate.
6788
6789 2018-09-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
6790
6791 * NEWS: Add note about new TLE support on powerpc64le.
6792 * sysdeps/powerpc/nptl/tcb-offsets.sym (TM_CAPABLE): Remove.
6793 * sysdeps/powerpc/nptl/tls.h (tcbhead_t): Rename tm_capable to
6794 __ununsed1.
6795 (TLS_INIT_TP, TLS_DEFINE_INIT_TP): Remove tm_capable setup.
6796 (THREAD_GET_TM_CAPABLE, THREAD_SET_TM_CAPABLE): Remove macros.
6797 * sysdeps/powerpc/powerpc32/sysdep.h,
6798 sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION_IMPL,
6799 ABORT_TRANSACTION): Remove macros.
6800 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
6801 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c (elision_init): Set
6802 __pthread_force_elision iff PPC_FEATURE2_HTM_NOSC is set.
6803 * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h,
6804 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
6805 sysdeps/unix/sysv/linux/powerpc/syscall.S (ABORT_TRANSACTION): Remove
6806 usage.
6807 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: Remove file.
6808
6809 2018-09-21 Rafal Luzynski <digitalfreak@lingonborough.com>
6810
6811 [BZ #10425]
6812 * localedata/locales/it_IT (d_t_fmt): Use "%a %-d %b %Y, %T".
6813 (date_fmt): Use "%a %-d %b %Y, %T, %Z".
6814 * localedata/locales/it_CH (d_t_fmt): Use "%a %-d %b %Y, %T"
6815 which is the same as in it_IT.
6816 (d_fmt): Use "%d.%m.%Y" which is the same as in de_CH.
6817 (date_fmt): Use "%a %-d %b %Y, %T, %Z" which is the same as in it_IT.
6818
6819 2018-09-20 Joseph Myers <joseph@codesourcery.com>
6820
6821 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
6822 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (trunc): Redirect
6823 using MATH_REDIRECT.
6824 * sysdeps/aarch64/fpu/s_trunc.c: Define NO_MATH_REDIRECT before
6825 header inclusion.
6826 * sysdeps/aarch64/fpu/s_truncf.c: Likewise.
6827 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6828 * sysdeps/ieee754/float128/s_truncf128.c: Likewise.
6829 * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6830 * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6831 * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6832 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: Likewise.
6833 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: Likewise.
6834 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Likewise.
6835 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Likewise.
6836 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
6837 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
6838 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
6839 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
6840 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
6841 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
6842 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
6843 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
6844 (ceil): Redirect to __ceil.
6845 (floor): Redirect to __floor.
6846 (trunc): Redirect to __trunc.
6847 (__truncl): Call trunc instead of __trunc.
6848 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__trunc):
6849 Remove macro.
6850 [_ARCH_PWR5X] (__truncf): Likewise.
6851 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Use
6852 trunc functions instead of __trunc variants.
6853 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
6854 Likewise.
6855 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
6856 Likewise.
6857 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
6858 Likewise.
6859 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
6860 Likewise.
6861
6862 * sysdeps/x86/cpu-features.h [__geode__ || __k6__]: Handle like
6863 [__i586__ || __pentium__].
6864 [__i486__]: Handle explicitly.
6865 (HAS_CPUID): Define to 1 if above macros are undefined.
6866 (HAS_I586): Likewise.
6867 (HAS_I686): Likewise.
6868
6869 2018-09-20 Florian Weimer <fweimer@redhat.com>
6870
6871 * misc/tst-gethostid.c: New file.
6872 * misc/Makefile [$(build-shared)] (tests): Add tst-gethostid.
6873 (tst-gethostid): Link with -ldl.
6874
6875 2018-09-20 Mingli Yu <Mingli.Yu@windriver.com>
6876
6877 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Check for NULL
6878 value from gethostbyname_r.
6879
6880 2018-09-19 Carlos O'Donell <carlos@redhat.com>
6881
6882 * stdlib/tst-setcontext9.c (f1): Rename to...
6883 (f1a): ... this.
6884 (f1b): New function implementing lower half of f1 in alternate stack.
6885
6886 2018-09-19 Paul Eggert <eggert@cs.ucla.edu>
6887
6888 Fix mktime localtime offset confusion
6889 [BZ #23603]
6890 * include/time.h (__mktime_internal): The localtime offset is now
6891 of type long int instead of time_t. This is the longstanding type
6892 in glibc, and it is more than enough to represent difference
6893 between localtime and gmtime even if it is 32 bits and time_t is
6894 64. Changing it now will let us avoid an unnecessary change when
6895 time_t is widened to 64 bits on 32-bit platforms.
6896 * time/mktime-internal.h (mktime_offset_t): Now long int.
6897
6898 Merge mktime, timegm from upstream Gnulib
6899 [BZ #23603][BZ #16346]
6900 This fixes some obscure problems with integer overflow.
6901 Although it looks scary, it is almost all a byte-for-byte copy
6902 from Gnulib, and the Gnulib code has been tested reasonably well.
6903 * include/intprops.h: New file, copied from Gnulib.
6904 * include/verify.h, time/mktime-internal.h:
6905 New tiny files, simplified from Gnulib.
6906 * time/mktime.c: Copy from Gnulib. This has the following changes:
6907 Do not include config.h if DEBUG_MKTIME is nonzero.
6908 Include stdbool.h, intprops.h, verify.h.
6909 Include string.h only if needed.
6910 Include stdlib.h on MS-Windows.
6911 Include mktime-internal.h.
6912 (DEBUG_MKTIME): Default to 0, and simplify later uses.
6913 (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
6914 (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
6915 which glibc uses. Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
6916 simplify later conditionals; default the others to zero. Use
6917 these conditionals to express only the code needed on the current
6918 platform. In uses of these conditionals, explicitly spell out how
6919 _LIBC affects things, so it’s easier to review from a glibc
6920 viewpoint.
6921 (WRAPV): Remove; no longer needed now that we have
6922 systematic overflow checking.
6923 (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
6924 compartmentalize tzset issues. Move system-dependent tzsettish
6925 code here from mktime.
6926 (verify): Remove; now done by verify.h. All uses changed.
6927 (long_int): Use a more-conservative definition, to avoid
6928 integer overflow.
6929 (SHR): Remove, replacing with ...
6930 (shr): New function, which means we needn’t worry about side
6931 effects in args, and conversion analysis is simpler.
6932 (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT, TYPE_SIGNED, TYPE_MINIMUM)
6933 (TYPE_MAXIMUM, TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT)
6934 (time_t_avg, time_t_add_ok): Remove.
6935 (mktime_min, mktime_max): New constants.
6936 (leapyear, isdst_differ): Use bool for booleans.
6937 (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
6938 Use long_int, not time_t, for mktime differences.
6939 (long_int_avg): New function, replacing time_t_avg.
6940 INT_ADD_WRAPV replaces time_t_add_ok.
6941 (guess_time_tm): 6th arg is now long_int, not time_t const *.
6942 All uses changed.
6943 (convert_time): New function.
6944 (ranged_convert): Use it.
6945 (__mktime_internal): Last arg now points to mktime_offset_t, not
6946 time_t. All uses changed. This is a no-op on glibc, where
6947 mktime_offset_t is always time_t. Use int, not time_t, for UTC
6948 offset guess. Directly check for integer overflow instead of
6949 using a heuristic that works only 99.9...% of the time.
6950 Access *OFFSET only once, to avoid an unlikely race if the
6951 compiler delays a load and if this cascades into a signed integer
6952 overflow.
6953 (mktime): Move tzsettish code to my_tzset, and move
6954 localtime_offset to within mktime so that it doesn’t
6955 need a separate ifdef.
6956 (main) [DEBUG_MKTIME]: Speed up by using localtime_r
6957 instead of localtime.
6958 * time/timegm.c: Copy from Gnulib. This has the following changes:
6959 Include mktime-internal.h.
6960 [!_LIBC]: Include config.h and time.h. Do not include
6961 timegm.h or time_r.h. Make __mktime_internal a macro,
6962 and include mktime-internal.h to get its declaration.
6963 (timegm): Temporary is now mktime_offset_t, not time_t.
6964 This affects only Gnulib.
6965
6966 2018-09-19 Wilco Dijkstra <wdijkstr@arm.com>
6967
6968 [BZ #23637]
6969 * string/test-strstr.c (pr23637): New function.
6970 (test_main): Add tests with longer needles.
6971 * string/strcasestr.c (AVAILABLE): Fix readahead distance.
6972 * string/strstr.c (AVAILABLE): Likewise.
6973
6974 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6975
6976 * sysdeps/ieee754/flt-32/e_powf.c (checkint): Fix documentation.
6977
6978 2018-09-19 Szabolcs Nagy <szabolcs.nagy@arm.com>
6979
6980 * NEWS: Mention pow improvements.
6981 * math/Makefile (type-double-routines): Add e_pow_log_data.
6982 * sysdeps/generic/math_private.h (__exp1): Remove.
6983 * sysdeps/i386/fpu/e_pow_log_data.c: New file.
6984 * sysdeps/ia64/fpu/e_pow_log_data.c: New file.
6985 * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_pow.c): Allow fma
6986 contraction.
6987 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove.
6988 (exp_inline): Remove.
6989 (__ieee754_exp): Only single double input is handled.
6990 * sysdeps/ieee754/dbl-64/e_pow.c: Rewrite.
6991 * sysdeps/ieee754/dbl-64/e_pow_log_data.c: New file.
6992 * sysdeps/ieee754/dbl-64/math_config.h (issignaling_inline): Define.
6993 (__pow_log_data): Define.
6994 * sysdeps/ieee754/dbl-64/upow.h: Remove.
6995 * sysdeps/ieee754/dbl-64/upow.tbl: Remove.
6996 * sysdeps/m68k/m680x0/fpu/e_pow_log_data.c: New file.
6997 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_pow-fma.c): Allow fma
6998 contraction.
6999 (CFLAGS-e_pow-fma4.c): Likewise.
7000
7001 2018-09-18 Paul Eggert <eggert@cs.ucla.edu>
7002
7003 Simplify tzfile fstat failure code
7004 [BZ #21716]
7005 * time/tzfile.c (__tzfile_read): Simplify slightly.
7006
7007 Fix tzfile low-memory assertion failure
7008 [BZ #21716]
7009 * time/tzfile.c (__tzfile_read): Check for memory exhaustion
7010 when registering time zone abbreviations.
7011
7012 2018-09-18 Joseph Myers <joseph@codesourcery.com>
7013
7014 * sysdeps/unix/sysv/linux/bits/mman.h: New file.
7015 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove.
7016 * sysdeps/unix/sysv/linux/arm/bits/mman.h: Likewise.
7017 * sysdeps/unix/sysv/linux/m68k/bits/mman.h: Likewise.
7018 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h: Likewise.
7019 * sysdeps/unix/sysv/linux/nios2/bits/mman.h: Likewise.
7020 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
7021 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
7022 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
7023
7024 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c (ceil): Redirect to
7025 __ceil.
7026 (__ceill): Call ceil instead of __ceil.
7027 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c (floor): Redirect to
7028 __floor.
7029 (__floorl): Call floor instead of __floor.
7030
7031 2018-09-17 Joseph Myers <joseph@codesourcery.com>
7032
7033 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7034 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (ceil): Redirect
7035 using MATH_REDIRECT.
7036 * sysdeps/aarch64/fpu/s_ceil.c: Define NO_MATH_REDIRECT before
7037 header inclusion.
7038 * sysdeps/aarch64/fpu/s_ceilf.c: Likewise.
7039 * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
7040 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
7041 * sysdeps/ieee754/float128/s_ceilf128.c: Likewise.
7042 * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
7043 * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
7044 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
7045 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
7046 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Likewise.
7047 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: Likewise.
7048 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Likewise.
7049 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Likewise.
7050 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7051 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7052 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
7053 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
7054 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
7055 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
7056 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__ceil):
7057 Remove macro.
7058 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Use ceil
7059 functions instead of __ceil variants.
7060 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
7061 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive):
7062 Likewise.
7063 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive):
7064 Likewise.
7065 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7066 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive):
7067 Likewise.
7068 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7069 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7070
7071 [BZ #21286]
7072 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SI_DETHREAD): New
7073 constant.
7074 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (ILL_BADIADDR): Likewise.
7075 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_FLTUNK): Likewise.
7076 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (FPE_CONDTRAP): Likewise.
7077 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ACCADI): Likewise.
7078 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIDERR): Likewise.
7079 [__USE_XOPEN_EXTENDED || __USE_XOPEN2K8] (SEGV_ADIPERR): Likewise.
7080 [__USE_XOPEN_EXTENDED] (TRAP_BRANCH): Likewise.
7081 [__USE_XOPEN_EXTENDED] (TRAP_HWBKPT): Likewise.
7082 [__USE_XOPEN_EXTENDED] (TRAP_UNK): Likweise.
7083 * sysdeps/unix/sysv/linux/ia64/bits/siginfo-consts-arch.h
7084 (ILL_BADIADDR): Remove constant.
7085 (TRAP_BRANCH): Likewise.
7086 (TRAP_HWBKPT): Likewise.
7087
7088 2018-09-14 Joseph Myers <joseph@codesourcery.com>
7089
7090 [BZ #23656]
7091 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prstatus):
7092 Remove [_MIPS_SIM = _ABIN32] conditional case.
7093 (struct elf_prpsinfo): Likewise.
7094
7095 [BZ #23649]
7096 * sysdeps/unix/sysv/linux/microblaze/sys/procfs.h (struct
7097 elf_prpsinfo): Use unsigned int for pr_uid and pr_gid.
7098 * sysdeps/unix/sysv/linux/mips/sys/procfs.h (struct elf_prpsinfo):
7099 Likewise.
7100 * sysdeps/unix/sysv/linux/nios2/sys/procfs.h (struct
7101 elf_prpsinfo): Likewise.
7102 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h (struct
7103 elf_prpsinfo): Likewise.
7104 * sysdeps/unix/sysv/linux/sys/procfs.h (struct elf_prpsinfo):
7105 Likewise.
7106
7107 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7108 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (rint): Redirect
7109 using MATH_REDIRECT.
7110 * sysdeps/aarch64/fpu/s_rint.c: Define NO_MATH_REDIRECT before
7111 header inclusion.
7112 * sysdeps/aarch64/fpu/s_rintf.c: Likewise.
7113 * sysdeps/alpha/fpu/s_rint.c: Likewise.
7114 * sysdeps/alpha/fpu/s_rintf.c: Likewise.
7115 * sysdeps/i386/fpu/s_rintl.c: Likewise.
7116 * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
7117 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
7118 * sysdeps/ieee754/float128/s_rintf128.c: Likewise.
7119 * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
7120 * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
7121 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7122 * sysdeps/m68k/coldfire/fpu/s_rint.c: Likewise.
7123 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Likewise.
7124 * sysdeps/m68k/m680x0/fpu/s_rint.c: Likewise.
7125 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
7126 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
7127 * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7128 * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7129 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
7130 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
7131 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
7132 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
7133 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
7134 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
7135 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
7136 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
7137 * sysdeps/x86_64/fpu/math_private.h: Remove file.
7138 * math/e_scalb.c (invalid_fn): Use rint functions instead of
7139 __rint variants.
7140 * math/e_scalbf.c (invalid_fn): Likewise.
7141 * math/e_scalbl.c (invalid_fn): Likewise.
7142 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
7143 Likewise.
7144 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
7145 Likewise.
7146 * sysdeps/ieee754/k_standard.c (__kernel_standard): Likewise.
7147 * sysdeps/ieee754/k_standardl.c (__kernel_standard_l): Likewise.
7148 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
7149 Likewise.
7150 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
7151 Likewise.
7152 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
7153 Likewise.
7154 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c (__llrint): Likewise.
7155 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c (__llrintf): Likewise.
7156
7157 * include/math.h [!_ISOMAC && !(__FINITE_MATH_ONLY__ &&
7158 __FINITE_MATH_ONLY__ > 0) && !NO_MATH_REDIRECT] (MATH_REDIRECT):
7159 New macro.
7160 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7161 && !NO_MATH_REDIRECT] (MATH_REDIRECT_LDBL): Likewise.
7162 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7163 && !NO_MATH_REDIRECT] (MATH_REDIRECT_F128): Likewise.
7164 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7165 && !NO_MATH_REDIRECT] (MATH_REDIRECT_UNARY_ARGS): Likewise.
7166 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7167 && !NO_MATH_REDIRECT] (sqrt): Redirect using MATH_REDIRECT.
7168 [!_ISOMAC && !(__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0)
7169 && !NO_MATH_REDIRECT] (floor): Likewise.
7170 * sysdeps/aarch64/fpu/s_floor.c: Define NO_MATH_REDIRECT before
7171 header inclusion.
7172 * sysdeps/aarch64/fpu/s_floorf.c: Likewise.
7173 * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
7174 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
7175 * sysdeps/ieee754/float128/s_floorf128.c: Likewise.
7176 * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
7177 * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
7178 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
7179 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
7180 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: Likewise.
7181 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: Likewise.
7182 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Likewise.
7183 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Likewise.
7184 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7185 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7186 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
7187 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
7188 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
7189 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
7190 * sysdeps/powerpc/fpu/math_private.h [_ARCH_PWR5X] (__floor):
7191 Remove macro.
7192 [_ARCH_PWR5X] (__floorf): Likewise.
7193 * sysdeps/x86_64/fpu/math_private.h [__SSE4_1__] (__floor): Remove
7194 inline function.
7195 [__SSE4_1__] (__floorf): Likewise.
7196 * math/w_lgamma_main.c (LGFUNC (__lgamma)): Use floor functions
7197 instead of __floor variants.
7198 * math/w_lgamma_r_compat.c (__lgamma_r): Likewise.
7199 * math/w_lgammaf_main.c (LGFUNC (__lgammaf)): Likewise.
7200 * math/w_lgammaf_r_compat.c (__lgammaf_r): Likewise.
7201 * math/w_lgammal_main.c (LGFUNC (__lgammal)): Likewise.
7202 * math/w_lgammal_r_compat.c (__lgammal_r): Likewise.
7203 * math/w_tgamma_compat.c (__tgamma): Likewise.
7204 * math/w_tgamma_template.c (M_DECL_FUNC (__tgamma)): Likewise.
7205 * math/w_tgammaf_compat.c (__tgammaf): Likewise.
7206 * math/w_tgammal_compat.c (__tgammal): Likewise.
7207 * sysdeps/ieee754/dbl-64/e_lgamma_r.c (sin_pi): Likewise.
7208 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2):
7209 Likewise.
7210 * sysdeps/ieee754/dbl-64/lgamma_neg.c (__lgamma_neg): Likewise.
7211 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Likewise.
7212 * sysdeps/ieee754/flt-32/lgamma_negf.c (__lgamma_negf): Likewise.
7213 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
7214 Likewise.
7215 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
7216 * sysdeps/ieee754/ldbl-128/lgamma_negl.c (__lgamma_negl):
7217 Likewise.
7218 * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Likewise.
7219 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c (__ieee754_lgammal_r):
7220 Likewise.
7221 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
7222 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c (__lgamma_negl):
7223 Likewise.
7224 * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
7225 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c (__truncl): Likewise.
7226 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
7227 * sysdeps/ieee754/ldbl-96/lgamma_negl.c (__lgamma_negl): Likewise.
7228 * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Likewise.
7229 * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7230
7231 2018-09-12 Joseph Myers <joseph@codesourcery.com>
7232
7233 * elf/Makefile (modules-names-tests): New variable.
7234
7235 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7236
7237 * NEWS: Mention log2 improvements.
7238 * math/Makefile (type-double-routines): Add e_log2_data.
7239 * sysdeps/i386/fpu/e_log2_data.c: New file.
7240 * sysdeps/ia64/fpu/e_log2_data.c: New file.
7241 * sysdeps/ieee754/dbl-64/e_log2.c: Rewrite.
7242 * sysdeps/ieee754/dbl-64/e_log2_data.c: New file.
7243 * sysdeps/ieee754/dbl-64/math_config.h (__log2_data): Add.
7244 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: Remove.
7245 * sysdeps/m68k/m680x0/fpu/e_log2_data.c: New file.
7246
7247 2018-09-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
7248
7249 * NEWS: Mention log improvement.
7250 * math/Makefile (type-double-routines): Add e_log_data.
7251 * sysdeps/i386/fpu/e_log_data.c: New file.
7252 * sysdeps/ia64/fpu/e_log_data.c: New file.
7253 * sysdeps/ieee754/dbl-64/e_log.c: Rewrite.
7254 * sysdeps/ieee754/dbl-64/e_log_data.c: New file.
7255 * sysdeps/ieee754/dbl-64/math_config.h (__log_data): Add.
7256 * sysdeps/ieee754/dbl-64/ulog.h: Remove.
7257 * sysdeps/ieee754/dbl-64/ulog.tbl: Remove.
7258 * sysdeps/m68k/m680x0/fpu/e_log_data.c: New file.
7259
7260 2018-09-12 H.J. Lu <hongjiu.lu@intel.com>
7261 Xuepeng Guo <xuepeng.guo@intel.com>
7262
7263 [BZ #23606]
7264 * sysdeps/i386/start.S: Include <sysdep.h>
7265 (_start): Use ENTRY/END to insert ENDBR32 at entry when CET is
7266 enabled. Add cfi_undefined (eip).
7267
7268 2018-09-11 Joseph Myers <joseph@codesourcery.com>
7269
7270 * sysdeps/x86_64/fpu/math_private.h (MOVD): Remove macro.
7271 (MOVQ): Likewise.
7272 (EXTRACT_WORDS64): Likewise.
7273 (INSERT_WORDS64): Likewise.
7274 (GET_FLOAT_WORD): Likewise.
7275 (SET_FLOAT_WORD): Likewise.
7276
7277 * scripts/build-many-glibcs.py (Context.__init__): Add full_gcc
7278 argument.
7279 (Config.build_gcc): Use --disable-libsanitizer for first GCC
7280 build, but not for second build if --full-gcc. Use
7281 --enable-languages=all for second build if --full-gcc.
7282 (get_parser): Add --full-gcc option.
7283 (main): Update call to Context.
7284
7285 2018-09-10 Rafal Luzynski <digitalfreak@lingonborough.com>
7286
7287 [BZ #10797]
7288 * localedata/locales/de_CH (mon_thousands_sep): Use "<U2019>" (Right
7289 Single Quotation Mark).
7290 (thousands_sep): Likewise.
7291 * localedata/locales/it_CH (LC_NUMERIC): Use “copy "de_CH"”.
7292 * localedata/locales/it_IT (thousands_sep): Use ".".
7293 (grouping): Use "3;3".
7294
7295 2018-09-10 Joseph Myers <joseph@codesourcery.com>
7296
7297 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
7298 x86_64 and i686 configs using --enable-obsolete-rpc
7299 --enable-obsolete-nsl.
7300
7301 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7302
7303 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
7304
7305 2018-09-06 Stefan Liebler <stli@linux.ibm.com>
7306
7307 * sysdeps/unix/sysv/linux/spawni.c (maybe_script_execute):
7308 Increment size of new_argv by one.
7309
7310 2018-09-05 Rafal Luzynski <digitalfreak@lingonborough.com>
7311
7312 [BZ #17426]
7313 * localedata/locales/anp_IN (d_fmt): Use "%-d//%-m//%y".
7314 * localedata/locales/ar_IN (d_fmt): Likewise.
7315 * localedata/locales/bhb_IN (d_fmt): Likewise.
7316 * localedata/locales/bho_IN (d_fmt): Likewise.
7317 * localedata/locales/bn_BD (d_fmt): Likewise.
7318 * localedata/locales/bn_IN (d_fmt): Likewise.
7319 * localedata/locales/doi_IN (d_fmt): Likewise.
7320 * localedata/locales/gu_IN (d_fmt): Likewise.
7321 * localedata/locales/hi_IN (d_fmt): Likewise.
7322 * localedata/locales/hne_IN (d_fmt): Likewise.
7323 * localedata/locales/kn_IN (d_fmt): Likewise.
7324 * localedata/locales/mag_IN (d_fmt): Likewise.
7325 * localedata/locales/mai_IN (d_fmt): Likewise.
7326 * localedata/locales/mjw_IN (d_fmt): Likewise.
7327 * localedata/locales/ml_IN (d_fmt): Likewise.
7328 * localedata/locales/mni_IN (d_fmt): Likewise.
7329 * localedata/locales/mr_IN (d_fmt): Likewise.
7330 * localedata/locales/pa_IN (d_fmt): Likewise.
7331 * localedata/locales/raj_IN (d_fmt): Likewise.
7332 * localedata/locales/sat_IN (d_fmt): Likewise.
7333 * localedata/locales/sd_IN (d_fmt): Likewise.
7334 * localedata/locales/sd_IN@devanagari (d_fmt): Likewise.
7335 * localedata/locales/ta_IN (d_fmt): Likewise.
7336 * localedata/locales/ta_LK (d_fmt): Likewise.
7337 * localedata/locales/tcy_IN (d_fmt): Likewise.
7338 * localedata/locales/ur_IN (d_fmt): Likewise.
7339
7340 * localedata/locales/brx_IN (d_fmt): Use "%-m//%-d//%y".
7341 * localedata/locales/ks_IN (d_fmt): Likewise.
7342 * localedata/locales/ks_IN@devanagari (d_fmt): Likewise.
7343
7344 * localedata/locales/kok_IN (d_fmt): Use "%-d-%-m-%y".
7345 * localedata/locales/ne_NP (d_fmt): Use "%y//%-m//%-d".
7346 * localedata/locales/sa_IN (d_fmt): Use "%-d-%m-%y".
7347 * localedata/locales/te_IN (d_fmt): Use "%d-%m-%y".
7348
7349 2018-09-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
7350
7351 * NEWS: Mention exp and exp2 improvements.
7352 * math/Makefile (libm-support): Remove t_exp.
7353 (type-double-routines): Add math_err and e_exp_data.
7354 * sysdeps/aarch64/libm-test-ulps: Update.
7355 * sysdeps/arm/libm-test-ulps: Update.
7356 * sysdeps/i386/fpu/e_exp_data.c: New file.
7357 * sysdeps/i386/fpu/math_err.c: New file.
7358 * sysdeps/i386/fpu/t_exp.c: Remove.
7359 * sysdeps/ia64/fpu/e_exp_data.c: New file.
7360 * sysdeps/ia64/fpu/math_err.c: New file.
7361 * sysdeps/ia64/fpu/t_exp.c: Remove.
7362 * sysdeps/ieee754/dbl-64/e_exp.c: Rewrite.
7363 * sysdeps/ieee754/dbl-64/e_exp2.c: Rewrite.
7364 * sysdeps/ieee754/dbl-64/e_exp_data.c: New file.
7365 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Update error bound.
7366 * sysdeps/ieee754/dbl-64/eexp.tbl: Remove.
7367 * sysdeps/ieee754/dbl-64/math_config.h: New file.
7368 * sysdeps/ieee754/dbl-64/math_err.c: New file.
7369 * sysdeps/ieee754/dbl-64/t_exp.c: Remove.
7370 * sysdeps/ieee754/dbl-64/t_exp2.h: Remove.
7371 * sysdeps/ieee754/dbl-64/uexp.h: Remove.
7372 * sysdeps/ieee754/dbl-64/uexp.tbl: Remove.
7373 * sysdeps/m68k/m680x0/fpu/e_exp_data.c: New file.
7374 * sysdeps/m68k/m680x0/fpu/math_err.c: New file.
7375 * sysdeps/m68k/m680x0/fpu/t_exp.c: Remove.
7376 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7377 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7378
7379 2018-09-05 Joseph Myers <joseph@codesourcery.com>
7380
7381 * sysdeps/alpha/fpu/math_private.h: Remove.
7382
7383 * sysdeps/generic/math_private.h
7384 [__HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7, 0)] (__isinff128):
7385 Move this inline function ....
7386 [__HAVE_DISTINCT_FLOAT128] (fabsf128): And this one ....
7387 * include/math.h [!_ISOMAC]: To here....
7388
7389 2018-09-04 Joseph Myers <joseph@codesourcery.com>
7390
7391 * sysdeps/generic/fenv_private.h [FE_ALL_EXCEPT == 0]: Move this
7392 code ....
7393 [!FE_HAVE_ROUNDING_MODES]: And this code ....
7394 * include/fenv.h [!_ISOMAC]: ... to here.
7395 * math/fraiseexcpt.c (__feraiseexcept): Undefine as macro.
7396 (feraiseexcept): Likewise.
7397 * math/fromfp.h: Do not include <fenv_private.h>.
7398 * math/s_cexp_template.c: Likewise.
7399 * math/s_csin_template.c: Likewise.
7400 * math/s_csinh_template.c: Likewise.
7401 * math/s_ctan_template.c: Likewise.
7402 * math/s_ctanh_template.c: Likewise.
7403 * math/s_iseqsig_template.c: Likewise.
7404 * math/w_acos_compat.c: Likewise.
7405 * math/w_acosf_compat.c: Likewise.
7406 * math/w_acosl_compat.c: Likewise.
7407 * math/w_asin_compat.c: Likewise.
7408 * math/w_asinf_compat.c: Likewise.
7409 * math/w_asinl_compat.c: Likewise.
7410 * math/w_j0_compat.c: Likewise.
7411 * math/w_j0f_compat.c: Likewise.
7412 * math/w_j0l_compat.c: Likewise.
7413 * math/w_j1_compat.c: Likewise.
7414 * math/w_j1f_compat.c: Likewise.
7415 * math/w_j1l_compat.c: Likewise.
7416 * math/w_jn_compat.c: Likewise.
7417 * math/w_jnf_compat.c: Likewise.
7418 * math/w_log10_compat.c: Likewise.
7419 * math/w_log10f_compat.c: Likewise.
7420 * math/w_log10l_compat.c: Likewise.
7421 * math/w_log2_compat.c: Likewise.
7422 * math/w_log2f_compat.c: Likewise.
7423 * math/w_log2l_compat.c: Likewise.
7424 * math/w_log_compat.c: Likewise.
7425 * math/w_logf_compat.c: Likewise.
7426 * math/w_logl_compat.c: Likewise.
7427 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7428 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7429 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7430 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7431 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7432 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7433 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7434 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7435 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7436 * sysdeps/ieee754/k_standardl.c: Likewise.
7437 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7438 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7439 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7440 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7441 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7442 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7443 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7444 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7445 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7446 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7447 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7448 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7449 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7450 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7451 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7452 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7453 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7454 * math/w_ilogb_template.c: Include <fenv.h> instead of
7455 <fenv_private.h>.
7456 * math/w_llogb_template.c: Likewise.
7457 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7458 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7459
7460 2018-09-03 Joseph Myers <joseph@codesourcery.com>
7461
7462 * sysdeps/generic/math_private.h: Do not include <fenv_private.h>.
7463 * math/fromfp.h: Include <fenv_private.h>.
7464 * math/math-narrow.h: Likewise.
7465 * math/s_cexp_template.c: Likewise.
7466 * math/s_csin_template.c: Likewise.
7467 * math/s_csinh_template.c: Likewise.
7468 * math/s_ctan_template.c: Likewise.
7469 * math/s_ctanh_template.c: Likewise.
7470 * math/s_iseqsig_template.c: Likewise.
7471 * math/w_acos_compat.c: Likewise.
7472 * math/w_acosf_compat.c: Likewise.
7473 * math/w_acosl_compat.c: Likewise.
7474 * math/w_asin_compat.c: Likewise.
7475 * math/w_asinf_compat.c: Likewise.
7476 * math/w_asinl_compat.c: Likewise.
7477 * math/w_ilogb_template.c: Likewise.
7478 * math/w_j0_compat.c: Likewise.
7479 * math/w_j0f_compat.c: Likewise.
7480 * math/w_j0l_compat.c: Likewise.
7481 * math/w_j1_compat.c: Likewise.
7482 * math/w_j1f_compat.c: Likewise.
7483 * math/w_j1l_compat.c: Likewise.
7484 * math/w_jn_compat.c: Likewise.
7485 * math/w_jnf_compat.c: Likewise.
7486 * math/w_llogb_template.c: Likewise.
7487 * math/w_log10_compat.c: Likewise.
7488 * math/w_log10f_compat.c: Likewise.
7489 * math/w_log10l_compat.c: Likewise.
7490 * math/w_log2_compat.c: Likewise.
7491 * math/w_log2f_compat.c: Likewise.
7492 * math/w_log2l_compat.c: Likewise.
7493 * math/w_log_compat.c: Likewise.
7494 * math/w_logf_compat.c: Likewise.
7495 * math/w_logl_compat.c: Likewise.
7496 * sysdeps/aarch64/fpu/feholdexcpt.c: Likewise.
7497 * sysdeps/aarch64/fpu/fesetround.c: Likewise.
7498 * sysdeps/aarch64/fpu/fgetexcptflg.c: Likewise.
7499 * sysdeps/aarch64/fpu/ftestexcept.c: Likewise.
7500 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
7501 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
7502 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
7503 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
7504 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
7505 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
7506 * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
7507 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
7508 * sysdeps/ieee754/dbl-64/gamma_product.c: Likewise.
7509 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
7510 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
7511 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
7512 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
7513 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
7514 * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
7515 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
7516 * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
7517 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
7518 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
7519 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
7520 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
7521 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
7522 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
7523 * sysdeps/ieee754/dbl-64/x2y2m1.c: Likewise.
7524 * sysdeps/ieee754/float128/float128_private.h: Likewise.
7525 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
7526 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
7527 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7528 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
7529 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
7530 * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
7531 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
7532 * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
7533 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
7534 * sysdeps/ieee754/k_standardl.c: Likewise.
7535 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
7536 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
7537 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
7538 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7539 * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
7540 * sysdeps/ieee754/ldbl-128/lgamma_negl.c: Likewise.
7541 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
7542 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
7543 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
7544 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
7545 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
7546 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
7547 * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7548 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
7549 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
7550 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
7551 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7552 * sysdeps/ieee754/ldbl-128ibm/lgamma_negl.c: Likewise.
7553 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
7554 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
7555 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
7556 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
7557 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
7558 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
7559 * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7560 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7561 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7562 * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
7563 * sysdeps/ieee754/ldbl-96/lgamma_negl.c: Likewise.
7564 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
7565 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
7566 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7567 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7568 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7569 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7570 * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7571 * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7572 * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7573 * sysdeps/riscv/rv64/rvd/s_ceil.c: Likewise.
7574 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
7575 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
7576 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
7577 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
7578 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
7579 * sysdeps/riscv/rvd/s_finite.c: Likewise.
7580 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
7581 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
7582 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
7583 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
7584 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
7585 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
7586 * sysdeps/riscv/rvf/fegetround.c: Likewise.
7587 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
7588 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
7589 * sysdeps/riscv/rvf/fesetround.c: Likewise.
7590 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
7591 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
7592 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
7593 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
7594 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
7595 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
7596 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
7597 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
7598 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
7599 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
7600 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
7601 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
7602 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
7603 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
7604 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
7605 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
7606
7607 2018-08-31 Paul Pluzhnikov <ppluzhnikov@google.com>
7608
7609 [BZ #20271]
7610 * include/stdio.h (__libc_fatal): Mention newline in comment.
7611 * grp/initgroups.c (internal_getgrouplist): Add missing newline.
7612 * nptl/pthread_cond_wait.c (__pthread_cond_wait_common): Likewise.
7613 * nscd/initgrcache.c (addinitgroupsX): Likewise.
7614 * nss/nsswitch.c (__nss_next2): Likewise.
7615 * sysdeps/aarch64/dl-irel.h (elf_irela): Likewise.
7616 * sysdeps/arm/dl-irel.h (elf_irel): Likewise.
7617 * sysdeps/generic/unwind-dw2.c (execute_cfa_program): Likewise.
7618 * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
7619 * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irel): Likewise.
7620 * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irel): Likewise.
7621 * sysdeps/s390/dl-irel.h (elf_irel): Likewise.
7622 * sysdeps/sparc/sparc32/dl-irel.h (elf_irel): Likewise.
7623 * sysdeps/sparc/sparc64/dl-irel.h (elf_irel): Likewise.
7624 * sysdeps/x86_64/dl-irel.h (elf_irel): Likewise.
7625 * sysdeps/nptl/futex-internal.h (futex_wake): Likewise.
7626 * sysdeps/unix/sysv/linux/netlink_assert_response.c
7627 (__netlink_assert_response): Likewise.
7628
7629 2018-08-31 Joseph Myers <joseph@codesourcery.com>
7630
7631 * conform/glibcconform.py: New file.
7632 * conform/list-header-symbols.py: Likewise.
7633 * conform/list-header-symbols.pl: Remove.
7634 * conform/Makefile (tests-special): Only add linknamespace tests
7635 if [PYTHON].
7636 ($(linknamespace-symlists-tests)): Use list-header-symbols.py.
7637
7638 2018-08-31 H.J. Lu <hongjiu.lu@intel.com>
7639
7640 [BZ #23597]
7641 * support/Makefile (libsupport-routines): Add
7642 support_copy_file_range and xcopy_file_range.
7643 * support/support.h: Include <sys/types.h>.
7644 (support_copy_file_range): New prototype.
7645 * support/support_copy_file_range.c: New file. Copied and
7646 modified from io/copy_file_range-compat.c.
7647 * support/test-container.c (copy_one_file): Call xcopy_file_rang
7648 instead of copy_file_range.
7649 * support/xcopy_file_range.c: New file.
7650 * support/xunistd.h (xcopy_file_range): New prototype.
7651
7652 2018-08-30 Carlos O'Donell <carlos@redhat.com>
7653
7654 * elf/tst-dlopen-aout.c: Include support/xthread.h. Use
7655 xpthread_create and xpthread_join.
7656
7657 2018-08-30 Florian Weimer <fweimer@redhat.com>
7658
7659 * stdlib/stdlib.h (reallocarray): Make available under __USE_MISC.
7660
7661 2018-08-30 Stefan Liebler <stli@linux.ibm.com>
7662
7663 * stdlib/test-bz22786.c (do_test): Return EXIT_UNSUPPORTED
7664 if malloc fails.
7665
7666 2018-08-29 Joseph Myers <joseph@codesourcery.com>
7667
7668 * math/gen-libm-test.py (gen_test_args_res): Also treat plus_oflow
7669 and minus_oflow as non-finite.
7670
7671 2018-08-28 Joseph Myers <joseph@codesourcery.com>
7672
7673 * sysdeps/aarch64/fpu/fenv_private.h: New file. Based on ....
7674 * sysdeps/aarch64/fpu/math_private.h: ... this file. All contents
7675 moved to fenv_private.h except for ...
7676 (TOINT_INTRINSICS): Kept in math_private.h.
7677 (roundtoint): Likewise.
7678 (converttoint): Likewise.
7679 * sysdeps/arm/fenv_private.h: Change multiple-include guard to
7680 [ARM_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7681 * sysdeps/arm/math_private.h: Remove.
7682 * sysdeps/generic/fenv_private.h: New file. Contents moved from
7683 ....
7684 * sysdeps/generic/math_private.h: ... this file. Include
7685 <stdbool.h>. Do not include <fenv.h> or <get-rounding-mode.h>.
7686 Include <fenv_private.h>. Remove functions and macros moved to
7687 fenv_private.h.
7688 * sysdeps/i386/fpu/math_private.h: Remove.
7689 * sysdeps/mips/math_private.h: Move to ....
7690 * sysdeps/mips/fpu/fenv_private.h: ... here. Change
7691 multiple-include guard to [MIPS_FENV_PRIVATE_H]. Remove
7692 [__mips_hard_float] conditional. Include next <fenv_private.h>.
7693 * sysdeps/powerpc/fpu/fenv_private.h: Change multiple-include
7694 guard to [POWERPC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7695 * sysdeps/powerpc/fpu/math_private.h: Do not include
7696 <fenv_private.h>.
7697 * sysdeps/riscv/rvf/math_private.h: Move to ....
7698 * sysdeps/riscv/rvf/fenv_private.h: ... here. Change
7699 multiple-include guard to [RISCV_FENV_PRIVATE_H]. Include next
7700 <fenv_private.h>.
7701 * sysdeps/sparc/fpu/fenv_private.h: Change multiple-include guard
7702 to [SPARC_FENV_PRIVATE_H]. Include next <fenv_private.h>.
7703 * sysdeps/sparc/fpu/math_private.h: Remove.
7704 * sysdeps/i386/fpu/fenv_private.h: Move to ....
7705 * sysdeps/x86/fpu/fenv_private.h: ... here. Change
7706 multiple-include guard to [X86_FENV_PRIVATE_H]. Include next
7707 <fenv_private.h>.
7708 * sysdeps/x86_64/fpu/math_private.h: Do not include
7709 <sysdeps/i386/fpu/fenv_private.h>.
7710
7711 2018-08-28 Florian Weimer <fweimer@redhat.com>
7712
7713 [BZ #23578]
7714 * posix/tst-regcomp-truncated.c: New file.
7715 * posix/Makefile (tests): Add it.
7716 (tst-regcomp-truncated.out): Depend on generated locales.
7717
7718 2018-08-28 Florian Weimer <fweimer@redhat.com>
7719
7720 * support/test-container.c (main): Treat unshare failure with
7721 EPERM as an unsupported test.
7722
7723 2018-08-28 Florian Weimer <fweimer@redhat.com>
7724
7725 [BZ #23520]
7726 nscd: Fix use-after-free in addgetnetgrentX and its callers.
7727 * nscd/netgroupcache.c
7728 (addgetnetgrentX): Add tofreep parameter. Do not free
7729 heap-allocated buffer.
7730 (addinnetgrX): Free buffer allocated bt addgetnetgrentX.
7731 (addgetnetgrentX_ignore): New function.
7732 (addgetnetgrent): Call it.
7733 (readdgetnetgrent): Likewise.
7734
7735 2018-08-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7736
7737 * string/memmem.c: Use memcmp for first match.
7738
7739 2018-08-28 Rafal Luzynski <digitalfreak@lingonborough.com>
7740
7741 [BZ #17426]
7742 * localedata/locales/en_IN (d_fmt): Use "%d/%m/%y".
7743
7744 2018-08-27 DJ Delorie <dj@redhat.com>
7745
7746 * support/Makefile (others): Don't list programs explicitly as a
7747 dependency of "others".
7748
7749 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7750
7751 * sysdeps/generic/math-tests-trap-force.h: New file.
7752 * sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
7753 (EXCEPTION_SET_FORCES_TRAP): Do not define here.
7754 * sysdeps/powerpc/math-tests.h: Remove file.
7755 * sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
7756
7757 2018-08-27 Martin Kuchta <martin.kuchta@netapp.com>
7758 Torvald Riegel <triegel@redhat.com>
7759
7760 [BZ #23538]
7761 * nptl/pthread_cond_common.c (__condvar_quiesce_and_switch_g1):
7762 Update r to include the set wake-request flag if waiters are
7763 remaining after spinning.
7764
7765 2018-08-27 Joseph Myers <joseph@codesourcery.com>
7766
7767 * sysdeps/gnu/netinet/udp.h (UDP_SEGMENT): New macro.
7768
7769 2018-08-25 Paul Eggert <eggert@cs.ucla.edu>
7770
7771 [BZ #23578]
7772 regex: fix uninitialized memory access
7773 I introduced this bug into gnulib in commit
7774 8335a4d6c7b4448cd0bcb6d0bebf1d456bcfdb17 dated 2006-04-10;
7775 eventually it was merged into glibc. The bug was found by
7776 project-repo <bugs@feusi.co> and reported here:
7777 https://lists.gnu.org/r/sed-devel/2018-08/msg00017.html
7778 Diagnosis and draft fix reported by Assaf Gordon here:
7779 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00071.html
7780 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00142.html
7781 * posix/regex_internal.c (build_wcs_upper_buffer):
7782 Fix bug when mbrtowc returns 0.
7783
7784 2018-08-24 Carlos O'Donell <carlos@redhat.com>
7785
7786 * po/be.po: Update translation.
7787
7788 2018-08-24 DJ Delorie <dj@delorie.com>
7789
7790 * support/Makefile (LDLIBS-links-dso-program): Add -lgcc and
7791 $(libunwind).
7792
7793 2018-08-24 Paul Pluzhnikov <ppluzhnikov@google.com>
7794
7795 [BZ #23400]
7796 * stdlib/test-bz22786.c (do_test): Fix undefined behavior, don't
7797 create temporary files in source tree.
7798
7799 2018-08-24 Joseph Myers <joseph@codesourcery.com>
7800
7801 * sysdeps/generic/math-tests-trap.h: New file.
7802 * sysdeps/generic/math-tests.h: Include <math-tests-trap.h>.
7803 (EXCEPTION_ENABLE_SUPPORTED): Do not define here.
7804 * sysdeps/aarch64/math-tests.h: Remove file.
7805 * sysdeps/arm/math-tests.h: Likewise.
7806 * sysdeps/riscv/math-tests.h: Likewise.
7807 * sysdeps/aarch64/math-tests-trap.h: New file.
7808 * sysdeps/arm/math-tests-trap.h: Likewise.
7809 * sysdeps/riscv/math-tests-trap.h: Likewise.
7810
7811 2018-08-24 Wilco Dijkstra <wdijkstr@arm.com>
7812
7813 * math/Makefile: Remove empty files k_sin(f).c, k_cos(f).c.
7814 Remove unused files e_rem_pio2(f).c, k_rem_pio2f.c.
7815 * sysdeps/i386/fpu/e_rem_pio2.c: Delete file.
7816 * sysdeps/ia64/fpu/e_rem_pio2.c: Likewise.
7817 * sysdeps/ia64/fpu/e_rem_pio2f.c: Likewise.
7818 * sysdeps/ia64/fpu/k_rem_pio2f.c: Likewise.
7819 * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
7820 * sysdeps/ieee754/dbl-64/k_cos.c: Likewise.
7821 * sysdeps/ieee754/dbl-64/k_sin.c: Likewise.
7822 * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
7823 * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
7824 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
7825 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
7826 * sysdeps/m68k/m680x0/fpu/e_rem_pio2.c: Likewise
7827 * sysdeps/m68k/m680x0/fpu/e_rem_pio2f.c: Likewise
7828 * sysdeps/m68k/m680x0/fpu/k_rem_pio2f.c: Likewise
7829 * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7830 * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7831
7832 2018-08-23 Joseph Myers <joseph@codesourcery.com>
7833
7834 * sysdeps/generic/math-tests-exceptions.h: New file.
7835 * sysdeps/generic/math-tests.h: Include <math-tests-exceptions.h>.
7836 (EXCEPTION_TESTS_float): Do not define here.
7837 (EXCEPTION_TESTS_double): Likewise.
7838 (EXCEPTION_TESTS_long_double): Likewise.
7839 (EXCEPTION_TESTS_float128): Likewise.
7840 * sysdeps/arm/math-tests.h [__SOFTFP__] (EXCEPTION_TESTS_float):
7841 Likewise.
7842 [__SOFTFP__] (EXCEPTION_TESTS_double): Likewise.
7843 [__SOFTFP__] (EXCEPTION_TESTS_long_double): Likewise.
7844 * sysdeps/arm/nofpu/math-tests-exceptions.h: New file.
7845 * sysdeps/m68k/coldfire/math-tests.h: Remove file.
7846 * sysdeps/mips/math-tests.h: Likewise.
7847 * sysdeps/nios2/math-tests.h: Likewise.
7848 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7849 (EXCEPTION_TESTS_float): Do not define here.
7850 [!__riscv_flen] (EXCEPTION_TESTS_double): Likewise.
7851 [!__riscv_flen] (EXCEPTION_TESTS_long_double): Likewise.
7852 * sysdeps/riscv/nofpu/math-tests-exceptions.h: New file.
7853
7854 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7855
7856 * NEWS: Move optimized sinf entry to 2.29.
7857
7858 2018-08-23 Wilco Dijkstra <wdijkstr@arm.com>
7859
7860 * sysdeps/ieee754/flt-32/s_tanf.c (__tanf): Use fast range reduction.
7861
7862 2018-08-22 DJ Delorie <dj@redhat.com>
7863
7864 * Makefile (testroot.pristine): New rules to initialize the
7865 test-in-container "testroot".
7866 * Makerules (all-testsuite): Add tests-container.
7867 * Rules (tests-expected): Add tests-container.
7868 (binaries-all-tests): Likewise.
7869 (tests-container): New, run these tests in the testroot container.
7870 * support/Makefile (others): Add *-container, support_paths.c,
7871 xmkdirp, and links-dso-program.
7872 * support/links-dso-program-c.c: New.
7873 * support/links-dso-program.cc: New.
7874 * support/test-container.c: New.
7875 * support/shell-container.c: New.
7876 * support/echo-container.c: New.
7877 * support/true-container.c: New.
7878 * support/xmkdirp.c: New.
7879 * support/xsymlink.c: New.
7880 * support/support_paths.c: New.
7881 * support/support.h: Add support paths prototypes.
7882 * support/xunistd.h: Add xmkdirp () and xsymlink ().
7883
7884 * nss/tst-nss-test3.c: Convert to test-in-container.
7885 * nss/tst-nss-test3.root/: New.
7886
7887 2018-08-22 Paul Eggert <eggert@cs.ucla.edu>
7888
7889 regex: port Gnulib code to z/OS POSIX environment
7890 Problem reported by Arnold Robbins in:
7891 https://lists.gnu.org/r/bug-gnulib/2018-08/msg00129.html
7892 * posix/regex_internal.h (__iswalnum, __towlower, __towupper) [!_LIBC]:
7893 Undef.
7894
7895 2018-08-22 Joseph Myers <joseph@codesourcery.com>
7896
7897 * math/test-double-vlen2.h: Don't include <math-tests-rounding.h>.
7898 (ROUNDING_TESTS_double): Remove.
7899 * math/test-double-vlen4.h: Don't include <math-tests-rounding.h>.
7900 (ROUNDING_TESTS_double): Remove.
7901 * math/test-double-vlen8.h: Don't include <math-tests-rounding.h>.
7902 (ROUNDING_TESTS_double): Remove.
7903 * math/test-float-vlen16.h: Don't include <math-tests-rounding.h>.
7904 (ROUNDING_TESTS_float): Remove.
7905 * math/test-float-vlen4.h: Don't include <math-tests-rounding.h>.
7906 (ROUNDING_TESTS_float): Remove.
7907 * math/test-float-vlen8.h: Don't include <math-tests-rounding.h>.
7908 (ROUNDING_TESTS_float): Remove.
7909 * math/libm-test-driver.c (IF_ROUND_INIT_FE_DOWNWARD): Check
7910 !TEST_MATHVEC here.
7911 (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
7912 (IF_ROUND_INIT_FE_UPWARD): Likewise.
7913
7914 * sysdeps/generic/math-tests-rounding.h: New file.
7915 * sysdeps/generic/math-tests.h: Include <math-tests-rounding.h>.
7916 (ROUNDING_TESTS_float): Do not define here.
7917 (ROUNDING_TESTS_double): Likewise.
7918 (ROUNDING_TESTS_long_double): Likewise.
7919 (ROUNDING_TESTS_float128): Likewise.
7920 * math/test-double-vlen2.h: Include <math-tests-rounding.h>.
7921 (ROUNDING_TESTS_double): Undefine before defining.
7922 * math/test-double-vlen4.h: Include <math-tests-rounding.h>.
7923 (ROUNDING_TESTS_double): Undefine before defining.
7924 * math/test-double-vlen8.h: Include <math-tests-rounding.h>.
7925 (ROUNDING_TESTS_double): Undefine before defining.
7926 * math/test-float-vlen16.h: Include <math-tests-rounding.h>.
7927 (ROUNDING_TESTS_float): Undefine before defining.
7928 * math/test-float-vlen4.h: Include <math-tests-rounding.h>.
7929 (ROUNDING_TESTS_float): Undefine before defining.
7930 * math/test-float-vlen8.h: Include <math-tests-rounding.h>.
7931 (ROUNDING_TESTS_float): Undefine before defining.
7932 * sysdeps/arm/nofpu/math-tests-rounding.h: New file.
7933 * sysdeps/arm/math-tests.h [__SOFTFP__] (ROUNDING_TESTS_float): Do
7934 not define here.
7935 [__SOFTFP__] (ROUNDING_TESTS_double): Likewise.
7936 [__SOFTFP__] (ROUNDING_TESTS_long_double): Likewise.
7937 * sysdeps/riscv/nofpu/math-tests-rounding.h: New file.
7938 * sysdeps/riscv/math-tests.h [!__riscv_flen]
7939 (ROUNDING_TESTS_float): Do not define here.
7940 [!__riscv_flen] (ROUNDING_TESTS_double): Likewise.
7941 [!__risv_flen] (ROUNDING_TESTS_long_double): Likewise.
7942 * sysdeps/m68k/coldfire/math-tests.h [!__mcffpu__]
7943 (ROUNDING_TESTS_float): Likewise.
7944 [!__mcffpu__] (ROUNDING_TESTS_double): Likewise.
7945 [!__mcffpu__] (ROUNDING_TESTS_long_double): Likewise.
7946 * sysdeps/mips/math-tests.h [__mips_soft_float]
7947 (ROUNDING_TESTS_float): Likewise.
7948 [__mips_soft_float] (ROUNDING_TESTS_double): Likewise.
7949 [__mips_soft_float] (ROUNDING_TESTS_long_double): Likewise.
7950 * sysdeps/nios2/math-tests.h (ROUNDING_TESTS_float): Likewise.
7951 (ROUNDING_TESTS_double): Likewise.
7952 (ROUNDING_TESTS_long_double): Likewise.
7953
7954 2018-08-21 Tobias Klauser <tklauser@distanz.ch>
7955
7956 * sysdeps/unix/sysv/linux/bits/socket.h (PF_MAX): Set to 45.
7957 (PF_XDP): New macro.
7958 (AF_XDP): New macro.
7959 (SOL_XDP): New macro.
7960
7961 2018-08-21 Joseph Myers <joseph@codesourcery.com>
7962
7963 * sysdeps/gnu/netinet/tcp.h (TCP_ZEROCOPY_RECEIVE): New macro.
7964 (TCP_INQ): Likewise.
7965 (TCP_CM_INQ): Likewise.
7966 (TCP_REPAIR_ON): Likewise.
7967 (TCP_REPAIR_OFF): Likewise.
7968 (TCP_REPAIR_OFF_NO_WP): Likewise.
7969 (struct tcp_zerocopy_receive): New type.
7970
7971 2018-08-21 Florian Weimer <fweimer@redhat.com>
7972
7973 * support/support.h (support_descriptor_supports_holes): Declare.
7974 * support/Makefile (libsupport-routines): Add
7975 support_descriptor_supports_holes.
7976 * support/support_descriptor_supports_holes.c: New file.
7977 * io/tst-copy_file_range.c: Call support_descriptor_supports_holes
7978 and stop testing if holes are not supported.
7979 * io/test-lfs.c (do_prepare): Likewise.
7980 * sysdeps/unix/sysv/linux/tst-fallocate-common.c (do_prepare):
7981 Likewise.
7982 * timezone/tst-tzset.c (create_tz_file): Likewise.
7983 * misc/tst-preadvwritev-common.c (temp_fd_supports_holes) New
7984 variable.
7985 (do_prepare): Set it.
7986 * misc/tst-preadvwritev64.c (do_test): Use temp_fd_supports_holes.
7987
7988 2018-08-21 Florian Weimer <fweimer@redhat.com>
7989
7990 [BZ #17248]
7991 * Makeconfig (+cflags): Do not sort (and deduplicate).
7992
7993 2018-08-21 Florian Weimer <fweimer@redhat.com>
7994
7995 * debug/readlink_chk.c (__readlink_chk): Always call __readlink.
7996 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove file.
7997
7998 2018-08-20 Florian Weimer <fweimer@redhat.com>
7999
8000 * sysdeps/unix/sysv/linux/generic/readlink_chk.c: Remove
8001 HAVE_INLINED_SYSCALLS conditionals. Use INLINE_SYSCALL_CALL.
8002
8003 2018-08-20 Joseph Myers <joseph@codesourcery.com>
8004
8005 * sysdeps/unix/sysv/linux/sys/signalfd.h (struct
8006 signalfd_siginfo): Add ssi_addr_lsb, ssi_syscall, ssi_call_addr
8007 and ssi_arch members.
8008
8009 * elf/elf.c (NT_VMCOREDD): New macro.
8010 (AT_MINSIGSTKSZ): Likewise.
8011
8012 2018-08-20 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8013
8014 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile
8015 (libm-sysdep_routines): Remove s_sinf-ppc64, s_sinf-power8,
8016 s_cosf-ppc64 and s_cosf-power8.
8017 * sysdeps/powerpc/fpu/s_cosf.c: Remove file.
8018 * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
8019 * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
8020 * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
8021 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
8022 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
8023 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Likewise.
8024 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
8025 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
8026 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Likewise.
8027 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Likewise.
8028 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Likewise.
8029
8030 2018-08-17 Florian Weimer <fweimer@redhat.com>
8031
8032 * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8033
8034 2018-08-17 Istvan Kurucsai <pistukem@gmail.com>
8035
8036 * malloc/malloc.c (_int_malloc): Additional binning code checks.
8037
8038 2018-08-16 Florian Weimer <fweimer@redhat.com>
8039
8040 * configure.ac: Add --with-nonshared-cflags option.
8041 * config.make.in (extra-nonshared-cflags): Set variable.
8042 * Makeconfig (CFLAGS-.oS): Use it.
8043 * manual/install.texi (Configuring and compiling): Document
8044 --with-nonshared-cflags.
8045 * configure: Regenerate.
8046 * INSTALL: Likewise.
8047
8048 2018-08-16 Florian Weimer <fweimer@redhat.com>
8049
8050 * Makeconfig (ASFLAGS): Always append required assembler flags.
8051
8052 2018-08-16 Moritz Eckert <m.eckert@cs.ucsb.edu>
8053
8054 * malloc/malloc.c (_int_free): Check for corrupt prev_size vs size.
8055 (malloc_consolidate): Likewise.
8056
8057 2018-08-16 Pochang Chen <johnchen902@gmail.com>
8058
8059 * malloc/malloc.c (_int_malloc.c): Verify size of top chunk.
8060
8061 2018-08-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
8062
8063 * benchtests/bench-strlen.c (do_test): Allocate buffers before
8064 every strlen call.
8065
8066 * benchtests/bench-strlen.c: Print performance numbers in json.
8067
8068 2018-08-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8069
8070 * sysdeps/powerpc/powerpc64/multiarch/Makefile
8071 (sysdep_routines): Build strcmp-power9 and strncmp-power9
8072 only for little endian.
8073 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
8074 (strncmp): Move __strncmp_power9 inside ifdef __LITTLE_ENDIAN__.
8075 (STRCMP): Move __strcmp_power9 inside ifdef __LITTLE_ENDIAN__.
8076 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S:
8077 Add check for little endian.
8078 * sysdeps/powerpc/powerpc64/multiarch/strcmp.c
8079 (__strcmp_power9): Add check for little endian.
8080 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S:
8081 Add check for little endian.
8082 * sysdeps/powerpc/powerpc64/multiarch/strncmp.c
8083 (__strncmp_power9): Add check for little endian.
8084 * sysdeps/powerpc/powerpc64/power9/strcmp.S: Removed ifdef
8085 __LITTLE_ENDIAN__ and moved to sysdeps/powerpc/powerpc64/le/power9.
8086 * sysdeps/powerpc/powerpc64/power9/strncmp.S: Likewise.
8087 * sysdeps/powerpc/powerpc64/le/power9/strcmp.S: New file.
8088 * sysdeps/powerpc/powerpc64/le/power9/strncmp.S: Likewise.
8089
8090 2018-08-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
8091
8092 * sysdeps/aarch64/strlen.S (__strlen): Rename to STRLEN.
8093 [!STRLEN](STRLEN): Set to __strlen.
8094 * sysdeps/aarch64/multiarch/strlen.c: New file.
8095 * sysdeps/aarch64/multiarch/strlen_generic.S: Likewise.
8096 * sysdeps/aarch64/multiarch/strlen_asimd.S: Likewise.
8097 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
8098 (__libc_ifunc_impl_list): Add strlen.
8099 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
8100 strlen_generic and strlen_asimd.
8101
8102 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8103
8104 * sysdeps/ieee754/flt-32/e_lgammaf_r.c (sin_pif): Use __sinf/__cosf.
8105 * sysdeps/ieee754/flt-32/k_cosf.c (__kernel_cosf): Remove all code.
8106 * sysdeps/ieee754/flt-32/k_sinf.c (__kernel_sinf): Likewise.
8107
8108 2018-08-15 Wilco Dijkstra <wdijkstr@arm.com>
8109
8110 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate to fix spaces.
8111
8112 2018-08-14 Florian Weimer <fweimer@redhat.com>
8113
8114 [BZ #23519]
8115 * include/stdio.h (__vfxprintf): Declare.
8116 * stdio-common/fxprintf.c (__vfxprintf): New function.
8117 (__fxprintf): Call it.
8118 * misc/err.c (convert_and_print): Remove function.
8119 (vwarnx, vwarn): Call __fxprintf and __vfxprintf.
8120 * misc/error.c [_LIBC] (error_tail): Call __vfxprintf.
8121 * misc/Makefile (tests): Add tst-warn-wide.
8122 * misc/tst-warn-wide.c: New file.
8123
8124 2018-08-14 Wilco Dijkstra <wdijkstr@arm.com>
8125 Szabolcs Nagy <szabolcs.nagy@arm.com>
8126
8127 * NEWS: Mention sinf, cosf, sincosf.
8128 * sysdeps/aarch64/libm-test-ulps: Update ULP for sinf, cosf, sincosf.
8129 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sinf and cosf.
8130 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: Add definitions of
8131 constants rather than including generic sincosf.h.
8132 * sysdeps/x86_64/fpu/s_sincosf_data.c: Remove.
8133 * sysdeps/ieee754/flt-32/s_cosf.c (cosf): Rewrite.
8134 * sysdeps/ieee754/flt-32/s_sincosf.h (reduced_sin): Remove.
8135 (reduced_cos): Remove.
8136 (sinf_poly): New function.
8137 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Rewrite.
8138
8139 2018-08-14 Florian Weimer <fweimer@redhat.com>
8140
8141 [BZ #23521]
8142 [BZ #23522]
8143 * nss/nss_files/files-alias.c (get_next_alias): During :include:
8144 processing, bail out if no room, and close the stream before
8145 returning ERANGE.
8146 * nss/Makefile (tests): Add tst-nss-files-alias-leak.
8147 (tst-nss-files-alias-leak): Link with libdl.
8148 (tst-nss-files-alias-leak.out): Depend on nss_files.
8149
8150 * nss/tst-nss-files-alias-leak.c: New file.
8151
8152 2018-08-14 Florian Weimer <fweimer@redhat.com>
8153
8154 * nscd/nscd_conf.c (nscd_parse_file): Deallocate old storage for
8155 server_user, stat_user.
8156
8157 2018-08-13 Joseph Myers <joseph@codesourcery.com>
8158
8159 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
8160 version to 4.18.
8161 (io_pgetevents): New syscall.
8162 (rseq): Likewise.
8163
8164 * manual/install.texi (Configuring and compiling): Do not list
8165 tools used for testing pretty printers here.
8166 (Tools for Compilation): List Python, PExpect and GDB here.
8167 Update descriptions of uses of Perl and Python.
8168 * INSTALL: Regenerate.
8169
8170 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
8171 version to 4.18.
8172
8173 2018-08-13 Florian Weimer <fweimer@redhat.com>
8174
8175 * misc/error.c (error): Add missing va_end call.
8176 (error_at_line): Likewise.
8177
8178 2018-08-13 Florian Weimer <fweimer@redhat.com>
8179
8180 * stdlib/mbstowcs.c (mbstowcs): Remove outdated comment.
8181
8182 2018-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
8183
8184 * benchtests/scripts/benchout.schema.json (properties): Add
8185 new properties.
8186
8187 * benchtests/bench-skeleton.c (main): Add duration and
8188 iterations attributes.
8189
8190 2018-08-10 Paul Eggert <eggert@cs.ucla.edu>
8191
8192 regex: Gnulib unibyte RRI uses bytes not chars
8193 Adjust the non-glibc code to agree with what Gawk needs for
8194 rational range interpretation (RRI) for regular expression ranges.
8195 In unibyte locales, Gawk wants ranges to use the underlying byte
8196 rather than the character code point. This change does not affect
8197 glibc proper.
8198 * posix/regcomp.c (parse_byte) [!LIBC && RE_ENABLE_I18N]:
8199 In unibyte locales, use the byte value rather than
8200 running it through btowc.
8201
8202 2018-08-10 Joseph Myers <joseph@codesourcery.com>
8203
8204 * sysdeps/generic/math-tests-snan.h: New file.
8205 * sysdeps/generic/math-tests.h: Include <math-tests-snan.h>.
8206 (SNAN_TESTS_float): Do not define here.
8207 (SNAN_TESTS_double): Likewise.
8208 (SNAN_TESTS_long_double): Likewise.
8209 (SNAN_TESTS_float128): Likewise.
8210 * sysdeps/i386/fpu/math-tests-snan.h: New file.
8211 * sysdeps/i386/fpu/math-tests.h: Remove file.
8212 * sysdeps/ia64/math-tests-snan.h: New file.
8213 * sysdeps/ia64/math-tests.h: Remove file.
8214 * sysdeps/x86/math-tests.h: Likewise.
8215 * sysdeps/x86_64/fpu/math-tests-snan.h: New file.
8216
8217 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8218 Szabolcs Nagy <szabolcs.nagy@arm.com>
8219
8220 * math/Makefile: Add s_sincosf_data.c.
8221 * sysdeps/ia64/fpu/s_sincosf_data.c: New file.
8222 * sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
8223 (sincosf_poly): Likewise.
8224 (reduce_small): Likewise.
8225 (reduce_large): Likewise.
8226 * sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
8227 * sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
8228 * sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
8229 * sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
8230
8231 2018-08-10 Wilco Dijkstra <wdijkstr@arm.com>
8232 Szabolcs Nagy <szabolcs.nagy@arm.com>
8233
8234 * sysdeps/aarch64/fpu/math_private.h (roundtoint): Use round.
8235 (converttoint): Use lround.
8236 * sysdeps/ieee754/flt-32/math_config.h (roundtoint): Declare and
8237 document the semantics when TOINT_INTRINSICS is set.
8238 (converttoint): Likewise.
8239 (TOINT_RINT): Remove.
8240 (TOINT_SHIFT): Remove.
8241 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Remove the TOINT_RINT code
8242 path.
8243
8244 2018-08-10 Florian Weimer <fweimer@redhat.com>
8245
8246 [BZ #23497]
8247 * sysdeps/unix/sysv/linux/getdents64.c (handle_overflow): New
8248 function.
8249 (__old_getdents64): Use getdents64. Convert entries without
8250 moving them.
8251 * sysdeps/unix/sysv/linux/tst-readdir64-compat.c: New file.
8252 * sysdeps/unix/sysv/linux/Makefile (tests-internal): Add
8253 tst-readdir64-compat.
8254
8255 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8256
8257 * sysdeps/s390/s390-32/s390-mcount.S (_mcount):
8258 Fix unwind.
8259
8260 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8261
8262 * sysdeps/s390/s390-64/Versions (__fentry__): Add.
8263 * sysdeps/s390/s390-64/s390x-mcount.S: Move the common
8264 code to s390x-mcount.h and #include it.
8265 * sysdeps/s390/s390-64/s390x-mcount.h: New file.
8266 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist
8267 (__fentry__): Add.
8268
8269 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8270
8271 * stdlib/Versions: Remove __fentry__.
8272 * sysdeps/i386/Versions: Add __fentry__.
8273 * sysdeps/x86_64/Versions: Add __fentry__.
8274
8275 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8276
8277 * sysdeps/s390/Makefile: Register the new tests.
8278 * sysdeps/s390/tst-dl-runtime-mod.S: New file.
8279 * sysdeps/s390/tst-dl-runtime-profile-audit.c: New file.
8280 * sysdeps/s390/tst-dl-runtime-profile-noaudit.c: New file.
8281 * sysdeps/s390/tst-dl-runtime-resolve-audit.c: New file.
8282 * sysdeps/s390/tst-dl-runtime-resolve-noaudit.c: New file.
8283 * sysdeps/s390/tst-dl-runtime.c: New file.
8284
8285 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8286
8287 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8288 Do not clobber R0.
8289
8290 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8291
8292 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8293 Do not clobber R0.
8294
8295 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8296
8297 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8298 Do not clobber R0.
8299
8300 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8301
8302 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8303 Do not clobber R0.
8304
8305 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8306
8307 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_profile):
8308 Use symbolic offsets for stack variables.
8309
8310 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8311
8312 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
8313 Use symbolic offsets for stack variables.
8314
8315 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8316
8317 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_profile):
8318 Use symbolic offsets for stack variables.
8319
8320 2018-08-10 Ilya Leoshkevich <iii@linux.ibm.com>
8321
8322 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
8323 Use symbolic offsets for stack variables.
8324
8325 2018-08-09 Joseph Myers <joseph@codesourcery.com>
8326
8327 * math/gen-libm-test.py: New file.
8328 * math/gen-libm-test.pl: Remove.
8329 * math/Makefile [$(PERL) != no]: Change condition to [PYTHON].
8330 ($(objpfx)libm-test-ulps.h): Use gen-libm-test.py instead of
8331 gen-libm-test.pl.
8332 ($(libm-test-c-noauto-obj)): Likewise.
8333 ($(libm-test-c-auto-obj)): Likewise.
8334 ($(libm-test-c-narrow-obj)): Likewise.
8335 (regen-ulps): Likewise.
8336 * math/README.libm-test: Update references to gen-libm-test.pl.
8337 * math/libm-test-driver.c (struct test_fj_f_data): Update comment
8338 referencing gen-libm-test.pl.
8339 * math/libm-test-nexttoward.inc (nexttoward_test_data): Likewise.
8340 * math/libm-test-support.c: Likewise.
8341 * math/libm-test-support.h: Likewise.
8342 * sysdeps/generic/libm-test-ulps: Likewise.
8343
8344 2018-08-08 Siddhesh Poyarekar <siddhesh@sourceware.org>
8345
8346 * sysdeps/aarch64/strlen.S [TEST_PAGE_CROSS](MIN_PAGE_SIZE):
8347 Fix value.
8348
8349 2018-08-08 Joseph Myers <joseph@codesourcery.com>
8350
8351 * math/libm-test-nextdown.inc (do_test): Move comment to ....
8352 * math/libm-test-nexttoward.inc (nexttoward_test_data): ... here.
8353
8354 2018-08-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
8355
8356 * htl/Versions (__pthread_getspecific, __pthread_setspecific): Add
8357 symbols.
8358 * sysdeps/htl/pthreadP.h [IS_IN (libpthread)] (__pthread_getspecific,
8359 __pthread_setspecific): Add hidden proto.
8360 * sysdeps/htl/pt-getspecific.c (__pthread_getspecific): Add hidden def.
8361 * sysdeps/htl/pt-setspecific.c (__pthread_setspecific): Add hidden def.
8362
8363 2018-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
8364
8365 * benchtests/bench-string.h (buf1_size, buf2_size): New
8366 variables.
8367 (init_sizes): New function.
8368 (test_init): Use it.
8369 (alloc_buf, exit_error): New functions.
8370 (alloc_bufs): Use ALLOC_BUF.
8371 (realloc_bufs): Remove.
8372 * benchtests/bench-memcmp.c (do_test): Adjust.
8373 * benchtests/bench-memset-large.c (do_test): Likewise.
8374 * benchtests/bench-memset-walk.c (do_test): Likewise.
8375 * benchtests/bench-memset.c (do_test): Likewise.
8376 * benchtests/bench-strncmp.c (do_test): Likewise.
8377
8378 2018-08-06 Andreas Schwab <schwab@suse.de>
8379
8380 * sysdeps/riscv/nptl/tls.h (DB_THREAD_SELF): Use REGISTER instead
8381 of CONST_THREAD_AREA.
8382
8383 2018-08-06 H.J. Lu <hongjiu.lu@intel.com>
8384
8385 * sysdeps/x86/cpu-features.h (STATE_SAVE_OFFSET): Removed.
8386 (STATE_SAVE_MASK): Likewise.
8387 Don't check __ASSEMBLER__ to include <cpu-features-offsets.h>.
8388 * sysdeps/x86/sysdep.h (STATE_SAVE_OFFSET): New.
8389 (STATE_SAVE_MASK): Likewise.
8390 * sysdeps/x86_64/dl-trampoline.S: Include <cpu-features-offsets.h>
8391 instead of <cpu-features.h>.
8392
8393 2018-08-03 DJ Delorie <dj@redhat.com>
8394
8395 * sysdeps/riscv/rvf/math_private.h (libc_feholdexcept_setround_riscv):
8396 Move libc_fesetround_riscv after libc_feholdexcept_riscv.
8397
8398 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Update.
8399
8400 2018-08-03 Joseph Myers <joseph@codesourcery.com>
8401
8402 * math/libm-test-ilogb.inc (ilogb_test_data): Use ',' not ';'
8403 after TEST_* calls.
8404 * math/libm-test-llogb.inc (llogb_test_data): Likewise.
8405 * math/libm-test-logb.inc (logb_test_data): Likewise.
8406
8407 2018-08-03 Wilco Dijkstra <wdijkstr@arm.com>
8408
8409 * string/strcasestr.c (STRCASESTR): Simplify and speedup first match.
8410 * string/strstr.c (AVAILABLE): Likewise.
8411
8412 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8413
8414 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Don't include
8415 <init-arch.h>.
8416 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: Likewise.
8417 * sysdeps/x86_64/fpu/multiarch/svml_s_expf16_core-avx2.S: Likewise.
8418 * sysdeps/x86_64/multiarch/memset-sse2-unaligned-erms.S: Likewise.
8419
8420 2018-08-03 Carlos O'Donell <carlos@redhat.com>
8421
8422 * po/be.po: Update translation.
8423
8424 * po/be.po: Update translation.
8425
8426 2018-08-03 H.J. Lu <hongjiu.lu@intel.com>
8427
8428 * sysdeps/x86/cpu-features-offsets.sym
8429 (rtld_global_ro_offsetof): Removed.
8430 (CPU_FEATURES_SIZE): Likewise.
8431 (CPUID_OFFSET): Likewise.
8432 (CPUID_SIZE): Likewise.
8433 (CPUID_EAX_OFFSET): Likewise.
8434 (CPUID_EBX_OFFSET): Likewise.
8435 (CPUID_ECX_OFFSET): Likewise.
8436 (CPUID_EDX_OFFSET): Likewise.
8437 (FAMILY_OFFSET): Likewise.
8438 (MODEL_OFFSET): Likewise.
8439 (FEATURE_OFFSET): Likewise.
8440 (FEATURE_SIZ): Likewise.
8441 (COMMON_CPUID_INDEX_1): Likewise.
8442 (COMMON_CPUID_INDEX_7): Likewise.
8443 (FEATURE_INDEX_1): Likewise.
8444 (RTLD_GLOBAL_RO_DL_X86_CPU_FEATURES_OFFSET): Updated.
8445
8446 2018-08-02 Carlos O'Donell <carlos@redhat.com>
8447
8448 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Remove.
8449 (INSTALL-SUPPORTED-LOCALE-ARCHIVE): Define.
8450 (INSTALL-SUPPORTED-LOCALE-FILES): Define.
8451 (install-locales): Depend on install-locale-archive.
8452 (install-locale-archive): Define.
8453 (install-locale-files): Define.
8454 (build-one-locale): Define macro.
8455 * manual/install.texi (Running make install): Document.
8456 * manual/INSTALL: Regenerate.
8457
8458 2018-08-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
8459
8460 * benchtests/scripts/compare_strings.py: Import traceback.
8461 (parse_file): Pretty-print error.
8462
8463 * NEWS: Mention the change.
8464 * elf/dl-tunables.list: Rename tune namespace to cpu.
8465 * sysdeps/powerpc/dl-tunables.list: Likewise.
8466 * sysdeps/x86/dl-tunables.list: Likewise.
8467 * sysdeps/aarch64/dl-tunables.list: Rename tune.cpu to
8468 cpu.name.
8469 * elf/dl-hwcaps.c (_dl_important_hwcaps): Adjust.
8470 * elf/dl-hwcaps.h (GET_HWCAP_MASK): Likewise.
8471 * manual/README.tunables: Likewise.
8472 * manual/tunables.texi: Likewise.
8473 * sysdeps/powerpc/cpu-features.c: Likewise.
8474 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
8475 (init_cpu_features): Likewise.
8476 * sysdeps/x86/cpu-features.c: Likewise.
8477 * sysdeps/x86/cpu-features.h: Likewise.
8478 * sysdeps/x86/cpu-tunables.c: Likewise.
8479 * sysdeps/x86_64/Makefile: Likewise.
8480 * sysdeps/x86/dl-cet.c: Likewise.
8481
8482 2018-08-02 Joseph Myers <joseph@codesourcery.com>
8483
8484 [BZ #23479]
8485 * sysdeps/mips/bits/fenv.h (FE_INEXACT): Define only if
8486 [__mips_hard_float].
8487 (FE_UNDERFLOW): Likewise.
8488 (FE_OVERFLOW): Likewise.
8489 (FE_DIVBYZERO): Likewise.
8490 (FE_INVALID): Likewise.
8491 (FE_ALL_EXCEPT): Define to 0 if [!__mips_hard_float].
8492 (FE_TOWARDZERO): Define only if [__mips_hard_float].
8493 (FE_UPWARD): Likewise.
8494 (FE_DOWNWARD): Likewise.
8495 (__FE_UNDEFINED): Define if [!__mips_hard_float]
8496 (FE_NOMASK_ENV): Define only if [__mips_hard_float].
8497 * sysdeps/mips/mips64/sfp-machine.h (_FP_DECL_EX): Define only if
8498 [__mips_hard_float].
8499 (FP_ROUNDMODE): Likewise.
8500 (FP_RND_NEAREST): Likewise.
8501 (FP_RND_ZERO): Likewise.
8502 (FP_RND_PINF): Likewise.
8503 (FP_RND_MINF): Likewise.
8504 (FP_EX_INVALID): Likewise.
8505 (FP_EX_OVERFLOW): Likewise.
8506 (FP_EX_UNDERFLOW): Likewise.
8507 (FP_EX_DIVZERO): Likewise.
8508 (FP_EX_INEXACT): Likewise.
8509 (FP_INIT_ROUNDMODE): Likewise.
8510 * sysdeps/mips/nofpu/fesetenv.c: New file.
8511 * sysdeps/mips/nofpu/feupdateenv.c: Likewise.
8512
8513 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8514
8515 * math/test-misc.c (do_test) [LDBL_MANT_DIG > DBL_MANT_DIG]: Make
8516 code using FE_UNDERFLOW conditional on [FE_UNDERFLOW], code using
8517 FE_OVERFLOW conditional on [FE_OVERFLOW] and code using FE_UPWARD
8518 conditional on [FE_UPWARD].
8519
8520 2018-08-01 Paul Eggert <eggert@cs.ucla.edu>
8521
8522 regex: fix memory leak in Gnulib
8523 Problem and fix reported by Assaf Gordon in:
8524 https://lists.gnu.org/r/bug-gnulib/2018-07/txtqLKNwBdefE.txt
8525 * posix/regcomp.c (free_charset) [!_LIBC]: Free range_starts and
8526 range_ends members too, as they are defined in 'struct
8527 re_charset_t' even if not _LIBC. This affects only Gnulib.
8528
8529 2018-08-01 H.J. Lu <hongjiu.lu@intel.com>
8530
8531 * sysdeps/x86/cpu-features.c (get_common_indeces): Renamed to
8532 ...
8533 (get_common_indices): This.
8534 (init_cpu_features): Updated.
8535
8536 2018-08-01 Joseph Myers <joseph@codesourcery.com>
8537
8538 * sysdeps/generic/math-tests-snan-payload.h: New file.
8539 * sysdeps/hppa/math-tests-snan-payload.h: Likewise.
8540 * sysdeps/mips/math-tests-snan-payload.h: Likewise.
8541 * sysdeps/riscv/math-tests-snan-payload.h: Likewise.
8542 * sysdeps/generic/math-tests.h: Include
8543 <math-tests-snan-payload.h>.
8544 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8545 * sysdeps/hppa/math-tests.h: Remove file.
8546 * sysdeps/mips/math-tests.h [!__mips_nan2008]
8547 (SNAN_TESTS_PRESERVE_PAYLOAD): Do not define macro here.
8548 * sysdeps/riscv/math-tests.h (SNAN_TESTS_PRESERVE_PAYLOAD):
8549 Likewise.
8550
8551 * sysdeps/generic/math-tests-snan-cast.h: New file.
8552 * sysdeps/powerpc/math-tests-snan-cast.h: Likewise.
8553 * sysdeps/generic/math-tests.h: Include <math-tests-snan-cast.h>.
8554 (SNAN_TESTS_TYPE_CAST): Do not define macro here.
8555 * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Likewise.
8556
8557 2018-08-01 Carlos O'Donel <carlos@redhat.com>
8558
8559 * version.h (RELEASE): Set to "development".
8560 (VERSION): Set to "2.28.9000".
8561 * NEWS (2.29): New section.
8562
8563 * version.h (RELEASE): Set to "stable".
8564 (VERSION): Set to "2.28".
8565 * include/features.h (__GLIBC_MINOR__): Set to 2.28.
8566 * NEWS: Add the list of bugs fixed in 2.28.
8567
8568 * po/ca.po: Update to latest version.
8569 * po/cs.po: Likewise
8570 * po/da.po: Likewise
8571 * po/el.po: Likewise
8572 * po/eo.po: Likewise
8573 * po/es.po: Likewise
8574 * po/fi.po: Likewise
8575 * po/fr.po: Likewise
8576 * po/gl.po: Likewise
8577 * po/hu.po: Likewise
8578 * po/ia.po: Likewise
8579 * po/id.po: Likewise
8580 * po/it.po: Likewise
8581 * po/ja.po: Likewise
8582 * po/ko.po: Likewise
8583 * po/lt.po: Likewise
8584 * po/nb.po: Likewise
8585 * po/nl.po: Likewise
8586 * po/pt_BR.po: Likewise
8587 * po/ru.po: Likewise
8588 * po/rw.po: Likewise
8589 * po/sk.po: Likewise
8590 * po/sl.po: Likewise
8591 * po/tr.po: Likewise
8592 * po/zh_CN.po: Likewise
8593 * po/zh_TW.po: Likewise
8594
8595 2018-07-31 Samuel Thibault <samuel.thibault@ens-lyon.org>
8596
8597 * sysdeps/mach/hurd/i386/init-first.c (init1): Move ELF hdr and TLS
8598 initialization...
8599 (init): ... before initializing libpthread.
8600
8601 * mach/mach.h (__mach_setup_tls, mach_setup_tls): Add prototypes.
8602 * mach/setup-thread.c (__mach_setup_thread): Move TLS setup to...
8603 (__mach_setup_tls): ... new function.
8604 (mach_setup_tls): New alias.
8605 * hurd/hurdsig.c (_hurdsig_init): Call __mach_setup_tls after
8606 __mach_setup_thread.
8607 * sysdeps/mach/hurd/profil.c (update_waiter): Likewise.
8608 * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Likewise.
8609 * mach/Versions [libc] (mach_setup_tls): Add symbol.
8610 * sysdeps/mach/hurd/i386/libc.abilist (mach_setup_tls): Likewise.
8611
8612 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8613
8614 * manual/install.texi: Update versions.
8615 * INSTALL: Regenerate.
8616
8617 * manual/contrib.texi (Contributors): Update contributions.
8618
8619 2018-07-31 Carlos O'Donell <carlos@redhat.com>
8620
8621 * po/be.po: Update translations.
8622
8623 2018-07-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8624
8625 * sysdeps/sh/libm-test-ulps: Update.
8626
8627 2018-07-30 Carlos O'Donell <carlos@redhat.com>
8628
8629 * po/bg.po: Update translations.
8630 * po/de.po: Likewise.
8631 * po/hr.po: Likewise.
8632 * po/pt_BR.po: Likewise.
8633 * po/sv.po: Likewise.
8634 * po/vi.po: Likewise.
8635
8636 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8637
8638 [BZ #23467]
8639 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8640 tst-cet-property-1 and tst-cet-property-2 if CET is enabled.
8641 (CFLAGS-tst-cet-property-1.o): New.
8642 (ASFLAGS-tst-cet-property-dep-2.o): Likewise.
8643 ($(objpfx)tst-cet-property-2): Likewise.
8644 ($(objpfx)tst-cet-property-2.out): Likewise.
8645 * sysdeps/unix/sysv/linux/x86/tst-cet-property-1.c: New file.
8646 * sysdeps/unix/sysv/linux/x86/tst-cet-property-2.c: Likewise.
8647 * sysdeps/unix/sysv/linux/x86/tst-cet-property-dep-2.S: Likewise.
8648 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Parse
8649 each property item until GNU_PROPERTY_X86_FEATURE_1_AND is found.
8650
8651 2018-07-30 H.J. Lu <hongjiu.lu@intel.com>
8652
8653 [BZ #23458]
8654 * sysdeps/x86/Makefile (tests): Add tst-get-cpu-features-static.
8655
8656 2018-07-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8657
8658 * sysdeps/mach/hurd/dl-unistd.h (__access, __brk, __lseek, __read,
8659 __sbrk): Do not set attribute_hidden.
8660 * sysdeps/mach/hurd/not-errno.h: New file.
8661 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8662 * sysdeps/mach/hurd/i386/localplt.data: Update accordingly.
8663
8664 2018-07-27 Carlos O'Donell <carlos@redhat.com>
8665
8666 * po/uk.po: Update translations.
8667 * po/cs.po: Likewise.
8668 * po/pl.po: Likewise.
8669
8670 2018-07-27 H.J. Lu <hongjiu.lu@intel.com>
8671
8672 * sysdeps/x86/dl-prop.h (_dl_process_cet_property_note): Don't
8673 parse beyond the note end.
8674
8675 2018-07-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8676
8677 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: Return unsupported if
8678 kernel does not support OFD locks.
8679 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Likewise.
8680
8681 2018-07-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
8682
8683 * sysdeps/mach/hurd/Versions (libc): Make __access and
8684 __access_noerrno external so they can override the ld symbols.
8685 (ld): Make __access, __read, __sbrk, __strtoul_internal, __write,
8686 __writev, __open64, __access_noerrno extern so they can be overrided.
8687 * sysdeps/mach/hurd/i386/libc.abilist: Update accordingly.
8688 * sysdeps/mach/hurd/i386/ld.abilist: Update accordingly.
8689
8690 2018-07-26 Carlos O'Donell <carlos@redhat.com>
8691
8692 * po/libc.pot: Regenerate.
8693
8694 2018-07-26 Joseph Myers <joseph@codesourcery.com>
8695
8696 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
8697
8698 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8699
8700 [BZ #23459]
8701 * sysdeps/x86/cpu-features.c (get_extended_indices): New
8702 function.
8703 (init_cpu_features): Call get_extended_indices for both Intel
8704 and AMD CPUs.
8705 * sysdeps/x86/cpu-features.h (COMMON_CPUID_INDEX_80000001):
8706 Remove "for AMD" comment.
8707
8708 2018-07-26 H.J. Lu <hongjiu.lu@intel.com>
8709
8710 [BZ # 23456]
8711 * sysdeps/x86/cpu-features.h (index_cpu_LZCNT): Set to
8712 COMMON_CPUID_INDEX_80000001.
8713
8714 2018-07-26 Stefan Liebler <stli@linux.ibm.com>
8715
8716 * string/tst-xbzero-opt.c (use_test_buffer): New function.
8717 (prepare_test_buffer): Call use_test_buffer as compiler barrier.
8718
8719 2018-07-26 Florian Weimer <fweimer@redhat.com>
8720
8721 * htl/lockfile.c (flockfile, funlockfile, ftrylockfile): Use weak
8722 aliases for symbols not in the implementation namespace.
8723
8724 2018-07-25 Carlos O'Donell <carlos@redhat.com>
8725
8726 [BZ #23393]
8727 * localedata/locales/iso14651_t1_common: Deinterlace uppercase and
8728 lowercase in LATIN script.
8729 * localedata/Makefile (test-input): Add en_US.UTF-8.
8730 * localedata/en_US.UTF-8.in: New file.
8731 * posix/tst-fnmatch.input: Add comments and new tests for en_US.UTF-8,
8732 and restore old tests.
8733 * posix/tst-regexloc.c (do_test): Add back range expression test.
8734
8735 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8736
8737 * sysdeps/unix/sysv/linux/ia64/tst-setcontext4.c: New file.
8738
8739 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8740
8741 * nptl/threads.h: Move to ...
8742 * sysdeps/nptl/threads.h: ... here.
8743 * sysdeps/hurd/stdc-predef.h: New file.
8744
8745 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 * sysdeps/unix/sysv/linux/x86/Makefile (tests): Add
8748 tst-cet-setcontext-1 if CET is enabled.
8749 (CFLAGS-tst-cet-setcontext-1.c): Add -mshstk.
8750 * sysdeps/unix/sysv/linux/x86/tst-cet-setcontext-1.c: New file.
8751
8752 2018-07-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8753
8754 * include/threads.h: Move to ...
8755 * sysdeps/nptl/threads.h: ... here.
8756 * sysdeps/htl/threads.h: New file.
8757 * conform/Makefile (linknamespace-libs-ISO11): Use
8758 static-thread-library instead of linking libpthread.
8759 (linknamespace-libs-XPG4): Revert wrong libcrypt.a addition.
8760
8761 2018-07-25 Florian Weimer <fweimer@redhat.com>
8762
8763 * nptl/tst-mtx-timedlock.c (do_test): Implement carry from
8764 nanoseconds into seconds.
8765 * nptl/tst-cnd-basic.c (signal_parent): Lock and unlock mutex.
8766 (do_test): Likewise.
8767 * nptl/tst-cnd-timedwait.c (signal_parent): Likewise.
8768 (do_test): Likewise. Avoid nanosecond overflow and spurious
8769 timeouts due to system load.
8770 * nptl/tst-cnd-broadcast.c (waiting_threads): New variable.
8771 (child_wait): Increment it.
8772 (do_test): Wait as long as necessary until all expected threads
8773 have arrived.
8774
8775 2018-07-25 Vedvyas Shanbhogue <vedvyas.shanbhogue@intel.com>
8776 H.J. Lu <hongjiu.lu@intel.com>
8777
8778 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Add
8779 __ssp.
8780 * sysdeps/unix/sysv/linux/x86_64/__start_context.S: Include
8781 <asm/prctl.h> and "ucontext_i.h" when shadow stack is enabled.
8782 (__push___start_context): New.
8783 * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Include
8784 <asm/prctl.h>.
8785 (__getcontext): Record the current shadow stack base. Save the
8786 caller's shadow stack pointer and base.
8787 * sysdeps/unix/sysv/linux/x86_64/makecontext.c: Include
8788 <pthread.h>, <libc-pointer-arith.h> and <sys/prctl.h>.
8789 (__push___start_context): New prototype.
8790 (__makecontext): Call __push___start_context to allocate a new
8791 shadow stack, push __start_context onto the new stack as well
8792 as the new shadow stack.
8793 * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Include
8794 <asm/prctl.h>.
8795 (__setcontext): Restore the target shadow stack.
8796 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Include
8797 <asm/prctl.h>.
8798 (__swapcontext): Record the current shadow stack base. Save
8799 the caller's shadow stack pointer and base. Restore the target
8800 shadow stack.
8801 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
8802 (STACK_SIZE_TO_SHADOW_STACK_SIZE_SHIFT): New.
8803 * sysdeps/unix/sysv/linux/x86_64/ucontext_i.sym (oSSP): New.
8804
8805 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8806
8807 * stdlib/Makefile ((tests): Add tst-setcontext6, tst-setcontext7,
8808 tst-setcontext8 and tst-setcontext9.
8809 * stdlib/tst-setcontext6.c: New file.
8810 * stdlib/tst-setcontext7.c: Likewise.
8811 * stdlib/tst-setcontext8.c: Likewise.
8812 * stdlib/tst-setcontext9.c: Likewise.
8813
8814 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8815
8816 * stdlib/Makefile ((tests): Add tst-setcontext5.
8817 * stdlib/tst-setcontext5.c: New file.
8818
8819 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8820
8821 * stdlib/Makefile (tests): Add tst-setcontext4.
8822 * stdlib/tst-setcontext4.c: New file.
8823
8824 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8825
8826 * stdlib/Makefile (tests): Add tst-swapcontext1.
8827 * stdlib/tst-swapcontext1.c: New test.
8828
8829 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8830
8831 * sysdeps/x86/Makefile (tests): Add tst-cet-legacy-1,
8832 tst-cet-legacy-2, tst-cet-legacy-2a, tst-cet-legacy-3,
8833 tst-cet-legacy-4, tst-cet-legacy-4a, tst-cet-legacy-4b
8834 and tst-cet-legacy-4c.
8835 (modules-names): Add tst-cet-legacy-mod-1, tst-cet-legacy-mod-2
8836 and tst-cet-legacy-mod-4.
8837 (CFLAGS-tst-cet-legacy-2.c): New.
8838 (CFLAGS-tst-cet-legacy-mod-1.c): Likewise.
8839 (CFLAGS-tst-cet-legacy-mod-2.c): Likewise.
8840 (CFLAGS-tst-cet-legacy-3.c): Likewise.
8841 (CFLAGS-tst-cet-legacy-4.c): Likewise.
8842 (CFLAGS-tst-cet-legacy-mod-4.c): Likewise.
8843 ($(objpfx)tst-cet-legacy-1): Likewise.
8844 ($(objpfx)tst-cet-legacy-2): Likewise.
8845 ($(objpfx)tst-cet-legacy-2.out): Likewise.
8846 ($(objpfx)tst-cet-legacy-2a): Likewise.
8847 ($(objpfx)tst-cet-legacy-2a.out): Likewise.
8848 ($(objpfx)tst-cet-legacy-4): Likewise.
8849 ($(objpfx)tst-cet-legacy-4.out): Likewise.
8850 ($(objpfx)tst-cet-legacy-4a): Likewise.
8851 ($(objpfx)tst-cet-legacy-4a.out): Likewise.
8852 (tst-cet-legacy-4a-ENV): Likewise.
8853 ($(objpfx)tst-cet-legacy-4b): Likewise.
8854 ($(objpfx)tst-cet-legacy-4b.out): Likewise.
8855 (tst-cet-legacy-4b-ENV): Likewise.
8856 ($(objpfx)tst-cet-legacy-4c): Likewise.
8857 ($(objpfx)tst-cet-legacy-4c.out): Likewise.
8858 (tst-cet-legacy-4c-ENV): Likewise.
8859 * sysdeps/x86/tst-cet-legacy-1.c: New file.
8860 * sysdeps/x86/tst-cet-legacy-2.c: Likewise.
8861 * sysdeps/x86/tst-cet-legacy-2a.c: Likewise.
8862 * sysdeps/x86/tst-cet-legacy-3.c: Likewise.
8863 * sysdeps/x86/tst-cet-legacy-4.c: Likewise.
8864 * sysdeps/x86/tst-cet-legacy-4a.c: Likewise.
8865 * sysdeps/x86/tst-cet-legacy-4b.c: Likewise.
8866 * sysdeps/x86/tst-cet-legacy-4c.c: Likewise.
8867 * sysdeps/x86/tst-cet-legacy-mod-1.c: Likewise.
8868 * sysdeps/x86/tst-cet-legacy-mod-2.c: Likewise.
8869 * sysdeps/x86/tst-cet-legacy-mod-4.c: Likewise.
8870
8871 2018-07-25 H.J. Lu <hongjiu.lu@intel.com>
8872
8873 * sysdeps/i386/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8874 * sysdeps/i386/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8875 with ssp_base.
8876 * sysdeps/x86_64/nptl/tcb-offsets.sym (SSP_BASE_OFFSET): New.
8877 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Replace __glibc_reserved2
8878 with ssp_base.
8879
8880 2018-07-25 Andreas Schwab <schwab@suse.de>
8881
8882 [BZ #23442]
8883 * locale/weightwc.h (findidx): Handle the case where usrc is a
8884 prefix of cp but one character too short.
8885
8886 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8887
8888 * NEWS: Add ISO C threads addition.
8889
8890 2018-07-24 Florian Weimer <fweimer@redhat.com>
8891
8892 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8893 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_MLOCK2)
8894 (__ASSUME_COPY_FILE_RANGE): Undefine. Kernel support was added in
8895 4.13.
8896
8897 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
8898
8899 * sysdeps/unix/sysv/linux/x86/include/asm/prctl.h: New file.
8900 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Include
8901 <sys/prctl.h> and <asm/prctl.h>.
8902 (get_cet_status): Call arch_prctl with ARCH_CET_STATUS.
8903 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Include <sys/prctl.h>
8904 and <asm/prctl.h>.
8905 (dl_cet_allocate_legacy_bitmap): Call arch_prctl with
8906 ARCH_CET_LEGACY_BITMAP.
8907 (dl_cet_disable_cet): Call arch_prctl with ARCH_CET_DISABLE.
8908 (dl_cet_lock_cet): Call arch_prctl with ARCH_CET_LOCK.
8909 * sysdeps/x86/libc-start.c: Include <startup.h>.
8910
8911 2018-07-24 Florian Weimer <fweimer@redhat.com>
8912
8913 * sysdeps/unix/sysv/linux/sh/kernel-features.h (__ASSUME_STATX):
8914 Undefine. Suggested by Romain Naour <romain.naour@gmail.com>.
8915
8916 2018-07-24 Rical Jasan <rj@2c3t.io>
8917 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8918 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8919
8920 [BZ #14092]
8921 * manual/debug.texi: Update adjacent chapter name.
8922 * manual/probes.texi: Likewise.
8923 * manual/threads.texi (ISO C Threads): New section.
8924 (POSIX Threads): Convert to a section.
8925
8926 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8927 Juan Manuel Torres Palma <jmtorrespalma@gmail.com>
8928
8929 [BZ# 14092]
8930 * nptl/Makefile (tests): Add new test files.
8931 * nptl/tst-call-once.c : New file. Tests C11 functions and types.
8932 * nptl/tst-cnd-basic.c: Likewise.
8933 * nptl/tst-cnd-broadcast.c: Likewise.
8934 * nptl/tst-cnd-timedwait.c: Likewise.
8935 * nptl/tst-mtx-basic.c: Likewise.
8936 * nptl/tst-mtx-recursive.c: Likewise.
8937 * nptl/tst-mtx-timedlock.c: Likewise.
8938 * nptl/tst-mtx-trylock.c: Likewise.
8939 * nptl/tst-thrd-basic.c: Likewise.
8940 * nptl/tst-thrd-detach.c: Likewise.
8941 * nptl/tst-thrd-sleep.c: Likewise.
8942 * nptl/tst-tss-basic.c: Likewise.
8943
8944 2018-07-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
8945
8946 [BZ #14092]
8947 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
8948 (thrd_current, thrd_equal, thrd_sleep, thrd_yield): Add C11 thread
8949 symbols.
8950 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
8951 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
8952 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
8953 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
8954 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
8955 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
8956 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
8957 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
8958 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
8959 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
8960 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
8961 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
8962 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
8963 Likewise.
8964 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
8965 Likewise.
8966 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
8967 Likewise.
8968 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
8969 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
8970 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
8971 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
8972 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
8973 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
8974 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
8975 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
8976 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
8977 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist [[GLIBC_2.28]
8978 (call_once, cnd_broadcast, cnd_destroy, cnd_init, cnd_signal,
8979 cnd_timedwait, cnd_wait, mtx_destroy, mtx_init, mtx_lock,
8980 mtx_timedlock, mtx_trylock, mtx_unlokc, thrd_create, thrd_detach,
8981 thrd_exit, thrd_join, tss_create, tss_delete, tss_get, tss_set):
8982 Likewise.
8983 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
8984 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
8985 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
8986 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
8987 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
8988 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
8989 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
8990 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
8991 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
8992 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
8993 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
8994 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
8995 ikewise.
8996 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
8997 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
8998 Likewise.
8999 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
9000 Likewise.
9001 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
9002 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
9003 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
9004 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
9005 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
9006 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
9007 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
9008 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
9009
9010 [BZ #14092]
9011 * conform/data/threads.h-data (thread_local): New macro.
9012 (TSS_DTOR_ITERATIONS): Likewise.
9013 (tss_t): New type.
9014 (tss_dtor_t): Likewise.
9015 (tss_create): New function.
9016 (tss_get): Likewise.
9017 (tss_set): Likewise.
9018 (tss_delete): Likewise.
9019 * nptl/Makefile (libpthread-routines): Add tss_create, tss_delete,
9020 tss_get, and tss_set objects.
9021 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9022 * nptl/tss_create.c: New file.
9023 * nptl/tss_delete.c: Likewise.
9024 * nptl/tss_get.c: Likewise.
9025 * nptl/tss_set.c: Likewise.
9026 * sysdeps/nptl/threads.h (thread_local): New define.
9027 (TSS_DTOR_ITERATIONS): Likewise.
9028 (tss_t): New typedef.
9029 (tss_dtor_t): Likewise.
9030 (tss_create): New prototype.
9031 (tss_get): Likewise.
9032 (tss_set): Likewise.
9033 (tss_delete): Likewise.
9034
9035 [BZ #14092]
9036 * conform/data/threads.h-data (cnd_t): New type.
9037 (cnd_init): New function.
9038 (cnd_signal): Likewise.
9039 (cnd_broadcast): Likewise.
9040 (cnd_wait): Likewise.
9041 (cnd_timedwait): Likewise.
9042 (cnd_destroy): Likewise.
9043 * nptl/Makefile (libpthread-routines): Add cnd_broadcast,
9044 cnd_destroy, cnd_init, cnd_signal, cnd_timedwait, and cnd_wait
9045 object.
9046 * nptl/Versions (libpthread) [GLIBC_2.28]: Likewise.
9047 * nptl/cnd_broadcast.c: New file.
9048 * nptl/cnd_destroy.c: Likewise.
9049 * nptl/cnd_init.c: Likewise.
9050 * nptl/cnd_signal.c: Likewise.
9051 * nptl/cnd_timedwait.c: Likewise.
9052 * nptl/cnd_wait.c: Likewise.
9053 * sysdeps/nptl/threads.h (cnd_t): New type.
9054 (cnd_init): New prototype.
9055 (cnd_signa): Likewise.
9056 (cnd_broadcast): Likewise.
9057 (cnd_wait): Likewise.
9058 (cnd_timedwait): Likewise.
9059 (cnd_destroy): Likewise.
9060
9061 [BZ #14092]
9062 * conform/data/threads.h-data (ONCE_FLAG_INIT): New macro.
9063 (once_flag): New type.
9064 (call_once): New function.
9065 * nptl/Makefile (libpthread-routines): Add call_once object.
9066 * nptl/Versions (libphread) [GLIBC_2.28]: Add call_once symbol.
9067 * nptl/call_once.c: New file.
9068 * sysdeps/nptl/threads.h (ONCE_FLAG_INIT): New define.
9069 (once_flag): New type.
9070 (call_once): New prototype.
9071
9072 [BZ #14092]
9073 * conform/data/threads.h-data (mtx_plain): New constant.
9074 (mtx_recursive): Likewise.
9075 (mtx_timed): Likewise.
9076 (mtx_t): New type.
9077 (mtx_init): New function.
9078 (mtx_lock): Likewise.
9079 (mtx_timedlock): Likewise.
9080 (mtx_trylock): Likewise.
9081 (mtx_unlock): Likewise.
9082 (mtx_destroy): Likewise.
9083 * nptl/Makefile (libpthread-routines): Add mtx_destroy, mtx_init,
9084 mtx_lock, mtx_timedlock, mtx_trylock, and mtx_unlock object.
9085 * nptl/Versions (libpthread) [GLIBC_2.28]): Add mtx_init, mtx_lock,
9086 mtx_timedlock, mtx_trylock, mtx_unlock, and mtx_destroy.
9087 * nptl/mtx_destroy.c: New file.
9088 * nptl/mtx_init.c: Likewise.
9089 * nptl/mtx_lock.c: Likewise.
9090 * nptl/mtx_timedlock.c: Likewise.
9091 * nptl/mtx_trylock.c: Likewise.
9092 * nptl/mtx_unlock.c: Likewise.
9093 * sysdeps/nptl/threads.h (mtx_plain): New enumeration.
9094 (mtx_recursive): Likewise.
9095 (mtx_timed): Likewise.
9096 (mtx_t): New type.
9097 (mtx_init): New prototype.
9098 (mtx_lock): Likewise.
9099 (mtx_timedlock): Likewise.
9100 (mtx_trylock): Likewise.
9101 (mtx_unlock): Likewise.
9102 (mtx_destroy): Likewise.
9103
9104 [BZ #14092]
9105 * conform/Makefile (conformtest-headers-ISO11): Add threads.h.
9106 (linknamespace-libs-ISO11): Add libpthread.a.
9107 * conform/data/threads.h-data: New file: add C11 thrd_* types and
9108 functions.
9109 * include/stdc-predef.h (__STDC_NO_THREADS__): Remove definition.
9110 * nptl/Makefile (headers): Add threads.h.
9111 (libpthread-routines): Add new C11 thread thrd_create, thrd_current,
9112 thrd_detach, thrd_equal, thrd_exit, thrd_join, thrd_sleep, and
9113 thrd_yield.
9114 * nptl/Versions (libpthread) [GLIBC_2.28]): Add new C11 thread
9115 thrd_create, thrd_current, thrd_detach, thrd_equal, thrd_exit,
9116 thrd_join, thrd_sleep, and thrd_yield symbols.
9117 * nptl/descr.h (struct pthread): Add c11 field.
9118 * nptl/pthreadP.h (ATTR_C11_THREAD): New define.
9119 * nptl/pthread_create.c (START_THREAD_DEFN): Call C11 thread start
9120 routine with expected function prototype.
9121 (__pthread_create_2_1): Add C11 threads check based on attribute
9122 value.
9123 * sysdeps/unix/sysdep.h (INTERNAL_SYSCALL_CANCEL): New macro.
9124 * nptl/thrd_create.c: New file.
9125 * nptl/thrd_current.c: Likewise.
9126 * nptl/thrd_detach.c: Likewise.
9127 * nptl/thrd_equal.c: Likewise.
9128 * nptl/thrd_exit.c: Likewise.
9129 * nptl/thrd_join.c: Likewise.
9130 * nptl/thrd_priv.h: Likewise.
9131 * nptl/thrd_sleep.c: Likewise.
9132 * nptl/thrd_yield.c: Likewise.
9133 * include/threads.h: Likewise.
9134
9135 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9136
9137 * bits/indirect-return.h: New file.
9138 * misc/sys/cdefs.h (__glibc_has_attribute): New.
9139 * sysdeps/x86/bits/indirect-return.h: Likewise.
9140 * stdlib/Makefile (headers): Add bits/indirect-return.h.
9141 * stdlib/ucontext.h: Include <bits/indirect-return.h>.
9142 (swapcontext): Add __INDIRECT_RETURN.
9143 * string/tst-xbzero-opt.c (ALWAYS_INLINE): New.
9144 (prepare_test_buffer): Use it.
9145
9146 2018-07-24 Andreas Schwab <schwab@suse.de>
9147
9148 [BZ #23448]
9149 * iconvdata/ibm1364.c (MAX_NEEDED_OUTPUT) [FROM_LOOP]: Define.
9150 (MAX_NEEDED_INPUT) [TO_LOOP]: Define.
9151
9152 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9153
9154 * sysdeps/unix/sysv/linux/i386/vfork.S (SYSCALL_ERROR_HANDLER):
9155 Redefine if shadow stack is enabled.
9156 (SYSCALL_ERROR_LABEL): Likewise.
9157 (__vfork): Pop shadow stack and jump back to to caller directly
9158 when shadow stack is in use.
9159 * sysdeps/unix/sysv/linux/x86_64/vfork.S (SYSCALL_ERROR_HANDLER):
9160 Redefine if shadow stack is enabled.
9161 (SYSCALL_ERROR_LABEL): Likewise.
9162 (__vfork): Pop shadow stack and jump back to to caller directly
9163 when shadow stack is in use.
9164
9165 2018-07-24 H.J. Lu <hongjiu.lu@intel.com>
9166
9167 * sysdeps/x86_64/tst-quadmod1.S (func): Add endbr64 if IBT is
9168 enabled.
9169 (foo): Likewise.
9170 * sysdeps/x86_64/tst-quadmod2.S (func) : Likewise.
9171 (foo): Likewise.
9172
9173 2018-07-20 Joseph Myers <joseph@codesourcery.com>
9174
9175 * scripts/build-many-glibcs.py (Context.checkout): Default
9176 binutils version to 2.31 branch.
9177
9178 2018-07-20 Zong Li <zong@andestech.com>
9179
9180 * scripts/build-many-glibcs.py (Context.checkout_tar): Change the
9181 URL of gcc's tarball.
9182
9183 2018-07-20 Florian Weimer <fweimer@redhat.com>
9184
9185 [BZ #23396]
9186 * posix/regcomp.c (build_equiv_class): When comparing weights, do
9187 not compare an extra byte after the end of the weights.
9188
9189 2018-07-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
9190
9191 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
9192 to 1.
9193 * sysdeps/hurd/include/hurd/port.h [!_ISOMAC]: Do not declare libc
9194 hidden prototypes.
9195 * sysdeps/mach/include/mach-shortcuts-hidden.h [!_ISOMAC]: Likewise.
9196 * sysdeps/mach/include/mach/mach_traps.h [!_ISOMAC]: Likewise.
9197 * scripts/check-execstack.awk: Consider `xfail' variable containing a
9198 list of libraries whose stack executability is expected.
9199 * elf/Makefile ($(objpfx)check-execstack.out): Pass
9200 $(check-execstack-xfail) to check-execstack.awk through `xfail'
9201 variable.
9202 * sysdeps/mach/hurd/i386/Makefile (check-execstack-xfail): Set to ld.so
9203 libc.so libpthread.so.
9204
9205 2018-07-20 Thomas Schwinge <tschwinge@gnu.org>
9206
9207 * sysdeps/mach/hurd/socket.c (__socket): Handle SOCK_CLOEXEC and
9208 SOCK_NONBLOCK.
9209 * sysdeps/mach/hurd/socketpair.c (__socketpair): Handle SOCK_CLOEXEC
9210 and SOCK_NONBLOCK.
9211 * sysdeps/mach/hurd/pipe2.c: New file, copy from pipe.c. Evolve it to
9212 implement __pipe2.
9213 * sysdeps/mach/hurd/pipe.c (__pipe): Reimplement using __pipe2.
9214
9215 2018-07-19 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
9216
9217 * benchtests/scripts/compare_bench.py (__main__): use the argparse
9218 library to improve command line parsing.
9219 (__main__): make schema file as optional parameter (--schema),
9220 defaulting to benchtests/scripts/benchout.schema.json.
9221 (main): move out of the parsing stuff to __main_  and leave it
9222 only as caller of main comparison functions.
9223
9224 2018-07-19 H.J. Lu <hongjiu.lu@intel.com>
9225
9226 * NEWS: Add a note for Intel CET status.
9227 * manual/install.texi: Likewise.
9228 * INSTALL: Regenerated.
9229
9230 2018-07-18 Quentin PAGÈS <provaires@quentino.fr>
9231
9232 [BZ #23140]
9233 * localedata/locales/oc_FR (mon): Rename to...
9234 (alt_mon): This, then update October (typo fix).
9235 (mon): New content (genitive case, month names preceded by
9236 "de" or "d’").
9237
9238 [BZ #23422]
9239 * localedata/locales/oc_FR (abday): Update all items.
9240 (day): Update Wednesday and Saturday (typo fixes).
9241 (abmon): Update all items, except May.
9242 (d_fmt): Update "%d.%m.%Y" -> "%d/%m/%Y".
9243 (LC_IDENTIFICATION): Bump the revision number and date.
9244 Keep the "category" entries in alphabetic order.
9245 (LC_ADDRESS): Remove no longer needed comment.
9246 (LC_COLLATE): Use “copy "ca_ES"”.
9247 (LC_NAME): Set the correct values of "name_fmt", "name_mr", and
9248 "name_mrs".
9249
9250 2018-07-18 Joseph Myers <joseph@codesourcery.com>
9251
9252 * grp/tst_fgetgrent.c: Include <unistd.h>.
9253 (main): Use mkstemp instead of tmpnam.
9254 * io/test-utime.c (main): Likewise.
9255 * posix/annexc.c (macrofile): Change to modifiable array.
9256 (main): Remove macrofile here.
9257 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9258 macrofile here.
9259 (check_header): Do not remove macrofile here.
9260 * posix/bug-getopt1.c: Include <stdlib.h>.
9261 (do_test): Use mkstemp instead of tmpnam.
9262 * posix/bug-getopt2.c: Include <stdlib.h>.
9263 (do_test): Use mkstemp instead of tmpnam.
9264 * posix/bug-getopt3.c: Include <stdlib.h>.
9265 (do_test): Use mkstemp instead of tmpnam.
9266 * posix/bug-getopt4.c: Include <stdlib.h>.
9267 (do_test): Use mkstemp instead of tmpnam.
9268 * posix/bug-getopt5.c: Include <stdlib.h>.
9269 (do_test): Use mkstemp instead of tmpnam.
9270 * stdio-common/bug7.c: Include <stdlib.h> and <unistd.h>.
9271 (main): Use mkstemp instead of tmpnam.
9272 * stdio-common/tst-fdopen.c: Include <stdlib.h>.
9273 (main): Use mkstemp instead of tmpnam.
9274 * stdio-common/tst-ungetc.c: Include <stdlib.h>.
9275 (main): use mkstemp instead of tmpnam.
9276 * stdlib/isomac.c (macrofile): Change to modifiable array.
9277 (main): Remove macrofile here.
9278 (get_null_defines): Use mkstemp instead of tmpnam. Do not remove
9279 macrofile here.
9280 (check_header): Do not remove macrofile here.
9281
9282 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9283
9284 * manual/tunables.texi: Document glibc.tune.x86_ibt and
9285 glibc.tune.x86_shstk.
9286
9287 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9288
9289 * NEWS: Mention --enable-cet.
9290 * manual/install.texi: Document --enable-cet.
9291 * INSTALL: Regenerated.
9292
9293 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9294
9295 * sysdeps/x86_64/multiarch/memcmp-sse4.S (BRANCH_TO_JMPTBL_ENTRY):
9296 Add _CET_NOTRACK before indirect jump to jump table.
9297
9298 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9299
9300 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S
9301 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9302 to jump table.
9303
9304 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9305
9306 * sysdeps/i386/i686/multiarch/strcat-sse2.S
9307 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9308 to jump table.
9309
9310 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9311
9312 * sysdeps/i386/i686/multiarch/strcpy-sse2.S
9313 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9314 to jump table.
9315
9316 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9317
9318 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S
9319 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9320 to jump table.
9321
9322 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9323
9324 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S
9325 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9326 to jump table.
9327 (BRANCH_TO_JMPTBL_ENTRY_TAIL): Likewise.
9328
9329 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9330
9331 * sysdeps/i386/i686/multiarch/memcmp-sse4.S
9332 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9333 to jump table.
9334
9335 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9336
9337 * sysdeps/i386/i686/multiarch/memset-sse2.S
9338 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9339 to jump table.
9340
9341 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9342
9343 * sysdeps/i386/i686/memcmp.S (memcmp): Add _CET_NOTRACK before
9344 indirect jump to jump table.
9345
9346 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9347
9348 * sysdeps/x86_64/multiarch/memcpy-ssse3.S
9349 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9350 to jump table.
9351 (MEMCPY): Likewise.
9352
9353 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9354
9355 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S
9356 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9357 to jump table.
9358 (MEMCPY): Likewise.
9359
9360 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9361
9362 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9363 _CET_NOTRACK before indirect jump to jump table.
9364
9365 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9366
9367 * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S
9368 (BRANCH_TO_JMPTBL_ENTRY): Add _CET_NOTRACK before indirect jump
9369 to jump table.
9370
9371 2018-07-18 H.J. Lu <hongjiu.lu@intel.com>
9372
9373 * sysdeps/x86_64/strcmp.S (STRCMP): Add _CET_NOTRACK before
9374 indirect jump to jump table.
9375
9376 2018-07-18 Valery Timiriliyev <timiriliyev@gmail.com>
9377
9378 [BZ #22241]
9379 * localedata/Makefile (test-input): Add sah_RU.UTF-8.
9380 (LOCALES): Likewise.
9381 * localedata/SUPPORTED (sah_RU/UTF-8): New entry.
9382 * localedata/locales/sah_RU: New file.
9383 * localedata/sah_RU.UTF-8.in: New file.
9384
9385 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9386
9387 * sysdeps/i386/add_n.S: Include <sysdep.h>, instead of
9388 "sysdep.h".
9389 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9390 _CET_ENDBR to indirect jump targets and adjust jump destination
9391 for _CET_ENDBR.
9392 * sysdeps/i386/i686/add_n.S: Include <sysdep.h>, instead of
9393 "sysdep.h".
9394 (__mpn_add_n): Save and restore %ebx if IBT is enabed. Add
9395 _CET_ENDBR to indirect jump targets and adjust jump destination
9396 for _CET_ENDBR.
9397 * sysdeps/i386/sub_n.S: Include <sysdep.h>, instead of
9398 "sysdep.h".
9399 (__mpn_sub_n): Save and restore %ebx if IBT is enabed. Add
9400 _CET_ENDBR to indirect jump targets and adjust jump destination
9401 for _CET_ENDBR.
9402
9403 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9404
9405 * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Add
9406 _CET_ENDBR.
9407
9408 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9409
9410 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_return): Add
9411 _CET_ENDBR.
9412 (_dl_tlsdesc_undefweak): Likewise.
9413 (_dl_tlsdesc_dynamic): Likewise.
9414 (_dl_tlsdesc_resolve_abs_plus_addend): Likewise.
9415 (_dl_tlsdesc_resolve_rel): Likewise.
9416 (_dl_tlsdesc_resolve_rela): Likewise.
9417 (_dl_tlsdesc_resolve_hold): Likewise.
9418 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_return): Likewise.
9419 (_dl_tlsdesc_undefweak): Likewise.
9420 (_dl_tlsdesc_dynamic): Likewise.
9421 (_dl_tlsdesc_resolve_rela): Likewise.
9422 (_dl_tlsdesc_resolve_hold): Likewise.
9423
9424 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9425
9426 * sysdeps/i386/crti.S (_init): Add _CET_ENDBR.
9427 (_fini): Likewise.
9428 * sysdeps/x86_64/crti.S (_init): Likewise.
9429 (_fini): Likewise.
9430
9431 2018-07-17 Rafal Luzynski <digitalfreak@lingonborough.com>
9432
9433 [BZ #23140]
9434 * localedata/locales/os_RU (mon): Rename to...
9435 (alt_mon): This.
9436 (mon): Import from CLDR (genitive case).
9437
9438 2018-07-17 H.J. Lu <hongjiu.lu@intel.com>
9439
9440 * sysdeps/x86/cpu-features.c: Always include <dl-cet.h> and
9441 cet-tunables.h> when CET is enabled.
9442
9443 2018-07-16 H.J. Lu <hongjiu.lu@intel.com>
9444
9445 [BZ #21598]
9446 * configure.ac: Add --enable-cet.
9447 * configure: Regenerated.
9448 * elf/Makefille (all-built-dso): Add a comment.
9449 * elf/dl-load.c (filebuf): Moved before "dynamic-link.h".
9450 Include <dl-prop.h>.
9451 (_dl_map_object_from_fd): Call _dl_process_pt_note on PT_NOTE
9452 segment.
9453 * elf/dl-open.c: Include <dl-prop.h>.
9454 (dl_open_worker): Call _dl_open_check.
9455 * elf/rtld.c: Include <dl-prop.h>.
9456 (dl_main): Call _rtld_process_pt_note on PT_NOTE segment. Call
9457 _rtld_main_check.
9458 * sysdeps/generic/dl-prop.h: New file.
9459 * sysdeps/i386/dl-cet.c: Likewise.
9460 * sysdeps/unix/sysv/linux/x86/cpu-features.c: Likewise.
9461 * sysdeps/unix/sysv/linux/x86/dl-cet.h: Likewise.
9462 * sysdeps/x86/cet-tunables.h: Likewise.
9463 * sysdeps/x86/check-cet.awk: Likewise.
9464 * sysdeps/x86/configure: Likewise.
9465 * sysdeps/x86/configure.ac: Likewise.
9466 * sysdeps/x86/dl-cet.c: Likewise.
9467 * sysdeps/x86/dl-procruntime.c: Likewise.
9468 * sysdeps/x86/dl-prop.h: Likewise.
9469 * sysdeps/x86/libc-start.h: Likewise.
9470 * sysdeps/x86/link_map.h: Likewise.
9471 * sysdeps/i386/dl-trampoline.S (_dl_runtime_resolve): Add
9472 _CET_ENDBR.
9473 (_dl_runtime_profile): Likewise.
9474 (_dl_runtime_resolve_shstk): New.
9475 (_dl_runtime_profile_shstk): Likewise.
9476 * sysdeps/linux/x86/Makefile (sysdep-dl-routines): Add dl-cet
9477 if CET is enabled.
9478 (CFLAGS-.o): Add -fcf-protection if CET is enabled.
9479 (CFLAGS-.os): Likewise.
9480 (CFLAGS-.op): Likewise.
9481 (CFLAGS-.oS): Likewise.
9482 (asm-CPPFLAGS): Add -fcf-protection -include cet.h if CET
9483 is enabled.
9484 (tests-special): Add $(objpfx)check-cet.out.
9485 (cet-built-dso): New.
9486 (+$(cet-built-dso:=.note)): Likewise.
9487 (common-generated): Add $(cet-built-dso:$(common-objpfx)%=%.note).
9488 ($(objpfx)check-cet.out): New.
9489 (generated): Add check-cet.out.
9490 * sysdeps/x86/cpu-features.c: Include <dl-cet.h> and
9491 <cet-tunables.h>.
9492 (TUNABLE_CALLBACK (set_x86_ibt)): New prototype.
9493 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9494 (init_cpu_features): Call get_cet_status to check CET status
9495 and update dl_x86_feature_1 with CET status. Call
9496 TUNABLE_CALLBACK (set_x86_ibt) and TUNABLE_CALLBACK
9497 (set_x86_shstk). Disable and lock CET in libc.a.
9498 * sysdeps/x86/cpu-tunables.c: Include <cet-tunables.h>.
9499 (TUNABLE_CALLBACK (set_x86_ibt)): New function.
9500 (TUNABLE_CALLBACK (set_x86_shstk)): Likewise.
9501 * sysdeps/x86/sysdep.h (_CET_NOTRACK): New.
9502 (_CET_ENDBR): Define if not defined.
9503 (ENTRY): Add _CET_ENDBR.
9504 * sysdeps/x86/dl-tunables.list (glibc.tune): Add x86_ibt and
9505 x86_shstk.
9506 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve): Add
9507 _CET_ENDBR.
9508 (_dl_runtime_profile): Likewise.
9509
9510 2018-07-16 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
9511
9512 [BZ #21895]
9513 * sysdeps/powerpc/powerpc64/__longjmp-common.S: Remove condition code for
9514 restore r2 on longjmp.
9515 * sysdeps/powerpc/powerpc64/Makefile: Added tst-setjmp-bug21895-static to
9516 test list.
9517 Added rules to build test tst-setjmp-bug21895-static.
9518 Added module setjmp-bug21895 and rules to build a shared object from it.
9519 * sysdeps/powerpc/powerpc64/setjmp-bug21895.c: New test file.
9520 * sysdeps/powerpc/powerpc64/tst-setjmp-bug21895-static.c: New test file.
9521
9522 2018-07-15 Wilco Dijkstra <wdijkstr@arm.com>
9523
9524 * benchtests/bench-strcasestr.c: Rename __strnlen to strnlen.
9525 * benchtests/bench-strstr.c: Likewise.
9526 * string/memmem.c (FASTSEARCH): Define.
9527 * string/str-two-way.h (two_way_short_needle): Minor cleanups.
9528 Add support for FASTSEARCH.
9529 * string/strcasestr.c (AVAILABLE): Use read-ahead __strnlen.
9530 * string/strstr.c (AVAILABLE): Use read-ahead __strnlen.
9531 (FASTSEARCH): Define.
9532 * string/test-strcasestr.c: Rename __strnlen to strnlen.
9533 * string/test-strstr.c: Likewise.
9534
9535 2018-07-15 H.J. Lu <hongjiu.lu@intel.com>
9536
9537 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Undef
9538 SHADOW_STACK_POINTER_OFFSET after including <jmp_buf-ssp.h>.
9539
9540 2018-07-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
9541 H.J. Lu <hongjiu.lu@intel.com>
9542
9543 * sysdeps/i386/__longjmp.S: Include <jmp_buf-ssp.h>.
9544 (__longjmp): Restore shadow stack pointer if shadow stack is
9545 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9546 isn't defined for __longjmp_cancel.
9547 * sysdeps/i386/bsd-_setjmp.S: Include <jmp_buf-ssp.h>.
9548 (_setjmp): Save shadow stack pointer if shadow stack is enabled
9549 and SHADOW_STACK_POINTER_OFFSET is defined.
9550 * sysdeps/i386/bsd-setjmp.S: Include <jmp_buf-ssp.h>.
9551 (setjmp): Save shadow stack pointer if shadow stack is enabled
9552 and SHADOW_STACK_POINTER_OFFSET is defined.
9553 * sysdeps/i386/setjmp.S: Include <jmp_buf-ssp.h>.
9554 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9555 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9556 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Include
9557 <jmp_buf-ssp.h>.
9558 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9559 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9560 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
9561 Remove jmp_buf-ssp.sym.
9562 * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
9563 <jmp_buf-ssp.h>.
9564 (____longjmp_chk): Restore shadow stack pointer if shadow stack
9565 is enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9566 * sysdeps/x86/Makefile (gen-as-const-headers): Add
9567 jmp_buf-ssp.sym.
9568 * sysdeps/x86/jmp_buf-ssp.sym: New dummy file.
9569 * sysdeps/x86_64/__longjmp.S: Include <jmp_buf-ssp.h>.
9570 (__longjmp): Restore shadow stack pointer if shadow stack is
9571 enabled, SHADOW_STACK_POINTER_OFFSET is defined and __longjmp
9572 isn't defined for __longjmp_cancel.
9573 * sysdeps/x86_64/setjmp.S: Include <jmp_buf-ssp.h>.
9574 (__sigsetjmp): Save shadow stack pointer if shadow stack is
9575 enabled and SHADOW_STACK_POINTER_OFFSET is defined.
9576
9577 2018-07-14 H.J. Lu <hongjiu.lu@intel.com>
9578
9579 [BZ #22563]
9580 * nptl/pthread_create.c: Include <tls-setup.h>.
9581 (__pthread_create_2_1): Call tls_setup_tcbhead.
9582 * sysdeps/generic/tls-setup.h: New file.
9583 * sysdeps/x86/nptl/tls-setup.h: Likewise.
9584 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
9585 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET):
9586 Likewise.
9587 * sysdeps/i386/nptl/tls.h (tcbhead_t): Rename __glibc_reserved1
9588 to feature_1.
9589 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
9590 * sysdeps/x86/sysdep.h (X86_FEATURE_1_IBT): New.
9591 (X86_FEATURE_1_SHSTK): Likewise.
9592 (CET_ENABLED): Likewise.
9593 (IBT_ENABLED): Likewise.
9594 (SHSTK_ENABLED): Likewise.
9595
9596 2018-07-13 Rafal Luzynski <digitalfreak@lingonborough.com>
9597
9598 [BZ #23208]
9599 * localedata/Makefile (test-input): Add dsb_DE.UTF-8.
9600 (LOCALES): Likewise.
9601 * localedata/dsb_DE.UTF-8.in: New file.
9602 * localedata/locales/dsb_DE (LC_COLLATE): Fix syntax error.
9603
9604 2018-07-12 Florian Weimer <fweimer@redhat.com>
9605
9606 * nptl/allocatestack.c [_STACK_GROWS_UP] (allocate_stack): Call
9607 __mprotect, not mprotect.
9608
9609 2018-07-11 Florian Weimer <fweimer@redhat.com>
9610
9611 * io/Makefile (headers): Add bits/statx.h.
9612
9613 2018-07-10 Mike FABIAN <mfabian@redhat.com>
9614
9615 * localedata/charmaps/UTF-8: Use correct Unicode version 11.0.0 in comment.
9616 * localedata/locales/i18n_ctype: Use correct Unicode version in comments
9617 and headers.
9618 * localedata/unicode-gen/utf8_gen.py: Add option to specify Unicode version
9619 * localedata/unicode-gen/Makefile: Use option to specify Unicode version
9620 for utf8_gen.py
9621
9622 2018-07-10 Florian Weimer <fweimer@redhat.com>
9623
9624 * io/Makefile (routines): Add statx.
9625 (tests-internal): Add tst-statx.
9626 * io/Versions (GLIBC_2.28): Export statx.
9627 * io/bits/statx.h: New file.
9628 * io/sys/stat.h [__USE_GNU]: Include it.
9629 * io/fcntl.h [__USE_GNU] (AT_STATX_SYNC_TYPE)
9630 (AT_STATX_SYNC_AS_STAT, AT_STATX_FORCE_SYNC, AT_STATX_DONT_SYNC):
9631 Define.
9632 * io/statx.c: New file.
9633 * io/statx_generic.: Likewise.
9634 * io/tst-statx.: Likewise.
9635 * include/bits/statx.h: Likewise.
9636 * sysdeps/unix/sysv/linux/kernel-features.h
9637 [__LINUX_KERNEL_VERSION >= 0x040B00] (__ASSUME_STATX): Define.
9638 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9639 [__LINUX_KERNEL_VERSION < 0x040D00] (__ASSUME_STATX): Undefine.
9640 * sysdeps/unix/sysv/linux/ia64/kernel-features.h (__ASSUME_STATX):
9641 Undefine.
9642 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9643 [__LINUX_KERNEL_VERSION < 0x040C00] (__ASSUME_STATX): Undefine.
9644 * sysdeps/unix/sysv/linux/statx.c: New file.
9645 * manual/filesys.texi: Note that statx is undocumented.
9646 * sysdeps/**/libc*.abilist: Update.
9647
9648 2018-07-10 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9649
9650 * sysdeps/unix/sysv/linux/tst-ofdlocks-compat.c: Add a comment about
9651 a kernel issue which lead to test failure in some cases.
9652
9653 2018-07-10 Florian Weimer <fweimer@redhat.com>
9654
9655 [BZ #23036]
9656 * posix/regexec.c (check_node_accept_bytes): When comparing
9657 weights, do not compare an extra byte after the end of the
9658 weights.
9659
9660 2018-07-10 Florian Weimer <fweimer@redhat.com>
9661
9662 * libio/readline.c: Fix copyright year.
9663 * libio/tst-readline.c Likewise.
9664 * nss/tst-nss-files-hosts-getent.c: Likewise.
9665
9666 2018-07-06 Florian Weimer <fweimer@redhat.com>
9667
9668 [BZ #18991]
9669 * nss/nss_files/files-XXX.c (internal_getent): Use
9670 __libc_readline_unlocked. Seek back to the start of the line if
9671 parsing failes with ERANGE.
9672 (get_contents_ret, get_contents): Remove.
9673 * nss/tst-nss-files-hosts-getent.c: New file.
9674 * nss/Makefile (tests): Add tst-nss-files-hosts-getent.
9675 (tst-nss-files-hosts-getent): Link with -ldl.
9676
9677 2018-07-06 Florian Weimer <fweimer@redhat.com>
9678
9679 * include/stdio.h (__libc_readline_unlocked): Declare.
9680 (__ftello64, __fseeko64): Declare aliases.
9681 * libio/readline.c: New file.
9682 * libio/tst-readline.c: Likewise.
9683 (routines): Add readline.
9684 (tests-internal): Add tst-readlime.
9685 * libio/Versions (GLIBC_PRIVATE): Export __fseeko64, __ftello64,
9686 __libc_readline_unlocked.
9687 * libio/fseeko.c (__fseeko): Rename from fseeko.
9688 (fseeko): Add alias.
9689 [__OFF_T_MATCHES_OFF64_T] (fseeko64, __fseeko64): Likewise.
9690 * libio/fseeko64.c (__fseeko64): Rename from fseeko64.
9691 (fseeko64): Add alias.
9692 * libio/ftello.c [__OFF_T_MATCHES_OFF64_T] (__ftello64): Add alias.
9693 * libio/ftello64.c (__ftello64): Rename from ftello64.
9694 (ftello64): Add alias.
9695
9696 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9697
9698 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT): Add
9699 HWCAP_ATOMICS.
9700
9701 2018-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
9702
9703 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (init_cpu_features):
9704 Use dl_hwcap without masking.
9705 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h (HWCAP_IMPORTANT):
9706 Remove HWCAP_CPUID.
9707
9708 2018-07-06 Florian Weimer <fweimer@redhat.com>
9709
9710 * conform/conformtest.pl (checknamespace): Escape literal braces
9711 in regular expressions.
9712
9713 2018-07-06 Amit Pawar <amit.pawar@amd.com>
9714
9715 * sysdeps/x86/cpu-features.c (get_common_indeces):
9716 AVX_Fast_Unaligned_Load is enabled when AVX2 is detected.
9717 * sysdeps/x86/cpu-features.c (init_cpu_features):
9718 AVX_Fast_Unaligned_Load is disabled for Excavator core.
9719
9720 2018-07-05 Florian Weimer <fweimer@redhat.com>
9721
9722 * csu/Makefile (CFLAGS-static-reloc.os): Build with stack
9723 protector.
9724 (CFLAGS-elf-init.oS): Likewise.
9725
9726 2018-07-05 Florian Weimer <fweimer@redhat.com>
9727 Carlos O'Donell <carlos@redhat.com>
9728
9729 * debug/Makefile (CFLAGS-stack_chk_fail_local.c): Remove
9730 $(no-stack-protector). stack_chk_fail_local.c can be compiled
9731 with stack protector enabled because there is no risk of infinite
9732 recursion.
9733
9734 2018-07-05 Maciej W. Rozycki <macro@mips.com>
9735
9736 [BZ #19818]
9737 [BZ #23307]
9738 * libc-abis (ABSOLUTE): New ABI.
9739 * sysdeps/unix/sysv/linux/mips/libc-abis (ABSOLUTE): New ABI.
9740 * NEWS: Mention the new ABI.
9741
9742 2018-07-05 Florian Weimer <fweimer@redhat.com>
9743
9744 [BZ # 17662]
9745 * libio/stdio.h [__USE_GNU] (RENAME_NOREPLACE, RENAME_EXCHANGE)
9746 (RENAME_WHITEOUT): Define.
9747 [__USE_GNU] (renameat2): Declare.
9748 * stdio-common/Makefile (routines): Add renameat2.
9749 (tests): Add tst-renameat2.
9750 * stdio-common/Versions (GLIBC_2_28): Export renameat2.
9751 * stdio-common/renameat2.c: New file.
9752 * stdio-common/tst-renameat2.c: Likewise.
9753 * sysdeps/unix/sysv/linux/renameat2.c: Likewise.
9754 * manual/filesys.texi (Temporary Files): Note that renameat2 is
9755 undocumented.
9756 * sysdeps/unix/sysv/linux/kernel-features.h
9757 [__LINUX_KERNEL_VERSION >= 0x030F00] (__ASSUME_RENAMEAT2): Define.
9758 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
9759 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9760 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
9761 [__LINUX_KERNEL_VERSION < 0x031100] (__ASSUME_RENAMEAT2): Undefine.
9762 * sysdeps/unix/sysv/linux/sh/kernel-features.h
9763 [__LINUX_KERNEL_VERSION < 0x040800] (__ASSUME_RENAMEAT2): Undefine.
9764 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
9765 [__LINUX_KERNEL_VERSION < 0x031000] (__ASSUME_RENAMEAT2): Undefine.
9766 * include/stdio.h (__renameat): Add alias for renameat.
9767 * stdio-common/renameat.c (__renameat): Rename from renameat.
9768 Add hidden definition and alias.
9769 * sysdeps/unix/sysv/linux/renameat.c: Likewise.
9770 * sysdeps/mach/hurd/renameat.c: Likewise.
9771 * sysdeps/**/libc*.abilist: Add renameat2.
9772
9773 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9774
9775 * posix/bug-regex33.c: Fix build after regex sync.
9776
9777 2018-07-04 Carlos O'Donell <carlos@redhat.com>
9778
9779 [BZ #23164]
9780 * localedata/tst-langinfo-setlocale.c: New file.
9781 * localedata/tst-langinfo-setlocale-static.c: New file.
9782 * localedata/tst-langinfo-newlocale.c: New file.
9783 * localedata/tst-langinfo-newlocale-static.c: New file.
9784 * localedata/Makefile (test-srcs): Remove tst-langinfo. Add
9785 tst-langinfo-setlocale, tst-langinfo-setlocale-static,
9786 tst-langinfo-newlocale, tst-langinfo-newlocale-static.
9787 (tests-static): Remove tst-langinfo-static. Add
9788 tst-langinfo-newlocale-static, tst-langinfo-setlocale-static.
9789 (tests-special): Remove $(objpfx)tst-langinfo.out,
9790 $(objpfx)tst-langinfo-static.out. Add
9791 $(objpfx)tst-langinfo-setlocale.out,
9792 $(objpfx)tst-langinfo-newlocale.out,
9793 $(objpfx)tst-langinfo-setlocale-static.out,
9794 $(objpfx)tst-langinfo-newlocale-static.out.
9795 ($(objpfx)tst-langinfo.out): Remove.
9796 ($(objpfx)tst-langinfo-static.out): Remove.
9797 ($(objpfx)tst-langinfo-newlocale.out): New target.
9798 ($(objpfx)tst-langinfo-newlocale-static.out): New target.
9799 (test-xfail-tst-langinfo-newlocale-static): Add.
9800 ($(objpfx)tst-langinfo-setlocale.out): New target.
9801 ($(objpfx)tst-langinfo-setlocale-static.out): New target.
9802 * localedata/tst-langinfo.c: Call test_locale.
9803 * localedata/tst-langinfo.sh: Add LC_MONETARY CURRENCY_SYMBOL test
9804 data.
9805
9806 2018-07-04 Florian Weimer <fweimer@redhat.com>
9807
9808 testrun.sh: Implement --tool=strace, --tool=valgrind
9809 * Makefile (testrun-script): Define variable.
9810 (testrun.sh): Use variable.
9811 * manual/install.texi (Tools for Compilation): make 4.0 or later
9812 is required.
9813 * configure.ac: Check for make 4.0 or later.
9814 * INSTALL: Regenerate.
9815 * configure: Likewise.
9816
9817 2018-07-04 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9818
9819 [BZ #23233]
9820 [BZ #21163]
9821 [BZ #18986]
9822 [BZ #13762]
9823 * posix/Makefile (tests): Add bug-regex37 and bug-regex38.
9824 * posix/PCRE.tests: Remove invalid test.
9825 * posix/bug-regex28.c: Fix expected values for used syntax.
9826 * posix/bug-regex37.c: New file.
9827 * posix/bug-regex38.c: Likewise.
9828 * posix/regcomp.c: Sync with gnulib.
9829 * posix/regex.c: Likewise.
9830 * posix/regex.h: Likewise.
9831 * posix/regex_internal.c: Likewise.
9832 * posix/regex_internal.h: Likewise.
9833 * posix/regexec.c: Likewise.
9834
9835 2018-06-26 Mike FABIAN <mfabian@redhat.com>
9836
9837 [BZ #23308]
9838 * unicode-gen/Makefile (UNICODE_VERSION): Set to 11.0.0.
9839 * localedata/unicode-gen/DerivedCoreProperties.txt: Update to Unicode 11.0.0.
9840 * localedata/unicode-gen/EastAsianWidth.txt: likewise.
9841 * localedata/unicode-gen/PropList.txt: likewise.
9842 * localedata/unicode-gen/UnicodeData.txt: likewise.
9843 * localedata/charmaps/UTF-8: Regenerate.
9844 * localedata/locales/i18n_ctype: likewise.
9845 * localedata/locales/tr_TR: likewise.
9846 * localedata/locales/translit_circle: likewise.
9847 * localedata/locales/translit_cjk_compat: likewise.
9848 * localedata/locales/translit_combining: likewise.
9849 * localedata/locales/translit_compat: likewise.
9850 * localedata/locales/translit_font: likewise.
9851 * localedata/locales/translit_fraction: likewise.
9852
9853 2018-07-03 Florian Weimer <fweimer@redhat.com>
9854
9855 [BZ #23363]
9856 * stdio-common/tst-printf.c (DEC, INT, UNS, fp_test): Remove.
9857 * stdio-common/tst-printf.sh: Adjust expected output.
9858 * LICENSES: Update.
9859
9860 2018-07-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
9861
9862 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl): Remove
9863 symbol.
9864
9865 2018-07-02 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
9866
9867 * stdio-common/Makefile (test-srcs): Add tst-printfsz-islongdouble.
9868 (tests-special) Add $(objpfx)tst-printfsz-islongdouble.out.
9869 ($(objpfx)tst-printfsz-islongdouble.out): New build and run rule.
9870 * stdio-common/tst-printfsz-islongdouble.c: New file.
9871 * stdio-common/tst-printfsz-islongdouble.sh: Likewise.
9872 * sysdeps/ieee754/ldbl-128ibm-compat/Makefile:
9873 [subdir == stdio-common] (routines): Add ieee128-printf_size.
9874 [subdir == stdio-common] (tests-internal): Add
9875 test-printf-size-ieee128, and test-printf-size-ibm128.
9876 [subdir == stdio-common] (CFLAGS-test-printf-size-ieee128.c)
9877 (CFLAGS-test-printf-size-ibm128.c): New variables.
9878 [subdir == stdio-common] (tests-special): Add
9879 $(objpfx)test-printf-size-ieee128.out and
9880 $(objpfx)test-printf-size-ibm128.out.
9881 [subdir == stdio-common] ($(objpfx)test-printf-size-ieee128.out)
9882 ($(objpfx)test-printf-size-ibm128.out): New build and run rules.
9883 * sysdeps/ieee754/ldbl-128ibm-compat/Versions (libc): Add
9884 __printf_sizeieee128.
9885 * sysdeps/ieee754/ldbl-128ibm-compat/ieee128-printf_size.c:
9886 New file.
9887 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ibm128.c:
9888 Likewise.
9889 * sysdeps/ieee754/ldbl-128ibm-compat/test-printf-size-ieee128.c:
9890 Likewise.
9891
9892 2018-07-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9893
9894 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Use uint32_t.
9895 (exp2f_inline): Likewise.
9896 * sysdeps/ieee754/flt-32/math_config.h (__math_oflowf): Likewise.
9897 (__math_uflowf): Likewise.
9898 (__math_may_uflowf): Likewise.
9899 (__math_divzerof): Likewise.
9900 (__math_invalidf): Likewise.
9901 * sysdeps/ieee754/flt-32/math_errf.c (xflowf): Likewise.
9902 (__math_oflowf): Likewise.
9903 (__math_uflowf): Likewise.
9904 (__math_may_uflowf): Likewise.
9905 (__math_divzerof): Likewise.
9906 (__math_invalidf): Likewise.
9907
9908 2018-06-29 DJ Delorie <dj@redhat.com>
9909 Carlos O'Donell <carlos@redhat.com>
9910
9911 [BZ #23329]
9912 * include/libc-symbols.h: Comment the freeres framework.
9913 * include/set-hooks.h: Include libc-symbols.h. Fix comment.
9914 * dlfcn/Makefile (libdl-routines): Add dlfreeres.
9915 * dlfcn/Versions (GLIBC_PRIVATE): Add __libdl_freeres.
9916 * dlfcn/dlerror.c: Include libc-symbols.h
9917 (__dlerror_main_freeres): New function.
9918 * dlfcn/dlfreeres.c: New file.
9919 * dlfcn/sdlfreeres.c: New file.
9920 * include/dlfcn.h: Declare __dlerror_main_freeres.
9921 * malloc/set-freeres.c: Declare __libdl_freeres, and
9922 __libpthread_freeres.
9923 (__libc_subfreeres): Call __libdl_freeres, and __libpthread_freeres if
9924 the releavant libraries are loaded.
9925 * malloc/thread-freeres.c: Add comments.
9926 * nptl/Makefile (libpthread-routines): Add nptlfreeres.
9927 * nptl/Version (GLIBC_PRIVATE): Add __libpthread_freeres.
9928 * nptl/allocatestack.c (__nptl_free_stacks): New function.
9929 (__free_stacks): Rename to...
9930 (free_stacks): ...this. Mark static.
9931 (queue_stack): Call free_stacks.
9932 * nptl/libc_pthread_init.c [SHARED] (freeres_libpthread): Delete.
9933 * nptl/nptl-init.c: Delete delcaration of nptl_freeres.
9934 * sysdeps/nptl/pthread-functions.h (pthread_functions): Remove
9935 ptr_freeres element from struct.
9936 (pthread_functions): Remove .ptr_freeres from struct initializer.
9937 [SHARED] (nptl_freeres): Remove.
9938 * nptl/nptlfreeres.c: New file.
9939 * nptl/pthreadP.h
9940 [IS_IN (libpthread) && SHARED ] (__unwind_freeres): Rename to...
9941 [IS_IN (libpthread)] (__nptl_unwind_freeres): ...this. Mark
9942 attribute_hidden.
9943 (__free_stacks): Rename to...
9944 (__nptl_stacks_freeres): ...this.
9945 (__shm_directory_freeres): Declare.
9946 * nptl/unwind-forcedunwind.c (__unwind_freeres): Rename to...
9947 (__nptl_unwind_freeres): ...this.
9948 * resolv/res-close.c: Add comment.
9949 * resolv/resolv_conf.c: Include libc-symbols.h.
9950 * string/strerror_l.c: Include libc-symbols.h.
9951 * sunrpc/rpc_thread.c: Include libc-symbols.h.
9952 * sysdeps/mach/strerror_l.c: Inlcude libc-symbols.h
9953 * sysdeps/unix/sysv/linux/shm-directory.c (freeit): Rename to...
9954 [IS_IN (libpthread)] (__shm_directory_freeres): ...this.
9955
9956 2018-06-29 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
9957
9958 * stdlib/tst-strfmon_l.c: Add tests for long double.
9959
9960 2018-06-29 Michael Wolf <milupo@sorbzilla.de>
9961
9962 [BZ #23208]
9963 * localedata/SUPPORTED (dsb_DE/UTF-8): New entry.
9964 * localedata/locales/dsb_DE: New file.
9965
9966 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
9967
9968 [BZ #23140]
9969 * localedata/locales/hy_AM (mon): Synchronize with CLDR (lowercase,
9970 genitive case).
9971 (alt_mon): New entry, import from CLDR (nominative case).
9972
9973 2018-06-29 Sylvain Lesage <severo@rednegra.net>
9974
9975 [BZ #22996]
9976 * localedata/locales/es_BO (LC_PAPER): Change to “copy "en_US"”.
9977
9978 2018-06-29 Siddhesh Poyarekar <siddhesh@sourceware.org>
9979
9980 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
9981 Use vector registers.
9982
9983 * sysdeps/aarch64/multiarch/memmove_falkor.S
9984 (__memcpy_falkor): Use vector registers.
9985
9986 2018-06-29 Martin Sebor <msebor@redhat.com>
9987
9988 * manual/stdio.texi (Customizing Printf): Mention interaction
9989 with GCC built-ins.
9990
9991 2018-06-29 Maciej W. Rozycki <macro@mips.com>
9992
9993 [BZ #23307]
9994 * elf/dl-lookup.c (check_match): Do not reject a symbol whose
9995 `st_value' is 0 if `st_shndx' is SHN_ABS.
9996 * elf/tst-absolute-zero.c: New file.
9997 * elf/tst-absolute-zero-lib.c: New file.
9998 * elf/tst-absolute-zero-lib.lds: New file.
9999 * elf/Makefile (tests): Add `tst-absolute-zero'.
10000 (modules-names): Add `tst-absolute-zero-lib'.
10001 (LDLIBS-tst-absolute-zero-lib.so): New variable.
10002 ($(objpfx)tst-absolute-zero-lib.so): New dependency.
10003 ($(objpfx)tst-absolute-zero: New dependency.
10004
10005 2018-06-29 Zack Weinberg <zackw@panix.com>
10006
10007 * configure.ac: New command-line option --disable-crypt.
10008 Force --disable-nss-crypt when --disable-crypt is given, with a
10009 warning if it was explicitly enabled.
10010 * configure: Regenerate.
10011 * config.make.in: New boolean substitution variable $(build-crypt).
10012 * Makeconfig: Only include 'crypt' in all-subdirs and rpath-dirs
10013 when $(build-crypt).
10014 * manual/install.texi: Document --disable-crypt.
10015 * INSTALL: Regenerate.
10016
10017 * crypt/Makefile: Remove code conditional on $(crypt-in-libc),
10018 which is never set.
10019 * conform/Makefile: Only include libcrypt.a in
10020 linknamespace-libs-xsi and linknamespace-libs-XPG4
10021 when $(build-crypt).
10022 * elf/Makefile (CFLAGS-tst-linkall-static.c): Only define
10023 USE_CRYPT to 1 when $(build-crypt).
10024 (tst-linkall-static): Only link libcrypt.a when $(build-crypt).
10025 (localplt-built-dso): Only add libcrypt.so when $(build-crypt).
10026 * elf/tst-linkall-static.c: Only include crypt.h when USE_CRYPT.
10027
10028 2018-06-29 Zack Weinberg <zackw@panix.com>
10029
10030 * crypt/crypt.h, posix/unistd.h: Update comments and
10031 prototypes for crypt and crypt_r.
10032
10033 * manual/crypt.texi (Cryptographic Functions): New initial
10034 exposition.
10035 (crypt): Section renamed to 'Passphrase Storage'. Full rewrite.
10036 (Unpredictable Bytes): Improve initial exposition. Clarify error
10037 behavior of getentropy and getrandom.
10038 * manual/examples/genpass.c: Generate a salt using getentropy
10039 instead of the current time. Use hash $5$ (SHA-2-256).
10040 * manual/examples/testpass.c: Demonstrate validation against
10041 hashes generated with three different one-way functions.
10042
10043 * manual/intro.texi: crypt.texi does not need an overview
10044 anymore.
10045
10046 * manual/nss.texi, manual/memory.texi, manual/socket.texi
10047 * manual/terminal.texi: Consistently refer to "passphrases"
10048 * instead of "passwords", and to the "user database" instead
10049 * of the "password database".
10050 * manual/users.texi: Similarly. Add notes about how actual
10051 passphrase hashes are now stored in the shadow database.
10052 Remove 20-year-old junk todo note.
10053
10054 2018-06-29 Zack Weinberg <zackw@panix.com>
10055
10056 * manual/crypt.texi: Use a normal top-level @node declaration.
10057 Move most of the introductory text to the 'crypt' section.
10058 Move the example programs below the @deftypefun for 'crypt_r'.
10059 Move the 'getpass' section...
10060 * manual/terminal.texi: ...here.
10061
10062 2018-06-29 Zack Weinberg <zackw@panix.com>
10063 Florian Weimer <fweimer@redhat.com>
10064
10065 * posix/unistd.h: Do not declare encrypt.
10066 (_XOPEN_CRYPT): Remove macro definition.
10067 (crypt): Declare only for _USE_MISC.
10068 * stdlib/stdlib.h: Do not declare setkey.
10069 * crypt/crypt.h: Do not declare encrypt, setkey, encrypt_r, setkey_r.
10070 * sunrpc/Makefile: Do not install des_crypt.h nor rpc_des.h.
10071
10072 * crypt/crypt-entry.c: Make fcrypt a compat symbol.
10073 * crypt/crypt_util.c: Make encrypt, encrypt_r, setkey, setkey_r
10074 into compat symbols. Don't define initial_perm if it's not
10075 going to be used.
10076 * crypt/cert.c: Link explicitly with the expected versions for
10077 setkey and encrypt. If they are not available at all, mark
10078 the test as unsupported.
10079
10080 * sunrpc/des_crypt.c: Unconditionally block linkage with
10081 cbc_crypt and ecb_crypt for new binaries.
10082 * sunrpc/des_soft.c: Unconditionally block linkage with
10083 des_setparity for new binaries.
10084
10085 * manual/crypt.texi: Remove the entire "DES Encryption"
10086 section. Also remove the paragraph talking about FIPS 140-2
10087 from the introduction.
10088 * manual/string.texi (strfry, memfrob): Revise. Recommend use
10089 of libgcrypt for "real" encryption, not DES.
10090 * manual/conf.texi (Constants for Sysconf): Mention that
10091 _XOPEN_CRYPT is no longer impelemented.
10092
10093 * conform/data/unistd.h-data: Remove crypt function declaration.
10094
10095 2018-06-29 Florian Weimer <fweimer@redhat.com>
10096
10097 [BZ #23351]
10098 * malloc/hooks.c: Update comments on restoring of dumped heaps.
10099 (disallow_malloc_check): Remove variable.
10100 (__malloc_check_init): Adjust.
10101 (malloc_set_state): Update comment.
10102 * malloc/malloc.c (__malloc_get_state, __malloc_set_state): Remove
10103 declarations.
10104
10105 2018-06-29 Rafal Luzynski <digitalfreak@lingonborough.com>
10106
10107 [BZ #23140]
10108 * localedata/locales/ast_ES (mon): Rename to...
10109 (alt_mon): This.
10110 (mon): Import from CLDR (genitive case).
10111
10112 2018-06-29 Daniel Alvarez <dalvarez@redhat.com>
10113 Jakub Sitnicki <jkbs@redhat.com>
10114
10115 [BZ #21812]
10116 * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Retry
10117 on NLM_F_DUMP_INTR.
10118
10119 2018-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
10120
10121 * manual/llio.texi: Remove spurious space.
10122
10123 2018-06-28 Florian Weimer <fweimer@redhat.com>
10124
10125 [BZ #23349]
10126 * time/bits/types/struct_timespec.h: Change header inclusion guard to
10127 _STRUCT_TIMESPEC.
10128
10129 2018-06-28 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
10130
10131 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __strfromieee128,
10132 __strtoieee128, __strtoieee128_l,__wcstoieee128 and __wcstoieee128_l.
10133 * sysdeps/ieee754/ldbl-128ibm-compat/strfromf128.c: New file.
10134 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128.c: New file.
10135 * sysdeps/ieee754/ldbl-128ibm-compat/strtof128_l.c: New file.
10136 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128.c: New file.
10137 * sysdeps/ieee754/ldbl-128ibm-compat/wcstof128_l.c: New file.
10138
10139 2018-06-27 Maciej W. Rozycki <macro@mips.com>
10140
10141 [BZ #23266]
10142 * nis/nss_nisplus/nisplus-parser.c (_nss_nisplus_parse_pwent):
10143 Copy and null-terminate entries that are not terminated, in
10144 addition to empty ones.
10145
10146 2018-06-27 Florian Weimer <fweimer@redhat.com>
10147
10148 [BZ #18023]
10149 * include/alloca.h (stackinfo_alloca_round, extend_alloca)
10150 (extend_alloca_account): Remove.
10151 * manual/stdio.texi (Variable Arguments Output): Update comment.
10152
10153 2018-06-27 Joseph Myers <joseph@codesourcery.com>
10154
10155 * nptl/sockperf.c: Remove file.
10156
10157 2018-06-27 Florian Weimer <fweimer@redhat.com>
10158
10159 [BZ #18023]
10160 * elf/dl-deps.c (_dl_map_object_deps): Use struct
10161 scratch_buffer instead of extend_alloca.
10162
10163 2018-06-27 Florian Weimer <fweimer@redhat.com>
10164
10165 [BZ #18023]
10166 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Use struct
10167 scratch_buffer instead of extend_alloca. Update comments.
10168
10169 2018-06-27 Florian Weimer <fweimer@redhat.com>
10170
10171 [BZ #18023]
10172 * posix/wordexp.c (parse_tilde): Use struct scratch_buffer
10173 instead of extend_alloca.
10174
10175 2018-06-26 Joseph Myers <joseph@codesourcery.com>
10176
10177 [BZ #13888]
10178 * posix/Makefile (CFLAGS-tst-spawn3.c): New variable.
10179 * posix/tst-spawn3.c (do_test): Put tst-spwan3.pid in OBJPFX, not
10180 /tmp.
10181 * scripts/test-installation.pl: Put temporary files in build
10182 directory, not /tmp.
10183 * stdio-common/Makefile (CFLAGS-bug3.c): New variable.
10184 (CFLAGS-bug4.c): Likewise.
10185 (CFLAGS-bug5.c): Likewise.
10186 (CFLAGS-test-fseek.c): Likewise.
10187 (CFLAGS-test-popen.c): Likewise.
10188 (CFLAGS-test_rdwr.c): Likewise.
10189 * stdio-common/bug3.c (main): Put temporary file in OBJPFX, not
10190 /tmp.
10191 * stdio-common/bug4.c (main): Likewise.
10192 * stdio-common/bug5.c (main): Likewise.
10193 * stdio-common/test-fseek.c (TESTFILE): Likewise.
10194 * stdio-common/test-popen.c (do_test): Likewise.
10195 * stdio-common/test_rdwr.c (main): Likewise.
10196
10197 2018-06-26 Patsy Franklin <pfrankli@redhat.com>
10198
10199 * nptl/sem_open.c [!__HAVE_64B_ATOMICS] (sem_open): Don't update pad.
10200 (sem_open): Set sem.newsem.pad to zero for valgrind.
10201
10202 2018-06-26 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10203
10204 [BZ #20251]
10205 * NEWS: Mention fcntl64 addition.
10206 * csu/check_fds.c: Replace __fcntl_nocancel by __fcntl64_nocancel.
10207 * login/utmp_file.c: Likewise.
10208 * sysdeps/posix/fdopendir.c: Likewise.
10209 * sysdeps/posix/opendir.c: Likewise.
10210 * sysdeps/unix/pt-fcntl.c: Likewise.
10211 * include/fcntl.h (__libc_fcntl64, __fcntl64,
10212 __fcntl64_nocancel_adjusted): New prototype.
10213 (__fcntl_nocancel_adjusted): Remove prototype.
10214 * io/Makefile (routines): Add fcntl64.
10215 (CFLAGS-fcntl64.c): New rule.
10216 * io/Versions [GLIBC_2.28] (fcntl64): New symbol.
10217 [GLIBC_PRIVATE] (__libc_fcntl): Rename to __libc_fcntl64.
10218 * io/fcntl.h (fcntl64): Add prototype and redirect if
10219 __USE_FILE_OFFSET64 is defined.
10220 * io/fcntl64.c: New file.
10221 * manual/llio.text: Add a note for which commands fcntl acts a
10222 cancellation point.
10223 * nptl/Makefile (CFLAGS-fcntl64.c): New rule.
10224 * sysdeps/mach/hurd/fcntl.c: Alias fcntl to fcntl64 symbols.
10225 * sysdeps/mach/hurd/i386/libc.abilist [GLIBC_2.28] (fcntl, fcntl64):
10226 New symbols.
10227 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Fix F_GETLK64,
10228 F_OFD_GETLK, F_SETLK64, F_SETLKW64, F_OFD_SETLK, and F_OFD_SETLKW for
10229 non-LFS case.
10230 * sysdeps/unix/sysv/linux/fcntl64.c: New file.
10231 * sysdeps/unix/sysv/linux/fcntl_nocancel.c (__fcntl_nocancel): Rename
10232 to __fcntl64_nocancel.
10233 (__fcntl_nocancel_adjusted): Rename to __fcntl64_nocancel_adjusted.
10234 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Rename
10235 to __fcntl64_nocancel.
10236 * sysdeps/generic/not-cancel.h: Likewise.
10237 * sysdeps/unix/sysv/linux/tst-ofdlocks.c: New file.
10238 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-ofdlocks.
10239 * sysdeps/unix/sysv/linux/aarch64/libc.abilist [GLIBC_2.28]
10240 (fcntl64): New symbol.
10241 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
10242 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
10243 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
10244 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
10245 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
10246 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
10247 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
10248 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
10249 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
10250 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
10251 * sysdeps/unix/sysv/linux/arm/libc.abilist [GLIBC_2.28] (fcntl,
10252 fcntl64): Likewise.
10253 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
10254 * sysdeps/unix/sysv/linux/i386/libc.abilis: Likewise.
10255 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
10256 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
10257 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
10258 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
10259 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
10260 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
10261 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
10262 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
10263 Likewise.
10264 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
10265 Likewise.
10266 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
10267 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
10268 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
10269
10270 2018-06-26 Florian Weimer <fweimer@redhat.com>
10271
10272 Run thread shutdown functions in an explicit order.
10273 * malloc/thread-freeres.c (__libc_thread_subfreeres): Remove hook
10274 definition.
10275 (__libc_thread_freeres): Call thread shutdown functions
10276 explicitly.
10277 * include/rpc/rpc.h (__rpc_thread_destroy): Add hidden attribute.
10278 * include/string.h (__strerror_thread_freeres): Declare.
10279 * malloc/arena.c (__malloc_arena_thread_freeres): Renamed from
10280 arena_thread_freeres. No longer static. Remove thread shutdown
10281 hook registration.
10282 * malloc/malloc-internal.h (__malloc_arena_thread_freeres):
10283 Declare.
10284 * resolv/res-close.c (__res_thread_freeres): Renamed from
10285 res_thread_freeres. No longer static. Remove thread shutdown
10286 hook registration.
10287 * resolv/resolv-internal.h (__res_thread_freeres): Declare.
10288 * resolv/resolv_conf.c (freeres): Remove incorrect section
10289 attribute and use libc_freeres_fn.
10290 * string/strerror_l.c (__strerror_thread_freeres): Renamed from
10291 strerror_thread_freeres. No longer static. Remove thread
10292 shutdown hook registration.
10293 * sysdeps/mach/strerror_l.c (__strerror_thread_freeres): Likewise.
10294 * sunrpc/rpc_thread.c (__rpc_thread_destroy): Remove thread
10295 shutdown hook registration.
10296 * Makerules (shlib.lds): Do not provide section boundary symbols
10297 for __libc_thread_subfreeres.
10298 * manual/memory.texi (Basic Allocation): Update comment.
10299
10300 2018-06-26 Florian Weimer <fweimer@redhat.com>
10301
10302 Remove always-defined _RPC_THREAD_SAFE_ macro.
10303 * sunrpc/Makefile (sunrpc-CPPFLAGS, CPPFLAGS, BUILD_CPPFLAGS):
10304 Do not define _RPC_THREAD_SAFE_.
10305 * include/rpc/rpc.h: Remove _RPC_THREAD_SAFE_ preprocessor
10306 conditional.
10307 * sunrpc/clnt_perr.c: Likewise.
10308 * sunrpc/clnt_raw.c: Likewise.
10309 * sunrpc/clnt_simp.c: Likewise.
10310 * sunrpc/key_call.c: Likewise.
10311 * sunrpc/rpc_common.c: Likewise.
10312 * sunrpc/rpc_main.c: Likewise.
10313 * sunrpc/rpc_thread.c: Likewise.
10314 * sunrpc/svc.c: Likewise.
10315 * sunrpc/svc_raw.c: Likewise.
10316 * sunrpc/svc_simple.c: Likewise.
10317 * sumrpc/svcauth_des.c: Likewise.
10318
10319 2018-06-26 Florian Weimer <fweimer@redhat.com>
10320
10321 * libio/Makefile (tests-internal): Add tst-vtables,
10322 tst-vtables-interposed.
10323 * libio/tst-vtables.c: New file.
10324 * libio/tst-vtables-common.c: Likewise.
10325 * libio/tst-vtables-interposed.c: Likewise.
10326
10327 2018-06-26 Florian Weimer <fweimer@redhat.com>
10328
10329 * support/support_test_main.c (support_test_main): Only call
10330 setvbuf if not disables.
10331 * support/test-driver.c (main): Check TEST_NO_SETVBUF.
10332 * support/test-driver.h (struct test_config): Add no_setvbuf member.
10333
10334 2018-06-26 Florian Weimer <fweimer@redhat.com>
10335
10336 [BZ #23313]
10337 * libio/vtables.c (check_stdfiles_vtables): New ELF constructor.
10338
10339 2018-06-25 Florian Weimer <fweimer@redhat.com>
10340
10341 [BZ #18023]
10342 * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10343 Use struct scratch_buffer instead of extend_alloca.
10344
10345 2018-06-25 Florian Weimer <fweimer@redhat.com>
10346
10347 [BZ #18023]
10348 * nss/getent.c (initgroups_keys): Use dynarray instead of
10349 extend_alloca.
10350
10351 2018-06-25 Florian Weimer <fweimer@redhat.com>
10352
10353 [BZ #18023]
10354 * nis/nss_nis/nis-initgroups.c (get_uid, _nss_nis_initgroups_dyn):
10355 Use struct scratch_buffer instead of extend_alloca.
10356
10357 2018-06-25 Florian Weimer <fweimer@redhat.com>
10358
10359 [BZ #18023]
10360 * nss/nss_compat/compat-initgroups.c (getgrent_next_nss): Fall
10361 back to malloc directly, without stack allocations.
10362
10363 2018-06-25 Florian Weimer <fweimer@redhat.com>
10364
10365 [BZ #18023]
10366 * nscd/aicache.c (addhstaiX): Use struct scratch_buffer instead
10367 of extend_alloca.
10368
10369 2018-06-25 Florian Weimer <fweimer@redhat.com>
10370
10371 [BZ #18023]
10372 * nscd/grpcache.c (addgrbyX): Use struct scratch_buffer instead
10373 of extend_alloca.
10374 * nscd/hstcache.c (addhstbyX): Likewise.
10375 * nscd/pwdcache.c (addpwbyX): Likewise.
10376 * nscd/servicescache.c (addservbyX): Likewise.
10377
10378 2018-06-25 Florian Weimer <fweimer@redhat.com>
10379
10380 [BZ #18023]
10381 * nscd/connections.c (read_cmdline): New function.
10382 (restart): Use it. Update comment.
10383
10384 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10385
10386 [BZ #23140]
10387 * localedata/locales/csb_PL (mon): Rename to...
10388 (alt_mon): This.
10389 (abmon): Rename to...
10390 (ab_alt_mon): This.
10391 (mon): Add with proper genitive forms, copy from Wikipedia.
10392 (abmon): Likewise.
10393
10394 2018-06-25 Rafal Luzynski <digitalfreak@lingonborough.com>
10395
10396 [BZ #19485]
10397 * localedata/locales/csb_PL (mon): Fix typos:
10398 "łżëkwiôt" -> "łżëkwiat" (April); "lëpinc" -> "lëpińc" (July).
10399 (yesstr): Add, value is "jo".
10400 (nostr): Add, value is "nié".
10401
10402 2018-06-22 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10403
10404 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Set as the generic file for
10405 all log1p and significand functions on m680x0.
10406 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_log1p.c instead
10407 of s_significand.c..
10408 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Likewise.
10409 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Likewise.
10410 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Likewise.
10411 * sysdeps/m68k/m680x0/fpu/s_significand.c: Move all the code to
10412 s_log1p.c and include it..
10413
10414 2018-06-21 Vincent Chen <vincentc@andestech.com>
10415
10416 * elf/elf.h (R_NDS32_NONE): New define.
10417 (R_NDS32_32_RELA): Likewise.
10418 (R_NDS32_COPY): Likewise.
10419 (R_NDS32_GLOB_DAT): Likewise.
10420 (R_NDS32_JUMP_SLOT): Likewise.
10421 (R_NDS32_RELATIVE): Likewise.
10422 (R_NDS32_TLS_TPOFF): Likewise.
10423 (R_NDS32_TLS_DESC): Likewise.
10424
10425 2018-06-21 Mark Wielaard <mark@klomp.org>
10426
10427 * elf/elf.h (R_BPF_MAP_FD): Removed.
10428 (R_BPF_64_64, R_BPF_64_32): New.
10429
10430 2018-06-21 Florian Weimer <fweimer@redhat.com>
10431
10432 [BZ #23253]
10433 * sysdeps/generic/math_private.h (default_libc_feholdsetround_ctx):
10434 Renamed from libc_feholdsetround_ctx.
10435 (default_libc_feresetround_ctx): Renamed from
10436 libc_feresetround_ctx.
10437 (default_libc_feholdsetround_noex_ctx): Renamed from
10438 libc_feholdsetround_noex_ctx.
10439 (default_libc_feresetround_noex_ctx): Renamed from
10440 libc_feresetround_noex_ctx.
10441 [!HAVE_RM_CTX] (libc_feholdsetround_ctx, libc_feresetround_ctx)
10442 (libc_feholdsetround_noex_ctx, libc_feresetround_noex_ctx): Macros
10443 forwardning to the old implementations under the new names.
10444 * sysdeps/i386/fpu/fenv_private.h [__SSE_MATH__]
10445 (libc_feholdexcept_setround_ctx, libc_fesetenv_ctx)
10446 (libc_feupdateenv_ctx, libc_feholdsetround_ctx)
10447 (libc_feresetround_ctx): Forward to default implements for i386
10448 and MATH_SET_BOTH_ROUNDING_MODES.
10449 * sysdeps/i386/Makefile [$(subdir) == math] (CFLAGS-e_gamma_r.c):
10450 Add -DMATH_SET_BOTH_ROUNDING_MODES.
10451
10452 2018-06-20 Joseph Myers <joseph@codesourcery.com>
10453
10454 * string/tst-cmp.c: Include <libc-diag.h>.
10455 (strncmp_max): Disable -Wstringop-overflow= around call to
10456 strncmp.
10457 (strncasecmp_max): Disable -Wstringop-overflow= around call to
10458 strncasecmp.
10459
10460 * string/bug-strpbrk1.c: Include <libc-diag.h>.
10461 (main): Disable -Wunused-value around call to strpbrk.
10462 * string/bug-strspn1.c: Include <libc-diag.h>.
10463 (main): Disable -Wunused-value around call to strspn.
10464
10465 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10466 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
10467
10468 * sysdeps/ieee754/ldbl-128ibm-compat/Versions: New file.
10469 * sysdeps/ieee754/ldbl-128ibm-compat/libm-alias-float128.h: New file.
10470
10471 2018-06-20 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10472
10473 * math/Makefile (libm-calls): Move s_significandF to...
10474 (gen-libm-calls): ... here.
10475 * math/s_significand_template.c: New file.
10476 * math/s_significand.c: Removed.
10477 * math/s_significandf.c: Removed.
10478 * math/s_significandl.c: Removed.
10479 * sysdeps/ieee754/ldbl-opt/s_significand.c: Removed.
10480 * sysdeps/ieee754/ldbl-opt/s_significandl.c: Removed.
10481
10482 * math/e_exp2_template.c (declare_mgen_finite_alias,
10483 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): Move to...
10484 * sysdeps/generic/math-type-macros.h (declare_mgen_finite_alias,
10485 declare_mgen_finite_alias_s, declare_mgen_finite_alias_x): ... here.
10486
10487 2018-06-20 Florian Weimer <fweimer@redhat.com>
10488
10489 * libio/libioP.h (IO_validate_vtable): Avoid ptrdiff_t overflow.
10490
10491 2018-06-19 Joseph Myers <joseph@codesourcery.com>
10492
10493 [BZ #23280]
10494 * stdio-common/vfscanf.c (_IO_vfscanf_internal): Pass sign of
10495 floating-point number to strtod functions rather than possibly
10496 negating result of those functions.
10497 * stdio-common/tst-scanf-round.c: New file.
10498 * stdio-common/Makefile (tests): Add tst-scanf-round.
10499 ($(objpfx)tst-scanf-round): Depend on $(libm).
10500
10501 2018-06-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
10502
10503 * sysdeps/mach/hurd/localplt.data: Move to...
10504 * sysdeps/mach/hurd/i386/localplt.data: new file. Add + REL
10505 R_386_GLOB_DAT like on Linux i386.
10506
10507 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10508
10509 * sysdeps/unix/sysv/linux/alpha/bits/shm.h [__USE_MISC]
10510 (SHM_STAT_ANY): New macro.
10511 * sysdeps/unix/sysv/linux/arm/bits/shm.h [__USE_MISC]
10512 (SHM_STAT_ANY): Likewise.
10513 * sysdeps/unix/sysv/linux/bits/shm.h [__USE_MISC]
10514 (SHM_STAT_ANY): Likewise.
10515 * sysdeps/unix/sysv/linux/generic/bits/shm.h [__USE_MISC]
10516 (SHM_STAT_ANY): Likewise.
10517 * sysdeps/unix/sysv/linux/hppa/bits/shm.h [__USE_MISC]
10518 (SHM_STAT_ANY): Likewise.
10519 * sysdeps/unix/sysv/linux/ia64/bits/shm.h [__USE_MISC]
10520 (SHM_STAT_ANY): Likewise.
10521 * sysdeps/unix/sysv/linux/mips/bits/shm.h [__USE_MISC]
10522 (SHM_STAT_ANY): Likewise.
10523 * sysdeps/unix/sysv/linux/powerpc/bits/shm.h [__USE_MISC]
10524 (SHM_STAT_ANY): Likewise.
10525 * sysdeps/unix/sysv/linux/s390/bits/shm.h [__USE_MISC]
10526 (SHM_STAT_ANY): Likewise.
10527 * sysdeps/unix/sysv/linux/sh/bits/shm.h [__USE_MISC]
10528 (SHM_STAT_ANY): Likewise.
10529 * sysdeps/unix/sysv/linux/sparc/bits/shm.h [__USE_MISC]
10530 (SHM_STAT_ANY): Likewise.
10531 * sysdeps/unix/sysv/linux/x86/bits/shm.h [__USE_MISC]
10532 (SHM_STAT_ANY): Likewise.
10533
10534 * sysdeps/unix/sysv/linux/alpha/bits/sem.h [__USE_MISC]
10535 (SEM_STAT_ANY): New macro.
10536 * sysdeps/unix/sysv/linux/bits/sem.h [__USE_MISC]
10537 (SEM_STAT_ANY): Likewise.
10538 * sysdeps/unix/sysv/linux/generic/bits/sem.h [__USE_MISC]
10539 (SEM_STAT_ANY): Likewise.
10540 * sysdeps/unix/sysv/linux/hppa/bits/sem.h [__USE_MISC]
10541 (SEM_STAT_ANY): Likewise.
10542 * sysdeps/unix/sysv/linux/ia64/bits/sem.h [__USE_MISC]
10543 (SEM_STAT_ANY): Likewise.
10544 * sysdeps/unix/sysv/linux/mips/bits/sem.h [__USE_MISC]
10545 (SEM_STAT_ANY): Likewise.
10546 * sysdeps/unix/sysv/linux/powerpc/bits/sem.h [__USE_MISC]
10547 (SEM_STAT_ANY): Likewise.
10548 * sysdeps/unix/sysv/linux/s390/bits/sem.h [__USE_MISC]
10549 (SEM_STAT_ANY): Likewise.
10550 * sysdeps/unix/sysv/linux/sparc/bits/sem.h [__USE_MISC]
10551 (SEM_STAT_ANY): Likewise.
10552 * sysdeps/unix/sysv/linux/x86/bits/sem.h [__USE_MISC]
10553 (SEM_STAT_ANY): Likewise.
10554
10555 * sysdeps/unix/sysv/linux/alpha/bits/msq.h [__USE_MISC]
10556 (MSG_STAT_ANY): New macro.
10557 * sysdeps/unix/sysv/linux/bits/msq.h [__USE_MISC]
10558 (MSG_STAT_ANY): Likewise.
10559 * sysdeps/unix/sysv/linux/generic/bits/msq.h [__USE_MISC]
10560 (MSG_STAT_ANY): Likewise.
10561 * sysdeps/unix/sysv/linux/hppa/bits/msq.h [__USE_MISC]
10562 (MSG_STAT_ANY): Likewise.
10563 * sysdeps/unix/sysv/linux/ia64/bits/msq.h [__USE_MISC]
10564 (MSG_STAT_ANY): Likewise.
10565 * sysdeps/unix/sysv/linux/mips/bits/msq.h [__USE_MISC]
10566 (MSG_STAT_ANY): Likewise.
10567 * sysdeps/unix/sysv/linux/powerpc/bits/msq.h [__USE_MISC]
10568 (MSG_STAT_ANY): Likewise.
10569 * sysdeps/unix/sysv/linux/s390/bits/msq.h [__USE_MISC]
10570 (MSG_STAT_ANY): Likewise.
10571 * sysdeps/unix/sysv/linux/sparc/bits/msq.h [__USE_MISC]
10572 (MSG_STAT_ANY): Likewise.
10573 * sysdeps/unix/sysv/linux/x86/bits/msq.h [__USE_MISC]
10574 (MSG_STAT_ANY): Likewise.
10575
10576 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10577 (MAP_TYPE): Change value to 0x2b.
10578
10579 2018-06-18 Florian Weimer <fweimer@redhat.com>
10580
10581 [BZ #15722]
10582 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Create Netlink
10583 socket with SOCK_CLOEXEC.
10584
10585 2018-06-18 Joseph Myers <joseph@codesourcery.com>
10586
10587 [BZ #23303]
10588 * sysdeps/powerpc/powerpc64/le/Makefile
10589 (CFLAGS-tst-strtod-nan-sign.c): Add -mfloat128.
10590 (CFLAGS-tst-wcstod-nan-sign.c): Likewise.
10591 (gnulib-tests): Also add $(f128-loader-link) for
10592 tst-strtod-nan-sign abd tst-wcstod-nan-sign.
10593
10594 2018-06-15 Samuel Thibault <samuel.thibault@ens-lyon.org>
10595
10596 * include/sys/sendfile.h (__sendfile64): Declare hidden prototype.
10597 * sysdeps/mach/hurd/sendfile.c (sendfile): Call __sendfile64 instead
10598 of sendfile.
10599 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Rename to __sendfile64.
10600 (sendfile64): New strong alias.
10601 * sysdeps/mach/hurd/lseek.c: Include <errno.h>.
10602 * sysdeps/mach/hurd/lseek.c (__libc_lseek): Check that the value
10603 returned by __lseek64 can fit off_t, return EOVERFLOW otherwise.
10604 * sysdeps/htl/pthreadP.h (___pthread_get_cleanup_stack): Add hidden
10605 attribute.
10606 * htl/pt-join.c (__pthread_get_cleanup_stack): Define to
10607 ___pthread_get_cleanup_stack.
10608 * sysdeps/mach/hurd/localplt.data (ld.so): Make ref to __open optional.
10609 * sysdeps/mach/include/mach-shortcuts-hidden.h: New file.
10610 * mach/shortcut.awk: Make syscall stubs include
10611 <mach-shortcuts-hidden.h> and add hidden definition.
10612 * sysdeps/mach/include/mach.h: Include <mach-shortcuts-hidden.h>.
10613 (__mach_msg): Add hidden prototype.
10614 * mach/msg.c: Include <mach.h>.
10615 (__mach_msg): Add hidden definition.
10616 * mach/Makefile ($(mach-syscalls:%=$(objpfx))): Add hidden definition.
10617 * sysdeps/mach/include/mach/mach_traps.h (__mach_reply_port,
10618 __mach_thread_self, __mach_task_self, __mach_host_self, __swtch,
10619 __swtch_pri, __thread_switch, __evc_wait): Add hidden prototypes.
10620 * sysdeps/mach/hurd/localplt.data (siglongjmp, longjmp,
10621 __libc_lseek64, _IO_funlockfile): Whitelist PLT references.
10622 * sysdeps/hurd/include/hurd/signal.h (_hurd_self_sigstate): Add hidden
10623 prototype and definition.
10624 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Use
10625 hidden target for _hurd_self_sigstate.
10626
10627 2018-06-15 Joseph Myers <joseph@codesourcery.com>
10628
10629 [BZ #23007]
10630 * stdlib/tst-strtod-nan-sign-main.c: New file.
10631 * stdlib/tst-strtod-nan-sign.c: Likewise.
10632 * wcsmbs/tst-wcstod-nan-sign.c: Likewise.
10633 * stdlib/Makefile (tests): Add tst-strtod-nan-sign.
10634 ($(objpfx)tst-strtod-nan-sign): Depend on $(libm).
10635 * wcsmbs/Makefile (tests) Add tst-wcstod-nan-sign.
10636 ($(objpfx)tst-wcstod-nan-sign): Depend on $(libm).
10637
10638 2018-06-15 Herman ten Brugge <hermantenbrugge@home.nl>
10639
10640 [BZ #23007]
10641 * stdlib/strtod_l.c (____STRTOF_INTERNAL): Return NaN of
10642 appropriate sign.
10643
10644 2018-06-14 Florian Weimer <fweimer@redhat.com>
10645
10646 [BZ #23290]
10647 * localedata/charmaps/IBM273: Map codepoint 0xbc to U+00AF, so
10648 that the result stays within the ISO-8859-1 range.
10649 * iconvdata/ibm273.c (HAS_HOLES): Define as 0 because all 256
10650 characters are defined in IBM273.
10651
10652 2018-06-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
10653
10654 * sysdeps/mach/include/mach/mach_traps.h (__mach_thread_self,
10655 __mach_task_self): Remove attribute_hidden.
10656
10657 2018-06-14 Joseph Myers <joseph@codesourcery.com>
10658
10659 * string/tester.c (test_strncat) [__GNUC_PREREQ (7, 0)]: Also
10660 ignore -Wrestrict for one test.
10661
10662 2018-06-14 Steve Ellcey <sellcey@caviumnetworks.com>
10663 Szabolcs Nagy <szabolcs.nagy@arm.com>
10664
10665 * sysdeps/unix/sysv/linux/aarch64/gettimeofday.c: New file.
10666
10667 2018-06-14 Florian Weimer <fweimer@redhat.com>
10668
10669 * scripts/update-abilist.sh: Accept empty list of files to patch.
10670
10671 2018-06-13 Samuel Thibault <samuel.thibault@ens-lyon.org>
10672
10673 * sysdeps/mach/hurd/i386/Makefile (test-xfail-check-abi-libhurduser,
10674 test-xfail-check-abi-libmachuser): Add.
10675 * sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
10676 __libc_read and __libc_write to __read and __write.
10677 * sysdeps/hurd/include/hurd/port.h: New file.
10678 * mach/mach/mach_traps.h (__mach_reply_port, __mach_thread_self,
10679 __mach_task_self, __mach_host_self, __swtch, __swtch_pri,
10680 __thread_switch, __evc_wait): Move declarations to...
10681 * sysdeps/mach/include/mach/mach_traps.h: ... new file, and add
10682 attribute_hidden.
10683 * sysdeps/mach/hurd/i386/____longjmp_chk.S (____longjmp_chk): Do not
10684 use PLT to call _hurd_self_sigstate.
10685
10686 2018-06-13 Joseph Myers <joseph@codesourcery.com>
10687
10688 [BZ #23279]
10689 * stdlib/strtod_l.c (round_and_return): Handle an exponent of
10690 MAX_EXP as overflowing.
10691 * stdlib/gen-tst-strtod-round.c (string_to_fp): Clear MPFR
10692 overflow flag.
10693 (round_str): Output also whether result overflows in each rounding
10694 mode.
10695 * stdlib/tst-strtod-round-data: Add more tests.
10696 * stdlib/tst-strtod-round-data.h: Regenerated.
10697 * stdlib/tst-strtod-round-skeleton.c (_XNTRY): Update comment.
10698 (TEST): Handle extra arguments for overflow flags.
10699 (struct test_overflow): New type.
10700 [!FE_OVERFLOW] (FE_OVERFLOW): Define to 0.
10701 (GEN_ONE_TEST): Clear all exceptions. Test overflow flag.
10702 (test_in_one_mode): Take argument with overflow information.
10703 (do_test): Update calls to test_in_one_mode.
10704
10705 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10706
10707 * elf/dl-load (_dl_dst_substitute): Correct comment.
10708 (_dl_dst_count): Likewise.
10709
10710 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Call
10711 lll_futex_timed_wait.
10712
10713 2018-06-12 Joseph Myers <joseph@codesourcery.com>
10714
10715 [BZ #23277]
10716 * math/bits/mathcalls.h [__USE_ISOC99] (nan): Do not use __const__
10717 attribute.
10718 * math/test-nan-const.c: New file.
10719 * math/Makefile (tests): Add test-nan-const.
10720 (CFLAGS-test-nan-const.c): New variable.
10721
10722 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10723
10724 * benchtests/scripts/compare_strings.py (process_results): Add
10725 funcs argument. Compare only functions which are selected.
10726 (main): Check if base function is among selected functions.
10727 Pass selected functions to process_results.
10728 (__main__): Add -f/--functions argument.
10729
10730 2018-06-12 Minfeng Kang <minfeng.kang@hxt-semitech.com>
10731 Hongbo Zhang <hongbo.zhang@linaro.org>
10732
10733 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): reuse
10734 __memcpy_falkor for phecda core.
10735 * sysdeps/aarch64/multiarch/memmove.c (libc_ifunc): reuse
10736 __memmove_falkor for phecda core.
10737 * sysdeps/aarch64/multiarch/memset.c (libc_ifunc): reuse
10738 __memset_falkor for phecda core.
10739 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c: add MIDR entry
10740 for phecda core.
10741 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_PHECDA): add
10742 macro to identify phecda core.
10743
10744 2018-06-12 Carlos O'Donell <carlos@redhat.com>
10745 Andreas Schwab <schwab@suse.de>
10746 Dmitry V. Levin <ldv@altlinux.org>
10747 Florian Weimer <fweimer@redhat.com>
10748
10749 [BZ #23102]
10750 [BZ #21942]
10751 [BZ #18018]
10752 [BZ #23259]
10753 CVE-2011-0536
10754 * elf/dl-dst.h: Remove DL_DST_COUNT.
10755 * elf/dl-deps.c (expand_dst): Call _dl_dst_count.
10756 * elf/dl-load.c (is_trusted_path_normalize): Don't handle colons.
10757 (is_dst): Comment. Support ELF gABI.
10758 (_dl_dst_count): Comment. Simplify and count DSTs.
10759 (_dl_dst_substitute): Comment. Support __libc_enable_secure handling.
10760 (expand_dybamic_string_token): Comment. Call _dl_dst_count. Rename
10761 locals.
10762
10763 2018-06-12 Zack Weinberg <zackw@panix.com>
10764
10765 * elf/dl-load.c, elf/dl-misc.c, elf/dl-profile.c, elf/rtld.c
10766 * sysdeps/unix/sysv/linux/dl-sysdep.c
10767 Include not-cancel.h. Use __close_nocancel instead of __close,
10768 __open64_nocancel instead of __open, __read_nocancel instead of
10769 __libc_read, and __write_nocancel instead of __libc_write.
10770
10771 * csu/check_fds.c (check_one_fd)
10772 * sysdeps/posix/fdopendir.c (__fdopendir)
10773 * sysdeps/posix/opendir.c (__alloc_dir): Use __fcntl_nocancel
10774 instead of __fcntl and/or __libc_fcntl.
10775
10776 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np)
10777 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np)
10778 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system):
10779 Use __open64_nocancel instead of __open_nocancel.
10780
10781 * sysdeps/unix/sysv/linux/not-cancel.h: Move all of the
10782 hidden_proto declarations to the end and issue them if either
10783 IS_IN(libc) or IS_IN(rtld).
10784 * sysdeps/unix/sysv/linux/Makefile [subdir=io] (sysdep_routines):
10785 Add close_nocancel, fcntl_nocancel, nanosleep_nocancel,
10786 open_nocancel, open64_nocancel, openat_nocancel, pause_nocancel,
10787 read_nocancel, waitpid_nocancel, write_nocancel.
10788
10789 * io/Versions [GLIBC_PRIVATE]: Add __libc_fcntl,
10790 __fcntl_nocancel, __open64_nocancel, __write_nocancel.
10791 * posix/Versions: Add __nanosleep_nocancel, __pause_nocancel.
10792
10793 * nptl/pt-fcntl.c: New file.
10794 * nptl/Makefile (pthread-compat-wrappers): Remove fcntl.
10795 (libpthread-routines): Add pt-fcntl.
10796 * include/fcntl.h (__fcntl_nocancel_adjusted): New function.
10797 (__libc_fcntl): Remove attribute_hidden.
10798 * sysdeps/unix/sysv/linux/fcntl.c (__libc_fcntl): Call
10799 __fcntl_nocancel_adjusted, not fcntl_common.
10800 (__fcntl_nocancel): Move to new file fcntl_nocancel.c.
10801 (fcntl_common): Rename to __fcntl_nocancel_adjusted; also move
10802 to fcntl_nocancel.c.
10803 * sysdeps/unix/sysv/linux/fcntl_nocancel.c: New file.
10804 * sysdeps/unix/sysv/linux/powerpc/powerpc64/fcntl.c: Remove file.
10805 * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10806 Define FCNTL_ADJUST_CMD here, as a self-contained macro.
10807
10808 * sysdeps/unix/sysv/linux/close.c: Move __close_nocancel to...
10809 * sysdeps/unix/sysv/linux/close_nocancel.c: ...this new file.
10810 * sysdeps/unix/sysv/linux/nanosleep.c: Move __nanosleep_nocancel to...
10811 * sysdeps/unix/sysv/linux/nanosleep_nocancel.c: ...this new file.
10812 * sysdeps/unix/sysv/linux/open.c: Move __open_nocancel to...
10813 * sysdeps/unix/sysv/linux/open_nocancel.c: ...this new file.
10814 * sysdeps/unix/sysv/linux/open64.c: Move __open64_nocancel to...
10815 * sysdeps/unix/sysv/linux/open64_nocancel.c: ...this new file.
10816 * sysdeps/unix/sysv/linux/openat.c: Move __openat_nocancel to...
10817 * sysdeps/unix/sysv/linux/openat_nocancel.c: ...this new file.
10818 * sysdeps/unix/sysv/linux/openat64.c: Move __openat64_nocancel to...
10819 * sysdeps/unix/sysv/linux/openat64_nocancel.c: ...this new file.
10820 * sysdeps/unix/sysv/linux/pause.c: Move __pause_nocancel to...
10821 * sysdeps/unix/sysv/linux/pause_nocancel.c: ...this new file.
10822 * sysdeps/unix/sysv/linux/read.c: Move __read_nocancel to...
10823 * sysdeps/unix/sysv/linux/read_nocancel.c: ...this new file.
10824 * sysdeps/unix/sysv/linux/waitpid.c: Move __waitpid_nocancel to...
10825 * sysdeps/unix/sysv/linux/waitpid_nocancel.c: ...this new file.
10826 * sysdeps/unix/sysv/linux/write.c: Move __write_nocancel to...
10827 * sysdeps/unix/sysv/linux/write_nocancel.c: ...this new file.
10828
10829 * sysdeps/unix/sysv/linux/nios2/Makefile: Don't override
10830 libpthread-routines.
10831 * sysdeps/unix/sysv/linux/nios2/pt-vfork.S: New file which
10832 defines nothing.
10833
10834 * sysdeps/mach/hurd/dl-sysdep.c: Define __read instead of
10835 __libc_read, and __write instead of __libc_write. Define
10836 __open64 in addition to __open.
10837
10838 2018-06-12 H.J. Lu <hongjiu.lu@intel.com>
10839
10840 [BZ #23250]
10841 [BZ #10686]
10842 * sysdeps/i386/nptl/tls.h (tcbhead_t): Change __private_tm[4]
10843 to _private_tm[3] and add __glibc_reserved2.
10844 Add _Static_assert of offset of __private_ss == 0x30.
10845 * sysdeps/x86_64/nptl/tls.h: Add _Static_assert of offset of
10846 __private_ss == 0x40 for ILP32 and == 0x70 for LP64.
10847
10848 2018-06-12 Florian Weimer <fweimer@redhat.com>
10849
10850 x86: Make strncmp usable from rtld.
10851 * sysdeps/i386/i686/multiarch/strncmp-c.c: Only rename strncmp to
10852 __strncmp_ia32 if in libc (and not in rtld).
10853 * sysdeps/x86_64/multiarch/strncmp-sse2.S: Rename strcmp to
10854 strncmp if not in libc (and not to __strncmp_sse2).
10855
10856 2018-06-12 Rafal Luzynski <digitalfreak@lingonborough.com>
10857
10858 [BZ #23140]
10859 * localedata/locales/gd_GB (mon): Rename to...
10860 (alt_mon): This.
10861 (mon): Import from CLDR (genitive case).
10862 * localedata/locales/hsb_DE (mon): Rename to...
10863 (alt_mon): This.
10864 (mon): Import from CLDR (genitive case).
10865 * localedata/locales/wa_BE (mon): Rename to...
10866 (alt_mon): This.
10867 (mon): Add, fill with the proper genitive forms, but CLDR data
10868 is incomplete; completed according to the comments in this file.
10869 (d_t_fmt): Do not use "di" before the month name, no longer needed.
10870
10871 * localedata/locales/wa_BE (country_name): Reword
10872 "Beljike" -> "Beldjike".
10873
10874 2018-06-11 Joseph Myers <joseph@codesourcery.com>
10875
10876 [BZ #23272]
10877 * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Start by handling all
10878 cases of non-finite arguments.
10879 * math/libm-test-fma.inc (fma_test_data): Add more tests.
10880
10881 2018-06-10 John David Anglin <danglin@gcc.gnu.org>
10882
10883 [BZ #23174]
10884 * sysdeps/unix/sysv/linux/hppa/Makefile: xfail check-execstack.
10885
10886 2018-06-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
10887
10888 [BZ #23264]
10889 * include/unistd.h (__execvpex): New prototype.
10890 * posix/Makefile (tests): Add tst-spawn4.
10891 (tests-internal): Add tst-spawn4-compat.
10892 * posix/execvpe.c (__execvpe_common, __execvpex): New functions.
10893 * posix/tst-spawn4-compat.c: New file.
10894 * posix/tst-spawn4.c: Likewise.
10895 * sysdeps/unix/sysv/linux/spawni.c (__spawni): Do not interpret invalid
10896 binaries as shell scripts.
10897 * sysdeps/posix/spawni.c (__spawni): Likewise.
10898
10899 2018-06-08 H.J. Lu <hongjiu.lu@intel.com>
10900
10901 [BZ #23145]
10902 * elf/Makefile (tests-special): Add $(objpfx)check-initfini.out.
10903 ($(all-built-dso:=.dynsym): New target.
10904 (common-generated): Add $(all-built-dso:$(common-objpfx)%=%.dynsym).
10905 ($(objpfx)check-initfini.out): New target.
10906 (generated): Add check-initfini.out.
10907 * scripts/check-initfini.awk: New file.
10908 * sysdeps/aarch64/crti.S (_init): Mark as hidden.
10909 (_fini): Likewise.
10910 * sysdeps/alpha/crti.S (_init): Mark as hidden.
10911 (_fini): Likewise.
10912 * sysdeps/arm/crti.S (_init): Mark as hidden.
10913 (_fini): Likewise.
10914 * sysdeps/hppa/crti.S (_init): Mark as hidden.
10915 (_fini): Likewise.
10916 * sysdeps/i386/crti.S (_init): Mark as hidden.
10917 (_fini): Likewise.
10918 * sysdeps/ia64/crti.S (_init): Mark as hidden.
10919 (_fini): Likewise.
10920 * sysdeps/m68k/crti.S (_init): Mark as hidden.
10921 (_fini): Likewise.
10922 * sysdeps/microblaze/crti.S (_init): Mark as hidden.
10923 (_fini): Likewise.
10924 * sysdeps/mips/mips32/crti.S (_init): Mark as hidden.
10925 (_fini): Likewise.
10926 * sysdeps/mips/mips64/n32/crti.S (_init): Mark as hidden.
10927 (_fini): Likewise.
10928 * sysdeps/mips/mips64/n64/crti.S (_init): Mark as hidden.
10929 (_fini): Likewise.
10930 * sysdeps/nios2/crti.S (_init): Mark as hidden.
10931 (_fini): Likewise.
10932 * sysdeps/powerpc/powerpc32/crti.S (_init): Mark as hidden.
10933 (_fini): Likewise.
10934 * sysdeps/powerpc/powerpc64/crti.S (_init): Mark as hidden.
10935 (_fini): Likewise.
10936 * sysdeps/s390/s390-32/crti.S (_init): Mark as hidden.
10937 (_fini): Likewise.
10938 * sysdeps/s390/s390-64/crti.S (_init): Mark as hidden.
10939 (_fini): Likewise.
10940 * sysdeps/sh/crti.S (_init): Mark as hidden.
10941 (_fini): Likewise.
10942 * sysdeps/sparc/crti.S (_init): Mark as hidden.
10943 (_fini): Likewise.
10944 * sysdeps/x86_64/crti.S (_init): Mark as hidden.
10945 (_fini): Likewise.
10946
10947 2018-06-06 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
10948
10949 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c
10950 [__HAVE_FLOAT128_UNLIKE_LDBL] (TFtype, TF): Restrict TFtype
10951 and TF redirection to KFtype and KF only when the default
10952 long double type is not the IEEE 128-bit floating point type.
10953
10954 2018-06-05 Joseph Myers <joseph@codesourcery.com>
10955
10956 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DIT): New
10957 macro.
10958 (HWCAP_USCAT): Likewise.
10959 (HWCAP_ILRCPC): Likewise.
10960 (HWCAP_FLAGM): Likewise.
10961 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
10962 Increase to 28.
10963 (_dl_aarch64_cap_flags): Add new flag names.
10964
10965 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
10966 (MAP_FIXED_NOREPLACE): New macro.
10967 * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_MISC]
10968 (MAP_FIXED_NOREPLACE): Likewise.
10969 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC]
10970 (MAP_FIXED_NOREPLACE): Likewise.
10971 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
10972 (MAP_FIXED_NOREPLACE): Likewise.
10973 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
10974 (MAP_FIXED_NOREPLACE): Likewise.
10975 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
10976 (MAP_FIXED_NOREPLACE): Likewise.
10977 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
10978 (MAP_FIXED_NOREPLACE): Likewise.
10979 * sysdeps/unix/sysv/linux/mips/bits/mman.h [__USE_MISC]
10980 (MAP_FIXED_NOREPLACE): Likewise.
10981 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
10982 (MAP_FIXED_NOREPLACE): Likewise.
10983 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h [__USE_MISC]
10984 (MAP_FIXED_NOREPLACE): Likewise.
10985 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
10986 (MAP_FIXED_NOREPLACE): Likewise.
10987 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
10988 (MAP_FIXED_NOREPLACE): Likewise.
10989 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC]
10990 (MAP_FIXED_NOREPLACE): Likewise.
10991 * sysdeps/unix/sysv/linux/sparc/bits/mman.h [__USE_MISC]
10992 (MAP_FIXED_NOREPLACE): Likewise.
10993 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC]
10994 (MAP_FIXED_NOREPLACE): Likewise.
10995
10996 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
10997 version to 4.17.
10998
10999 2018-06-04 Joseph Myers <joseph@codesourcery.com>
11000
11001 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
11002 version to 4.17
11003
11004 2018-06-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
11005
11006 * bits/shm.h (struct shmid_ds): Make shm_segsz field size_t instead of
11007 int.
11008 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Likewise.
11009
11010 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11011
11012 * benchtests/scripts/compare_string.py: (process_results) Catch
11013 exception in non-existent base_func and catch exception in
11014 non-existent attribute.
11015 (parse_file) Catch exception if input file does not exist.
11016
11017 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11018
11019 * benchtests/scripts/compare_string.py: Add --no-diff and --no-header
11020 options to avoid diff calculation and omit header, respectively.
11021 (main): process --no-diff and --no-header
11022
11023 2018-06-01 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11024 H.J. Lu <hongjiu.lu@intel.com>
11025
11026 * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11027 strcmp-avx2, strncmp-avx2, wcscmp-avx2, wcscmp-sse2, wcsncmp-avx2 and
11028 wcsncmp-sse2.
11029 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
11030 (__libc_ifunc_impl_list): Add tests for __strcmp_avx2,
11031 __strncmp_avx2, __wcscmp_avx2, __wcsncmp_avx2, __wcscmp_sse2
11032 and __wcsncmp_sse2.
11033 * sysdeps/x86_64/multiarch/strcmp.c (OPTIMIZE (avx2)):
11034 (IFUNC_SELECTOR): Return OPTIMIZE (avx2) on AVX 2 machines if
11035 AVX unaligned load is fast and vzeroupper is preferred.
11036 * sysdeps/x86_64/multiarch/strncmp.c: Likewise.
11037 * sysdeps/x86_64/multiarch/strcmp-avx2.S: New file.
11038 * sysdeps/x86_64/multiarch/strncmp-avx2.S: Likewise.
11039 * sysdeps/x86_64/multiarch/wcscmp-avx2.S: Likewise.
11040 * sysdeps/x86_64/multiarch/wcscmp-sse2.S: Likewise.
11041 * sysdeps/x86_64/multiarch/wcscmp.c: Likewise.
11042 * sysdeps/x86_64/multiarch/wcsncmp-avx2.S: Likewise.
11043 * sysdeps/x86_64/multiarch/wcsncmp-sse2.c: Likewise.
11044 * sysdeps/x86_64/multiarch/wcsncmp.c: Likewise.
11045 * sysdeps/x86_64/wcscmp.S (__wcscmp): Add alias only if __wcscmp
11046 is undefined.
11047
11048 2018-06-01 Florian Weimer <fweimer@redhat.com>
11049
11050 * sysdeps/i386/fpu/libm-test-ulps: Update with results from
11051 configuring with --disable-multi-arch, building with
11052 “-march=x86-64 -mtune=generic -mfpmath=sse” and running on a
11053 Haswell-era CPU.
11054
11055 2018-06-01 Florian Weimer <fweimer@redhat.com>
11056
11057 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update with
11058 results from building with “-march=x86-64 -mtune=generic
11059 -mfpmath=sse” and running on a Haswell-era CPU.
11060
11061 2018-06-01 Joseph Myers <joseph@codesourcery.com>
11062
11063 [BZ #18473]
11064 * soft-fp/sqrttf2.c: Remove file.
11065 * soft-fp/sqrtdf2.c: Move to ....
11066 * sysdeps/powerpc/nofpu/sqrtdf2.c: ... here. Include
11067 <shlib-compat.h>.
11068 (__sqrtdf2): Make conditional on
11069 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11070 symbol.
11071 * soft-fp/sqrtsf2.c: Move to ....
11072 * sysdeps/powerpc/nofpu/sqrtsf2.c: ... here. Include
11073 <shlib-compat.h>.
11074 (__sqrtsf2): Make conditional on
11075 [SHLIB_COMPAT (libc, GLIBC_2_3_2, GLIBC_2_28)]. Define as compat
11076 symbol.
11077 * soft-fp/Makefile (gcc-single-routines): Remove sqrtsf2.
11078 (gcc-double-routines): Remove sqrtdf2.
11079 (gcc-quad-routines): Remove sqrttf2.
11080 * sysdeps/nios2/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11081 Do not filter out sqrtsf2 and sqrtdf2.
11082 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
11083 (sysdep_routines): Add sqrtsf2 and sqrtdf2.
11084
11085 2018-06-01 Florian Weimer <fweimer@redhat.com>
11086
11087 * sysdeps/generic/libcidn.abilist: Remove file.
11088
11089 2018-06-01 Florian Weimer <fweimer@redhat.com>
11090
11091 [BZ #23236]
11092 * libio/strfile.h (struct _IO_str_fields): Rename members to
11093 discourage their use and add comment.
11094 (_IO_STR_DYNAMIC): Remove unused macro.
11095 * libio/strops.c (_IO_str_init_static_internal): Do not use
11096 callback pointers. Call malloc and free.
11097 (_IO_str_overflow): Do not use callback pointers. Call malloc
11098 and free.
11099 (enlarge_userbuf): Likewise.
11100 (_IO_str_finish): Call free.
11101 * libio/wstrops.c (_IO_wstr_init_static): Initialize
11102 _allocate_buffer_unused.
11103 (_IO_wstr_overflow): Do not use callback pointers. Call malloc
11104 and free.
11105 (enlarge_userbuf): Likewise.
11106 (_IO_wstr_finish): Call free.
11107 * debug/vasprintf_chk.c (__vasprintf_chk): Initialize
11108 _allocate_buffer_unused, _free_buffer_unused.
11109 * libio/memstream.c (__open_memstream): Likewise.
11110 * libio/vasprintf.c (_IO_vasprintf): Likewise.
11111 * libio/wmemstream.c (open_wmemstream): Likewise.
11112
11113 2018-05-30 Paul Pluzhnikov <ppluzhnikov@google.com>
11114
11115 * sysdeps/x86_64/fpu/libm-test-ulps (log_vlen8_avx2): Update for
11116 AMD Ryzen 7 1800X.
11117
11118 2018-05-30 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
11119
11120 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Makefile: New file to
11121 add w_sqrtf128-power9 and w_sqrtf128-ppc64le to libm-sysdep_routines.
11122 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-power9.c:
11123 New file.
11124 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128-ppc64le.c:
11125 Likewise.
11126 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/w_sqrtf128.c: Likewise.
11127
11128 2018-05-29 Florian Weimer <fweimer@redhat.com>
11129
11130 * support/Makefile (libsupport-routines): Add
11131 xpthread_barrierattr_destroy, xpthread_barrierattr_init,
11132 xpthread_barrierattr_setpshared.
11133 * support/xpthread_barrierattr_destroy.c: New file.
11134 * support/xpthread_barrierattr_init.c: Likewise.
11135 * support/xpthread_barrierattr_setpshared.c: Likewise.
11136
11137 2018-05-29 H.J. Lu <hongjiu.lu@intel.com>
11138
11139 [BZ #23206]
11140 * elf/dl-reloc-static-pie.c (_dl_relocate_static_pie): Initialize
11141 _r_debug and update DT_DEBUG for debugger.
11142
11143 2018-05-29 Florian Weimer <fweimer@redhat.com>
11144
11145 * stdlib/Makefile (tst-strtod1i.out): Depend on generated locales.
11146 (tst-strtod5i.out): Likewise.
11147
11148 2018-05-25 Joseph Myers <joseph@codesourcery.com>
11149
11150 * sysdeps/sparc/sparc64/Implies: Remove sparc/sparc64/soft-fp.
11151 * sysdeps/sparc/sparc64/Makefile [$(subdir) = soft-fp]
11152 (sparc64-quad-routines): New variable. Moved from ....
11153 [$(subdir) = soft-fp] (sysdep_routines): Add
11154 $(sparc64-quad-routines). Moved from ....
11155 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp/. Moved from ....
11156 * sysdeps/sparc/sparc64/soft-fp/Makefile: ... here. Remove file.
11157 * sysdeps/sparc/sparc64/Versions (libc): Add GLIBC_2.2 symbols
11158 moved from ....
11159 * sysdeps/sparc/sparc64/soft-fp/Versions: ... here. Remove file.
11160 * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: Remove file.
11161 * sysdeps/sparc/sparc64/soft-fp/qp_add.c: Move to ....
11162 * sysdeps/sparc/sparc64/qp_add.c: ... here.
11163 * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Move to ....
11164 * sysdeps/sparc/sparc64/qp_cmp.c: ... here.
11165 * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Move to ....
11166 * sysdeps/sparc/sparc64/qp_cmpe.c: ... here.
11167 * sysdeps/sparc/sparc64/soft-fp/qp_div.c: Move to ....
11168 * sysdeps/sparc/sparc64/qp_div.c: ... here.
11169 * sysdeps/sparc/sparc64/soft-fp/qp_dtoq.c: Move to ....
11170 * sysdeps/sparc/sparc64/qp_dtoq.c: ... here.
11171 * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Move to ....
11172 * sysdeps/sparc/sparc64/qp_feq.c: ... here.
11173 * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Move to ....
11174 * sysdeps/sparc/sparc64/qp_fge.c: ... here.
11175 * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Move to ....
11176 * sysdeps/sparc/sparc64/qp_fgt.c: ... here.
11177 * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Move to ....
11178 * sysdeps/sparc/sparc64/qp_fle.c: ... here.
11179 * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Move to ....
11180 * sysdeps/sparc/sparc64/qp_flt.c: ... here.
11181 * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Move to ....
11182 * sysdeps/sparc/sparc64/qp_fne.c: ... here.
11183 * sysdeps/sparc/sparc64/soft-fp/qp_itoq.c: Move to ....
11184 * sysdeps/sparc/sparc64/qp_itoq.c: ... here.
11185 * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Move to ....
11186 * sysdeps/sparc/sparc64/qp_mul.c: ... here.
11187 * sysdeps/sparc/sparc64/soft-fp/qp_neg.S: Move to ....
11188 * sysdeps/sparc/sparc64/qp_neg.S: ... here.
11189 * sysdeps/sparc/sparc64/soft-fp/qp_qtod.c: Move to ....
11190 * sysdeps/sparc/sparc64/qp_qtod.c: ... here.
11191 * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Move to ....
11192 * sysdeps/sparc/sparc64/qp_qtoi.c: ... here.
11193 * sysdeps/sparc/sparc64/soft-fp/qp_qtos.c: Move to ....
11194 * sysdeps/sparc/sparc64/qp_qtos.c: ... here.
11195 * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Move to ....
11196 * sysdeps/sparc/sparc64/qp_qtoui.c: ... here.
11197 * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Move to ....
11198 * sysdeps/sparc/sparc64/qp_qtoux.c: ... here.
11199 * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Move to ....
11200 * sysdeps/sparc/sparc64/qp_qtox.c: ... here.
11201 * sysdeps/sparc/sparc64/soft-fp/qp_sqrt.c: Move to ....
11202 * sysdeps/sparc/sparc64/qp_sqrt.c: ... here.
11203 * sysdeps/sparc/sparc64/soft-fp/qp_stoq.c: Move to ....
11204 * sysdeps/sparc/sparc64/qp_stoq.c: ... here.
11205 * sysdeps/sparc/sparc64/soft-fp/qp_sub.c: Move to ....
11206 * sysdeps/sparc/sparc64/qp_sub.c: ... here.
11207 * sysdeps/sparc/sparc64/soft-fp/qp_uitoq.c: Move to ....
11208 * sysdeps/sparc/sparc64/qp_uitoq.c: ... here.
11209 * sysdeps/sparc/sparc64/soft-fp/qp_util.c: Move to ....
11210 * sysdeps/sparc/sparc64/qp_util.c: ... here.
11211 * sysdeps/sparc/sparc64/soft-fp/qp_uxtoq.c: Move to ....
11212 * sysdeps/sparc/sparc64/qp_uxtoq.c: ... here.
11213 * sysdeps/sparc/sparc64/soft-fp/qp_xtoq.c: Move to ....
11214 * sysdeps/sparc/sparc64/qp_xtoq.c: ... here.
11215 * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Move to ....
11216 * sysdeps/sparc/sparc64/sfp-machine.h: ... here.
11217
11218 * sysdeps/sparc/sparc32/Implies: Remove sparc/sparc32/soft-fp.
11219 * sysdeps/sparc/sparc32/Makefile [$(subdir) = soft-fp]
11220 (sparc32-quad-routines): New variable. Moved from ....
11221 [$(subdir) = soft-fp] (sysdep_routines): Add
11222 $(sparc32-quad-routines). Moved from ....
11223 * sysdeps/sparc/sparc32/soft-fp/Makefile: ... here. Remove file.
11224 * sysdeps/sparc/sparc32/Versions (libc): Add GLIBC_2.4 symbols
11225 moved from ....
11226 * sysdeps/sparc/sparc32/soft-fp/Versions: ... here. Remove file.
11227 * sysdeps/sparc/sparc32/soft-fp/q_add.c: Move to ....
11228 * sysdeps/sparc/sparc32/q_add.c: ... here.
11229 * sysdeps/sparc/sparc32/soft-fp/q_cmp.c: Move to ....
11230 * sysdeps/sparc/sparc32/q_cmp.c: ... here.
11231 * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c: Move to ....
11232 * sysdeps/sparc/sparc32/q_cmpe.c: ... here.
11233 * sysdeps/sparc/sparc32/soft-fp/q_div.c: Move to ....
11234 * sysdeps/sparc/sparc32/q_div.c: ... here.
11235 * sysdeps/sparc/sparc32/soft-fp/q_dtoq.c: Move to ....
11236 * sysdeps/sparc/sparc32/q_dtoq.c: ... here.
11237 * sysdeps/sparc/sparc32/soft-fp/q_feq.c: Move to ....
11238 * sysdeps/sparc/sparc32/q_feq.c: ... here.
11239 * sysdeps/sparc/sparc32/soft-fp/q_fge.c: Move to ....
11240 * sysdeps/sparc/sparc32/q_fge.c: ... here.
11241 * sysdeps/sparc/sparc32/soft-fp/q_fgt.c: Move to ....
11242 * sysdeps/sparc/sparc32/q_fgt.c: ... here.
11243 * sysdeps/sparc/sparc32/soft-fp/q_fle.c: Move to ....
11244 * sysdeps/sparc/sparc32/q_fle.c: ... here.
11245 * sysdeps/sparc/sparc32/soft-fp/q_flt.c: Move to ....
11246 * sysdeps/sparc/sparc32/q_flt.c: ... here.
11247 * sysdeps/sparc/sparc32/soft-fp/q_fne.c: Move to ....
11248 * sysdeps/sparc/sparc32/q_fne.c: ... here.
11249 * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Move to ....
11250 * sysdeps/sparc/sparc32/q_itoq.c: ... here.
11251 * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Move to ....
11252 * sysdeps/sparc/sparc32/q_lltoq.c: ... here.
11253 * sysdeps/sparc/sparc32/soft-fp/q_mul.c: Move to ....
11254 * sysdeps/sparc/sparc32/q_mul.c: ... here.
11255 * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Move to ....
11256 * sysdeps/sparc/sparc32/q_neg.c: ... here.
11257 * sysdeps/sparc/sparc32/soft-fp/q_qtod.c: Move to ....
11258 * sysdeps/sparc/sparc32/q_qtod.c: ... here.
11259 * sysdeps/sparc/sparc32/soft-fp/q_qtoi.c: Move to ....
11260 * sysdeps/sparc/sparc32/q_qtoi.c: ... here.
11261 * sysdeps/sparc/sparc32/soft-fp/q_qtoll.c: Move to ....
11262 * sysdeps/sparc/sparc32/q_qtoll.c: ... here.
11263 * sysdeps/sparc/sparc32/soft-fp/q_qtos.c: Move to ....
11264 * sysdeps/sparc/sparc32/q_qtos.c: ... here.
11265 * sysdeps/sparc/sparc32/soft-fp/q_qtou.c: Move to ....
11266 * sysdeps/sparc/sparc32/q_qtou.c: ... here.
11267 * sysdeps/sparc/sparc32/soft-fp/q_qtoull.c: Move to ....
11268 * sysdeps/sparc/sparc32/q_qtoull.c: ... here.
11269 * sysdeps/sparc/sparc32/soft-fp/q_sqrt.c: Move to ....
11270 * sysdeps/sparc/sparc32/q_sqrt.c: ... here.
11271 * sysdeps/sparc/sparc32/soft-fp/q_stoq.c: Move to ....
11272 * sysdeps/sparc/sparc32/q_stoq.c: ... here.
11273 * sysdeps/sparc/sparc32/soft-fp/q_sub.c: Move to ....
11274 * sysdeps/sparc/sparc32/q_sub.c: ... here.
11275 * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Move to ....
11276 * sysdeps/sparc/sparc32/q_ulltoq.c: ... here.
11277 * sysdeps/sparc/sparc32/soft-fp/q_util.c: Move to ....
11278 * sysdeps/sparc/sparc32/q_util.c: ... here.
11279 * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Move to ....
11280 * sysdeps/sparc/sparc32/q_utoq.c: ... here.
11281 * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h: Move to ....
11282 * sysdeps/sparc/sparc32/sfp-machine.h: ... here.
11283
11284 2018-05-24 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11285 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11286
11287 * sysdeps/powerpc/Implies: Removed. Previous contents copied to...
11288 * sysdeps/powerpc/powerpc32/Implies-after: ... here.
11289 * sysdeps/powerpc/powerpc64/be/Implies-after: ... here.
11290 * sysdeps/powerpc/powerpc64/le/Implies-before: ... and here.
11291
11292 2018-05-24 Joseph Myers <joseph@codesourcery.com>
11293
11294 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/Implies: Remove
11295 powerpc/soft-fp.
11296 * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
11297 Likewise.
11298 * sysdeps/powerpc/soft-fp/sfp-machine.h: Move to ....
11299 * sysdeps/powerpc/nofpu/sfp-machine.h: ... here.
11300
11301 2018-05-24 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
11302
11303 [BZ #23171]
11304 * math/math.h [C++] (iseqsig): Fix parameter type for the long
11305 double version.
11306
11307 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11308
11309 * sysdeps/sh/Implies: Remove sh/soft-fp.
11310 * sysdeps/sh/soft-fp/sfp-machine.h: Move to ....
11311 * sysdeps/sh/sfp-machine.h: ... here.
11312
11313 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11314
11315 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11316 (__mempcpy_erms): Skip zero length.
11317 (__memmove_erms): Likewise.
11318 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
11319 (__memset_erms): Likewise.
11320
11321 2018-05-23 Joseph Myers <joseph@codesourcery.com>
11322
11323 * sysdeps/alpha/Implies: Remove alpha/soft-fp.
11324 * sysdeps/alpha/Makefile [$(subdir) = soft-fp] (sysdep_routines):
11325 Add functions moved from ....
11326 [$(subdir) = math] (CPPFLAGS): Add -I../soft-fp. Moved from ....
11327 * sysdeps/alpha/soft-fp/Makefile: ... here. Remove file.
11328 * sysdeps/alpha/Versions (libc): Add GLIBC_2.3.4 symbols moved
11329 from ....
11330 * sysdeps/alpha/soft-fp/Versions: ... here. Remove file.
11331 * sysdeps/alpha/soft-fp/e_sqrtl.c: Move to ....
11332 * sysdeps/alpha/e_sqrtl.c: ... here.
11333 * sysdeps/alpha/soft-fp/local-soft-fp.h: Move to ....
11334 * sysdeps/alpha/local-soft-fp.h: ... here.
11335 * sysdeps/alpha/soft-fp/ots_add.c: Move to ....
11336 * sysdeps/alpha/ots_add.c: ... here.
11337 * sysdeps/alpha/soft-fp/ots_cmp.c: Move to ....
11338 * sysdeps/alpha/ots_cmp.c: ... here.
11339 * sysdeps/alpha/soft-fp/ots_cmpe.c: Move to ....
11340 * sysdeps/alpha/ots_cmpe.c: ... here.
11341 * sysdeps/alpha/soft-fp/ots_cvtqux.c: Move to ....
11342 * sysdeps/alpha/ots_cvtqux.c: ... here.
11343 * sysdeps/alpha/soft-fp/ots_cvtqx.c: Move to ....
11344 * sysdeps/alpha/ots_cvtqx.c: ... here.
11345 * sysdeps/alpha/soft-fp/ots_cvttx.c: Move to ....
11346 * sysdeps/alpha/ots_cvttx.c: ... here.
11347 * sysdeps/alpha/soft-fp/ots_cvtxq.c: Move to ....
11348 * sysdeps/alpha/ots_cvtxq.c: ... here.
11349 * sysdeps/alpha/soft-fp/ots_cvtxt.c: Move to ....
11350 * sysdeps/alpha/ots_cvtxt.c: ... here.
11351 * sysdeps/alpha/soft-fp/ots_div.c: Move to ....
11352 * sysdeps/alpha/ots_div.c: ... here.
11353 * sysdeps/alpha/soft-fp/ots_mul.c: Move to ....
11354 * sysdeps/alpha/ots_mul.c: ... here.
11355 * sysdeps/alpha/soft-fp/ots_nintxq.c: Move to ....
11356 * sysdeps/alpha/ots_nintxq.c: ... here.
11357 * sysdeps/alpha/soft-fp/ots_sub.c: Move to ....
11358 * sysdeps/alpha/ots_sub.c: ... here.
11359 * sysdeps/alpha/soft-fp/sfp-machine.h: Move to ....
11360 * sysdeps/alpha/sfp-machine.h: ... here.
11361
11362 2018-05-23 Florian Weimer <fweimer@redhat.com>
11363
11364 [BZ #19728]
11365 [BZ #19729]
11366 [BZ #22247]
11367 CVE-2016-6261
11368 CVE-2016-6263
11369 CVE-2017-14062
11370 Switch to extern IDNA implementation (libidn2).
11371 * libidn: Remove subdirectory.
11372 * LICENSES: Do not mention licensing conditions for the removed
11373 libidn code.
11374 * config.h.in (HAVE_LIBIDN): Remove.
11375 * include/dlfcn.h (__libc_dlopen): Update comment.
11376 * include/idna.h: Remove file.
11377 * inet/Makefile (routines): Add idna.
11378 (tests-static, tests-internal): Add tst-idna_name_classify.
11379 (LOCALES): Generate locales for tests.
11380 (tst-idna_name_classify.out): Depend on generated locales.
11381 * inet/idna_name_classify.c: New file.
11382 * inet/tst-idna_name_classify.c: Likewise.
11383 * inet/net-internal.h (__idna_to_dns_encoding)
11384 (__idna_from_dns_encoding): Declare.
11385 * inet/net-internal.h (enum idna_name_classification): Define.
11386 (__idna_name_classify): Declare.
11387 * inet/Versions (GLIBC_PRIVATE): Add __idna_to_dns_encoding,
11388 __idna_from_dns_encoding.
11389 * inet/getnameinfo.c (DEPRECATED_NI_IDN): Define.
11390 (gni_host_inet_name): Call __idna_from_dns_encoding. Use punycode
11391 name as a fallback in case of encoding errors.
11392 (getnameinfo): Use DEPRECATED_NI_IDN.
11393 * inet/idna.c: New file.
11394 * nscd/gai.c: Do not include <libidn/idn-stub.c>.
11395 * resolv/Makefile (tests): Add tst-resolv-ai_idn,
11396 tst-resolv-ai_idn-latin1, tst-resolv-ai_idn-nolibidn2.
11397 (modules-names): Add tst-no-libidn2.
11398 (extra-test-objs): Add tst-no-libidn2.os.
11399 (LDFLAGS-tst-no-libidn2.so): Set soname.
11400 (LOCALES): Set, and generate locales.
11401 (tst-resolv-ai_idn): Link with -ldl -lresolv -lpthread.
11402 (tst-resolv-ai_idn-latin1): Likewise.
11403 (tst-resolv-ai_idn-nolibidn2): Likewise.
11404 (tst-resolv-ai_idn.out): Depend on locales.
11405 (tst-resolv-ai_idn-latin1.out): Depend on locales.
11406 (tst-resolv-ai_idn-nolibidn2.out): Depend on locales and
11407 tst-no-libidn2.so.
11408 * resolv/netdb.h (AI_IDN_ALLOW_UNASSIGNED)
11409 (AI_IDN_USE_STD3_ASCII_RULES, NI_IDN_ALLOW_UNASSIGNED)
11410 (NI_IDN_USE_STD3_ASCII_RULES): Deprecate.
11411 * resolv/tst-resolv-ai_idn.c: New file.
11412 * resolv/tst-resolv-ai_idn-latin1.c: Likewise.
11413 * resolv/tst-resolv-ai_idn-nolibidn2.c: Likewise.
11414 * resolv/tst-no-libidn2.c: Likewise.
11415 * support/support_format_addrinfo.c (format_ai_flags): Do not
11416 handle AI_IDN_ALLOW_UNASSIGNED, AI_IDN_USE_STD3_ASCII_RULES.
11417 * sysdeps/posix/getaddrinfo.c (DEPRECATED_AI_IDN): Define.
11418 (gaih_inet): Call __idna_to_dns_encoding and
11419 __idna_from_dns_encoding, and use the original (punycode) name if
11420 __idna_from_dns_encoding fails due to an encoding error.
11421 (getaddrinfo): Use DEPRECATED_AI_IDN.
11422 * sysdeps/unix/inet/Subdirs (libidn): Remove.
11423 * sysdeps/unix/inet/configure: Remove file.
11424 * sysdeps/unix/inet/configure.ac: Likewise.
11425
11426 2018-05-23 Florian Weimer <fweimer@redhat.com>
11427
11428 Implement allocate_once.
11429 * include/allocate_once.h: New file.
11430 * misc/allocate_once.c: Likewise.
11431 * misc/tst-allocate_once.c: Likewise.
11432 * misc/Makefile (routines): Add allocate_once.
11433 (tests-internal): Add tst-allocate_once.
11434 (generated): Add tst-allocate_once.mtrace,
11435 tst-allocate_once-mem.out.
11436 (tests-special): Add tst-allocate_once-mem.out.
11437 (tst-allocate_once-ENV): Set MALLOC_TRACE.
11438 (tst-allocate_once-mem.out): Call mtrace.
11439 * misc/Versions (GLIBC_PRIVATE): Add __libc_allocate_once_slow.
11440
11441 2018-05-23 H.J. Lu <hongjiu.lu@intel.com>
11442
11443 [BZ #23196]
11444 * string/test-memcpy.c (do_test1): New function.
11445 (test_main): Call it.
11446
11447 2018-05-23 Andreas Schwab <schwab@suse.de>
11448
11449 [BZ #23196]
11450 CVE-2018-11237
11451 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S
11452 (L(preloop_large)): Save initial destination pointer in %r11 and
11453 use it instead of %rax after the loop.
11454 * string/test-mempcpy.c (MIN_PAGE_SIZE): Define.
11455
11456 2018-05-22 Joseph Myers <joseph@codesourcery.com>
11457
11458 * sysdeps/aarch64/Implies: Remove aarch64/soft-fp.
11459 * sysdeps/aarch64/Makefile [$(subdir) = math] (CPPFLAGS): Add
11460 -I../soft-fp. Moved from ....
11461 * sysdeps/aarch64/soft-fp/Makefile: ... here. Remove file.
11462 * sysdeps/aarch64/soft-fp/e_sqrtl.c: Move to ....
11463 * sysdeps/aarch64/e_sqrtl.c: ... here.
11464 * sysdeps/aarch64/soft-fp/sfp-machine.h: Move to ....
11465 * sysdeps/aarch64/sfp-machine.h: ... here.
11466
11467 * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Ignore
11468 -Wmaybe-uninitialized around access to fq[0].
11469 * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f):
11470 Likewise.
11471
11472 [BZ #18471]
11473 * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Use weak
11474 aliases for non-libc case of versioned symbols.
11475 * sysdeps/unix/sysv/linux/lseek64.c: Include <shlib-compat.h>.
11476 (llseek): Define as compat symbol if
11477 [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_28)], not as weak alias
11478 with link warning.
11479 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (llseek):
11480 Make into a compat symbol, disabled for minimum symbol version
11481 GLIBC_2.28 and later.
11482 * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Remove file.
11483
11484 2018-05-22 Florian Weimer <fweimer@redhat.com>
11485
11486 * sysdeps/i386/Makefile [$(subdir) == math] (sysdep-CFLAGS): Do
11487 not add -mpreferred-stack-boundary=4.
11488 [$(subdir) == csu] (sysdep-CFLAGS): Likewise.
11489 (stack-align-test-flags): Likewise.
11490 [$(subdir) == stdlib] (CFLAGS-exit.c, CFLAGS-cxa_finalize.c):
11491 Likewise.
11492 [$(subdir) == elf] (CFLAGS-dl-init.c, CFLAGS-dl-fini.c)
11493 (CFLAGS-dl-open.c, CFLAGS-dl-close.c, CFLAGS-dl-error.c): Likewise.
11494 [$(subdir) == dlfcn] (CFLAGS-dlopen.c, CFLAGS-dlopenold.c)
11495 (CFLAGS-dlclose.c, CFLAGS-dlerror.c): Likewise.
11496 * sysdeps/i386/nptl/Makefile [$(subdir) == nptl]
11497 (CFLAGS-pthread_create.c, CFLAGS-tst-align.c)
11498 (CFLAGS-tst-align2.c): Likewise.
11499
11500 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11501
11502 * sysdeps/x86/cpu-features.h (bit_arch_Prefer_FSRM): New.
11503 (index_arch_Prefer_FSRM): Likewise.
11504 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
11505 Also check Prefer_FSRM.
11506 * sysdeps/x86_64/multiarch/ifunc-memmove.h (IFUNC_SELECTOR):
11507 Also return OPTIMIZE (erms) for Prefer_FSRM.
11508
11509 2018-05-21 H.J. Lu <hongjiu.lu@intel.com>
11510
11511 * sysdeps/x86/cpu-features.h (bit_cpu_FSRM): New.
11512 (index_cpu_FSRM): Likewise.
11513 (reg_FSRM): Likewise.
11514
11515 2018-05-18 Joseph Myers <joseph@codesourcery.com>
11516
11517 * math/gen-tgmath-tests.py: Import sys.
11518 (Tests.__init__): Initialize macros_seen.
11519 (Tests.add_tests): Add macro to macros_seen. Only generate tests
11520 if requested to do so for this macro.
11521 (Tests.add_all_tests): Take argument for macro for which to
11522 generate tests.
11523 (Tests.check_macro_list): New function.
11524 (main): Handle check-list argument and argument specifying macro
11525 for which to generate tests.
11526 * math/Makefile [PYTHON] (tgmath3-macros): New variable.
11527 [PYTHON] (tgmath3-macro-tests): Likewise.
11528 [PYTHON] (tests): Add $(tgmath3-macro-tests) not test-tgmath3.
11529 [PYTHON] (generated): Add $(addsuffix .c,$(tgmath3-macro-tests))
11530 not test-tgmath3.c.
11531 [PYTHON] (CFLAGS-test-tgmath3.c): Remove.
11532 [PYTHON] ($(tgmath3-macro-tests:%=$(objpfx)%.o): Add -fno-builtin
11533 to CFLAGS.
11534 [PYTHON] ($(objpfx)test-tgmath3.c): Replace rule by....
11535 [PYTHON] ($(foreach
11536 m,$(tgmath3-macros),$(objpfx)test-tgmath3-$(m).c): ... this. New
11537 rule.
11538 [PYTHON] (tests-special): Add
11539 $(objpfx)test-tgmath3-macro-list.out.
11540 [PYTHON] ($(objpfx)test-tgmath3-macro-list.out): New rule.
11541
11542 * sysdeps/unix/sysv/linux/syscalls.list (nfsservctl): Make into a
11543 compat symbol, disabled for minimum symbol version GLIBC_2.28 and
11544 later.
11545
11546 [BZ #22639]
11547 * time/tzset.c (SECSPERDAY): Cast to time_t.
11548 * time/tst-y2039.c: New file.
11549 * time/Makefile (tests): Add tst-y2039.
11550
11551 2018-05-17 Leonardo Sandoval <leonardo.sandoval.gonzalez@intel.com>
11552
11553 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
11554 (PREFETCH_ONE_SET): Remove duplicate line.
11555
11556 2018-05-17 Florian Weimer <fweimer@redhat.com>
11557
11558 * sysdeps/generic/math-type-macros-double.h: Include
11559 <math-nan-payload-double.h> after <libm-alias-double.h>.
11560 * sysdeps/generic/math-type-macros-float.h: Include
11561 <math-nan-payload-float.h> after <libm-alias-float.h>.
11562 * sysdeps/generic/math-type-macros-float128.h: Include
11563 <math-nan-payload-float128.h> after <libm-alias-float128.h>.
11564 * sysdeps/generic/math-type-macros-ldouble.h: Include
11565 <math-nan-payload-ldouble.h> after <libm-alias-ldouble.h>.
11566
11567 2018-05-17 Andreas Schwab <schwab@suse.de>
11568
11569 * resolv/res_send.c (__res_context_send): Don't set errno when
11570 returing error after malloc failure.
11571
11572 2018-05-17 H.J. Lu <hongjiu.lu@intel.com>
11573
11574 * nptl/allocatestack.c (allocate_stack): Remove the
11575 !__ASSUME_PRIVATE_FUTEX paths.
11576 * nptl/descr.h (header): Remove the !__ASSUME_PRIVATE_FUTEX path.
11577 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
11578 Likewise.
11579 * sysdeps/i386/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Removed.
11580 * sysdeps/powerpc/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11581 * sysdeps/sh/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11582 * sysdeps/x86_64/nptl/tcb-offsets.sym (PRIVATE_FUTEX): Likewise.
11583 * sysdeps/i386/nptl/tls.h: (tcbhead_t): Remve the
11584 !__ASSUME_PRIVATE_FUTEX path.
11585 * sysdeps/s390/nptl/tls.h (tcbhead_t): Likewise.
11586 * sysdeps/sparc/nptl/tls.h (tcbhead_t): Likewise.
11587 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Likewise.
11588 * sysdeps/unix/sysv/linux/i386/lowlevellock.S: Remove the
11589 !__ASSUME_PRIVATE_FUTEX macros.
11590 * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
11591 * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
11592 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
11593 * sysdeps/unix/sysv/linux/kernel-features.h
11594 (__ASSUME_PRIVATE_FUTEX): Removed.
11595
11596 2018-05-17 Joseph Myers <joseph@codesourcery.com>
11597
11598 * math/Makefile (libm-narrow-fns): Add div.
11599 (libm-test-funcs-narrow): Likewise.
11600 * math/Versions (GLIBC_2.28): Add narrowing divide functions.
11601 * math/bits/mathcalls-narrow.h (div): Use __MATHCALL_NARROW.
11602 * math/gen-auto-libm-tests.c (test_functions): Add div.
11603 * math/math-narrow.h (CHECK_NARROW_DIV): New macro.
11604 (NARROW_DIV_ROUND_TO_ODD): Likewise.
11605 (NARROW_DIV_TRIVIAL): Likewise.
11606 * sysdeps/ieee754/float128/float128_private.h (__fdivl): New
11607 macro.
11608 (__ddivl): Likewise.
11609 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fdiv and
11610 ddiv.
11611 (CFLAGS-nldbl-ddiv.c): New variable.
11612 (CFLAGS-nldbl-fdiv.c): Likewise.
11613 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11614 __nldbl_ddivl.
11615 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_ddivl): New
11616 prototype.
11617 * manual/arith.texi (Misc FP Arithmetic): Document fdiv, fdivl,
11618 ddivl, fMdivfN, fMdivfNx, fMxdivfN and fMxdivfNx.
11619 * math/auto-libm-test-in: Add tests of div.
11620 * math/auto-libm-test-out-narrow-div: New generated file.
11621 * math/libm-test-narrow-div.inc: New file.
11622 * sysdeps/i386/fpu/s_f32xdivf64.c: Likewise.
11623 * sysdeps/ieee754/dbl-64/s_f32xdivf64.c: Likewise.
11624 * sysdeps/ieee754/dbl-64/s_fdiv.c: Likewise.
11625 * sysdeps/ieee754/float128/s_f32divf128.c: Likewise.
11626 * sysdeps/ieee754/float128/s_f64divf128.c: Likewise.
11627 * sysdeps/ieee754/float128/s_f64xdivf128.c: Likewise.
11628 * sysdeps/ieee754/ldbl-128/s_ddivl.c: Likewise.
11629 * sysdeps/ieee754/ldbl-128/s_f64xdivf128.c: Likewise.
11630 * sysdeps/ieee754/ldbl-128/s_fdivl.c: Likewise.
11631 * sysdeps/ieee754/ldbl-128ibm/s_ddivl.c: Likewise.
11632 * sysdeps/ieee754/ldbl-128ibm/s_fdivl.c: Likewise.
11633 * sysdeps/ieee754/ldbl-96/s_ddivl.c: Likewise.
11634 * sysdeps/ieee754/ldbl-96/s_fdivl.c: Likewise.
11635 * sysdeps/ieee754/ldbl-opt/nldbl-ddiv.c: Likewise.
11636 * sysdeps/ieee754/ldbl-opt/nldbl-fdiv.c: Likewise.
11637 * sysdeps/ieee754/soft-fp/s_ddivl.c: Likewise.
11638 * sysdeps/ieee754/soft-fp/s_fdiv.c: Likewise.
11639 * sysdeps/ieee754/soft-fp/s_fdivl.c: Likewise.
11640 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11641 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11642 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11643 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11644 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11645 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11646 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11647 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11648 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11649 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11650 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11651 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11652 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11653 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11654 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11655 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11656 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11657 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11658 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11659 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11660 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11661 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11662 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11663 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11664 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11665 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11666
11667 2018-05-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
11668
11669 [BZ #23178]
11670 * nscd/nscd-client.h (sendfileall): Remove prototype.
11671 * nscd/connections.c [HAVE_SENDFILE] (sendfileall): Remove function.
11672 (handle_request): Use writeall instead of sendfileall.
11673 * nscd/aicache.c (addhstaiX): Likewise.
11674 * nscd/grpcache.c (cache_addgr): Likewise.
11675 * nscd/hstcache.c (cache_addhst): Likewise.
11676 * nscd/initgrcache.c (addinitgroupsX): Likewise.
11677 * nscd/netgroupcache.c (addgetnetgrentX, addinnetgrX): Likewise.
11678 * nscd/pwdcache.c (cache_addpw): Likewise.
11679 * nscd/servicescache.c (cache_addserv): Likewise.
11680 * sysdeps/unix/sysv/linux/Makefile [$(subdir) == nscd]
11681 (sysdep-CFLAGS): Remove -DHAVE_SENDFILE.
11682 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_SENDFILE):
11683 Remove define.
11684
11685 2018-05-16 H.J. Lu <hongjiu.lu@intel.com>
11686
11687 * sysdeps/x86_64/multiarch/strncat-c.c (STRNCAT_PRIMARY): Removed.
11688 Include <string/strncat.c>.
11689 * sysdeps/x86_64/multiarch/strncat.c (__strncat): New strong
11690 alias.
11691 (__GI___strncat): New hidden alias.
11692
11693 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11694
11695 * sysdeps/mips/mips32/libm-test-ulps: Update.
11696 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
11697
11698 2018-05-16 Florian Weimer <fweimer@redhat.com>
11699
11700 * support/Makefile (libsupport-routines): Add support_quote_blob,
11701 support_test_compare_blob.
11702 (tests): Add tst-support_quote_blob, tst-test_compare_blob.
11703 * support/check.h (TEST_COMPARE_BLOB): Define.
11704 (support_test_compare_blob): Declare.
11705 * support/support.h (support_quote_blob): Declare.
11706 * support/support_quote_blob.c: New file.
11707 * support/support_test_compare_blob.c: Likewise.
11708 * support/tst-support_quote_blob.c: Likewise.
11709 * support/tst-test_compare_blob.c: Likewise.
11710
11711 2018-05-16 Florian Weimer <fweimer@redhat.com>
11712
11713 * stdlib/strtod_nan.c: Include <math-type-macros-double.h> instead
11714 of <strtod_nan_double.h>.
11715 * stdlib/strtod_nan_main.c (STRTOD_NAN): Use SET_NAN_PAYLOAD
11716 instead of SET_MANTISSA.
11717 * stdlib/strtof_nan.c: Include <math-type-macros-float.h> instead
11718 of include <strtod_nan_float.h>.
11719 * stdlib/strtold_nan.c: Include <math-type-macros-ldouble.h>
11720 instead of <strtod_nan_ldouble.h>.
11721 * stdlib/strtod_nan_double.h: Move to ...
11722 * sysdeps/generic/math-nan-payload-double.h: ... here.
11723 (FLOAT): Remove definition.
11724 (SET_MANTISSA): Rename to ...
11725 (SET_NAN_PAYLOAD): ... this.
11726 * stdlib/strtod_nan_float.h: Move to ...
11727 * sysdeps/generic/math-nan-payload-float.h: ... here.
11728 (FLOAT): Remove definition.
11729 (SET_MANTISSA): Rename to ...
11730 (SET_NAN_PAYLOAD): ... this.
11731 * sysdeps/generic/math-type-macros-double.h: Include
11732 <math-nan-payload-double.h>. Include <math/math-svid-compat.h>
11733 instead of <math-svid-compat.h>.
11734 * sysdeps/generic/math-type-macros-float.h: Include
11735 <math-nan-payload-float.h>. Include <math/math-svid-compat.h>
11736 instead of <math-svid-compat.h>.
11737 * sysdeps/generic/math-type-macros-float128.h: Include
11738 <math-nan-payload-float128.h>.
11739 * sysdeps/generic/math-type-macros-ldouble.h: Include
11740 <math-nan-payload-ldouble.h>. Include <math/math-svid-compat.h>
11741 instead of <math-svid-compat.h>.
11742 * sysdeps/generic/math-type-macros.h: Document SET_NAN_PAYLOAD and
11743 check for definition.
11744 * sysdeps/ieee754/float128/strtod_nan_float128.h: Move to ...
11745 * sysdeps/ieee754/float128/math-nan-payload-float128.h: ... here.
11746 Include <ieee754_float128.h>.
11747 (FLOAT): Remove definition.
11748 (SET_MANTISSA): Rename to ...
11749 (SET_NAN_PAYLOAD): ... this.
11750 * sysdeps/ieee754/float128/strtof128_nan.c: Include
11751 <math-type-macros-float128.h> instead of <strtod_nan_float128.h>.
11752 Do not include <float128_private.h>.
11753 * sysdeps/ieee754/float128/wcstof128_nan.c: Likewise.
11754 * sysdeps/ieee754/ldbl-128/strtod_nan_ldouble.h: Move to ...
11755 * sysdeps/ieee754/ldbl-128/math-nan-payload-ldouble.h: ... here.
11756 (FLOAT): Remove definition.
11757 (SET_MANTISSA): Rename to ...
11758 (SET_NAN_PAYLOAD): ... this.
11759 * sysdeps/ieee754/ldbl-128ibm/strtod_nan_ldouble.h: Move to ...
11760 * sysdeps/ieee754/ldbl-128ibm/math-nan-payload-ldouble.h: ... here.
11761 (FLOAT): Remove definition.
11762 (SET_MANTISSA): Rename to ...
11763 (SET_NAN_PAYLOAD): ... this.
11764 * sysdeps/ieee754/ldbl-96/strtod_nan_ldouble.h: Move to ...
11765 * sysdeps/ieee754/ldbl-96/math-nan-payload-ldouble.h: ... here.
11766 (FLOAT): Remove definition.
11767 (SET_MANTISSA): Rename to ...
11768 (SET_NAN_PAYLOAD): ... this.
11769 * wcsmbs/wcstod_nan.c: Include <math-type-macros-double.h> instead
11770 of "../stdlib/strtod_nan_double.h".
11771 * wcsmbs/wcstof_nan.c: Include <math-type-macros-float.h> instead
11772 of "../stdlib/strtod_nan_float.h".
11773 * wcsmbs/wcstold_nan.c: Include <math-type-macros-ldouble.h>
11774 instead of "../stdlib/strtod_nan_ldouble.h".
11775 * manual/arith.texi (Parsing of Floats): Adjust comment.
11776
11777 2018-05-16 Joseph Myers <joseph@codesourcery.com>
11778
11779 * math/Makefile (libm-narrow-fns): Add mul.
11780 (libm-test-funcs-narrow): Likewise.
11781 * math/Versions (GLIBC_2.28): Add narrowing multiply functions.
11782 * math/bits/mathcalls-narrow.h (mul): Use __MATHCALL_NARROW.
11783 * math/gen-auto-libm-tests.c (test_functions): Add mul.
11784 * math/math-narrow.h (CHECK_NARROW_MUL): New macro.
11785 (NARROW_MUL_ROUND_TO_ODD): Likewise.
11786 (NARROW_MUL_TRIVIAL): Likewise.
11787 * soft-fp/op-common.h (FP_TRUNC_COOKED): Likewise.
11788 * sysdeps/ieee754/float128/float128_private.h (__fmull): New
11789 macro.
11790 (__dmull): Likewise.
11791 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fmul and
11792 dmul.
11793 (CFLAGS-nldbl-dmul.c): New variable.
11794 (CFLAGS-nldbl-fmul.c): Likewise.
11795 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
11796 __nldbl_dmull.
11797 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dmull): New
11798 prototype.
11799 * manual/arith.texi (Misc FP Arithmetic): Document fmul, fmull,
11800 dmull, fMmulfN, fMmulfNx, fMxmulfN and fMxmulfNx.
11801 * math/auto-libm-test-in: Add tests of mul.
11802 * math/auto-libm-test-out-narrow-mul: New generated file.
11803 * math/libm-test-narrow-mul.inc: New file.
11804 * sysdeps/i386/fpu/s_f32xmulf64.c: Likewise.
11805 * sysdeps/ieee754/dbl-64/s_f32xmulf64.c: Likewise.
11806 * sysdeps/ieee754/dbl-64/s_fmul.c: Likewise.
11807 * sysdeps/ieee754/float128/s_f32mulf128.c: Likewise.
11808 * sysdeps/ieee754/float128/s_f64mulf128.c: Likewise.
11809 * sysdeps/ieee754/float128/s_f64xmulf128.c: Likewise.
11810 * sysdeps/ieee754/ldbl-128/s_dmull.c: Likewise.
11811 * sysdeps/ieee754/ldbl-128/s_f64xmulf128.c: Likewise.
11812 * sysdeps/ieee754/ldbl-128/s_fmull.c: Likewise.
11813 * sysdeps/ieee754/ldbl-128ibm/s_dmull.c: Likewise.
11814 * sysdeps/ieee754/ldbl-128ibm/s_fmull.c: Likewise.
11815 * sysdeps/ieee754/ldbl-96/s_dmull.c: Likewise.
11816 * sysdeps/ieee754/ldbl-96/s_fmull.c: Likewise.
11817 * sysdeps/ieee754/ldbl-opt/nldbl-dmul.c: Likewise.
11818 * sysdeps/ieee754/ldbl-opt/nldbl-fmul.c: Likewise.
11819 * sysdeps/ieee754/soft-fp/s_dmull.c: Likewise.
11820 * sysdeps/ieee754/soft-fp/s_fmul.c: Likewise.
11821 * sysdeps/ieee754/soft-fp/s_fmull.c: Likewise.
11822 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11823 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
11824 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
11825 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
11826 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
11827 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
11828 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
11829 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
11830 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
11831 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
11832 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
11833 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
11834 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
11835 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
11836 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
11837 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
11838 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
11839 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
11840 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
11841 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
11842 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
11843 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
11844 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
11845 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
11846 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
11847 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
11848
11849 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11850
11851 * sysdeps/i386/crti.S (_init): Replace PREINIT_FUNCTION@PLT
11852 with *%eax in call.
11853
11854 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11855
11856 * sysdeps/i386/ldsodefs.h: Removed.
11857 * sysdeps/x86_64/ldsodefs.h: Moved to ...
11858 * sysdeps/x86/ldsodefs.h: This.
11859 (La_i86_regs): New.
11860 (La_i86_retval): Likewise.
11861 (ARCH_PLTENTER_MEMBERS): Add i86_gnu_pltenter.
11862 (ARCH_PLTEXIT_MEMBERS): i86_gnu_pltexit.
11863
11864 2018-05-14 H.J. Lu <hongjiu.lu@intel.com>
11865
11866 * sysdeps/x86_64/multiarch/strlen-avx2.S (STRLEN): Remove the
11867 unnecessary testl.
11868
11869 2018-05-13 Alan Modra <amodra@gmail.com>
11870
11871 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Add
11872 R_PARISC_TLS_DTPOFF32 reloc addend.
11873
11874 2018-05-11 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
11875
11876 * bits/floatn-common.h: Define __HAVE_FLOAT128_UNLIKE_LDBL.
11877 * math/math.h: Restrict the prototype definition for the functions
11878 issignaling(_Float128) and iszero(_Float128); and template
11879 __iseqsig_type<_Float128>, from __HAVE_DISTINCT_FLOAT128 to
11880 __HAVE_FLOAT128_UNLIKE_LDBL.
11881 * sysdeps/powerpc/bits/floatn.h [__HAVE_FLOAT128
11882 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
11883 && __LDBL_MANT_DIG__ == 113]: Use long double suffix for
11884 __f128() constants; define the type _Float128 as long double;
11885 and reuse long double in __CFLOAT128.
11886
11887 2018-05-11 Joseph Myers <joseph@codesourcery.com>
11888
11889 * sysdeps/generic/math_private.h: Do not include
11890 <math-barriers.h>.
11891 * stdlib/strtod_l.c: Include <math-barriers.h> instead of
11892 <math_private.h>.
11893 * math/fromfp.h: Include <math-barriers.h>.
11894 * math/math-narrow.h: Likewise.
11895 * math/s_nextafter.c: Likewise.
11896 * math/s_nexttowardf.c: Likewise.
11897 * sysdeps/aarch64/fpu/s_llrint.c: Likewise.
11898 * sysdeps/aarch64/fpu/s_llrintf.c: Likewise.
11899 * sysdeps/aarch64/fpu/s_lrint.c: Likewise.
11900 * sysdeps/aarch64/fpu/s_lrintf.c: Likewise.
11901 * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11902 * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11903 * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11904 * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11905 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11906 * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11907 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11908 * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11909 * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11910 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
11911 * sysdeps/ieee754/dbl-64/s_fma.c: Likewise.
11912 * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
11913 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
11914 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11915 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
11916 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11917 * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11918 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
11919 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
11920 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
11921 * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11922 * sysdeps/ieee754/k_standardl.c: Likewise.
11923 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11924 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11925 * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11926 * sysdeps/ieee754/ldbl-128/s_fmal.c: Likewise.
11927 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11928 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11929 * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11930 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11931 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11932 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
11933 * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11934 * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11935 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11936 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11937 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11938 * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11939 * sysdeps/ieee754/ldbl-96/s_fma.c: Likewise.
11940 * sysdeps/ieee754/ldbl-96/s_fmal.c: Likewise.
11941 * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11942 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11943 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c: Likewise.
11944 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c: Likewise.
11945
11946 2018-05-11 Florian Weimer <fweimer@redhat.com>
11947
11948 Use 64-bit epoch values in the time zone file parser.
11949 * include/time.h (internal_time_t): Define.
11950 (__tzfile_compute): Use it.
11951 * time/tzfile.c (struct leap): Use internal_time_t for epoch
11952 member.
11953 (transitions): Switch to internal_time_t.
11954 (__tzfile_read): Likewise. Remove code dealing with 4-byte time_t
11955 types.
11956 (__tzfile_compute): Use internal_time_t for timer argument. Check
11957 for truncation before calling __offtime.
11958
11959 2018-05-11 Florian Weimer <fweimer@redhat.com>
11960
11961 [BZ #23166]
11962 * include/rpc/clnt.h (rpc_createerr): Declare hidden alias.
11963 * include/rpc/svc.h (svc_pollfd, svc_max_pollfd, svc_fdset):
11964 Likewise.
11965 * sunrpc/rpc_common.c (svc_fdset, rpc_createerr, svc_pollfd)
11966 (svc_max_pollfd): Add nocommon attribute and hidden alias. Do not
11967 export without --enable-obsolete-rpc.
11968 * sunrpc/svcauth_des.c (svcauthdes_stats): Turn into compatibility
11969 symbol. This should not have been exported, ever.
11970
11971 2018-05-11 Rafal Luzynski <digitalfreak@lingonborough.com>
11972
11973 [BZ #23152]
11974 * localedata/locales/gd_GB (abmon): Fix typo in May:
11975 "Mhàrt" -> "Cèit". Adjust the comment according to the change.
11976
11977 2018-05-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
11978
11979 * sysdeps/aarch64/multiarch/memcpy_falkor.S (__memcpy_falkor):
11980 Use multiple registers to copy data in loop tail.
11981
11982 * sysdeps/aarch64/multiarch/memmove_falkor.S
11983 (__memmove_falkor): Use multiple registers to move data in
11984 loop tail.
11985
11986 2018-05-10 Joseph Myers <joseph@codesourcery.com>
11987
11988 * math/math-underflow.h: New file.
11989 * sysdeps/generic/math_private.h: Do not include <float.h>.
11990 (fabs_tg): Remove macro. Moved to math-underflow.h.
11991 (min_of_type_f): Likewise.
11992 (min_of_type_): Likewise.
11993 (min_of_type_l): Likewise.
11994 (min_of_type_f128): Likewise.
11995 (min_of_type): Likewise.
11996 (math_check_force_underflow): Likewise.
11997 (math_check_force_underflow_nonneg): Likewise.
11998 (math_check_force_underflow_complex): Likewise.
11999 * math/e_exp2_template.c: Include <math-underflow.h>.
12000 * math/k_casinh_template.c: Likewise.
12001 * math/s_catan_template.c: Likewise.
12002 * math/s_catanh_template.c: Likewise.
12003 * math/s_ccosh_template.c: Likewise.
12004 * math/s_cexp_template.c: Likewise.
12005 * math/s_clog10_template.c: Likewise.
12006 * math/s_clog_template.c: Likewise.
12007 * math/s_csin_template.c: Likewise.
12008 * math/s_csinh_template.c: Likewise.
12009 * math/s_csqrt_template.c: Likewise.
12010 * math/s_ctan_template.c: Likewise.
12011 * math/s_ctanh_template.c: Likewise.
12012 * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12013 * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12014 * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
12015 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12016 * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12017 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12018 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12019 * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12020 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12021 * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12022 * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12023 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12024 * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12025 * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12026 * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12027 * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12028 * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12029 * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12030 * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12031 * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12032 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12033 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12034 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12035 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12036 * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12037 * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12038 * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12039 * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12040 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12041 * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12042 * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12043 * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12044 * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12045 * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12046 * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
12047 * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
12048 * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12049 * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12050 * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12051 * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12052 * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12053 * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12054 * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12055 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12056 * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12057 * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12058 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12059 * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12060 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12061 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12062 * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12063 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
12064 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12065 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
12066 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12067 * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12068 * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12069 * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12070 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12071 * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12072 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12073 * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12074 * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
12075 * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
12076 * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
12077 * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
12078 * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
12079 * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
12080 * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
12081 * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
12082 * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12083 * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
12084 * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12085 * sysdeps/ieee754/ldbl-96/k_tanl.c: Likewise.
12086 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
12087 * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
12088 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
12089 * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
12090 * sysdeps/x86/fpu/powl_helper.c: Likewise.
12091 * sysdeps/ieee754/dbl-64/s_nextup.c: Include <float.h>.
12092 * sysdeps/ieee754/flt-32/s_nextupf.c: Likewise.
12093 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Likewise.
12094 * sysdeps/ieee754/ldbl-128ibm/s_nextupl.c: Likewise.
12095 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Likewise.
12096
12097 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12098
12099 * sysdeps/generic/math-barriers.h: New file.
12100 * sysdeps/generic/math_private.h [!math_opt_barrier]
12101 (math_opt_barrier): Move to math-barriers.h.
12102 [!math_opt_barrier] (math_force_eval): Likewise.
12103 * sysdeps/aarch64/fpu/math-barriers.h: New file.
12104 * sysdeps/aarch64/fpu/math_private.h (math_opt_barrier): Move to
12105 math-barriers.h.
12106 (math_force_eval): Likewise.
12107 * sysdeps/alpha/fpu/math-barriers.h: New file.
12108 * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): Move to
12109 math-barriers.h.
12110 (math_force_eval): Likewise.
12111 * sysdeps/x86/fpu/math-barriers.h: New file.
12112 * sysdeps/i386/fpu/fenv_private.h (math_opt_barrier): Move to
12113 math-barriers.h.
12114 (math_force_eval): Likewise.
12115 * sysdeps/m68k/m680x0/fpu/math_private.h: Move to....
12116 * sysdeps/m68k/m680x0/fpu/math-barriers.h: ... here. Adjust
12117 multiple-include guard for rename.
12118 * sysdeps/powerpc/fpu/math-barriers.h: New file.
12119 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier): Move to
12120 math-barriers.h.
12121 (math_force_eval): Likewise.
12122
12123 2018-05-09 Paul Pluzhnikov <ppluzhnikov@google.com>
12124
12125 [BZ #22786]
12126 CVE-2018-11236
12127 * stdlib/canonicalize.c (__realpath): Fix overflow in path length
12128 computation.
12129 * stdlib/Makefile (test-bz22786): New test.
12130 * stdlib/test-bz22786.c: New test.
12131
12132 2018-05-09 Joseph Myers <joseph@codesourcery.com>
12133
12134 * include/math-narrow-eval.h: New file. Contents moved from ....
12135 * sysdeps/generic/math_private.h: ... here.
12136 (math_narrow_eval): Remove macro. Moved to math-narrow-eval.h.
12137 [FLT_EVAL_METHOD != 0] (excess_precision): Likewise.
12138 * math/s_fdim_template.c: Include <math-narrow-eval.h>.
12139 * stdlib/strtod_l.c: Likewise.
12140 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
12141 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
12142 * sysdeps/i386/fpu/s_fdim.c: Likewise.
12143 * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12144 * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
12145 * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12146 * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12147 * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12148 * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12149 * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
12150 * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12151 * sysdeps/ieee754/dbl-64/lgamma_neg.c: Likewise.
12152 * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12153 * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12154 * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12155 * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12156 * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
12157 * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
12158 * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
12159 * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12160 * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12161 * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12162 * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12163 * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12164 * sysdeps/ieee754/flt-32/lgamma_negf.c: Likewise.
12165 * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12166 * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12167 * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12168 * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
12169
12170 2018-05-08 Andreas Schwab <schwab@suse.de>
12171
12172 * sysdeps/nptl/internaltypes.h: Fix comment.
12173
12174 2018-05-07 H.J. Lu <hongjiu.lu@intel.com>
12175
12176 * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
12177 (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
12178 hidden.
12179
12180 2018-05-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
12181
12182 * benchtests/bench-memcpy-walk.c (test_main): Move declaration
12183 of I into loop header.
12184 * benchtests/bench-memmove-walk.c
12185 (test_main): Likewise.
12186
12187 2018-05-07 Alexandre Oliva <oliva@gnu.org>
12188
12189 Revert:
12190 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12191 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12192
12193 2018-05-05 Paul Pluzhnikov <ppluzhnikov@google.com>
12194
12195 [BZ #20419]
12196 * elf/dl-load.c (open_verify): Fix stack overflow.
12197 * elf/Makefile (tst-big-note): New test.
12198 * elf/tst-big-note-lib.S: New.
12199 * elf/tst-big-note.c: New.
12200
12201 2018-05-04 Joseph Myers <joseph@codesourcery.com>
12202
12203 * scripts/abilist.awk: Ignore absolute symbols.
12204 * sysdeps/mach/hurd/i386/ld.abilist: Remove absolute symbols.
12205 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: Likewise.
12206 * sysdeps/mach/hurd/i386/libanl.abilist: Likewise.
12207 * sysdeps/mach/hurd/i386/libc.abilist: Likewise.
12208 * sysdeps/mach/hurd/i386/libcrypt.abilist: Likewise.
12209 * sysdeps/mach/hurd/i386/libdl.abilist: Likewise.
12210 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
12211 * sysdeps/mach/hurd/i386/libnsl.abilist: Likewise.
12212 * sysdeps/mach/hurd/i386/libpthread.abilist: Likewise.
12213 * sysdeps/mach/hurd/i386/libresolv.abilist: Likewise.
12214 * sysdeps/mach/hurd/i386/librt.abilist: Likewise.
12215 * sysdeps/mach/hurd/i386/libutil.abilist: Likewise.
12216 * sysdeps/unix/sysv/linux/aarch64/ld.abilist: Likewise.
12217 * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: Likewise.
12218 * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: Likewise.
12219 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Likewise.
12220 * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: Likewise.
12221 * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: Likewise.
12222 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
12223 * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: Likewise.
12224 * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: Likewise.
12225 * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: Likewise.
12226 * sysdeps/unix/sysv/linux/aarch64/librt.abilist: Likewise.
12227 * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: Likewise.
12228 * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: Likewise.
12229 * sysdeps/unix/sysv/linux/alpha/ld.abilist: Likewise.
12230 * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: Likewise.
12231 * sysdeps/unix/sysv/linux/alpha/libanl.abilist: Likewise.
12232 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
12233 * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: Likewise.
12234 * sysdeps/unix/sysv/linux/alpha/libdl.abilist: Likewise.
12235 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
12236 * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: Likewise.
12237 * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: Likewise.
12238 * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: Likewise.
12239 * sysdeps/unix/sysv/linux/alpha/librt.abilist: Likewise.
12240 * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: Likewise.
12241 * sysdeps/unix/sysv/linux/alpha/libutil.abilist: Likewise.
12242 * sysdeps/unix/sysv/linux/arm/ld.abilist: Likewise.
12243 * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: Likewise.
12244 * sysdeps/unix/sysv/linux/arm/libanl.abilist: Likewise.
12245 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
12246 * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: Likewise.
12247 * sysdeps/unix/sysv/linux/arm/libdl.abilist: Likewise.
12248 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
12249 * sysdeps/unix/sysv/linux/arm/libnsl.abilist: Likewise.
12250 * sysdeps/unix/sysv/linux/arm/libpthread.abilist: Likewise.
12251 * sysdeps/unix/sysv/linux/arm/libresolv.abilist: Likewise.
12252 * sysdeps/unix/sysv/linux/arm/librt.abilist: Likewise.
12253 * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: Likewise.
12254 * sysdeps/unix/sysv/linux/arm/libutil.abilist: Likewise.
12255 * sysdeps/unix/sysv/linux/hppa/ld.abilist: Likewise.
12256 * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: Likewise.
12257 * sysdeps/unix/sysv/linux/hppa/libanl.abilist: Likewise.
12258 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
12259 * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: Likewise.
12260 * sysdeps/unix/sysv/linux/hppa/libdl.abilist: Likewise.
12261 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
12262 * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: Likewise.
12263 * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: Likewise.
12264 * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: Likewise.
12265 * sysdeps/unix/sysv/linux/hppa/librt.abilist: Likewise.
12266 * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: Likewise.
12267 * sysdeps/unix/sysv/linux/hppa/libutil.abilist: Likewise.
12268 * sysdeps/unix/sysv/linux/i386/ld.abilist: Likewise.
12269 * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: Likewise.
12270 * sysdeps/unix/sysv/linux/i386/libanl.abilist: Likewise.
12271 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
12272 * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: Likewise.
12273 * sysdeps/unix/sysv/linux/i386/libdl.abilist: Likewise.
12274 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
12275 * sysdeps/unix/sysv/linux/i386/libnsl.abilist: Likewise.
12276 * sysdeps/unix/sysv/linux/i386/libpthread.abilist: Likewise.
12277 * sysdeps/unix/sysv/linux/i386/libresolv.abilist: Likewise.
12278 * sysdeps/unix/sysv/linux/i386/librt.abilist: Likewise.
12279 * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: Likewise.
12280 * sysdeps/unix/sysv/linux/i386/libutil.abilist: Likewise.
12281 * sysdeps/unix/sysv/linux/ia64/ld.abilist: Likewise.
12282 * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: Likewise.
12283 * sysdeps/unix/sysv/linux/ia64/libanl.abilist: Likewise.
12284 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
12285 * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: Likewise.
12286 * sysdeps/unix/sysv/linux/ia64/libdl.abilist: Likewise.
12287 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
12288 * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: Likewise.
12289 * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: Likewise.
12290 * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: Likewise.
12291 * sysdeps/unix/sysv/linux/ia64/librt.abilist: Likewise.
12292 * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: Likewise.
12293 * sysdeps/unix/sysv/linux/ia64/libutil.abilist: Likewise.
12294 * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: Likewise.
12295 * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
12296 Likewise.
12297 * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: Likewise.
12298 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
12299 * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: Likewise.
12300 * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: Likewise.
12301 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
12302 * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: Likewise.
12303 * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: Likewise.
12304 * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: Likewise.
12305 * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: Likewise.
12306 * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: Likewise.
12307 * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: Likewise.
12308 * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: Likewise.
12309 * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
12310 Likewise.
12311 * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: Likewise.
12312 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
12313 * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: Likewise.
12314 * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: Likewise.
12315 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
12316 * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: Likewise.
12317 * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: Likewise.
12318 * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: Likewise.
12319 * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: Likewise.
12320 * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: Likewise.
12321 * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: Likewise.
12322 * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Likewise.
12323 * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist: Likewise.
12324 * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Likewise.
12325 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
12326 * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Likewise.
12327 * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Likewise.
12328 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
12329 * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Likewise.
12330 * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Likewise.
12331 * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Likewise.
12332 * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Likewise.
12333 * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Likewise.
12334 * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Likewise.
12335 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
12336 * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: Likewise.
12337 * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
12338 Likewise.
12339 * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: Likewise.
12340 * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: Likewise.
12341 * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: Likewise.
12342 * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: Likewise.
12343 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
12344 * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: Likewise.
12345 * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: Likewise.
12346 * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: Likewise.
12347 * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: Likewise.
12348 * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: Likewise.
12349 * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: Likewise.
12350 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: Likewise.
12351 * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: Likewise.
12352 * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: Likewise.
12353 * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: Likewise.
12354 * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: Likewise.
12355 * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: Likewise.
12356 * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: Likewise.
12357 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
12358 * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
12359 Likewise.
12360 * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: Likewise.
12361 * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: Likewise.
12362 * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: Likewise.
12363 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
12364 * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: Likewise.
12365 * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: Likewise.
12366 * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: Likewise.
12367 * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist: Likewise.
12368 * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: Likewise.
12369 * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: Likewise.
12370 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
12371 * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: Likewise.
12372 * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: Likewise.
12373 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
12374 * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: Likewise.
12375 * sysdeps/unix/sysv/linux/nios2/ld.abilist: Likewise.
12376 * sysdeps/unix/sysv/linux/nios2/libBrokenLocale.abilist: Likewise.
12377 * sysdeps/unix/sysv/linux/nios2/libanl.abilist: Likewise.
12378 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
12379 * sysdeps/unix/sysv/linux/nios2/libcrypt.abilist: Likewise.
12380 * sysdeps/unix/sysv/linux/nios2/libdl.abilist: Likewise.
12381 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
12382 * sysdeps/unix/sysv/linux/nios2/libnsl.abilist: Likewise.
12383 * sysdeps/unix/sysv/linux/nios2/libpthread.abilist: Likewise.
12384 * sysdeps/unix/sysv/linux/nios2/libresolv.abilist: Likewise.
12385 * sysdeps/unix/sysv/linux/nios2/librt.abilist: Likewise.
12386 * sysdeps/unix/sysv/linux/nios2/libthread_db.abilist: Likewise.
12387 * sysdeps/unix/sysv/linux/nios2/libutil.abilist: Likewise.
12388 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: Likewise.
12389 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
12390 * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: Likewise.
12391 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
12392 Likewise.
12393 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: Likewise.
12394 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: Likewise.
12395 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: Likewise.
12396 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: Likewise.
12397 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist:
12398 Likewise.
12399 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist:
12400 Likewise.
12401 * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: Likewise.
12402 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
12403 Likewise.
12404 * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: Likewise.
12405 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
12406 Likewise.
12407 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
12408 Likewise.
12409 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: Likewise.
12410 * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: Likewise.
12411 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
12412 Likewise.
12413 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
12414 Likewise.
12415 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist:
12416 Likewise.
12417 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: Likewise.
12418 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: Likewise.
12419 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
12420 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
12421 Likewise.
12422 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: Likewise.
12423 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: Likewise.
12424 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: Likewise.
12425 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
12426 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
12427 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist:
12428 Likewise.
12429 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: Likewise.
12430 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
12431 Likewise.
12432 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
12433 Likewise.
12434 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
12435 Likewise.
12436 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist:
12437 Likewise.
12438 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: Likewise.
12439 * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: Likewise.
12440 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
12441 Likewise.
12442 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
12443 Likewise.
12444 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
12445 Likewise.
12446 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: Likewise.
12447 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
12448 * sysdeps/unix/sysv/linux/riscv/rv64/libBrokenLocale.abilist:
12449 Likewise.
12450 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
12451 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
12452 * sysdeps/unix/sysv/linux/riscv/rv64/libcrypt.abilist: Likewise.
12453 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
12454 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
12455 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
12456 * sysdeps/unix/sysv/linux/riscv/rv64/libpthread.abilist: Likewise.
12457 * sysdeps/unix/sysv/linux/riscv/rv64/libresolv.abilist: Likewise.
12458 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
12459 * sysdeps/unix/sysv/linux/riscv/rv64/libthread_db.abilist: Likewise.
12460 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
12461 * sysdeps/unix/sysv/linux/s390/libanl.abilist: Likewise.
12462 * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: Likewise.
12463 * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
12464 Likewise.
12465 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
12466 * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: Likewise.
12467 * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: Likewise.
12468 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
12469 * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: Likewise.
12470 * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: Likewise.
12471 * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: Likewise.
12472 * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: Likewise.
12473 * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: Likewise.
12474 * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: Likewise.
12475 * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: Likewise.
12476 * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
12477 Likewise.
12478 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
12479 * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: Likewise.
12480 * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: Likewise.
12481 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
12482 * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: Likewise.
12483 * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: Likewise.
12484 * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: Likewise.
12485 * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: Likewise.
12486 * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: Likewise.
12487 * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: Likewise.
12488 * sysdeps/unix/sysv/linux/sh/ld.abilist: Likewise.
12489 * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: Likewise.
12490 * sysdeps/unix/sysv/linux/sh/libanl.abilist: Likewise.
12491 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
12492 * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: Likewise.
12493 * sysdeps/unix/sysv/linux/sh/libdl.abilist: Likewise.
12494 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
12495 * sysdeps/unix/sysv/linux/sh/libnsl.abilist: Likewise.
12496 * sysdeps/unix/sysv/linux/sh/libpthread.abilist: Likewise.
12497 * sysdeps/unix/sysv/linux/sh/libresolv.abilist: Likewise.
12498 * sysdeps/unix/sysv/linux/sh/librt.abilist: Likewise.
12499 * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: Likewise.
12500 * sysdeps/unix/sysv/linux/sh/libutil.abilist: Likewise.
12501 * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: Likewise.
12502 * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
12503 Likewise.
12504 * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: Likewise.
12505 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
12506 * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: Likewise.
12507 * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: Likewise.
12508 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
12509 * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: Likewise.
12510 * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: Likewise.
12511 * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: Likewise.
12512 * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: Likewise.
12513 * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: Likewise.
12514 * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: Likewise.
12515 * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: Likewise.
12516 * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
12517 Likewise.
12518 * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: Likewise.
12519 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
12520 * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: Likewise.
12521 * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: Likewise.
12522 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
12523 * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: Likewise.
12524 * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: Likewise.
12525 * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: Likewise.
12526 * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: Likewise.
12527 * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: Likewise.
12528 * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: Likewise.
12529 * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: Likewise.
12530 * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: Likewise.
12531 * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: Likewise.
12532 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
12533 * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: Likewise.
12534 * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: Likewise.
12535 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
12536 * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: Likewise.
12537 * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: Likewise.
12538 * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: Likewise.
12539 * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: Likewise.
12540 * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: Likewise.
12541 * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: Likewise.
12542 * sysdeps/unix/sysv/linux/x86_64/libmvec.abilist: Likewise.
12543 * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: Likewise.
12544 * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: Likewise.
12545 * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: Likewise.
12546 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
12547 * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: Likewise.
12548 * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: Likewise.
12549 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
12550 * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: Likewise.
12551 * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: Likewise.
12552 * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: Likewise.
12553 * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: Likewise.
12554 * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: Likewise.
12555 * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: Likewise.
12556
12557 2018-05-04 Stefan Liebler <stli@linux.vnet.ibm.com>
12558
12559 [BZ #23137]
12560 * sysdeps/nptl/lowlevellock.h (lll_wait_tid):
12561 Use atomic_load_acquire to load __tid.
12562
12563 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12564
12565 * sysdeps/unix/sysv/linux/x86_64/swapcontext.S (__swapcontext):
12566 Restore the pointer into %rdx, after syscall and use %rdx,
12567 instead of %rsi, to restore context.
12568
12569 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12570
12571 * sysdeps/unix/sysv/linux/x86_64/setcontext.S (__setcontext):
12572 Pop the pointer into %rdx after syscall and use %rdx, instead
12573 of %rsi, to restore context.
12574
12575 2018-05-02 H.J. Lu <hongjiu.lu@intel.com>
12576
12577 * nptl/pthread_create.c (START_THREAD_DEFN): Clear previous
12578 handlers after setjmp.
12579 * setjmp/longjmp.c (__libc_longjmp): Don't define alias if
12580 defined.
12581 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Include
12582 <libc-pointer-arith.h>.
12583 (_JUMP_BUF_SIGSET_BITS_PER_WORD): New.
12584 (_JUMP_BUF_SIGSET_NSIG): Changed to 96.
12585 (_JUMP_BUF_SIGSET_NWORDS): Changed to use ALIGN_UP and
12586 _JUMP_BUF_SIGSET_BITS_PER_WORD.
12587 * sysdeps/x86/Makefile (sysdep_routines): Add __longjmp_cancel.
12588 * sysdeps/x86/__longjmp_cancel.S: New file.
12589 * sysdeps/x86/longjmp.c: Likewise.
12590 * sysdeps/x86/nptl/pt-longjmp.c: Likewise.
12591
12592 2018-05-02 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12593
12594 * NEWS: Add ustat.h deprecation entry.
12595 * bits/ustat.h: Remove file.
12596 * misc/sys/ustat.h: Likewise.
12597 * misc/ustat.h: Likewise.
12598 * sysdeps/unix/sysv/linux/generic/ustat.c: Likewise.
12599 * misc/Makefile (headers): Remove ustat.h and sys/ustat.h.
12600 * misc/ustat.c (__ustat): Rename to __old_ustat and export only in
12601 compatibility mode.
12602 * sysdeps/unix/sysv/linux/ustat.c (__ustat): Likewise.
12603 * sysdeps/unix/sysv/linux/mips/ustat.c: Define DEV_TO_KDEV and use
12604 generic Linux implementation.
12605
12606 2018-04-30 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12607
12608 * math/w_exp_compat.c: Replace hidden_def with libm_hidden_def..
12609 * math/w_expl_compat.c: Likewise.
12610 * math/w_exp_template.c: Likewise. Remove hidden_def_x.
12611
12612 2018-04-30 Raymond Nicholson <rain1@airmail.cc>
12613
12614 * manual/startup.texi (Aborting a Program): Remove inappropriate joke.
12615
12616 2018-04-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12617
12618 * sysdeps/unix/sysv/linux/arm/readahead.c: Remove file.
12619 * sysdeps/unix/sysv/linux/mips/mips32/readahead.c: Likewise.
12620 * sysdeps/unix/sysv/linux/mips/mips64/n32/syscalls.list (readahead):
12621 Remove.
12622 * sysdeps/unix/sysv/linux/mips/mips64/n64/syscalls.list: Likewise.
12623 * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
12624 * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
12625 * sysdeps/unix/sysv/linux/readahead.c (__readahead): Assume
12626 __NR_readahead existence, and use INLINE_SYSCALL_CALL, __ALIGNMENT_ARG,
12627 and SYSCALL_LL64.
12628
12629 2018-04-27 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12630
12631 * math/e_exp2_template.c: Replace M_SUF (M_LN2) with M_MLIT (M_LN2).
12632
12633 * math/w_acos_template.c: Replace M_SUF (fabs) with M_FABS.
12634 * math/w_asin_template.c: Likewise.
12635 * math/w_atanh_template.c: Likewise.
12636
12637 2018-04-27 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
12638
12639 * sysdeps/powerpc/preconfigure [machine == powerpc64] (machine): Define
12640 to powerpc/powerpc64/be for big-endian.
12641 [machine == powerpc64le]: Define to powerpc/powerpc64/le for
12642 little-endian.
12643
12644 * sysdeps/powerpc/powerpc64/power4/Implies: Move to powerpc64/be.
12645 * sysdeps/powerpc/powerpc64/power4/fpu/Implies: Likewise.
12646 * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: Likewise.
12647 * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: Likewise.
12648 * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
12649 * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Likewise.
12650 * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: Likewise.
12651 * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: Likewise.
12652 * sysdeps/powerpc/powerpc64/power5/Implies: Likewise.
12653 * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
12654 * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: Likewise.
12655 * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: Likewise.
12656 * sysdeps/powerpc/powerpc64/power6/Implies: Likewise.
12657 * sysdeps/powerpc/powerpc64/power6/fpu/Implies: Likewise.
12658 * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: Likewise.
12659 * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: Likewise.
12660 * sysdeps/powerpc/powerpc64/power6x/Implies: Likewise.
12661 * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Likewise.
12662 * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Likewise.
12663 * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: Likewise.
12664 * sysdeps/powerpc/powerpc64/power7/Implies: Likewise.
12665 * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
12666 * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: Likewise.
12667 * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: Likewise.
12668 * sysdeps/powerpc/powerpc64/power8/Implies: Likewise.
12669 * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
12670 * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: Likewise.
12671 * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: Likewise.
12672 * sysdeps/powerpc/powerpc64/power9/Implies: Likewise.
12673 * sysdeps/powerpc/powerpc64/power9/fpu/Implies: Likewise.
12674 * sysdeps/powerpc/powerpc64/power9/fpu/multiarch/Implies: Likewise.
12675 * sysdeps/powerpc/powerpc64/power9/multiarch/Implies: Likewise.
12676
12677 * sysdeps/powerpc/powerpc64/be/power4/Implies: Move from powerpc64 and
12678 adjusted to imply powerpc64 and older processors on powerpc64/be.
12679 * sysdeps/powerpc/powerpc64/be/power4/fpu/Implies: Likewise.
12680 * sysdeps/powerpc/powerpc64/be/power4/fpu/multiarch/Implies: Likewise.
12681 * sysdeps/powerpc/powerpc64/be/power4/multiarch/Implies: Likewise.
12682 * sysdeps/powerpc/powerpc64/be/power5+/Implies: Likewise.
12683 * sysdeps/powerpc/powerpc64/be/power5+/fpu/Implies: Likewise.
12684 * sysdeps/powerpc/powerpc64/be/power5+/fpu/multiarch/Implies: Likewise.
12685 * sysdeps/powerpc/powerpc64/be/power5+/multiarch/Implies: Likewise.
12686 * sysdeps/powerpc/powerpc64/be/power5/Implies: Likewise.
12687 * sysdeps/powerpc/powerpc64/be/power5/fpu/Implies: Likewise.
12688 * sysdeps/powerpc/powerpc64/be/power5/fpu/multiarch/Implies: Likewise.
12689 * sysdeps/powerpc/powerpc64/be/power5/multiarch/Implies: Likewise.
12690 * sysdeps/powerpc/powerpc64/be/power6/Implies: Likewise.
12691 * sysdeps/powerpc/powerpc64/be/power6/fpu/Implies: Likewise.
12692 * sysdeps/powerpc/powerpc64/be/power6/fpu/multiarch/Implies: Likewise.
12693 * sysdeps/powerpc/powerpc64/be/power6/multiarch/Implies: Likewise.
12694 * sysdeps/powerpc/powerpc64/be/power6x/Implies: Likewise.
12695 * sysdeps/powerpc/powerpc64/be/power6x/fpu/Implies: Likewise.
12696 * sysdeps/powerpc/powerpc64/be/power6x/fpu/multiarch/Implies: Likewise.
12697 * sysdeps/powerpc/powerpc64/be/power6x/multiarch/Implies: Likewise.
12698 * sysdeps/powerpc/powerpc64/be/power7/Implies: Likewise.
12699 * sysdeps/powerpc/powerpc64/be/power7/fpu/Implies: Likewise.
12700 * sysdeps/powerpc/powerpc64/be/power7/fpu/multiarch/Implies: Likewise.
12701 * sysdeps/powerpc/powerpc64/be/power7/multiarch/Implies: Likewise.
12702 * sysdeps/powerpc/powerpc64/be/power8/Implies: Likewise.
12703 * sysdeps/powerpc/powerpc64/be/power8/fpu/Implies: Likewise.
12704 * sysdeps/powerpc/powerpc64/be/power8/fpu/multiarch/Implies: Likewise.
12705 * sysdeps/powerpc/powerpc64/be/power8/multiarch/Implies: Likewise.
12706 * sysdeps/powerpc/powerpc64/be/power9/Implies: Likewise.
12707 * sysdeps/powerpc/powerpc64/be/power9/fpu/Implies: Likewise.
12708 * sysdeps/powerpc/powerpc64/be/power9/fpu/multiarch/Implies: Likewise.
12709 * sysdeps/powerpc/powerpc64/be/power9/multiarch/Implies: Likewise.
12710
12711 * sysdeps/powerpc/powerpc64/970/Implies: Move to powerpc64/be.
12712 * sysdeps/powerpc/powerpc64/be/970/Implies: Move from powerpc64/be.
12713 * sysdeps/powerpc/powerpc64/be/a2/Implies: New file.
12714 * sysdeps/powerpc/powerpc64/be/cell/Implies: Likewise.
12715
12716 * sysdeps/powerpc/powerpc64/be/Implies: New file.
12717 * sysdeps/powerpc/powerpc64/be/fpu/Implies: Likewise.
12718 * sysdeps/powerpc/powerpc64/be/fpu/multiarch/Implies: Likewise.
12719 * sysdeps/powerpc/powerpc64/be/multiarch/Implies: Likewise.
12720
12721 * sysdeps/powerpc/powerpc64le/Implies: Move to powerpc64/le.
12722 * sysdeps/powerpc/powerpc64le/Implies-before: Likewise.
12723 * sysdeps/powerpc/powerpc64le/Makefile: Likewise.
12724 * sysdeps/powerpc/powerpc64le/configure: Likewise.
12725 * sysdeps/powerpc/powerpc64le/configure.ac: Likewise.
12726 * sysdeps/powerpc/powerpc64le/fpu/Implies: Likewise.
12727 * sysdeps/powerpc/powerpc64le/fpu/e_sqrtf128.c: Likewise.
12728 * sysdeps/powerpc/powerpc64le/fpu/multiarch/Implies: Likewise.
12729 * sysdeps/powerpc/powerpc64le/fpu/sfp-machine.h: Likewise.
12730 * sysdeps/powerpc/powerpc64le/multiarch/Implies: Likewise.
12731 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c: Likewise.
12732
12733 * sysdeps/powerpc/powerpc64/le/Implies: Move from powerpc64le.
12734 * sysdeps/powerpc/powerpc64/le/Implies-before: Likewise.
12735 * sysdeps/powerpc/powerpc64/le/Makefile: Likewise.
12736 * sysdeps/powerpc/powerpc64/le/configure: Likewise.
12737 * sysdeps/powerpc/powerpc64/le/configure.ac: Likewise.
12738 * sysdeps/powerpc/powerpc64/le/fpu/Implies: Likewise.
12739 * sysdeps/powerpc/powerpc64/le/fpu/e_sqrtf128.c: Likewise.
12740 * sysdeps/powerpc/powerpc64/le/fpu/multiarch/Implies: Likewise.
12741 * sysdeps/powerpc/powerpc64/le/fpu/sfp-machine.h: Likewise.
12742 * sysdeps/powerpc/powerpc64/le/multiarch/Implies: Likewise.
12743 * sysdeps/powerpc/powerpc64/le/power9/fpu/e_sqrtf128.c: Likewise.
12744
12745 * sysdeps/powerpc/powerpc64le/power7/Implies: Move to powerpc64/le.
12746 * sysdeps/powerpc/powerpc64le/power7/fpu/Implies: Likewise.
12747 * sysdeps/powerpc/powerpc64le/power7/fpu/multiarch/Implies: Likewise.
12748 * sysdeps/powerpc/powerpc64le/power7/multiarch/Implies: Likewise.
12749 * sysdeps/powerpc/powerpc64le/power8/Implies: Likewise.
12750 * sysdeps/powerpc/powerpc64le/power8/fpu/Implies: Likewise.
12751 * sysdeps/powerpc/powerpc64le/power8/fpu/multiarch/Implies: Likewise.
12752 * sysdeps/powerpc/powerpc64le/power8/multiarch/Implies: Likewise.
12753 * sysdeps/powerpc/powerpc64le/power9/Implies: Likewise.
12754 * sysdeps/powerpc/powerpc64le/power9/fpu/Implies: Likewise.
12755 * sysdeps/powerpc/powerpc64le/power9/fpu/multiarch/Implies: Likewise.
12756 * sysdeps/powerpc/powerpc64le/power9/multiarch/Implies: Likewise.
12757
12758 * sysdeps/powerpc/powerpc64/le/power7/Implies: Move from powerpc64le
12759 and adjusted to imply olders processors.
12760 * sysdeps/powerpc/powerpc64/le/power7/fpu/Implies: Likewise.
12761 * sysdeps/powerpc/powerpc64/le/power7/fpu/multiarch/Implies: Likewise.
12762 * sysdeps/powerpc/powerpc64/le/power7/multiarch/Implies: Likewise.
12763 * sysdeps/powerpc/powerpc64/le/power8/Implies: Likewise.
12764 * sysdeps/powerpc/powerpc64/le/power8/fpu/Implies: Likewise.
12765 * sysdeps/powerpc/powerpc64/le/power8/fpu/multiarch/Implies: Likewise.
12766 * sysdeps/powerpc/powerpc64/le/power8/multiarch/Implies: Likewise.
12767 * sysdeps/powerpc/powerpc64/le/power9/Implies: Likewise.
12768 * sysdeps/powerpc/powerpc64/le/power9/fpu/Implies: Likewise.
12769 * sysdeps/powerpc/powerpc64/le/power9/fpu/multiarch/Implies: Likewise.
12770 * sysdeps/powerpc/powerpc64/le/power9/multiarch/Implies: Likewise.
12771
12772 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/Implies: Move to
12773 powerpc64/le.
12774 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/float128-abi.h: Likewise.
12775 * sysdeps/unix/sysv/linux/powerpc/powerpc64le/fpu/Implies: Likewise.
12776
12777 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/Implies: Move from
12778 powerpc64le.
12779 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/float128-abi.h: Likewise.
12780 * sysdeps/unix/sysv/linux/powerpc/powerpc64/le/fpu/Implies: Likewise.
12781
12782 * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: Move to
12783 powerpc64/be.
12784 * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
12785 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: Likewise.
12786 * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/fpu/Implies: Likewise.
12787
12788 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/970/Implies: Move from
12789 powerpc64 and adjusted.
12790 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/a2/Implies: Likewise.
12791 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/Implies: Likewise.
12792 * sysdeps/unix/sysv/linux/powerpc/powerpc64/be/cell/fpu/Implies:
12793 Likewise.
12794
12795 2018-04-27 Joseph Myers <joseph@codesourcery.com>
12796
12797 * sysdeps/tile: Remove.
12798 * sysdeps/unix/sysv/linux/tile: Likewise.
12799 * README (tilegx-*-linux-gnu): Remove from list of supported
12800 configurations.
12801 * manual/contrib.texi (Contributors): Mention Chris Metcalf's
12802 contribution of support for generic Linux kernel syscall
12803 interface.
12804 * scripts/build-many-glibcs.py (Context.add_all_configs): Remove
12805 tilegx configurations.
12806 (Config.install_linux_headers): Do not handle tile.
12807 * sysdeps/unix/sysv/linux/aarch64/ldsodefs.h: Do not mention Tile
12808 in comment.
12809 * sysdeps/unix/sysv/linux/nios2/Makefile: Likewise.
12810 * sysdeps/unix/sysv/linux/posix_fadvise.c: Likewise.
12811 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12812 conditional undefine and redefine.
12813 * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not mention Tile
12814 in comment.
12815 [__ASSUME_FADVISE64_64_NO_ALIGN] (__ALIGNMENT_ARG): Remove
12816 conditional undefine and redefine.
12817
12818 2018-04-26 Aurelien Jarno <aurelien@aurel32.net>
12819
12820 * signal/tst-sigaction.c: New file to test BZ #23069.
12821 * signal/Makefile (tests): Fix indentation. Add tst-sigaction.
12822
12823 2018-04-26 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
12824
12825 [BZ #22766]
12826 * include/dlfcn.h [__libc_dl_open]: Replace RTLD_LAZY with RTLD_NOW.
12827 * sysdeps/gnu/unwind-resume.c (__lib_gcc_s_init): Replace
12828 __libc_dlopen_mode() using RTLD_NOW with __libc_dlopen.
12829 * sysdeps/nptl/unwind-forcedunwind.c: Likewise.
12830
12831 2018-04-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12832
12833 * sysdeps/unix/sysv/linux/getdirentries.c (getdirentries): Build iff
12834 _DIRENT_MATCHES_DIRENT64 is not defined.
12835 * sysdeps/unix/sysv/linux/getdirentries64.c (getdirentries64): Open
12836 implementation and alias to getdirentries if _DIRENT_MATCHES_DIRENT64
12837 is defined.
12838 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries.c: Remove file.
12839 * sysdeps/unix/sysv/linux/wordsize-64/getdirentries64.c: Remove file.
12840
12841 2018-04-25 Joseph Myers <joseph@codesourcery.com>
12842
12843 * scripts/build-many-glibcs.py (Context.checkout): Default GCC
12844 version to GCC 8 branch.
12845
12846 2018-04-24 Joseph Myers <joseph@codesourcery.com>
12847
12848 * sysdeps/mach/hurd/dl-sysdep.c: Include <not-errno.h>.
12849 (check_no_hidden): Use type of original function when declaring
12850 alias.
12851
12852 * sysdeps/unix/sysv/linux/sys/ptrace.h
12853 (PTRACE_SECCOMP_GET_METADATA): New enum value and macro.
12854 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h
12855 (struct __ptrace_seccomp_metadata): New type.
12856 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h
12857 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12858 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h
12859 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12860 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h
12861 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12862 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h
12863 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12864 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h
12865 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12866 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h
12867 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12868 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h
12869 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12870 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h
12871 (PTRACE_SECCOMP_GET_METADATA): Likewise.
12872
12873 2018-04-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12874
12875 * dirent/alphasort.c (alphasort): Build iff _DIRENT_MATCHES_DIRENT64 is
12876 defined.
12877 * dirent/versionsort.c (versionsort): Likewise.
12878 * dirent/alphasort64.c (alphasort64): Build regardless and alias to
12879 alphasort if _DIRENT_MATCHES_DIRENT64 is defined.
12880 * dirent/versionsort64.c (versionsort64): Likewise.
12881 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Remove file.
12882 * sysdeps/unix/sysv/linux/arm/alphasort64.c: Likewise.
12883 * sysdeps/unix/sysv/linux/arm/versionsort64.c: Likewise.
12884 * sysdeps/unix/sysv/linux/m68k/alphasort64.c: Likewise.
12885 * sysdeps/unix/sysv/linux/m68k/versionsort64.c: Likewise.
12886 * sysdeps/unix/sysv/linux/s390/s390-32/alphasort64.c: Likewise.
12887 * sysdeps/unix/sysv/linux/s390/s390-32/versionsort64.c: Likewise.
12888 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
12889 * sysdeps/unix/sysv/linux/alphasort64.c: New file.
12890 * sysdeps/unix/sysv/linux/versionsort64.c: Likewise.
12891 * sysdeps/unix/sysv/linux/powerpc/powerpc32/alphasort64.c: Likewise.
12892 * sysdeps/unix/sysv/linux/powerpc/powerpc32/versionsort64.c: Likewise.
12893 * sysdeps/unix/sysv/linux/sparc/sparc32/alphasort64.c: Likewise.
12894 * sysdeps/unix/sysv/linux/sparc/sparc32/versionsort64.c: Likewise.
12895
12896 2018-04-23 Joseph Myers <joseph@codesourcery.com>
12897
12898 * elf/elf.h (NT_PPC_PKEY): New macro.
12899
12900 2018-04-23 Dragan Stanojevic - Nevidljivi <invisible@hidden-city.net>
12901
12902 [BZ #23094]
12903 * localedata/locales/hr_HR: fix thousands_sep and
12904 mon_thousands_sep
12905
12906 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12907
12908 * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_MISC]
12909 (XTABS): Define to TAB3.
12910
12911 2018-04-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12912
12913 * sysdeps/hppa/fpu/libm-test-ulps: Update.
12914
12915 * dirent/scandir-tail-common.c: New file.
12916 * dirent/scandir-tail.c: Use scandir-tail-common.c.
12917 (__scandir_tail): Build iff _DIRENT_MATCHES_DIRENT64 is not defined.
12918 * dirent/scandir.c: Use scandir-tail-common.c.
12919 * dirent/scandirat.c: Likewise.
12920 * dirent/scandir64-tail.c: Use scandir-tail-common.c.
12921 * dirent/scandir64.c (scandir64): Always build and alias to scandir
12922 if _DIRENT_MATCHES_DIRENT64 is defined.
12923 * dirent/scandirat64.c (scandirat64): Likewise.
12924 * include/dirent.h (__scandir_tail): Only define iff
12925 _DIRENT_MATCHES_DIRENT64 is not defined.
12926 (__scandir64_tail): Define regardless.
12927 (__scandirat, scandirat64): Remove libc_hidden_proto.
12928 * sysdeps/unix/sysv/linux/arm/scandir64.c: Remove file.
12929 * sysdeps/unix/sysv/linux/m68k/scandir64.c: Likewise.
12930 * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Likewise.
12931 * sysdeps/unix/sysv/linux/s390/s390-32/scandir64.c: Likewise.
12932 * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12933 * sysdeps/unix/sysv/linux/sparc/sparc32/scandir64.c: Likewise.
12934 * sysdeps/unix/sysv/linux/scandir64.c: New file.
12935
12936 2018-04-20 Joseph Myers <joseph@codesourcery.com>
12937
12938 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_ASIMDFHM):
12939 New macro.
12940 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c (_DL_HWCAP_COUNT):
12941 Increase to 24.
12942 (_dl_aarch64_cap_flags): Add asimdfhm.
12943
12944 2018-04-19 Chung-Lin Tang <cltang@codesourcery.com>
12945
12946 * sysdeps/nios2/libm-test-ulps: Update.
12947
12948 2018-04-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
12949
12950 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c (__getdents64):
12951 Only alias to __getdents for _DIRENT_MATCHES_DIRENT64.
12952
12953 * sysdeps/unix/sysv/linux/alpha/getdents.c: Add comments with alpha
12954 requirements.
12955 (_DIRENT_MATCHES_DIRENT64): Undef
12956 * sysdeps/unix/sysv/linux/alpha/getdents64.c: Likewise.
12957 * sysdeps/unix/sysv/linux/arm/getdents64.c: Remove file.
12958 * sysdeps/unix/sysv/linux/generic/getdents.c: Likewise.
12959 * sysdeps/unix/sysv/linux/generic/getdents64.c: Likewise.
12960 * sysdeps/unix/sysv/linux/generic/wordsize-32/getdents.c: Likewise.
12961 * sysdeps/unix/sysv/linux/getdents.c: Simplify implementation by
12962 use getdents64 syscalls as base.
12963 * sysdeps/unix/sysv/linux/getdents64.c: Likewise and add compatibility
12964 symbol if required.
12965 * sysdeps/unix/sysv/linux/hppa/getdents64.c: Likewise.
12966 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
12967 * sysdeps/unix/sysv/linux/m68k/getdents64.c: Likewise.
12968 * sysdeps/unix/sysv/linux/powerpc/getdents64.c: Likewise.
12969 * sysdeps/unix/sysv/linux/s390/s390-32/getdents64.c: Likewise.
12970 * sysdeps/unix/sysv/linux/sparc/sparc32/getdents64.c: Likewise.
12971 * sysdeps/unix/sysv/linux/wordsize-64/getdents.c: Likewise.
12972 * sysdeps/unix/sysv/linux/wordsize-64/getdents64.c: Likewise.
12973 * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12974 (__get_clockfreq_via_proc_openprom): Use __getdents64.
12975 * sysdeps/unix/sysv/linux/mips/mips64/getdents64.c: New file.
12976
12977 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12978
12979 * scripts/test_printers_common.py (init_test): Disable lock elision.
12980
12981 2018-04-19 Stefan Liebler <stli@linux.vnet.ibm.com>
12982
12983 * math/test-tgmath.c (count_double, count_float,
12984 count_ldouble, count_cdouble, count_cfloat,
12985 count_cldouble): Use volatile int.
12986
12987 2018-04-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
12988
12989 * sysdeps/mach/hurd/i386/Makefile [$(subdir) = conform]
12990 (conformtest-xfail-conds): Add i386-gnu.
12991 * conform/data/fcntl.h-data (flock.l_type, flock.l_whence): XFAIL on
12992 i386-gnu.
12993 * conform/data/sys/ipc.h-data (ipc_perm.uid, ipc_perm.gid,
12994 ipc_perm.cuid, ipc_perm.cgid): Likewise.
12995 * conform/data/sys/msg.h-data (msqid_ds.msg_lspid,
12996 msqid_ds.msg_lrpid): Likewise.
12997 * conform/data/sys/shm.h-data (shmid_ds.shm_lpid, shmid_ds.shm_cpid):
12998 Likewise.
12999 * conform/data/sys/stat.h-data (stat.st_dev): Likewise.
13000 * conform/data/sys/statvfs.h-data (statvfs.f_fsid): Likewise.
13001 * sysdeps/mach/hurd/bits/statvfs.h (struct statvfs): Make f_bsize,
13002 f_namemax, f_frsize, and f_flag fields unsigned long int instead of
13003 unsigned int.
13004 (struct statvfs64): Likewise.
13005 * sysdeps/mach/hurd/bits/statfs.h (struct statfs, struct statfs64):
13006 Likewise.
13007 * bits/in.h [!__USE_MISC]: Do not define struct ip_opts.
13008 * conform/data/netinet/in.h-data: Allow sin_ and sin6_ prefix.
13009 * sysdeps/gnu/bits/msq.h (struct msqid_ds): Use __wait_queue struct
13010 instead of wait_queue.
13011 * sysdeps/gnu/bits/shm.h (struct shmid_ds): Use __vm_area_struct
13012 instead of vm_area_struct.
13013 * bits/sched.h: Include <bits/types/struct_sched_param.h> and move
13014 struct sched_param definition to it.
13015 * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
13016 * bits/types/struct_sched_param.h: New file.
13017 * sysdeps/htl/bits/types/struct___pthread_attr.h: Include
13018 <bits/types/struct_sched_param.h> instead of <sched.h>.
13019 * posix/Makefile (headers): Add bits/types/struct_sched_param.h.
13020 * sysdeps/pthread/bits/types/sigevent_t.h: New file, based on the
13021 generic version but include <bits/pthreadtypes.h> to make struct
13022 sigevent's sigev_notify_attributes field a pthread_attr_t*.
13023 * bits/types/siginfo_t.h: Remove siginfo struct name, unused and
13024 non-compliant.
13025 * bits/termios.h [__USE_XOPEN || __USE_XOPEN2K8] (IXANY): Define.
13026 [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define.
13027 [__USE_XOPEN] (OFDEL): New macro.
13028 [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro.
13029 * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros.
13030 * sysdeps/hurd/include/hurd.h [!_ISOMAC]: Do not declare libc hidden
13031 prototypes.
13032 * sysdeps/hurd/include/hurd/fd.h [!_ISOMAC]: Likewise.
13033 * sysdeps/hurd/include/hurd/signal.h [!_ISOMAC]: Likewise.
13034 * sysdeps/arm/sys/ucontext.h: Remove fpregset struct name, unused and
13035 non-compliant.
13036 * sysdeps/i386/sys/ucontext.h: Likewise.
13037 * sysdeps/m68k/sys/ucontext.h: Likewise.
13038 * sysdeps/mips/sys/ucontext.h: Likewise.
13039 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Likewise.
13040 * sysdeps/mach/hurd/i386/Makefile
13041 (test-xfail-POSIX/fcntl.h/conform): Add.
13042 (test-xfail-POSIX/signal.h/conform): Add.
13043 (test-xfail-POSIX/semaphore.h/conform): Add.
13044 (test-xfail-POSIX/regex.h/conform): Add.
13045 (test-xfail-POSIX/aio.h/conform): Add.
13046 (test-xfail-POSIX/mqueue.h/conform): Add.
13047 (test-xfail-POSIX/sys/types.h/conform): Add.
13048 (test-xfail-UNIX98/fcntl.h/conform): Add.
13049 (test-xfail-UNIX98/netdb.h/conform): Add.
13050 (test-xfail-UNIX98/signal.h/conform): Add.
13051 (test-xfail-UNIX98/semaphore.h/conform): Add.
13052 (test-xfail-UNIX98/regex.h/conform): Add.
13053 (test-xfail-UNIX98/aio.h/conform): Add.
13054 (test-xfail-UNIX98/ftw.h/conform): Add.
13055 (test-xfail-UNIX98/mqueue.h/conform): Add.
13056 (test-xfail-UNIX98/netinet/in.h/conform): Add.
13057 (test-xfail-UNIX98/sys/wait.h/conform): Add.
13058 (test-xfail-UNIX98/sys/sem.h/conform): Add.
13059 (test-xfail-UNIX98/sys/uio.h/conform): Add.
13060 (test-xfail-UNIX98/sys/socket.h/conform): Add.
13061 (test-xfail-UNIX98/sys/types.h/conform): Add.
13062 (test-xfail-UNIX98/stdlib.h/conform): Add.
13063 (test-xfail-UNIX98/arpa/inet.h/conform): Add.
13064 (test-xfail-POSIX2008/fcntl.h/conform): Add.
13065 (test-xfail-POSIX2008/netdb.h/conform): Add.
13066 (test-xfail-POSIX2008/signal.h/conform): Add.
13067 (test-xfail-POSIX2008/semaphore.h/conform): Add.
13068 (test-xfail-POSIX2008/regex.h/conform): Add.
13069 (test-xfail-POSIX2008/aio.h/conform): Add.
13070 (test-xfail-POSIX2008/mqueue.h/conform): Add.
13071 (test-xfail-POSIX2008/netinet/in.h/conform): Add.
13072 (test-xfail-POSIX2008/sys/wait.h/conform): Add.
13073 (test-xfail-POSIX2008/sys/socket.h/conform): Add.
13074 (test-xfail-POSIX2008/sys/types.h/conform): Add.
13075 (test-xfail-POSIX2008/arpa/inet.h/conform): Add.
13076 (test-xfail-XOPEN2K/fcntl.h/conform): Add.
13077 (test-xfail-XOPEN2K/netdb.h/conform): Add.
13078 (test-xfail-XOPEN2K/signal.h/conform): Add.
13079 (test-xfail-XOPEN2K/semaphore.h/conform): Add.
13080 (test-xfail-XOPEN2K/regex.h/conform): Add.
13081 (test-xfail-XOPEN2K/aio.h/conform): Add.
13082 (test-xfail-XOPEN2K/ftw.h/conform): Add.
13083 (test-xfail-XOPEN2K/mqueue.h/conform): Add.
13084 (test-xfail-XOPEN2K/netinet/in.h/conform): Add.
13085 (test-xfail-XOPEN2K/sys/wait.h/conform): Add.
13086 (test-xfail-XOPEN2K/sys/sem.h/conform): Add.
13087 (test-xfail-XOPEN2K/sys/uio.h/conform): Add.
13088 (test-xfail-XOPEN2K/sys/socket.h/conform): Add.
13089 (test-xfail-XOPEN2K/sys/types.h/conform): Add.
13090 (test-xfail-XOPEN2K/stdlib.h/conform): Add.
13091 (test-xfail-XOPEN2K/arpa/inet.h/conform): Add.
13092 (test-xfail-XOPEN2K8/fcntl.h/conform): Add.
13093 (test-xfail-XOPEN2K8/netdb.h/conform): Add.
13094 (test-xfail-XOPEN2K8/signal.h/conform): Add.
13095 (test-xfail-XOPEN2K8/semaphore.h/conform): Add.
13096 (test-xfail-XOPEN2K8/regex.h/conform): Add.
13097 (test-xfail-XOPEN2K8/aio.h/conform): Add.
13098 (test-xfail-XOPEN2K8/ftw.h/conform): Add.
13099 (test-xfail-XOPEN2K8/mqueue.h/conform): Add.
13100 (test-xfail-XOPEN2K8/netinet/in.h/conform): Add.
13101 (test-xfail-XOPEN2K8/sys/wait.h/conform): Add.
13102 (test-xfail-XOPEN2K8/sys/sem.h/conform): Add.
13103 (test-xfail-XOPEN2K8/sys/uio.h/conform): Add.
13104 (test-xfail-XOPEN2K8/sys/socket.h/conform): Add.
13105 (test-xfail-XOPEN2K8/sys/types.h/conform): Add.
13106 (test-xfail-XOPEN2K8/stdlib.h/conform): Add.
13107 (test-xfail-XOPEN2K8/arpa/inet.h/conform): Add.
13108 * conform/data/signal.h-data (SA_SIGINFO, SA_NOCLDWAIT): XFAIL on
13109 i386-gnu.
13110 * conform/data/sys/wait.h-data (WIFCONTINUED, WEXITED, WSTOPPED,
13111 WCONTINUED, WNOWAIT): XFAIL on i386-gnu.
13112
13113 2018-04-18 Joseph Myers <joseph@codesourcery.com>
13114
13115 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
13116 --enable-obsolete for powerpc-linux-gnuspe.
13117
13118 2018-04-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
13119
13120 * conform/data/sys/un.h-data: Allow sun_ prefix.
13121 * sysdeps/mach/include/lock-intern.h: Do not declare libc hidden
13122 prototypes.
13123 * sysdeps/mach/include/mach.h: Likewise.
13124 * sysdeps/mach/include/mach/mig_support.h: Likewise.
13125 * sysdeps/mach/include/mach_error.h: Likewise.
13126
13127 2018-04-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13128
13129 * sysdeps/arm/armv6t2/memchr.S (memchr): Remove ARM code path.
13130 * sysdeps/arm/armv6t2/strlen.S (memchr): Likewise.
13131 * sysdeps/arm/armv7/multiarch/memchr_neon.S (memchr): Likewise.
13132 * sysdeps/arm/armv7/strcmp.S (strcmp): Likewise.
13133
13134 2018-04-16 Andreas Schwab <schwab@suse.de>
13135
13136 [BZ #19527]
13137 * iconvdata/gconv-modules (ARMSCII8//, ShiftJISX0213//): New aliases.
13138
13139 2018-04-15 Patrick McGehearty <patrick.mcgehearty@oracle.com>
13140
13141 * sysdeps/ieee754/dbl-64/e_exp.c: faster __ieee754_exp()
13142 * sysdeps/ieee754/dbl-64/eexp.tbl: New file for e_exp.c
13143
13144 2018-04-12 DJ Delorie <dj@redhat.com>
13145
13146 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
13147 version to 4.16.
13148
13149 2018-04-12 Stefan Liebler <stli@linux.vnet.ibm.com>
13150
13151 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h
13152 (struct kernel_sigaction): Use the same definition on 31bit as is used
13153 on 64bit.
13154
13155 2018-04-09 Florian Weimer <fweimer@redhat.com>
13156
13157 [BZ #23037]
13158 * resolv/res_send.c (send_dg): Use designated initializers instead
13159 of assignment to zero-initialize other fields of struct mmsghdr.
13160
13161 2018-04-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13162
13163 * sysdeps/posix/readdir.c (__READDIR, __GETDENTS, DIRENTY_TYPE,
13164 __READDIR_ALIAS): Undefine after usage.
13165 * sysdeps/posix/readdir_r.c (__READDIR_R, __GETDENTS, DIRENT_TYPE,
13166 __READDIR_R_ALIAS): Likewise.
13167 * sysdeps/unix/sysv/linux/arm/readdir64.c: Remove file.
13168 * sysdeps/unix/sysv/linux/arm/readdir64_r.c: Likewise.
13169 * sysdeps/unix/sysv/linux/m68k/readdir64.c: Likewise.
13170 * sysdeps/unix/sysv/linux/m68k/readdir64_r.c: Likewise.
13171 * sysdeps/unix/sysv/linux/powerpc/readdir64.c: Likewise.
13172 * sysdeps/unix/sysv/linux/powerpc/readdir64_r.c: Likewise.
13173 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
13174 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
13175 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64.c: Likewise.
13176 * sysdeps/unix/sysv/linux/s390/s390-32/readdir64_r.c: Likewise.
13177 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64.c: Likewise.
13178 * sysdeps/unix/sysv/linux/sparc/sparc32/readdir64_r.c: Likewise.
13179 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
13180 * sysdeps/unix/sysv/linux/wordsize-64/readdir64.c: Likewise.
13181 * sysdeps/unix/sysv/linux/wordsize-64/readdir64_r.c: Likewise.
13182 * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Likewise.
13183 * sysdeps/unix/sysv/linux/readdir.c: New file.
13184 * sysdeps/unix/sysv/linux/readdir_r.c: Likewise.
13185 * sysdeps/unix/sysv/linux/readdir64.c: Add compat symbol if required.
13186 * sysdeps/unix/sysv/linux/readdir64_r.c: Likewise.
13187
13188 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Update.
13189
13190 2018-04-06 Andreas Schwab <schwab@linux-m68k.org>
13191
13192 * manual/charset.texi (Converting a Character): Fix typo.
13193
13194 2018-04-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13195
13196 * sysdeps/sparc/fpu/libm-test-ulps: Update.
13197
13198 * sysdeps/arm/libm-test-ulps: Update.
13199
13200 * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Use default Linux version
13201 as base implementation.
13202 * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
13203 * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
13204 * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
13205 * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
13206 * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
13207 * sysdeps/unix/sysv/linux/alpha/kernel_sigaction.h: Add include guards,
13208 remove unrequired definitions and update comments.
13209 * sysdeps/unix/sysv/linux/kernel_sigaction.h: Likewise.
13210 * sysdeps/unix/sysv/linux/mips/kernel_sigaction.h: Likewise.
13211 * sysdeps/unix/sysv/linux/ia64/kernel_sigaction.h: New file.
13212 * sysdeps/unix/sysv/linux/m68k/kernel_sigaction.h: Likewise.
13213 * sysdeps/unix/sysv/linux/nios2/kernel_sigaction.h: Likewise.
13214 * sysdeps/unix/sysv/linux/powerpc/kernel_sigaction: Likewise.
13215 * sysdeps/unix/sysv/linux/s390/kernel_sigaction.h: Likewise.
13216 * sysdeps/unix/sysv/linux/sh/kernel_sigaction.h: Likewise.
13217 * sysdeps/unix/sysv/linux/sparc/kernel_sigaction.h: Likewise.
13218 * sysdeps/unix/sysv/linux/tile/kernel_sigaction.h: Likewise.
13219 * sysdeps/unix/sysv/linux/ia64/sigaction.c: Remove file.
13220 * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
13221 * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
13222 * sysdeps/unix/sysv/linux/sigaction.c: Add STUB, SET_SA_RESTORER,
13223 and RESET_SA_RESTORER hooks.
13224
13225 2018-04-05 Stefan Liebler <stli@linux.vnet.ibm.com>
13226
13227 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
13228
13229 2018-04-05 Florian Weimer <fweimer@redhat.com>
13230
13231 * manual/examples/mbstouwcs.c (mbstouwcs): Fix loop termination,
13232 integer overflow, memory leak on error, and indeterminate errno
13233 value. Add a null wide character to terminate the result string.
13234 * manual/charset.texi (Converting a Character): Mention embedded
13235 null bytes in the mbrtowc input string. Explain what happens in
13236 the -2 result case. Do not claim that mbrtowc is simple or
13237 obvious to use. Adjust the description of the code example. Use
13238 @code, not @var, for concrete variables.
13239
13240 2018-04-05 Florian Weimer <fweimer@redhat.com>
13241
13242 * manual/examples/mbstouwcs.c: New file.
13243 * manual/charset.texi (Converting a Character): Include it.
13244
13245 2018-04-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
13246
13247 * include/dirent.h (dirfd): Add hidden proto.
13248 * dirent/dirfd.c (dirfd): Add hidden def.
13249 * sysdeps/mach/hurd/dirfd.c (dirfd): Add hidden def.
13250 * sysdeps/posix/dirfd.c (dirfd): Add hidden def.
13251
13252 2018-04-04 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
13253
13254 * sysdeps/powerpc/fpu/libm-test-ulps: Increase double-precision
13255 sin, cos and sincos to 1 ULP.
13256
13257 2018-04-04 Maciej W. Rozycki <macro@mips.com>
13258
13259 [BZ #19818]
13260 * sysdeps/generic/ldsodefs.h (SYMBOL_ADDRESS): Handle SHN_ABS
13261 symbols.
13262 * elf/dl-addr.c (determine_info): Ignore SHN_ABS symbols.
13263 * elf/tst-absolute-sym.c: New file.
13264 * elf/tst-absolute-sym-lib.c: New file.
13265 * elf/tst-absolute-sym-lib.lds: New file.
13266 * elf/Makefile (tests): Add `tst-absolute-sym'.
13267 (modules-names): Add `tst-absolute-sym-lib'.
13268 (LDLIBS-tst-absolute-sym-lib.so): New variable.
13269 ($(objpfx)tst-absolute-sym-lib.so): New dependency.
13270 ($(objpfx)tst-absolute-sym): New dependency.
13271
13272 [BZ #19818]
13273 * sysdeps/generic/ldsodefs.h (LOOKUP_VALUE_ADDRESS): Add `set'
13274 parameter.
13275 (SYMBOL_ADDRESS): New macro.
13276 [!ELF_FUNCTION_PTR_IS_SPECIAL] (DL_SYMBOL_ADDRESS): Use
13277 SYMBOL_ADDRESS for symbol address calculation.
13278 * elf/dl-runtime.c (_dl_fixup): Likewise.
13279 (_dl_profile_fixup): Likewise.
13280 * elf/dl-symaddr.c (_dl_symbol_address): Likewise.
13281 * elf/rtld.c (dl_main): Likewise.
13282 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Likewise.
13283 * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise.
13284 * sysdeps/arm/dl-machine.h (elf_machine_rel): Likewise.
13285 (elf_machine_rela): Likewise.
13286 * sysdeps/hppa/dl-machine.h (elf_machine_rela): Likewise.
13287 * sysdeps/hppa/dl-symaddr.c (_dl_symbol_address): Likewise.
13288 * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
13289 (elf_machine_rela): Likewise.
13290 * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
13291 * sysdeps/m68k/dl-machine.h (elf_machine_rela): Likewise.
13292 * sysdeps/microblaze/dl-machine.h (elf_machine_rela): Likewise.
13293 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
13294 Likewise.
13295 (elf_machine_reloc): Likewise.
13296 (elf_machine_got_rel): Likewise.
13297 * sysdeps/mips/dl-trampoline.c (__dl_runtime_resolve): Likewise.
13298 * sysdeps/nios2/dl-machine.h (elf_machine_rela): Likewise.
13299 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
13300 Likewise.
13301 * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
13302 Likewise.
13303 * sysdeps/riscv/dl-machine.h (elf_machine_rela): Likewise.
13304 * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
13305 Likewise.
13306 * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
13307 Likewise.
13308 * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
13309 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
13310 Likewise.
13311 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
13312 Likewise.
13313 * sysdeps/tile/dl-machine.h (elf_machine_rela): Likewise.
13314 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
13315
13316 2018-04-04 Zack Weinberg <zackw@panix.com>
13317
13318 * sysdeps/generic/internal-signals.h: Include signal.h,
13319 sigsetops.h, and stdbool.h.
13320 (__libc_signal_block_all): Actually block all signals.
13321 (__libc_signal_block_app): Likewise.
13322 (__libc_signal_restore_set): Actually restore the signal mask.
13323
13324 2018-04-04 Florian Weimer <fweimer@redhat.com>
13325
13326 inet: Actually build and run tst-deadline.
13327 * inet/Makefile (tests-internal): Add tst-deadline and do not
13328 overwrite the variable.
13329 (tests-static-internal): Remove variable.
13330
13331 2018-04-03 H.J. Lu <hongjiu.lu@intel.com>
13332
13333 [BZ #22947]
13334 * bits/uio-ext.h (RWF_APPEND): New.
13335 * sysdeps/unix/sysv/linux/bits/uio-ext.h (RWF_APPEND): Likewise.
13336 * manual/llio.texi: Document RWF_APPEND.
13337 * misc/tst-preadvwritev2-common.c (RWF_APPEND): New.
13338 (RWF_SUPPORTED): Add RWF_APPEND.
13339
13340 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13341
13342 [BZ #22391]
13343 * nptl/sigaction.c (__sigaction): Use __is_internal_signal to
13344 check for internal nptl signals.
13345 * nptl/sigaction.c (__sigaction): Likewise.
13346 * signal/sigaddset.c (sigaddset): Likewise.
13347 * signal/sigdelset.c (sigdelset): Likewise.
13348 * sysdeps/posix/signal.c (__bsd_signal): Likewise.
13349 * sysdeps/posix/sigset.c (sigset): Call and check sigaddset return
13350 value.
13351 * signal/sigfillset.c (sigfillset): User __clear_internal_signals
13352 to filter out internal nptl signals.
13353 * signal/tst-sigset.c (do_test): Check ech signal indidually and
13354 also check realtime signals using standard macros.
13355 * sysdeps/generic/internal-signals.h (__clear_internal_signals,
13356 __is_internal_signal, __libc_signal_block_all,
13357 __libc_signal_block_app, __libc_signal_restore_set): New functions.
13358 * sysdeps/nptl/sigfillset.c: Remove file.
13359 * sysdeps/unix/sysv/linux/internal-signals.h (__is_internal_signal):
13360 Change return to bool.
13361 (__clear_internal_signals): Remove SIGTIMER clean since it is
13362 equal to SIGCANEL on Linux.
13363 * sysdeps/unix/sysv/linux/sigtimedwait.c (__sigtimedwait): Assume
13364 signal set was constructed using standard functions.
13365
13366 2018-04-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13367
13368 * sysdeps/mach/hurd/if_index.c (__if_nametoindex): Return ENODEV if
13369 ifname is too long.
13370 * hurd/hurdsig.c (interrupted_reply_port_location): Use
13371 DIAG_IGNORE_NEEDS_COMMENT to silence warning with GCC 6 and before.
13372 * sysdeps/mach/hurd/i386/exc2signal.c (_hurd_exception2signal): Add
13373 hidden def.
13374 * mach/spin-lock.c (__mutex_unlock): Add hidden def.
13375 * signal/sigaddset.c: Include <sigsetopts.h>.
13376 * signal/sigdelset.c: Likewise.
13377
13378 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13379
13380 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Cleanup ifdefs.
13381 (__cos): Likewise.
13382 * sysdeps/ieee754/dbl-64/s_sin.c (__sincos): Refactor using the same
13383 logic as sin and cos.
13384
13385 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13386
13387 * sysdeps/ieee754/dbl-64/s_sin.c (do_sin): Use TAYLOR_SIN for small
13388 inputs. Return correct sign.
13389 (do_sincos): Remove small input check before do_sin, let do_sin set
13390 the sign.
13391 (__sin): Likewise.
13392 (__cos): Likewise.
13393
13394 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13395
13396 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SLOW): Remove.
13397 (do_cos_slow): Likewise.
13398 (do_sin_slow): Likewise.
13399 (reduce_and_compute): Likewise.
13400 (slow): Likewise.
13401 (slow1): Likewise.
13402 (slow2): Likewise.
13403 (sloww): Likewise.
13404 (sloww1): Likewise.
13405 (sloww2): Likewise.
13406 (bslow): Likewise.
13407 (bslow1): Likewise.
13408 (bslow2): Likewise.
13409 (cslow2): Likewise.
13410
13411 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13412
13413 * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SIN): Remove cor parameter.
13414 (do_cos): Remove corp parameter and calculations.
13415 (do_sin): Likewise.
13416 (do_sincos): Remove cor variable.
13417 (__sin): Use do_sincos for huge inputs.
13418 (__cos): Likewise.
13419 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13420 (reduce_and_compute_sincos): Remove unused function.
13421
13422 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13423
13424 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_1): Rename to
13425 reduce_sincos, improve accuracy to 136 bits.
13426 (do_sincos_1): Rename to do_sincos, remove fallbacks to slow functions.
13427 (__sin): Use improved reduction and simplified do_sincos calculation.
13428 (__cos): Likewise.
13429 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Likewise.
13430
13431 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13432
13433 * sysdeps/ieee754/dbl-64/s_sin.c (reduce_sincos_2): Remove function.
13434 (do_sincos_2): Likewise.
13435 (__sin): Remove middle range reduction case.
13436 (__cos): Likewise.
13437 * sysdeps/ieee754/dbl-64/s_sincos.c (__sincos): Remove middle range
13438 reduction case.
13439
13440 2018-04-03 Wilco Dijkstra <wdijkstr@arm.com>
13441
13442 * sysdeps/aarch64/libm-test-ulps: Update ULP for sin, cos, sincos.
13443 * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove slow paths for small
13444 inputs.
13445 (__cos): Likewise.
13446 * sysdeps/x86_64/fpu/libm-test-ulps: Update ULP for sin, cos, sincos.
13447
13448 2018-04-03 Joseph Myers <joseph@codesourcery.com>
13449
13450 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
13451 version to 4.16
13452
13453 2018-04-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13454
13455 * sysdeps/posix/opendir.c (o_directory_works, tryopen_o_directory):
13456 Remove definitions.
13457 (opendir_oflags): Use O_DIRECTORY regardless.
13458 (__opendir, __opendirat): Remove need_isdir_precheck usage.
13459 * sysdeps/unix/sysv/linux/opendir.c: Remove file.
13460
13461 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13462
13463 * sysdeps/mach/hurd/bits/local_lim.h (_POSIX_THREAD_KEYS_MAX,
13464 _POSIX_THREAD_DESTRUCTOR_ITERATIONS, _POSIX_THREAD_THREADS_MAX): Define
13465 macros.
13466 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_THREADS,
13467 _POSIX_THREAD_ATTR_STACKSIZE, _POSIX_THREAD_ATTR_STACKADDR,
13468 _POSIX_SEMAPHORES, _POSIX_READER_WRITER_LOCKS, _POSIX_TIMEOUTS,
13469 _POSIX_SPIN_LOCKS, _POSIX_BARRIERS): Define macros to 200809L.
13470 * sysdeps/mach/hurd/net/if_ppp.h: Remove file.
13471 * sysdeps/mach/hurd/Makefile (sysdep_headers): Remove net/if_ppp.h.
13472
13473 * htl/Makefile: Bump licence to LGPL 2.1+.
13474 * htl/alloca_cutoff.c: Likewise.
13475 * htl/cthreads-compat.c: Likewise.
13476 * htl/lockfile.c: Likewise.
13477 * htl/pt-alloc.c: Likewise.
13478 * htl/pt-cancel.c: Likewise.
13479 * htl/pt-cleanup.c: Likewise.
13480 * htl/pt-create.c: Likewise.
13481 * htl/pt-dealloc.c: Likewise.
13482 * htl/pt-detach.c: Likewise.
13483 * htl/pt-exit.c: Likewise.
13484 * htl/pt-getattr.c: Likewise.
13485 * htl/pt-initialize.c: Likewise.
13486 * htl/pt-internal.h: Likewise.
13487 * htl/pt-join.c: Likewise.
13488 * htl/pt-self.c: Likewise.
13489 * htl/pt-setcancelstate.c: Likewise.
13490 * htl/pt-setcanceltype.c: Likewise.
13491 * htl/pt-sigmask.c: Likewise.
13492 * htl/pt-spin-inlines.c: Likewise.
13493 * htl/pt-testcancel.c: Likewise.
13494 * htl/pt-yield.c: Likewise.
13495 * htl/tests/test-1.c: Likewise.
13496 * htl/tests/test-10.c: Likewise.
13497 * htl/tests/test-11.c: Likewise.
13498 * htl/tests/test-12.c: Likewise.
13499 * htl/tests/test-13.c: Likewise.
13500 * htl/tests/test-14.c: Likewise.
13501 * htl/tests/test-15.c: Likewise.
13502 * htl/tests/test-16.c: Likewise.
13503 * htl/tests/test-17.c: Likewise.
13504 * htl/tests/test-2.c: Likewise.
13505 * htl/tests/test-3.c: Likewise.
13506 * htl/tests/test-4.c: Likewise.
13507 * htl/tests/test-5.c: Likewise.
13508 * htl/tests/test-6.c: Likewise.
13509 * htl/tests/test-7.c: Likewise.
13510 * htl/tests/test-8.c: Likewise.
13511 * htl/tests/test-9.c: Likewise.
13512 * htl/tests/test-__pthread_destroy_specific-skip.c: Likewise.
13513 * sysdeps/htl/bits/cancelation.h: Likewise.
13514 * sysdeps/htl/bits/pthread-np.h: Likewise.
13515 * sysdeps/htl/bits/pthread.h: Likewise.
13516 * sysdeps/htl/bits/pthreadtypes.h: Likewise.
13517 * sysdeps/htl/bits/semaphore.h: Likewise.
13518 * sysdeps/htl/bits/types/__pthread_key.h: Likewise.
13519 * sysdeps/htl/bits/types/struct___pthread_attr.h: Likewise.
13520 * sysdeps/htl/bits/types/struct___pthread_barrier.h: Likewise.
13521 * sysdeps/htl/bits/types/struct___pthread_barrierattr.h: Likewise.
13522 * sysdeps/htl/bits/types/struct___pthread_cond.h: Likewise.
13523 * sysdeps/htl/bits/types/struct___pthread_condattr.h: Likewise.
13524 * sysdeps/htl/bits/types/struct___pthread_mutex.h: Likewise.
13525 * sysdeps/htl/bits/types/struct___pthread_mutexattr.h: Likewise.
13526 * sysdeps/htl/bits/types/struct___pthread_once.h: Likewise.
13527 * sysdeps/htl/bits/types/struct___pthread_rwlock.h: Likewise.
13528 * sysdeps/htl/bits/types/struct___pthread_rwlockattr.h: Likewise.
13529 * sysdeps/htl/old_pt-atfork.c: Likewise.
13530 * sysdeps/htl/pt-atfork.c: Likewise.
13531 * sysdeps/htl/pt-attr-destroy.c: Likewise.
13532 * sysdeps/htl/pt-attr-getdetachstate.c: Likewise.
13533 * sysdeps/htl/pt-attr-getguardsize.c: Likewise.
13534 * sysdeps/htl/pt-attr-getinheritsched.c: Likewise.
13535 * sysdeps/htl/pt-attr-getschedparam.c: Likewise.
13536 * sysdeps/htl/pt-attr-getschedpolicy.c: Likewise.
13537 * sysdeps/htl/pt-attr-getscope.c: Likewise.
13538 * sysdeps/htl/pt-attr-getstack.c: Likewise.
13539 * sysdeps/htl/pt-attr-getstackaddr.c: Likewise.
13540 * sysdeps/htl/pt-attr-getstacksize.c: Likewise.
13541 * sysdeps/htl/pt-attr-init.c: Likewise.
13542 * sysdeps/htl/pt-attr-setdetachstate.c: Likewise.
13543 * sysdeps/htl/pt-attr-setguardsize.c: Likewise.
13544 * sysdeps/htl/pt-attr-setinheritsched.c: Likewise.
13545 * sysdeps/htl/pt-attr-setschedparam.c: Likewise.
13546 * sysdeps/htl/pt-attr-setschedpolicy.c: Likewise.
13547 * sysdeps/htl/pt-attr-setscope.c: Likewise.
13548 * sysdeps/htl/pt-attr-setstack.c: Likewise.
13549 * sysdeps/htl/pt-attr-setstackaddr.c: Likewise.
13550 * sysdeps/htl/pt-attr-setstacksize.c: Likewise.
13551 * sysdeps/htl/pt-attr.c: Likewise.
13552 * sysdeps/htl/pt-barrier-destroy.c: Likewise.
13553 * sysdeps/htl/pt-barrier-init.c: Likewise.
13554 * sysdeps/htl/pt-barrier-wait.c: Likewise.
13555 * sysdeps/htl/pt-barrier.c: Likewise.
13556 * sysdeps/htl/pt-barrierattr-destroy.c: Likewise.
13557 * sysdeps/htl/pt-barrierattr-getpshared.c: Likewise.
13558 * sysdeps/htl/pt-barrierattr-init.c: Likewise.
13559 * sysdeps/htl/pt-barrierattr-setpshared.c: Likewise.
13560 * sysdeps/htl/pt-cond-brdcast.c: Likewise.
13561 * sysdeps/htl/pt-cond-destroy.c: Likewise.
13562 * sysdeps/htl/pt-cond-init.c: Likewise.
13563 * sysdeps/htl/pt-cond-signal.c: Likewise.
13564 * sysdeps/htl/pt-cond-timedwait.c: Likewise.
13565 * sysdeps/htl/pt-cond-wait.c: Likewise.
13566 * sysdeps/htl/pt-cond.c: Likewise.
13567 * sysdeps/htl/pt-condattr-destroy.c: Likewise.
13568 * sysdeps/htl/pt-condattr-getclock.c: Likewise.
13569 * sysdeps/htl/pt-condattr-getpshared.c: Likewise.
13570 * sysdeps/htl/pt-condattr-init.c: Likewise.
13571 * sysdeps/htl/pt-condattr-setclock.c: Likewise.
13572 * sysdeps/htl/pt-condattr-setpshared.c: Likewise.
13573 * sysdeps/htl/pt-destroy-specific.c: Likewise.
13574 * sysdeps/htl/pt-equal.c: Likewise.
13575 * sysdeps/htl/pt-getconcurrency.c: Likewise.
13576 * sysdeps/htl/pt-getcpuclockid.c: Likewise.
13577 * sysdeps/htl/pt-getschedparam.c: Likewise.
13578 * sysdeps/htl/pt-getspecific.c: Likewise.
13579 * sysdeps/htl/pt-init-specific.c: Likewise.
13580 * sysdeps/htl/pt-key-create.c: Likewise.
13581 * sysdeps/htl/pt-key-delete.c: Likewise.
13582 * sysdeps/htl/pt-key.h: Likewise.
13583 * sysdeps/htl/pt-mutex-destroy.c: Likewise.
13584 * sysdeps/htl/pt-mutex-getprioceiling.c: Likewise.
13585 * sysdeps/htl/pt-mutex-init.c: Likewise.
13586 * sysdeps/htl/pt-mutex-lock.c: Likewise.
13587 * sysdeps/htl/pt-mutex-setprioceiling.c: Likewise.
13588 * sysdeps/htl/pt-mutex-timedlock.c: Likewise.
13589 * sysdeps/htl/pt-mutex-trylock.c: Likewise.
13590 * sysdeps/htl/pt-mutex-unlock.c: Likewise.
13591 * sysdeps/htl/pt-mutexattr-destroy.c: Likewise.
13592 * sysdeps/htl/pt-mutexattr-getprioceiling.c: Likewise.
13593 * sysdeps/htl/pt-mutexattr-getprotocol.c: Likewise.
13594 * sysdeps/htl/pt-mutexattr-getpshared.c: Likewise.
13595 * sysdeps/htl/pt-mutexattr-gettype.c: Likewise.
13596 * sysdeps/htl/pt-mutexattr-init.c: Likewise.
13597 * sysdeps/htl/pt-mutexattr-setprioceiling.c: Likewise.
13598 * sysdeps/htl/pt-mutexattr-setprotocol.c: Likewise.
13599 * sysdeps/htl/pt-mutexattr-setpshared.c: Likewise.
13600 * sysdeps/htl/pt-mutexattr-settype.c: Likewise.
13601 * sysdeps/htl/pt-mutexattr.c: Likewise.
13602 * sysdeps/htl/pt-once.c: Likewise.
13603 * sysdeps/htl/pt-rwlock-attr.c: Likewise.
13604 * sysdeps/htl/pt-rwlock-destroy.c: Likewise.
13605 * sysdeps/htl/pt-rwlock-init.c: Likewise.
13606 * sysdeps/htl/pt-rwlock-rdlock.c: Likewise.
13607 * sysdeps/htl/pt-rwlock-timedrdlock.c: Likewise.
13608 * sysdeps/htl/pt-rwlock-timedwrlock.c: Likewise.
13609 * sysdeps/htl/pt-rwlock-tryrdlock.c: Likewise.
13610 * sysdeps/htl/pt-rwlock-trywrlock.c: Likewise.
13611 * sysdeps/htl/pt-rwlock-unlock.c: Likewise.
13612 * sysdeps/htl/pt-rwlock-wrlock.c: Likewise.
13613 * sysdeps/htl/pt-rwlockattr-destroy.c: Likewise.
13614 * sysdeps/htl/pt-rwlockattr-getpshared.c: Likewise.
13615 * sysdeps/htl/pt-rwlockattr-init.c: Likewise.
13616 * sysdeps/htl/pt-rwlockattr-setpshared.c: Likewise.
13617 * sysdeps/htl/pt-setconcurrency.c: Likewise.
13618 * sysdeps/htl/pt-setschedparam.c: Likewise.
13619 * sysdeps/htl/pt-setschedprio.c: Likewise.
13620 * sysdeps/htl/pt-setspecific.c: Likewise.
13621 * sysdeps/htl/pt-spin.c: Likewise.
13622 * sysdeps/htl/pt-startup.c: Likewise.
13623 * sysdeps/htl/pthread.h: Likewise.
13624 * sysdeps/htl/sem-close.c: Likewise.
13625 * sysdeps/htl/sem-destroy.c: Likewise.
13626 * sysdeps/htl/sem-getvalue.c: Likewise.
13627 * sysdeps/htl/sem-init.c: Likewise.
13628 * sysdeps/htl/sem-open.c: Likewise.
13629 * sysdeps/htl/sem-post.c: Likewise.
13630 * sysdeps/htl/sem-timedwait.c: Likewise.
13631 * sysdeps/htl/sem-trywait.c: Likewise.
13632 * sysdeps/htl/sem-unlink.c: Likewise.
13633 * sysdeps/htl/sem-wait.c: Likewise.
13634 * sysdeps/hurd/htl/pt-kill.c: Likewise.
13635 * sysdeps/i386/htl/pt-machdep.h: Likewise.
13636 * sysdeps/mach/htl/pt-block.c: Likewise.
13637 * sysdeps/mach/htl/pt-spin.c: Likewise.
13638 * sysdeps/mach/htl/pt-stack-alloc.c: Likewise.
13639 * sysdeps/mach/htl/pt-thread-alloc.c: Likewise.
13640 * sysdeps/mach/htl/pt-thread-start.c: Likewise.
13641 * sysdeps/mach/htl/pt-thread-terminate.c: Likewise.
13642 * sysdeps/mach/htl/pt-timedblock.c: Likewise.
13643 * sysdeps/mach/htl/pt-wakeup.c: Likewise.
13644 * sysdeps/mach/hurd/htl/bits/pthread-np.h: Likewise.
13645 * sysdeps/mach/hurd/htl/bits/types/struct___pthread_mutex.h: Likewise.
13646 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c: Likewise.
13647 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c: Likewise.
13648 * sysdeps/mach/hurd/htl/pt-docancel.c: Likewise.
13649 * sysdeps/mach/hurd/htl/pt-hurd-cond-timedwait.c: Likewise.
13650 * sysdeps/mach/hurd/htl/pt-hurd-cond-wait.c: Likewise.
13651 * sysdeps/mach/hurd/htl/pt-mutex-consistent.c: Likewise.
13652 * sysdeps/mach/hurd/htl/pt-mutex-destroy.c: Likewise.
13653 * sysdeps/mach/hurd/htl/pt-mutex-getprioceiling.c: Likewise.
13654 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Likewise.
13655 * sysdeps/mach/hurd/htl/pt-mutex-lock.c: Likewise.
13656 * sysdeps/mach/hurd/htl/pt-mutex-setprioceiling.c: Likewise.
13657 * sysdeps/mach/hurd/htl/pt-mutex-timedlock.c: Likewise.
13658 * sysdeps/mach/hurd/htl/pt-mutex-transfer-np.c: Likewise.
13659 * sysdeps/mach/hurd/htl/pt-mutex-trylock.c: Likewise.
13660 * sysdeps/mach/hurd/htl/pt-mutex-unlock.c: Likewise.
13661 * sysdeps/mach/hurd/htl/pt-mutex.h: Likewise.
13662 * sysdeps/mach/hurd/htl/pt-mutexattr-destroy.c: Likewise.
13663 * sysdeps/mach/hurd/htl/pt-mutexattr-getprioceiling.c: Likewise.
13664 * sysdeps/mach/hurd/htl/pt-mutexattr-getprotocol.c: Likewise.
13665 * sysdeps/mach/hurd/htl/pt-mutexattr-getpshared.c: Likewise.
13666 * sysdeps/mach/hurd/htl/pt-mutexattr-getrobust.c: Likewise.
13667 * sysdeps/mach/hurd/htl/pt-mutexattr-gettype.c: Likewise.
13668 * sysdeps/mach/hurd/htl/pt-mutexattr-init.c: Likewise.
13669 * sysdeps/mach/hurd/htl/pt-mutexattr-setprioceiling.c: Likewise.
13670 * sysdeps/mach/hurd/htl/pt-mutexattr-setprotocol.c: Likewise.
13671 * sysdeps/mach/hurd/htl/pt-mutexattr-setpshared.c: Likewise.
13672 * sysdeps/mach/hurd/htl/pt-mutexattr-setrobust.c: Likewise.
13673 * sysdeps/mach/hurd/htl/pt-mutexattr-settype.c: Likewise.
13674 * sysdeps/mach/hurd/htl/pt-sigstate-destroy.c: Likewise.
13675 * sysdeps/mach/hurd/htl/pt-sigstate-init.c: Likewise.
13676 * sysdeps/mach/hurd/htl/pt-sigstate.c: Likewise.
13677 * sysdeps/mach/hurd/htl/pt-sysdep.c: Likewise.
13678 * sysdeps/mach/hurd/htl/pt-sysdep.h: Likewise.
13679 * sysdeps/mach/hurd/i386/htl/pt-machdep.c: Likewise.
13680 * sysdeps/mach/hurd/i386/htl/pt-setup.c: Likewise.
13681
13682 * NEWS: Announce that glibc now builds unpatched on GNU/Hurd.
13683 * README: Remove the mention of out-of-tree patches needed for
13684 GNU/Hurd.
13685
13686 * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE]
13687 (UTIME_NOW, UTIME_OMIT): Define macros.
13688
13689 * htl/cthreads-compat.c (__cthread_detach): Call __pthread_detach
13690 instead of pthread_detach.
13691 (__cthread_fork): Call __pthread_create instead of pthread_create.
13692 (__cthread_keycreate): Call __pthread_key_create instead of
13693 pthread_key_create.
13694 (__cthread_getspecific): Call __pthread_getspecific instead of
13695 pthread_getspecific.
13696 (__cthread_setspecific): Call __pthread_setspecific instead of
13697 pthread_setspecific.
13698 * htl/pt-alloc.c (__pthread_alloc): Call __pthread_mutex_lock and
13699 __pthread_mutex_unlock instead of pthread_mutex_lock and
13700 pthread_mutex_unlock.
13701 * htl/pt-cleanup.c (__pthread_get_cleanup_stack): Rename to
13702 ___pthread_get_cleanup_stack.
13703 (__pthread_get_cleanup_stack): New strong alias.
13704 * htl/pt-create.c: Include <pthreadP.h>.
13705 (entry_point): Call __pthread_exit instead of pthread_exit.
13706 (pthread_create): Rename to __pthread_create.
13707 (pthread_create): New strong alias.
13708 * htl/pt-detach.c (pthread_detach): Rename to __pthread_detach.
13709 (pthread_detach): New strong alias.
13710 (__pthread_detach): Call __pthread_cond_broadcast instead of
13711 pthread_cond_broadcast.
13712 * htl/pt-exit.c: Include <pthreadP.h>.
13713 (__pthread_exit): Call __pthread_setcancelstate and
13714 ___pthread_get_cleanup_stack instead of pthread_setcancelstate and
13715 __pthread_get_cleanup_stack.
13716 * htl/pt-testcancel.c: Include <pthreadP.h>.
13717 (pthread_testcancel): Call __pthread_exit instead of pthread_exit.
13718 * sysdeps/htl/pt-attr-getstack.c: Include <pthreadP.h>
13719 (__pthread_attr_getstack): Call __pthread_attr_getstackaddr and
13720 __pthread_attr_getstacksize instead of pthread_attr_getstackaddr and
13721 pthread_attr_getstacksize.
13722 * sysdeps/htl/pt-attr-getstackaddr.c (pthread_attr_getstackaddr):
13723 Rename to __pthread_attr_getstackaddr.
13724 (pthread_attr_getstackaddr): New strong alias.
13725 * sysdeps/htl/pt-attr-getstacksize.c (pthread_attr_getstacksize):
13726 Rename to __pthread_attr_getstacksize.
13727 (pthread_attr_getstacksize): New strong alias.
13728 * sysdeps/htl/pt-attr-setstack.c: Include <pthreadP.h>.
13729 (pthread_attr_setstack): Rename to __pthread_attr_setstack.
13730 (pthread_attr_setstack): New strong alias.
13731 (__pthread_attr_setstack): Call __pthread_attr_getstacksize,
13732 __pthread_attr_setstacksize and __pthread_attr_setstackaddr instead of
13733 pthread_attr_getstacksize, pthread_attr_setstacksize and
13734 pthread_attr_setstackaddr.
13735 * sysdeps/htl/pt-attr-setstackaddr.c (pthread_attr_setstackaddr):
13736 Rename to __pthread_attr_setstackaddr.
13737 (pthread_attr_setstackaddr): New strong alias.
13738 * sysdeps/htl/pt-attr-setstacksize.c (pthread_attr_setstacksize):
13739 Rename to __pthread_attr_setstacksize.
13740 (pthread_attr_setstacksize): New strong alias.
13741 * sysdeps/htl/pt-cond-timedwait.c: Include <pthreadP.h>.
13742 (__pthread_cond_timedwait_internal): Use __pthread_exit instead of
13743 pthread_exit.
13744 * sysdeps/htl/pt-key-create.c: Include <pthreadP.h>.
13745 (__pthread_key_create): New hidden def.
13746 * sysdeps/htl/pt-key.h: Include <pthreadP.h>.
13747 * sysdeps/htl/pthreadP.h (_pthread_mutex_init,
13748 __pthread_cond_broadcast, __pthread_create, __pthread_detach,
13749 __pthread_exit, __pthread_key_create, __pthread_getspecific,
13750 __pthread_setspecific, __pthread_setcancelstate,
13751 __pthread_attr_getstackaddr, __pthread_attr_setstackaddr,
13752 __pthread_attr_getstacksize, __pthread_attr_setstacksize,
13753 __pthread_attr_setstack, ___pthread_get_cleanup_stack): New
13754 declarations.
13755 (__pthread_key_create, _pthread_mutex_init): New hidden declarations.
13756 * sysdeps/mach/hurd/htl/pt-attr-setstackaddr.c
13757 (pthread_attr_setstackaddr): Rename to __pthread_attr_setstackaddr.
13758 (pthread_attr_setstackaddr): New strong alias.
13759 * sysdeps/mach/hurd/htl/pt-attr-setstacksize.c
13760 (pthread_attr_setstacksize): Rename to __pthread_attr_setstacksize.
13761 (pthread_attr_setstacksize): New strong alias.
13762 * sysdeps/mach/hurd/htl/pt-docancel.c: Include <pthreadP.h>.
13763 (call_exit): Call __pthread_exit instead of pthread_exit.
13764 * sysdeps/mach/hurd/htl/pt-mutex-init.c: Include <pthreadP.h>.
13765 (_pthread_mutex_init): New hidden definition.
13766 * sysdeps/mach/hurd/htl/pt-sysdep.c: Include <pthreadP.h>.
13767 (_init_routine): Call __pthread_attr_init and __pthread_attr_setstack
13768 instead of pthread_attr_init and pthread_attr_setstack.
13769
13770 * hurd/hurdauth.c (_S_msg_add_auth): Call __vm_allocate and
13771 __vm_deallocate instead of vm_allocate and vm_deallocate.
13772 * hurd/hurdmsg.c (_S_msg_set_env_variable): Call __setenv instead of
13773 setenv.
13774 * hurd/hurdprio.c (_hurd_priority_which_map): Call __geteuid instead
13775 of geteuid.
13776 * hurd/path-lookup.c (file_name_path_scan): Call __strdup instead of
13777 strdup.
13778 * hurd/siginfo.c: Include <libioP.h>.
13779 (_hurd_siginfo_handler): Call _IO_puts instead of puts.
13780 * hurd/xattr.c (_hurd_xattr_get, _hurd_xattr_set): Call __munmap instead of
13781 munmap.
13782 * mach/devstream.c: Include <libioP.h>.
13783 (dealloc_ref): Call __mach_port_deallocate instead of
13784 mach_port_deallocate.
13785 (mach_open_devstream): Call _IO_fopencookie instead of fopencookie.
13786 Call __mach_port_deallocate instead of mach_port_deallocate.
13787 * stdlib/canonicalize.c (__realpath): Call __pathconf instead of
13788 pathconf.
13789 * sysdeps/mach/hurd/ifreq.c (__ifreq): Call __munmap instead of
13790 munmap.
13791 * sysdeps/mach/hurd/ifreq.h (__if_freereq): Likewise.
13792 * sysdeps/mach/hurd/ptrace.c (ptrace): Call __kill instead of kill.
13793 * sysdeps/mach/hurd/sendfile64.c (sendfile64): Call __munmap instead
13794 of munmap.
13795 * sysdeps/mach/hurd/socketpair.c (__socketpair): Call __close instead
13796 of close.
13797 * sysdeps/posix/clock_getres.c (realtime_getres): Call __sysconf
13798 instead of sysconf.
13799 * sysdeps/pthread/timer_gettime.c (timer_gettime): Call
13800 __clock_gettime instead of clock_gettime.
13801 * sysdeps/pthread/timer_routines.c (thread_func): Likewise.
13802 * sysdeps/pthread/timer_settime.c (timer_settime): Likewise.
13803 * sysdeps/unix/bsd/gtty.c (gtty): Call __ioctl instead of ioctl.
13804 * sysdeps/unix/bsd/stty.c (stty): Likewise.
13805 * sysdeps/unix/bsd/tcflow.c (tcflow): Call __tcgetattr instead of
13806 tcgetattr.
13807 * sysdeps/unix/clock_nanosleep.c (__clock_nanosleep): Call
13808 __clock_gettime and __nanosleep instead of clock_gettime and
13809 nanosleep.
13810 * hurd/catch-signal.c (hurd_catch_signal): Rename to
13811 __hurd_catch_signal.
13812 (hurd_catch_signal): New strong alias.
13813 (hurd_safe_memset, hurd_safe_copyout, hurd_safe_copyin): Call
13814 __hurd_catch_signal instead of hurd_catch_signal.
13815 * hurd/exc2signal.c (_hurd_exception2signal): Add hidden def.
13816 * hurd/hurdexec.c (_hurd_init): Add hidden def.
13817 * hurd/hurdinit.c (_hurd_init): Add hidden def.
13818 * hurd/hurdsig.c: Include <mach/mig_support.h>.
13819 (_hurd_thread_sigstate): Add hidden def.
13820 (_hurd_internal_post_signal): Use __mutex_unlock instead of
13821 mutex_unlock.
13822 * hurd/intern-fd.c (_hurd_intern_fd): Add hidden def.
13823 * hurd/intr-msg.c (_hurd_intr_rpc_mach_msg): Add hidden def.
13824 * hurd/path-lookup.c (hurd_file_name_path_lookup): Rename to
13825 __hurd_file_name_path_lookup.
13826 (hurd_file_name_path_lookup): New strong alias.
13827 (file_name_path_lookup): Call __hurd_file_name_path_lookup instead of
13828 hurd_file_name_path_lookup.
13829 * mach/errstring.c (mach_error_type): Add hidden def.
13830 * mach/msg-destroy.c (__mach_msg_destroy): Add hidden def.
13831 * mach/mutex-init.c (__mutex_init): Add hidden def.
13832 * mach/spin-lock.c (__spin_lock_locked, __spin_lock, __spin_unlock,
13833 __spin_try_lock, __mutex_lock, __mutex_trylock): Add hidden defs.
13834 * mach/spin-solid.c (__spin_lock_solid): Add hidden def.
13835 * sysdeps/mach/hurd/getcwd.c
13836 (_hurd_canonicalize_directory_name_internal): Rename to
13837 __hurd_canonicalize_directory_name_internal.
13838 (_hurd_canonicalize_directory_name_internal): New strong alias.
13839 (__canonicalize_directory_name_internal, __getcwd): Call
13840 __hurd_canonicalize_directory_name_internal instead of
13841 _hurd_canonicalize_directory_name_internal.
13842 * sysdeps/mach/hurd/mig-reply.c: Include <mach/mig_support.h>.
13843 (__mig_get_reply_port, __mig_dealloc_reply_port, __mig_init): Add
13844 hidden defs.
13845 * sysdeps/hurd/include/hurd.h: New file.
13846 * sysdeps/hurd/include/hurd/fd.h: New file.
13847 * sysdeps/hurd/include/hurd/signal.h: New file.
13848 * sysdeps/mach/include/lock-intern.h: New file.
13849 * sysdeps/mach/include/mach.h: New file.
13850 * sysdeps/mach/include/mach/mig_support.h: New file.
13851 * sysdeps/mach/include/mach_error.h: New file.
13852 * sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
13853 prototype.
13854 * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
13855 * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
13856 _HEADER_H_HIDDEN_DEF macro.
13857 * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
13858 _hurd_fd_error_signal): Add hidden prototype.
13859 [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
13860 hidden def.
13861 * libio/iolibio.h (_IO_puts): New hidden prototype.
13862 * libio/ioputs.c (_IO_puts): New hidden def.
13863 * sysdeps/mach/hurd/localplt.data: New file.
13864
13865 2018-04-02 Agustina Arzille <avarzille@riseup.net>
13866 Amos Jeffries <squid3@treenet.co.nz>
13867 David Michael <fedora.dm0@gmail.com>
13868 Marco Gerards <marco@gnu.org>
13869 Marcus Brinkmann <marcus@gnu.org>
13870 Neal H. Walfield <neal@gnu.org>
13871 Pino Toscano <toscano.pino@tiscali.it>
13872 Richard Braun <rbraun@sceen.net>
13873 Roland McGrath <roland@gnu.org>
13874 Samuel Thibault <samuel.thibault@ens-lyon.org>
13875 Thomas DiModica <ricinwich@yahoo.com>
13876 Thomas Schwinge <tschwinge@gnu.org>
13877
13878 * htl: New directory.
13879 * sysdeps/htl: New directory.
13880 * sysdeps/hurd/htl: New directory.
13881 * sysdeps/i386/htl: New directory.
13882 * sysdeps/mach/htl: New directory.
13883 * sysdeps/mach/hurd/htl: New directory.
13884 * sysdeps/mach/hurd/i386/htl: New directory.
13885 * nscd/Depend, resolv/Depend, rt/Depend: Add htl dependency.
13886 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/i386/htl imply.
13887 * sysdeps/mach/hurd/i386/libpthread.abilist: New file.
13888
13889 2018-04-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13890
13891 * sysdeps/pthread/timer_routines.c (__timer_thread_start): Block all
13892 signals in thread created for runing timers.
13893
13894 2018-04-01 Florian Weimer <fweimer@redhat.com>
13895
13896 * support/support_format_addrinfo.c (support_format_addrinfo):
13897 Include unknown error number in formatted result.
13898
13899 2018-03-29 Florian Weimer <fweimer@redhat.com>
13900
13901 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c (do_test): Also
13902 capture SIGBUS.
13903
13904 2018-03-27 Adhemerval Zanella <adhemerval.zanella@linaro.org>
13905
13906 * sysdeps/unix/sysv/linux/arch-fork.h [__ASSUME_CLONE_BACKWARDS]
13907 (arch_fork): Issue INLINE_CLONE_SYSCALL if defined.
13908 * sysdeps/unix/sysv/linux/sparc/kernel-features.h
13909 (__ASSUME_CLONE_BACKWARDS): Define.
13910
13911 2018-03-27 Jesse Hathaway <jesse@mbuki-mvuki.org>
13912
13913 [BZ #23024]
13914 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Return
13915 early when linux sentinel value is set.
13916
13917 2018-03-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
13918
13919 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define.
13920
13921 2018-03-27 Andreas Schwab <schwab@suse.de>
13922
13923 [BZ #23005]
13924 * resolv/res_send.c (__res_context_send): Return ENOMEM if
13925 allocation of private copy of nsaddr_list fails.
13926
13927 2018-03-26 Joseph Myers <joseph@codesourcery.com>
13928
13929 [BZ #16552]
13930 * sysdeps/unix/sysv/linux/generic/umount.c: Move to ....
13931 * sysdeps/unix/sysv/linux/umount.c: ... here.
13932 * sysdeps/unix/sysv/linux/arm/umount.c: Remove file.
13933 * sysdeps/unix/sysv/linux/hppa/umount.c: Likewise.
13934 * sysdeps/unix/sysv/linux/ia64/umount.c: Likewise.
13935 * sysdeps/unix/sysv/linux/mips/mips64/umount.c: Likewise.
13936 * sysdeps/unix/sysv/linux/powerpc/powerpc64/umount.c: Likewise.
13937 * sysdeps/unix/sysv/linux/umount.S: Likewise.
13938 * sysdeps/unix/sysv/linux/x86_64/umount.c: Likewise.
13939
13940 2018-03-26 Andreas Schwab <schwab@suse.de>
13941
13942 * elf/elf.h (R_RISCV_BRANCH, R_RISCV_JAL, R_RISCV_CALL)
13943 (R_RISCV_CALL_PLT, R_RISCV_GOT_HI20, R_RISCV_TLS_GOT_HI20)
13944 (R_RISCV_TLS_GD_HI20, R_RISCV_PCREL_HI20, R_RISCV_PCREL_LO12_I)
13945 (R_RISCV_PCREL_LO12_S, R_RISCV_HI20, R_RISCV_LO12_I)
13946 (R_RISCV_LO12_S, R_RISCV_TPREL_HI20, R_RISCV_TPREL_LO12_I)
13947 (R_RISCV_TPREL_LO12_S, R_RISCV_TPREL_ADD, R_RISCV_ADD8)
13948 (R_RISCV_ADD16, R_RISCV_ADD32, R_RISCV_ADD64, R_RISCV_SUB8)
13949 (R_RISCV_SUB16, R_RISCV_SUB32, R_RISCV_SUB64)
13950 (R_RISCV_GNU_VTINHERIT, R_RISCV_GNU_VTENTRY, R_RISCV_ALIGN)
13951 (R_RISCV_RVC_BRANCH, R_RISCV_RVC_JUMP, R_RISCV_RVC_LUI)
13952 (R_RISCV_GPREL_I, R_RISCV_GPREL_S, R_RISCV_TPREL_I)
13953 (R_RISCV_TPREL_S, R_RISCV_RELAX, R_RISCV_SUB6, R_RISCV_SET6)
13954 (R_RISCV_SET8, R_RISCV_SET16, R_RISCV_SET32, R_RISCV_32_PCREL)
13955 (R_RISCV_NUM): Define.
13956
13957 2018-03-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
13958
13959 * include/errno.h [IS_IN(rtld) && !RTLD_PRIVATE_ERRNO]: Do not use the
13960 TLS declaration of errno.
13961 * sysdeps/generic/libc-start.h [!SHARED] (ARCH_SETUP_TLS): Define to
13962 __libc_setup_tls.
13963 * sysdeps/unix/sysv/linux/powerpc/libc-start.h [!SHARED]
13964 (ARCH_SETUP_TLS): Likewise.
13965 * sysdeps/mach/hurd/libc-start.h: New file copied from
13966 sysdeps/generic/libc-start.h, but define ARCH_SETUP_TLS to empty.
13967 * csu/libc-start.c [!SHARED] (LIBC_START_MAIN): Call ARCH_SETUP_TLS
13968 instead of __libc_setup_tls.
13969 * sysdeps/mach/hurd/i386/init-first.c [!SHARED] (init1): Call
13970 __libc_setup_tls before initializing libpthread and running _hurd_init
13971 which starts the signal thread.
13972 * sysdeps/generic/ldsodefs.h [SHARED] (__pthread_initialize_minimal):
13973 Declare function.
13974 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
13975
13976 2018-03-24 H.J. Lu <hongjiu.lu@intel.com>
13977
13978 [BZ #22998]
13979 * elf/Makefile (tests): Add $(tests-execstack-$(have-z-execstack))
13980 after it is defined.
13981
13982 2018-03-23 Andrew Senkevich <andrew.senkevich@intel.com>
13983 Max Horn <max@quendi.de>
13984
13985 [BZ #22644]
13986 CVE-2017-18269
13987 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Fixed
13988 branch conditions.
13989 * string/test-memmove.c (do_test2): New testcase.
13990
13991 2018-03-22 Joseph Myers <joseph@codesourcery.com>
13992
13993 * sysdeps/generic/frame.h: Remove file.
13994 * sysdeps/arm/frame.h: Likewise.
13995 * sysdeps/hppa/frame.h: Likewise.
13996 * sysdeps/generic/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS): Remove
13997 macro.
13998 (GET_FRAME): Likewise.
13999 (GET_STACK): Likewise.
14000 (CALL_SIGHANDLER): Likewise.
14001 * sysdeps/mach/hurd/i386/sigcontextinfo.h (SIGCONTEXT_EXTRA_ARGS):
14002 Likewise.
14003 (GET_FRAME): Likewise.
14004 (GET_STACK): Likewise.
14005 (CALL_SIGHANDLER): Likewise.
14006 * sysdeps/unix/sysv/linux/alpha/sigcontextinfo.h
14007 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14008 (GET_FRAME): Likewise.
14009 (GET_STACK): Likewise.
14010 (CALL_SIGHANDLER): Likewise.
14011 * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h
14012 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14013 (GET_FRAME): Likewise.
14014 (GET_STACK): Likewise.
14015 (ADVANCE_STACK_FRAME): Likewise.
14016 (CALL_SIGHANDLER): Likewise.
14017 * sysdeps/unix/sysv/linux/i386/sigcontextinfo.h
14018 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14019 (GET_FRAME): Likewise.
14020 (GET_STACK): Likewise.
14021 (CALL_SIGHANDLER): Likewise.
14022 * sysdeps/unix/sysv/linux/ia64/sigcontextinfo.h
14023 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14024 (GET_FRAME): Likewise.
14025 (GET_STACK): Likewise.
14026 (CALL_SIGHANDLER): Likewise.
14027 * sysdeps/unix/sysv/linux/m68k/sigcontextinfo.h
14028 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14029 (GET_FRAME): Likewise.
14030 (GET_STACK): Likewise.
14031 (CALL_SIGHANDLER): Likewise.
14032 * sysdeps/unix/sysv/linux/microblaze/sigcontextinfo.h
14033 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14034 (GET_FRAME): Likewise.
14035 (GET_STACK): Likewise.
14036 (CALL_SIGHANDLER): Likewise.
14037 * sysdeps/unix/sysv/linux/mips/sigcontextinfo.h
14038 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14039 (GET_FRAME): Likewise.
14040 (GET_STACK): Likewise.
14041 (CALL_SIGHANDLER): Likewise.
14042 * sysdeps/unix/sysv/linux/powerpc/sigcontextinfo.h
14043 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14044 (GET_FRAME): Likewise.
14045 (GET_STACK): Likewise.
14046 (CALL_SIGHANDLER): Likewise.
14047 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h
14048 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14049 (GET_FRAME): Likewise.
14050 (GET_STACK): Likewise.
14051 (CALL_SIGHANDLER): Likewise.
14052 * sysdeps/unix/sysv/linux/s390/sigcontextinfo.h
14053 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14054 (GET_FRAME): Likewise.
14055 (GET_STACK): Likewise.
14056 (CALL_SIGHANDLER): Likewise.
14057 * sysdeps/unix/sysv/linux/sh/sigcontextinfo.h
14058 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14059 (GET_FRAME): Likewise.
14060 (GET_STACK): Likewise.
14061 (CALL_SIGHANDLER): Likewise.
14062 * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h
14063 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14064 (FIRST_FRAME_POINTER): Likewise.
14065 (ADVANCE_STACK_FRAME): Likewise.
14066 (GET_STACK): Likewise.
14067 (GET_FRAME): Likewise.
14068 (CALL_SIGHANDLER): Likewise.
14069 * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h
14070 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14071 (ADVANCE_STACK_FRAME): Likewise.
14072 (GET_STACK): Likewise.
14073 (GET_FRAME): Likewise.
14074 (CALL_SIGHANDLER): Likewise.
14075 * sysdeps/unix/sysv/linux/tile/sigcontextinfo.h
14076 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14077 (GET_FRAME): Likewise.
14078 (GET_STACK): Likewise.
14079 (CALL_SIGHANDLER): Likewise.
14080 * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h
14081 (SIGCONTEXT_EXTRA_ARGS): Likewise.
14082 (GET_FRAME): Likewise.
14083 (GET_STACK): Likewise.
14084 (CALL_SIGHANDLER): Likewise.
14085
14086 2018-03-21 Joseph Myers <joseph@codesourcery.com>
14087
14088 * sysdeps/x86_64/backtrace.c: Move to ....
14089 * debug/backtrace.c: ... here.
14090 * sysdeps/aarch64/backtrace.c: Remove file.
14091 * sysdeps/alpha/backtrace.c: Likewise.
14092 * sysdeps/hppa/backtrace.c: Likewise.
14093 * sysdeps/ia64/backtrace.c: Likewise.
14094 * sysdeps/mips/backtrace.c: Likewise.
14095 * sysdeps/nios2/backtrace.c: Likewise.
14096 * sysdeps/riscv/backtrace.c: Likewise.
14097 * sysdeps/sh/backtrace.c: Likewise.
14098 * sysdeps/tile/backtrace.c: Likewise.
14099
14100 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14101
14102 [BZ #22987]
14103 * sysdeps/powerpc/bits/mathinline.h (fdim): Remove inline
14104 function.
14105 (fdimf): Likewise.
14106 * sysdeps/sparc/fpu/bits/mathinline.h: Remove file.
14107
14108 [BZ #17343]
14109 * stdlib/random_r.c (__random_r): Use unsigned arithmetic for
14110 possibly overflowing computations.
14111
14112 2018-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>
14113
14114 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): Remove errno
14115 values from Linux-specific section now that it is in the GNU section.
14116 * sysdeps/gnu/errlist.c: Regenerate.
14117
14118 2018-03-20 Joseph Myers <joseph@codesourcery.com>
14119
14120 * math/Makefile (libm-narrow-fns): Add sub.
14121 (libm-test-funcs-narrow): Likewise.
14122 * math/Versions (GLIBC_2.28): Add narrowing subtract functions.
14123 * math/bits/mathcalls-narrow.h (sub): Use __MATHCALL_NARROW.
14124 * math/gen-auto-libm-tests.c (test_functions): Add sub.
14125 * math/math-narrow.h (CHECK_NARROW_SUB): New macro.
14126 (NARROW_SUB_ROUND_TO_ODD): Likewise.
14127 (NARROW_SUB_TRIVIAL): Likewise.
14128 * sysdeps/ieee754/float128/float128_private.h (__fsubl): New
14129 macro.
14130 (__dsubl): Likewise.
14131 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fsub and
14132 dsub.
14133 (CFLAGS-nldbl-dsub.c): New variable.
14134 (CFLAGS-nldbl-fsub.c): Likewise.
14135 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
14136 __nldbl_dsubl.
14137 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_dsubl): New
14138 prototype.
14139 * manual/arith.texi (Misc FP Arithmetic): Document fsub, fsubl,
14140 dsubl, fMsubfN, fMsubfNx, fMxsubfN and fMxsubfNx.
14141 * math/auto-libm-test-in: Add tests of sub.
14142 * math/auto-libm-test-out-narrow-sub: New generated file.
14143 * math/libm-test-narrow-sub.inc: New file.
14144 * sysdeps/i386/fpu/s_f32xsubf64.c: Likewise.
14145 * sysdeps/ieee754/dbl-64/s_f32xsubf64.c: Likewise.
14146 * sysdeps/ieee754/dbl-64/s_fsub.c: Likewise.
14147 * sysdeps/ieee754/float128/s_f32subf128.c: Likewise.
14148 * sysdeps/ieee754/float128/s_f64subf128.c: Likewise.
14149 * sysdeps/ieee754/float128/s_f64xsubf128.c: Likewise.
14150 * sysdeps/ieee754/ldbl-128/s_dsubl.c: Likewise.
14151 * sysdeps/ieee754/ldbl-128/s_f64xsubf128.c: Likewise.
14152 * sysdeps/ieee754/ldbl-128/s_fsubl.c: Likewise.
14153 * sysdeps/ieee754/ldbl-128ibm/s_dsubl.c: Likewise.
14154 * sysdeps/ieee754/ldbl-128ibm/s_fsubl.c: Likewise.
14155 * sysdeps/ieee754/ldbl-96/s_dsubl.c: Likewise.
14156 * sysdeps/ieee754/ldbl-96/s_fsubl.c: Likewise.
14157 * sysdeps/ieee754/ldbl-opt/nldbl-dsub.c: Likewise.
14158 * sysdeps/ieee754/ldbl-opt/nldbl-fsub.c: Likewise.
14159 * sysdeps/ieee754/soft-fp/s_dsubl.c: Likewise.
14160 * sysdeps/ieee754/soft-fp/s_fsub.c: Likewise.
14161 * sysdeps/ieee754/soft-fp/s_fsubl.c: Likewise.
14162 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14163 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
14164 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
14165 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
14166 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
14167 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
14168 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
14169 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
14170 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
14171 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
14172 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
14173 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
14174 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
14175 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
14176 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
14177 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
14178 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
14179 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
14180 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
14181 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
14182 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
14183 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
14184 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
14185 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
14186 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
14187 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
14188 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
14189 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
14190
14191 2018-03-19 Joseph Myers <joseph@codesourcery.com>
14192
14193 [BZ #20079]
14194 * elf/elf.h (SHT_X86_64_UNWIND): New macro.
14195
14196 2018-03-19 Wilco Dijkstra <wdijkstr@arm.com>
14197
14198 * benchtests/bench-timing.h (attribute_hidden): Undefine.
14199
14200 2018-03-18 Richard Braun <rbraun@sceen.net>
14201
14202 * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Use a temporary
14203 thread reference.
14204
14205 2018-03-18 Agustina Arzille <avarzille@riseup.net>
14206
14207 * sysdeps/mach/libc-lock.h (__libc_cleanup_frame): Define structure.
14208 (__libc_cleanup_fct): Define function.
14209 (__libc_cleanup_region_start, __libc_cleanup_region_end,
14210 __libc_cleanup_end): Rewrite implementation using
14211 __attribute__ ((__cleanup__)).
14212 (__libc_cleanup_push, __libc_cleanup_pop): New macros.
14213 * hurd/Makefile (routines): Add hurdlock.
14214 * hurd/Versions (GLIBC_PRIVATE): Added new entry to export the above
14215 interface.
14216 (HURD_CTHREADS_0.3): Remove __libc_getspecific.
14217 * hurd/hurdpid.c: Include <lowlevellock.h>
14218 (_S_msg_proc_newids): Use lll_wait to synchronize.
14219 * hurd/hurdsig.c: (reauth_proc): Use __mutex_lock and __mutex_unlock.
14220 * hurd/setauth.c: Include <hurdlock.h>, use integer for synchronization.
14221 * mach/Makefile (lock-headers): Remove machine-lock.h.
14222 * mach/lock-intern.h: Include <lowlevellock.h> instead of
14223 <machine-lock.h>.
14224 (__spin_lock_t): New type.
14225 (__SPIN_LOCK_INITIALIZER): New macro.
14226 (__spin_lock, __spin_unlock, __spin_try_lock, __spin_lock_locked,
14227 __mutex_init, __mutex_lock_solid, __mutex_unlock_solid, __mutex_lock,
14228 __mutex_unlock, __mutex_trylock): Use lll to implement locks.
14229 * mach/mutex-init.c: Include <lowlevellock.h> instead of <cthreads.h>.
14230 (__mutex_init): Initialize with lll.
14231 * manual/errno.texi (EOWNERDEAD, ENOTRECOVERABLE): New errno values.
14232 * sysdeps/mach/Makefile: Add libmachuser as dependencies for libs
14233 needing lll.
14234 * sysdeps/mach/hurd/bits/errno.h: Regenerate.
14235 * sysdeps/mach/hurd/cthreads.c (__libc_getspecific): Remove function.
14236 * sysdeps/mach/hurd/bits/libc-lock.h: Remove file.
14237 * sysdeps/mach/hurd/setpgid.c: Include <lowlevellock.h>.
14238 (__setpgid): Use lll for synchronization.
14239 * sysdeps/mach/hurd/setsid.c: Likewise with __setsid.
14240 * sysdeps/mach/bits/libc-lock.h: Include <tls.h> and <lowlevellock.h>
14241 instead of <cthreads.h>.
14242 (_IO_lock_inexpensive): New macro
14243 (__libc_lock_recursive_t, __rtld_lock_recursive_t): New structures.
14244 (__libc_lock_self0): New declaration.
14245 (__libc_lock_owner_self): New macro.
14246 (__libc_key_t): Remove type.
14247 (_LIBC_LOCK_INITIALIZER): New macro.
14248 (__libc_lock_define_initialized, __libc_lock_init, __libc_lock_fini,
14249 __libc_lock_fini_recursive, __rtld_lock_fini_recursive,
14250 __libc_lock_lock, __libc_lock_trylock, __libc_lock_unlock,
14251 __libc_lock_define_initialized_recursive,
14252 __rtld_lock_define_initialized_recursive,
14253 __libc_lock_init_recursive, __libc_lock_trylock_recursive,
14254 __libc_lock_lock_recursive, __libc_lock_unlock_recursive,
14255 __rtld_lock_initialize, __rtld_lock_trylock_recursive,
14256 __rtld_lock_lock_recursive, __rtld_lock_unlock_recursive
14257 __libc_once_define, __libc_mutex_unlock): Reimplement with lll.
14258 (__libc_lock_define_recursive, __rtld_lock_define_recursive,
14259 _LIBC_LOCK_RECURSIVE_INITIALIZER, _RTLD_LOCK_RECURSIVE_INITIALIZER):
14260 New macros.
14261 Include <libc-lockP.h> to reimplement libc_key* with pthread_key*.
14262 * hurd/hurdlock.c: New file.
14263 * hurd/hurdlock.h: New file.
14264 * mach/lowlevellock.h: New file
14265
14266 2018-03-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
14267
14268 * sysdeps/mach/hurd/cthreads.c: Include <cthreads.h>.
14269 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ELOOP
14270 when opening a symlink with O_NOFOLLOW.
14271 * hurd/hurdlookup.c (__hurd_file_name_lookup): Do not append '/' to
14272 path when flags contains O_NOFOLLOW.
14273 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Return ENOTDIR
14274 if flags contains O_DIRECTORY and the result is a directory.
14275 * sysdeps/mach/hurd/i386/init-first.c (init): Also find ELF headers by
14276 oneself when the pointer given in D is nul (as set by ext2fs).
14277 * sysdeps/mach/hurd/mlockall.c: New file.
14278 * sysdeps/mach/hurd/munlockall.c: New file.
14279
14280 2018-03-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
14281
14282 * hurd/hurdsig.c: Include <pthread.h>.
14283 (_hurdsig_init): Call pthread_getattr_np and pthread_attr_getstack to
14284 get the signal thread stack layout.
14285 * hurd/Makefile (headers): Remove threadvar.h.
14286 (inline-headers): Remove threadvar.h.
14287 * hurd/Versions (GLIBC_2.0: Remove __hurd_sigthread_stack_base,
14288 __hurd_sigthread_stack_end, __hurd_sigthread_variables,
14289 __hurd_threadvar_max, __hurd_errno_location.
14290 (HURD_CTHREADS_0.3): Add pthread_getattr_np, pthread_attr_getstack.
14291 * hurd/hurd/signal.h: Do not include <hurd/threadvar.h>.
14292 (_hurd_self_sigstate): Use THREAD_SELF to get _hurd_sigstate.
14293 (_HURD_SIGNAL_H_EXTERN_INLINE): Use THREAD_SELF to get _hurd_sigstate,
14294 unless TLS is not initialized yet, in which case we do not need a
14295 critical section yet anyway.
14296 * hurd/hurd/threadvar.h: Include <tls.h>, do not include
14297 <machine-sp.h>.
14298 (__hurd_sigthread_variables, __hurd_threadvar_max): Remove variables
14299 declarations.
14300 (__hurd_threadvar_index): Remove enum.
14301 (_HURD_THREADVAR_H_EXTERN_INLINE): Remove macro.
14302 (__hurd_threadvar_location_from_sp,__hurd_threadvar_location): Remove
14303 inlines.
14304 (__hurd_reply_port0): New variable declaration.
14305 (__hurd_local_reply_port): New macro.
14306 * hurd/hurdsig.c (__hurd_sigthread_variables): Remove variable.
14307 (interrupted_reply_port_location): Add thread_t parameter. Use it
14308 with THREAD_TCB to access thread-local variables.
14309 (_hurdsig_abort_rpcs): Pass ss->thread to
14310 interrupted_reply_port_location.
14311 (_hurd_internal_post_signal): Likewise.
14312 (_hurdsig_init): Use presence of cthread_fork instead of
14313 __hurd_threadvar_stack_mask to start signal thread by hand.
14314 Remove signal thread threadvar initialization.
14315 * hurd/hurdstartup.c: Do not include <hurd/threadvar.h>
14316 * hurd/sigunwind.c: Include <hurd/threadvar.h>
14317 (_hurdsig_longjmp_from_handler): Use __hurd_local_reply_port instead
14318 of threadvar.
14319 * sysdeps/mach/hurd/Versions (libc.GLIBC_PRIVATE): Add
14320 __libc_lock_self0.
14321 (ld.GLIBC_2.0): Remove __hurd_sigthread_stack_base,
14322 __hurd_sigthread_stack_end, __hurd_sigthread_variables.
14323 (ld.GLIBC_PRIVATE): Add __libc_lock_self0.
14324 * sysdeps/mach/hurd/cthreads.c: Add __libc_lock_self0.
14325 * sysdeps/mach/hurd/dl-sysdep.c (errno, __hurd_sigthread_stack_base,
14326 __hurd_sigthread_stack_end, __hurd_sigthread_variables, threadvars,
14327 __hurd_threadvar_stack_offset, __hurd_threadvar_stack_mask): Do not
14328 define variables.
14329 * sysdeps/mach/hurd/errno-loc.c: Do not include <errno.h> and
14330 <hurd/threadvar.h>.
14331 [IS_IN(rtld)] (rtld_errno): New variable.
14332 [IS_IN(rtld)] (__errno_location): New weak function.
14333 [!IS_IN(rtld)]: Include "../../../csu/errno-loc.c".
14334 * sysdeps/mach/hurd/errno.c: Remove file.
14335 * sysdeps/mach/hurd/fork.c: Include <hurd/threadvar.h>
14336 (__fork): Remove THREADVAR_SPACE macro and its use.
14337 * sysdeps/mach/hurd/i386/init-first.c (__hurd_threadvar_max): Remove
14338 variable.
14339 (init): Do not initialize threadvar.
14340 * sysdeps/mach/hurd/i386/libc.abilist (__hurd_threadvar_max): Remove
14341 symbol.
14342 * sysdeps/mach/hurd/i386/sigreturn.c (__sigreturn): Use
14343 __hurd_local_reply_port instead of threadvar.
14344 * sysdeps/mach/hurd/i386/tls.h (tcbhead_t): Add reply_port and
14345 _hurd_sigstate fields.
14346 (HURD_DESC_TLS, __LIBC_NO_TLS, THREAD_TCB): New macro.
14347 * sysdeps/mach/hurd/i386/trampoline.c: Remove outdated comment.
14348 * sysdeps/mach/hurd/libc-lock.h: Do not include <hurd/threadvar.h>.
14349 (__libc_lock_owner_self): Use &__libc_lock_self0 and THREAD_SELF
14350 instead of threadvar.
14351 * sysdeps/mach/hurd/libc-tsd.h: Remove file.
14352 * sysdeps/mach/hurd/mig-reply.c (GETPORT, reply_port): Remove macros.
14353 (use_threadvar, global_reply_port): Remove variables.
14354 (__hurd_reply_port0): New variable.
14355 (__mig_get_reply_port): Use __hurd_local_reply_port and
14356 __hurd_reply_port0 instead of threadvar.
14357 (__mig_dealloc_reply_port): Likewise.
14358 (__mig_init): Do not initialize threadvar.
14359 * sysdeps/mach/hurd/profil.c: Fix comment.
14360 * hurd/Versions (HURD_CTHREADS_0.3): Rename weak refs cthread_fork,
14361 cthread_detach, pthread_getattr_np, pthread_attr_getstack,
14362 cthread_keycreate, cthread_getspecific, cthread_setspecific to
14363 __cthread_fork, __cthread_detach, __pthread_getattr_np,
14364 __pthread_attr_getstack, __cthread_keycreate, __cthread_getspecific,
14365 __cthread_setspecific.
14366 * hurd/hurdsig.c (_hurdsig_init): Use __cthread_fork,
14367 __cthread_detach, __pthread_getattr_np, __pthread_attr_getstack,
14368 __cthread_t instead of cthread_fork, cthread_detach,
14369 pthread_getattr_np, pthread_attr_getstack.
14370 * sysdeps/mach/hurd/cthreads.c (cthread_keycreate): Rename to
14371 __cthread_keycreate.
14372 (cthread_getspecific): Rename to __cthread_getspecific.
14373 (cthread_setspecific): Rename to __cthread_setspecific.
14374 (__libc_getspecific): Use __cthread_getspecific instead of
14375 cthread_getspecific.
14376 * sysdeps/mach/hurd/libc-lock.h (__libc_key_create): Use
14377 __cthread_keycreate instead of cthread_keycreate.
14378 (__libc_setspecific): Use __cthread_setspecific instead of
14379 cthread_setspecific.
14380 * sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
14381 Likewise.
14382 * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
14383 <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
14384 testing whether it is defined.
14385
14386 2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
14387
14388 * sysdeps/generic/thread_state.h (MACHINE_NEW_THREAD_STATE_FLAVOR):
14389 Define macro.
14390 * sysdeps/mach/thread_state.h (MACHINE_THREAD_STATE_FIX_NEW): New macro.
14391 * sysdeps/mach/i386/thread_state.h
14392 (MACHINE_NEW_THREAD_STATE_FLAVOR): New macro, defined to
14393 i386_THREAD_STATE.
14394 (MACHINE_THREAD_STATE_FLAVOR): Define to i386_REGS_SEGS_STATE instead of
14395 i386_THREAD_STATE.
14396 (MACHINE_THREAD_STATE_FIX_NEW): New macro, reads segments.
14397
14398 * sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler): Use
14399 i386_REGS_SEGS_STATE instead of i386_THREAD_STATE.
14400
14401 * sysdeps/mach/hurd/i386/tls.h (TCB_ALIGNMENT, HURD_SEL_LDT): New
14402 macros.
14403 (_hurd_tls_fork): Add original thread parameter, Duplicate existing LDT
14404 descriptor instead of creating a new one.
14405 (_hurd_tls_new): New function, creates a new descriptor and updates tcb.
14406
14407 * mach/setup-thread.c: Include <ldsodefs.h>.
14408 (__mach_setup_thread): Call _dl_allocate_tls, pass
14409 MACHINE_NEW_THREAD_STATE_FLAVOR to __thread_set_state instead of
14410 MACHINE_THREAD_STATE_FLAVOR, before getting
14411 MACHINE_THREAD_STATE_FLAVOR, calling _hurd_tls_new, and setting
14412 MACHINE_THREAD_STATE_FLAVOR with the result.
14413 * hurd/hurdfault.c (_hurdsig_fault_init): Call
14414 MACHINE_THREAD_STATE_FIX_NEW.
14415 * sysdeps/mach/hurd/fork.c (__fork): Call _hurd_tls_fork for sigthread
14416 too. Add original thread parameter.
14417
14418 2018-03-16 Joseph Myers <joseph@codesourcery.com>
14419
14420 * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC] (__finite):
14421 Remove inline function.
14422
14423 * sysdeps/i386/fpu/libm-test-ulps: Update.
14424 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
14425
14426 2018-03-16 Wilco Dijkstra <wdijkstr@arm.com>
14427
14428 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Revert previous
14429 commit.
14430
14431 2018-03-15 Joseph Myers <joseph@codesourcery.com>
14432
14433 * sysdeps/x86/fpu/bits/mathinline.h [__FAST_MATH__]
14434 (__sincos_code): Remove define and undefine.
14435 [__FAST_MATH__] (__sincos): Remove inline function.
14436 [__FAST_MATH__] (__sincosf): Remove inline function.
14437 [__FAST_MATH__] (__sincosl): Remove inline function.
14438 (__atan2l): Remove inline functions.
14439 [!__GNUC_PREREQ (3, 4)] (__atan2_code): Remove macro.
14440 [!__GNUC_PREREQ (3, 4) && __FAST_MATH__] (atan2): Remove inline
14441 function.
14442 (floor): Remove inline function.
14443 (ceil): Likewise.
14444 [__FAST_MATH__] (__ldexp_code): Remove macro.
14445 [__FAST_MATH__] (ldexp): Remove inline function.
14446 [__FAST_MATH__ && __USE_ISOC99] (ldexpf): Likewise.
14447 [__FAST_MATH__ && __USE_ISOC99] (ldexpl): Likewise.
14448 [__FAST_MATH__ && __USE_ISOC99] (rint): Likewise.
14449 [__USE_ISOC99] (__lrint_code): Remove macro.
14450 [__USE_ISOC99] (__llrint_code): Likewise.
14451 [__USE_ISOC99] (lrintf): Remove inline function.
14452 [__USE_ISOC99] (lrint): Likewise.
14453 [__USE_ISOC99] (lrintl): Likewise.
14454 [__USE_ISOC99] (llrint): Likewise.
14455 [__USE_ISOC99] (llrintf): Likewise.
14456 [__USE_ISOC99] (llrintl): Likewise.
14457
14458 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14459
14460 * sysdeps/aarch64/fpu/math_private.h (__ieee754_sqrt): Remove.
14461 (__ieee754_sqrtf): Remove.
14462 * sysdeps/alpha/fpu/math_private.h (__ieee754_sqrt): Remove.
14463 (__ieee754_sqrtf): Remove.
14464 * sysdeps/generic/math-type-macros.h (M_SQRT): Use sqrt.
14465 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14466 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Remove.
14467 (__ieee754_sqrtf): Remove.
14468 * sysdeps/s390/fpu/bits/mathinline.h: Remove file.
14469 * sysdeps/sparc/fpu/bits/mathinline.h (sqrt) Remove.
14470 (sqrtf): Remove.
14471 (sqrtl): Remove.
14472 (__ieee754_sqrt): Remove.
14473 (__ieee754_sqrtf): Remove.
14474 (__ieee754_sqrtl): Remove.
14475 * sysdeps/m68k/m680x0/fpu/mathimpl.h (__ieee754_sqrt): Remove.
14476 * sysdeps/x86/fpu/math_private.h (__ieee754_sqrt): Remove.
14477 * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Remove.
14478 (__ieee754_sqrtf): Remove.
14479 (__ieee754_sqrtl): Remove.
14480
14481 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14482
14483 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Use sqrt.
14484 * sysdeps/ieee754/dbl-64/e_gamma_r.c (gamma_positive): Likewise.
14485 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
14486 * sysdeps/ieee754/dbl-64/e_j0.c (__ieee754_j0): Likewise.
14487 * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1): Likewise.
14488 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
14489 * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
14490 * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
14491 Likewise.
14492 * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Likewise.
14493 * sysdeps/ieee754/flt-32/e_acoshf.c (__ieee754_acoshf): Likewise.
14494 * sysdeps/ieee754/flt-32/e_asinf.c (__ieee754_asinf): Likewise.
14495 * sysdeps/ieee754/flt-32/e_gammaf_r.c (gammaf_positive): Likewise.
14496 * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Likewise.
14497 * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_j0f): Likewise.
14498 * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_j1f): Likewise.
14499 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
14500 * sysdeps/ieee754/flt-32/s_asinhf.c (__asinhf): Likewise.
14501 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14502 * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Likewise.
14503 * sysdeps/ieee754/ldbl-128/e_asinl.c (__ieee754_asinl): Likewise.
14504 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (gammal_positive): Likewise.
14505 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl): Likewise.
14506 * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Likewise.
14507 * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
14508 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
14509 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
14510 * sysdeps/ieee754/ldbl-128/s_asinhl.c (__ieee754_asinhl): Likewise.
14511 * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Likewise.
14512 * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
14513 * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
14514 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (gammal_positive): Likewise.
14515 * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Likewise.
14516 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (__ieee754_j0l): Likewise.
14517 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (__ieee754_j1l): Likewise
14518 * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
14519 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
14520 * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__ieee754_asinhl): Likewise.
14521 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Use sqrtl.
14522 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
14523 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (gammal_positive): Likewise.
14524 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
14525 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
14526 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
14527 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
14528 * sysdeps/ieee754/ldbl-96/s_asinhl.c (__ieee754_asinhl): Likewise.
14529 * sysdeps/m68k/m680x0/fpu/e_pow.c (__ieee754_pow): Likewise.
14530 * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Likewise.
14531 * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Likewise.
14532
14533 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14534
14535 * include/math.h (sqrt): Declare with asm redirect.
14536 (sqrtf): Likewise.
14537 (sqrtl): Likewise.
14538 (sqrtf128): Likewise.
14539 * Makeconfig: Add -fno-math-errno for libc/libm, but build testsuite,
14540 nonlib and libnldbl with -fmath-errno.
14541 * math/w_sqrt_compat.c: Define NO_MATH_REDIRECT.
14542 * math/w_sqrt_template.c: Likewise.
14543 * math/w_sqrtf_compat.c: Likewise.
14544 * math/w_sqrtl_compat.c: Likewise.
14545 * sysdeps/i386/fpu/w_sqrt.c: Likewise.
14546 * sysdeps/i386/fpu/w_sqrt_compat.c: Likewise.
14547 * sysdeps/generic/math-type-macros-float128.h: Remove math.h and
14548 complex.h.
14549
14550 2018-03-15 Wilco Dijkstra <wdijkstr@arm.com>
14551
14552 * benchtests/Makefile: Define _ISOMAC.
14553 * benchtests/bench-strcoll.c: Add missing sys/stat.h include.
14554 * benchtests/bench-string.h: Define inhibit_loop_to_libcall macro.
14555 * benchtests/bench-strstr.c: Define empty libc_hidden_builtin_def.
14556 * benchtests/bench-strtok.c (oldstrtok): Use rawmemchr.
14557 * benchtests/bench-timing.h: Define attribute_hidden.
14558
14559 2018-03-15 Siddhesh Poyarekar <siddhesh@sourceware.org>
14560
14561 * sysdeps/aarch64/strncmp.S (strncmp): Use lsr instead of
14562 mov + lsr.
14563
14564 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14565
14566 [BZ #22963]
14567 * localedata/locales/cs_CZ (mon): Rename to...
14568 (alt_mon): This.
14569 (mon): Import from CLDR (genitive case).
14570
14571 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14572
14573 [BZ #22937]
14574 * localedata/locales/el_CY (abmon): Rename to...
14575 (ab_alt_mon): This.
14576 (abmon): Import from CLDR (abbreviated genitive case).
14577 * localedata/locales/el_GR (abmon): Rename to...
14578 (ab_alt_mon): This.
14579 (abmon): Import from CLDR (abbreviated genitive case).
14580
14581 2018-03-15 Rafal Luzynski <digitalfreak@lingonborough.com>
14582
14583 [BZ #22932]
14584 * localedata/locales/lt_LT (abmon): Synchronize with CLDR.
14585
14586 2018-03-15 Robert Buj <robert.buj@gmail.com>
14587
14588 [BZ #22848]
14589 * localedata/locales/ca_ES (abmon): Rename to...
14590 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
14591 (mon): Rename to...
14592 (alt_mon): This.
14593 (abmon): Import from CLDR (genitive case, month names preceded by
14594 "de" or "d’").
14595 (mon): Likewise.
14596 (abday): Synchronize with CLDR.
14597 (d_t_fmt): Likewise.
14598 (d_fmt): Likewise.
14599 (am_pm): Likewise.
14600
14601 (LC_TIME): Improve indentation.
14602 (LC_TELEPHONE): Likewise.
14603 (LC_NAME): Likewise.
14604 (LC_ADDRESS): Likewise.
14605
14606 2018-03-14 Joseph Myers <joseph@codesourcery.com>
14607
14608 * sysdeps/x86/fpu/bits/mathinline.h [!__GNUC_PREREQ (3, 4)]
14609 (lrintf): Remove definitions used only with old GCC.
14610 [!__GNUC_PREREQ (3, 4)] (lrint): Likewise.
14611 [!__GNUC_PREREQ (3, 4)] (llrintf): Likewise.
14612 [!__GNUC_PREREQ (3, 4)] (llrint): Likewise.
14613 [!__GNUC_PREREQ (3, 4)] (fmaxf): Likewise.
14614 [!__GNUC_PREREQ (3, 4)] (fmax): Likewise.
14615 [!__GNUC_PREREQ (3, 4)] (fminf): Likewise.
14616 [!__GNUC_PREREQ (3, 4)] (fmin): Likewise.
14617 [!__GNUC_PREREQ (3, 4)] (rint): Likewise.
14618 [!__GNUC_PREREQ (3, 4)] (rintf): Likewise.
14619 [!__GNUC_PREREQ (3, 4)] (nearbyint): Likewise.
14620 [!__GNUC_PREREQ (3, 4)] (nearbyintf): Likewise.
14621 [!__GNUC_PREREQ (3, 4)] (ceil): Likewise.
14622 [!__GNUC_PREREQ (3, 4)] (ceilf): Likewise.
14623 [!__GNUC_PREREQ (3, 4)] (floor): Likewise.
14624 [!__GNUC_PREREQ (3, 4)] (floorf): Likewise.
14625 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (tan): Likewise.
14626 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (fmod): Likewise.
14627 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (sin): Likewise.
14628 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (cos): Likewise.
14629 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log10): Likewise.
14630 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (asin): Likewise.
14631 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (acos): Likewise.
14632 [__FAST_MATH__ && !__GNUC_PREREQ (3, 4)] (atan): Likewise.
14633 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log1p): Likewise.
14634 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (logb): Likewise.
14635 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (log2): Likewise.
14636 [__FAST_MATH__ && !__GNUC_PREREQ (3, 5)] (drem): Likewise.
14637 [__FAST_MATH__] (__M_SQRT2): Remove macro.
14638
14639 2018-03-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
14640
14641 * sysdeps/aarch64/strncmp.S (strncmp): Use a separate shift
14642 instruction to unbreak builds with binutils 2.26 and older.
14643
14644 2018-03-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
14645
14646 * sysdeps/aarch64/strncmp.S (count): New macro.
14647 (strncmp): Store misaligned length in SRC1 in COUNT.
14648 (mutual_align): Adjust.
14649 (misaligned8): Load dword at a time when it is safe.
14650
14651 2018-03-12 Zack Weinberg <zackw@panix.com>
14652
14653 [BZ #1190]
14654 [BZ #19476]
14655 * libio/fileops.c (_IO_new_file_underflow): Return EOF immediately
14656 if the _IO_EOF_SEEN bit is already set; update commentary.
14657 * libio/oldfileops.c (_IO_old_file_underflow): Likewise.
14658 * libio/wfileops.c (_IO_wfile_underflow): Likewise.
14659
14660 * support/support_openpty.c, support/tty.h: New files.
14661 * support/Makefile (libsupport-routines): Add support_openpty.
14662
14663 * libio/tst-fgetc-after-eof.c, wcsmbs/test-fgetwc-after-eof.c:
14664 New test cases.
14665 * libio/Makefile (tests): Add tst-fgetc-after-eof.
14666 * wcsmbs/Makefile (tests): Add tst-fgetwc-after-eof.
14667
14668 2018-03-12 Dmitry V. Levin <ldv@altlinux.org>
14669
14670 * po/pt_BR.po: Update translations.
14671
14672 2018-03-12 David Michael <fedora.dm0@gmail.com>
14673
14674 * sysdeps/mach/hurd/reboot.c: Include <hurd/paths.h>
14675 (reboot): Lookup _SERVERS_STARTUP instead of calling proc_getmsgport to
14676 get a port to the startup server.
14677
14678 2018-03-11 Zack Weinberg <zackw@panix.com>
14679
14680 * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Include math.h
14681 before nldbl-compat.h.
14682
14683 2018-03-10 Zack Weinberg <zackw@panix.com>
14684
14685 * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Don't include
14686 math.h or math_private.h.
14687
14688 * sysdeps/alpha/fpu/s_isnan.c
14689 * sysdeps/ieee754/ldbl-128ibm/s_ceill.c
14690 * sysdeps/ieee754/ldbl-128ibm/s_floorl.c
14691 * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c
14692 * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c
14693 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c
14694 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c
14695 * sysdeps/ieee754/ldbl-128ibm/s_rintl.c
14696 * sysdeps/ieee754/ldbl-128ibm/s_roundl.c
14697 * sysdeps/ieee754/ldbl-128ibm/s_truncl.c
14698 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c
14699 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c:
14700 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf.c
14701 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c
14702 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c:
14703 Include math_private.h.
14704
14705 * sysdeps/ieee754/ldbl-64-128/s_finitel.c
14706 * sysdeps/ieee754/ldbl-64-128/s_fpclassifyl.c
14707 * sysdeps/ieee754/ldbl-64-128/s_isinfl.c
14708 * sysdeps/ieee754/ldbl-64-128/s_isnanl.c
14709 * sysdeps/ieee754/ldbl-64-128/s_signbitl.c
14710 * sysdeps/powerpc/power7/fpu/s_logb.c:
14711 Include math.h and math_private.h.
14712
14713 * sysdeps/unix/sysv/linux/alpha/clone.S (__clone): Wrap manual
14714 uses of $at in .set noat / .set at.
14715
14716 2018-03-10 H.J. Lu <hongjiu.lu@intel.com>
14717
14718 * include/setjmp.h (__libc_longjmp): Remove libc_hidden_proto.
14719 * setjmp/longjmp.c (__libc_longjmp): Remove libc_hidden_def.
14720 * sysdeps/s390/longjmp.c (__libc_longjmp): Likewise.
14721 * sysdeps/unix/sysv/linux/sparc/sparc64/longjmp.S (__libc_longjmp):
14722 Likewise.
14723
14724 2018-03-09 Florian Weimer <fweimer@redhat.com>
14725
14726 * malloc/malloc.c (prev_size, set_prev_size, prev_chunk): Fix typo
14727 in comment.
14728
14729 2018-03-09 Aurelien Jarno <aurelien@aurel32.net>
14730
14731 [BZ #22919]
14732 * sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S (__startcontext):
14733 Add nop before __startcontext, add explaining comments.
14734
14735 2018-03-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14736
14737 [BZ #22926]
14738 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Define
14739 empty for __SPE__.
14740 * sysdeps/powerpc/sysdep.h (ABORT_TRANSACTION): Likewise.
14741 * sysdeps/unix/sysv/linux/powerpc/elision-lock.c (__lll_lock_elision):
14742 Do not build hardware transactional code for __SPE__.
14743 * sysdeps/unix/sysv/linux/powerpc/elision-trylock.c
14744 (__lll_trylock_elision): Likewise.
14745 * sysdeps/unix/sysv/linux/powerpc/elision-unlock.c
14746 (__lll_unlock_elision): Likewise.
14747
14748 * sysdeps/nptl/fork.c (ARCH_FORK): Replace by arch_fork.
14749 * sysdeps/unix/sysv/linux/alpha/arch-fork.h: Remove file.
14750 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
14751 * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: Likewise.
14752 * sysdeps/unix/sysv/linux/arm/arch-fork.h: Likewise.
14753 * sysdeps/unix/sysv/linux/hppa/arch-fork.h: Likewise.
14754 * sysdeps/unix/sysv/linux/i386/arch-fork.h: Likewise.
14755 * sysdeps/unix/sysv/linux/ia64/arch-fork.h: Likewise.
14756 * sysdeps/unix/sysv/linux/m68k/arch-fork.h: Likewise.
14757 * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: Likewise.
14758 * sysdeps/unix/sysv/linux/mips/arch-fork.h: Likewise.
14759 * sysdeps/unix/sysv/linux/nios2/arch-fork.h: Likewise.
14760 * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: Likewise.
14761 * sysdeps/unix/sysv/linux/s390/arch-fork.h: Likewise.
14762 * sysdeps/unix/sysv/linux/sh/arch-fork.h: Likewise.
14763 * sysdeps/unix/sysv/linux/sparc/arch-fork.h: Likewise.
14764 * sysdeps/unix/sysv/linux/tile/arch-fork.h: Likewise.
14765 * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: Likewise.
14766 * sysdeps/unix/sysv/linux/arch-fork.h (arch_fork): New function.
14767 * sysdeps/unix/sysv/linux/aarch64/kernel-features.h: New file.
14768 * sysdeps/unix/sysv/linux/riscv/kernel-features.h: Likewise.
14769 * sysdeps/unix/sysv/linux/arm/kernel-features.h
14770 (__ASSUME_CLONE_BACKWARDS): Define.
14771 * sysdeps/unix/sysv/linux/createthread.c (ARCH_CLONE): Define to
14772 __clone2 if __NR_clone2 is defined.
14773 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
14774 (__ASSUME_CLONE_BACKWARDS): Likewise.
14775 * sysdeps/unix/sysv/linux/i386/kernel-features.h
14776 (__ASSUME_CLONE_BACKWARDS): Likewise.
14777 * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14778 (__ASSUME_CLONE2): Likewise.
14779 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14780 (__ASSUME_CLONE_BACKWARDS3): Likewise.
14781 * sysdeps/unix/sysv/linux/kernel-features.h: Document possible clone
14782 variants and the define architecture can use.
14783 (__ASSUME_CLONE_DEFAULT): Define as default.
14784 * sysdeps/unix/sysv/linux/mips/kernel-features.h
14785 (__ASSUME_CLONE_BACKWARDS): Likewise.
14786 * sysdeps/unix/sysv/linux/powerpc/kernel-features.h
14787 (__ASSUME_CLONE_BACKWARDS): Likewise.
14788 * sysdeps/unix/sysv/linux/s390/kernel-features.h
14789 (__ASSUME_CLONE_BACKWARDS2): Likewise.
14790
14791 2018-03-06 Siddhesh Poyarekar <siddhesh@sourceware.org>
14792
14793 * sysdeps/aarch64/memcmp.S (more16): Fix loop16 branch target.
14794
14795 * sysdeps/aarch64/memcmp.S: Widen comparison to 16 bytes at a
14796 time.
14797
14798 * benchtests/bench-strncmp.c (test_main): Remove 0 length tests.
14799 (do_test_limit): Likewise.
14800
14801 * benchtests/bench-strncmp.c (do_test_limit): Reallocate buffers
14802 for every implementation.
14803 (do_test): Likewise.
14804
14805 * benchtests/bench-strncmp.c: Convert output to json.
14806
14807 2018-03-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
14808
14809 * io/futimens.c: Add missing start-of-file descriptive comment.
14810 * io/utime.c: Likewise.
14811 * misc/futimesat.c: Likewise.
14812 * misc/utimes.c: Likewise.
14813 * sysdeps/mach/hurd/futimesat.c: Likewise.
14814 * sysdeps/mach/hurd/utimes.c: Likewise.
14815 * sysdeps/posix/utime.c: Likewise.
14816 * sysdeps/posix/utimes.c: Likewise.
14817 * sysdeps/unix/sysv/linux/futimesat.c: Likewise.
14818 * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
14819 * sysdeps/unix/sysv/linux/generic/utimes.c: Likewise.
14820 * sysdeps/unix/sysv/linux/utimes.c: Likewise.
14821
14822 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14823
14824 * sysdeps/mach/hurd/utime-helper.c (hurd_futimens): Rename function to
14825 hurd_futimes.
14826 * sysdeps/mach/hurd/utimes.c (__utimes): Update call accordingly.
14827 * sysdeps/mach/hurd/lutimes.c (__lutimes): Likewise.
14828 * sysdeps/mach/hurd/futimens.c: Include "utime-helper.c".
14829 (__futimens): Move implementation to...
14830 * sysdeps/mach/hurd/utime-helper.c (utime_ts_from_tspec,
14831 utime_tvalue_from_tspec): ... new helper functions.
14832 (hurd_futimens): New function.
14833 * sysdeps/mach/hurd/futimesat.c: New file.
14834 * sysdeps/mach/hurd/utimensat.c: New file.
14835
14836 2018-03-05 Flávio Cruz <flaviocruz@gmail.com>
14837
14838 * sysdeps/mach/hurd/bits/stat.h [__USE_ATFILE] (UTIME_NOW,
14839 UTIME_OMIT): New macros.
14840 * sysdeps/mach/hurd/futimens.c (__futimens): Try to use __file_utimens
14841 before reverting to converting time spec to time value and calling
14842 __file_utimes.
14843 * sysdeps/mach/hurd/utime-helper.c: New file.
14844 * sysdeps/mach/hurd/futimes.c: Include "utime-helper.c".
14845 (__futimes): Try to use utime_ts_from_tval and __file_utimens before
14846 reverting to utime_tvalue_from_tval and __file_utimes.
14847 * sysdeps/mach/hurd/lutimes.c: Include "utime-helper.c".
14848 (__lutimes): Just call hurd_futimens after lookup.
14849 * sysdeps/mach/hurd/utimes.c: Likewise.
14850
14851 2018-03-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
14852
14853 * bits/sigaction.h: Add include guard.
14854 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h: Likewise.
14855 * sysdeps/unix/sysv/linux/bits/sigaction.h: Likewise.
14856 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h: Likewise.
14857 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h: Likewise.
14858 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h: Likewise.
14859 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h: Likewise.
14860 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h: Likewise.
14861 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h: Likewise.
14862 * hurd/hurd/signal.h: Include <bits/sigaction.h>.
14863
14864 2018-03-05 Joseph Myers <joseph@codesourcery.com>
14865
14866 * iconv/loop.c (UNICODE_TAG_HANDLER): Disable
14867 -Wmaybe-uninitialized for -Os.
14868 * sysdeps/s390/multiarch/8bit-generic.c (BODY): Add comment about
14869 this disabling.
14870
14871 2018-03-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
14872
14873 * bits/dirent.h (__INO_T_MATCHES_INO64_T): Define regardless whether
14874 __INO_T_MATCHES_INO64_T is defined.
14875 * sysdeps/unix/sysv/linux/bits/dirent.h: Likewise.
14876 * dirent/alphasort.c: Check _DIRENT_MATCHES_DIRENT64 value instead
14877 of definition.
14878 * dirent/alphasort64.c: Likewise.
14879 * dirent/scandir.c: Likewise.
14880 * dirent/scandir64-tail.c: Likewise.
14881 * dirent/scandir64.c: Likewise.
14882 * dirent/scandirat.c: Likewise.
14883 * dirent/scandirat64.c: Likewise.
14884 * dirent/versionsort.c: Likewise.
14885 * dirent/versionsort64.c: Likewise.
14886 * include/dirent.h: Likewise.
14887
14888 * nptl/tst-cancel4-common.h (set_socket_buffer): New function.
14889 * nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
14890 for socketpair endpoint.
14891 * nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
14892 WRITE_BUFFER_SIZE as buffer size for sending socket.
14893 (tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
14894 issue on system where send is implemented with sendto syscall.
14895 * sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
14896 (CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
14897 [$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
14898 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
14899
14900 [BZ #21269]
14901 * sysdeps/unix/sysv/linux/i386/Makefile (tests): Add tst-bz21269.
14902 * sysdeps/unix/sysv/linux/i386/sigaction.c (SET_SA_RESTORER): Clear
14903 sa_restorer for vDSO case.
14904 * sysdeps/unix/sysv/linux/i386/tst-bz21269.c: New file.
14905
14906 2018-03-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14907
14908 * scripts/check-installed-headers.sh: Ignore Hurd and Mach headers.
14909 * hurd/hurd/id.h: Include <hurd/hurd_types.h>
14910 * hurd/hurd/ioctl.h: Include <mach/port.h>
14911 * hurd/hurd/lookup.h: Include <hurd/hurd_types.h>
14912 * mach/Makefile ($(objpfx)mach-shortcuts.h): Make it include
14913 <mach/mach_types.h> and <mach/message.h>.
14914 (headers): Move mach/param.h to bits/mach/param.h.
14915 * sysdeps/mach/i386/mach/param.h: Move file to ...
14916 * sysdeps/mach/i386/bits/mach/param.h: ... here. Update path in #error.
14917 * sysdeps/mach/hurd/bits/param.h: Include <bits/mach/param.h> instead
14918 of <mach/param.h>.
14919 * hurd/hurd/port.h: Do not include <hurd/signal.h>.
14920 * hurd/hurd/userlink.h [!defined __USE_EXTERN_INLINES ||
14921 !defined _LIBC || !IS_IN (libc)]: Do not include <hurd/signal.h>.
14922 * hurd/hurd/fd.h (_hurd_fd_error): Fix struct initializer to be
14923 trivial, for C++ conformity.
14924 * sysdeps/mach/hurd/dl-sysdep.c: Include <mach/machine/vm_param.h>.
14925 * mach/Machrules ($(patsubst %,$(objpfx)%.h,$(user-interfaces)):
14926 Process mig output through $(migheadersed).
14927 * hurd/Makefile (migheadersed): Define variable.
14928 * mach/mach/mig_support.h [defined __USE_GNU]: Do not #error out.
14929 * scripts/check-installed-headers.sh: Do not ignore Hurd and Mach
14930 headers.
14931 * hurd/hurd.h: Include <bits/types/sigset_t.h>
14932 * hurd/hurd/fd.h: Include <sys/select.h> and <bits/types/sigset_t.h>
14933 (_hurd_fd_read, _hurd_fd_write): Use __loff_t instead of loff_t.
14934 * hurd/hurd/signal.h: Include <bits/types/stack_t.h> and
14935 <bits/types/sigset_t.h>.
14936 [!defined __USE_GNU]: Do not #error out.
14937 (struct hurd_sigstate): Use _NSIG instead of NSIG.
14938 * hurd/hurd/sigpreempt.h (__need_size_t): Define.
14939 Include <stddef.h> and <bits/types/sigset_t.h>
14940 (struct hurd_signal_preemptor, hurd_catch_signal): Use __sighandler_t
14941 instead of sighandler_t.
14942 * stdlib/errno.h (error_t): Move definition to...
14943 * bits/types/error_t.h: ... new header.
14944 * stdlib/Makefile (headers): Add bits/types/error_t.h.
14945 * sysdeps/mach/hurd/bits/errno.h (error_t): Move definition to...
14946 * sysdeps/mach/hurd/bits/types/error_t.h: ... new header.
14947 * sysdeps/mach/hurd/errnos.awk (error_t): Likewise.
14948 * hurd/hurd.h: Include <bits/types/error_t.h>
14949 * hurd/hurd/fd.h: Include <bits/types/error_t.h>
14950 * hurd/hurd/id.h: Include <errno.h> and <bits/types/error_t.h>
14951 * hurd/hurd/lookup.h: Include <errno.h> and <bits/types/error_t.h>
14952 * hurd/hurd/resource.h: Include <bits/types/error_t.h>
14953 * hurd/hurd/signal.h: Include <bits/types/error_t.h>
14954 * hurd/hurd/sigpreempt.h: Include <bits/types/error_t.h>
14955 * sysdeps/mach/hurd/futimens.c: New file.
14956
14957 2018-03-03 Andreas Schwab <schwab@linux-m68k.org>
14958
14959 [BZ #22918]
14960 * nss/nsswitch.h (DEFINE_DATABASE): Don't define __nss_*_database.
14961 * nss/nsswitch.c (DEFINE_DATABASE): Define __nss_*_database here.
14962 * nscd/gai.c (__nss_hosts_database): Readd definition.
14963 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
14964 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
14965 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
14966
14967 2018-03-02 Joseph Myers <joseph@codesourcery.com>
14968
14969 * sysdeps/powerpc/ifunc-sel.h (ifunc_sel): Make always_inline.
14970 (ifunc_one): Likewise.
14971
14972 2018-03-01 DJ Delorie <dj@delorie.com>
14973
14974 [BZ #22342]
14975 * nscd/netgroupcache.c (addinnetgrX): Include trailing NUL in
14976 key value.
14977
14978 2018-03-01 Maciej W. Rozycki <macro@mips.com>
14979
14980 * nptl_db/td_ta_thr_iter.c (iterate_thread_list): Remove
14981 `match_pid' parameter.
14982 (td_ta_thr_iter): Update accordingly.
14983
14984 2018-03-01 Florian Weimer <fweimer@redhat.com>
14985
14986 * nptl/Makefile (install-lib-ldscripts): Remove.
14987 (install): Remove rule.
14988 ($(inst_libdir)/libpthread.so): Likewise.
14989
14990 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14991
14992 [BZ #22896]
14993 * localedata/locales/an_ES: update month and day names,
14994 improve d_fmt, improve postal_fmt, add country_post,
14995 add country_isbn
14996
14997 2018-03-01 Mike FABIAN <mfabian@redhat.com>
14998
14999 * localedata/locales/bg_BG (LC_COLLATE): The comment mentioned
15000 Ukrainian instead of Bulgarian.
15001
15002 2018-03-01 Florian Weimer <fweimer@redhat.com>
15003
15004 * nptl/Makefile (libpthread.so): Drop libpthread_nonshared.a
15005 reference.
15006
15007 2018-03-01 Florian Weimer <fweimer@redhat.com>
15008
15009 Move pthread_atfork to libc. Remove libpthread_nonshared.a.
15010 * nptl/Makefile (routines): Add pthread_atfork.
15011 (static-only-routines): Set to pthread_atfork.
15012 (libpthread-routines): Remove pthread_atfork.
15013 (libpthread-static-only-routines): Remove.
15014 (install): Update comment.
15015 (libpthread.so): Do not install libpthread_nonshared.a.
15016 (tests): Do not link with libpthread_nonshared.a.
15017 (generated): Remove libpthread_nonshared.a.
15018 * nptl/pthread_atfork.c (pthread_atfork): Turn into weak alias.
15019 * sysdeps/nptl/Makeconfig (shared-thread-library): Do not link
15020 with libpthread_nonshared.a.
15021
15022 2018-02-28 Joseph Myers <joseph@codesourcery.com>
15023
15024 [BZ #22902]
15025 * sysdeps/i386/fpu/fenv_private.h [!__x86_64__]
15026 (libc_feholdexcept_setroundf128): New macro.
15027 [!__x86_64__] (libc_feupdateenv_testf128): Likewise.
15028
15029 [BZ #15105]
15030 * sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
15031 libc_hidden_def.
15032 * sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
15033 * include/inttypes.h: New file.
15034
15035 2018-02-27 Joseph Myers <joseph@codesourcery.com>
15036
15037 * locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
15038 -Os in two more places.
15039
15040 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15041
15042 See this bug https://sourceware.org/bugzilla/show_bug.cgi?id=22898
15043 * localedata/cmn_TW.UTF-8.in: Remove the lines which cannot
15044 be sorted correctly at the moment because of a bug.
15045
15046 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15047
15048 [BZ #22550] - es_ES locale (and other es_* locales): collation should
15049 treat ñ as a primary different character, sync the collation
15050 for Spanish with CLDR.
15051 [BZ #21547] - Tibetan script collation broken (Dzongkha and Tibetan).
15052 * localedata/Makefile: Add new test files.
15053 * localedata/lv_LV.UTF-8.in: Adapt test file to new collation order.
15054 * localedata/sv_SE.ISO-8859-1.in: Adapt test file to new
15055 collation order.
15056 * localedata/uk_UA.UTF-8.in: Adapt test file to new collation order.
15057 * localedata/am_ET.UTF-8.in: New test file.
15058 * localedata/az_AZ.UTF-8.in: Likewise.
15059 * localedata/be_BY.UTF-8.in: Likewise.
15060 * localedata/ber_DZ.UTF-8.in: Likewise.
15061 * localedata/ber_MA.UTF-8.in: Likewise.
15062 * localedata/bg_BG.UTF-8.in: Likewise.
15063 * localedata/br_FR.UTF-8.in: Likewise.
15064 * localedata/cmn_TW.UTF-8.in: Likewise.
15065 * localedata/crh_UA.UTF-8.in: Likewise.
15066 * localedata/csb_PL.UTF-8.in: Likewise.
15067 * localedata/cv_RU.UTF-8.in: Likewise.
15068 * localedata/cy_GB.UTF-8.in: Likewise.
15069 * localedata/dz_BT.UTF-8.in: Likewise.
15070 * localedata/eo.UTF-8.in: Likewise.
15071 * localedata/es_ES.UTF-8.in: Likewise.
15072 * localedata/fa_IR.UTF-8.in: Likewise.
15073 * localedata/fi_FI.UTF-8.in: Likewise.
15074 * localedata/fil_PH.UTF-8.in: Likewise.
15075 * localedata/fur_IT.UTF-8.in: Likewise.
15076 * localedata/gez_ER.UTF-8@abegede.in: Likewise.
15077 * localedata/ha_NG.UTF-8.in: Likewise.
15078 * localedata/ig_NG.UTF-8.in: Likewise.
15079 * localedata/ik_CA.UTF-8.in: Likewise.
15080 * localedata/kk_KZ.UTF-8.in: Likewise.
15081 * localedata/ku_TR.UTF-8.in: Likewise.
15082 * localedata/ky_KG.UTF-8.in: Likewise.
15083 * localedata/ln_CD.UTF-8.in: Likewise.
15084 * localedata/mi_NZ.UTF-8.in: Likewise.
15085 * localedata/ml_IN.UTF-8.in: Likewise.
15086 * localedata/mn_MN.UTF-8.in: Likewise.
15087 * localedata/mr_IN.UTF-8.in: Likewise.
15088 * localedata/mt_MT.UTF-8.in: Likewise.
15089 * localedata/nb_NO.UTF-8.in: Likewise.
15090 * localedata/om_KE.UTF-8.in: Likewise.
15091 * localedata/os_RU.UTF-8.in: Likewise.
15092 * localedata/ps_AF.UTF-8.in: Likewise.
15093 * localedata/ro_RO.UTF-8.in: Likewise.
15094 * localedata/ru_RU.UTF-8.in: Likewise.
15095 * localedata/sc_IT.UTF-8.in: Likewise.
15096 * localedata/se_NO.UTF-8.in: Likewise.
15097 * localedata/sq_AL.UTF-8.in: Likewise.
15098 * localedata/sv_SE.UTF-8.in: Likewise.
15099 * localedata/szl_PL.UTF-8.in: Likewise.
15100 * localedata/tg_TJ.UTF-8.in: Likewise.
15101 * localedata/tk_TM.UTF-8.in: Likewise.
15102 * localedata/tt_RU.UTF-8.in: Likewise.
15103 * localedata/tt_RU.UTF-8@iqtelif.in: Likewise.
15104 * localedata/ug_CN.UTF-8.in: Likewise.
15105 * localedata/uz_UZ.UTF-8.in: Likewise.
15106 * localedata/vi_VN.UTF-8.in: Likewise.
15107 * localedata/yi_US.UTF-8.in: Likewise.
15108 * localedata/yo_NG.UTF-8.in: Likewise.
15109 * localedata/zh_CN.UTF-8.in: Likewise.
15110 * localedata/locales/am_ET: Adapt collation rules to new iso14651_t1_common
15111 file and fix bugs in the collation.
15112 * localedata/locales/az_AZ: Likewise.
15113 * localedata/locales/be_BY: Likewise.
15114 * localedata/locales/ber_DZ: Likewise.
15115 * localedata/locales/ber_MA: Likewise.
15116 * localedata/locales/bg_BG: Likewise.
15117 * localedata/locales/br_FR: Likewise.
15118 * localedata/locales/br_FR@euro: Likewise.
15119 * localedata/locales/ca_ES: Likewise.
15120 * localedata/locales/cns11643_stroke: Likewise.
15121 * localedata/locales/crh_UA: Likewise.
15122 * localedata/locales/cs_CZ: Likewise.
15123 * localedata/locales/csb_PL: Likewise.
15124 * localedata/locales/cv_RU: Likewise.
15125 * localedata/locales/cy_GB: Likewise.
15126 * localedata/locales/da_DK: Likewise.
15127 * localedata/locales/dz_BT: Likewise.
15128 * localedata/locales/en_CA: Likewise.
15129 * localedata/locales/eo: Likewise.
15130 * localedata/locales/es_CU: Likewise.
15131 * localedata/locales/es_EC: Likewise.
15132 * localedata/locales/es_ES: Likewise.
15133 * localedata/locales/es_US: Likewise.
15134 * localedata/locales/et_EE: Likewise.
15135 * localedata/locales/fa_IR: Likewise.
15136 * localedata/locales/fi_FI: Likewise.
15137 * localedata/locales/fil_PH: Likewise.
15138 * localedata/locales/fur_IT: Likewise.
15139 * localedata/locales/gez_ER@abegede: Likewise.
15140 * localedata/locales/ha_NG: Likewise.
15141 * localedata/locales/hr_HR: Likewise.
15142 * localedata/locales/hsb_DE: Likewise.
15143 * localedata/locales/hu_HU: Likewise.
15144 * localedata/locales/ig_NG: Likewise.
15145 * localedata/locales/ik_CA: Likewise.
15146 * localedata/locales/is_IS: Likewise.
15147 * localedata/locales/iso14651_t1_pinyin: Likewise.
15148 * localedata/locales/kk_KZ: Likewise.
15149 * localedata/locales/ku_TR: Likewise.
15150 * localedata/locales/ky_KG: Likewise.
15151 * localedata/locales/ln_CD: Likewise.
15152 * localedata/locales/lt_LT: Likewise.
15153 * localedata/locales/lv_LV: Likewise.
15154 * localedata/locales/mi_NZ: Likewise.
15155 * localedata/locales/ml_IN: Likewise.
15156 * localedata/locales/mn_MN: Likewise.
15157 * localedata/locales/mr_IN: Likewise.
15158 * localedata/locales/mt_MT: Likewise.
15159 * localedata/locales/nb_NO: Likewise.
15160 * localedata/locales/om_KE: Likewise.
15161 * localedata/locales/os_RU: Likewise.
15162 * localedata/locales/pl_PL: Likewise.
15163 * localedata/locales/ps_AF: Likewise.
15164 * localedata/locales/ro_RO: Likewise.
15165 * localedata/locales/ru_RU: Likewise.
15166 * localedata/locales/ru_UA: Likewise.
15167 * localedata/locales/sc_IT: Likewise.
15168 * localedata/locales/se_NO: Likewise.
15169 * localedata/locales/si_LK: Likewise.
15170 * localedata/locales/sq_AL: Likewise.
15171 * localedata/locales/sv_FI: Likewise.
15172 * localedata/locales/sv_FI@euro: Likewise.
15173 * localedata/locales/sv_SE: Likewise.
15174 * localedata/locales/szl_PL: Likewise.
15175 * localedata/locales/tg_TJ: Likewise.
15176 * localedata/locales/ti_ER: Likewise.
15177 * localedata/locales/tk_TM: Likewise.
15178 * localedata/locales/tl_PH: Likewise.
15179 * localedata/locales/tr_TR: Likewise.
15180 * localedata/locales/tt_RU: Likewise.
15181 * localedata/locales/tt_RU@iqtelif: Likewise.
15182 * localedata/locales/ug_CN: Likewise.
15183 * localedata/locales/uk_UA: Likewise.
15184 * localedata/locales/uz_UZ: Likewise.
15185 * localedata/locales/uz_UZ@cyrillic: Likewise.
15186 * localedata/locales/vi_VN: Likewise.
15187 * localedata/locales/yi_US: Likewise.
15188 * localedata/locales/yo_NG: Likewise.
15189
15190 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15191
15192 * gen-locales.mk: Make test files which contain @ modifiers in their
15193 name work.
15194 * localedata/gen-locale.sh: Likewise.
15195
15196 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15197
15198 * posix/tst-fnmatch.input: Fix results for range expressions
15199 for non C locales.
15200 * posix/tst-regexloc.c: Do not use a range expression for
15201 de_DE.ISO-8859-1 locale.
15202
15203 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15204
15205 * posix/bug-regex5.c: Fix test case because with the new
15206 iso14651_t1_common file, the da_DK locale now has 6 collating elements
15207 in the ISO-8859-1 range instead of 4 with the old iso14651_t1_common
15208 file.
15209
15210 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15211
15212 * localedata/da_DK.ISO-8859-1.in: In the new iso14651_t1_common file
15213 downloaded from ISO, the collation order of @-. and space has changed.
15214 Therefore, this test file needed to be adapted.
15215 * localedata/fr_CA.UTF-8.in: Likewise.
15216 * localedata/fr_FR.UTF-8.in: Likewise.
15217 * localedata/uk_UA.UTF-8.in: Likewise.
15218
15219 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15220
15221 * localedata/cs_CZ.UTF-8.in: adapt this test file to the collation
15222 order of ȥ in the new iso14651_t1_common file.
15223 * localedata/pl_PL.UTF-8.in: Likewise.
15224
15225 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15226
15227 * localedata/locales/iso14651_t1_common: Add sections for various
15228 scripts to the iso14651_t1_common file.
15229
15230 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15231
15232 * localedata/locales/iso14651_t1_common: Use the code point of a
15233 character in the fourth collation level instead of IGNORE for all
15234 entries which have IGNORE on all 4 levels.
15235
15236 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15237
15238 * localedata/locales/iso14651_t1_common: Add some convenient collation
15239 symbols like <AFTER-A>, <BEFORE-A> to make tailoring easier using
15240 rules similar to those in CLDR.
15241
15242 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15243
15244 * localedata/locales/iso14651_t1_common: The new version of this
15245 file downloaded from ISO contained several syntax errors which
15246 are fixed by this patch.
15247
15248 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15249
15250 * localedata/locales/iso14651_t1_common: replace all <U.....>
15251 with <U000.....> because glibc understands only 4 digit or 8 digit
15252
15253 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15254
15255 * localedata/locales/iso14651_t1_common: Necessary changes
15256 to make the file downloaded from ISO usable by glibc.
15257
15258 2018-02-27 Mike FABIAN <mfabian@redhat.com>
15259
15260 [BZ #14095]
15261 * localedata/locales/iso14651_t1_common: Update file to
15262 latest version from ISO (ISO14651_2016_TABLE1_en.txt).
15263
15264 2018-02-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
15265
15266 * sysdeps/pthread/timer_routines.c: Include <timer_routines.h> instead
15267 of <nptl/pthreadP.h>
15268 (thread_attr_compare): Move function to...
15269 [!defined DELAYTIMER_MAX] (DELAYTIMER_MAX): Define to INT_MAX.
15270 * sysdeps/nptl/timer_routines.h: ... new header.
15271 * sysdeps/mach/hurd/gai_misc.h: New file.
15272
15273 2018-02-26 Joseph Myers <joseph@codesourcery.com>
15274
15275 * string/strcoll_l.c: Include <libc-diag.h>.
15276 (STRCOLL): Ignore -Wmaybe-uninitialized for -Os around
15277 declarations of seq1 and seq2.
15278
15279 [BZ #15105]
15280 * stdlib/atoi.c (atoi): Use libc_hidden_def.
15281 * include/stdlib.h [!_ISOMAC] (atoi): Use libc_hidden_proto.
15282
15283 2018-02-26 Dmitry V. Levin <ldv@altlinux.org>
15284
15285 [BZ #22433]
15286 [BZ #22807]
15287 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (__ptrace_request): Add
15288 PTRACE_GETREGS, PTRACE_SETREGS, PTRACE_GETFPREGS, PTRACE_SETFPREGS,
15289 PTRACE_GETVRREGS, PTRACE_SETVRREGS, PTRACE_GETEVRREGS,
15290 PTRACE_SETEVRREGS, PTRACE_GETREGS64, PTRACE_SETREGS64,
15291 PTRACE_GET_DEBUGREG, PTRACE_SET_DEBUGREG, PTRACE_GETVSRREGS,
15292 PTRACE_SETVSRREGS, and PTRACE_SINGLEBLOCK.
15293
15294 2018-02-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15295
15296 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Undefine Linux
15297 macros used in __ptrace_request.
15298
15299 2018-02-23 H.J. Lu <hongjiu.lu@intel.com>
15300
15301 [BZ #22792]
15302 * Makerules ($(common-objpfx)%.h): Pass -DGEN_AS_CONST_HEADERS
15303 to $(CC).
15304 * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Include
15305 <tcb-offsets.h> only if GEN_AS_CONST_HEADERS isn't defined.
15306 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Don't include
15307 <tcb-offsets.h>.
15308
15309 2018-02-23 Joseph Myers <joseph@codesourcery.com>
15310
15311 [BZ #15105]
15312 * ctype/ctype.c (tolower): Use libc_hidden_def.
15313 (toupper): Likewise.
15314 * include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
15315 [!_ISOMAC] (toupper): Likewise.
15316
15317 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15318
15319 * localedata/Makefile: Remove --quiet argument when
15320 installing locales
15321
15322 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15323
15324 [BZ #17438]
15325 * localedata/locales/pt_BR (LC_TIME): use / instead of -
15326 in d_fmt.
15327 * localedata/locales/pt_PT (LC_TIME): likewise
15328
15329 2018-02-23 Mike FABIAN <mfabian@redhat.com>
15330
15331 [BZ #22646]
15332 * localedata/locales/es_CL (LC_TIME): copy "es_BO".
15333 * localedata/locales/es_CU (LC_TIME): copy "es_BO".
15334 * localedata/locales/es_EC (LC_TIME): copy "es_BO".
15335
15336 2018-02-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15337
15338 * sysdeps/sparc/fpu/libm-test-ulps: Update.
15339
15340 * nptl/Makefile (routines): Remove unregister-atfork.
15341 * nptl/register-atfork.c (fork_handler_pool): Remove variable.
15342 (fork_handler_alloc): Remove function.
15343 (fork_handlers, fork_handler_init): New variables.
15344 (__fork_lock): Rename to atfork_lock.
15345 (__register_atfork, __unregister_atfork, libc_freeres_fn): Rewrite
15346 to use a dynamic array to add/remove atfork handlers.
15347 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
15348 * sysdeps/nptl/fork.h (__fork_lock, __fork_handlers, __linkin_atfork):
15349 Remove declaration.
15350 (fork_handler): Remove next, refcntr, and need_signal member.
15351 (__run_fork_handler_type): New enum.
15352 (__run_fork_handlers): New prototype.
15353 * nptl/register-atfork.c: Remove file.
15354 * sysdeps/nptl/libc-lockP.h (__libc_atfork): Remove declaration.
15355
15356 * sysdeps/nptl/nptl-signals.h: Move to ...
15357 * sysdeps/generic/internal-signals.h: ... here. Adjust internal
15358 comments.
15359 * sysdeps/unix/sysv/linux/internal-signals.h: Add include guards.
15360 (__nptl_is_internal_signal): Rename to __is_internal_signal and remove
15361 unnecessary check for SIGTIMER.
15362 (__nptl_clear_internal_signals): Rename to __clear_internal_signals and
15363 remove unnecessary removal of SIGTIMER.
15364 * sysdeps/unix/sysv/linux/raise.c: Adjust nptl-signal.h to
15365 include-signals.h rename.
15366 * nptl/pthreadP.h: Likewise.
15367 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Call
15368 __is_internal_signal instead of __nptl_is_internal_signal.
15369
15370 2018-02-22 Andrew Waterman <andrew@sifive.com>
15371
15372 [BZ # 22884]
15373 * sysdeps/riscv/rvd/s_fmax.c (__fmax): Handle sNaNs correctly.
15374 * sysdeps/riscv/rvd/s_fmin.c (__fmin): Likewise.
15375 * sysdeps/riscv/rvf/s_fmaxf.c (__fmaxf): Likewise.
15376 * sysdeps/riscv/rvf/s_fminf.c (__fminf): Likewise.
15377
15378 2018-02-22 DJ Delorie <dj@delorie.com>
15379
15380 * sysdeps/riscv/tls-macros.h: Do not initialize $gp.
15381
15382 2018-02-22 Siddhesh Poyarekar <siddhesh@sourceware.org>
15383
15384 * sysdeps/aarch64/strcmp.S (do_misaligned): Jump back to
15385 do_misaligned, not misaligned8.
15386
15387 2018-02-22 Steve Ellcey <sellcey@cavium.com>
15388
15389 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
15390 Add memcpy_thunderx2.
15391 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
15392 Increment to 4.
15393 (__libc_ifunc_impl_list): Add __memcpy_thunderx2.
15394 * sysdeps/aarch64/multiarch/memcpy.c (libc_ifunc): Add IS_THUNDERX2
15395 and IS_THUNDERX2PA checks.
15396 * sysdeps/aarch64/multiarch/memcpy_thunderx.S (USE_THUNDERX2):
15397 Use macro to set name appropriately.
15398 (memcpy): Use USE_THUNDERX2 macro to modify prefetches.
15399 * sysdeps/aarch64/multiarch/memcpy_thunderx2.S: New file.
15400 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_THUNDERX2PA):
15401 New macro.
15402 (IS_THUNDERX2): New macro.
15403
15404 2018-02-22 Stefan Liebler <stli@linux.vnet.ibm.com>
15405
15406 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15407
15408 2018-02-21 Zack Weinberg <zackw@panix.com>
15409
15410 * libio/libio.h (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust):
15411 Define here, unconditionally.
15412 * libio/iolibio.h (_IO_pos_BAD): Don't define here.
15413 * libio/libioP.h: Remove #if 0 blocks.
15414 (_IO_pos_BAD, _IO_pos_0, _IO_pos_adjust): Don't define here.
15415 (_IO_va_start, COERCE_FILE, MAYBE_SET_EINVAL): Don't define.
15416 (CHECK_FILE): Don't use MAYBE_SET_EINVAL or COERCE_FILE. Fix style.
15417
15418 * libio/clearerr.c, libio/fputc.c, libio/getchar.c:
15419 Assume weak_alias is always defined.
15420
15421 * libio/fileops.c, libio/genops.c, libio/oldfileops.c
15422 * libio/oldpclose.c, libio/pclose.c, libio/wfileops.c:
15423 Remove #if 0 and #ifdef TODO blocks.
15424 Assume text_set_element is always defined.
15425
15426 * libio/iofdopen.c, libio/iogetdelim.c, libio/oldiofdopen.c
15427 Use __set_errno (EINVAL) instead of MAYBE_SET_EINVAL.
15428 * libio/tst-mmap-eofsync.c: Make #if 1 block unconditional.
15429
15430 * libio/libio.h (_IOS_ATEND, _IOS_APPEND, _IOS_TRUNC)
15431 (_IOS_NOCREATE, _IOS_NOREPLACE, _IOS_BIN, _OLD_STDIO_MAGIC)
15432 (_IO_SKIPWS, _IO_LEFT, _IO_RIGHT, _IO_INTERNAL, _IO_DEC)
15433 (_IO_OCT, _IO_HEX, _IO_SHOWBASE, _IO_SHOWPOINT, _IO_UPPERCASE)
15434 (_IO_SHOWPOS, _IO_SCIENTIFIC, _IO_FIXED, _IO_UNITBUF, _IO_STDIO)
15435 (_IO_DONT_CLOSE, _IO_BOOLALPHA, _IO_BAD_SEEN): Remove, unused.
15436 Reformat bit flags for _flags field to make occupancy clearer.
15437 Update commentary.
15438 * libio/bits/types/struct_FILE.h (_IO_EOF_SEEN, _IO_ERR_SEEN):
15439 Keep definitions consistent with those in libio/libio.h.
15440
15441 * libio/libio.h (_IO_file_flags): Remove macro.
15442 All uses changed to _flags.
15443
15444 * libio/libio.h (_IO_UNIFIED_JUMPTABLES, _STDIO_USES_IOSTREAM)
15445 (__HAVE_COLUMN, _IO_BE): Don't define.
15446 (_IO_peekc_unlocked, _IO_getwc_unlocked, _IO_putwc_unlocked)
15447 (_IO_fwide_maybe_incompatible): Use __glibc_unlikely.
15448 * libio/libioP.h (EOF): Don't define.
15449 * libio/iofdopen.c, libio/iofopen.c, libio/iopopen.c
15450 * libio/iovdprintf.c, libio/oldiofdopen.c, libio/oldiofopen.c
15451 * libio/oldiopopen.c, debug/vdprintf_chk.c: Remove #if block
15452 testing _IO_UNIFIED_JUMPTABLES.
15453
15454 * libio/libio.h (_IO_FILE): Delete; all uses changed to FILE.
15455 (_IO_fpos_t): Delete; all uses changed to __fpos_t.
15456 (_IO_fpos64_t): Delete; all uses changed to __fpos64_t.
15457 (_IO_size_t): Delete; all uses changed to size_t.
15458 (_IO_ssize_t): Delete; all uses changed to ssize_t or __ssize_t.
15459 (_IO_off_t): Delete; all uses changed to off_t.
15460 (_IO_off64_t): Delete; all uses changed to off64_t.
15461 (_IO_pid_t): Delete; all uses changed to pid_t.
15462 (_IO_uid_t): Delete; all uses changed to uid_t.
15463 (_IO_wint_t): Delete; all uses changed to wint_t.
15464 (_IO_va_list): Delete; all uses changed to va_list or __gnuc_va_list.
15465 (_IO_BUFSIZ): Delete; all uses changed to BUFSIZ.
15466 (_IO_cookie_io_functions_t): Delete; all uses changed to
15467 cookie_io_functions_t.
15468 (__io_read_fn): Delete; all uses changed to cookie_read_function_t.
15469 (__io_write_fn): Delete; all uses changed to cookie_write_function_t.
15470 (__io_seek_fn): Delete; all uses changed to cookie_seek_function_t.
15471 (__io_close_fn): Delete: all uses changed to cookie_close_function_t.
15472
15473 * libio/iofopncook.c: Remove unnecessary forward declarations.
15474 * libio/iolibio.h: Correct outdated commentary.
15475 * malloc/malloc.c (__malloc_stats): Remove unnecessary casts.
15476 * stdio-common/fxprintf.c (__fxprintf_nocancel):
15477 Remove unnecessary casts.
15478 * stdio-common/getline.c: Use _IO_getdelim directly.
15479 Don't redefine ssize_t.
15480 * stdio-common/printf_fp.c, stdio_common/printf_fphex.c
15481 * stdio-common/printf_size.c: Don't redefine size_t or FILE.
15482 Remove outdated comments.
15483 * stdio-common/vfscanf.c: Don't redefine va_list.
15484
15485 * libio/iolibio.h, libio/libioP.h: Remove extern "C".
15486 * libio/libio.h: Remove __BEGIN_DECLS and __END_DECLS.
15487 Remove preprocessor conditionals on _LIBC and __USE_GNU,
15488 which are always true, and __cplusplus, which is always false.
15489
15490 2018-02-21 Joseph Myers <joseph@codesourcery.com>
15491
15492 [BZ #15105]
15493 [BZ #19463]
15494 * libio/fputc_u.c (fputc_unlocked): Use libc_hidden_def.
15495 * libio/putc_u.c (putc_unlocked): Rename to __putc_unlocked and
15496 define as weak alias of __putc_unlocked. Use libc_hidden_weak.
15497 * include/stdio.h [!_ISOMAC] (fputc_unlocked): Use
15498 libc_hidden_proto.
15499 [!_ISOMAC] (putc_unlocked): Likewise.
15500 [!_ISOMAC] (__putc_unlocked): Declare as hidden function, and
15501 define inline if [__USE_EXTERN_INLINES].
15502 * misc/syslog.c (__vsyslog_chk): Call __putc_unlocked instead of
15503 putc_unlocked.
15504
15505 [BZ #15105]
15506 [BZ #19463]
15507 * libio/getc_u.c (getc_unlocked): Use libc_hidden_weak.
15508 * include/stdio.h [!_ISOMAC] (__getc_unlocked): Use
15509 attribute_hidden, and define inline if [__USE_EXTERN_INLINES].
15510 [!_ISOMAC] (getc_unlocked): Use libc_hidden_proto.
15511 * misc/getttyent.c (__getttyent): Call __getc_unlocked instead of
15512 getc_unlocked.
15513 * time/tzfile.c (__tzfile_read): Likewise.
15514
15515 2018-02-21 Mike FABIAN <mfabian@redhat.com>
15516
15517 [BZ #22517]
15518 * localedata/locales/et_EE (LC_COLLATE): add missing “reorder-end”
15519
15520 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15521
15522 * io/fcntl.h: Fix a typo in a comment.
15523
15524 2018-02-21 Rical Jasan <ricaljasan@pacific.net>
15525
15526 [BZ #22862]
15527 * include/features.h: Add _ISOC11_SOURCE to test for whether to
15528 define _DEFAULT_SOURCE.
15529 * manual/creature.texi (_DEFAULT_SOURCE): Improve documentation.
15530
15531 2018-02-21 Florian Weimer <fweimer@redhat.com>
15532
15533 [BZ #20890]
15534 * elf/cache.c (save_cache): Call fsync on temporary file before
15535 renaming it.
15536 (save_aux_cache): Call fdatasync on temporary file before renaming
15537 it.
15538
15539 2018-02-21 Florian Weimer <fweimer@redhat.com>
15540
15541 [BZ #22787]
15542 * include/caller.h: Remove file.
15543 * elf/dl-caller.c: Likewise.
15544 * elf/Makefile (dl-routines): Remove dl-caller.
15545 (shared-only-routines): Do not add dl-caller.
15546 * elf/dl-load.c (_dl_map_object_from_fd): Do not call
15547 __check_caller.
15548 * elf/dl-open.c (struct dl_open_args): Remove caller_dl_open
15549 member.
15550 (dl_open_worker): Do not call __check_caller.
15551 (_dl_open): Do not set caller_dl_open member.
15552 * elf/rtld.c (_rtld_global_ro): Do not initialize
15553 _dl_check_caller member.
15554 * sysdeps/generic/ldsodefs.h (rtld_global): Remove
15555 _dl_check_caller member.
15556 (_dl_check_caller): Remove declaration.
15557 * sysdeps/unix/sysv/linux/dl-execstack.c
15558 (_dl_make_stack_executable): Do not call __check_caller.
15559
15560 2018-02-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
15561
15562 * sysdeps/mach/hurd/dl-sysdep.c (_dl_random): New variable.
15563 * sysdeps/mach/hurd/sysdep-cancel.h: New file.
15564
15565 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15566
15567 * manual/creature.texi (_ISOC99_SOURCE): Update the dated
15568 description.
15569
15570 2018-02-20 Rical Jasan <ricaljasan@pacific.net>
15571
15572 [BZ #16335]
15573 * manual/creature.texi (_POSIX_C_SOURCE): Document special values
15574 of 199606L, 200112L, and 200809L.
15575 (_XOPEN_SOURCE): Document special values of 600 and 700.
15576 (_ISOC11_SOURCE): Document macro.
15577 (_ATFILE_SOURCE): Likewise.
15578 (_FORTIFY_SOURCE): Likewise.
15579
15580 2018-02-19 Joseph Myers <joseph@codesourcery.com>
15581
15582 [BZ #15105]
15583 [BZ #19463]
15584 * libio/ferror_u.c (ferror_unlocked): Rename to __ferror_unlocked
15585 and define as weak alias of __ferror_unlocked. Use
15586 libc_hidden_weak.
15587 * include/stdio.h [!_ISOMAC] (ferror_unlocked): Use
15588 libc_hidden_proto.
15589 [!_ISOMAC] (__ferror_unlocked) New declaration, and inline
15590 function if [__USE_EXTERN_INLINES].
15591 * time/getdate.c (__getdate_r): Call __ferror_unlocked instead of
15592 ferror_unlocked.
15593
15594 2018-02-19 Rical Jasan <ricaljasan@pacific.net>
15595
15596 [BZ #6889]
15597 * manual/filesys.texi (get_current_dir_name): Clarify behaviour.
15598
15599 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15600
15601 [BZ #22818]
15602 * posix/tst-glob_lstat_compat.c [__alpha__] (glob): Access
15603 the GLIBC_2.1 version.
15604
15605 2018-02-18 Aurelien Jarno <aurelien@aurel32.net>
15606
15607 [BZ #21508]
15608 * catgets/xopen-msg.awk: Ignore POT-Creation-Date line.
15609 * intl/Makefile ($(objpfx)tst-gettext-de.po): Generate
15610 intl/tst-gettext-de.po from po/de.po by removing the
15611 POT-Creation-Date line.
15612 ($(objpfx)msgs.h): Depend on $(objpfx)tst-gettext-de.po instead of
15613 ../po/de.po.
15614 * intl/tst-gettext.sh: Use ${objpfx}tst-gettext-de.po instead of
15615 ../po/de.po.
15616
15617 2018-02-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
15618
15619 * mach/Makefile (headers): Add mach/param.h.
15620 * sysdeps/mach/hurd/bits/param.h: Include <mach/param.h>.
15621 * sysdeps/mach/i386/mach/param.h: New file, defines EXEC_PAGESIZE
15622 * sysdeps/mach/hurd/ptsname.c: Include <sys/stat.h>.
15623 (__ptsname_r): Move implementation to...
15624 (__ptsname_internal): ... new function. Add filling the STP
15625 structure.
15626
15627 2018-02-17 John David Anglin <danglin@gcc.gnu.org>
15628
15629 * sysdeps/hppa/fpu/libm-test-ulps (pow): Increase double and
15630 idouble to 1 ULP.
15631
15632 2018-02-16 Rical Jasan <ricaljasan@pacific.net>
15633
15634 * manual/platform.texi (__riscv_flush_icache): Fix @deftypefun
15635 syntax.
15636
15637 2018-02-16 Stefan Liebler <stli@linux.vnet.ibm.com>
15638
15639 * nptl/Makefile (tst-mutex8-ENV): Delete.
15640 * nptl/tst-mutex8.c (check_type):
15641 Add runtime check if mutex will be elided.
15642
15643 2018-02-15 Joseph Myers <joseph@codesourcery.com>
15644
15645 [BZ #20980]
15646 [BZ #21234]
15647 * manual/install.texi (Configuring and compiling): Describe
15648 passing CC and CFLAGS on configure command line, not as
15649 environment variables. Use @code markup on those variables.
15650 Specify what options go in CC and what go in CFLAGS. Note the
15651 requirement to compile with optimization.
15652 * INSTALL: Regenerated.
15653
15654 [BZ #18124]
15655 * sysdeps/hppa/bsd-setjmp.S: Include <sysdep.h>.
15656 (setjmp): Use HIDDEN_JUMPTARGET with __sigsetjmp.
15657 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Call
15658 __sigprocmask instead of sigprocmask.
15659 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext):
15660 Likewise.
15661 * sysdeps/unix/sysv/linux/hppa/localplt.data: Remove entries for
15662 __sigsetjmp and sigprocmask.
15663
15664 [BZ #15105]
15665 * include/argz.h (argz_next): Use libc_hidden_proto.
15666 (__argz_next): Likewise.
15667 * string-argz-next.c (__argz_next): Use libc_hidden_def.
15668 (argz_next): Use libc_hidden_weak.
15669
15670 [BZ #15105]
15671 * include/sys/socket.h [!_ISOMAC] (__cmsg_nxthdr): Use
15672 libc_hidden_proto.
15673 * sysdeps/unix/sysv/linux/cmsg_nxthdr.c (__cmsg_nxthdr): Use
15674 libc_hidden_def.
15675
15676 [BZ #15105]
15677 * include/stdio.h [!_ISOMAC && IS_IN (libc)] (fputs): Use
15678 libc_hidden_proto.
15679 * libio/iofputs.c (fputs): Use libc_hidden_weak.
15680
15681 [BZ #15105]
15682 [BZ #19463]
15683 * libio/feof_u.c (feof_unlocked): Rename to __feof_unlocked and
15684 define as weak alias of __feof_unlocked. Use libc_hidden_weak.
15685 * include/stdio.h (feof_unlocked): Use libc_hidden_proto.
15686 (__feof_unlocked): New declaration, and inline function if
15687 [__USE_EXTERN_INLINES].
15688 * iconv/gconv_conf.c (read_conf_file): Call __feof_unlocked
15689 instead of feof_unlocked.
15690 * intl/localealias.c [_LIBC] (FEOF): Likewise.
15691 * nss/nsswitch.c (nss_parse_file): Likewise.
15692 * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area):
15693 Likewise.
15694 * time/getdate.c (__getdate_r): Likewise.
15695 * sysdeps/posix/getaddrinfo.c [IS_IN (libc)] (feof_unlocked):
15696 Define as macro to call __feof_unlocked.
15697
15698 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15699
15700 * sysdeps/aarch64/fpu/fpu_control.h: Use <> in include.
15701
15702 2018-02-15 Wilco Dijkstra <wdijkstr@arm.com>
15703
15704 * math/Makefile: Remove mpexp.c and mplog.c
15705 * sysdeps/i386/fpu/mpexp.c: Delete file.
15706 * sysdeps/i386/fpu/mplog.c: Likewise.
15707 * sysdeps/ia64/fpu/mpexp.c: Likewise.
15708 * sysdeps/ia64/fpu/mplog.c: Likewise.
15709 * sysdeps/ieee754/dbl-64/e_exp.c: Remove mention of mpexp and mplog.
15710 * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): Remove unused function.
15711 * sysdeps/ieee754/dbl-64/mpexp.c: Delete file.
15712 * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
15713 * sysdeps/m68k/m680x0/fpu/mpexp.c: Likewise.
15714 * sysdeps/m68k/m680x0/fpu/mplog.c: Likewise.
15715 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove mpexp* and mplog*.
15716 * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: Remove unused defines.
15717 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
15718 * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
15719 * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: Delete file.
15720 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
15721 * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
15722 * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: Likewise.
15723 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
15724 * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
15725
15726 2018-02-15 Stefan Liebler <stli@linux.vnet.ibm.com>
15727
15728 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
15729
15730 2018-02-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
15731
15732 * sysdeps/sh/libm-test-ulps: Update.
15733
15734 2018-02-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15735
15736 * sysdeps/powerpc/fpu/libm-test-ulps (pow): Increase double and
15737 idouble to 1 ULP.
15738
15739 2018-02-12 Zack Weinberg <zackw@panix.com>
15740
15741 [BZ #19239]
15742 * posix/sys/types.h: Don't include sys/sysmacros.h.
15743 * misc/sys/sysmacros.h: Remove the conditional deprecation
15744 warnings for the macros defined by this header.
15745
15746 2018-02-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
15747
15748 * manual/probes.texi: Remove slowexp probes.
15749 * math/Makefile: Remove slowexp.
15750 * sysdeps/generic/math_private.h (__slowexp): Remove.
15751 * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Remove __slowexp and
15752 document error bounds.
15753 * sysdeps/i386/fpu/slowexp.c: Remove.
15754 * sysdeps/ia64/fpu/slowexp.c: Remove.
15755 * sysdeps/ieee754/dbl-64/slowexp.c: Remove.
15756 * sysdeps/ieee754/dbl-64/uexp.h (err_0): Remove.
15757 * sysdeps/m68k/m680x0/fpu/slowexp.c: Remove.
15758 * sysdeps/powerpc/power4/fpu/Makefile (CPPFLAGS-slowexp.c): Remove.
15759 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowexp-fma.
15760 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Remove.
15761 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Remove.
15762 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Remove.
15763 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Remove.
15764 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Remove.
15765 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Remove.
15766
15767 2018-02-12 Wilco Dijkstra <wdijkstr@arm.com>
15768
15769 [BZ #13932]
15770 * sysdeps/ieee754/dbl-64/uexp.h (err_1): Remove.
15771 * benchtests/pow-inputs: Update comment for slow path cases.
15772 * manual/probes.texi (slowpow_p10): Delete removed probe.
15773 (slowpow_p10): Likewise.
15774 * math/Makefile: Remove halfulp.c and slowpow.c.
15775 * sysdeps/aarch64/libm-test-ulps: Set ULP of pow to 1.
15776 * sysdeps/generic/math_private.h (__exp1): Remove error argument.
15777 (__halfulp): Remove.
15778 (__slowpow): Remove.
15779 * sysdeps/i386/fpu/halfulp.c: Delete file.
15780 * sysdeps/i386/fpu/slowpow.c: Likewise.
15781 * sysdeps/ia64/fpu/halfulp.c: Likewise.
15782 * sysdeps/ia64/fpu/slowpow.c: Likewise.
15783 * sysdeps/ieee754/dbl-64/e_exp.c (__exp1): Remove error argument,
15784 improve comments and add error analysis.
15785 * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Add error analysis.
15786 (power1): Remove function:
15787 (log1): Remove error argument, add error analysis.
15788 (my_log2): Remove function.
15789 * sysdeps/ieee754/dbl-64/halfulp.c: Delete file.
15790 * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
15791 * sysdeps/m68k/m680x0/fpu/halfulp.c: Likewise.
15792 * sysdeps/m68k/m680x0/fpu/slowpow.c: Likewise.
15793 * sysdeps/powerpc/power4/fpu/Makefile: Remove CPPFLAGS-slowpow.c.
15794 * sysdeps/x86_64/fpu/libm-test-ulps: Set ULP of pow to 1.
15795 * sysdeps/x86_64/fpu/multiarch/Makefile: Remove slowpow-fma.c,
15796 slowpow-fma4.c, halfulp-fma.c, halfulp-fma4.c.
15797 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c (__slowpow): Remove define.
15798 * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c (__slowpow): Likewise.
15799 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Delete file.
15800 * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
15801 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
15802 * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
15803
15804 2018-02-11 Samuel Thibault <samuel.thibault@ens-lyon.org>
15805
15806 * nscd/connections.c (RWLOCK_INITIALIZER): Define to
15807 PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP or
15808
15809 2018-02-10 Dmitry V. Levin <ldv@altlinux.org>
15810
15811 [BZ #22433]
15812 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (__ptrace_request):
15813 Remove arm-specific PTRACE_GET_THREAD_AREA, PTRACE_GETHBPREGS,
15814 and PTRACE_SETHBPREGS.
15815
15816 2018-02-10 Zack Weinberg <zackw@panix.com>
15817
15818 [BZ #22830]
15819 * malloc/malloc.c (__malloc_stats): Restore stderr->_flags2
15820 correctly.
15821 * malloc/tst-malloc-stats-cancellation.c: New test case.
15822 * malloc/Makefile: Add new test case.
15823
15824 2018-02-10 Wilco Dijkstra <wdijkstr@arm.com>
15825
15826 * sysdeps/aarch64/fpu/fpu_control.h: Add features.h to fix build error.
15827
15828 2018-02-10 Joseph Myers <joseph@codesourcery.com>
15829
15830 * math/Makefile (libm-narrow-fns): Add add.
15831 (libm-test-funcs-narrow): Likewise.
15832 * math/Versions (GLIBC_2.28): Add narrowing add functions.
15833 * math/bits/mathcalls-narrow.h (add): Use __MATHCALL_NARROW .
15834 * math/gen-auto-libm-tests.c (test_functions): Add add.
15835 * math/math-narrow.h (CHECK_NARROW_ADD): New macro.
15836 (NARROW_ADD_ROUND_TO_ODD): Likewise.
15837 (NARROW_ADD_TRIVIAL): Likewise.
15838 * sysdeps/ieee754/float128/float128_private.h (__faddl): New
15839 macro.
15840 (__daddl): Likewise.
15841 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Add fadd and
15842 dadd.
15843 (CFLAGS-nldbl-dadd.c): New variable.
15844 (CFLAGS-nldbl-fadd.c): Likewise.
15845 * sysdeps/ieee754/ldbl-opt/Versions (GLIBC_2.28): Add
15846 __nldbl_daddl.
15847 * sysdeps/ieee754/ldbl-opt/nldbl-compat.h (__nldbl_daddl): New
15848 prototype.
15849 * manual/arith.texi (Misc FP Arithmetic): Document fadd, faddl,
15850 daddl, fMaddfN, fMaddfNx, fMxaddfN and fMxaddfNx.
15851 * math/auto-libm-test-in: Add tests of add.
15852 * math/auto-libm-test-out-narrow-add: New generated file.
15853 * math/libm-test-narrow-add.inc: New file.
15854 * sysdeps/i386/fpu/s_f32xaddf64.c: Likewise.
15855 * sysdeps/ieee754/dbl-64/s_f32xaddf64.c: Likewise.
15856 * sysdeps/ieee754/dbl-64/s_fadd.c: Likewise.
15857 * sysdeps/ieee754/float128/s_f32addf128.c: Likewise.
15858 * sysdeps/ieee754/float128/s_f64addf128.c: Likewise.
15859 * sysdeps/ieee754/float128/s_f64xaddf128.c: Likewise.
15860 * sysdeps/ieee754/ldbl-128/s_daddl.c: Likewise.
15861 * sysdeps/ieee754/ldbl-128/s_f64xaddf128.c: Likewise.
15862 * sysdeps/ieee754/ldbl-128/s_faddl.c: Likewise.
15863 * sysdeps/ieee754/ldbl-128ibm/s_daddl.c: Likewise.
15864 * sysdeps/ieee754/ldbl-128ibm/s_faddl.c: Likewise.
15865 * sysdeps/ieee754/ldbl-96/s_daddl.c: Likewise.
15866 * sysdeps/ieee754/ldbl-96/s_faddl.c: Likewise.
15867 * sysdeps/ieee754/ldbl-opt/nldbl-dadd.c: Likewise.
15868 * sysdeps/ieee754/ldbl-opt/nldbl-fadd.c: Likewise.
15869 * sysdeps/ieee754/soft-fp/s_daddl.c: Likewise.
15870 * sysdeps/ieee754/soft-fp/s_fadd.c: Likewise.
15871 * sysdeps/ieee754/soft-fp/s_faddl.c: Likewise.
15872 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15873 * sysdeps/mach/hurd/i386/libm.abilist: Likewise.
15874 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
15875 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
15876 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
15877 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
15878 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
15879 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
15880 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
15881 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
15882 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
15883 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
15884 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
15885 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
15886 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: Likewise.
15887 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist: Likewise.
15888 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: Likewise.
15889 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: Likewise.
15890 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
15891 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
15892 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
15893 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
15894 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
15895 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
15896 * sysdeps/unix/sysv/linux/tile/tilegx32/libm.abilist: Likewise.
15897 * sysdeps/unix/sysv/linux/tile/tilegx64/libm.abilist: Likewise.
15898 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
15899 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
15900
15901 * sysdeps/powerpc/powerpc64le/Makefile [$(subdir) = math]
15902 (f128-pairs): New variable.
15903 [$(subdir) = math] ($(foreach suf,$(all-object-suffixes),$(foreach
15904 pair,$(f128-pairs),$(objpfx)test-$(pair)%$(suf)))): Add -mfloat128
15905 to CFLAGS.
15906 [$(subdir) = math] ($(foreach pair,$(f128-pairs),test-$(pair)%)):
15907 Also make tests add $(f128-loader-link) to gnulib-tests.
15908
15909 2018-02-09 DJ Delorie <dj@redhat.com>
15910
15911 [BZ #22827]
15912 * sysdeps/unix/sysv/linux/riscv/readelflib.c (process_elf_file): Use
15913 64-bit ELF type for 64-bit ELF objects.
15914
15915 2018-02-09 Joseph Myers <joseph@codesourcery.com>
15916
15917 * math/libm-test-driver.c (snan_tests_arg): New variable.
15918 * math/libm-test-support.h (snan_tests_arg): New declaration.
15919 * math/libm-test-support.c (enable_test): Check snan_tests_arg.
15920
15921 * math/Makefile (test-type-pairs): New variable.
15922 (test-type-pairs-f64xf128-yes): Likewise.
15923 (tests): Add test-narrow-macros.
15924 (libm-test-funcs-narrow): New variable.
15925 (libm-test-c-narrow): Likewise.
15926 (generated): Add $(libm-test-c-narrow).
15927 (libm-tests-base-narrow): New variable.
15928 (libm-tests-narrow): Likewise.
15929 (libm-tests): Add $(libm-tests-narrow).
15930 (libm-tests-for-type): Handle $(libm-tests-narrow).
15931 (libm-test-c-narrow-obj): New variable.
15932 ($(libm-test-c-narrow-obj)): New rule.
15933 ($(foreach t,$(libm-tests-narrow),$(objpfx)$(t).c)): Likewise.
15934 ($(foreach f,$(libm-test-funcs-narrow),$(objpfx)$(o)-$(f).o)): Use
15935 $(o-iterator) to set dependencies and CFLAGS.
15936 * math/gen-auto-libm-tests.c: Document use for narrowing
15937 functions.
15938 (output_for_one_input_case): Take argument NARROW.
15939 (generate_output): Likewise. Update call to
15940 output_for_one_input_case.
15941 (main): Take --narrow option. Update call to generate_output.
15942 * math/gen-libm-test.pl (_apply_lit): Take macro name as argument.
15943 (apply_lit): Update call to _apply_lit.
15944 (apply_arglit): New function.
15945 (parse_args): Handle "a" arguments.
15946 (parse_auto_input): Handle format names using ":".
15947 * math/README.libm-test: Document "a" parameter type.
15948 * math/libm-test-support.h (ARG_TYPE_MIN): New macro.
15949 (ARG_TYPE_TRUE_MIN): Likewise.
15950 (ARG_TYPE_MAX): Likwise.
15951 (ARG_MIN_EXP): Likewise.
15952 (ARG_MAX_EXP): Likewise.
15953 (ARG_MANT_DIG): Likewise.
15954 (TEST_COND_arg_ibm128): Likewise.
15955 (TEST_COND_ibm128_libgcc): Define conditional on [ARG_FLOAT].
15956 (TEST_COND_arg_fmt): New macro.
15957 (init_max_error): Update prototype.
15958 * math/libm-test-support.c (test_ibm128): New variable.
15959 (init_max_error): Take argument testing_ibm128 and set test_ibm128
15960 instead of using [TEST_COND_ibm128] conditional.
15961 (test_exceptions): Use test_ibm128 instead of TEST_COND_ibm128.
15962 * math/libm-test-driver.c (STR_ARG_FLOAT): New macro.
15963 [TEST_NARROW] (TEST_MSG): New definition.
15964 (arg_plus_zero): New macro.
15965 (arg_minus_zero): Likewise.
15966 (arg_plus_infty): Likewise.
15967 (arg_minus_infty): Likewise.
15968 (arg_qnan_value_pl): Likewise.
15969 (arg_qnan_value): Likewise.
15970 (arg_snan_value_pl): Likewise.
15971 (arg_snan_value): Likewise.
15972 (arg_max_value): Likewise.
15973 (arg_min_value): Likewise.
15974 (arg_min_subnorm_value): Likewise.
15975 [ARG_FLOAT] (struct test_aa_f_data): New struct type.
15976 (RUN_TEST_LOOP_aa_f): New macro.
15977 (TEST_SUFF): New macro.
15978 (TEST_SUFF_STR): Likewise.
15979 [!TEST_MATHVEC] (VEC_SUFF): Don't define.
15980 (TEST_COND_any_ibm128): New macro.
15981 (START): Use TEST_SUFF and TEST_SUFF_STR in initializer for
15982 this_func. Update call to init_max_error.
15983 * math/test-double.h (FUNC_NARROW_PREFIX): New macro.
15984 * math/test-float.h (FUNC_NARROW_PREFIX): Likewise.
15985 * math/test-float128.h (FUNC_NARROW_PREFIX): Likewise.
15986 * math/test-float32.h (FUNC_NARROW_PREFIX): Likewise.
15987 * math/test-float32x.h (FUNC_NARROW_PREFIX): Likewise.
15988 * math/test-float64.h (FUNC_NARROW_PREFIX): Likewise.
15989 * math/test-float64x.h (FUNC_NARROW_PREFIX): Likewise.
15990 * math/test-math-scalar.h (TEST_NARROW): Likewise.
15991 * math/test-math-vector.h (TEST_NARROW): Likewise.
15992 * math/test-arg-double.h: New file.
15993 * math/test-arg-float128.h: Likewise.
15994 * math/test-arg-float32x.h: Likewise.
15995 * math/test-arg-float64.h: Likewise.
15996 * math/test-arg-float64x.h: Likewise.
15997 * math/test-arg-ldouble.h: Likewise.
15998 * math/test-math-narrow.h: Likewise.
15999 * math/test-narrow-macros.c: Likewise.
16000 * sysdeps/ieee754/ldbl-opt/test-narrow-macros-ldbl-64.c: Likewise.
16001 * sysdeps/ieee754/ldbl-opt/Makefile (tests): Add
16002 test-narrow-macros-ldbl-64.
16003 (CFLAGS-test-narrow-macros-ldbl-64.c): New variable.
16004
16005 * math/bits/mathcalls-narrow.h: New file.
16006 * include/bits/mathcalls-narrow.h: Likewise.
16007 * math/math-narrow.h: Likewise.
16008 * math/math.h (__MATHCALL_NARROW_ARGS_1): New macro.
16009 (__MATHCALL_NARROW_ARGS_2): Likewise.
16010 (__MATHCALL_NARROW_ARGS_3): Likewise.
16011 (__MATHCALL_NARROW_NORMAL): Likewise.
16012 (__MATHCALL_NARROW_REDIR): Likewise.
16013 (__MATHCALL_NARROW): Likewise.
16014 [__GLIBC_USE (IEC_60559_BFP_EXT)]: Repeatedly include
16015 <bits/mathcalls-narrow.h> with _Mret_, _Marg_ and __MATHCALL_NAME
16016 defined.
16017 [__GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
16018 * math/Makefile (headers): Add bits/mathcalls-narrow.h.
16019 (libm-narrow-fns): New variable.
16020 (libm-narrow-types-basic): Likewise.
16021 (libm-narrow-types-ldouble-yes): Likewise.
16022 (libm-narrow-types-float128-yes): Likewise.
16023 (libm-narrow-types-float128-alias-yes): Likewise.
16024 (libm-narrow-types): Likewise.
16025 (libm-routines): Add narrowing functions.
16026 * sysdeps/i386/fpu/fenv_private.h [__x86_64__]
16027 (libc_feholdexcept_setroundf128): New macro.
16028 [__x86_64__] (libc_feupdateenv_testf128): Likewise.
16029 * sysdeps/ieee754/float128/float128_private.h: Include
16030 <math/math-narrow.h>.
16031 [libc_feholdexcept_setroundf128] (libc_feholdexcept_setroundl):
16032 Undefine and redefine.
16033 [libc_feupdateenv_testf128] (libc_feupdateenv_testl): Likewise.
16034 (libm_alias_float_ldouble): Undefine and redefine.
16035 (libm_alias_double_ldouble): Likewise.
16036
16037 * math/Makefile [$(PERL) != no] (libm-test-incs): Remove variable.
16038
16039 2018-02-09 Wilco Dijkstra <wdijkstr@arm.com>
16040
16041 * sysdeps/aarch64/fpu/fpu_control.h: Use builtins for accessing
16042 FPCR/FPSR.
16043
16044 2018-02-09 Rical Jasan <ricaljasan@pacific.net>
16045
16046 * manual/creature.texi: Convert references to gcc.info to gcc.
16047 * manual/stdio.texi: Likewise.
16048 * manual/string.texi: Likewise.
16049
16050 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16051
16052 [BZ #17979]
16053 * posix/bits/types.h (__int_least8_t): New typedef.
16054 (__uint_least8_t): Likewise.
16055 (__int_least16_t): Likewise.
16056 (__uint_least16_t): Likewise.
16057 (__int_least32_t): Likewise.
16058 (__uint_least32_t): Likewise.
16059 (__int_least64_t): Likewise.
16060 (__uint_least64_t): Likewise.
16061 * sysdeps/generic/stdint.h (int_least8_t): Define using
16062 __int_least8_t.
16063 (int_least16_t): Define using __int_least16_t.
16064 (int_least32_t): Define using __int_least32_t.
16065 (int_least64_t): Define using __int_least64_t.
16066 (uint_least8_t): Define using __uint_least8_t.
16067 (uint_least16_t): Define using __uint_least16_t.
16068 (uint_least32_t): Define using __uint_least32_t.
16069 (uint_least64_t): Define using __uint_least64_t.
16070 * wcsmbs/uchar.h: Include <bits/types.h>.
16071 (char16_t): Define using __uint_least16_t conditional only on
16072 [!__USE_ISOCXX11].
16073 (char32_t): Define using __uint_least32_t conditional only on
16074 [!__USE_ISOCXX11].
16075 * wcsmbs/test-char-types.c: New file.
16076 * wcsmbs/Makefile (tests): Add test-char-types.
16077
16078 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
16079 version to 4.0.1.
16080
16081 2018-02-07 Zack Weinberg <zackw@panix.com>
16082
16083 * bits/_G_config.h: Move back to sysdeps/generic/_G_config.h.
16084 Delete all contents except for definitions of _G_HAVE_MMAP and
16085 _G_HAVE_MREMAP. Add commentary explaining those two symbols.
16086 * sysdeps/unix/sysv/linux/bits/_G_config.h: Move back to
16087 sysdeps/unix/sysv/linux/_G_config.h. Make same content
16088 change as above.
16089
16090 * libio/libio.h: Don't include bits/_G_config.h here.
16091 Include stddef.h with __need_wchar_t defined. Include
16092 bits/types/__mbstate_t.h, bits/types/wint_t.h, and gconv.h.
16093 Define _IO_iconv_t here, directly.
16094 Don't define _IO_HAVE_ST_BLKSIZE.
16095 * libio/libioP.h: Include _G_config.h here. Move include of
16096 shlib-compat.h up with rest of includes. Simplify conditionals
16097 controlling definition of _IO_JUMPS_OFFSET.
16098
16099 * csu/init.c: Remove always-true #if around entire file.
16100 Don't include stdio.h. Set _IO_stdin_used to hardwired
16101 constant 0x20001, and update commentary.
16102 * include/stdio.h, sysdeps/ieee754/ldbl-opt/nldbl-compat.h:
16103 Replace all uses of _G_va_list with __gnuc_va_list.
16104 * libio/filedoalloc.c: Use #if defined _STATBUF_ST_BLKSIZE
16105 instead of #if _IO_HAVE_ST_BLKSIZE.
16106 * libio/fileops.c: Test _G_HAVE_MREMAP with #if, not #ifdef.
16107 * libio/iofdopen.c, libio/iofopen.c: Test _G_HAVE_MMAP with #if,
16108 not #ifdef.
16109
16110 * libio/bits/libio.h: Move back to libio/libio.h and adjust
16111 multiple-include guard to match.
16112 Merge contents of libio/bits/libio-ldbl.h and include/libio.h
16113 into this file.
16114 Remove preprocessor conditionals that are always true and/or
16115 redundant to other preprocessor conditionals in the same nest.
16116 Include shlib-compat.h unconditionally.
16117 Error out if _LIBC is not defined, or if _ISOMAC is defined,
16118 or if _IO_MTSAFE_IO is defined but _IO_lock_t_defined is not
16119 defined after including stdio.h.
16120 Use __BEGIN_DECLS/__END_DECLS.
16121
16122 * libio/bits/libio-ldbl.h, include/bits/libio.h: Delete file.
16123 * include/stdio.h, libio/iolibio.h, libio/libioP.h: Include
16124 libio.h as <libio/libio.h> rather than as <bits/libio.h>.
16125
16126 2018-02-07 Zack Weinberg <zackw@panix.com>
16127
16128 * libio/bits/types/__fpos_t.h, libio/bits/types/__fpos64_t.h:
16129 New single-type headers split from _G_config.h.
16130 * libio/bits/types/cookie_io_functions_t.h
16131 * libio/bits/types/struct_FILE.h
16132 New single-type headers split from libio.h.
16133
16134 * libio/Makefile: Install the above new headers. Don't install
16135 libio.h, _G_config.h, bits/libio.h, bits/_G_config.h, or
16136 bits/libio-ldbl.h.
16137 * libio/_G_config.h, libio/libio.h: Delete file.
16138
16139 * libio/bits/libio.h: Remove improper-inclusion guard.
16140 Include stdio.h and don't repeat anything that it does.
16141 Define _IO_fpos_t as __fpos_t, _IO_fpos64_t as __fpos64_t,
16142 _IO_BUFSIZ as BUFSIZ, _IO_va_list as __gnuc_va_list,
16143 __io_read_fn as cookie_read_function_t,
16144 __io_write_fn as cookie_write_function_t,
16145 __io_seek_fn as cookie_seek_function_t,
16146 __io_close_fn as cookie_close_function_t,
16147 and _IO_cookie_io_functions_t as cookie_io_functions_t.
16148 Define _STDIO_USES_IOSTREAM, __HAVE_COLUMN, and _IO_file_flags
16149 here, in the "compatibility defines" section. Remove an #if 0
16150 block. Use the "body" macros from bits/types/struct_FILE.h to
16151 define _IO_getc_unlocked, _IO_putc_unlocked, _IO_feof_unlocked,
16152 and _IO_ferror_unlocked.
16153 Move prototypes of __uflow and __overflow...
16154
16155 * libio/stdio.h: ...here. Don't include bits/libio.h.
16156 Don't define _STDIO_USES_IOSTREAM. Get __gnuc_va_list
16157 directly from stdarg.h. Include bits/types/__fpos_t.h,
16158 bits/types/__fpos64_t.h, bits/types/struct_FILE.h,
16159 and, when __USE_GNU, bits/types/cookie_io_functions_t.h.
16160 Use __gnuc_va_list, not _G_va_list; __fpos_t, not _G_fpos_t;
16161 __fpos64_t, not _G_fpos64_t; FILE, not struct _IO_FILE;
16162 cookie_io_functions_t, not _IO_cookie_io_functions_t;
16163 __ssize_t, not _IO_ssize_t. Unconditionally define
16164 BUFSIZ as 8192 and EOF as (-1).
16165
16166 * libio/bits/stdio.h: Add multiple-include guard. Use the "body"
16167 macros from bits/types/struct_FILE.h instead of _IO_* macros
16168 from libio.h; use __gnuc_va_list instead of va_list and __ssize_t
16169 instead of _IO_ssize_t.
16170 * libio/bits/stdio2.h: Similarly.
16171
16172 * libio/iolibio.h: Add multiple-include guard.
16173 Include bits/libio.h after stdio.h.
16174 * libio/libioP.h: Add multiple-include guard.
16175 Include stdio.h and bits/libio.h before iolibio.h.
16176
16177 * include/bits/types/__fpos_t.h, include/bits/types/__fpos64_t.h
16178 * include/bits/types/cookie_io_functions_t.h
16179 * include/bits/types/struct_FILE.h: New wrappers.
16180
16181 * bits/_G_config.h, sysdeps/unix/sysv/linux/_G_config.h:
16182 Get definitions of _G_fpos_t and _G_fpos64_t from
16183 bits/types/__fpos_t.h and bits/types/__fpos64_t.h
16184 respectively. Remove improper-inclusion guards.
16185
16186 * conform/data/stdio.h-data: Update expectations of va_list.
16187 * scripts/check-installed-headers.sh: Remove special case for
16188 libio.h and _G_config.h.
16189
16190 2018-02-07 Joseph Myers <joseph@codesourcery.com>
16191
16192 [BZ #15105]
16193 [BZ #19463]
16194 * include/sys/sysmacros.h [!_ISOMAC]
16195 (__SYSMACROS_NEED_IMPLEMENTATION): Define macro.
16196 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC]
16197 (_SYS_SYSMACROS_H_WRAPPER): Likewise.
16198 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_major): Use
16199 libc_hidden_proto.
16200 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_minor): Likewise.
16201 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (gnu_dev_makedev):
16202 Likewise.
16203 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_DECL_TEMPL):
16204 Undefine and redefine to add use __gnu_dev_ prefix.
16205 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__SYSMACROS_IMPL_TEMPL):
16206 Likewise.
16207 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_major): Declare
16208 and define as hidden inline function.
16209 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_minor):
16210 Likewise.
16211 [!_SYS_SYSMACROS_H_WRAPPER && !_ISOMAC] (__gnu_dev_makedev):
16212 Likewise.
16213 * misc/makedev.c (OUT_OF_LINE_IMPL_TEMPL): Use __gnu_dev_ prefix.
16214 (gnu_dev_major): Use weak_alias and libc_hidden_weak.
16215 (gnu_dev_minor): Likewise.
16216 (gnu_dev_makedev): Likewise.
16217 * csu/check_fds.c (check_one_fd): Use __gnu_dev_makedev instead of
16218 makedev.
16219 * posix/wordexp.c (exec_comm_child): Likewise.
16220 * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Use __gnu_dev_minor
16221 instead of minor and __gnu_dev_major instead of major.
16222 * sysdeps/unix/sysv/linux/device-nrs.h (DEV_TTY_P): Use
16223 __gnu_dev_major instead of major.
16224 * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): Use
16225 __gnu_dev_major instead of gnu_dev_major and __gnu_dev_minor
16226 instead of gnu_dev_minor.
16227 * sysdeps/unix/sysv/linux/ptsname.c (MASTER_P): Likewise.
16228 (SLAVE_P): Likewise.
16229 (__ptsname_internal): Use __gnu_dev_minor instead of minor.
16230 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Use __gnu_dev_major
16231 instead of major.
16232
16233 [BZ #21313]
16234 * locale/weight.h (findidx): Disable -Wmaybe-uninitialized for -Os
16235 in another place.
16236 * locale/weightwc.h (findidx): Likewise.
16237
16238 2018-02-07 Wilco Dijkstra <wdijkstr@arm.com>
16239
16240 * manual/probes.texi (slowlog): Delete documentation of removed probe.
16241 (slowlog_inexact): Likewise
16242 * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Remove slow paths.
16243 * sysdeps/ieee754/dbl-64/ulog.h: Remove unused declarations.
16244
16245 2018-02-07 Igor Gnatenko <ignatenko@redhat.com>
16246
16247 [BZ #22797]
16248 * sysdeps/unix/sysv/linux/bits/mman-shared.h (pkey_get): Add
16249 missing second underscore to parameter name.
16250
16251 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16252
16253 [BZ #14508]
16254 [BZ #15512]
16255 [BZ #17082]
16256 [BZ #20530]
16257 * bits/byteswap.h: Update file comment. Do not include
16258 <bits/byteswap-16.h>.
16259 (__bswap_constant_16): Cast result to __uint16_t. Use signed 0xff
16260 constant.
16261 (__bswap_16): Define as inline function.
16262 (__bswap_constant_32): Reformat definition.
16263 (__bswap_32): Always define as inline function, not macro, using
16264 __uint32_t. Use __builtin_bswap32 if [__GNUC_PREREQ (4, 3)],
16265 otherwise __bswap_constant_32.
16266 (__bswap_constant_64): Reformat definition. Do not use
16267 __extension__ here.
16268 (__bswap_64): Always define as inline function, not macro. Use
16269 __extension__ on function definition. Use __builtin_bswap64 if
16270 [__GNUC_PREREQ (4, 3)], otherwise __bswap_constant_64.
16271 * string/test-endian-file-scope.c: New file.
16272 * string/test-endian-sign-conversion.c: Likewise.
16273 * string/Makefile (headers): Remove bits/byteswap-16.h.
16274 (tests): Add test-endian-file-scope and
16275 test-endian-sign-conversion.
16276 (CFLAGS-test-endian-sign-conversion.c): New variable.
16277 * bits/byteswap-16.h: Remove file.
16278 * sysdeps/ia64/bits/byteswap-16.h: Likewise.
16279 * sysdeps/ia64/bits/byteswap.h: Likewise.
16280 * sysdeps/m68k/bits/byteswap.h: Likewise.
16281 * sysdeps/s390/bits/byteswap-16.h: Likewise.
16282 * sysdeps/s390/bits/byteswap.h: Likewise.
16283 * sysdeps/tile/bits/byteswap.h: Likewise.
16284 * sysdeps/x86/bits/byteswap-16.h: Likewise.
16285 * sysdeps/x86/bits/byteswap.h: Likewise.
16286
16287 [BZ #17721]
16288 * misc/sys/cdefs.h [!__GNUC__ && (__cplusplus || (__STDC_VERSION__
16289 && __STDC_VERSION__ >= 199901L))] (__inline): Define to inline.
16290 [!__GNUC_PREREQ (2,92) && __STDC_VERSION__ && __STDC_VERSION__ >=
16291 199901L] (__restrict): Define to restrict.
16292
16293 [BZ #19667]
16294 * string/testcopy.c: Include <support/support.h>. Do not include
16295 <malloc.h>. Use <support/test-driver.c>.
16296 (main): Rename to do_test. Make static. Use xmalloc instead of
16297 malloc.
16298
16299 [BZ #13575]
16300 * posix/bits/posix1_lim.h: Include <bits/wordsize.h>.
16301 [!SSIZE_MAX && !(__WORDSIZE == 64 || __WORDSIZE32_SIZE_ULONG)]
16302 (SSIZE_MAX): Define to INT_MAX.
16303 * posix/test-ssize-max.c: New file.
16304 * posix/Makefile (tests): Add test-ssize-max.
16305
16306 [BZ #19668]
16307 * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c: Include
16308 <support/support.h>. Do not include <malloc.h>.
16309 (query_auxv): Use xmalloc instead of malloc.
16310
16311 [BZ #14553]
16312 * posix/sys/types.h (loff_t): Only define for [__USE_MISC].
16313 * sysdeps/unix/sysv/linux/sys/quota.h (dqoff): Use __loff_t
16314 instead of loff_t.
16315
16316 2018-02-06 Florian Weimer <fweimer@redhat.com>
16317
16318 [BZ #18023]
16319 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16320 Use scratch_buffer instead of extend_alloca.
16321
16322 2018-02-06 Zack Weinberg <zackw@panix.com>
16323
16324 * libio/stdio.h: Don't define getc or putc as macros.
16325 * libio/bits/stdio.h (getchar, putchar): Use getc and putc,
16326 not _IO_getc and _IO_putc.
16327
16328 * stdio-common/tstgetln.c: Don't redefine FILE, va_list, or BUFSIZ.
16329 * stdio-common/tstgetln.c: Don't redefine ssize_t.
16330
16331 2018-02-06 Joseph Myers <joseph@codesourcery.com>
16332
16333 * sysdeps/gnu/netinet/tcp.h (TCP_FASTOPEN_KEY): New macro.
16334 (TCP_FASTOPEN_NO_COOKIE): Likewise.
16335
16336 * sysdeps/unix/sysv/linux/bits/in.h (IPV6_FREEBIND): New macro.
16337
16338 [BZ #14890]
16339 * elf/elf.h (NT_PRFPREG): New macro.
16340 (NT_S390_VXRS_LOW): Likewise.
16341 (NT_S390_VXRS_HIGH): Likewise.
16342 (NT_S390_GS_CB): Likewise.
16343 (NT_S390_GS_BC): Likewise.
16344 (NT_S390_RI_CB): Likewise.
16345
16346 * sysdeps/unix/sysv/linux/aarch64/bits/mman.h [__USE_MISC]
16347 (MAP_SYNC): New macro.
16348 * sysdeps/unix/sysv/linux/arm/bits/mman.h [__USE_MISC] (MAP_SYNC):
16349 Likewise.
16350 * sysdeps/unix/sysv/linux/ia64/bits/mman.h [__USE_MISC]
16351 (MAP_SYNC): Likewise.
16352 * sysdeps/unix/sysv/linux/m68k/bits/mman.h [__USE_MISC]
16353 (MAP_SYNC): Likewise.
16354 * sysdeps/unix/sysv/linux/microblaze/bits/mman.h [__USE_MISC]
16355 (MAP_SYNC): Likewise.
16356 * sysdeps/unix/sysv/linux/nios2/bits/mman.h [__USE_MISC]
16357 (MAP_SYNC): Likewise.
16358 * sysdeps/unix/sysv/linux/riscv/bits/mman.h [__USE_MISC]
16359 (MAP_SYNC): Likewise.
16360 * sysdeps/unix/sysv/linux/s390/bits/mman.h [__USE_MISC]
16361 (MAP_SYNC): Likewise.
16362 * sysdeps/unix/sysv/linux/sh/bits/mman.h [__USE_MISC] (MAP_SYNC):
16363 Likewise.
16364 * sysdeps/unix/sysv/linux/x86/bits/mman.h [__USE_MISC] (MAP_SYNC):
16365 Likewise.
16366
16367 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_MISC]
16368 (MAP_SHARED_VALIDATE): New macro.
16369 * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC]
16370 (MAP_SHARED_VALIDATE): Likewise.
16371
16372 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16373
16374 * elf/dl-addr.c (determine_info): Use ADDRIDX with DT_GNU_HASH.
16375 * elf/dl-lookup.c (_dl_setup_hash): Likewise.
16376 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
16377
16378 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16379
16380 * elf/elf.h (DT_SYMTAB_SHNDX): New. Set to 34.
16381 (DT_NUM): Updated to 35.
16382
16383 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16384
16385 * sysdeps/i386/dl-machine.h (elf_machine_rel): Replace
16386 __builtin_expect with __glibc_likely and __glibc_unlikely.
16387 (elf_machine_rela): Likewise.
16388 (elf_machine_lazy_rel): Likewise.
16389
16390 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16391
16392 * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Replace
16393 __builtin_expect with __glibc_likely and __glibc_unlikely.
16394 (elf_machine_lazy_rel): Likewise.
16395
16396 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
16397
16398 [BZ #22638]
16399 * sysdeps/sparc/sparc32/start.S (_start): Check PIC instead of
16400 SHARED.
16401 * sysdeps/sparc/sparc64/start.S (_start): Likewise.
16402
16403 2018-02-05 Andreas Schwab <schwab@suse.de>
16404
16405 [BZ #22761]
16406 * assert/assert-perr.c (__assert_perror_fail): Append %n to format
16407 string.
16408
16409 2018-02-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
16410
16411 * stdlib/test-atexit-race-common.c [!defined PTHREAD_STACK_MIN]: Do
16412 not check against PTHREAD_STACK_MIN.
16413
16414 2018-02-02 Sean McKean <smckean83@gmail.com>
16415
16416 [BZ #22735]
16417 * time/time.h (clock): Reference CLOCKS_PER_SEC in comment.
16418
16419 2018-02-02 Florian Weimer <fweimer@redhat.com>
16420
16421 [BZ #22753]
16422 * sysdeps/posix/preadv2.c (preadv2): Handle offset == -1.
16423 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
16424 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
16425 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likweise.
16426 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
16427 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
16428 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
16429 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likweise.
16430 * manual/llio.texi (Scatter-Gather): Mention offset -1.
16431 * misc/tst-preadvwritev-common.c (do_test_without_offset): New.
16432 * misc/tst-preadvwritev2.c (do_test): Call it.
16433 * misc/tst-preadvwritev64v2.c (do_test): Likewise.
16434
16435 2018-02-02 Siddhesh Poyarekar <siddhesh@sourceware.org>
16436
16437 * sysdeps/aarch64/memcmp.S: Use L() macro for labels.
16438
16439 * benchtests/bench-memcmp.c: Print json instead of plain text.
16440
16441 * benchtests/bench-memcmp.c (do_test): Call realloc_buf for
16442 every test run.
16443
16444 2018-02-01 Joseph Myers <joseph@codesourcery.com>
16445
16446 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
16447 version to 4.15.
16448 (s390_sthyi): New syscall.
16449
16450 * sysdeps/generic/ldbl-classify-compat.h: New file.
16451 * sysdeps/arm/ldbl-classify-compat.h: Likewise.
16452 * sysdeps/m68k/coldfire/ldbl-classify-compat.h: Likewise.
16453 * sysdeps/microblaze/ldbl-classify-compat.h: Likewise.
16454 * sysdeps/mips/ldbl-classify-compat.h: Likewise.
16455 * sysdeps/nios2/ldbl-classify-compat.h: Likewise.
16456 * sysdeps/sh/ldbl-classify-compat.h: Likewise.
16457 * sysdeps/ieee754/dbl-64/s_finite.c: Include
16458 <ldbl-classify-compat.h>.
16459 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16460 * sysdeps/ieee754/dbl-64/s_isinf.c: Include
16461 <ldbl-classify-compat.h>.
16462 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16463 * sysdeps/ieee754/dbl-64/s_isnan.c: Include
16464 <ldbl-classify-compat.h>.
16465 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16466 * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Include
16467 <ldbl-classify-compat.h>.
16468 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16469 * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Include
16470 <ldbl-classify-compat.h>.
16471 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16472 * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Include
16473 <ldbl-classify-compat.h>.
16474 [LDBL_CLASSIFY_COMPAT]: Test value, not whether defined.
16475 * sysdeps/arm/math_private.h (LDBL_CLASSIFY_COMPAT): Remove macro.
16476 * sysdeps/mips/math_private.h (LDBL_CLASSIFY_COMPAT): Likewise.
16477 * sysdeps/m68k/coldfire/math_private.h: Remove file.
16478 * sysdeps/microblaze/math_private.h: Likewise.
16479 * sysdeps/nios2/math_private.h: Likewise.
16480 * sysdeps/sh/math_private.h: Likewise.
16481
16482 * sysdeps/m68k/coldfire/fpu/math_private.h: Move to ....
16483 * sysdeps/m68k/coldfire/math_private.h: ... here.
16484 * sysdeps/m68k/coldfire/nofpu/math_private.h: Remove file.
16485 * sysdeps/tile/math_private.h: Likewise.
16486 * sysdeps/microblaze/math_private.h (libc_feholdexcept_setround):
16487 Remove macro.
16488 * sysdeps/nios2/math_private.h (libc_feholdexcept_setround):
16489 Likewise.
16490
16491 * sysdeps/m68k/coldfire/nofpu/math_private.h (libc_fesetround):
16492 Remove macro.
16493 (libc_fetestexcept): Likewise.
16494 (libc_feupdateenv_test): Likewise.
16495 * sysdeps/microblaze/math_private.h (libc_fesetround): Likewise.
16496 (libc_fetestexcept): Likewise.
16497 (libc_feupdateenv_test): Likewise.
16498 * sysdeps/nios2/math_private.h (libc_fesetround): Likewise.
16499 (libc_fetestexcept): Likewise.
16500 (libc_feupdateenv_test): Likewise.
16501 * sysdeps/tile/math_private.h (libc_fesetround): Likewise.
16502 (libc_fetestexcept): Likewise.
16503 (libc_feupdateenv_test): Likewise.
16504
16505 * sysdeps/generic/math_private.h
16506 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feholdexcept):
16507 New inline function.
16508 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feholdexcept):
16509 Likewise.
16510
16511 * include/fenv.h [!_ISOMAC && !FE_TONEAREST]: Give #error.
16512 [!_ISOMAC] (FE_HAVE_ROUNDING_MODES): New macro.
16513 * sysdeps/generic/math_private.h
16514 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fegetenv): New
16515 inline function.
16516 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fegetenv):
16517 Likewise.
16518 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (fesetenv):
16519 Likewise.
16520 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__fesetenv):
16521 Likewise.
16522 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (feupdateenv):
16523 Likewise.
16524 [!FE_HAVE_ROUNDING_MODES && FE_ALL_EXCEPT == 0] (__feupdateenv):
16525 Likewise.
16526 [!FE_HAVE_ROUNDING_MODES] (fegetround): Likewise.
16527 [!FE_HAVE_ROUNDING_MODES] (__fegetround): Likewise.
16528 [!FE_HAVE_ROUNDING_MODES] (fesetround): Likewise.
16529 [!FE_HAVE_ROUNDING_MODES] (__fesetround): Likewise.
16530 * sysdeps/tile/math_private.h (fegetenv): Remove inline function.
16531 (__fegetenv): Likewise.
16532 (fesetenv): Likewise.
16533 (__fesetenv): Likewise.
16534 (feupdateenv): Likewise.
16535 (__feupdateenv): Likewise.
16536 (fegetround): Likewise.
16537 (__fegetround): Likewise.
16538 (fesetround): Likewise.
16539 (__fesetround): Likewise.
16540
16541 * sysdeps/generic/math_private.h [FE_ALL_EXCEPT == 0]
16542 (feraiseexcept): New macro.
16543 [FE_ALL_EXCEPT == 0] (__feraiseexcept): Likewise.
16544 * sysdeps/m68k/coldfire/nofpu/math_private.h (feraiseexcept):
16545 Remove macro.
16546 (__feraiseexcept): Likewise.
16547 (feclearexcept): Likewise.
16548 * sysdeps/microblaze/math_private.h (feraiseexcept): Likewise.
16549 (__feraiseexcept): Likewise.
16550 (feclearexcept): Likewise.
16551 * sysdeps/nios2/math_private.h (feraiseexcept): Likewise.
16552 (__feraiseexcept): Likewise.
16553 (feclearexcept): Likewise.
16554 * sysdeps/tile/math_private.h (feraiseexcept): Likewise.
16555 (__feraiseexcept): Likewise.
16556 (feclearexcept): Likewise.
16557 (fetestexcept): Likewise.
16558
16559 * sysdeps/m68k/coldfire/math-tests.h: New file.
16560
16561 * sysdeps/m68k/fpu/bits/fenv.h: Move to ....
16562 * sysdeps/m68k/bits/fenv.h: ... here.
16563 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INEXACT): Do
16564 not define.
16565 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DIVBYZERO):
16566 Likewise.
16567 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UNDERFLOW):
16568 Likewise.
16569 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_OVERFLOW):
16570 Likewise.
16571 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_INVALID):
16572 Likewise.
16573 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_ALL_EXCEPT):
16574 Define to 0.
16575 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__]
16576 (__FE_UNDEFINED): New enum constant.
16577 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_TOWARDZERO):
16578 Do not define.
16579 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_DOWNWARD):
16580 Likewise.
16581 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_UPWARD):
16582 Likewise.
16583 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (fenv_t): Define
16584 to match generic bits/fenv.h.
16585 [!__HAVE_68881__ && !__HAVE_FPU__ && !__mcffpu__] (FE_NOMASK_ENV):
16586 Do not define.
16587
16588 * soft-fp/double.h (union _FP_UNION_D): Do not use attribute
16589 packed on bits.
16590 * soft-fp/extended.h (union _FP_UNION_E): Likewise.
16591 * soft-fp/half.h (union _FP_UNION_H): Likewise.
16592 * soft-fp/quad.h (union _FP_UNION_Q): Likewise.
16593 * soft-fp/single.h (union _FP_UNION_S): Likewise.
16594
16595 2018-02-01 Carlos O'Donell <carlos@redhat.com>
16596 Ramin Seyed-Moussavi <lordrasmus@gmail.com>
16597 Joseph Myers <joseph@codesourcery.com>
16598
16599 [BZ #21314]
16600 * sysdeps/ieee754/dbl-64/s_log1p.c: Include <libc-diag.h>.
16601 (__log1p): Disable -Wmaybe-uninitialized for -Os around
16602 computation using c.
16603 * sysdeps/ieee754/flt-32/s_log1pf.c: Include <libc-diag.h>.
16604 (__log1pf): Disable -Wmaybe-uninitialized for -Os around
16605 computation using c.
16606
16607 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16608
16609 * version.h (RELEASE): Set to "development".
16610 (VERSION): Set to "2.27.9000".
16611 * NEWS (2.28): New section.
16612
16613 * version.h (RELEASE): Set to "stable".
16614 (VERSION): Set to "2.27".
16615 * include/features.h (__GLIBC_MINOR__): Set to 2.27.
16616
16617 * NEWS: Add the list of bugs fixed in 2.27.
16618
16619 2018-02-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
16620
16621 * stdlib/test-atexit-race-common.c (do_test): Check stack size
16622 against PTHREAD_STACK_MIN.
16623
16624 2018-02-01 Dmitry V. Levin <ldv@altlinux.org>
16625
16626 * manual/contrib.texi (Palmer Dabbelt, Arjun Shankar, Florian Weimer):
16627 New entries.
16628 (Rafal Luzynski, Andreas Schwab): Update.
16629
16630 2018-02-01 Rafal Luzynski <digitalfreak@lingonborough.com>
16631
16632 [BZ #10871]
16633 * NEWS: List the languages which actually use the alternative
16634 months feature in this release. Also explain that "alt_mon" and
16635 "ab_alt_mon" are optional.
16636
16637 2018-01-31 Il'ya Malakhov <ilmalakhov@yandex.ru>
16638
16639 [BZ #22765]
16640 * crypt/badsalttest.c (do_test): Set cd.initialized to 0.
16641
16642 2018-01-31 Dmitry V. Levin <ldv@altlinux.org>
16643
16644 * manual/install.texi (Tools for Compilation): Update the newest
16645 versions of gcc, binutils, texinfo, gawk, bison, and sed.
16646 * INSTALL: Regenerated.
16647
16648 2018-01-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
16649
16650 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Use __glibc_likely
16651 instead of __builtin_expect.
16652
16653 2018-01-30 Florian Weimer <fweimer@redhat.com>
16654
16655 * nss/bug17079.c (do_test): Use nss_files only for reading passwd
16656 data.
16657 * nss/tst-nss-getpwent.c (do_test): Likewise.
16658
16659 2018-01-30 Rafal Luzynski <digitalfreak@lingonborough.com>
16660
16661 [BZ #10871]
16662 * localedata/locales/hr_HR (mon): Rename to...
16663 (alt_mon): This.
16664 (mon): Import from CLDR (genitive case).
16665 (d_t_fmt): Update the comment.
16666
16667 2018-01-29 Andreas Schwab <schwab@linux-m68k.org>
16668
16669 * sysdeps/posix/fpathconf.c (__fpathconf): Verify the values of
16670 _POSIX_CHOWN_RESTRICTED, _POSIX_NO_TRUNC, _POSIX_VDISABLE.
16671 * sysdeps/posix/pathconf.c (__pathconf): Likewise.
16672
16673 2018-01-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
16674
16675 * mach/Versions: Fix version when __mach_host_self_ was added.
16676 * hurd/Versions: Fix version when _hurd_exec_paths was added.
16677 * sysdeps/mach/hurd/i386/ld.abilist: New file.
16678 * sysdeps/mach/hurd/i386/libBrokenLocale.abilist: New file.
16679 * sysdeps/mach/hurd/i386/libanl.abilist: New file.
16680 * sysdeps/mach/hurd/i386/libc.abilist: New file.
16681 * sysdeps/mach/hurd/i386/libcrypt.abilist: New file.
16682 * sysdeps/mach/hurd/i386/libdl.abilist: New file.
16683 * sysdeps/mach/hurd/i386/libm.abilist: New file.
16684 * sysdeps/mach/hurd/i386/libnsl.abilist: New file.
16685 * sysdeps/mach/hurd/i386/libresolv.abilist: New file.
16686 * sysdeps/mach/hurd/i386/librt.abilist: New file.
16687 * sysdeps/mach/hurd/i386/libutil.abilist: New file.
16688 * sysdeps/pthread/allocalim.h (__libc_use_alloca): Commute operands of
16689 || to respect codestyle.
16690 * libio/tst-memstream3.c (_FWRITE): Rename to FWRITE_FUNC.
16691 (do_test_bz20181): Rename accordingly.
16692 * malloc/malloc.c: Include <assert.h>.
16693 (assert): Do not define.
16694 [!defined NDEBUG] (__assert_fail): Define to __malloc_assert.
16695 * bits/fcntl.h: Fix comment for FREAD and FWRITE.
16696 * sysdeps/mach/hurd/bits/fcntl.h: Likewise.
16697 * sysdeps/mach/hurd/hp-timing.h: New file.
16698 * sysdeps/mach/hurd/i386/tlsdesc.sym: New file.
16699
16700 2018-01-29 Darius Rad <darius@bluespec.com>
16701
16702 * sysdeps/unix/sysv/linux/riscv/ipc_priv.h: New file.
16703
16704 2018-01-29 Palmer Dabbelt <palmer@sifive.com>
16705
16706 * sysdeps/init_array/crti.S (.section .init_array): Add
16707 PREINIT_FUNCTION when defined.
16708 * manual/math.texi: RISC-V supports _Float128 and _Float64x.
16709 * config.h.in: Regenerate.
16710 * manual/platform.texi: Add RISC-V documenation for
16711 __riscv_flush_icache.
16712 * sysdeps/riscv/__longjmp.S: New file.
16713 * sysdeps/riscv/backtrace.c: Likewise.
16714 * sysdeps/riscv/bits/endian.h: Likewise.
16715 * sysdeps/riscv/bits/setjmp.h: Likewise.
16716 * sysdeps/riscv/bits/wordsize.h: Likewise.
16717 * sysdeps/riscv/bsd-_setjmp.c: Likewise.
16718 * sysdeps/riscv/bsd-setjmp.c: Likewise.
16719 * sysdeps/riscv/dl-trampoline.S: Likewise.
16720 * sysdeps/riscv/gccframe.h: Likewise.
16721 * sysdeps/riscv/jmpbuf-offsets.h: Likewise.
16722 * sysdeps/riscv/jmpbuf-unwind.h: Likewise.
16723 * sysdeps/riscv/machine-gmon.h: Likewise.
16724 * sysdeps/riscv/memusage.h: Likewise.
16725 * sysdeps/riscv/setjmp.S: Likewise.
16726 * sysdeps/riscv/sys/asm.h: Likewise.
16727 * sysdeps/riscv/tls-macros.h: Likewise.
16728 * sysdeps/riscv/dl-tls.h: New file.
16729 * sysdeps/riscv/libc-tls.c: Likewise.
16730 * sysdeps/riscv/nptl/tcb-offsets.sym: Likewise.
16731 * sysdeps/riscv/nptl/tls.h: Likewise.
16732 * sysdeps/riscv/stackinfo.h: Likewise.
16733 * sysdeps/riscv/bits/fenv.h: New file.
16734 * sysdeps/riscv/e_sqrtl.c: Likewise.
16735 * sysdeps/riscv/fpu_control.h: Likewise.
16736 * sysdeps/riscv/math-tests.h: Likewise.
16737 * sysdeps/riscv/nofpu/Implies: Likewise.
16738 * sysdeps/riscv/sfp-machine.h: Likewise.
16739 * sysdeps/riscv/tininess.h: Likewise.
16740 * sysdeps/riscv/rv64/rvd/s_ceil.c: New file.
16741 * sysdeps/riscv/rv64/rvd/s_floor.c: Likewise.
16742 * sysdeps/riscv/rv64/rvd/s_llrint.c: Likewise.
16743 * sysdeps/riscv/rv64/rvd/s_llround.c: Likewise.
16744 * sysdeps/riscv/rv64/rvd/s_lrint.c: Likewise.
16745 * sysdeps/riscv/rv64/rvd/s_lround.c: Likewise.
16746 * sysdeps/riscv/rv64/rvd/s_nearbyint.c: Likewise.
16747 * sysdeps/riscv/rv64/rvd/s_rint.c: Likewise.
16748 * sysdeps/riscv/rv64/rvd/s_round.c: Likewise.
16749 * sysdeps/riscv/rv64/rvd/s_roundeven.c: Likewise.
16750 * sysdeps/riscv/rv64/rvd/s_trunc.c: Likewise.
16751 * sysdeps/riscv/rv64/rvf/s_llrintf.c: Likewise.
16752 * sysdeps/riscv/rv64/rvf/s_llroundf.c: Likewise.
16753 * sysdeps/riscv/rv64/rvf/s_lrintf.c: Likewise.
16754 * sysdeps/riscv/rv64/rvf/s_lroundf.c: Likewise.
16755 * sysdeps/riscv/rvd/e_sqrt.c: Likewise.
16756 * sysdeps/riscv/rvd/s_copysign.c: Likewise.
16757 * sysdeps/riscv/rvd/s_finite.c: Likewise.
16758 * sysdeps/riscv/rvd/s_fma.c: Likewise.
16759 * sysdeps/riscv/rvd/s_fmax.c: Likewise.
16760 * sysdeps/riscv/rvd/s_fmin.c: Likewise.
16761 * sysdeps/riscv/rvd/s_fpclassify.c: Likewise.
16762 * sysdeps/riscv/rvd/s_isinf.c: Likewise.
16763 * sysdeps/riscv/rvd/s_isnan.c: Likewise.
16764 * sysdeps/riscv/rvd/s_issignaling.c: Likewise.
16765 * sysdeps/riscv/rvf/e_sqrtf.c: Likewise.
16766 * sysdeps/riscv/rvf/fclrexcpt.c: Likewise.
16767 * sysdeps/riscv/rvf/fegetenv.c: Likewise.
16768 * sysdeps/riscv/rvf/fegetmode.c: Likewise.
16769 * sysdeps/riscv/rvf/fegetround.c: Likewise.
16770 * sysdeps/riscv/rvf/feholdexcpt.c: Likewise.
16771 * sysdeps/riscv/rvf/fesetenv.c: Likewise.
16772 * sysdeps/riscv/rvf/fesetexcept.c: Likewise.
16773 * sysdeps/riscv/rvf/fesetmode.c: Likewise.
16774 * sysdeps/riscv/rvf/fesetround.c: Likewise.
16775 * sysdeps/riscv/rvf/feupdateenv.c: Likewise.
16776 * sysdeps/riscv/rvf/fgetexcptflg.c: Likewise.
16777 * sysdeps/riscv/rvf/fraiseexcpt.c: Likewise.
16778 * sysdeps/riscv/rvf/fsetexcptflg.c: Likewise.
16779 * sysdeps/riscv/rvf/ftestexcept.c: Likewise.
16780 * sysdeps/riscv/rvf/get-rounding-mode.h: Likewise.
16781 * sysdeps/riscv/rvf/math_private.h: Likewise.
16782 * sysdeps/riscv/rvf/s_ceilf.c: Likewise.
16783 * sysdeps/riscv/rvf/s_copysignf.c: Likewise.
16784 * sysdeps/riscv/rvf/s_finitef.c: Likewise.
16785 * sysdeps/riscv/rvf/s_floorf.c: Likewise.
16786 * sysdeps/riscv/rvf/s_fmaf.c: Likewise.
16787 * sysdeps/riscv/rvf/s_fmaxf.c: Likewise.
16788 * sysdeps/riscv/rvf/s_fminf.c: Likewise.
16789 * sysdeps/riscv/rvf/s_fpclassifyf.c: Likewise.
16790 * sysdeps/riscv/rvf/s_isinff.c: Likewise.
16791 * sysdeps/riscv/rvf/s_isnanf.c: Likewise.
16792 * sysdeps/riscv/rvf/s_issignalingf.c: Likewise.
16793 * sysdeps/riscv/rvf/s_nearbyintf.c: Likewise.
16794 * sysdeps/riscv/rvf/s_rintf.c: Likewise.
16795 * sysdeps/riscv/rvf/s_roundevenf.c: Likewise.
16796 * sysdeps/riscv/rvf/s_roundf.c: Likewise.
16797 * sysdeps/riscv/rvf/s_truncf.c: Likewise.
16798 * sysdeps/riscv/nptl/bits/pthreadtypes-arch.h: New file.
16799 * sysdeps/riscv/nptl/bits/semaphore.h: Likewise.
16800 * sysdeps/riscv/nptl/libc-lowlevellock.c: Likewise.
16801 * sysdeps/unix/sysv/linux/riscv/atomic-machine.h: Likewise.
16802 * sysdeps/riscv/nptl/nptl-sysdep.S: New file.
16803 * sysdeps/unix/sysv/linux/riscv/arch-fork.h: Likewise.
16804 * sysdeps/unix/sysv/linux/riscv/clone.S: Likewise.
16805 * sysdeps/unix/sysv/linux/riscv/profil-counter.h: Likewise.
16806 * sysdeps/unix/sysv/linux/riscv/pt-vfork.S: Likewise.
16807 * sysdeps/unix/sysv/linux/riscv/syscall.c: Likewise.
16808 * sysdeps/unix/sysv/linux/riscv/sysdep.S: Likewise.
16809 * sysdeps/unix/sysv/linux/riscv/sysdep.h: Likewise.
16810 * sysdeps/unix/sysv/linux/riscv/vfork.S: Likewise.
16811 * sysdeps/riscv/nptl/pthread-offsets.h: New file.
16812 * sysdeps/riscv/nptl/pthreaddef.h: Likewise.
16813 * sysdeps/unix/sysv/linux/riscv/bits/fcntl.h: Likewise.
16814 * sysdeps/unix/sysv/linux/riscv/bits/mman.h: Likewise.
16815 * sysdeps/unix/sysv/linux/riscv/bits/sigcontext.h: Likewise.
16816 * sysdeps/unix/sysv/linux/riscv/dl-cache.h: Likewise.
16817 * sysdeps/unix/sysv/linux/riscv/flush-icache.c: Likewise.
16818 * sysdeps/unix/sysv/linux/riscv/getcontext.S: Likewise.
16819 * sysdeps/unix/sysv/linux/riscv/init-first.c: Likewise.
16820 * sysdeps/unix/sysv/linux/riscv/libc-vdso.h: Likewise.
16821 * sysdeps/unix/sysv/linux/riscv/makecontext.c: Likewise.
16822 * sysdeps/unix/sysv/linux/riscv/readelflib.c: Likewise.
16823 * sysdeps/unix/sysv/linux/riscv/register-dump.h: Likewise.
16824 * sysdeps/unix/sysv/linux/riscv/setcontext.S: Likewise.
16825 * sysdeps/unix/sysv/linux/riscv/sigcontextinfo.h: Likewise.
16826 * sysdeps/unix/sysv/linux/riscv/swapcontext.S: Likewise.
16827 * sysdeps/unix/sysv/linux/riscv/sys/cachectl.h: Likewise.
16828 * sysdeps/unix/sysv/linux/riscv/sys/procfs.h: Likewise.
16829 * sysdeps/unix/sysv/linux/riscv/sys/ucontext.h: Likewise.
16830 * sysdeps/unix/sysv/linux/riscv/sys/user.h: Likewise.
16831 * sysdeps/unix/sysv/linux/riscv/ucontext-macros.h: Likewise.
16832 * sysdeps/unix/sysv/linux/riscv/ucontext_i.sym: Likewise.
16833 * sysdeps/unix/sysv/linux/riscv/dl-static.c: New file.
16834 * sysdeps/unix/sysv/linux/riscv/ldconfig.h: Likewise.
16835 * sysdeps/unix/sysv/linux/riscv/ldsodefs.h: Likewise.
16836 * sysdeps/riscv/nofpu/libm-test-ulps: New file.
16837 * sysdeps/riscv/nofpu/libm-test-ulps-name: Likewise.
16838 * sysdeps/riscv/rv64/rvd/libm-test-ulps: Likewise.
16839 * sysdeps/riscv/rv64/rvd/libm-test-ulps-name: Likewise.
16840 * sysdeps/unix/sysv/linux/riscv/localplt.data: Likewise.
16841 * sysdeps/unix/sysv/linux/riscv/rv64/c++-types.data: Likewise.
16842 * sysdeps/unix/sysv/linux/riscv/rv64/ld.abilist: Likewise.
16843 * sysdeps/unix/sysv/linux/riscv/rv64/libanl.abilist: Likewise.
16844 * sysdeps/unix/sysv/linux/riscv/rv64/libc.abilist: Likewise.
16845 * sysdeps/unix/sysv/linux/riscv/rv64/libdl.abilist: Likewise.
16846 * sysdeps/unix/sysv/linux/riscv/rv64/libm.abilist: Likewise.
16847 * sysdeps/unix/sysv/linux/riscv/rv64/libnsl.abilist: Likewise.
16848 * sysdeps/unix/sysv/linux/riscv/rv64/librt.abilist: Likewise.
16849 * sysdeps/unix/sysv/linux/riscv/rv64/libutil.abilist: Likewise.
16850 * sysdeps/riscv/Implies: New file.
16851 * sysdeps/riscv/Makefile: Likewise.
16852 * sysdeps/riscv/configure: Likewise.
16853 * sysdeps/riscv/configure.ac: Likewise.
16854 * sysdeps/riscv/nptl/Makefile: Likewise.
16855 * sysdeps/riscv/preconfigure: Likewise.
16856 * sysdeps/riscv/rv64/Implies-after: Likewise.
16857 * sysdeps/riscv/rv64/rvd/Implies: Likewise.
16858 * sysdeps/riscv/rv64/rvf/Implies: Likewise.
16859 * sysdeps/unix/sysv/linux/riscv/Implies: Likewise.
16860 * sysdeps/unix/sysv/linux/riscv/Makefile: Likewise.
16861 * sysdeps/unix/sysv/linux/riscv/Versions: Likewise.
16862 * sysdeps/unix/sysv/linux/riscv/configure: Likewise.
16863 * sysdeps/unix/sysv/linux/riscv/configure.ac: Likewise.
16864 * sysdeps/unix/sysv/linux/riscv/ldd-rewrite.sed: Likewise.
16865 * sysdeps/unix/sysv/linux/riscv/rv64/Implies: Likewise.
16866 * sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Likewise.
16867 * sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
16868 * scripts/build-many-glibcs.py (Context): Add RISC-V targets.
16869 (Config): Likewise.
16870
16871 2018-01-29 Florian Weimer <fweimer@redhat.com>
16872
16873 [BZ #22701]
16874 * include/rpcsvc/nislib.h (__nis_default_ttl): Add
16875 libnsl_hidden_proto.
16876 * include/rpcsvc/yp.h (yp_xdrall): Declare with
16877 libnsl_hidden_proto.
16878 * include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
16879 * nis/Makefile (libnsl-routines): Add nss-default only for
16880 build-obsolete-nsl.
16881 * nis/nis_defaults.c (__nis_default_ttl): Add
16882 libnsl_hidden_nolink_def.
16883 * nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
16884 declaration.
16885 * nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
16886 * nis/ypclnt.c (yp_maplist): Likewise.
16887
16888 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
16889
16890 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
16891 (__ASSUME_COPY_FILE_RANGE) [__LINUX_KERNEL_VERSION < 0x040A00]: Undef.
16892
16893 2018-01-29 Joseph Myers <joseph@codesourcery.com>
16894
16895 * scripts/build-many-glibcs.py (Context.git_checkout): Use git
16896 clean -dxfq for git updates when replacing sources.
16897
16898 * scripts/build-many-glibcs.py (Config.build_gcc): Use
16899 --disable-libcilkrts unconditionally, not just for the final GCC
16900 build for Hurd.
16901
16902 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
16903 version to 4.15.
16904
16905 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16906
16907 [BZ #10871]
16908 * localedata/locales/lt_LT (alt_mon): Import from CLDR (nominative
16909 case).
16910
16911 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16912
16913 [BZ #10871]
16914 * localedata/locales/be_BY (mon): Rename to...
16915 (alt_mon): This, then synchronize with CLDR (nominative case).
16916 (abmon): Rename to...
16917 (ab_alt_mon): This, then synchronize with CLDR (nominative case).
16918 (mon): Import from CLDR (genitive case).
16919 (abmon): Likewise.
16920 * localedata/locales/be_BY@latin (mon): Rename to...
16921 (alt_mon): This.
16922 (mon): Add, proper genitive forms provided by Viktar Siarheichyk.
16923
16924 * localedata/locales/be_BY@latin (lang_name): Reworded to
16925 "biełaruskaja mova".
16926
16927 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16928
16929 [BZ #10871]
16930 * localedata/locales/el_CY (mon): Renamed to...
16931 (alt_mon): This.
16932 (mon): Import from CLDR (genitive case).
16933 * localedata/locales/el_GR: Likewise.
16934
16935 2018-01-29 Rafal Luzynski <digitalfreak@lingonborough.com>
16936
16937 [BZ #10871]
16938 * localedata/locales/ru_RU (mon): Rename to...
16939 (alt_mon): This.
16940 (abmon): Rename to...
16941 (ab_alt_mon): This.
16942 (mon): Import from CLDR (genitive case).
16943 (abmon): Copy from the old content except the 5th month which is
16944 now in the genitive case, even when abbreviated.
16945 * localedata/locales/ru_UA: Likewise.
16946 * time/tst-strptime.c (day_tests): Add an actual example of
16947 a difference between %b and %Ob in Russian.
16948
16949 2018-01-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
16950
16951 * sysdeps/mach/hurd/xmknodat.c: Include <sys/sysmacros.h>.
16952 * sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
16953 a `c' variable.
16954 * resolv/res-close.c: Include <stdlib.h>.
16955 * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
16956 <sys/wait.h>, <time.h>, <sys/uio.h>.
16957 (NOT_CANCEL_H): Add inclusion guard.
16958 * sysdeps/generic/sigset-cvt-mask.h: Include <sigsetops.h>.
16959 * sysdeps/generic/sigsetops.h (__sigemptyset, __sigfillset,
16960 __sigandset, __sigorset, __sigaddset, __sigdelset): Make them really
16961 return 0.
16962 * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start): Cast
16963 vm_address_t * to ElfW(Addr) * for dl_main parameter.
16964 * sysdeps/pthread/posix-timer.h (timer_ptr2id): Cast to timer_t
16965 instead of void *.
16966 * sysdeps/pthread/timer_create.c (timer_create): Do not use
16967 timer_ptr2id to cast struct timer_node * to void *.
16968 * scripts/build-many-glibcs.py [os == gnu] (build_gcc): Pass
16969 --disable-libcilkrts to gcc configure.
16970 (checkout_vcs): Add mig and gnumach repository URLs, run autoreconf,
16971 and make them the default for now.
16972 * sysdeps/mach/hurd/Makefile [$(subdir)==nis]: Add
16973 -DUSE_BINDINGDIR=1 to CFLAGS-ypclnt.c.
16974 * mach/Machrules (MIGFLAGS): Do not set -DMACH_IPC_COMPAT=0.
16975 * mach/mach/mach_traps.h: Drop comment about MACH_IPC_COMPAT.
16976 * sysdeps/mach/hurd/fork.c (__fork): Drop special casing
16977 MACH_IPC_COMPAT.
16978 * sysdeps/mach/hurd/dl-sysdep.c (_exit): Call LOSE and abort() if
16979 __task_terminate would ever return successfully.
16980 * sysdeps/mach/hurd/profil.c (special_profil_failure): Move variable
16981 to global scope.
16982 * sysdeps/mach/pagecopy.h (PAGE_THRESHOLD): Rename to
16983 PAGE_COPY_THRESHOLD and set to benchmarked 16384.
16984 * sysdeps/mach/hurd/getresgid.c (__getresgid): Set result from
16985 critical section to make code simpler and avoid warning.
16986 * sysdeps/mach/hurd/getresuid.c (__getresuid): Set result from
16987 critical section to make code simpler and avoid warning.
16988 * sysdeps/mach/hurd/spawni.c (__spawni): Make relpath and abspath
16989 const char * instead of char *.
16990 * hurd/hurd/lookup.h (__hurd_file_name_lookup, hurd_file_name_lookup,
16991 __hurd_file_name_split, hurd_file_name_split,
16992 __hurd_directory_name_split, hurd_directory_name_split,
16993 __hurd_file_name_lookup_retry, hurd_file_name_lookup_retry,
16994 hurd_file_name_path_lookup): Make lookup function parameter take a
16995 const char *name instead of char *name.
16996 * hurd/hurdlookup.c (__hurd_file_name_lookup, __hurd_file_name_split,
16997 __hurd_directory_name_split): Likewise.
16998 * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Likewise.
16999 * hurd/path-lookup.c (hurd_file_name_path_lookup): Likewise.
17000 * sysdeps/mach/hurd/check_native.c: New file.
17001 * sysdeps/mach/hurd/check_pf.c: New file.
17002 * nscd/gai.c (__getifaddrs): Define macro to getifaddrs.
17003 (__freeifaddrs): Define macro to freeifaddrs.
17004 * sysdeps/mach/hurd/libhurduser.abilist: New file.
17005 * sysdeps/mach/libmachuser.abilist: New file.
17006 * libio/tst-memstream3.c (FWRITE): Rename to _FWRITE.
17007 (do_test_bz20181): Rename accordingly.
17008 * libio/tst-wmemstream3.c (FWRITE): Rename accordingly.
17009 * io/tst-copy_file_range.c [!defined CLONE_NEWNS]: Do not include
17010 <sys/mount.h>.
17011 * hurd/hurd.h (__hurd_fail): Always declare function, and provide inline
17012 version only if __USE_EXTERN_INLINES is defined.
17013 * hurd/hurd/fd.h (_hurd_fd_error_signal, _hurd_fd_error, __hurd_dfail,
17014 __hurd_sockfail): Likewise.
17015 (_hurd_fd_get): Always declare functions, and provide inline versions
17016 only if __USE_EXTERN_INLINES and _LIBC are defined and IS_IN(libc).
17017 * hurd/hurd/port.h (_hurd_port_init, _hurd_port_locked_get,
17018 _hurd_port_get, _hurd_port_free, _hurd_port_locked_set,
17019 _hurd_port_set): Always declare functions, and provide inline versions
17020 only if __USE_EXTERN_INLINES and _LIBC are defined and
17021 IS_IN(libc).
17022 * hurd/hurd/signal.h (_hurd_self_sigstate, _hurd_critical_section_lock,
17023 _hurd_critical_section_unlock): Likewise.
17024 * hurd/hurd/threadvar.h (__hurd_threadvar_location_from_sp,
17025 * __hurd_threadvar_location): Likewise.
17026 * hurd/hurd/userlink.h (_hurd_userlink_link, _hurd_userlink_unlink,
17027 _hurd_userlink_clear): Likewise.
17028 * mach/lock-intern.h (__spin_lock_init, __spin_lock, __mutex_lock,
17029 __mutex_unlock, __mutex_trylock): Always declare functions, and provide
17030 inline versions only if __USE_EXTERN_INLINES and _LIBC are defined.
17031 * mach/mach/mig_support.h (__mig_strncpy): Likewise.
17032 * sysdeps/generic/machine-lock.h (__spin_unlock, __spin_try_lock,
17033 __spin_lock_locked): Likewise.
17034 * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock,
17035 __spin_lock_locked): Likewise.
17036 * mach/spin-lock.c (__USE_EXTERN_INLINES): Define to 1.
17037 * hurd/Versions (libc: GLIBC_2.27): Add _hurd_fd_error_signal,
17038 _hurd_fd_error, __hurd_dfail, __hurd_sockfail, _hurd_port_locked_set,
17039 __hurd_threadvar_location_from_sp, __hurd_threadvar_location,
17040 _hurd_userlink_link, _hurd_userlink_unlink, _hurd_userlink_clear.
17041 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_CHOWN_RESTRICTED,
17042 _POSIX_NO_TRUNC): Define to 0.
17043 * sysdeps/pthread/allocalim.h [!defined PTHREAD_STACK_MIN]: Do not
17044 check size against PTHREAD_STACK_MIN.
17045 * hurd/hurd/signal.h [__USE_EXTERN_INLINES][_LIBC][IS_IN(libc) ||
17046 IS_IN(libpthread)]: Include <sigsetops.h>.
17047 * mach/Makefile (user-interfaces): Add mach/gnumach.
17048 * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach.
17049 * sysdeps/mach/configure (mach_interface_list): Regenerate.
17050 * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0'
17051 instead of invalid -1.
17052 * sysdeps/mach/hurd/net/ethernet.h: Include <stdint.h>.
17053 * sysdeps/mach/hurd/net/if_arp.h: Include <stdint.h>.
17054 * sysdeps/mach/hurd/net/if_ppp.h: Do not include non-existing
17055 <net/ppp_defs.h>.
17056
17057 2018-01-27 Thomas Schwinge <tschwinge@gnu.org>
17058
17059 * hurd/fcntl-internal.h: New file.
17060
17061 2018-01-27 James Clarke <jrtc27@jrtc27.com>
17062
17063 * sysdeps/hppa/fpu/libm-test-ulps: Update.
17064
17065 * sysdeps/alpha/fpu/libm-test-ulps: Update.
17066
17067 2018-01-26 Andreas Schwab <schwab@linux-m68k.org>
17068
17069 [BZ #22701]
17070 * nis/Makefile (libnsl-inhibit-o) [$(build-obsolete-nsl) != yes]:
17071 Build only shared objects.
17072
17073 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17074
17075 * README: Update for hppa.
17076
17077 2018-01-26 Patrick McGehearty <patrick.mcgehearty@oracle.com>
17078
17079 * sysdeps/sparc/fpu/libm-test-ulps: Update
17080 cpow, ctan, ctanh, j0, j1, y0, yn ulps.
17081
17082 2018-01-26 Carlos O'Donell <carlos@redhat.com>
17083
17084 Revert:
17085
17086 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17087
17088 [BZ #22563]
17089 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17090 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
17091 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
17092 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
17093 to feature_1.
17094
17095 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
17096
17097 [BZ #22563]
17098 * bits/types/__cancel_jmp_buf_tag.h: New file.
17099 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
17100 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
17101 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
17102 * nptl/Makefile (headers): Add
17103 bits/types/__cancel_jmp_buf_tag.h.
17104 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
17105 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
17106 * sysdeps/nptl/pthread.h: Include
17107 <bits/types/__cancel_jmp_buf_tag.h>.
17108 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
17109 __cancel_jmp_buf.
17110 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
17111
17112 2018-01-25 Rafal Luzynski <digitalfreak@lingonborough.com>
17113
17114 [BZ #10871]
17115 * localedata/locales/uk_UA (mon): Renamed to...
17116 (alt_mon): This.
17117 (alt_digits): "0" removed and then renamed to...
17118 (mon): This.
17119 (date_fmt): Definition changed not to use the alternative
17120 digits hack.
17121
17122 2018-01-25 Palmer Dabbelt <palmer@sifive.com>
17123
17124 * elf/cache.c (print_entry): Add FLAG_RISCV_FLOAT_ABI_SOFT and
17125 FLAG_RISCV_FLOAT_ABI_DOUBLE.
17126 * elf/elf.h (EF_RISCV_RVC): New define.
17127 (EF_RISCV_FLOAT_ABI): Likewise.
17128 (EF_RISCV_FLOAT_ABI_SOFT): Likewise.
17129 (EF_RISCV_FLOAT_ABI_SINGLE): Likewise.
17130 (EF_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17131 (EF_RISCV_FLOAT_ABI_QUAD): Likewise.
17132 * sysdeps/generic/ldconfig.h (FLAG_RISCV_FLOAT_ABI_SOFT): New
17133 define.
17134 (FLAG_RISCV_FLOAT_ABI_DOUBLE): Likewise.
17135
17136 2018-01-25 Andreas Schwab <schwab@suse.de>
17137
17138 * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): Consistently put arguments in
17139 single quotes.
17140 * sysdeps/gnu/configure: Regenerate.
17141 * sysdeps/unix/sysv/linux/aarch64/configure: Regenerate.
17142 * sysdeps/unix/sysv/linux/mips/configure: Regenerate.
17143 * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
17144 * sysdeps/unix/sysv/linux/s390/s390-64/configure: Regenerate.
17145 * sysdeps/unix/sysv/linux/sparc/sparc64/configure: Regenerate.
17146 * sysdeps/unix/sysv/linux/tile/configure: Regenerate.
17147 * sysdeps/unix/sysv/linux/x86_64/64/configure: Regenerate.
17148 * sysdeps/unix/sysv/linux/x86_64/x32/configure: Regenerate.
17149
17150 2018-01-25 Samuel Thibault <samuel.thibault@ens-lyon.org>
17151
17152 * scripts/build-many-glibcs.py (checkout_vcs): Add hurd repository
17153 URL, and run autoconf, make it the default for now.
17154
17155 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17156
17157 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17158 soft-float ColdFire configuration.
17159
17160 * sysdeps/unix/sysv/linux/m68k/localplt.data: Move to ....
17161 * sysdeps/unix/sysv/linux/m68k/m680x0/localplt.data: ... here.
17162 * sysdeps/unix/sysv/linux/m68k/coldfire/localplt.data: New file.
17163
17164 * sysdeps/m68k/coldfire/nofpu/math_private.h: New file. Based on
17165 MicroBlaze file.
17166
17167 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: Move to
17168 ....
17169 * sysdeps/unix/sysv/linux/m68k/coldfire/fpu/jmp_buf-macros.h:
17170 ... here.
17171 * sysdeps/unix/sysv/linux/m68k/coldfire/nofpu/jmp_buf-macros.h:
17172 New file.
17173
17174 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Move to ....
17175 * sysdeps/unix/sysv/linux/m68k/m680x0/jmp_buf-macros.h: ... here.
17176 * sysdeps/unix/sysv/linux/m68k/coldfire/jmp_buf-macros.h: New
17177 file.
17178
17179 2018-01-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
17180
17181 [BZ #22742]
17182 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__glibc_reserved1):
17183 Rename to __reserved and add comment.
17184 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (__glibc_reserved1):
17185 Rename to __reserved.
17186
17187 2018-01-24 Joseph Myers <joseph@codesourcery.com>
17188
17189 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
17190 i686-gnu configurations.
17191 (Context.run_builds): Include mig, gnumach and hurd in components
17192 considered.
17193 (Context.checkout): Add mig, gnumach and hurd to components.
17194 (Context.checkout_tar): Add URL mappings for mig, gnumach and
17195 hurd.
17196 (Context.bot_cycle): Check for changes to mig, gnumach and hurd.
17197 (Config.build): Install gnumach headers, build mig and install
17198 hurd headers for 'gnu' OS.
17199 (Config.install_gnumach_headers): New function.
17200 (Config.install_hurd_headers): Likewise.
17201 (Glibc.build_glibc): Do not use /usr for 'gnu' OS. Specifiy MIG
17202 when building for 'gnu' OS.
17203
17204 2018-01-23 Tobias Klauser <tklauser@distanz.ch>
17205
17206 * manual/tunables.texi (Hardware Capability Tunables): Fix
17207 spelling.
17208
17209 2018-01-22 Rical Jasan <ricaljasan@pacific.net>
17210
17211 * manual/locale.texi (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4)
17212 (ALTMON_5, ALTMON_6, ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10)
17213 (ALTMON_11, ALTMON_12): Improve documentation.
17214 * manual/time.texi (strftime): Likewise.
17215
17216 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17217
17218 [BZ #10871]
17219 * localedata/locales/pl_PL: Alternative month names added,
17220 primary month names are genitive now.
17221 * time/tst-strptime.c (day_tests): Actually use a genitive case
17222 of a month name in Polish language.
17223
17224 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17225
17226 [BZ #10871]
17227 * manual/locale.texi: Document ALTMON_1..12 constants for
17228 nl_langinfo. Specify when to use ALTMON instead of MON.
17229 * manual/time.texi (strftime, strptime): Document GNU extension
17230 permitting O modifier with %B and %b. Specify when to use
17231 %OB instead of %B.
17232
17233 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17234
17235 [BZ #10871]
17236 * locale/C-time.c (_nl_C_LC_TIME): Add abbreviated alternative month
17237 names, define them as the same as abbreviated month names explicitly.
17238 * locale/categories.def (LC_TIME): Add ab_alt_mon and wide-ab_alt_mon.
17239 * locale/langinfo.h: (_NL_ABALTMON_1, _NL_ABALTMON_2, _NL_ABALTMON_3,
17240 _NL_ABALTMON_4, _NL_ABALTMON_5, _NL_ABALTMON_6, _NL_ABALTMON_7,
17241 _NL_ABALTMON_8, _NL_ABALTMON_9, _NL_ABALTMON_10, _NL_ABALTMON_11,
17242 _NL_ABALTMON_12, _NL_WABALTMON_1, _NL_WABALTMON_2, _NL_WABALTMON_3,
17243 _NL_WABALTMON_4, _NL_WABALTMON_5, _NL_WABALTMON_6, _NL_WABALTMON_7,
17244 _NL_WABALTMON_8, _NL_WABALTMON_9, _NL_WABALTMON_10, _NL_WABALTMON_11,
17245 _NL_WABALTMON_12): New enum constants.
17246 * locale/programs/ld-time.c (struct locale_time_t): Add ab_alt_mon,
17247 wab_alt_mon, and ab_alt_mon_defined members.
17248 (time_output): Output ab_alt_mon and wab_alt_mon members.
17249 (time_read): Read them, initialize them as copies of abmon and wabmon
17250 respectively if they are missing, initialize ab_alt_mon_defined.
17251 * locale/programs/locfile-kw.gperf (ab_alt_mon): Define.
17252 * locale/programs/locfile-kw.h: Regenerate.
17253 * locale/programs/locfile-token.h (tok_ab_alt_mon): New enum constant.
17254 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add es_ES.UTF-8
17255 and ru_RU.UTF-8.
17256 * time/strftime_l.c (a_altmonth, aam_len): New macros.
17257 [!COMPILE_WIDE] (ABALTMON_1): New macro.
17258 (__strftime_internal): Handle %Ob and %Oh formats.
17259 * time/strptime_l.c [_LIBC] (ab_alt_month_name): New macro.
17260 (__strptime_internal): Handle %Ob and %Oh formats.
17261 * time/tst-strptime.c (day_tests): Add more tests to parse different
17262 forms of month names including the new %Ob format specifier.
17263
17264 2018-01-22 Rafal Luzynski <digitalfreak@lingonborough.com>
17265
17266 [BZ #10871]
17267 * locale/C-time.c (_nl_C_LC_TIME): Add alternative month names,
17268 define them as the same as primary full month names explicitly.
17269 * locale/categories.def (LC_TIME): Add alt_mon and wide-alt_mon.
17270 * locale/langinfo.h (__ALTMON_1, __ALTMON_2, __ALTMON_3, __ALTMON_4,
17271 __ALTMON_5, __ALTMON_6, __ALTMON_7, __ALTMON_8, __ALTMON_9, __ALTMON_10,
17272 __ALTMON_11, __ALTMON_12, _NL_WALTMON_1, _NL_WALTMON_2, _NL_WALTMON_3,
17273 _NL_WALTMON_4, _NL_WALTMON_5, _NL_WALTMON_6, _NL_WALTMON_7,
17274 _NL_WALTMON_8, _NL_WALTMON_9, _NL_WALTMON_10, _NL_WALTMON_11,
17275 _NL_WALTMON_12): New enum constants.
17276 [__USE_GNU] (ALTMON_1, ALTMON_2, ALTMON_3, ALTMON_4, ALTMON_5, ALTMON_6,
17277 ALTMON_7, ALTMON_8, ALTMON_9, ALTMON_10, ALTMON_11, ALTMON_12): New
17278 macros.
17279 * locale/programs/ld-time.c (struct locale_time_t): Add alt_mon,
17280 walt_mon, and alt_mon_defined members.
17281 (time_output): Output alt_mon and walt_mon members.
17282 (time_read): Read them, initialize them as copies of mon and wmon
17283 respectively if they are missing, initialize alt_mon_defined.
17284 * locale/programs/locfile-kw.gperf (alt_mon): Define.
17285 * locale/programs/locfile-kw.h: Regenerate.
17286 * locale/programs/locfile-token.h (tok_alt_mon): New enum constant.
17287 * localedata/tst-langinfo.c (map): Add tests for the new constants
17288 ALTMON_1 .. ALTMON_12.
17289 * time/Makefile [$(run-built-tests) = yes] (LOCALES): Add fr_FR.UTF-8
17290 and pl_PL.UTF-8.
17291 * time/strftime_l.c (f_altmonth): New macro.
17292 (__strftime_internal): Handle %OB format.
17293 * time/strptime_l.c [_LIBC] (alt_month_name): New macro.
17294 (__strptime_internal): Handle %OB format.
17295 * time/tst-strptime.c (day_tests): Add tests to parse different forms
17296 of month names including the new %OB format specifier.
17297
17298 2018-01-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17299
17300 [BZ #22685]
17301 * sysdeps/powerpc/powerpc32/sysdep.h (ABORT_TRANSACTION_IMPL): Renamed
17302 from ABORT_TRANSACTION.
17303 (ABORT_TRANSACTION): Redirect to ABORT_TRANSACTION_IMPL.
17304 * sysdeps/powerpc/powerpc64/sysdep.h (ABORT_TRANSACTION,
17305 ABORT_TRANSACTION_IMPL): Likewise.
17306 * sysdeps/unix/sysv/linux/powerpc/not-errno.h: New file. Reuse
17307 Linux code, but remove the code that aborts transactions.
17308
17309 2018-01-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
17310
17311 * sysdeps/generic/netinet/if_ether.h: Include <stdint.h>.
17312
17313 2018-01-19 Rafal Luzynski <digitalfreak@lingonborough.com>
17314
17315 * localedata/locales/gu_IN (LC_IDENTIFICATION): Fix an obvious typo
17316 in date: "2004-14-09" should be "2004-09-14".
17317 * localedata/locales/lo_LA: Fix an obvious typo in date in the header:
17318 "2003-15-09" should be "2003-09-15".
17319
17320 2018-01-18 Arjun Shankar <arjun@redhat.com>
17321
17322 [BZ #22343]
17323 [BZ #22774]
17324 CVE-2018-6485
17325 CVE-2018-6551
17326 * malloc/malloc.c (checked_request2size): call REQUEST_OUT_OF_RANGE
17327 after padding.
17328 (_int_memalign): check for integer overflow before calling
17329 _int_malloc.
17330 * malloc/tst-malloc-too-large.c: New test.
17331 * malloc/Makefile: Add tst-malloc-too-large.
17332
17333 2018-01-18 Rafal Luzynski <digitalfreak@lingonborough.com>
17334
17335 * localedata/locales/bho_NP (LC_IDENTIFICATION): Fix an obvious typo
17336 in date: "2017-24-07" should be "2017-07-24".
17337 * localedata/locales/mai_IN: Likewise.
17338 * localedata/locales/mai_NP: Likewise.
17339
17340 2018-01-17 Dmitry V. Levin <ldv@altlinux.org>
17341
17342 * po/ru.po: Update translations.
17343
17344 2018-01-17 Joseph Myers <joseph@codesourcery.com>
17345
17346 [BZ #22719]
17347 * sysdeps/hppa/backtrace.c: New file.
17348
17349 2018-01-17 H.J. Lu <hongjiu.lu@intel.com>
17350
17351 [BZ #22715]
17352 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_profile): Properly
17353 align La_x86_64_retval to VEC_SIZE.
17354
17355 2018-01-16 Joseph Myers <joseph@codesourcery.com>
17356
17357 * sysdeps/x86_64/backtrace.c: Include <gnu/lib-names.h>.
17358 (init): Use LIBGCC_S_SO not hardcoded "libgcc_s.so.1".
17359
17360 2018-01-16 Florian Weimer <fweimer@redhat.com>
17361
17362 * nptl/Makefile [$(have-cxx-thread_local)] (tests-unsupported):
17363 Move tst-thread-exit-clobber ...
17364 [$(CXX)] (tests-unsupported): ... to here.
17365
17366 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17367
17368 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_SHA3): Define.
17369 (HWCAP_SM3, HWCAP_SM4, HWCAP_ASIMDDP, HWCAP_SHA512, HWCAP_SVE): Define.
17370 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17371 (_dl_aarch64_cap_flags): Update.
17372 (_DL_HWCAP_COUNT): Update.
17373
17374 2018-01-16 Szabolcs Nagy <szabolcs.nagy@arm.com>
17375
17376 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.h
17377 (_DL_HWCAP_LAST): Remove.
17378 (_DL_HWCAP_COUNT): Move to ...
17379 * sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
17380 (_DL_HWCAP_COUNT): ... here.
17381
17382 2018-01-16 Florian Weimer <fweimer@redhat.com>
17383
17384 * nptl/Makefile (CFLAGS-tst-minstack-throw.o): Compile in C++11
17385 mode with GNU extensions.
17386
17387 2018-01-15 Alan Hayward <alan.hayward@arm.com>
17388
17389 * elf/elf.h (NT_ARM_SVE): Define.
17390
17391 2018-01-15 Florian Weimer <fweimer@redhat.com>
17392
17393 [BZ #22636]
17394 * nptl/tst-minstack-throw.cc: New file.
17395 * nptl/Makefile (tests): Add tst-minstack-throw.
17396 (LDLIBS-tst-minstack-throw): Link with libstdc++.
17397 [!CXX] (tests-unsupported): Add tst-minstack-throw.
17398
17399 2018-01-15 Joseph Myers <joseph@codesourcery.com>
17400
17401 * scripts/build-many-glibcs.py (Context.checkout): Default
17402 binutils version to 2.30 branch, MPFR version to 4.0.0 and MPC
17403 version to 1.1.0.
17404
17405 2018-01-13 Carlos O'Donell <carlos@redhat.com>
17406
17407 [BZ #22707]
17408 * elf/elf.h (DF_1_STUB): Define.
17409 (DF_1_PIE): Define.
17410
17411 2018-01-12 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17412
17413 [BZ #22697]
17414 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
17415 Do not add 0.5 to integer or out-of-range arguments.
17416
17417 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17418
17419 * po/bg.po: Update translations.
17420 * po/cs.po: Likewise.
17421 * po/de.po: Likewise.
17422 * po/ko.po: Likewise.
17423 * po/pl.po: Likewise.
17424 * po/sv.po: Likewise.
17425 * po/uk.po: Likewise.
17426 * po/vi.po: Likewise.
17427
17428 2018-01-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
17429
17430 * aarch64/start.S (_start): Use __wrap_main.
17431 (__wrap_main): New local symbol.
17432
17433 2018-01-12 Dmitry V. Levin <ldv@altlinux.org>
17434
17435 [BZ #22679]
17436 CVE-2018-1000001
17437 * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Fall back to
17438 generic_getcwd if the path returned by getcwd syscall is not absolute.
17439 * io/tst-getcwd-abspath.c: New test.
17440 * io/Makefile (tests): Add tst-getcwd-abspath.
17441
17442 2018-01-12 Istvan Kurucsai <pistukem@gmail.com>
17443
17444 * malloc/malloc.c (malloc_consolidate): Add size check.
17445
17446 2018-01-12 Florian Weimer <fweimer@redhat.com>
17447
17448 * support/write_message.c (write_message): Preserve errno.
17449 * support/check.c (print_failure): Likewise.
17450 * support/support_test_verify_impl.c (support_test_verify_impl):
17451 Likewise.
17452 * support/support_test_compare_failure.c
17453 (support_test_compare_failure): Likewise.
17454
17455 2018-01-12 Florian Weimer <fweimer@redhat.com>
17456
17457 [BZ #22701]
17458 * nis/Makefile (install-lib-ldscripts, $(inst_libdir)/libnsl.so):
17459 Prevent installation of libnsl.so.
17460 (libnsl-inhibit-o): Do not build (or install) static libraries.
17461
17462 2018-01-12 Egmont Koblinger <egmont@gmail.com>
17463
17464 [BZ #22657]
17465 * localedata/locales/hu_HU (d_t_fmt): Avoid a leading space
17466 before the day number which may produce a double space.
17467 (date_fmt): Likewise.
17468
17469 2018-01-12 Joseph Myers <joseph@codesourcery.com>
17470
17471 * sysdeps/s390/fpu/feholdexcpt.c (__feholdexcept): Call __fegetenv
17472 instead of fegetenv.
17473
17474 2018-01-11 Joseph Myers <joseph@codesourcery.com>
17475
17476 [BZ #22702]
17477 * sysdeps/generic/math_private.h (libc_feresetround_noex): Update
17478 comment to say exceptions are discarded.
17479 (libc_feholdsetround_noex_ctx): Use __feholdexcept instead of
17480 __fegetenv.
17481 (SET_RESTORE_ROUND_NOEX): Update comment to say non-stop mode must
17482 be enabled.
17483
17484 2018-01-11 Florian Weimer <fweimer@redhat.com>
17485
17486 * sysdeps/gnu/unwind-resume.c (__libgcc_s_init): Update comment
17487 and error message.
17488
17489 2018-01-11 Florian Weimer <fweimer@redhat.com>
17490
17491 [BZ #22636]
17492 * nptl/Makefile (tests): Add tst-minstack-cancel, tst-minstack-exit.
17493 * nptl/tst-minstack-cancel.c, nptl/tst-minstack-exit.c: New files.
17494
17495 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17496
17497 [BZ #22693]
17498 * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Handle
17499 negative arguments in test for NaN or infinity argument.
17500
17501 2018-01-10 Dmitry V. Levin <ldv@altlinux.org>
17502
17503 * po/libc.pot: Regenerate.
17504
17505 2018-01-10 Florian Weimer <fweimer@redhat.com>
17506
17507 [BZ #22636]
17508 * sysdeps/nptl/unwind-forcedunwind.c (pthread_cancel_init): Open
17509 libgcc.so with RTLD_NOW, to avoid lazy binding during unwind.
17510
17511 2018-01-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
17512
17513 * hurd/hurd/fd.h: Include <fcntl.h>
17514 (__hurd_at_flags): New function.
17515 * hurd/lookup-at.c (__file_name_lookup_at): Replace flag computation
17516 with call to __hurd_at_flags.
17517 * include/unistd.h (__faccessat, __faccessat_noerrno): Add declaration.
17518 * sysdeps/mach/hurd/access.c (access_common): Move implementation to
17519 __faccessat
17520 (hurd_fail_seterrno, hurd_fail_noerrno): Move to sysdeps/mach/hurd/faccessat.c.
17521 (__access_noerrno): Use __faccessat_common instead of access_common.
17522 (__access): Likewise.
17523 * sysdeps/mach/hurd/euidaccess.c (__euidaccess): Replace implementation
17524 with a call to __faccessat.
17525 * sysdeps/mach/hurd/faccessat.c (faccessat): Rename into...
17526 (__faccessat_common): ... this. Move implementation of __access into it when
17527 AT_FLAGS does not contain AT_EACCESS. Make it call __hurd_at_flags, add
17528 reauthenticate_cwdir_at helper to implement AT mechanism.
17529 (__faccessat_noerrno): New function, just calls __faccessat_common.
17530 (__faccessat): New function, just calls __faccessat_common.
17531 (faccessat): Define weak alias.
17532
17533 2018-01-10 Joseph Myers <joseph@codesourcery.com>
17534
17535 [BZ #22691]
17536 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17537 (CFLAGS-s_fmaxmagl.c): New variable.
17538 [$(subdir) = math] (CFLAGS-s_fminmagl.c: Likewise.
17539
17540 [BZ #22690]
17541 * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Use unsigned
17542 long int for arguments of possibly overflowing addition or
17543 subtraction.
17544 * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
17545
17546 2018-01-09 Joseph Myers <joseph@codesourcery.com>
17547
17548 [BZ #22688]
17549 * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
17550 (CFLAGS-e_remainderl.c): New variable.
17551
17552 [BZ #22687]
17553 * sysdeps/powerpc/nofpu/Makefile (CFLAGS-s_cacosl.c): New
17554 variable.
17555 (CFLAGS-s_cacoshl.c): Likewise.
17556 (CFLAGS-s_casinhl.c): Likewise.
17557 (CFLAGS-s_catanl.c): Likewise.
17558 (CFLAGS-s_catanhl.c): Likewise.
17559 (CFLAGS-s_cexpl.c): Likewise.
17560 (CFLAGS-s_ccoshl.c): Add -fsignaling-nans.
17561 (CFLAGS-s_csinhl.c): Likewise.
17562 (CFLAGS-s_clogl.c): Likewise.
17563 (CFLAGS-s_clog10l.c): Likewise.
17564 (CFLAGS-s_csinl.c): Likewise.
17565 (CFLAGS-s_csqrtl.c): Likewise.
17566
17567 2017-01-09 Emilio Pozuelo Monfort <pochu27@gmail.com>
17568 2017-01-09 Svante Signell <svante.signell@gmail.com>
17569
17570 * hurd/hurdexec.c (_hurd_exec): Deprecate function.
17571 (_hurd_exec_paths): New function.
17572 * hurd/hurd.h (_hurd_exec): Deprecate function.
17573 (_hurd_exec_paths): Declare function.
17574 * hurd/Versions: Export _hurd_exec_paths.
17575 * sysdeps/mach/hurd/execve.c: Include <stdlib.h> and <stdio.h>
17576 (__execve): Use __getcwd to build absolute path, and use
17577 _hurd_exec_paths instead of _hurd_exec.
17578 * sysdeps/mach/hurd/spawni.c: Likewise.
17579 * sysdeps/mach/hurd/fexecve.c: Use _hurd_exec_paths instead of
17580 _hurd_exec.
17581
17582 2018-01-08 Dmitry V. Levin <ldv@altlinux.org>
17583
17584 * sysdeps/unix/sysv/linux/tst-ttyname.c (do_in_chroot_1): Skip the
17585 test instead of failing in case of ENOENT returned by posix_openpt.
17586
17587 2018-01-08 Florian Weimer <fweimer@redhat.com>
17588
17589 resolv: Support binary labels in test framework.
17590 * support/resolv_test.c (struct to_be_freed): Remove.
17591 (struct compressed_name): New.
17592 (allocate_compressed_name, ascii_tolower)
17593 (compare_compressed_name): New functions.
17594 (struct resolv_response_builder): Update type of
17595 compression_offsets for use with tsearch. Rempve to_be_freed.
17596 (response_push_pointer_to_free): Remove function.
17597 (resolv_response_add_name): Rewrite using struct compressed_name
17598 and tsearch instead of hsearch_r.
17599 (response_builder_allocate): Remove initialization of
17600 compression_offsets.
17601 (response_builder_free): Update for removal of to_be_freed. Use
17602 tdestroy instead of hdestroy_r.
17603 * resolv/Makefile (tests): Add tst-resolv-binary.
17604 (tst-resolv-binary): Link with -lresolv -lpthread.
17605
17606 2018-01-08 Florian Weimer <fweimer@redhat.com>
17607
17608 * support/check.h (TEST_COMPARE): Allow sign mismatch at compile
17609 time. Pass positive flag instead of negative flag to
17610 support_test_compare_failure.
17611 (support_test_compare_failure): Change negative parameter to
17612 positive.
17613 * support/support_test_compare_failure.c (report)
17614 (support_test_compare_failure): Likewise.
17615 * support/tst-test_compare.c (return_ssize_t, return_int): New.
17616 (do_test): Check int/size_t, ssize_t/size_t comparisons.
17617
17618 2018-01-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
17619
17620 [BZ #22637]
17621 * nptl/descr.h (stackblock, stackblock_size): Update comments.
17622 * nptl/allocatestack.c (allocate_stack): Add guardsize to stacksize.
17623 * nptl/nptl-init.c (__pthread_get_minstack): Remove guardsize from
17624 stacksize.
17625 * nptl/pthread_getattr_np.c (pthread_getattr_np): Likewise.
17626
17627 2018-01-08 H.J. Lu <hongjiu.lu@intel.com>
17628
17629 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
17630 Add s_sincosf-sse2 and s_sincosf-fma.
17631 (CFLAGS-s_sincosf-fma.c): New.
17632 * sysdeps/x86_64/fpu/multiarch/s_sincosf-fma.c: New file.
17633 * sysdeps/x86_64/fpu/multiarch/s_sincosf-sse2.S: Likewise.
17634 * sysdeps/x86_64/fpu/multiarch/s_sincosf.c: Likewise.
17635 * sysdeps/x86_64/fpu/s_sincosf.S: Don't add alias if
17636 __sincosf is defined.
17637
17638 2018-01-08 Florian Weimer <fweimer@redhat.com>
17639
17640 * nptl/tst-thread-exit-clobber.cc: New file.
17641 * nptl/Makefile (CFLAGS-tst-thread-exit-clobber.o): Compile in
17642 C++11 mode.
17643 (LDLIBS-tst-thread-exit-clobber): Link with libstdc++.
17644 (tests): Add tst-thread-exit-clobber.
17645 [!CXX] (tests-unsupported): Add tst-thread-exit-clobber.
17646
17647 2018-01-08 Florian Weimer <fweimer@redhat.com>
17648
17649 * support/check.h (support_static_assert): Define.
17650 (TEST_COMPARE): Use it.
17651
17652 2018-01-07 Aurelien Jarno <aurelien@aurel32.net>
17653
17654 * sysdeps/unix/sysv/linux/getrlimit64 (getrlimit64)
17655 [!__RLIM_T_MATCHES_RLIM64_T]
17656 [!SHLIB_COMPAT (libc, GLIBC_2_1, GLIBC_2_2)]: Define as weak alias of
17657 __getrlimit64. Add libc_hidden_weak.
17658
17659 2018-01-06 Palmer Dabbelt <palmer@sifive.com>
17660
17661 * elf/elf.h (R_RISCV_NONE): New define.
17662 (R_RISCV_32): Likewise.
17663 (R_RISCV_64): Likewise.
17664 (R_RISCV_RELATIVE): Likewise.
17665 (R_RISCV_COPY): Likewise.
17666 (R_RISCV_JUMP_SLOT): Likewise.
17667 (R_RISCV_TLS_DTPMOD32): Likewise.
17668 (R_RISCV_TLS_DTPMOD64): Likewise.
17669 (R_RISCV_TLS_DTPREL32): Likewise.
17670 (R_RISCV_TLS_DTPREL64): Likewise.
17671 (R_RISCV_TLS_TPREL32): Likewise.
17672 (R_RISCV_TLS_TPREL64): Likewise.
17673 * Makerules (make-link-multidir): Make directories before linking into
17674 them.
17675 * sysdeps/unix/sysv/linux/dl-vdso.h (VDSO_NAME_LINUX_4_15): New
17676 define.
17677 (VDSO_HASH_LINUX_4_15): Likewise.
17678 * scripts/build-many-glibcs.py (class Glibc): Strip shared objects
17679 in subdirectories of lib.
17680 * nptl/Makefile (/librt.so): Always depend on
17681 "$(shared-thread-library)".
17682
17683 2018-01-06 Samuel Thibault <samuel.thibault@ens-lyon.org>
17684
17685 * sysdeps/mach/hurd/i386/jmp_buf-macros.h: New file.
17686 * sysdeps/i386/dl-tlsdesc.S (_dl_tlsdesc_dynamic) [NO_RTLD_HIDDEN]: Call
17687 JUMPTARGET (___tls_get_addr) instead of HIDDEN_JUMPTARGET
17688 (___tls_get_addr).
17689 * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Likewise.
17690 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
17691 "-O2 -march=i686".
17692 * posix/tst-glob_symlinks.c [!PATH_MAX]: Define PATH_MAX macro.
17693 * sysdeps/gnu/glob64.c (__glob): Define macro instead of glob macro.
17694 (__glob64): Define GLIBC_2_27 versioned symbol instead of glob64.
17695 * sysdeps/gnu/glob-lstat-compat.c: New file.
17696 * sysdeps/gnu/glob64-lstat-compat.c: New file.
17697 * sysdeps/posix/pwritev_common.c: Add PROT_READ to __mmap prot.
17698
17699 2018-01-05 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
17700
17701 * sysdeps/powerpc/powerpc64/dl-machine.c (_dl_reloc_overflow):
17702 Reserve 16 chars to reloc_addr before calling _itoa_word.
17703
17704 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17705
17706 [BZ #22678]
17707 * sysdeps/unix/sysv/linux/prlimit.c (prlimit): Translate
17708 old_rlimit from RLIM64_INFINITY to RLIM_INFINITY.
17709
17710 * sysdeps/unix/sysv/linux/tst-rlimit-infinity.c: New file.
17711 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-rlimit-infinity.
17712
17713 * resource/tst-getrlimit.c: Add copyright header.
17714
17715 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17716 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17717
17718 * sysdeps/unix/sysv/linux/getrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17719 define getrlimit and getrlimit64 as weak aliases of __getrlimit64.
17720 Define __GI_getrlimit64 as weak alias of __getrlimit64.
17721 [__RLIM_T_MATCHES_RLIM64_T]: Do not redefine SHLIB_COMPAT, use #elif
17722 instead.
17723 * sysdeps/unix/sysv/linux/setrlimit64.c [USE_VERSIONED_RLIMIT]: Do not
17724 define setrlimit and setrlimit64 as weak aliases of __setrlimit64.
17725 * sysdeps/unix/sysv/linux/alpha/bits/resource.h (RLIM_INFINITY,
17726 RLIM64_INFINITY): Fix values to match the kernel ones.
17727 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Define
17728 USE_VERSIONED_RLIMIT. Rename __getrlimit64 into __old_getrlimit64 and
17729 provide it as getrlimit@@GLIBC_2_0 and getrlimit64@@GLIBC_2_1. Add a
17730 __getrlimit64 function and provide it as getrlimit@@GLIBC_2_27 and
17731 getrlimit64@@GLIBC_2_27.
17732 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto with setrlimit
17733 and setrlimit64.
17734 * sysdeps/unix/sysv/linux/alpha/libc.abilist (GLIBC_2.27): Add
17735 getrlimit, setrlimit, getrlimit64 and setrlimit64.
17736 * sysdeps/unix/sysv/linux/alpha/Versions (libc): Add getrlimit,
17737 setrlimit, getrlimit64 and setrlimit64.
17738
17739 2018-01-05 Aurelien Jarno <aurelien@aurel32.net>
17740
17741 [BZ #22648]
17742 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: New file.
17743 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Ditto.
17744
17745 2018-01-04 Joseph Myers <joseph@codesourcery.com>
17746
17747 * malloc/tst-malloc-tcache-leak.c (TIMEOUT): Define to 50.
17748 * posix/tst-glob-tilde.c (TIMEOUT): Define to 200.
17749 * resolv/tst-resolv-res_ninit.c (TIMEOUT): Define to 50.
17750
17751 2018-01-03 Adhemerval Zanella <adhemerval.zanella@linaro.org>
17752
17753 [BZ #15479]
17754 [BZ #22666]
17755 * sysdeps/alpha/fpu/s_trunc.c: Remove file.
17756 * sysdeps/alpha/fpu/s_truncf.c: Likewise.
17757
17758 [BZ #15479]
17759 [BZ #22665]
17760 * sysdeps/alpha/fpu/s_ceil.c: Remove file.
17761 * sysdeps/alpha/fpu/s_ceilf.c: Likewise.
17762 * sysdeps/alpha/fpu/s_floor.c: Likewise.
17763 * sysdeps/alpha/fpu/s_floorf.c: Likewise.
17764
17765 2018-01-04 Florian Weimer <fweimer@redhat.com>
17766
17767 [BZ #22667]
17768 * sysdeps/unix/sysv/linux/i386/makecontext.S (__makecontext):
17769 Align the stack before calling exit.
17770 * stdlib/tst-makecontext-align.c: New file.
17771 * stdlib/Makefile (tests): Add tst-makecontext-align.
17772
17773 2018-01-04 Florian Weimer <fweimer@redhat.com>
17774
17775 Add support for calling dlvsym from libc.so.
17776 * include/dlfcn.h (__libc_dlvsym): Declare.
17777 * elf/Makefile (tests-static-internal): Add
17778 tst-libc_dlvsym-static.
17779 (tests-internal): Add tst-libc_dlvsym.
17780 (modules-names): Add tst-libc_dlvsym-dso.
17781 (tst-libc_dlvsym, tst-libc_dlvsym-static): Link with libdl.
17782 (tst-libc_dlvsym-dso.so): Link with libdl, libsupport.
17783 (tst-libc_dlvsym.out, tst-libc_dlvsym-static.out): The shared
17784 object tst-libc_dlvsym-dso.so needs to be built before running
17785 these tests.
17786 (tst-libc_dlvsym-static-ENV): Set LD_LIBRARY_PATH.
17787 * elf/Versions: Export __libc_dlvsym.
17788 * elf/dl-libc.c (struct do_dlvsym_args): New.
17789 (do_dlvsym, __libc_dlvsym): New functions.
17790 (struct dl_open_hook, _dl_open_hook): Add dlvsym member.
17791 (_dl_open_hook2): New variable.
17792 (__libc_register_dl_open_hook): Set it.
17793 * elf/tst-libc_dlvsym-dso.c: New file.
17794 * elf/tst-libc_dlvsym-static.c: Likewise.
17795 * elf/tst-libc_dlvsym.c: Likewise.
17796 * elf/tst-libc_dlvsym.h: Likewise.
17797
17798 2018-01-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
17799
17800 * support/support_enter_mount_namespace.c [!CLONE_NEWNS]: Do not
17801 include <sys/mount.h>.
17802
17803 2018-01-02 Wilco Dijkstra <wdijkstr@arm.com>
17804
17805 * math/math.h (math_errhandling): Set to 0 with __FAST_MATH__.
17806 Add __NO_MATH_ERRNO__ check.
17807
17808 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17809
17810 * sysdeps/mips/mips32/libm-test-ulps: Update.
17811 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
17812
17813 2018-01-02 Florian Weimer <fweimer@redhat.com>
17814
17815 * misc/tst-pselect.c: Add copyright header.
17816
17817 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17818
17819 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c: Fix a typo in the
17820 comment.
17821 * sysdeps/unix/sysv/linux/alpha/setrlimit64.c: Fix a typo in the
17822 comment.
17823 (settrlimit): Rename into setrlimit.
17824 (__sttrlimit): Rename into __setrlimit.
17825
17826 * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
17827 Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
17828 never defined in that case.
17829
17830 2018-01-02 Joseph Myers <joseph@codesourcery.com>
17831
17832 * sysdeps/powerpc/nofpu/libm-test-ulps: Update.
17833
17834 * sysdeps/arm/libm-test-ulps: Update.
17835
17836 * math/Makefile (run-regen-ulps): Add $(objpfx) to test name here.
17837 (regen-ulps): Use $(libm-tests) not $^ in shell loop.
17838
17839 2018-01-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
17840
17841 * NEWS: Add cosf and sincosf to list of optimized functions.
17842
17843 2018-01-02 Aurelien Jarno <aurelien@aurel32.net>
17844
17845 [BZ #22660]
17846 * sysdeps/alpha/fpu/s_fmax.S: Remove file.
17847 * sysdeps/alpha/fpu/s_fmaxf.S: Likewise.
17848 * sysdeps/alpha/fpu/s_fmin.S: Likewise.
17849 * sysdeps/alpha/fpu/s_fminf.S: Likewise.
17850
17851 2018-01-01 Dmitry V. Levin <ldv@altlinux.org>
17852
17853 [BZ #22433]
17854 * sysdeps/unix/sysv/linux/arm/sys/ptrace.h: New file.
17855
17856 * elf/dl-load.c (decompose_rpath): Check for rpath emptiness before
17857 making a copy of it.
17858
17859 2018-01-01 Joseph Myers <joseph@codesourcery.com>
17860
17861 * manual/texinfo.tex: Update to version 2017-12-26.21 with
17862 trailing whitespace removed.
17863 * scripts/config.guess: Update to version 2018-01-01.
17864 * scripts/config.sub: Update to version 2018-01-01.
17865 * scripts/move-if-change: Update from gnulib.
17866
17867 * NEWS: Update copyright dates.
17868 * catgets/gencat.c (print_version): Likewise.
17869 * csu/version.c (banner): Likewise.
17870 * debug/catchsegv.sh: Likewise.
17871 * debug/pcprofiledump.c (print_version): Likewise.
17872 * debug/xtrace.sh (do_version): Likewise.
17873 * elf/ldconfig.c (print_version): Likewise.
17874 * elf/ldd.bash.in: Likewise.
17875 * elf/pldd.c (print_version): Likewise.
17876 * elf/sotruss.sh: Likewise.
17877 * elf/sprof.c (print_version): Likewise.
17878 * iconv/iconv_prog.c (print_version): Likewise.
17879 * iconv/iconvconfig.c (print_version): Likewise.
17880 * locale/programs/locale.c (print_version): Likewise.
17881 * locale/programs/localedef.c (print_version): Likewise.
17882 * login/programs/pt_chown.c (print_version): Likewise.
17883 * malloc/memusage.sh (do_version): Likewise.
17884 * malloc/memusagestat.c (print_version): Likewise.
17885 * malloc/mtrace.pl: Likewise.
17886 * manual/libc.texinfo: Likewise.
17887 * nptl/version.c (banner): Likewise.
17888 * nscd/nscd.c (print_version): Likewise.
17889 * nss/getent.c (print_version): Likewise.
17890 * nss/makedb.c (print_version): Likewise.
17891 * posix/getconf.c (main): Likewise.
17892 * scripts/test-installation.pl: Likewise.
17893 * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
17894
17895 * All files with FSF copyright notices: Update copyright dates
17896 using scripts/update-copyrights.
17897 * locale/programs/charmap-kw.h: Regenerated.
17898 * locale/programs/locfile-kw.h: Likewise.
17899
17900 2017-12-31 Zack Weinberg <zackw@panix.com>
17901
17902 * libio/bits/libio-ldbl.h: Correct check for improper
17903 inclusion. Add own multiple include guard.
17904
17905 2017-12-30 Aurelien Jarno <aurelien@aurel32.net>
17906 Dmitry V. Levin <ldv@altlinux.org>
17907
17908 [BZ #22625]
17909 CVE-2017-16997
17910 * elf/dl-load.c (fillin_rpath): Check for empty tokens before dynamic
17911 string token expansion. Check for NULL pointer or empty string possibly
17912 returned by expand_dynamic_string_token.
17913 (decompose_rpath): Check for empty path after dynamic string
17914 token expansion.
17915
17916 2017-12-29 Dmitry V. Levin <ldv@altlinux.org>
17917
17918 [BZ #22433]
17919 * sysdeps/unix/sysv/linux/x86/sys/ptrace.h: New file.
17920
17921 * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_request): Add comments
17922 about PTRACE_PEEKSIGINFO, PTRACE_GETSIGMASK, PTRACE_SETSIGMASK, and
17923 PTRACE_SECCOMP_GET_FILTER. Update comments about PTRACE_SINGLESTEP
17924 and PTRACE_SYSCALL.
17925 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
17926 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17927 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17928 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17929 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17930 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17931
17932 * sysdeps/unix/sysv/linux/sys/ptrace.h: Include <bits/ptrace-shared.h>.
17933 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17934 __ptrace_peeksiginfo_flags, ptrace): Move to ...
17935 * sysdeps/unix/sysv/linux/bits/ptrace-shared.h: ... new file.
17936 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17937 bits/ptrace-shared.h.
17938 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Include
17939 <bits/ptrace-shared.h>.
17940 (__ptrace_setoptions, __ptrace_eventcodes, __ptrace_peeksiginfo_args,
17941 __ptrace_peeksiginfo_flags, ptrace): Remove.
17942 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
17943 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
17944 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
17945 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
17946 * sysdeps/unix/sysv/linux/tile/sys/ptrace.h: Likewise.
17947
17948 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17949
17950 [BZ #17804]
17951 * dirent/scandir-tail.c (SCANDIR_TAIL): Move __set_errno (0) at the
17952 end of the loop. Improve comments.
17953
17954 2017-12-29 Zack Weinberg <zackw@panix.com>
17955
17956 [BZ #22615]
17957 * manual/errno.texi (Checking for Errors): Explicitly say that errno
17958 might be set on success.
17959
17960 2017-12-29 Aurelien Jarno <aurelien@aurel32.net>
17961
17962 [BZ #22611]
17963 * malloc/tst-realloc.c (do_test): Remove the test checking that errno
17964 is unchanged on success.
17965
17966 2017-12-27 Dmitry V. Levin <ldv@altlinux.org>
17967
17968 * elf/dl-dst.h (DL_DST_COUNT): Remove is_path argument, all callers
17969 updated.
17970 * elf/dl-load.c (is_dst, _dl_dst_count, _dl_dst_substitute,
17971 expand_dynamic_string_token): Likewise.
17972 * sysdeps/generic/ldsodefs.h (_dl_dst_count, _dl_dst_substitute): Remove
17973 is_path argument.
17974
17975 * elf/dl-load.c (is_dst): Remove checks that is_path is set and name
17976 contains ':'.
17977
17978 * elf/dl-load.c (_dl_dst_substitute): Remove checks that is_path
17979 is set and name contains ':', and all code depending on these checks.
17980
17981 2017-12-24 Zack Weinberg <zackw@panix.com>
17982
17983 * libio/libio.h, libio/_G_config.h: New stub headers which issue a
17984 deprecation warning and then include <bits/libio.h>, <bits/_G_config.h>
17985 respectively.
17986 * libio/libio.h: Rename the original version of this file to
17987 libio/bits/libio.h. Error out if not included by stdio.h or the
17988 stub libio.h.
17989 * include/libio.h: Move to include/bits. Forward to libio/bits/libio.h.
17990 * sysdeps/generic/_G_config.h: Move to top-level bits/. Error out
17991 if not included by bits/libio.h or the stub _G_config.h.
17992 * sysdeps/unix/sysv/linux/_G_config.h: Move to
17993 sysdeps/unix/sysv/linux/bits. Error out if not included by
17994 bits/libio.h or the stub _G_config.h.
17995 * libio/stdio.h: Include bits/libio.h, not libio.h.
17996 * libio/Makefile: Install bits/libio.h and bits/_G_config.h as
17997 well as libio.h and _G_config.h.
17998
17999 * csu/init.c, libio/fmemopen.c, libio/iolibio.h, libio/oldfmemopen.c
18000 * libio/strfile.h, stdio-common/vfscanf.c
18001 * sysdeps/pthread/flockfile.c, sysdeps/pthread/funlockfile.c
18002 Include stdio.h, not _G_config.h nor libio.h.
18003 * libio/iofgetpos.c: Also rename fgetpos64 out of the way.
18004 * libio/iofsetpos.c: Also rename fsetpos64 out of the way.
18005
18006 * scripts/check-installed-headers.sh: Skip libio.h and _G_config.h.
18007
18008 2017-12-23 Dmitry V. Levin <ldv@altlinux.org>
18009
18010 [BZ #22347]
18011 * stdlib/getrandom.c (getrandom): Fix comment.
18012 * sysdeps/unix/sysv/linux/getrandom.c (getrandom): Likewise.
18013
18014 2017-12-23 Aurelien Jarno <aurelien@aurel32.net>
18015
18016 [BZ #21161]
18017 * manual/arith.texi (strtoul): Fix a typo.
18018
18019 [BZ #22596]
18020 * manual/arith.texi (finite): Fix the description of the return
18021 value.
18022
18023 2017-12-22 Eric Blake <ebb9@byu.net>
18024
18025 Avoid gcc warnings on cygwin
18026 * posix/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
18027 * posix/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
18028 Avoid unused variable.
18029
18030 2017-12-22 Florian Weimer <fweimer@redhat.com>
18031
18032 * io/Makefile (routines): Add copy_file_range.
18033 (tests): Add tst-copy_file_range.
18034 (tests-static, tests-internal): Add tst-copy_file_range-compat.
18035 * io/Versions (GLIBC_2.27): Export copy_file_range.
18036 * io/copy_file_range-compat.c: New file.
18037 * io/copy_file_range.c: Likewise.
18038 * io/tst-copy_file_range-compat.c: Likewise.
18039 * io/tst-copy_file_range.c: Likewise.
18040 * manual/llio.texi (Copying File Data): New section.
18041 * posix/unistd.h [__USE_GNU] (copy_file_range): Declare.
18042 * support/Makefile (libsupport-routines): Add support-xfstat,
18043 xftruncate, xlseek.
18044 * support/support-xfstat.c: New file.
18045 * support/xftruncate.c: Likewise.
18046 * support/xlseek.c: Likewise.
18047 * support/xunistd.h (xfstat, xftruncate, xlseek): Declare.
18048 * sysdeps/unix/sysv/linux/**.abilist: Update.
18049 * sysdeps/unix/sysv/linux/copy_file_range.c: New file.
18050
18051 2017-12-21 Szabolcs Nagy <szabolcs.nagy@arm.com>
18052
18053 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18054 disable-multi-arch variant to aarch64-linux-gnu.
18055
18056 2017-12-20 Joseph Myers <joseph@codesourcery.com>
18057
18058 * manual/texinfo.tex: Update to version 2017-12-18.20 with
18059 trailing whitespace removed.
18060 * scripts/config.guess: Update to version 2017-12-17.
18061 * scripts/config.sub: Update to version 2017-11-23.
18062 * scripts/install-sh: Update to version 2017-09-23.17.
18063 * scripts/move-if-change: Update to version 2017-09-13 06:45.
18064
18065 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18066
18067 * sysdeps/tile/__longjmp.S (__longjmp): Use lowercase instructions.
18068 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18069 * sysdeps/tile/_mcount.S (__mcount): Likewise.
18070 * sysdeps/tile/crti.S (_init, _fini): Likewise.
18071 * sysdeps/tile/crtn.S: Likewise.
18072 * sysdeps/tile/dl-start.S (_start): Likewise.
18073 * sysdeps/tile/dl-trampoline.S: Likewise.
18074 * sysdeps/tile/setjmp.S (__sigsetjmp): Likewise.
18075 * sysdeps/tile/start.S (_start): Likewise.
18076 * sysdeps/unix/sysv/linux/tile/clone.S (_clone): Likewise.
18077 * sysdeps/unix/sysv/linux/tile/getcontext.S (__getcontext): Likewise.
18078 * sysdeps/unix/sysv/linux/tile/ioctl.S (__ioctl): Likewise.
18079 * sysdeps/unix/sysv/linux/tile/setcontext.S (__setcontext): Likewise.
18080 * sysdeps/unix/sysv/linux/tile/swapcontext.S (__swapcontext): Likewise.
18081 * sysdeps/unix/sysv/linux/tile/syscall.S (syscall): Likewise.
18082 * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Likewise.
18083
18084 * stdlib/bug-getcontext.c (do_test): Remove tilepro mention in
18085 comment.
18086 * sysdeps/tile/preconfigure: Remove tilegx folder.
18087 * sysdeps/tile/tilegx/Implies: Move definitions to ...
18088 * sysdeps/tile/Implies: ... here.
18089 * sysdeps/tile/tilegx/Makefile: Move rules to ...
18090 * sysdeps/tile/Makefile: ... here.
18091 * sysdeps/tile/tilegx/atomic-machine.h: Move definitions to ...
18092 * sysdeps/tile/atomic-machine.h: ... here. Add include guards.
18093 * sysdeps/tile/tilegx/bits/wordsize.h: Move to ...
18094 * sysdeps/tile/bits/wordsize.h: ... here.
18095 * sysdeps/tile/tilegx/*: Move to ...
18096 * sysdeps/tile/*: ... here.
18097 * sysdeps/tile/tilegx/tilegx32/Implies: Move to ...
18098 * sysdeps/tile/tilegx32/Implies: ... here.
18099 * sysdeps/tile/tilegx/tilegx64/Implies: Move to ...
18100 * sysdeps/tile/tilegx64/Implies: ... here.
18101 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile: Move definitions
18102 to ...
18103 * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
18104 * sysdeps/unix/sysv/linux/tile/tilegx/*: Move to ...
18105 * sysdeps/unix/sysv/linux/tile/*: ... here.
18106 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/*: Move to ...
18107 * sysdeps/unix/sysv/linux/tile/tilegx32/*: ... here.
18108 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/*: Move to ...
18109 * sysdeps/unix/sysv/linux/tile/tilegx64/*: ... here.
18110
18111 * README: Remove tilepro-*-linux-gnu from supported architecture.
18112 * scripts/build-many-glibcs.py: Likewise.
18113 * sysdeps/tile/__tls_get_addr.S (__tls_get_addr): Likewise.
18114 * sysdeps/tile/crti.S (PREINIT_FUNCTION): Likewise.
18115 * sysdeps/tile/dl-machine.h (ELF_MACHINE_NAME,
18116 elf_machine_matches_host, elf_machine_dynamic,
18117 elf_machine_load_address, elf_machine_runtime_setup, reloc_howto
18118 howto, elf_machine_rela): Likewise.
18119 * sysdeps/tile/dl-start.S (_start): Likewise.
18120 * sysdeps/tile/memcmp.c (DBLALIGN, REVBYTES): Likewise.
18121 * sysdeps/tile/memcopy.h (MEMCPY_OK_FOR_FWD_MEMMOVE,
18122 MEMCPY_OK_FOR_FWD_MEMMOVE, op_t): Likewise.
18123 * sysdeps/tile/nptl/pthread_spin_lock.c (TNS, CMPTNS): Likewise.
18124 * sysdeps/tile/nptl/pthread_spin_trylock.c (TNS): Likewise.
18125 * sysdeps/tile/nptl/pthread_spin_unlock.c (pthread_spin_unlock):
18126 Likewise.
18127 * sysdeps/tile/nptl/tls.h (DB_THREAD_SELF): Likewise.
18128 * sysdeps/tile/preconfigure: Likewise.
18129 * sysdeps/tile/stackguard-macros.h (STACK_CHK_GUARD,
18130 POINTER_CHK_GUARD): Likewise.
18131 * sysdeps/tile/stackinfo.h (__stackinfo_sub): Likewise.
18132 * sysdeps/tile/start.S (_start): Likewise.
18133 * sysdeps/tile/tls-macros.h (TLS_GD_OFFSET, TLS_IE_OFFSET, _TLS_LE):
18134 Likewise.
18135 * sysdeps/tile/sysdep.h (REGSIZE): Likewise.
18136 (LD, LD4U, ST, ST4, BNEZ, BEQZ, BEQZT, BGTZ, CMPEQI, CMPEQ, CMOVEQZ,
18137 CMOVNEZ): Remove.
18138 * sysdeps/unix/sysv/linux/tile/bits/environments.h
18139 (__ILP32_OFF32_CFLAGS, __ILP32_OFFBIG_CFLAGS, __ILP32_OFF32_LDFLAGS,
18140 __ILP32_OFFBIG_LDFLAGS, __LP64_OFF64_CFLAGS, __LP64_OFF64_LDFLAGS):
18141 Likewise.
18142 * sysdeps/tile/wordcopy.c (DBLALIGN): Likewise.
18143 * sysdeps/tile/tilepro/Implies: Remove file.
18144 * sysdeps/tile/tilepro/atomic-machine.h: Likewise.
18145 * sysdeps/tile/tilepro/bits/wordsize.h: Likewise.
18146 * sysdeps/tile/tilepro/memchr.c: Likewise.
18147 * sysdeps/tile/tilepro/memcpy.S: Likewise.
18148 * sysdeps/tile/tilepro/memset.c: Likewise.
18149 * sysdeps/tile/tilepro/memusage.h: Likewise.
18150 * sysdeps/tile/tilepro/rawmemchr.c: Likewise.
18151 * sysdeps/tile/tilepro/strchr.c: Likewise.
18152 * sysdeps/tile/tilepro/strchrnul.c: Likewise.
18153 * sysdeps/tile/tilepro/strlen.c: Likewise.
18154 * sysdeps/tile/tilepro/strrchr.c: Likewise.
18155 * sysdeps/unix/sysv/linux/tile/tilepro/Implies: Likewise.
18156 * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: Likewise.
18157 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
18158 * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: Likewise.
18159 * sysdeps/unix/sysv/linux/tile/tilepro/ldconfig.h: Likewise.
18160 * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
18161 Likewise.
18162 * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: Likewise.
18163 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
18164 * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: Likewise.
18165 * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: Likewise.
18166 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
18167 * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: Likewise.
18168 * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: Likewise.
18169 * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: Likewise.
18170 * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: Likewise.
18171 * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: Likewise.
18172 * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: Likewise.
18173 * sysdeps/unix/sysv/linux/tile/tilepro/register-dump.h: Likewise.
18174 * sysdeps/unix/sysv/linux/tile/sysconf.c (linux_sysconf): Remove
18175 tilepro mention in comment.
18176
18177 * nptl/Makefile (libpthread-routines): Add pthread_join_common.
18178 * nptl/pthreadP.h (__pthread_timedjoin_ex): New prototype.
18179 * nptl/pthread_join_common.c: New file: common function used on
18180 pthread_join, pthread_timedjoin_np, pthread_tryjoin_np.
18181 * nptl/pthread_join.c (pthread_join): Use __pthread_timedjoin_ex.
18182 * nptl/pthread_tryjoin.c (pthread_tryjoin): Likewise.
18183 * nptl/pthread_timedjoin.c (pthread_timedjoin_np): Likewise.
18184 (cleanup): Move definition to pthread_join_common.c.
18185 * sysdeps/unix/sysv/linux/i386/lowlevellock.h (__lll_timedwait_tid):
18186 Remove superflous checks.
18187 * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (__lll_timedwait_tid):
18188 Likewise.
18189
18190 2017-12-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
18191
18192 * sysdeps/aarch64/libm-test-ulps: Update.
18193
18194 2017-12-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18195
18196 * sysdeps/aarch64/memset.S (MEMSET): Define.
18197
18198 2017-12-20 Florian Weimer <fweimer@redhat.com>
18199
18200 [BZ #22635]
18201 nptl: Provide full implementation of pthread_self in libc.so.
18202 * nptl/Makefile (routines): Add pthread_self.
18203 (libpthread-routines): Replace pthread_self with
18204 compat-pthread_self.
18205 * nptl/forward.c (pthread_self): Remove.
18206 * nptl/nptl-init.c (pthread_functions): Do not initialize
18207 ptr_pthread_self.
18208 * nptl/pthread_self.c (pthread_self): Remove weak alias.
18209 * nptl/compat-pthread_self.c: New file.
18210 * sysdeps/nptl/pthread-functions.h (struct pthread_functions):
18211 Remove ptr_pthread_self.
18212
18213 2017-12-19 Arnold D. Robbins <arnold@skeeve.com>
18214
18215 * posix/regcomp.c: Fix spelling in comments.
18216 * posix/regex.h: Likewise.
18217 * posix/regex_internal.c: Likewise.
18218 * posix/regexec.c: Likewise.
18219
18220 2017-12-19 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
18221
18222 [BZ #22377]
18223 * math/Makefile [C++] (tests): Add test for iseqsig.
18224 * math/math.h [C++] (iseqsig): New implementation, which does
18225 not rely on __MATH_TG/__builtin_types_compatible_p.
18226 * math/test-math-iseqsig.cc: New file.
18227 * sysdeps/powerpc/powerpc64le/Makefile
18228 (CFLAGS-test-math-iseqsig.cc): New variable.
18229
18230 2017-12-19 Dmitry V. Levin <ldv@altlinux.org>
18231
18232 * elf/dl-load.c (is_trusted_path): Remove.
18233 (fillin_rpath): Remove check_trusted argument and its use,
18234 all callers changed.
18235
18236 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18237
18238 [BZ #22630]
18239 * Makeconfig (link-pie-before-libc): Replace -pie with
18240 $(if $($(@F)-no-pie),$(no-pie-ldflag),-pie).
18241 * elf/Makefile (LDFLAGS-tst-dlopen-aout): Removed.
18242 (tst-dlopen-aout-no-pie): New.
18243 (LDFLAGS-tst-prelink): Removed.
18244 (tst-prelink-no-pie): New.
18245 (LDFLAGS-tst-main1): Removed.
18246 (tst-main1-no-pie): New.
18247 * gmon/Makefile (LDFLAGS-tst-gmon): Removed.
18248 (tst-gmon-no-pie): New.
18249
18250 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18251
18252 * manual/install.texi: Document that --enable-static-pie
18253 implies PIE.
18254 * INSTALL: Regenerated.
18255
18256 2017-12-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18257
18258 [BZ #21309]
18259 * sysdeps/ieee754/dbl-64/e_pow.c (checkint): Make m and n
18260 unsigned.
18261
18262 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18263
18264 Revert:
18265
18266 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18267
18268 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18269
18270 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18271
18272 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18273 <errno.h>. Include "eexp.tbl".
18274 (half): New constant.
18275 (one): Likewise.
18276 (__ieee754_exp): Rewrite.
18277 (__slowexp): Remove prototype.
18278 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18279 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18280 * sysdeps/i386/fpu/slowexp.c: Likewise.
18281 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18282 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18283 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18284 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18285 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18286 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18287 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18288 comment.
18289 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18290 (CPPFLAGS-slowexp.c): Remove variable.
18291 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18292 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18293 (CFLAGS-slowexp-fma.c): Remove variable.
18294 (CFLAGS-slowexp-fma4.c): Likewise.
18295 (CFLAGS-slowexp-avx.c): Likewise.
18296 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18297 define as macro.
18298 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18299 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18300 * math/Makefile (type-double-routines): Remove slowexp.
18301 * manual/probes.texi (slowexp_p6): Remove.
18302 (slowexp_p32): Likewise.
18303
18304 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18305
18306 * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
18307 arithmetic.
18308
18309 * lib/glob.c (glob): Do not pass NULL to mempcpy.
18310
18311 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18312
18313 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
18314
18315 2017-12-19 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18316
18317 * sysdeps/ieee754/dbl-64/e_exp.c: Include <math-svid-compat.h> and
18318 <errno.h>. Include "eexp.tbl".
18319 (half): New constant.
18320 (one): Likewise.
18321 (__ieee754_exp): Rewrite.
18322 (__slowexp): Remove prototype.
18323 * sysdeps/ieee754/dbl-64/eexp.tbl: New file.
18324 * sysdeps/ieee754/dbl-64/slowexp.c: Remove file.
18325 * sysdeps/i386/fpu/slowexp.c: Likewise.
18326 * sysdeps/ia64/fpu/slowexp.c: Likewise.
18327 * sysdeps/m68k/m680x0/fpu/slowexp.c: Likewise.
18328 * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: Likewise.
18329 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
18330 * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
18331 * sysdeps/generic/math_private.h (__slowexp): Remove prototype.
18332 * sysdeps/ieee754/dbl-64/e_pow.c: Remove mention of slowexp.c in
18333 comment.
18334 * sysdeps/powerpc/power4/fpu/Makefile [$(subdir) = math]
18335 (CPPFLAGS-slowexp.c): Remove variable.
18336 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18337 Remove slowexp-fma, slowexp-fma4 and slowexp-avx.
18338 (CFLAGS-slowexp-fma.c): Remove variable.
18339 (CFLAGS-slowexp-fma4.c): Likewise.
18340 (CFLAGS-slowexp-avx.c): Likewise.
18341 * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c (__slowexp): Do not
18342 define as macro.
18343 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c (__slowexp): Likewise.
18344 * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c (__slowexp): Likewise.
18345 * math/Makefile (type-double-routines): Remove slowexp.
18346 * manual/probes.texi (slowexp_p6): Remove.
18347 (slowexp_p32): Likewise.
18348
18349 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18350 James Clarke <jrtc27@jrtc27.com>
18351
18352 [BZ #22603]
18353 * sysdeps/ia64/memchr.S (__memchr): Avoid overflow in pointer
18354 addition.
18355
18356 2017-12-19 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18357
18358 [BZ #22605]
18359 * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Fix exit return
18360 code.
18361
18362 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18363
18364 [BZ #22563]
18365 * sysdeps/i386/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18366 * sysdeps/i386/nptl/tls.h (tcbhead_t): Add feature_1.
18367 * sysdeps/x86_64/nptl/tcb-offsets.sym (FEATURE_1_OFFSET): New.
18368 * sysdeps/x86_64/nptl/tls.h (tcbhead_t): Rename __glibc_unused1
18369 to feature_1.
18370
18371 2017-12-19 H.J. Lu <hongjiu.lu@intel.com>
18372
18373 [BZ #22563]
18374 * bits/types/__cancel_jmp_buf_tag.h: New file.
18375 * sysdeps/unix/sysv/linux/x86/bits/types/__cancel_jmp_buf_tag.h
18376 * sysdeps/unix/sysv/linux/x86/pthreaddef.h: Likewise.
18377 * sysdeps/unix/sysv/linux/x86/nptl/pthreadP.h: Likewise.
18378 * nptl/Makefile (headers): Add
18379 bits/types/__cancel_jmp_buf_tag.h.
18380 * nptl/descr.h [NEED_SAVED_MASK_IN_CANCEL_JMP_BUF]
18381 (pthread_unwind_buf): Add saved_mask to cancel_jmp_buf.
18382 * sysdeps/nptl/pthread.h: Include
18383 <bits/types/__cancel_jmp_buf_tag.h>.
18384 (__pthread_unwind_buf_t): Use struct __cancel_jmp_buf_tag with
18385 __cancel_jmp_buf.
18386 * sysdeps/unix/sysv/linux/hppa/pthread.h: Likewise.
18387
18388 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18389
18390 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
18391 --enable-static-pie variants to x86_64, x32 and i686.
18392
18393 2017-12-19 Joseph Myers <joseph@codesourcery.com>
18394
18395 [BZ #22631]
18396 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__m81_defun): Add
18397 argument for attrubutes. All callers changed.
18398 (__inline_mathop1): Likewise. All callers changed.
18399 (__inline_mathop): Likewise. All callers changed.
18400 [__USE_MISC] (scalbn): Use __inline_forward instead of
18401 __inline_forward_c.
18402 [__USE_ISOC99] (scalbln): Likewise.
18403 [__USE_ISOC99] (nearbyint): Likewise.
18404 [__USE_ISOC99] (lrint): Likewise.
18405 [__USE_MISC] (scalbnf): Likewise.
18406 [__USE_ISOC99] (scalblnf): Likewise.
18407 [__USE_ISOC99] (nearbyintf): Likewise.
18408 [__USE_ISOC99] (lrintf): Likewise.
18409 [__USE_MISC] (scalbnl): Likewise.
18410 [__USE_ISOC99] (scalblnl): Likewise.
18411 [__USE_ISOC99] (nearbyintl): Likewise.
18412 [__USE_ISOC99] (lrintl): Likewise.
18413 * sysdeps/m68k/m680x0/fpu/mathimpl.h: All callers of
18414 __inline_mathop and __m81_defun changed.
18415
18416 * scripts/build-many-glibcs.py (Context.add_all_configs): Specify
18417 CPU or FPU for ARM hard-float configurations.
18418
18419 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18420
18421 * nptl/tst-attr3.c: Include <libc-diag.h>.
18422 (do_test) [__GNUC_PREREQ (7, 0)]: Ignore -Wrestrict for two tests.
18423
18424 * posix/tst-glob_symlinks.c (do_test): Increase size of buf.
18425
18426 * string/tester.c (test_strncat): Also disable -Warray-bounds
18427 warnings for two tests.
18428
18429 2017-12-18 H.J. Lu <hongjiu.lu@intel.com>
18430
18431 [BZ #22614]
18432 * Makeconfig (no-pie-ldflag): Set to -no-pie only if
18433 $(cc-pie-default) == yes.
18434 * config.make.in (cc-pie-default): New.
18435 * configure.ac (libc_cv_pie_default): Renamed to ...
18436 (libc_cv_cc_pie_default): This.
18437 (libc_cv_pie_default): Set to $libc_cv_cc_pie_default.
18438 * configure: Regenerated.
18439
18440 2017-12-18 Florian Weimer <fweimer@redhat.com>
18441
18442 [BZ #20204]
18443 ld.so: Harden dl-libc/libdl hooks.
18444 * sysdeps/generic/ldsodefs.h (_dl_init_all_dirs): Update comment.
18445 (rtld_active): New function.
18446 * dlfcn/dladdr.c (__dladdr): Call it.
18447 * dlfcn/dladdr1.c (__dladdr1): Likewise.
18448 * dlfcn/dlclose.c (__dlcose): Likewise.
18449 * dlfcn/dlerror.c (__dlerror): Likewise.
18450 * dlfcn/dlinfo.c (__dlinfo): Likewise.
18451 * dlfcn/dlmopen.c (__dlmopen): Likewise.
18452 * dlfcn/dlopen.c (__dlopen): Likewise.
18453 * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
18454 * dlfcn/dlsym.c (__dlsym): Likewise.
18455 * dlfcn/dlvsym.c (__dlvsym): Likewise.
18456 * libio/vtables.c (_IO_vtable_check): Likewise.
18457 * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym)
18458 (__libc_dlclose): Likewise.
18459 * elf/rtld.c (dl_main): Update comment on the _dl_init_all_dirs
18460 assignment.
18461
18462 2017-12-18 Joseph Myers <joseph@codesourcery.com>
18463
18464 [BZ #22446]
18465 * nscd/connections.c (handle_request) [SO_PEERCRED]: Use separate
18466 buffers for readlink input and output.
18467
18468 2017-12-18 Sergei Trofimovich <slyfox@gentoo.org>
18469
18470 [BZ #22624]
18471 * sysdeps/mips/setjmp_aux.c (__sigsetjmp_aux): Use
18472 inhibit_stack_protector.
18473
18474 [BZ #22624]
18475 * sysdeps/mips/mips64/setjmp_aux.c (__sigsetjmp_aux): Use
18476 inhibit_stack_protector.
18477
18478 2017-12-18 Dmitry V. Levin <ldv@altlinux.org>
18479
18480 [BZ #22627]
18481 * elf/dl-load.c (_dl_init_paths): Remove _dl_dst_substitute preparatory
18482 code and invocation.
18483
18484 2017-12-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
18485
18486 * sysdeps/aarch64/start.S (_start): Handle PIC && !SHARED case.
18487
18488 2017-12-16 Aurelien Jarno <aurelien@aurel32.net>
18489
18490 [BZ #22505]
18491 * elf/ldconfig.c (main): Call setlocale to force LC_COLLATE to C.
18492
18493 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18494
18495 * sysdeps/s390/fpu/libm-test-ulps: Update.
18496
18497 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18498
18499 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18500
18501 2017-12-16 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18502
18503 * sysdeps/ieee754/flt-32/s_cosf.c: Move reduced() and
18504 constants to s_sincosf.h file.
18505 * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
18506 * sysdeps/ieee754/flt-32/s_sincosf.c: New
18507 implementation.
18508 * sysdeps/ieee754/flt-32/s_sincosf.h:
18509 New file.
18510
18511 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18512
18513 [BZ #14681]
18514 * elf/tst-leaks1.c (do_test): Call one dlopen with $ORIGIN expansion
18515 before mtrace.
18516
18517 2017-12-15 H.J. Lu <hongjiu.lu@intel.com>
18518
18519 [BZ #19574]
18520 * INSTALL: Regenerated.
18521 * Makeconfig (real-static-start-installed-name): New.
18522 (pic-default): Updated for --enable-static-pie.
18523 (pie-default): New for --enable-static-pie.
18524 (default-pie-ldflag): Likewise.
18525 (+link-static-before-libc): Replace $(DEFAULT-LDFLAGS-$(@F))
18526 with $(if $($(@F)-no-pie),$(no-pie-ldflag),$(default-pie-ldflag)).
18527 Replace $(static-start-installed-name) with
18528 $(real-static-start-installed-name).
18529 (+prectorT): Updated for --enable-static-pie.
18530 (+postctorT): Likewise.
18531 (CFLAGS-.o): Add $(pie-default).
18532 (CFLAGS-.op): Likewise.
18533 * NEWS: Mention --enable-static-pie.
18534 * config.h.in (ENABLE_STATIC_PIE): New.
18535 * configure.ac (--enable-static-pie): New configure option.
18536 (have-no-dynamic-linker): New LIBC_CONFIG_VAR.
18537 (have-static-pie): Likewise.
18538 Enable static PIE if linker supports --no-dynamic-linker.
18539 (ENABLE_STATIC_PIE): New AC_DEFINE.
18540 (enable-static-pie): New LIBC_CONFIG_VAR.
18541 * configure: Regenerated.
18542 * csu/Makefile (omit-deps): Add r$(start-installed-name) and
18543 gr$(start-installed-name) for --enable-static-pie.
18544 (extra-objs): Likewise.
18545 (install-lib): Likewise.
18546 (extra-objs): Add static-reloc.o and static-reloc.os
18547 ($(objpfx)$(start-installed-name)): Also depend on
18548 $(objpfx)static-reloc.o.
18549 ($(objpfx)r$(start-installed-name)): New.
18550 ($(objpfx)g$(start-installed-name)): Also depend on
18551 $(objpfx)static-reloc.os.
18552 ($(objpfx)gr$(start-installed-name)): New.
18553 * csu/libc-start.c (LIBC_START_MAIN): Call _dl_relocate_static_pie
18554 in libc.a.
18555 * csu/libc-tls.c (__libc_setup_tls): Add main_map->l_addr to
18556 initimage.
18557 * csu/static-reloc.c: New file.
18558 * elf/Makefile (routines): Add dl-reloc-static-pie.
18559 (elide-routines.os): Likewise.
18560 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): Removed.
18561 (tst-tls1-static-non-pie-no-pie): New.
18562 * elf/dl-reloc-static-pie.c: New file.
18563 * elf/dl-support.c (_dl_get_dl_main_map): New function.
18564 * elf/dynamic-link.h (ELF_DURING_STARTUP): Also check
18565 STATIC_PIE_BOOTSTRAP.
18566 * elf/get-dynamic-info.h (elf_get_dynamic_info): Likewise.
18567 * gmon/Makefile (tests): Add tst-gmon-static-pie.
18568 (tests-static): Likewise.
18569 (DEFAULT-LDFLAGS-tst-gmon-static): Removed.
18570 (tst-gmon-static-no-pie): New.
18571 (CFLAGS-tst-gmon-static-pie.c): Likewise.
18572 (CRT-tst-gmon-static-pie): Likewise.
18573 (tst-gmon-static-pie-ENV): Likewise.
18574 (tests-special): Likewise.
18575 ($(objpfx)tst-gmon-static-pie.out): Likewise.
18576 (clean-tst-gmon-static-pie-data): Likewise.
18577 ($(objpfx)tst-gmon-static-pie-gprof.out): Likewise.
18578 * gmon/tst-gmon-static-pie.c: New file.
18579 * manual/install.texi: Document --enable-static-pie.
18580 * sysdeps/generic/ldsodefs.h (_dl_relocate_static_pie): New.
18581 (_dl_get_dl_main_map): Likewise.
18582 * sysdeps/i386/configure.ac: Check if linker supports static PIE.
18583 * sysdeps/x86_64/configure.ac: Likewise.
18584 * sysdeps/i386/configure: Regenerated.
18585 * sysdeps/x86_64/configure: Likewise.
18586 * sysdeps/mips/Makefile (ASFLAGS-.o): Add $(pie-default).
18587 (ASFLAGS-.op): Likewise.
18588
18589 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18590
18591 * io/Makefile (tst-open-tmpfile-ARGS): New variable.
18592 * posix/tst-mmap-offset.c (fname): Use /tmp.
18593 * stdlib/tst-setcontext3.sh (tempfile): Use ${objpfx}.
18594
18595 2017-12-15 Steve Ellcey <sellcey@cavium.com>
18596
18597 * nscd/dbg_log.c (dbg_log): Increase msg buffer size.
18598
18599 2017-12-15 Thomas Schwinge <thomas@codesourcery.com>
18600
18601 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno): Don't set
18602 errno.
18603
18604 2017-12-15 Joseph Myers <joseph@codesourcery.com>
18605
18606 * scripts/build-many-glibcs.py (Context.add_all_configs): Use
18607 --with-float=hard for arm-linux-gnueabihf configurations.
18608
18609 [BZ #14121]
18610 * po/Makefile (generated): Add $(ALL_LINGUAS:%=%.mo).
18611 (%.mo): Change to $(objpfx)%.mo. Use $(make-target-directory).
18612 ($(mo-installed)): Use $(objpfx)%.mo.
18613 (realclean): Remove rule.
18614
18615 * po/Makefile (linguas): Remove rule and dependencies.
18616 (linguas.mo): Likewise.
18617 (.PHONY): Do not depend on linguas and linguas.mo.
18618 (podir): Remove variable.
18619 (pofiles): Likewise.
18620 [$(pofiles)] (%.po): Remove rule.
18621
18622 * sysdeps/sparc/sparc32/Makefile
18623 ($(divrem:%=$(sysdep_dir)/sparc/sparc32/%.S)): Do not include
18624 start-of-line whitespace in argument of echo.
18625 * sysdeps/sparc/sparc32/divrem.m4: Avoid generating lines starting
18626 with whitespace. Generate __wrap_.udiv alias.
18627 * sysdeps/sparc/sparc32/rem.S: Regenerated.
18628 * sysdeps/sparc/sparc32/sdiv.S: Likewise.
18629 * sysdeps/sparc/sparc32/udiv.S: Likewise.
18630 * sysdeps/sparc/sparc32/urem.S: Likewise.
18631
18632 2017-12-15 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
18633
18634 * sysdeps/powerpc/powerpc64/power8/strcpy.S: Use vectors
18635 for aligned inputs.
18636
18637 2017-12-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
18638
18639 * benchtests/bench-strcmp.c: Print output in JSON format.
18640
18641 * elf/dl-tunables.list: Remove redundant SXID_ERASE.
18642
18643 2017-12-14 Florian Weimer <fweimer@redhat.com>
18644
18645 [BZ #22607]
18646 CVE-2017-1000409
18647 * elf/dl-load.c (_dl_init_paths): Compute number of components in
18648 the expanded path string.
18649
18650 2017-12-14 Florian Weimer <fweimer@redhat.com>
18651
18652 [BZ #22606]
18653 CVE-2017-1000408
18654 * elf/dl-load.c (system_dirs): Update comment.
18655 (nsystem_dirs_len): Use array_length.
18656 (_dl_init_paths): Use nsystem_dirs_len to compute the array size.
18657
18658 2017-12-14 Florian Weimer <fweimer@redhat.com>
18659
18660 Simplify compiling most of support/ outside of glibc.
18661 * support/check_addrinfo.c: Include <string.h>.
18662 * support/check_dns_packet.c: Likewise.
18663 * support/check_hostent.c: Likewise.
18664 * support/support_can_chroot.c: Include <support/xunistd.h>.
18665 * support/support_format_addrinfo.c: Include <stdlib.h>
18666 * support/support_format_dns_packet.c: Include <stdbool.h>.
18667 * support/support_format_hostent.c: Include <stdlib.h>.
18668 * support/support_format_netent.c: Likewise.
18669 * support/support_write_string.c: Include <support/xunistd.h>.
18670 * support/xdlfcn.c: Include <stddef.h>.
18671
18672 2017-12-14 H.J. Lu <hongjiu.lu@intel.com>
18673
18674 * sysdeps/x86_64/fpu/s_cosf.S: Removed.
18675
18676 2017-12-14 Patrick McGehearty <patrick.mcgehearty@oracle.com>
18677 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18678
18679 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18680 (sysdeps_routines): Add memset-niagara7.
18681 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdes_rotuines):
18682 Likewise.
18683 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara7.S: New
18684 file.
18685 * sysdeps/sparc/sparc64/multiarch/memset-niagara7.S: Likewise.
18686 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18687 (__libc_ifunc_impl_list): Add __bzero_niagara7 and __memset_niagara7.
18688 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h (IFUNC_SELECTOR):
18689 Add niagara7 option.
18690 * NEWS: Mention sparc m7 optimized memcpy, mempcpy, memmove, and
18691 memset.
18692
18693 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
18694 (sysdeps_routines): Add memcpy-memmove-niagara7 and memmove-ultra1.
18695 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdeps_routines):
18696 Likewise.
18697 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-memmove-niagara7.S:
18698 New file.
18699 * sysdeps/sparc/sparc32/sparcv9/multiarch/memmove-ultra1.S: Likewise.
18700 * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memmove.c: Likewise.
18701 * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c
18702 (__libc_ifunc_impl_list): Add __memcpy_niagara7, __mempcpy_niagara7,
18703 and __memmove_niagara7.
18704 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h (IFUNC_SELECTOR):
18705 Add niagara7 option.
18706 * sysdeps/sparc/sparc64/multiarch/memmove.c: New file.
18707 * sysdeps/sparc/sparc64/multiarch/ifunc-memmove.h: Likewise.
18708 * sysdeps/sparc/sparc64/multiarch/memcpy-memmove-niagara7.S: Likewise.
18709 * sysdeps/sparc/sparc64/multiarch/memmove-ultra1.S: Likewise.
18710 * sysdeps/sparc/sparc64/multiarch/rtld-memmove.c: Likewise.
18711
18712 2017-12-14 Jose E. Marchesi <jose.marchesi@oracle.com>
18713
18714 * sysdeps/sparc/sparc32/sparcv9/memmove.S: New file.
18715 * sysdeps/sparc/sparc32/sparcv9/rtld-memmove.c: Likewise.
18716 * sysdeps/sparc/sparc64/memmove.S: Likewise.
18717 * sysdeps/sparc/sparc64/rtld-memmove.c: Likewise.
18718
18719 * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_ADP): Defined.
18720 * sysdeps/sparc/dl-procinfo.c: Added "adp" to the
18721 _dl_sparc_cap_flags array.
18722 * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increment.
18723
18724 2017-12-13 Siddhesh Poyarekar <siddhesh@sourceware.org>
18725
18726 * sysdeps/aarch64/strcmp.S (misaligned8): Compare dword at a
18727 time whenever possible.
18728
18729 2017-12-12 Carlos O'Donell <carlos@redhat.com>
18730
18731 * elf/Makefile [$(nss-crypt)$(static-nss-crypt) == yesno]
18732 (CFLAGS-tst-linkall-static.c): Undefine USE_CRYPT first.
18733
18734 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18735
18736 * soft-fp/fmadf4.c: Move to ....
18737 * sysdeps/ieee754/soft-fp/s_fma.c: ... here.
18738 * soft-fp/fmasf4.c: Move to ....
18739 * sysdeps/ieee754/soft-fp/s_fmaf.c: ... here.
18740 * soft-fp/fmatf4.c: Move to ....
18741 * sysdeps/ieee754/soft-fp/s_fmal.c: ... here.
18742 * sysdeps/ieee754/soft-fp/Makefile: New file.
18743 * sysdeps/arm/preconfigure.ac: Define with_fp_cond.
18744 * sysdeps/arm/preconfigure: Regenerated.
18745 * sysdeps/arm/nofpu/Implies: New file.
18746 * sysdeps/arm/s_fma.c: Remove file.
18747 * sysdeps/arm/s_fmaf.c: Likewise.
18748 * sysdeps/m68k/coldfire/nofpu/Implies: New file.
18749 * sysdeps/m68k/coldfire/nofpu/s_fma.c: Remove file.
18750 * sysdeps/m68k/coldfire/nofpu/s_fmaf.c: Likewise.
18751 * sysdeps/microblaze/Implies: Add ieee754/soft-fp.
18752 * sysdeps/microblaze/s_fma.c: Remove file.
18753 * sysdeps/microblaze/s_fmaf.c: Likewise.
18754 * sysdeps/mips/mips32/nofpu/Implies: New file.
18755 * sysdeps/mips/mips64/n32/fpu/s_fma.c: Likewise.
18756 * sysdeps/mips/mips64/n32/nofpu/Implies: Likewise.
18757 * sysdeps/mips/mips64/n64/fpu/s_fma.c: Likewise.
18758 * sysdeps/mips/mips64/n64/nofpu/Implies: Likewise.
18759 * sysdeps/mips/ieee754/s_fma.c: Remove file.
18760 * sysdeps/mips/ieee754/s_fmaf.c: Likewise.
18761 * sysdeps/mips/ieee754/s_fmal.c: Update include for move of fmal
18762 implementation.
18763 * sysdeps/nios2/Implies: Add ieee754/soft-fp.
18764 * sysdeps/nios2/s_fma.c: Remove file.
18765 * sysdeps/nios2/s_fmaf.c: Likewise.
18766 * sysdeps/sh/nofpu/Implies: New file.
18767 * sysdeps/sh/s_fma.c: Remove file.
18768 * sysdeps/sh/s_fmaf.c: Likewise.
18769 * sysdeps/tile/Implies: Add ieee754/soft-fp.
18770 * sysdeps/tile/s_fma.c: Remove file.
18771 * sysdeps/tile/s_fmaf.c: Likewise.
18772
18773 2017-12-12 H.J. Lu <hongjiu.lu@intel.com>
18774
18775 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
18776 Add s_cosf-sse2 and s_cosf-fma.
18777 (CFLAGS-s_cosf-fma.c): New.
18778 * sysdeps/x86_64/fpu/multiarch/s_cosf-fma.c: New file.
18779 * sysdeps/x86_64/fpu/multiarch/s_cosf-sse2.c: Likewise.
18780 * sysdeps/x86_64/fpu/multiarch/s_cosf.c: Likewise.
18781
18782 2017-12-12 Steve Ellcey <sellcey@cavium.com>
18783
18784 * nscd/nscd.h (init_traced_file): Change strncpy to memcpy.
18785
18786 2017-12-12 Adhemerval Zanella <adhemerval.zanella@linaro.org>
18787
18788 * libio/Makefile (tests): Add tst-bz22415.
18789 (tst-bz22415-ENV): New rule.
18790 (generated): Add tst-bz22415.mtrace and tst-bz22415.check.
18791 (tests-special): Add tst-bz22415-mem.out.
18792 ($(objpfx)tst-bz22415-mem.out): New rule.
18793 * libio/fileops.c (_IO_new_file_seekoff): Call _IO_free_backup_area
18794 in case of a successful seek operation.
18795 * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
18796 (_IO_wfile_overflow): Call _IO_free_wbackup_area in case a write
18797 buffer is required.
18798 * libio/tst-bz22415.c: New test.
18799
18800 * sysdeps/ia64/fpu/libm-test-ulps: Update.
18801
18802 2017-12-12 James Clarke <jrtc27@jrtc27.com>
18803
18804 * sysdeps/unix/sysv/linux/ia64/ipc_priv.h: New file defining
18805 __IPC_64 to 0 to avoid IPC_64 being set.
18806
18807 2017-12-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
18808
18809 [BZ #22593]
18810 * math/bits/mathcalls.h (nextafter): Remove const.
18811 (nexttoward): Likewise.
18812
18813 2017-12-12 Joseph Myers <joseph@codesourcery.com>
18814
18815 * configure.ac (--with-fp): Remove configure option.
18816 (with_fp_cond): New variable.
18817 (libc_cv_with_fp): New configure test. Use this variable instead
18818 of with_fp.
18819 * configure: Regenerated.
18820 * config.make.in (with-fp): Use @libc_cv_with_fp@.
18821 * manual/install.texi (Configuring and compiling): Remove
18822 --without-fp.
18823 * INSTALL: Regenerated.
18824 * sysdeps/m68k/preconfigure (with_fp_cond): Define for ColdFire.
18825 * sysdeps/mips/preconfigure (with_fp_cond): Define.
18826 * sysdeps/powerpc/preconfigure (with_fp_cond): Define for 32-bit.
18827 * sysdeps/sh/preconfigure (with_fp_cond): Define.
18828 * scripts/build-many-glibcs.py (Context.add_all_configs): Do not
18829 use --without-fp to configure glibc.
18830
18831 2017-12-12 Rical Jasan <ricaljasan@pacific.net>
18832
18833 * manual/locale.texi (nl_langinfo): Fix a typo.
18834
18835 2017-12-12 Aurelien Jarno <aurelien@aurel32.net>
18836
18837 [BZ #22588]
18838 * manual/conf.texi (SC_SSIZE_MAX): Rename into _SC_SSIZE_MAX.
18839
18840 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
18841
18842 * argp/Makefile (CFLAGS-argp-help.c): Replace = with +=.
18843 (CFLAGS-argp-parse.c): Likewise.
18844 (CFLAGS-argp-fmtstream.c): Likewise.
18845 * crypt/Makefile (CPPFLAGS-sha256-crypt.c): Likewise.
18846 (CPPFLAGS-sha512-crypt.c): Likewise.
18847 (CPPFLAGS-md5-crypt.c): Likewise.
18848 * debug/Makefile (CFLAGS-stack_chk_fail.c): Likewise.
18849 (CFLAGS-stack_chk_fail_local.c): Likewise.
18850 (CFLAGS-backtrace.c): Likewise.
18851 (CFLAGS-sprintf_chk.c): Likewise.
18852 (CFLAGS-snprintf_chk.c): Likewise.
18853 (CFLAGS-vsprintf_chk.c): Likewise.
18854 (CFLAGS-vsnprintf_chk.c): Likewise.
18855 (CFLAGS-asprintf_chk.c): Likewise.
18856 (CFLAGS-vasprintf_chk.c): Likewise.
18857 (CFLAGS-obprintf_chk.c): Likewise.
18858 (CFLAGS-dprintf_chk.c): Likewise.
18859 (CFLAGS-vdprintf_chk.c): Likewise.
18860 (CFLAGS-printf_chk.c): Likewise.
18861 (CFLAGS-fprintf_chk.c): Likewise.
18862 (CFLAGS-vprintf_chk.c): Likewise.
18863 (CFLAGS-vfprintf_chk.c): Likewise.
18864 (CFLAGS-gets_chk.c): Likewise.
18865 (CFLAGS-fgets_chk.c): Likewise.
18866 (CFLAGS-fgets_u_chk.c): Likewise.
18867 (CFLAGS-fread_chk.c): Likewise.
18868 (CFLAGS-fread_u_chk.c): Likewise.
18869 (CFLAGS-swprintf_chk.c): Likewise.
18870 (CFLAGS-vswprintf_chk.c): Likewise.
18871 (CFLAGS-wprintf_chk.c): Likewise.
18872 (CFLAGS-fwprintf_chk.c): Likewise.
18873 (CFLAGS-vwprintf_chk.c): Likewise.
18874 (CFLAGS-vfwprintf_chk.c): Likewise.
18875 (CFLAGS-fgetws_chk.c): Likewise.
18876 (CFLAGS-fgetws_u_chk.c): Likewise.
18877 (CFLAGS-read_chk.c): Likewise.
18878 (CFLAGS-pread_chk.c): Likewise.
18879 (CFLAGS-pread64_chk.c): Likewise.
18880 (CFLAGS-recv_chk.c): Likewise.
18881 (CFLAGS-recvfrom_chk.c): Likewise.
18882 (CFLAGS-tst-longjmp_chk.c): Likewise.
18883 (CPPFLAGS-tst-longjmp_chk.c): Likewise.
18884 (CFLAGS-tst-longjmp_chk2.c): Likewise.
18885 (CPPFLAGS-tst-longjmp_chk2.c): Likewise.
18886 (CFLAGS-tst-longjmp_chk3.c): Likewise.
18887 (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
18888 (CFLAGS-tst-chk1.c): Likewise.
18889 (CFLAGS-tst-chk2.c): Likewise.
18890 (CFLAGS-tst-chk3.c): Likewise.
18891 (CFLAGS-tst-chk4.cc): Likewise.
18892 (CFLAGS-tst-chk5.cc): Likewise.
18893 (CFLAGS-tst-chk6.cc): Likewise.
18894 (CFLAGS-tst-lfschk1.c): Likewise.
18895 (CFLAGS-tst-lfschk2.c): Likewise.
18896 (CFLAGS-tst-lfschk3.c): Likewise.
18897 (CFLAGS-tst-lfschk4.cc): Likewise.
18898 (CFLAGS-tst-lfschk5.cc): Likewise.
18899 (CFLAGS-tst-lfschk6.cc): Likewise.
18900 (CFLAGS-tst-ssp-1.c): Likewise.
18901 * dirent/Makefile (CFLAGS-scandir.c): Likewise.
18902 (CFLAGS-scandir64.c): Likewise.
18903 (CFLAGS-scandir-tail.c): Likewise.
18904 (CFLAGS-scandir64-tail.c): Likewise.
18905 * elf/Makefile (CPPFLAGS-dl-tunables.c): Likewise.
18906 (CFLAGS-dl-tunables.c): Likewise.
18907 (CFLAGS-dl-runtime.c): Likewise.
18908 (CFLAGS-dl-lookup.c): Likewise.
18909 (CFLAGS-dl-iterate-phdr.c): Likewise.
18910 (CFLAGS-vismain.c): Likewise.
18911 (CFLAGS-tst-linkall-static.c): Likewise.
18912 (CFLAGS-tst-linkall-static.c): Likewise.
18913 (CPPFLAGS-dl-load.c): Likewise.
18914 (CFLAGS-ldconfig.c): Likewise.
18915 (CFLAGS-dl-cache.c): Likewise.
18916 (CFLAGS-cache.c): Likewise.
18917 (CFLAGS-rtld.c): Likewise.
18918 (CFLAGS-multiload.c): Likewise.
18919 (CFLAGS-filtmod1.c): Likewise.
18920 (CFLAGS-tst-align.c): Likewise.
18921 (CFLAGS-tst-align2.c): Likewise.
18922 (CFLAGS-tst-alignmod.c): Likewise.
18923 (CFLAGS-tst-alignmod2.c): Likewise.
18924 (CPPFLAGS-tst-execstack.c): Likewise.
18925 (CFLAGS-tst-ptrguard1-static.c): Likewise.
18926 (CFLAGS-tst-latepthreadmod.c): Likewise.
18927 * grp/Makefile (CFLAGS-getgrgid_r.c): Likewise.
18928 (CFLAGS-getgrnam_r.c): Likewise.
18929 (CFLAGS-getgrent_r.c): Likewise.
18930 (CFLAGS-getgrent.c): Likewise.
18931 (CFLAGS-fgetgrent.c): Likewise.
18932 (CFLAGS-fgetgrent_r.c): Likewise.
18933 (CFLAGS-putgrent.c): Likewise.
18934 (CFLAGS-initgroups.c): Likewise.
18935 (CFLAGS-getgrgid.c): Likewise.
18936 * gshadow/Makefile (CFLAGS-getsgent_r.c): Likewise.
18937 (CFLAGS-getsgent.c): Likewise.
18938 (CFLAGS-fgetsgent.c): Likewise.
18939 (CFLAGS-fgetsgent_r.c): Likewise.
18940 (CFLAGS-putsgent.c): Likewise.
18941 (CFLAGS-getsgnam.c): Likewise.
18942 (CFLAGS-getsgnam_r.c): Likewise.
18943 * iconv/Makefile (CFLAGS-iconv_prog.c): Likewise.
18944 (CFLAGS-iconv_charmap.c): Likewise.
18945 (CFLAGS-dummy-repertoire.c): Likewise.
18946 (CFLAGS-charmap.c): Likewise.
18947 (CFLAGS-linereader.c): Likewise.
18948 (CFLAGS-simple-hash.c): Likewise.
18949 (CFLAGS-gconv_conf.c): Likewise.
18950 (CFLAGS-iconvconfig.c): Likewise.
18951 * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
18952 (CFLAGS-gethstbyad.c): Likewise.
18953 (CFLAGS-gethstbynm_r.c): Likewise.
18954 (CFLAGS-gethstbynm.c): Likewise.
18955 (CFLAGS-gethstbynm2_r.c): Likewise.
18956 (CFLAGS-gethstbynm2.c): Likewise.
18957 (CFLAGS-gethstent_r.c): Likewise.
18958 (CFLAGS-gethstent.c): Likewise.
18959 (CFLAGS-rcmd.c): Likewise.
18960 (CFLAGS-getnetbynm_r.c): Likewise.
18961 (CFLAGS-getnetbynm.c): Likewise.
18962 (CFLAGS-getnetbyad_r.c): Likewise.
18963 (CFLAGS-getnetbyad.c): Likewise.
18964 (CFLAGS-getnetent_r.c): Likewise.
18965 (CFLAGS-getnetent.c): Likewise.
18966 (CFLAGS-getaliasent_r.c): Likewise.
18967 (CFLAGS-getaliasent.c): Likewise.
18968 (CFLAGS-getrpcent_r.c): Likewise.
18969 (CFLAGS-getrpcent.c): Likewise.
18970 (CFLAGS-getservent_r.c): Likewise.
18971 (CFLAGS-getservent.c): Likewise.
18972 (CFLAGS-getprtent_r.c): Likewise.
18973 (CFLAGS-getprtent.c): Likewise.
18974 (CFLAGS-either_ntoh.c): Likewise.
18975 (CFLAGS-either_hton.c): Likewise.
18976 (CFLAGS-getnetgrent.c): Likewise.
18977 (CFLAGS-getnetgrent_r.c): Likewise.
18978 (CFLAGS-tst-checks-posix.c): Likewise.
18979 (CFLAGS-tst-sockaddr.c): Likewise.
18980 * intl/Makefile (CFLAGS-tst-gettext.c): Likewise.
18981 (CFLAGS-tst-translit.c): Likewise.
18982 (CFLAGS-tst-gettext2.c): Likewise.
18983 (CFLAGS-tst-codeset.c): Likewise.
18984 (CFLAGS-tst-gettext3.c): Likewise.
18985 (CFLAGS-tst-gettext4.c): Likewise.
18986 (CFLAGS-tst-gettext5.c): Likewise.
18987 (CFLAGS-tst-gettext6.c): Likewise.
18988 * io/Makefile (CFLAGS-open.c): Likewise.
18989 (CFLAGS-open64.c): Likewise.
18990 (CFLAGS-creat.c): Likewise.
18991 (CFLAGS-creat64.c): Likewise.
18992 (CFLAGS-fcntl.c): Likewise.
18993 (CFLAGS-poll.c): Likewise.
18994 (CFLAGS-ppoll.c): Likewise.
18995 (CFLAGS-lockf.c): Likewise.
18996 (CFLAGS-statfs.c): Likewise.
18997 (CFLAGS-fstatfs.c): Likewise.
18998 (CFLAGS-statvfs.c): Likewise.
18999 (CFLAGS-fstatvfs.c): Likewise.
19000 (CFLAGS-fts.c): Likewise.
19001 (CFLAGS-fts64.c): Likewise.
19002 (CFLAGS-ftw.c): Likewise.
19003 (CFLAGS-ftw64.c): Likewise.
19004 (CFLAGS-lockf.c): Likewise.
19005 (CFLAGS-posix_fallocate.c): Likewise.
19006 (CFLAGS-posix_fallocate64.c): Likewise.
19007 (CFLAGS-fallocate.c): Likewise.
19008 (CFLAGS-fallocate64.c): Likewise.
19009 (CFLAGS-read.c): Likewise.
19010 (CFLAGS-write.c): Likewise.
19011 (CFLAGS-test-stat.c): Likewise.
19012 (CFLAGS-test-lfs.c): Likewise.
19013 * libio/Makefile (CFLAGS-fileops.c): Likewise.
19014 (CFLAGS-fputc.c): Likewise.
19015 (CFLAGS-fputwc.c): Likewise.
19016 (CFLAGS-freopen64.c): Likewise.
19017 (CFLAGS-freopen.c): Likewise.
19018 (CFLAGS-fseek.c): Likewise.
19019 (CFLAGS-fseeko64.c): Likewise.
19020 (CFLAGS-fseeko.c): Likewise.
19021 (CFLAGS-ftello64.c): Likewise.
19022 (CFLAGS-ftello.c): Likewise.
19023 (CFLAGS-fwide.c): Likewise.
19024 (CFLAGS-genops.c): Likewise.
19025 (CFLAGS-getc.c): Likewise.
19026 (CFLAGS-getchar.c): Likewise.
19027 (CFLAGS-getwc.c): Likewise.
19028 (CFLAGS-getwchar.c): Likewise.
19029 (CFLAGS-iofclose.c): Likewise.
19030 (CFLAGS-iofflush.c): Likewise.
19031 (CFLAGS-iofgetpos64.c): Likewise.
19032 (CFLAGS-iofgetpos.c): Likewise.
19033 (CFLAGS-iofgets.c): Likewise.
19034 (CFLAGS-iofgetws.c): Likewise.
19035 (CFLAGS-iofputs.c): Likewise.
19036 (CFLAGS-iofputws.c): Likewise.
19037 (CFLAGS-iofread.c): Likewise.
19038 (CFLAGS-iofsetpos64.c): Likewise.
19039 (CFLAGS-iofsetpos.c): Likewise.
19040 (CFLAGS-ioftell.c): Likewise.
19041 (CFLAGS-iofwrite.c): Likewise.
19042 (CFLAGS-iogetdelim.c): Likewise.
19043 (CFLAGS-iogetline.c): Likewise.
19044 (CFLAGS-iogets.c): Likewise.
19045 (CFLAGS-iogetwline.c): Likewise.
19046 (CFLAGS-ioputs.c): Likewise.
19047 (CFLAGS-ioseekoff.c): Likewise.
19048 (CFLAGS-ioseekpos.c): Likewise.
19049 (CFLAGS-iosetbuffer.c): Likewise.
19050 (CFLAGS-iosetvbuf.c): Likewise.
19051 (CFLAGS-ioungetc.c): Likewise.
19052 (CFLAGS-ioungetwc.c): Likewise.
19053 (CFLAGS-oldfileops.c): Likewise.
19054 (CFLAGS-oldiofclose.c): Likewise.
19055 (CFLAGS-oldiofgetpos64.c): Likewise.
19056 (CFLAGS-oldiofgetpos.c): Likewise.
19057 (CFLAGS-oldiofsetpos64.c): Likewise.
19058 (CFLAGS-oldiofsetpos.c): Likewise.
19059 (CFLAGS-peekc.c): Likewise.
19060 (CFLAGS-putc.c): Likewise.
19061 (CFLAGS-putchar.c): Likewise.
19062 (CFLAGS-putwc.c): Likewise.
19063 (CFLAGS-putwchar.c): Likewise.
19064 (CFLAGS-rewind.c): Likewise.
19065 (CFLAGS-wfileops.c): Likewise.
19066 (CFLAGS-wgenops.c): Likewise.
19067 (CFLAGS-oldiofopen.c): Likewise.
19068 (CFLAGS-iofopen.c): Likewise.
19069 (CFLAGS-iofopen64.c): Likewise.
19070 (CFLAGS-oldtmpfile.c): Likewise.
19071 (CFLAGS-tst_putwc.c): Likewise.
19072 * locale/Makefile (CFLAGS-md5.c): Likewise.
19073 (CFLAGS-charmap.c): Likewise.
19074 (CFLAGS-locfile.c): Likewise.
19075 (CFLAGS-charmap-dir.c): Likewise.
19076 * login/Makefile (CFLAGS-grantpt.c): Likewise.
19077 (CFLAGS-getpt.c): Likewise.
19078 (CFLAGS-pt_chown.c): Likewise.
19079 * malloc/Makefile (CFLAGS-mcheck-init.c): Likewise.
19080 (CFLAGS-obstack.c): Likewise.
19081 * math/Makefile (CFLAGS-test-tgmath3.c): Likewise.
19082 (CFLAGS-test-double-vlen4-wrappers.c): Likewise.
19083 (CFLAGS-test-double-vlen8-wrappers.c): Likewise.
19084 (CFLAGS-test-float-vlen8-wrappers.c): Likewise.
19085 (CFLAGS-test-float-vlen16-wrappers.c): Likewise.
19086 (CFLAGS-test-tgmath.c): Likewise.
19087 (CFLAGS-test-tgmath2.c): Likewise.
19088 (CFLAGS-test-tgmath-ret.c): Likewise.
19089 (CFLAGS-test-powl.c): Likewise.
19090 (CFLAGS-test-snan.c): Likewise.
19091 (CFLAGS-test-signgam-finite.c): Likewise.
19092 (CFLAGS-test-signgam-finite-c99.c): Likewise.
19093 (CFLAGS-test-signgam-finite-c11.c): Likewise.
19094 (CFLAGS-test-signgam-uchar.c): Likewise.
19095 (CFLAGS-test-signgam-uchar-init.c): Likewise.
19096 (CFLAGS-test-signgam-uchar-static.c): Likewise.
19097 (CFLAGS-test-signgam-uchar-init-static.c): Likewise.
19098 (CFLAGS-test-signgam-uint.c): Likewise.
19099 (CFLAGS-test-signgam-uint-init.c): Likewise.
19100 (CFLAGS-test-signgam-uint-static.c): Likewise.
19101 (CFLAGS-test-signgam-uint-init-static.c): Likewise.
19102 (CFLAGS-test-signgam-ullong.c): Likewise.
19103 (CFLAGS-test-signgam-ullong-init.c): Likewise.
19104 (CFLAGS-test-signgam-ullong-static.c): Likewise.
19105 (CFLAGS-test-signgam-ullong-init-static.c): Likewise.
19106 (CFLAGS-test-math-cxx11.cc): Likewise.
19107 (CFLAGS-test-math-isinff.cc): Likewise.
19108 (CFLAGS-test-math-iszero.cc): Likewise.
19109 (CFLAGS-test-math-issignaling.cc): Likewise.
19110 (CFLAGS-test-math-iscanonical.cc): Likewise.
19111 (CFLAGS-test-iszero-excess-precision.c): Likewise.
19112 (CFLAGS-test-iseqsig-excess-precision.c): Likewise.
19113 (CFLAGS-test-flt-eval-method.c): Likewise.
19114 (CFLAGS-test-fe-snans-always-signal.c): Likewise.
19115 (CFLAGS-test-finite-macros.c): Likewise.
19116 * misc/Makefile (CFLAGS-select.c): Likewise.
19117 (CFLAGS-tsearch.c): Likewise.
19118 (CFLAGS-lsearch.c): Likewise.
19119 (CFLAGS-pselect.c): Likewise.
19120 (CFLAGS-readv.c): Likewise.
19121 (CFLAGS-writev.c): Likewise.
19122 (CFLAGS-preadv.c): Likewise.
19123 (CFLAGS-preadv64.c): Likewise.
19124 (CFLAGS-pwritev.c): Likewise.
19125 (CFLAGS-pwritev64.c): Likewise.
19126 (CFLAGS-preadv2.c): Likewise.
19127 (CFLAGS-preadv64v2.c): Likewise.
19128 (CFLAGS-pwritev2.c): Likewise.
19129 (CFLAGS-pwritev64v2.c): Likewise.
19130 (CFLAGS-usleep.c): Likewise.
19131 (CFLAGS-syslog.c): Likewise.
19132 (CFLAGS-error.c): Likewise.
19133 (CFLAGS-getpass.c): Likewise.
19134 (CFLAGS-mkstemp.c): Likewise.
19135 (CFLAGS-mkstemp64.c): Likewise.
19136 (CFLAGS-getsysstats.c): Likewise.
19137 (CFLAGS-getusershell.c): Likewise.
19138 (CFLAGS-err.c): Likewise.
19139 (CFLAGS-tst-tsearch.c): Likewise.
19140 (CFLAGS-msync.c): Likewise.
19141 (CFLAGS-fdatasync.c): Likewise.
19142 (CFLAGS-fsync.c): Likewise.
19143 * nptl/Makefile (CFLAGS-nptl-init.c): Likewise.
19144 (CFLAGS-unwind.c): Likewise.
19145 (CFLAGS-unwind-forcedunwind.c): Likewise.
19146 (CFLAGS-pthread_cancel.c): Likewise.
19147 (CFLAGS-pthread_setcancelstate.c): Likewise.
19148 (CFLAGS-pthread_setcanceltype.c): Likewise.
19149 (CFLAGS-cancellation.c): Likewise.
19150 (CFLAGS-libc-cancellation.c): Likewise.
19151 (CFLAGS-pthread_exit.c): Likewise.
19152 (CFLAGS-forward.c): Likewise.
19153 (CFLAGS-pthread_testcancel.c): Likewise.
19154 (CFLAGS-pthread_join.c): Likewise.
19155 (CFLAGS-pthread_timedjoin.c): Likewise.
19156 (CFLAGS-pthread_once.c): Likewise.
19157 (CFLAGS-pthread_cond_wait.c): Likewise.
19158 (CFLAGS-sem_wait.c): Likewise.
19159 (CFLAGS-sem_timedwait.c): Likewise.
19160 (CFLAGS-fcntl.c): Likewise.
19161 (CFLAGS-lockf.c): Likewise.
19162 (CFLAGS-pread.c): Likewise.
19163 (CFLAGS-pread64.c): Likewise.
19164 (CFLAGS-pwrite.c): Likewise.
19165 (CFLAGS-pwrite64.c): Likewise.
19166 (CFLAGS-wait.c): Likewise.
19167 (CFLAGS-waitpid.c): Likewise.
19168 (CFLAGS-sigwait.c): Likewise.
19169 (CFLAGS-msgrcv.c): Likewise.
19170 (CFLAGS-msgsnd.c): Likewise.
19171 (CFLAGS-tcdrain.c): Likewise.
19172 (CFLAGS-open.c): Likewise.
19173 (CFLAGS-open64.c): Likewise.
19174 (CFLAGS-pause.c): Likewise.
19175 (CFLAGS-recv.c): Likewise.
19176 (CFLAGS-send.c): Likewise.
19177 (CFLAGS-accept.c): Likewise.
19178 (CFLAGS-sendto.c): Likewise.
19179 (CFLAGS-connect.c): Likewise.
19180 (CFLAGS-recvfrom.c): Likewise.
19181 (CFLAGS-recvmsg.c): Likewise.
19182 (CFLAGS-sendmsg.c): Likewise.
19183 (CFLAGS-close.c): Likewise.
19184 (CFLAGS-read.c): Likewise.
19185 (CFLAGS-write.c): Likewise.
19186 (CFLAGS-nanosleep.c): Likewise.
19187 (CFLAGS-sigsuspend.c): Likewise.
19188 (CFLAGS-msync.c): Likewise.
19189 (CFLAGS-fdatasync.c): Likewise.
19190 (CFLAGS-fsync.c): Likewise.
19191 (CFLAGS-pt-system.c): Likewise.
19192 (CFLAGS-tst-cleanup2.c): Likewise.
19193 (CFLAGS-tst-cleanupx2.c): Likewise.
19194 (CFLAGS-flockfile.c): Likewise.
19195 (CFLAGS-ftrylockfile.c): Likewise.
19196 (CFLAGS-funlockfile.c): Likewise.
19197 (CFLAGS-tst-initializers1.c): Likewise.
19198 (CFLAGS-tst-initializers1-c89.c): Likewise.
19199 (CFLAGS-tst-initializers1-c99.c): Likewise.
19200 (CFLAGS-tst-initializers1-c11.c): Likewise.
19201 (CFLAGS-tst-initializers1-gnu89.c): Likewise.
19202 (CFLAGS-tst-initializers1-gnu99.c): Likewise.
19203 (CFLAGS-tst-initializers1-gnu11.c): Likewise.
19204 * nscd/Makefile (CFLAGS-nscd_getpw_r.c): Likewise.
19205 (CFLAGS-nscd_getgr_r.c): Likewise.
19206 (CFLAGS-nscd_gethst_r.c): Likewise.
19207 (CFLAGS-nscd_getai.c): Likewise.
19208 (CFLAGS-nscd_initgroups.c): Likewise.
19209 * posix/Makefile (CFLAGS-getaddrinfo.c): Likewise.
19210 (CFLAGS-pause.c): Likewise.
19211 (CFLAGS-pread.c): Likewise.
19212 (CFLAGS-pread64.c): Likewise.
19213 (CFLAGS-pwrite.c): Likewise.
19214 (CFLAGS-pwrite64.c): Likewise.
19215 (CFLAGS-sleep.c): Likewise.
19216 (CFLAGS-wait.c): Likewise.
19217 (CFLAGS-waitid.c): Likewise.
19218 (CFLAGS-waitpid.c): Likewise.
19219 (CFLAGS-getopt.c): Likewise.
19220 (CFLAGS-wordexp.c): Likewise.
19221 (CFLAGS-sysconf.c): Likewise.
19222 (CFLAGS-pathconf.c): Likewise.
19223 (CFLAGS-fpathconf.c): Likewise.
19224 (CFLAGS-spawn.c): Likewise.
19225 (CFLAGS-spawnp.c): Likewise.
19226 (CFLAGS-spawni.c): Likewise.
19227 (CFLAGS-glob.c): Likewise.
19228 (CFLAGS-glob64.c): Likewise.
19229 (CFLAGS-getconf.c): Likewise.
19230 (CFLAGS-nanosleep.c): Likewise.
19231 * pwd/Makefile (CFLAGS-getpwent_r.c): Likewise.
19232 (CFLAGS-getpwent.c): Likewise.
19233 (CFLAGS-getpw.c): Likewise.
19234 (CFLAGS-fgetpwent_r.c): Likewise.
19235 * resolv/Makefile (CFLAGS-res_hconf.c): Likewise.
19236 * rt/Makefile (CFLAGS-aio_suspend.c): Likewise.
19237 (CFLAGS-mq_timedreceive.c): Likewise.
19238 (CFLAGS-mq_timedsend.c): Likewise.
19239 (CFLAGS-clock_nanosleep.c): Likewise.
19240 (CFLAGS-librt-cancellation.c): Likewise.
19241 * shadow/Makefile (CFLAGS-getspent_r.c): Likewise.
19242 (CFLAGS-getspent.c): Likewise.
19243 (CFLAGS-fgetspent.c): Likewise.
19244 (CFLAGS-fgetspent_r.c): Likewise.
19245 (CFLAGS-putspent.c): Likewise.
19246 (CFLAGS-getspnam.c): Likewise.
19247 (CFLAGS-getspnam_r.c): Likewise.
19248 * signal/Makefile (CFLAGS-sigpause.c): Likewise.
19249 (CFLAGS-sigsuspend.c): Likewise.
19250 (CFLAGS-sigtimedwait.c): Likewise.
19251 (CFLAGS-sigwait.c): Likewise.
19252 (CFLAGS-sigwaitinfo.c): Likewise.
19253 (CFLAGS-sigreturn.c): Likewise.
19254 * stdio-common/Makefile (CFLAGS-vfprintf.c): Likewise.
19255 (CFLAGS-vfwprintf.c): Likewise.
19256 (CFLAGS-tmpfile.c): Likewise.
19257 (CFLAGS-tmpfile64.c): Likewise.
19258 (CFLAGS-tempname.c): Likewise.
19259 (CFLAGS-psignal.c): Likewise.
19260 (CFLAGS-vprintf.c): Likewise.
19261 (CFLAGS-cuserid.c): Likewise.
19262 (CFLAGS-errlist.c): Likewise.
19263 (CFLAGS-siglist.c): Likewise.
19264 (CFLAGS-scanf15.c): Likewise.
19265 (CFLAGS-scanf17.c): Likewise.
19266 * stdlib/Makefile (CFLAGS-bsearch.c): Likewise.
19267 (CFLAGS-msort.c): Likewise.
19268 (CFLAGS-qsort.c): Likewise.
19269 (CFLAGS-system.c): Likewise.
19270 (CFLAGS-fmtmsg.c): Likewise.
19271 (CFLAGS-strfmon.c): Likewise.
19272 (CFLAGS-strfmon_l.c): Likewise.
19273 (CFLAGS-strfromd.c): Likewise.
19274 (CFLAGS-strfromf.c): Likewise.
19275 (CFLAGS-strfroml.c): Likewise.
19276 (CFLAGS-tst-bsearch.c): Likewise.
19277 (CFLAGS-tst-qsort.c): Likewise.
19278 (CFLAGS-tst-makecontext2.c): Likewise.
19279 * sunrpc/Makefile (CFLAGS-xbootparam_prot.c): Likewise.
19280 (CFLAGS-xnlm_prot.c): Likewise.
19281 (CFLAGS-xrstat.c): Likewise.
19282 (CFLAGS-xyppasswd.c): Likewise.
19283 (CFLAGS-xklm_prot.c): Likewise.
19284 (CFLAGS-xrex.c): Likewise.
19285 (CFLAGS-xsm_inter.c): Likewise.
19286 (CFLAGS-xmount.c): Likewise.
19287 (CFLAGS-xrusers.c): Likewise.
19288 (CFLAGS-xspray.c): Likewise.
19289 (CFLAGS-xnfs_prot.c): Likewise.
19290 (CFLAGS-xrquota.c): Likewise.
19291 (CFLAGS-xkey_prot.c): Likewise.
19292 (CFLAGS-auth_unix.c): Likewise.
19293 (CFLAGS-key_call.c): Likewise.
19294 (CFLAGS-pmap_rmt.c): Likewise.
19295 (CFLAGS-clnt_perr.c): Likewise.
19296 (CFLAGS-openchild.c): Likewise.
19297 * sysvipc/Makefile (CFLAGS-msgrcv.c): Likewise.
19298 (CFLAGS-msgsnd.c): Likewise.
19299 * termios/Makefile (CFLAGS-tcdrain.c): Likewise.
19300 * time/Makefile (CFLAGS-tzfile.c): Likewise.
19301 (CFLAGS-tzset.c): Likewise.
19302 (CFLAGS-getdate.c): Likewise.
19303 (CFLAGS-test_time.c): Likewise.
19304 (CPPFLAGS-tst-tzname.c): Likewise.
19305 * timezone/Makefile (CFLAGS-zdump.c): Likewise.
19306 (CFLAGS-zic.c): Likewise.
19307 * wcsmbs/Makefile (CFLAGS-wcwidth.c): Likewise.
19308 (CFLAGS-wcswidth.c): Likewise.
19309 (CFLAGS-wcstol.c): Likewise.
19310 (CFLAGS-wcstoul.c): Likewise.
19311 (CFLAGS-wcstoll.c): Likewise.
19312 (CFLAGS-wcstoull.c): Likewise.
19313 (CFLAGS-wcstod.c): Likewise.
19314 (CFLAGS-wcstold.c): Likewise.
19315 (CFLAGS-wcstof128.c): Likewise.
19316 (CFLAGS-wcstof.c): Likewise.
19317 (CFLAGS-wcstol_l.c): Likewise.
19318 (CFLAGS-wcstoul_l.c): Likewise.
19319 (CFLAGS-wcstoll_l.c): Likewise.
19320 (CFLAGS-wcstoull_l.c): Likewise.
19321 (CFLAGS-wcstod_l.c): Likewise.
19322 (CFLAGS-wcstold_l.c): Likewise.
19323 (CFLAGS-wcstof128_l.c): Likewise.
19324 (CFLAGS-wcstof_l.c): Likewise.
19325 (CPPFLAGS-tst-wchar-h.c): Likewise.
19326 (CPPFLAGS-wcstold_l.c): Likewise.
19327
19328 2017-12-11 Paul A. Clarke <pc@us.ibm.com>
19329
19330 * sysdeps/ieee754/flt-32/s_cosf.c: New implementation.
19331
19332 2017-12-11 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19333 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
19334
19335 * manual/tunables.texi (Hardware Capability Tunables): Document
19336 glibc.tune.cached_memopt.
19337 * sysdeps/powerpc/cpu-features.c: New file.
19338 * sysdeps/powerpc/cpu-features.h: New file.
19339 * sysdeps/powerpc/dl-procinfo.c [!IS_IN(ldconfig)]: Add
19340 _dl_powerpc_cpu_features.
19341 * sysdeps/powerpc/dl-tunables.list: New file.
19342 * sysdeps/powerpc/ldsodefs.h: Include cpu-features.h.
19343 * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
19344 (INIT_ARCH): Initialize use_aligned_memopt.
19345 * sysdeps/powerpc/powerpc64/dl-machine.h [defined(SHARED &&
19346 IS_IN(rtld))]: Restrict dl_platform_init availability and
19347 initialize CPU features used by tunables.
19348 * sysdeps/powerpc/powerpc64/multiarch/Makefile (sysdep_routines):
19349 Add memcpy-power8-cached.
19350 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add
19351 __memcpy_power8_cached.
19352 * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
19353 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power8-cached.S:
19354 New file.
19355
19356 2017-12-11 H.J. Lu <hongjiu.lu@intel.com>
19357
19358 * string/Makefile (CFLAGS-inl-tester.c): Replace = with +=.
19359 (CFLAGS-noinl-tester.c): Likewise.
19360 (CFLAGS-tst-strlen.c): Likewise.
19361 (CFLAGS-stratcliff.c): Likewise.
19362 (CFLAGS-test-ffs.c): Likewise.
19363 (CFLAGS-tst-inlcall.c): Likewise.
19364 (CFLAGS-tst-xbzero-opt.c): Likewise.
19365 (CFLAGS-memcpy.c): Likewise.
19366 (CFLAGS-wordcopy.c): Likewise.
19367
19368 2017-12-11 Stefan Liebler <stli@linux.vnet.ibm.com>
19369
19370 * sysdeps/s390/s390-64/dl-trampoline.h (_dl_runtime_resolve):
19371 Store r15 on stack and add cfi rule.
19372 * sysdeps/s390/s390-32/dl-trampoline.h (_dl_runtime_resolve):
19373 Likewise.
19374
19375 2017-12-10 Aurelien Jarno <aurelien@aurel32.net>
19376
19377 [BZ #22577]
19378 * elf/rtld.c (init_tls): Add missing new line to the _dl_fatal_printf
19379 call.
19380
19381 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19382
19383 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
19384 Add s_sinf-sse2 and s_sinf-fma.
19385 (CFLAGS-s_sinf-fma.c): New.
19386 * sysdeps/x86_64/fpu/multiarch/s_sinf-fma.c: New file.
19387 * sysdeps/x86_64/fpu/multiarch/s_sinf-sse2.c: Likewise.
19388 * sysdeps/x86_64/fpu/multiarch/s_sinf.c: Likewise.
19389
19390 2017-12-07 H.J. Lu <hongjiu.lu@intel.com>
19391
19392 * sysdeps/x86_64/fpu/s_sinf.S: Removed.
19393
19394 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19395
19396 [BZ #22568]
19397 * math/s_ctan_template.c (M_DECL_FUNC (__ctan)): Set imaginary
19398 part of result to imaginary part of argument if it is zero and the
19399 real part of the argument is not finite.
19400 * math/s_ctanh_template.c (M_DECL_FUNC (__ctanh)): Set real part
19401 of result to real part of argument if it is zero and the imaginary
19402 part of the argument is not finite.
19403
19404 2017-12-07 Mike FABIAN <mfabian@redhat.com>
19405
19406 [BZ #22524]
19407 * localedata/Makefile: Add lt_LT.UTF-8 to test-input
19408 and to the list of locales to be built for testing.
19409 * localedata/lt_LT.UTF-8.in: New file for testing the collation.
19410 * localedata/locales/lt_LT (LC_COLLATE): Use “copy "iso14651_t1"”
19411 and build the collation rules upon that.
19412
19413 2017-12-07 Joseph Myers <joseph@codesourcery.com>
19414
19415 * bits/floatn-common.h (__HAVE_FLOAT32): Define to 1.
19416 * manual/math.texi (Mathematics): Document support for _Float32.
19417 * math/Makefile (test-types): Add float32.
19418 * math/Versions (GLIBC_2.27): Add _Float32 functions.
19419 * stdlib/Versions (GLIBC_2.27): Likewise.
19420 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19421 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19422 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19423 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19424 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19425 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19426 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19427 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19428 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19429 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19430 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19431 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19432 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19433 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19434 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19435 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19436 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19437 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19438 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19439 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19440 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19441 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19442 Likewise.
19443 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19444 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19445 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19446 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19447 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19448 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19449 Likewise.
19450 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19451 Likewise.
19452 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19453 Likewise.
19454 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19455 Likewise.
19456
19457 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19458 Likewise.
19459 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19460 Likewise.
19461 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19462 Likewise.
19463 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19464 Likewise.
19465 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19466 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19467 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19468 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19469 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19470 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19471 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19472 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19473 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19474 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19475 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19476 Likewise.
19477 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19478 Likewise.
19479 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19480 Likewise.
19481 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19482 Likewise.
19483 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19484 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19485 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19486 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19487 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19488 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19489 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19490 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19491
19492 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19493
19494 * stdlib/strtof.c: Include <bits/floatn.h>
19495 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32): Define
19496 and later undefine as macro. Define as weak alias if
19497 [!USE_WIDE_CHAR].
19498 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32): Define
19499 and later undefine as macro. Define as weak alias if
19500 [USE_WIDE_CHAR].
19501 * stdlib/strtof_l.c: Include <bits/floatn.h>
19502 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strtof32_l): Define
19503 and later undefine as macro. Define as weak alias if
19504 [!USE_WIDE_CHAR].
19505 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (wcstof32_l): Define
19506 and later undefine as macro. Define as weak alias if
19507 [USE_WIDE_CHAR].
19508
19509 * stdlib/strfromf.c: Include <bits/floatn.h>.
19510 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32] (strfromf32): Define
19511 and later undefine as macro and define as weak alias.
19512
19513 * math/test-float32.h: New file.
19514
19515 * sysdeps/generic/libm-alias-float.h: Include <bits/floatn.h>.
19516 [__HAVE_FLOAT32 && !__HAVE_DISTINCT_FLOAT32]
19517 (libm_alias_float_other_r): Create f32 alias.
19518 (libm_alias_float_r): Use semicolon before call to
19519 libm_alias_float_other_r.
19520
19521 * sysdeps/ia64/fpu/e_exp2f.S (__exp2f): Use exp2 not __exp2 as
19522 second argument to libm_alias_float_other.
19523 * sysdeps/ia64/fpu/e_log2f.S (__log2f): Use log2 not __log2 as
19524 second argument to libm_alias_float_other.
19525 * sysdeps/ia64/fpu/e_powf.S (__powf): Use pow not __pow as second
19526 argument to libm_alias_float_other.
19527
19528 [BZ #22561]
19529 * math/s_cacosh_template.c (M_DECL_FUNC (__cacosh)): Use pi/2 for
19530 real part of result for argument 0 + i * NaN.
19531 * math/libm-test-cacosh.inc (cacosh_test_data): Update expected
19532 results for tests of 0 + i * NaN.
19533
19534 2017-12-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19535
19536 * sysdeps/alpha/fpu/libm-test-ulps: Update.
19537
19538 2017-12-06 David S. Miller <davem@davemloft.net>
19539
19540 * sysdeps/sparc/fpu/libm-test-ulps: Update
19541 exp_{downward,towardzero,upward} ulps.
19542
19543 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19544
19545 * sysdeps/ieee754/ldbl-96/e_j1l.c (qone): Don't make local
19546 variables static.
19547
19548 * sysdeps/ieee754/ldbl-128/e_j0l.c (Y0_2N): Make const.
19549 (Y0_2D): Likewise.
19550 * sysdeps/ieee754/ldbl-128/e_j1l.c (Y0_2N): Likewise.
19551 (Y0_2D): Likewise.
19552 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c (Y0_2N): Likewise.
19553 (Y0_2D): Likewise.
19554 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c (Y0_2N): Likewise.
19555 (Y0_2D): Likewise.
19556
19557 2017-12-06 Mike FABIAN <mfabian@redhat.com>
19558
19559 [BZ #22515]
19560 * localedata/Makefile: Add hsb_DE.UTF-8 to test-input
19561 and to the list of locales to be built for testing.
19562 * localedata/hsb_DE.UTF-8.in: New file for testing the collation.
19563 * localedata/locales/hsb_DE (LC_COLLATE): Use “copy "iso14651_t1"”
19564 and build the collation rules upon that.
19565
19566 2017-12-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
19567
19568 * NEWS: Add sinf to list of optimized functions.
19569
19570 2017-12-06 Joseph Myers <joseph@codesourcery.com>
19571
19572 * bits/floatn-common.h (__HAVE_FLOAT64): Define to 1.
19573 (__HAVE_FLOAT32X): Likewise.
19574 * manual/math.texi (Mathematics): Document support for _Float64
19575 and _Float32x.
19576 * math/Makefile (test-types): Add float64 and float32x.
19577 * math/Versions (GLIBC_2.27): Add _Float64 and _Float32x
19578 functions.
19579 * stdlib/Versions (GLIBC_2.27): Likewise.
19580 * wcsmbs/Versions (GLIBC_2.27): Likewise.
19581 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
19582 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
19583 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
19584 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
19585 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
19586 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
19587 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
19588 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
19589 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
19590 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
19591 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
19592 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
19593 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
19594 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
19595 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
19596 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
19597 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
19598 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
19599 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
19600 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
19601 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist:
19602 Likewise.
19603 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
19604 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
19605 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
19606 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
19607 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
19608 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
19609 Likewise.
19610 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
19611 Likewise.
19612 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
19613 Likewise.
19614 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
19615 Likewise.
19616 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
19617 Likewise.
19618 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist:
19619 Likewise.
19620 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
19621 Likewise.
19622 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
19623 Likewise.
19624 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
19625 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
19626 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
19627 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
19628 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
19629 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
19630 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
19631 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
19632 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
19633 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
19634 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist:
19635 Likewise.
19636 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
19637 Likewise.
19638 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist:
19639 Likewise.
19640 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
19641 Likewise.
19642 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
19643 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
19644 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
19645 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
19646 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
19647 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
19648 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
19649 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
19650
19651 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19652
19653 * bits/floatn-common.h: Include <bits/long-double.h>.
19654 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19655 && __NO_LONG_DOUBLE_MATH] (__f64): Use suffix 'l'.
19656 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19657 && __NO_LONG_DOUBLE_MATH] (__CFLOAT64): Use _Complex long double.
19658 [__HAVE_FLOAT64 && (!__GNUC_PREREQ (7, 0) || defined __cplusplus)
19659 && __NO_LONG_DOUBLE_MATH] (_Float64): Use long double.
19660 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19661 (__builtin_huge_valf64): Use __builtin_huge_vall.
19662 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19663 (__builtin_inff64): Use __builtin_infl.
19664 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19665 (__builtin_nanf64): Use __builtin_nanl.
19666 [__HAVE_FLOAT64 && !__GNUC_PREREQ (7, 0) && __NO_LONG_DOUBLE_MATH]
19667 (__builtin_nansf64): Use __builtin_nansl.
19668
19669 2017-12-05 Rogerio A. Cardoso <rcardoso@linux.vnet.ibm.com>
19670 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
19671 Carlos O'Donnell <carlos@redhat.com>
19672
19673 * elf/dl-tunables.list: Add elision parameters.
19674 * manual/tunables.texi: Add entries about elision tunable.
19675 * sysdeps/unix/sysv/linux/powerpc/elision-conf.c:
19676 Add callback functions to dynamically enable/disable elision.
19677 Add multiple callbacks functions to set elision parameters.
19678 Deleted __libc_enable_secure check.
19679 * sysdeps/unix/sysv/linux/s390/elision-conf.c: Likewise.
19680 * sysdeps/unix/sysv/linux/x86/elision-conf.c: Likewise.
19681 * configure: Regenerated.
19682 * configure.ac: Option enable_lock_elision was deleted.
19683 * config.h.in: ENABLE_LOCK_ELISION flag was deleted.
19684 * config.make.in: Remove references to enable_lock_elision.
19685 * manual/install.texi: Elision configure option was removed.
19686 * INSTALL: Regenerated to remove enable_lock_elision.
19687 * nptl/Makefile:
19688 Disable elision so it can verify error case for destroying a mutex.
19689 * sysdeps/powerpc/nptl/elide.h:
19690 Cleanup ENABLE_LOCK_ELISION check.
19691 Deleted macros for the case when ENABLE_LOCK_ELISION was not defined.
19692 * sysdeps/s390/configure: Regenerated.
19693 * sysdeps/s390/configure.ac: Remove references to enable_lock_elision..
19694 * nptl/tst-mutex8.c:
19695 Deleted all #ifndef ENABLE_LOCK_ELISION from the test.
19696 * sysdeps/powerpc/powerpc32/sysdep.h:
19697 Deleted all ENABLE_LOCK_ELISION checks.
19698 * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19699 * sysdeps/powerpc/sysdep.h: Likewise.
19700 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h: Likewise.
19701 * sysdeps/unix/sysv/linux/powerpc/force-elision.h: Likewise.
19702 * sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
19703 * sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
19704 * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
19705 * sysdeps/unix/sysv/linux/s390/Makefile: Remove references to
19706 enable-lock-elision.
19707
19708 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19709
19710 * stdlib/strtod.c: Include <bits/floatn.h>.
19711 (BUILD_DOUBLE): New macro.
19712 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19713 (strtof64): Define and later undefine as macro. Define as weak
19714 alias if [!USE_WIDE_CHAR].
19715 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19716 (wcstof64): Define and later undefine as macro. Define as weak
19717 alias if [USE_WIDE_CHAR].
19718 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19719 (strtof32x): Define and later undefine as macro. Define as weak
19720 alias if [!USE_WIDE_CHAR].
19721 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19722 (wcstof32x): Define and later undefine as macro. Define as weak
19723 alias if [USE_WIDE_CHAR].
19724 * stdlib/strtod_l.c: Include <bits/floatn.h>.
19725 (BUILD_DOUBLE): New macro.
19726 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19727 (strtof64_l): Define and later undefine as macro. Define as weak
19728 alias if [!USE_WIDE_CHAR].
19729 [BUILD_DOUBLE && __HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64]
19730 (wcstof64_l): Define and later undefine as macro. Define as weak
19731 alias if [USE_WIDE_CHAR].
19732 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19733 (strtof32x_l): Define and later undefine as macro. Define as weak
19734 alias if [!USE_WIDE_CHAR].
19735 [BUILD_DOUBLE && __HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X]
19736 (wcstof32x_l): Define and later undefine as macro. Define as weak
19737 alias if [USE_WIDE_CHAR].
19738
19739 2017-12-05 Adhemerval Zanella <adhemerval.zanella@linaro.org>
19740
19741 * sysdeps/ieee754/flt-32/s_sinf.c (ones): Define as double.
19742 (reduced): Use ones as double instead of integer.
19743
19744 2017-12-05 Szabolcs Nagy <szabolcs.nagy@arm.com>
19745
19746 * sysdeps/ieee754/flt-32/s_sinf.c (sinf): Use isless.
19747
19748 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19749
19750 * stdlib/strfromd.c: Include <bits/floatn.h>.
19751 [__HAVE_FLOAT64 && !__HAVE_DISTINCT_FLOAT64] (strfromf64): Define
19752 and later undefine as macro and define as weak alias.
19753 [__HAVE_FLOAT32X && !__HAVE_DISTINCT_FLOAT32X] (strfromf32x):
19754 Likewise.
19755
19756 * math/test-float32x.h: New file.
19757 * math/test-float64.h: Likewise.
19758
19759 * sysdeps/generic/libm-alias-double.h: Include <bits/floatn.h>.
19760 (libm_alias_double_other_r_f64): New macro.
19761 (libm_alias_double_other_r_f32x): Likewise.
19762 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19763 libm_alias_double_other_r_f32x.
19764 (libm_alias_double_r): Use semicolon before call to
19765 libm_alias_double_other_r.
19766 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Include
19767 <bits/floatn.h>.
19768 (libm_alias_double_other_r_f64): New macro.
19769 (libm_alias_double_other_r_f32x): Likewise.
19770 (libm_alias_double_other_r): Use libm_alias_double_other_r_f64 and
19771 libm_alias_double_other_r_f32x.
19772
19773 2017-12-05 H.J. Lu <hongjiu.lu@intel.com>
19774
19775 * sysdeps/ieee754/flt-32/s_sinf.c (reduced): Replace long with
19776 int.
19777 (SINF_FUNC): Likewise. Replace floor with simple casts.
19778
19779 2017-12-05 Mike FABIAN <mfabian@redhat.com>
19780
19781 [BZ #22517]
19782 * localedata/Makefile: Add et_EE.UTF-8 to test-input
19783 and to the list of locales to be built for testing.
19784 * localedata/et_EE.UTF-8.in: New file for testing the collation.
19785 * localedata/locales/et_EE (LC_COLLATE): Use “copy "iso14651_t1"”
19786 and build the collation rules upon that.
19787
19788 2017-12-05 Chris Metcalf <cmetcalf@mellanox.com>
19789
19790 * sysdeps/tile/tilegx/string-endian.h (VECOP): Provide working
19791 replacements for __insn_xxx builtins for v1cmpeq, v1cmpltu,
19792 v1cmpne, v1add, v1shru, v1shl (register and immediate versions).
19793 * sysdeps/tile/tilegx/memchr.c (__memchr): Use VECOP function
19794 instead of __insn__xxx.
19795 * sysdeps/tile/tilegx/rawmemchr.c (__rawmemchr): Likewise.
19796 * sysdeps/tile/tilegx/strstr.c (strcasechr): Likewise.
19797 * sysdeps/tile/tilegx/strrchr.c (strrchr): Likewise.
19798 * sysdeps/tile/tilegx/strlen.c (strlen): Likewise.
19799 * sysdeps/tile/tilegx/strchrnul.c (__strchrnul): Likewise.
19800 * sysdeps/tile/tilegx/strchr.c (strchr): Likewise.
19801
19802 2017-12-05 Florian Weimer <fweimer@redhat.com>
19803
19804 Linux: Implement interfaces for memory protection keys
19805 * support/Makefile (libsupport-routines): Add xraise, xsigaction,
19806 xsignal, xsysconf.
19807 * support/xsignal.h (xraise, xsignal, xsigaction): Declare.
19808 * support/xunistd.h (xsysconf): Declare.
19809 * support/xraise.c: New file.
19810 * support/xsigaction.c: Likewise.
19811 * support/xsignal.c: Likewise.
19812 * support/xsysconf.c: Likewise.
19813 * sysdeps/unix/sysv/linux/Makefile [misc] (routines): Add
19814 pkey_set, pkey_get, pkey_mprotect.
19815 [misc] (tests): Add tst-pkey.
19816 (tst-pkey): Link with -lpthread.
19817 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add pkey_alloc,
19818 pkey_free, pkey_set, pkey_get, pkey_mprotect.
19819 * sysdeps/unix/sysv/linux/bits/mman-linux.h (PKEY_DISABLE_ACCESS)
19820 (PKEY_DISABLE_WRITE): Define.
19821 (pkey_alloc, pkey_free, pkey_set, pkey_get, pkey_mprotect):
19822 Declare.
19823 * sysdeps/unix/sysv/linux/bits/siginfo-consts.h (SEGV_BNDERR)
19824 (SEGV_PKUERR): Add.
19825 * sysdeps/unix/sysv/linux/pkey_get.c: New file.
19826 * sysdeps/unix/sysv/linux/pkey_set.c: Likewise.
19827 * sysdeps/unix/sysv/linux/pkey_mprotect.c: Likewise.
19828 * sysdeps/unix/sysv/linux/syscalls.list (pkey_alloc, pkey_free):
19829 Add.
19830 * sysdeps/unix/sysv/linux/tst-pkey.c: New file.
19831 * sysdeps/unix/sysv/linux/x86/arch-pkey.h: Likewise.
19832 * sysdeps/unix/sysv/linux/x86/pkey_get.c: Likewise.
19833 * sysdeps/unix/sysv/linux/x86/pkey_set.c: Likewise.
19834 * sysdeps/unix/sysv/linux/**.abilist: Update.
19835
19836 2017-12-05 Florian Weimer <fweimer@redhat.com>
19837
19838 * support/tst-test_compare.c (subprocess): Use long long instead
19839 of long argument for consistent type width across 32-bit and
19840 64-bit architectures.
19841 (do_test): Adjust expected output.
19842
19843 2017-12-05 Joseph Myers <joseph@codesourcery.com>
19844
19845 * sysdeps/powerpc/fpu/s_cosf.c: Include <libm-alias-float.h>.
19846 (cosf): Define using libm_alias_float.
19847 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-float.h>.
19848 (fabsf): Define using libm_alias_float.
19849 * sysdeps/powerpc/fpu/s_fmaf.S: Include <libm-alias-float.h>.
19850 (fmaf): Define using libm_alias_float.
19851 * sysdeps/powerpc/fpu/s_rintf.c: Include <libm-alias-float.h>.
19852 (rintf): Define using libm_alias_float.
19853 * sysdeps/powerpc/fpu/s_sinf.c: Include <libm-alias-float.h>.
19854 (sinf): Define using libm_alias_float.
19855 * sysdeps/powerpc/power5+/fpu/s_modff.c: Include
19856 <libm-alias-float.h>.
19857 (modff): Define using libm_alias_float.
19858 * sysdeps/powerpc/power7/fpu/s_logbf.c: Include
19859 <libm-alias-float.h>.
19860 (logbf): Define using libm_alias_float.
19861 * sysdeps/powerpc/powerpc32/fpu/s_ceilf.S: Include
19862 <libm-alias-float.h>.
19863 (ceilf): Define using libm_alias_float.
19864 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
19865 <libm-alias-float.h>.
19866 (copysignf): Define using libm_alias_float.
19867 * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Include
19868 <libm-alias-float.h>.
19869 (floorf): Define using libm_alias_float.
19870 * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Include
19871 <libm-alias-float.h>.
19872 (llrintf): Define using libm_alias_float.
19873 * sysdeps/powerpc/powerpc32/fpu/s_llroundf.c: Include
19874 <libm-alias-float.h>.
19875 (llroundf): Define using libm_alias_float.
19876 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
19877 <libm-alias-float.h>.
19878 (lrintf): Define using libm_alias_float.
19879 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
19880 <libm-alias-float.h>.
19881 (lroundf): Define using libm_alias_float.
19882 * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: Include
19883 <libm-alias-float.h>.
19884 (nearbyintf): Define using libm_alias_float.
19885 * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Include
19886 <libm-alias-float.h>.
19887 (rintf): Define using libm_alias_float.
19888 * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Include
19889 <libm-alias-float.h>.
19890 (roundf): Define using libm_alias_float.
19891 * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Include
19892 <libm-alias-float.h>.
19893 (truncf): Define using libm_alias_float.
19894 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c:
19895 Include <libm-alias-float.h>.
19896 (ceilf): Define using libm_alias_float.
19897 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c:
19898 Include <libm-alias-float.h>.
19899 (copysignf): Define using libm_alias_float.
19900 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c:
19901 Include <libm-alias-float.h>.
19902 (floorf): Define using libm_alias_float.
19903 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c:
19904 Include <libm-alias-float.h>.
19905 (llrintf): Define using libm_alias_float.
19906 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c:
19907 Include <libm-alias-float.h>.
19908 (llroundf): Define using libm_alias_float.
19909 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c:
19910 Include <libm-alias-float.h>.
19911 (logbf): Define using libm_alias_float.
19912 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c:
19913 Include <libm-alias-float.h>.
19914 (lrintf): Define using libm_alias_float.
19915 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c:
19916 Include <libm-alias-float.h>.
19917 (lroundf): Define using libm_alias_float.
19918 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c:
19919 Include <libm-alias-float.h>.
19920 (modff): Define using libm_alias_float.
19921 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c:
19922 Include <libm-alias-float.h>.
19923 (roundf): Define using libm_alias_float.
19924 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c:
19925 Include <libm-alias-float.h>.
19926 (truncf): Define using libm_alias_float.
19927 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Include
19928 <libm-alias-float.h>.
19929 (llrintf): Define using libm_alias_float.
19930 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
19931 <libm-alias-float.h>.
19932 (llroundf): Define using libm_alias_float.
19933 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceilf.S: Include
19934 <libm-alias-float.h>.
19935 (ceilf): Define using libm_alias_float.
19936 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floorf.S: Include
19937 <libm-alias-float.h>.
19938 (floorf): Define using libm_alias_float.
19939 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
19940 <libm-alias-float.h>.
19941 (llroundf): Define using libm_alias_float.
19942 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
19943 <libm-alias-float.h>.
19944 (lroundf): Define using libm_alias_float.
19945 * sysdeps/powerpc/powerpc32/power5+/fpu/s_roundf.S: Include
19946 <libm-alias-float.h>.
19947 (roundf): Define using libm_alias_float.
19948 * sysdeps/powerpc/powerpc32/power5+/fpu/s_truncf.S: Include
19949 <libm-alias-float.h>.
19950 (truncf): Define using libm_alias_float.
19951 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
19952 <libm-alias-float.h>.
19953 (copysignf): Define using libm_alias_float.
19954 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Include
19955 <libm-alias-float.h>.
19956 (llrintf): Define using libm_alias_float.
19957 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
19958 <libm-alias-float.h>.
19959 (llroundf): Define using libm_alias_float.
19960 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
19961 <libm-alias-float.h>.
19962 (lrintf): Define using libm_alias_float.
19963 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
19964 <libm-alias-float.h>.
19965 (lroundf): Define using libm_alias_float.
19966 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: Include
19967 <libm-alias-float.h>.
19968 (ceilf): Define using libm_alias_float.
19969 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: Include
19970 <libm-alias-float.h>.
19971 (copysignf): Define using libm_alias_float.
19972 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf.c: Include
19973 <libm-alias-float.h>.
19974 (cosf): Define using libm_alias_float.
19975 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: Include
19976 <libm-alias-float.h>.
19977 (floorf): Define using libm_alias_float.
19978 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrintf.c: Include
19979 <libm-alias-float.h>.
19980 (llrintf): Define using libm_alias_float.
19981 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf.c: Include
19982 <libm-alias-float.h>.
19983 (llroundf): Define using libm_alias_float.
19984 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: Include
19985 <libm-alias-float.h>.
19986 (logbf): Define using libm_alias_float.
19987 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c: Include
19988 <libm-alias-float.h>.
19989 (modff): Define using libm_alias_float.
19990 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: Include
19991 <libm-alias-float.h>.
19992 (roundf): Define using libm_alias_float.
19993 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf.c: Include
19994 <libm-alias-float.h>.
19995 (sinf): Define using libm_alias_float.
19996 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: Include
19997 <libm-alias-float.h>.
19998 (truncf): Define using libm_alias_float.
19999 * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Include
20000 <libm-alias-float.h>.
20001 (ceilf): Define using libm_alias_float.
20002 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20003 <libm-alias-float.h>.
20004 (copysignf): Define using libm_alias_float.
20005 * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Include
20006 <libm-alias-float.h>.
20007 (floorf): Define using libm_alias_float.
20008 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20009 <libm-alias-float.h>.
20010 (llrintf): Define using libm_alias_float.
20011 * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Include
20012 <libm-alias-float.h>.
20013 (llroundf): Define using libm_alias_float.
20014 * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Include
20015 <libm-alias-float.h>.
20016 (nearbyintf): Define using libm_alias_float.
20017 * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Include
20018 <libm-alias-float.h>.
20019 (rintf): Define using libm_alias_float.
20020 * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Include
20021 <libm-alias-float.h>.
20022 (roundf): Define using libm_alias_float.
20023 * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Include
20024 <libm-alias-float.h>.
20025 (truncf): Define using libm_alias_float.
20026 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceilf.S: Include
20027 <libm-alias-float.h>.
20028 (ceilf): Define using libm_alias_float.
20029 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floorf.S: Include
20030 <libm-alias-float.h>.
20031 (floorf): Define using libm_alias_float.
20032 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20033 <libm-alias-float.h>.
20034 (llroundf): Define using libm_alias_float.
20035 * sysdeps/powerpc/powerpc64/power5+/fpu/s_roundf.S: Include
20036 <libm-alias-float.h>.
20037 (roundf): Define using libm_alias_float.
20038 * sysdeps/powerpc/powerpc64/power5+/fpu/s_truncf.S: Include
20039 <libm-alias-float.h>.
20040 (truncf): Define using libm_alias_float.
20041 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20042 <libm-alias-float.h>.
20043 (copysignf): Define using libm_alias_float.
20044 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20045 <libm-alias-float.h>.
20046 (llrintf): Define using libm_alias_float.
20047 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20048 <libm-alias-float.h>.
20049 (llroundf): Define using libm_alias_float.
20050 * sysdeps/powerpc/powerpc64/power8/fpu/s_cosf.S: Include
20051 <libm-alias-float.h>.
20052 (cosf): Define using libm_alias_float.
20053 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20054 <libm-alias-float.h>.
20055 (llrintf): Define using libm_alias_float.
20056 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20057 <libm-alias-float.h>.
20058 (llroundf): Define using libm_alias_float.
20059 * sysdeps/powerpc/powerpc64/power8/fpu/s_sinf.S: Include
20060 <libm-alias-float.h>.
20061 (sinf): Define using libm_alias_float.
20062
20063 2017-12-04 Florian Weimer <fweimer@redhat.com>
20064
20065 * support/check.h (TEST_COMPARE): Define.
20066 (support_test_compare_failure): Declare.
20067 * support/Makefile (libsupport-routines): Add
20068 support_test_compare_failure.
20069 (tests): Add tst-test_compare.
20070 * support /support_test_compare_failure.c: New file.
20071 * support/tst-test_compare.c: Likewise.
20072
20073 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20074
20075 [BZ #22527]
20076 * localedata/locales/tr_TR (LC_COLLATE): Base collation rules
20077 on iso14651_t1. A test file localedata/tr_TR.UTF-8.in is already
20078 available, this rewrite of the collation rules does reproduce
20079 the test file in the same order.
20080
20081 2017-12-04 Mike FABIAN <mfabian@redhat.com>
20082
20083 [BZ #10580]
20084 * localedata/locales/hr_HR (LC_TIME): Use two letters for the
20085 digraphs in the month and day names. Using single code points for
20086 digraphs is deprecated. While there are dedicated Unicode
20087 codepoints, for the digraphs, these are included for backwards
20088 compatibility and modern texts use a sequence of Basic Latin
20089 characters. See: https://www.unicode.org/faq/ligature_digraph.html
20090 This makes the month and day names agree exactly with CLDR now,
20091 CLDR does not use the single code points for the digraphs either.
20092
20093 2017-12-04 Chris Metcalf <cmetcalf@mellanox.com>
20094
20095 * sysdeps/tile/libm-test-ulps: Update ca{cos,sin,tan}{,h} ulps.
20096
20097 2017-12-04 Joseph Myers <joseph@codesourcery.com>
20098
20099 * sysdeps/ieee754/flt-32/s_sinf.c (SINF_FUNC): Use __floor instead
20100 of floor.
20101
20102 2017-12-04 Siddhesh Poyarekar <siddhesh@sourceware.org>
20103
20104 * sysdeps/aarch64/multiarch/memcpy_generic.S (__GI_memcpy):
20105 Define only for libc.so.
20106
20107 2017-12-04 Stefan Liebler <stli@linux.vnet.ibm.com>
20108
20109 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
20110 (INTERNAL_VSYSCALL_CALL, CLOBBER_0, CLOBBER_1, CLOBBER_2,
20111 CLOBBER_3, CLOBBER_4, CLOBBER_5, CLOBBER_6,
20112 INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Remove.
20113 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
20114
20115 2017-12-04 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
20116
20117 [BZ #5997]
20118 * sysdeps/ieee754/flt-32/s_sinf.c: New implementation.
20119
20120 2017-12-02 John David Anglin <danglin@gcc.gnu.org>
20121
20122 [BZ libc/19170]
20123 * sysdeps/hppa/crti.S: Declare PREINIT_FUNCTION weak_extern when
20124 PREINIT_FUNCTION_WEAK is nonzero.
20125 (gmon_initializer): New function. Put procedure label for it in
20126 .init_array section.
20127 (_init): Don't call PREINIT_FUNCTION.
20128 * sysdeps/hppa/crtn.S (__gmon_start__): Remove.
20129 * sysdeps/hppa/dl-lookupcfg.h (DL_FIXUP_MAKE_VALUE): Create null fixup
20130 value when map argument is null.
20131
20132 * sysdeps/hppa/dl-fptr.c (elf_machine_resolve): Remove unnecessary
20133 depi instruction from PIC pc-relative sequence.
20134 * sysdeps/hppa/dl-fptr.h (ELF_MACHINE_LOAD_ADDRESS): Likewise.
20135 * sysdeps/hppa/dl-machine.h (elf_machine_dynamic): Likewise.
20136 (elf_machine_load_address): Likewise.
20137 (elf_machine_runtime_setup): Likewise.
20138
20139 2017-12-02 Joseph Myers <joseph@codesourcery.com>
20140
20141 * sysdeps/powerpc/power7/fpu/s_logb.c: Include
20142 <libm-alias-double.h>.
20143 (logb): Define using libm_alias_double.
20144 * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Include
20145 <libm-alias-double.h>.
20146 (copysign): Define using libm_alias_double.
20147 * sysdeps/powerpc/powerpc32/fpu/s_llrint.c: Include
20148 <libm-alias-double.h>.
20149 (llrint): Define using libm_alias_double.
20150 * sysdeps/powerpc/powerpc32/fpu/s_llround.c: Include
20151 <libm-alias-double.h>.
20152 (llround): Define using libm_alias_double.
20153 * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Include
20154 <libm-alias-double.h>.
20155 (lrint): Define using libm_alias_double.
20156 * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Include
20157 <libm-alias-double.h>.
20158 (lround): Define using libm_alias_double.
20159 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
20160 Include <libm-alias-double.h>.
20161 (copysign): Define using libm_alias_double.
20162 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c:
20163 Include <libm-alias-double.h>.
20164 (llrint): Define using libm_alias_double.
20165 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c:
20166 Include <libm-alias-double.h>.
20167 (llround): Define using libm_alias_double.
20168 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: Include
20169 <libm-alias-double.h>.
20170 (logb): Define using libm_alias_double.
20171 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c:
20172 Include <libm-alias-double.h>.
20173 (lrint): Define using libm_alias_double.
20174 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c:
20175 Include <libm-alias-double.h>.
20176 (lround): Define using libm_alias_double.
20177 * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Include
20178 <libm-alias-double.h>.
20179 (llrint): Define using libm_alias_double.
20180 * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Include
20181 <libm-alias-double.h>.
20182 (llround): Define using libm_alias_double.
20183 * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Include
20184 <libm-alias-double.h>.
20185 (llround): Define using libm_alias_double.
20186 * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Include
20187 <libm-alias-double.h>.
20188 (lround): Define using libm_alias_double.
20189 * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Include
20190 <libm-alias-double.h>.
20191 (copysign): Define using libm_alias_double.
20192 * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Include
20193 <libm-alias-double.h>.
20194 (llrint): Define using libm_alias_double.
20195 * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Include
20196 <libm-alias-double.h>.
20197 (llround): Define using libm_alias_double.
20198 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lrint.S: Include
20199 <libm-alias-double.h>.
20200 (lrint): Define using libm_alias_double.
20201 * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Include
20202 <libm-alias-double.h>.
20203 (lround): Define using libm_alias_double.
20204 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Include
20205 <libm-alias-double.h>.
20206 (copysign): Define using libm_alias_double.
20207 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: Include
20208 <libm-alias-double.h>.
20209 (llrint): Define using libm_alias_double.
20210 (lrint): Likewise.
20211 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: Include
20212 <libm-alias-double.h>.
20213 (llround): Define using libm_alias_double.
20214 (lround): Likewise.
20215 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: Include
20216 <libm-alias-double.h>.
20217 (logb): Define using libm_alias_double.
20218 * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Include
20219 <libm-alias-double.h>.
20220 (copysign): Define using libm_alias_double.
20221 * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Include
20222 <libm-alias-double.h>.
20223 (llrint): Define using libm_alias_double.
20224 (lrint): Likewise.
20225 * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Include
20226 <libm-alias-double.h>.
20227 (llround): Define using libm_alias_double.
20228 (lround): Likewise.
20229 * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Include
20230 <libm-alias-double.h>.
20231 (llround): Define using libm_alias_double.
20232 (lround): Likewise.
20233 * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Include
20234 <libm-alias-double.h>.
20235 (copysign): Define using libm_alias_double.
20236 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Include
20237 <libm-alias-double.h>.
20238 (llrint): Define using libm_alias_double.
20239 (lrint): Likewise.
20240 * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Include
20241 <libm-alias-double.h>.
20242 (llround): Define using libm_alias_double.
20243 (lround): Likewise.
20244 * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: Include
20245 <libm-alias-double.h>.
20246 (llrint): Define using libm_alias_double.
20247 (lrint): Likewise.
20248 * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: Include
20249 <libm-alias-double.h>.
20250 (llround): Define using libm_alias_double.
20251 (lround): Likewise.
20252
20253 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20254
20255 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
20256 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (lroundl): Do not define
20257 compat symbol based on llround.
20258
20259 * sysdeps/powerpc/power7/fpu/s_logb.c
20260 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Define as compat
20261 symbol based on __logb, not on logb.
20262 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c
20263 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20264 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c
20265 [LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (logbl): Likewise.
20266
20267 * sysdeps/powerpc/fpu/s_rint.c: Include <libm-alias-double.h>.
20268 (rint): Define using libm_alias_double.
20269 * sysdeps/powerpc/power5+/fpu/s_modf.c: Include
20270 <libm-alias-double.h>.
20271 (modf): Define using libm_alias_double.
20272 * sysdeps/powerpc/powerpc32/fpu/s_ceil.S: Include
20273 <libm-alias-double.h>.
20274 (ceil): Define using libm_alias_double.
20275 * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Include
20276 <libm-alias-double.h>.
20277 (floor): Define using libm_alias_double.
20278 * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: Include
20279 <libm-alias-double.h>.
20280 (nearbyint): Define using libm_alias_double.
20281 * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Include
20282 <libm-alias-double.h>.
20283 (rint): Define using libm_alias_double.
20284 * sysdeps/powerpc/powerpc32/fpu/s_round.S: Include
20285 <libm-alias-double.h>.
20286 (round): Define using libm_alias_double.
20287 * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Include
20288 <libm-alias-double.h>.
20289 (trunc): Define using libm_alias_double.
20290 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: Include
20291 <libm-alias-double.h>.
20292 (ceil): Define using libm_alias_double.
20293 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c:
20294 Include <libm-alias-double.h>.
20295 (floor): Define using libm_alias_double.
20296 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: Include
20297 <libm-alias-double.h>.
20298 (modf): Define using libm_alias_double.
20299 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c:
20300 Include <libm-alias-double.h>.
20301 (round): Define using libm_alias_double.
20302 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c:
20303 Include <libm-alias-double.h>.
20304 (trunc): Define using libm_alias_double.
20305 * sysdeps/powerpc/powerpc32/power5+/fpu/s_ceil.S: Include
20306 <libm-alias-double.h>.
20307 (ceil): Define using libm_alias_double.
20308 * sysdeps/powerpc/powerpc32/power5+/fpu/s_floor.S: Include
20309 <libm-alias-double.h>.
20310 (floor): Define using libm_alias_double.
20311 * sysdeps/powerpc/powerpc32/power5+/fpu/s_round.S: Include
20312 <libm-alias-double.h>.
20313 (round): Define using libm_alias_double.
20314 * sysdeps/powerpc/powerpc32/power5+/fpu/s_trunc.S: Include
20315 <libm-alias-double.h>.
20316 (trunc): Define using libm_alias_double.
20317 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: Include
20318 <libm-alias-double.h>.
20319 (ceil): Define using libm_alias_double.
20320 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: Include
20321 <libm-alias-double.h>.
20322 (floor): Define using libm_alias_double.
20323 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Include
20324 <libm-alias-double.h>.
20325 (modf): Define using libm_alias_double.
20326 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: Include
20327 <libm-alias-double.h>.
20328 (round): Define using libm_alias_double.
20329 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: Include
20330 <libm-alias-double.h>.
20331 (trunc): Define using libm_alias_double.
20332 * sysdeps/powerpc/powerpc64/fpu/s_ceil.S: Include
20333 <libm-alias-double.h>.
20334 (ceil): Define using libm_alias_double.
20335 * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Include
20336 <libm-alias-double.h>.
20337 (floor): Define using libm_alias_double.
20338 * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: Include
20339 <libm-alias-double.h>.
20340 (nearbyint): Define using libm_alias_double.
20341 * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Include
20342 <libm-alias-double.h>.
20343 (rint): Define using libm_alias_double.
20344 * sysdeps/powerpc/powerpc64/fpu/s_round.S: Include
20345 <libm-alias-double.h>.
20346 (round): Define using libm_alias_double.
20347 * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Include
20348 <libm-alias-double.h>.
20349 (trunc): Define using libm_alias_double.
20350 * sysdeps/powerpc/powerpc64/power5+/fpu/s_ceil.S: Include
20351 <libm-alias-double.h>.
20352 (ceil): Define using libm_alias_double.
20353 * sysdeps/powerpc/powerpc64/power5+/fpu/s_floor.S: Include
20354 <libm-alias-double.h>.
20355 (floor): Define using libm_alias_double.
20356 * sysdeps/powerpc/powerpc64/power5+/fpu/s_round.S: Include
20357 <libm-alias-double.h>.
20358 (round): Define using libm_alias_double.
20359 * sysdeps/powerpc/powerpc64/power5+/fpu/s_trunc.S: Include
20360 <libm-alias-double.h>.
20361 (trunc): Define using libm_alias_double.
20362
20363 * sysdeps/powerpc/fpu/s_fabs.S: Include <libm-alias-double.h>.
20364 (fabs): Define using libm_alias_double.
20365 * sysdeps/powerpc/fpu/s_fma.S: Include <libm-alias-double.h>.
20366 (fma): Define using libm_alias_double.
20367 * sysdeps/powerpc/powerpc32/fpu/s_fabs.S: Remove file.
20368 * sysdeps/powerpc/powerpc32/fpu/s_fma.S: Likewise.
20369 * sysdeps/powerpc/powerpc64/fpu/s_fabs.S: Likewise.
20370 * sysdeps/powerpc/powerpc64/fpu/s_fma.S: Likewise.
20371
20372 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20373
20374 * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Remove file.
20375
20376 * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC_DFLT,
20377 SPARC_ASM_IFUNC1, SPARC_ASM_IFUNC2, SET, SPARC_ASM_VIS2_IFUNC,
20378 SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
20379
20380 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Fix build
20381 due redirect macro.
20382
20383 2017-12-01 Andreas Schwab <schwab@linux-m68k.org>
20384
20385 * intl/Makefile ($(objpfx)plural.c): Add $(make-target-directory).
20386
20387 2017-12-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20388
20389 * sysdeps/sparc/sparc64/cpu_relax.c: New file.
20390 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.c: Likewise.
20391 * sysdeps/sparc/sparc64/cpu_relax.S: Remove file.
20392 * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Likewise.
20393
20394 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20395 (libm-sysdep_routines): Add s_nearbyintf-generic and
20396 s_nearbyint-generic.
20397 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-generic.S:
20398 New file.
20399 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.c: Likewise.
20400 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-generic.S:
20401 Likewise.
20402 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.c:
20403 Likewise.
20404 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: Remove
20405 file.
20406 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20407 Likewise.
20408
20409 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20410 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic.
20411 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-generic.S: New
20412 file.
20413 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.c: Likewise.
20414 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-generic.S:
20415 Likewise.
20416 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.c: Likewise.
20417 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Remove file.
20418 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
20419
20420 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20421 (libm-sysdep_routines): Add s_llrintf-generic and s_llrint-generic.
20422 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-generic.S: New
20423 file.
20424 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.c: Likewise.
20425 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-generic.S:
20426 Likewise.
20427 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.c: Likewise.
20428 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Remove file.
20429 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
20430
20431 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20432 (libm-sysdep_routines): Add s_fabsf-generic and s_fabs-generic.
20433 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-generic.S: New
20434 file.
20435 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.c: Likewise.
20436 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-generic.S:
20437 Likewise.
20438 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.c: Likewise.
20439 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Remove file.
20440 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
20441
20442 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
20443 (sysdep_calls): New rule.
20444 (sysdep_routines): Use sysdep_calls as base.
20445 (libm-sysdep_routines): Add generic rule for symbols shared with
20446 libc. Add s_copysign-generic and s_copysign-generic objects.
20447 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-generic.S:
20448 New file.
20449 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.c: Likewise.
20450 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-generic.S:
20451 Likewise.
20452 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.c: Likewise.
20453 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Remove file.
20454 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
20455
20456 2017-12-01 Mike FABIAN <mfabian@redhat.com>
20457
20458 [BZ #22519]
20459 * localedata/Makefile: Add is_IS.UTF-8 to test-input and to
20460 the list of locales to be built for testing.
20461 * localedata/is_IS.UTF-8.in: New file.
20462 * localedata/locales/is_IS (LC_COLLATE): Base collation rules
20463 on iso14651_t1.
20464
20465 2017-12-01 Joseph Myers <joseph@codesourcery.com>
20466
20467 * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Include
20468 <libm-alias-float.h>.
20469 (fabsf): Define using libm_alias_float.
20470
20471 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20472
20473 * sysdeps/mips/dl-machine.h (elf_machine_reloc): Expand MIN.
20474
20475 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20476
20477 * sysdeps/m68k/coldfire/fpu/s_fabsf.c: Include
20478 <libm-alias-float.h>.
20479 (fabsf): Define using libm_alias_float.
20480 * sysdeps/m68k/coldfire/fpu/s_lrintf.c: Include
20481 <libm-alias-float.h>.
20482 (lrintf): Define using libm_alias_float.
20483 * sysdeps/m68k/coldfire/fpu/s_rintf.c: Include
20484 <libm-alias-float.h>.
20485 (rintf): Define using libm_alias_float.
20486
20487 * sysdeps/m68k/coldfire/fpu/s_fabs.c: Include
20488 <libm-alias-double.h>.
20489 (fabs): Define using libm_alias_double.
20490 * sysdeps/m68k/coldfire/fpu/s_lrint.c: Include
20491 <libm-alias-double.h>.
20492 (lrint): Define using libm_alias_double.
20493 * sysdeps/m68k/coldfire/fpu/s_rint.c: Include
20494 <libm-alias-double.h>.
20495 (rint): Define using libm_alias_double.
20496
20497 * sysdeps/m68k/m680x0/fpu/s_atan_template.c: New file.
20498 * sysdeps/m68k/m680x0/fpu/s_ceil_template.c: Likewise.
20499 * sysdeps/m68k/m680x0/fpu/s_cos_template.c: Likewise.
20500 * sysdeps/m68k/m680x0/fpu/s_expm1_template.c: Likewise.
20501 * sysdeps/m68k/m680x0/fpu/s_fabs_template.c: Likewise.
20502 * sysdeps/m68k/m680x0/fpu/s_floor_template.c: Likewise.
20503 * sysdeps/m68k/m680x0/fpu/s_frexp_template.c: Likewise.
20504 * sysdeps/m68k/m680x0/fpu/s_lrint_template.c: Likewise.
20505 * sysdeps/m68k/m680x0/fpu/s_modf_template.c: Likewise.
20506 * sysdeps/m68k/m680x0/fpu/s_nearbyint_template.c: Likewise.
20507 * sysdeps/m68k/m680x0/fpu/s_remquo_template.c: Likewise.
20508 * sysdeps/m68k/m680x0/fpu/s_rint_template.c: Likewise.
20509 * sysdeps/m68k/m680x0/fpu/s_sin_template.c: Likewise.
20510 * sysdeps/m68k/m680x0/fpu/s_sincos_template.c: Likewise.
20511 * sysdeps/m68k/m680x0/fpu/s_tan_template.c: Likewise.
20512 * sysdeps/m68k/m680x0/fpu/s_tanh_template.c: Likewise.
20513 * sysdeps/m68k/m680x0/fpu/s_trunc_template.c: Likewise.
20514 * sysdeps/m68k/m680x0/fpu/s_atan.c: Reimplement to use
20515 s_atan_template.c.
20516 * sysdeps/m68k/m680x0/fpu/s_atanf.c: Likewise.
20517 * sysdeps/m68k/m680x0/fpu/s_atanl.c: Likewise.
20518 * sysdeps/m68k/m680x0/fpu/s_ceil.c: Reimplement to use
20519 s_ceil_template.c.
20520 * sysdeps/m68k/m680x0/fpu/s_ceilf.c: Likewise.
20521 * sysdeps/m68k/m680x0/fpu/s_ceill.c: Likewise.
20522 * sysdeps/m68k/m680x0/fpu/s_cos.c: Reimplement to use
20523 s_cos_template.c.
20524 * sysdeps/m68k/m680x0/fpu/s_cosf.c: Likewise.
20525 * sysdeps/m68k/m680x0/fpu/s_cosl.c: Likewise.
20526 * sysdeps/m68k/m680x0/fpu/s_expm1.c: Reimplement to use
20527 s_expm1_template.c.
20528 * sysdeps/m68k/m680x0/fpu/s_expm1f.c: Likewise.
20529 * sysdeps/m68k/m680x0/fpu/s_expm1l.c: Likewise.
20530 * sysdeps/m68k/m680x0/fpu/s_fabs.c: Reimplement to use
20531 s_fabs_template.c.
20532 * sysdeps/m68k/m680x0/fpu/s_fabsf.c: Likewise.
20533 * sysdeps/m68k/m680x0/fpu/s_fabsl.c: Likewise.
20534 * sysdeps/m68k/m680x0/fpu/s_floor.c: Reimplement to use
20535 s_floor_template.c.
20536 * sysdeps/m68k/m680x0/fpu/s_floorf.c: Likewise.
20537 * sysdeps/m68k/m680x0/fpu/s_floorl.c: Likewise.
20538 * sysdeps/m68k/m680x0/fpu/s_frexp.c: Reimplement to use
20539 s_frexp_template.c.
20540 * sysdeps/m68k/m680x0/fpu/s_frexpf.c: Likewise.
20541 * sysdeps/m68k/m680x0/fpu/s_lrint.c: Reimplement to use
20542 s_lrint_template.c.
20543 * sysdeps/m68k/m680x0/fpu/s_lrintf.c: Likewise.
20544 * sysdeps/m68k/m680x0/fpu/s_lrintl.c: Likewise.
20545 * sysdeps/m68k/m680x0/fpu/s_modf.c: Reimplement to use
20546 s_modf_template.c.
20547 * sysdeps/m68k/m680x0/fpu/s_modff.c: Likewise.
20548 * sysdeps/m68k/m680x0/fpu/s_modfl.c: Likewise.
20549 * sysdeps/m68k/m680x0/fpu/s_nearbyint.c: Reimplement to use
20550 s_nearbyint_template.c.
20551 * sysdeps/m68k/m680x0/fpu/s_nearbyintf.c: Likewise.
20552 * sysdeps/m68k/m680x0/fpu/s_nearbyintl.c: Likewise.
20553 * sysdeps/m68k/m680x0/fpu/s_remquo.c: Reimplement to use
20554 s_remquo_template.c.
20555 * sysdeps/m68k/m680x0/fpu/s_remquof.c: Likewise.
20556 * sysdeps/m68k/m680x0/fpu/s_remquol.c: Likewise.
20557 * sysdeps/m68k/m680x0/fpu/s_rint.c: Reimplement to use
20558 s_rint_template.c.
20559 * sysdeps/m68k/m680x0/fpu/s_rintf.c: Likewise.
20560 * sysdeps/m68k/m680x0/fpu/s_rintl.c: Likewise.
20561 * sysdeps/m68k/m680x0/fpu/s_sin.c: Reimplement to use
20562 s_sin_template.c.
20563 * sysdeps/m68k/m680x0/fpu/s_sinf.c: Likewise.
20564 * sysdeps/m68k/m680x0/fpu/s_sinl.c: Likewise.
20565 * sysdeps/m68k/m680x0/fpu/s_sincos.c: Reimplement to use
20566 s_sincos_template.c.
20567 * sysdeps/m68k/m680x0/fpu/s_sincosf.c: Likewise.
20568 * sysdeps/m68k/m680x0/fpu/s_sincosl.c: Likewise.
20569 * sysdeps/m68k/m680x0/fpu/s_tan.c: Reimplement to use
20570 s_tan_template.c.
20571 * sysdeps/m68k/m680x0/fpu/s_tanf.c: Likewise.
20572 * sysdeps/m68k/m680x0/fpu/s_tanl.c: Likewise.
20573 * sysdeps/m68k/m680x0/fpu/s_tanh.c: Reimplement to use
20574 s_tanh_template.c.
20575 * sysdeps/m68k/m680x0/fpu/s_tanhf.c: Likewise.
20576 * sysdeps/m68k/m680x0/fpu/s_tanhl.c: Likewise.
20577 * sysdeps/m68k/m680x0/fpu/s_trunc.c: Reimplement to use
20578 s_trunc_template.c.
20579 * sysdeps/m68k/m680x0/fpu/s_truncf.c: Likewise.
20580 * sysdeps/m68k/m680x0/fpu/s_truncl.c: Likewise.
20581 * sysdeps/m68k/m680x0/fpu/s_significand.c: Reimplement based on
20582 s_atan.c instead of including s_atan.c.
20583 * sysdeps/m68k/m680x0/fpu/s_significandf.c: Reimplement based on
20584 s_atanf.c instead of including s_atanf.c.
20585 * sysdeps/m68k/m680x0/fpu/s_significandl.c: Reimplement based on
20586 s_atanl.c instead of including s_atanl.c.
20587 * sysdeps/m68k/m680x0/fpu/s_log1p.c: Include s_significand.c
20588 instead of s_atan.c.
20589 * sysdeps/m68k/m680x0/fpu/s_log1pf.c: Include s_significandf.c
20590 instead of s_atanf.c.
20591 * sysdeps/m68k/m680x0/fpu/s_log1pl.c: Include s_significandl.c
20592 instead of s_atanl.c.
20593
20594 * scripts/update-copyrights: Do not handle intl/plural.c
20595 specially.
20596
20597 2017-11-30 Juro Bystricky <juro.bystricky@linux.intel.com>
20598
20599 [BZ #22432]
20600 * configure.ac (BISON): Require to be present.
20601 * configure: Regenerated.
20602 * intl/Makefile (generated): Add plural.c.
20603 [$(BISON) != no]: Make code unconditional.
20604 (plural.c): Change rule to $(objpfx)plural.c.
20605 ($(objpfx)plural.o): Depend on $(objpfx)plural.c.
20606 * intl/plural.c: Remove.
20607 * manual/install.texi (Tools for Compilation): Document bison as
20608 required.
20609 * INSTALL: Regenerated.
20610
20611 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20612
20613 * sysdeps/m68k/m680x0/fpu/s_llrint.c: Include
20614 <libm-alias-double.h>.
20615 (llrint): Define using libm_alias_double.
20616 * sysdeps/m68k/m680x0/fpu/s_llrintf.c: Include
20617 <libm-alias-float.h>.
20618 (llrintf): Define using libm_alias_float.
20619 * sysdeps/m68k/m680x0/fpu/s_llrintl.c: Include
20620 <libm-alias-ldouble.h>.
20621 (llrintl): Define using libm_alias_ldouble.
20622
20623 * sysdeps/m68k/m680x0/fpu/s_ccosh_template.c (ccosh): Use
20624 declare_mgen_alias instead of weak_alias.
20625 * sysdeps/m68k/m680x0/fpu/s_cexp_template.c (cexp): Likewise.
20626 * sysdeps/m68k/m680x0/fpu/s_csin_template.c (csin): Likewise.
20627 * sysdeps/m68k/m680x0/fpu/s_csinh_template.c (csinh): Likewise.
20628
20629 2017-11-30 Adhemerval Zanella <adhemerval.zanella@linaro.org>
20630
20631 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20632 Add add_n-generic.
20633 * sysdeps/sparc/sparc64/multiarch/add_n-generic.S: New file.
20634 * sysdeps/sparc/sparc64/multiarch/add_n.c: Likewise.
20635 * sysdeps/sparc/sparc64/multiarch/add_n.S: Remove file.
20636
20637 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20638 Add submul_1-generic.
20639 * sysdeps/sparc/sparc64/multiarch/submul_1-generic.S: New file.
20640 * sysdeps/sparc/sparc64/multiarch/submul_1.c: Likewise.
20641 * sysdeps/sparc/sparc64/multiarch/submul_1.S: Remove file.
20642
20643 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20644 Add addmul_1-generic.
20645 * sysdeps/sparc/sparc64/multiarch/addmul_1-generic.S: New file.
20646 * sysdeps/sparc/sparc64/multiarch/addmul_1.c: Likewise.
20647 * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Remove file.
20648
20649 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20650 Add sub_n-generic.
20651 * sysdeps/sparc/sparc64/multiarch/sub_n-generic.S: New file.
20652 * sysdeps/sparc/sparc64/multiarch/sub_n.c: Likewise.
20653 * sysdeps/sparc/sparc64/multiarch/sub_n.S: Remove file.
20654
20655 * sysdeps/sparc/sparc64/multiarch/Makefile (sysdep_routines):
20656 Add mul_1-generic.
20657 * sysdeps/sparc/sparc64/multiarch/mul_1-generic.S: New file.
20658 * sysdeps/sparc/sparc64/multiarch/mul_1.c: Likewise.
20659 * sysdeps/sparc/sparc64/multiarch/mul_1.S: Remove file.
20660
20661 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20662
20663 According to CLDR, collation rules for Serbian and Bosnian
20664 should be the same as for Croatian.
20665
20666 [BZ #22534]
20667 * localedata/Makefile: Add sr_RS.UTF-8 and bs_BA.UTF-8 to test-input
20668 and to the list of locales to be built for testing.
20669 * localedata/bs_BA.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20670 * localedata/sr_RS.UTF-8.in: New file (same as hr_HR.UTF-8.in).
20671 * localedata/locales/bs_BA (LC_COLLATE): Use “copy "hr_HR"”.
20672 * localedata/locales/sr_RS (LC_COLLATE): Use “copy "hr_HR"”.
20673
20674 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20675
20676 * localedata/locales/hr_HR (LC_COLLATE): Fix collation
20677 to make test case pass.
20678 * localedata/hr_HR.UTF-8.in: Add more test strings.
20679
20680 2017-11-30 Mike FABIAN <mfabian@redhat.com>
20681
20682 * stdlib/tst-strfmon_l.c: Fix testcase. Needed because of [BZ #10580]
20683
20684 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20685
20686 * localedata/Makefile: Add hr_HR.UTF-8 to test-input and to
20687 the list of locales to built for testing.
20688 * localedata/hr_HR.UTF-8.in: New file.
20689
20690 2017-11-30 Dragan Stanojević - Nevidljivi <invisible@hidden-city.net>
20691
20692 [BZ #10580]
20693 * localedata/locales/hr_HR (LC_COLLATE): Base collation rules on
20694 iso14651_t1.
20695 * localedata/locales/hr_HR (LC_TIME): Sync month and day names with
20696 CLDR (except use ligatures for the digraphs, CLDR does not use
20697 the ligatures), add first_workday, some fixes in the date and time
20698 formats.
20699 * localedata/locales/hr_HR (LC_CTYPE): Add transliteration rules
20700 for Đ and đ.
20701 * localedata/locales/hr_HR (LC_MONETARY): Change currency_symbol to
20702 lower case. p_cs_precedes and n_cs_precedes should be 0 instead of 1.
20703 Add int_p_cs_precedes and int_n_cs_precedes.
20704 * localedata/locales/hr_HR (LC_NUMERIC): Change thousands_sep to
20705 "<U202F>" (NARROW NO-BREAK SPACE) and grouping to 3;3 (Agrees with
20706 LC_MONETARY now).
20707 * localedata/locales/hr_HR (LC_TELEPHONE): Add tel_dom_fmt.
20708 * localedata/locales/hr_HR (LC_NAME): Add name_mr, name_mrs, and
20709 name_miss.
20710 * localedata/locales/hr_HR (LC_ADDRESS): Add country_post, country_isbn,
20711 and lang_lib. Change postal_fmt.
20712
20713 2017-11-30 H.J. Lu <hongjiu.lu@intel.com>
20714
20715 * debug/longjmp_chk.c: Include <setjmpP.h> instead of
20716 <setjmp.h>.
20717 * setjmp/longjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20718 (__libc_siglongjmp): Cast &env[0].__saved_mask to "sigset_t *".
20719 * setjmp/sigjmp.c: Include <setjmpP.h> instead of <setjmp.h>.
20720 (__sigjmp_save): Cast &env[0].__saved_mask to "sigset_t *".
20721 * sysdeps/generic/setjmpP.h: New file.
20722 * sysdeps/unix/sysv/linux/x86/jmp_buf-ssp.sym: Likewise.
20723 * sysdeps/unix/sysv/linux/x86/setjmpP.h: Likewise.
20724 * sysdeps/unix/sysv/linux/x86/tst-saved_mask-1.c: Likewise.
20725 * sysdeps/unix/sysv/linux/x86/Makefile (gen-as-const-headers):
20726 Add jmp_buf-ssp.sym.
20727 (tests): Add tst-saved_mask-1.
20728
20729 2017-11-30 Arjun Shankar <arjun@redhat.com>
20730
20731 [BZ #22375]
20732 CVE-2017-17426
20733 * malloc/malloc.c (__libc_malloc): Use checked_request2size
20734 instead of request2size.
20735
20736 2017-11-30 Joseph Myers <joseph@codesourcery.com>
20737
20738 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S
20739 (__lllrint): Remove alias.
20740 (lllrint): Likewise.
20741 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S
20742 (__lllrintf): Likewise.
20743 (lllrintf): Likewise.
20744
20745 * sysdeps/sparc/sparc32/fpu/s_copysignf.S: Include
20746 <libm-alias-float.h>.
20747 (copysignf): Define using libm_alias_float.
20748 * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Include
20749 <libm-alias-float.h>.
20750 (fabsf): Define using libm_alias_float.
20751 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
20752 Include <libm-alias-float.h>.
20753 (copysignf): Define using libm_alias_float.
20754 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Include
20755 <libm-alias-float.h>.
20756 (fabsf): Define using libm_alias_float.
20757 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Include
20758 <libm-alias-float.h>.
20759 (fdimf): Define using libm_alias_float.
20760 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Include
20761 <libm-alias-float.h>.
20762 (fmaf): Define using libm_alias_float.
20763 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Include
20764 <libm-alias-float.h>.
20765 (llrintf): Define using libm_alias_float.
20766 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S:
20767 Include <libm-alias-float.h>.
20768 (nearbyintf): Define using libm_alias_float.
20769 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Include
20770 <libm-alias-float.h>.
20771 (rintf): Define using libm_alias_float.
20772 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: Include
20773 <libm-alias-float.h>.
20774 (llrintf): Define using libm_alias_float.
20775 * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: Include
20776 <libm-alias-float.h>.
20777 (lrintf): Define using libm_alias_float.
20778 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: Include
20779 <libm-alias-float.h>.
20780 (nearbyintf): Define using libm_alias_float.
20781 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Include
20782 <libm-alias-float.h>.
20783 (rintf): Define using libm_alias_float.
20784 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Include
20785 <libm-alias-float.h>.
20786 (ceilf): Define using libm_alias_float.
20787 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Include
20788 <libm-alias-float.h>.
20789 (floorf): Define using libm_alias_float.
20790 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Include
20791 <libm-alias-float.h>.
20792 (fmaf): Define using libm_alias_float.
20793 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Include
20794 <libm-alias-float.h>.
20795 (lrintf): Define using libm_alias_float.
20796 (llrintf): Likewise.
20797 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Include
20798 <libm-alias-float.h>.
20799 (nearbyintf): Define using libm_alias_float.
20800 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Include
20801 <libm-alias-float.h>.
20802 (rintf): Define using libm_alias_float.
20803 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Include
20804 <libm-alias-float.h>.
20805 (truncf): Define using libm_alias_float.
20806 * sysdeps/sparc/sparc64/fpu/s_copysignf.S: Include
20807 <libm-alias-float.h>.
20808 (copysignf): Define using libm_alias_float.
20809 * sysdeps/sparc/sparc64/fpu/s_fabsf.c: Include
20810 <libm-alias-float.h>.
20811 (fabsf): Define using libm_alias_float.
20812 * sysdeps/sparc/sparc64/fpu/s_lrintf.S: Include
20813 <libm-alias-float.h>.
20814 (lrintf): Define using libm_alias_float.
20815 (llrintf): Likewise.
20816 * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: Include
20817 <libm-alias-float.h>.
20818 (nearbyintf): Define using libm_alias_float.
20819 * sysdeps/sparc/sparc64/fpu/s_rintf.S: Include
20820 <libm-alias-float.h>.
20821 (rintf): Define using libm_alias_float.
20822
20823 2017-11-29 Joseph Myers <joseph@codesourcery.com>
20824
20825 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
20826 <libm-alias-double.h>.
20827 (copysign): Define using libm_alias_double.
20828 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include
20829 <libm-alias-double.h>.
20830 (fabs): Define using libm_alias_double.
20831 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
20832 Include <libm-alias-double.h>.
20833 (copysign): Define using libm_alias_double.
20834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
20835 <libm-alias-double.h>.
20836 (fabs): Define using libm_alias_double.
20837 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Include
20838 <libm-alias-double.h>.
20839 (fdim): Define using libm_alias_double.
20840 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Include
20841 <libm-alias-double.h>.
20842 (fma): Define using libm_alias_double.
20843 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Include
20844 <libm-alias-double.h>.
20845 (llrint): Define using libm_alias_double.
20846 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S:
20847 Include <libm-alias-double.h>.
20848 (nearbyint): Define using libm_alias_double.
20849 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Include
20850 <libm-alias-double.h>.
20851 (rint): Define using libm_alias_double.
20852 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20853 <libm-alias-double.h>.
20854 (fabs): Define using libm_alias_double.
20855 * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Include
20856 <libm-alias-double.h>.
20857 (llrint): Define using libm_alias_double.
20858 * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: Include
20859 <libm-alias-double.h>.
20860 (nearbyint): Define using libm_alias_double.
20861 * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Include
20862 <libm-alias-double.h>.
20863 (rint): Define using libm_alias_double.
20864 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Include
20865 <libm-alias-double.h>.
20866 (ceil): Define using libm_alias_double.
20867 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Include
20868 <libm-alias-double.h>.
20869 (floor): Define using libm_alias_double.
20870 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Include
20871 <libm-alias-double.h>.
20872 (fma): Define using libm_alias_double.
20873 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Include
20874 <libm-alias-double.h>.
20875 (lrint): Define using libm_alias_double.
20876 (llrint): Likewise.
20877 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Include
20878 <libm-alias-double.h>.
20879 (nearbyint): Define using libm_alias_double.
20880 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Include
20881 <libm-alias-double.h>.
20882 (rint): Define using libm_alias_double.
20883 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Include
20884 <libm-alias-double.h>.
20885 (trunc): Define using libm_alias_double.
20886 * sysdeps/sparc/sparc64/fpu/s_copysign.S: Include
20887 <libm-alias-double.h>.
20888 (copysign): Define using libm_alias_double.
20889 * sysdeps/sparc/sparc64/fpu/s_fabs.c: Include
20890 <libm-alias-double.h>.
20891 (fabs): Define using libm_alias_double.
20892 * sysdeps/sparc/sparc64/fpu/s_lrint.S: Include
20893 <libm-alias-double.h>.
20894 (lrint): Define using libm_alias_double.
20895 (llrint): Likewise.
20896 * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: Include
20897 <libm-alias-double.h>.
20898 (nearbyint): Define using libm_alias_double.
20899 * sysdeps/sparc/sparc64/fpu/s_rint.S: Include
20900 <libm-alias-double.h>.
20901 (rint): Define using libm_alias_double.
20902
20903 [BZ #22229]
20904 * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Include
20905 <math_ldbl_opt.h>.
20906 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
20907
20908 * scripts/build-many-glibcs.py (Context.add_all_configs): Add
20909 SPARC --disable-multi-arch glibc variants.
20910
20911 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Include
20912 <libm-alias-float.h>.
20913 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20914 if [SHARED].
20915 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Include
20916 <libm-alias-float.h>.
20917 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20918 if [SHARED].
20919 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Include
20920 <libm-alias-float.h>.
20921 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20922 if [SHARED].
20923 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Include
20924 <libm-alias-float.h>.
20925 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20926 if [SHARED].
20927 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Include
20928 <libm-alias-float.h>.
20929 (exp2f): Define using libm_alias_float, or libm_alias_float_other
20930 if [SHARED].
20931 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Include
20932 <libm-alias-float.h>.
20933 (ceilf): Define using libm_alias_float.
20934 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Include
20935 <libm-alias-float.h>.
20936 (floorf): Define using libm_alias_float.
20937 * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Include
20938 <libm-alias-float.h>.
20939 (fmaf): Define using libm_alias_float.
20940 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Include
20941 <libm-alias-float.h>.
20942 (nearbyintf): Define using libm_alias_float.
20943 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Include
20944 <libm-alias-float.h>.
20945 (rintf): Define using libm_alias_float.
20946 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Include
20947 <libm-alias-float.h>.
20948 (truncf): Define using libm_alias_float.
20949 * sysdeps/x86_64/fpu/s_copysignf.S: Include <libm-alias-float.h>.
20950 (copysignf): Define using libm_alias_float.
20951 * sysdeps/x86_64/fpu/s_cosf.S: Include <libm-alias-float.h>.
20952 (cosf): Define using libm_alias_float.
20953 * sysdeps/x86_64/fpu/s_fabsf.c: Include <libm-alias-float.h>.
20954 (fabsf): Define using libm_alias_float.
20955 * sysdeps/x86_64/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
20956 (fmaxf): Define using libm_alias_float.
20957 * sysdeps/x86_64/fpu/s_fminf.S: Include <libm-alias-float.h>.
20958 (fminf): Define using libm_alias_float.
20959 * sysdeps/x86_64/fpu/s_llrintf.S: Include <libm-alias-float.h>.
20960 (llrintf): Define using libm_alias_float.
20961 [!__ILP32__] (lrintf): Likewise.
20962 * sysdeps/x86_64/fpu/s_sincosf.S: Include <libm-alias-float.h>.
20963 (sincosf): Define using libm_alias_float.
20964 * sysdeps/x86_64/fpu/s_sinf.S: Include <libm-alias-float.h>.
20965 (sinf): Define using libm_alias_float.
20966 * sysdeps/x86_64/x32/fpu/s_lrintf.S: Include <libm-alias-float.h>.
20967 (lrintf): Define using libm_alias_float.
20968
20969 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Include
20970 <libm-alias-double.h>.
20971 (atan): Define using libm_alias_double.
20972 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Include
20973 <libm-alias-double.h>.
20974 (ceil): Define using libm_alias_double.
20975 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Include
20976 <libm-alias-double.h>.
20977 (floor): Define using libm_alias_double.
20978 * sysdeps/x86_64/fpu/multiarch/s_fma.c: Include
20979 <libm-alias-double.h>.
20980 (fma): Define using libm_alias_double.
20981 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Include
20982 <libm-alias-double.h>.
20983 (nearbyint): Define using libm_alias_double.
20984 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Include
20985 <libm-alias-double.h>.
20986 (rint): Define using libm_alias_double.
20987 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Include
20988 <libm-alias-double.h>.
20989 (sin): Define using libm_alias_double.
20990 (cos): Likewise.
20991 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Include
20992 <libm-alias-double.h>.
20993 (tan): Define using libm_alias_double.
20994 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Include
20995 <libm-alias-double.h>.
20996 (trunc): Define using libm_alias_double.
20997 * sysdeps/x86_64/fpu/s_copysign.S: Include <libm-alias-double.h>.
20998 (copysign): Define using libm_alias_double.
20999 * sysdeps/x86_64/fpu/s_fabs.c: Include <libm-alias-double.h>.
21000 (fabs): Define using libm_alias_double.
21001 * sysdeps/x86_64/fpu/s_fmax.S: Include <libm-alias-double.h>.
21002 (fmax): Define using libm_alias_double.
21003 * sysdeps/x86_64/fpu/s_fmin.S: Include <libm-alias-double.h>.
21004 (fmin): Define using libm_alias_double.
21005 * sysdeps/x86_64/fpu/s_llrint.S: Include <libm-alias-double.h>.
21006 (llrint): Define using libm_alias_double.
21007 [!__ILP32__] (lrint): Likewise.
21008 * sysdeps/x86_64/x32/fpu/s_lrint.S: Include <libm-alias-double.h>.
21009 (lrint): Define using libm_alias_double.
21010
21011 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21012
21013 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21014 (libm-sysdep_routines): Add s_rintf-generic and s_rint-generic
21015 objects.
21016 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-generic.S: New file.
21017 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.c: Likewise.
21018 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-generic.S: Likewise.
21019 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.c: Likewise.
21020 * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Remove file.
21021 * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
21022
21023 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21024 (libm-sysdep_routines): Add s_lrint-generic and s_lrintf-generic
21025 objects.
21026 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-generic.S: New file.
21027 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.c: Likewise.
21028 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-generic.S: Likewise.
21029 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.c: Likewise.
21030 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Remove file.
21031 * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
21032
21033 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile
21034 (libm-sysdep_routines): Add s_nearbyint-generic and
21035 s_nearbyintf-generic objects.
21036 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-generic.S: New file.
21037 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.c: Likewise.
21038 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-generic.S: Likewise.
21039 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.c: Likewise.
21040 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: Remove file.
21041 * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: Likewise.
21042
21043 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21044 Add s_finitef-generic and s_finite-generic objects.
21045 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-generic.S: New file.
21046 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.c: Likewise.
21047 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-generic.S: Likewise.
21048 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.c: Likewise.
21049 * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Remove file.
21050 * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Remove file.
21051
21052 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21053 Add s_isinff-generic and s_isinf-generic objects.
21054 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-generic.S: New file.
21055 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.c: Likewise.
21056 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-generic.S: Likewise.
21057 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.c: Likewise.
21058 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Remove file.
21059 * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
21060
21061 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdeps_calls):
21062 Add s_isnanf-generic and s_isnan-generic objects.
21063 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-generic.S: New file.
21064 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-generic.S: Likewise.
21065 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.c: Likewise.
21066 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.c: Likewise.
21067 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Remove file.
21068 * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
21069
21070 * sysdeps/sparc/sparc-ifunc.h (sparc_libm_ifunc_redirected): New
21071 macro.
21072 * sysdeps/sparc/sparc64/fpu/multiarch/Makefile (sysdep_calls): New
21073 rule.
21074 (sysdep_routines): Use sysdep_calls as base.
21075 (libm-sysdep_routines): Add generic rule for symbols shared with
21076 libc. Add s_signbit-generic and s_signbitf-generic objects.
21077 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.c: New file.
21078 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.c: Likewise.
21079 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-generic.S: Likewise.
21080 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-generic.S: Likewise.
21081 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Remove file.
21082 * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
21083
21084 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21085
21086 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-float.h>.
21087 * sysdeps/ia64/fpu/e_acosf.S (acosf): Use libm_alias_float_other.
21088 * sysdeps/ia64/fpu/e_acoshf.S (acoshf): Likewise.
21089 * sysdeps/ia64/fpu/e_asinf.S (asinf): Likewise.
21090 * sysdeps/ia64/fpu/e_atan2f.S (atan2f): Likewise.
21091 * sysdeps/ia64/fpu/e_atanhf.S (atanhf): Likewise.
21092 * sysdeps/ia64/fpu/e_coshf.S (coshf): Likewise.
21093 * sysdeps/ia64/fpu/e_exp10f.S (exp10f): Likewise.
21094 * sysdeps/ia64/fpu/e_exp2f.S (exp2f): Likewise.
21095 * sysdeps/ia64/fpu/e_expf.S (expf): Likewise.
21096 * sysdeps/ia64/fpu/e_fmodf.S (fmodf): Likewise.
21097 * sysdeps/ia64/fpu/e_hypotf.S (hypotf): Likewise.
21098 * sysdeps/ia64/fpu/e_lgammaf_r.c (lgammaf_r): Define using
21099 libm_alias_float_r.
21100 * sysdeps/ia64/fpu/e_log2f.S (log2f): Use libm_alias_float_other.
21101 * sysdeps/ia64/fpu/e_logf.S (log10f): Likewise.
21102 (logf): Likewise.
21103 * sysdeps/ia64/fpu/e_powf.S (powf): Likewise.
21104 * sysdeps/ia64/fpu/e_remainderf.S (remainderf): Likewise.
21105 * sysdeps/ia64/fpu/e_sinhf.S (sinhf): Likewise.
21106 * sysdeps/ia64/fpu/e_sqrtf.S (sqrtf): Likewise.
21107 * sysdeps/ia64/fpu/libm_sincosf.S (sincosf): Likewise.
21108 * sysdeps/ia64/fpu/s_asinhf.S (asinhf): Likewise.
21109 * sysdeps/ia64/fpu/s_atanf.S (atanf): Likewise.
21110 * sysdeps/ia64/fpu/s_cbrtf.S (cbrtf): Likewise.
21111 * sysdeps/ia64/fpu/s_ceilf.S (ceilf): Likewise.
21112 * sysdeps/ia64/fpu/s_copysign.S (copysignf): Define using
21113 libm_alias_float.
21114 * sysdeps/ia64/fpu/s_cosf.S (sinf): Use libm_alias_float_other.
21115 (cosf): Likewise.
21116 * sysdeps/ia64/fpu/s_erfcf.S (erfcf): Likewise.
21117 * sysdeps/ia64/fpu/s_erff.S (erff): Likewise.
21118 * sysdeps/ia64/fpu/s_expm1f.S (expm1f): Likewise.
21119 * sysdeps/ia64/fpu/s_fabsf.S (fabsf): Likewise.
21120 * sysdeps/ia64/fpu/s_fdimf.S (fdimf): Likewise.
21121 * sysdeps/ia64/fpu/s_floorf.S (floorf): Likewise.
21122 * sysdeps/ia64/fpu/s_fmaf.S (fmaf): Likewise.
21123 * sysdeps/ia64/fpu/s_fmaxf.S (fmaxf): Likewise.
21124 * sysdeps/ia64/fpu/s_frexpf.c (frexpf): Likewise.
21125 * sysdeps/ia64/fpu/s_ldexpf.c (ldexpf): Likewise.
21126 * sysdeps/ia64/fpu/s_log1pf.S (log1pf): Likewise.
21127 * sysdeps/ia64/fpu/s_logbf.S (logbf): Likewise.
21128 * sysdeps/ia64/fpu/s_modff.S (modff): Likewise.
21129 * sysdeps/ia64/fpu/s_nearbyintf.S (nearbyintf): Likewise.
21130 * sysdeps/ia64/fpu/s_nextafterf.S (nextafterf): Likewise.
21131 * sysdeps/ia64/fpu/s_rintf.S (rintf): Likewise.
21132 * sysdeps/ia64/fpu/s_roundf.S (roundf): Likewise.
21133 * sysdeps/ia64/fpu/s_scalblnf.c (scalblnf): Likewise.
21134 * sysdeps/ia64/fpu/s_scalbnf.c (scalbnf): Define using
21135 libm_alias_float.
21136 * sysdeps/ia64/fpu/s_tanf.S (tanf): Use libm_alias_float_other.
21137 * sysdeps/ia64/fpu/s_tanhf.S (tanhf): Likewise.
21138 * sysdeps/ia64/fpu/s_truncf.S (truncf): Likewise.
21139 * sysdeps/ia64/fpu/w_lgammaf_main.c
21140 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammaf): Likewise.
21141 * sysdeps/ia64/fpu/w_tgammaf_compat.S (tgammaf): Likewise.
21142
21143 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21144 Alexandre Oliva <aoliva@redhat.com>
21145
21146 [BZ #17750]
21147 * Makefile: add fr_CA.UTF-8 to test-input and LOCALES.
21148 * localedata/fr_CA.UTF-8.in: New file with test data for backward
21149 accents sorting.
21150 * localedata/fr_FR.UTF-8.in: Fix test data for forward accents
21151 sorting.
21152 * localedata/locales/cs_CZ (LC_COLLATE): Remove “define DIACRIT_FORWARD”
21153 * localedata/locales/de_DE (LC_COLLATE): Likewise.
21154 * localedata/locales/hu_HU (LC_COLLATE): Likewise.
21155 * localedata/locales/lb_LU (LC_COLLATE): Likewise.
21156 * localedata/locales/yuw_PG (LC_COLLATE): Likewise.
21157 * localedata/locales/fr_CA (LC_COLLATE): Add “define DIACRIT_BACKWARD”
21158 * localedata/locales/iso14651_t1_common: Use “ifdef DIACRIT_FORWARD”
21159 instead of “ifdef DIACRIT_BACKWARD”.
21160
21161 2017-11-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21162
21163 * config.h.in (HAVE_AS_VIS3_SUPPORT): Remove check for VIS3 support.
21164 * sysdeps/sparc/configure.ac (HAVE_AS_VIS3_SUPPORT): Likewise.
21165 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c: Likewise.
21166 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.c: Likewise.
21167 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: Likewise.
21168 * sysdeps//sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: Likewise.
21169 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.c: Likewise.
21170 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.c: Likewise.
21171 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.c: Likewise.
21172 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.c: Likewise.
21173 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: Likewise.
21174 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: Likewise.
21175 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.c: Likewise.
21176 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.c: Likewise.
21177 * sysdeps/sparc/sparc-ifunc.h [!HAVE_AS_VIS3_SUPPORT]
21178 (SPARC_ASM_VIS3_IFUNC, SPARC_ASM_VIS3_VIS2_IFUNC): Remove macros.
21179 * sysdeps/sparc/sparc32/sparcv9/Makefile [$(have-as-vis3) != yes]
21180 (ASFLAGS.o, ASFLAGS-.os, ASFLAGS-.op, ASFLAGS-.oS): Remove rules.
21181 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile
21182 ($(have-as-vis3) == yes): Remove conditional.
21183 * sysdeps/sparc/sparc64/Makefile (($(have-as-vis3) == yes)):
21184 Likewise.
21185 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-generic.c: New
21186 file.
21187 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-generic.c: New
21188 file.
21189 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-generic.c: New
21190 file.
21191 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-generic.c: New
21192 file.
21193 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-generic.c: New file.
21194 * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-generic.c: New file.
21195 * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-generic.c: New file.
21196 * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-generic.c: New file.
21197 * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-generic.c: New file.
21198 * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-generic.c: New file.
21199 * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-generic.c: New file.
21200 * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-generic.c: New file.
21201
21202 2017-11-29 Joseph Myers <joseph@codesourcery.com>
21203
21204 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-double.h>.
21205 * sysdeps/ia64/fpu/e_acos.S (acos): Use libm_alias_double_other.
21206 * sysdeps/ia64/fpu/e_acosh.S (acosh): Likewise.
21207 * sysdeps/ia64/fpu/e_asin.S (asin): Likewise.
21208 * sysdeps/ia64/fpu/e_atan2.S (atan2): Likewise.
21209 * sysdeps/ia64/fpu/e_atanh.S (atanh): Likewise.
21210 * sysdeps/ia64/fpu/e_cosh.S (cosh): Likewise.
21211 * sysdeps/ia64/fpu/e_exp.S (exp): Likewise.
21212 * sysdeps/ia64/fpu/e_exp10.S (exp10): Likewise.
21213 * sysdeps/ia64/fpu/e_exp2.S (exp2): Likewise.
21214 * sysdeps/ia64/fpu/e_fmod.S (fmod): Likewise.
21215 * sysdeps/ia64/fpu/e_hypot.S (hypot): Likewise.
21216 * sysdeps/ia64/fpu/e_lgamma_r.c (lgamma_r): Define using
21217 libm_alias_double_r.
21218 * sysdeps/ia64/fpu/e_log.S (log10): Use libm_alias_double_other.
21219 (log): Likewise.
21220 * sysdeps/ia64/fpu/e_log2.S (log2): Likewise.
21221 * sysdeps/ia64/fpu/e_pow.S (pow): Likewise.
21222 * sysdeps/ia64/fpu/e_remainder.S (remainder): Likewise.
21223 * sysdeps/ia64/fpu/e_sinh.S (sinh): Likewise.
21224 * sysdeps/ia64/fpu/e_sqrt.S (sqrt): Likewise.
21225 * sysdeps/ia64/fpu/libm_sincos.S (sincos): Likewise.
21226 * sysdeps/ia64/fpu/s_asinh.S (asinh): Likewise.
21227 * sysdeps/ia64/fpu/s_atan.S (atan): Likewise.
21228 * sysdeps/ia64/fpu/s_cbrt.S (cbrt): Likewise.
21229 * sysdeps/ia64/fpu/s_ceil.S (ceil): Likewise.
21230 * sysdeps/ia64/fpu/s_copysign.S (copysign): Define using
21231 libm_alias_double.
21232 * sysdeps/ia64/fpu/s_cos.S (sin): Use libm_alias_double_other.
21233 (cos): Likewise.
21234 * sysdeps/ia64/fpu/s_erf.S (erf): Likewise.
21235 * sysdeps/ia64/fpu/s_erfc.S (erfc): Likewise.
21236 * sysdeps/ia64/fpu/s_expm1.S (expm1): Likewise.
21237 * sysdeps/ia64/fpu/s_fabs.S (fabs): Likewise.
21238 * sysdeps/ia64/fpu/s_fdim.S (fdim): Likewise.
21239 * sysdeps/ia64/fpu/s_floor.S (floor): Likewise.
21240 * sysdeps/ia64/fpu/s_fma.S (fma): Likewise.
21241 * sysdeps/ia64/fpu/s_fmax.S (fmax): Likewise.
21242 * sysdeps/ia64/fpu/s_frexp.c (frexp): Likewise.
21243 * sysdeps/ia64/fpu/s_ldexp.c (ldexp): Likewise.
21244 * sysdeps/ia64/fpu/s_log1p.S (log1p): Likewise.
21245 * sysdeps/ia64/fpu/s_logb.S (logb): Likewise.
21246 * sysdeps/ia64/fpu/s_modf.S (modf): Likewise.
21247 * sysdeps/ia64/fpu/s_nearbyint.S (nearbyint): Likewise.
21248 * sysdeps/ia64/fpu/s_nextafter.S (nextafter): Likewise.
21249 * sysdeps/ia64/fpu/s_rint.S (rint): Likewise.
21250 * sysdeps/ia64/fpu/s_round.S (round): Likewise.
21251 * sysdeps/ia64/fpu/s_scalbn.c (scalbn): Define using
21252 libm_alias_double.
21253 * sysdeps/ia64/fpu/s_tan.S (tan): Use libm_alias_double_other.
21254 * sysdeps/ia64/fpu/s_tanh.S (tanh): Likewise.
21255 * sysdeps/ia64/fpu/s_trunc.S (trunc): Likewise.
21256 * sysdeps/ia64/fpu/w_lgamma_main.c
21257 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgamma): Likewise.
21258 * sysdeps/ia64/fpu/w_tgamma_compat.S (tgamma): Likewise.
21259
21260 2017-11-28 John David Anglin <danglin@gcc.gnu.org>
21261
21262 * sysdeps/hppa/start.S (_start): Check PIC instead of SHARED. Load
21263 address of $global$ into %dp register earlier. Use pc-relative
21264 instruction sequence for PIC case.
21265
21266 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21267
21268 * sysdeps/i386/fpu/s_asinhf.S: Include <libm-alias-float.h>.
21269 (asinhf): Define using libm_alias_float.
21270 * sysdeps/i386/fpu/s_atanf.S: Include <libm-alias-float.h>.
21271 (atanf): Define using libm_alias_float.
21272 * sysdeps/i386/fpu/s_cbrtf.S: Include <libm-alias-float.h>.
21273 (cbrtf): Define using libm_alias_float.
21274 * sysdeps/i386/fpu/s_ceilf.S: Include <libm-alias-float.h>.
21275 (ceilf): Define using libm_alias_float.
21276 * sysdeps/i386/fpu/s_copysignf.S: Include <libm-alias-float.h>.
21277 (copysignf): Define using libm_alias_float.
21278 * sysdeps/i386/fpu/s_expm1f.S: Include <libm-alias-float.h>.
21279 (expm1f): Define using libm_alias_float.
21280 * sysdeps/i386/fpu/s_fabsf.S: Include <libm-alias-float.h>.
21281 (fabsf): Define using libm_alias_float.
21282 * sysdeps/i386/fpu/s_floorf.S: Include <libm-alias-float.h>.
21283 (floorf): Define using libm_alias_float.
21284 * sysdeps/i386/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21285 (fmaxf): Define using libm_alias_float.
21286 * sysdeps/i386/fpu/s_fminf.S: Include <libm-alias-float.h>.
21287 (fminf): Define using libm_alias_float.
21288 * sysdeps/i386/fpu/s_frexpf.S: Include <libm-alias-float.h>.
21289 (frexpf): Define using libm_alias_float.
21290 * sysdeps/i386/fpu/s_llrintf.S: Include <libm-alias-float.h>.
21291 (llrintf): Define using libm_alias_float.
21292 * sysdeps/i386/fpu/s_logbf.S: Include <libm-alias-float.h>.
21293 (logbf): Define using libm_alias_float.
21294 * sysdeps/i386/fpu/s_lrintf.S: Include <libm-alias-float.h>.
21295 (lrintf): Define using libm_alias_float.
21296 * sysdeps/i386/fpu/s_nearbyintf.S: Include <libm-alias-float.h>.
21297 (nearbyintf): Define using libm_alias_float.
21298 * sysdeps/i386/fpu/s_remquof.S: Include <libm-alias-float.h>.
21299 (remquof): Define using libm_alias_float.
21300 * sysdeps/i386/fpu/s_rintf.S: Include <libm-alias-float.h>.
21301 (rintf): Define using libm_alias_float.
21302 * sysdeps/i386/fpu/s_truncf.S: Include <libm-alias-float.h>.
21303 (truncf): Define using libm_alias_float.
21304 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Include
21305 <libm-alias-float.h>.
21306 (exp2f): Define using libm_alias_float, or libm_alias_float_other
21307 if [SHARED].
21308 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Include
21309 <libm-alias-float.h>.
21310 (expf): Define using libm_alias_float, or libm_alias_float_other
21311 if [SHARED].
21312 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Include
21313 <libm-alias-float.h>.
21314 (log2f): Define using libm_alias_float, or libm_alias_float_other
21315 if [SHARED].
21316 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Include
21317 <libm-alias-float.h>.
21318 (logf): Define using libm_alias_float, or libm_alias_float_other
21319 if [SHARED].
21320 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Include
21321 <libm-alias-float.h>.
21322 (powf): Define using libm_alias_float, or libm_alias_float_other
21323 if [SHARED].
21324 * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: Include
21325 <libm-alias-float.h>.
21326 (cosf): Define using libm_alias_float.
21327 * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: Include
21328 <libm-alias-float.h>.
21329 (sincosf): Define using libm_alias_float.
21330 * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: Include
21331 <libm-alias-float.h>.
21332 (sinf): Define using libm_alias_float.
21333 * sysdeps/i386/i686/fpu/s_fmaxf.S: Include <libm-alias-float.h>.
21334 (fmaxf): Define using libm_alias_float.
21335 * sysdeps/i386/i686/fpu/s_fminf.S: Include <libm-alias-float.h>.
21336 (fminf): Define using libm_alias_float.
21337 * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21338 <libm-alias-float.h>.
21339 (fmaf): Define using libm_alias_float.
21340
21341 * sysdeps/i386/fpu/s_asinh.S: Include <libm-alias-double.h>.
21342 (asinh): Define using libm_alias_double.
21343 * sysdeps/i386/fpu/s_atan.S: Include <libm-alias-double.h>.
21344 (atan): Define using libm_alias_double.
21345 * sysdeps/i386/fpu/s_cbrt.S: Include <libm-alias-double.h>.
21346 (cbrt): Define using libm_alias_double.
21347 * sysdeps/i386/fpu/s_ceil.S: Include <libm-alias-double.h>.
21348 (ceil): Define using libm_alias_double.
21349 * sysdeps/i386/fpu/s_copysign.S: Include <libm-alias-double.h>.
21350 (copysign): Define using libm_alias_double.
21351 * sysdeps/i386/fpu/s_expm1.S: Include <libm-alias-double.h>.
21352 (expm1): Define using libm_alias_double.
21353 * sysdeps/i386/fpu/s_fabs.S: Include <libm-alias-double.h>.
21354 (fabs): Define using libm_alias_double.
21355 * sysdeps/i386/fpu/s_fdim.c: Include <libm-alias-double.h>.
21356 (fdim): Define using libm_alias_double.
21357 * sysdeps/i386/fpu/s_floor.S: Include <libm-alias-double.h>.
21358 (floor): Define using libm_alias_double.
21359 * sysdeps/i386/fpu/s_fmax.S: Include <libm-alias-double.h>.
21360 (fmax): Define using libm_alias_double.
21361 * sysdeps/i386/fpu/s_fmin.S: Include <libm-alias-double.h>.
21362 (fmin): Define using libm_alias_double.
21363 * sysdeps/i386/fpu/s_frexp.S: Include <libm-alias-double.h>.
21364 (frexp): Define using libm_alias_double.
21365 * sysdeps/i386/fpu/s_llrint.S: Include <libm-alias-double.h>.
21366 (llrint): Define using libm_alias_double.
21367 * sysdeps/i386/fpu/s_logb.S: Include <libm-alias-double.h>.
21368 (logb): Define using libm_alias_double.
21369 * sysdeps/i386/fpu/s_lrint.S: Include <libm-alias-double.h>.
21370 (lrint): Define using libm_alias_double.
21371 * sysdeps/i386/fpu/s_nearbyint.S: Include <libm-alias-double.h>.
21372 (nearbyint): Define using libm_alias_double.
21373 * sysdeps/i386/fpu/s_remquo.S: Include <libm-alias-double.h>.
21374 (remquo): Define using libm_alias_double.
21375 * sysdeps/i386/fpu/s_rint.S: Include <libm-alias-double.h>.
21376 (rint): Define using libm_alias_double.
21377 * sysdeps/i386/fpu/s_trunc.S: Include <libm-alias-double.h>.
21378 (trunc): Define using libm_alias_double.
21379 * sysdeps/i386/i686/fpu/s_fmax.S: Include <libm-alias-double.h>.
21380 (fmax): Define using libm_alias_double.
21381 * sysdeps/i386/i686/fpu/s_fmin.S: Include <libm-alias-double.h>.
21382 (fmin): Define using libm_alias_double.
21383 * sysdeps/i386/i686/multiarch/s_fma.c: Include <libm-alias-double.h>.
21384 (fma): Define using libm_alias_double.
21385
21386 2017-11-28 H.J. Lu <hongjiu.lu@intel.com>
21387
21388 [BZ #22370]
21389 * elf/dl-hwcaps.c (ROUND): Removed.
21390 (_dl_important_hwcaps): Replace ROUND with ELF_NOTE_DESC_OFFSET
21391 and ELF_NOTE_NEXT_OFFSET.
21392 * elf/dl-load.c (ROUND): Removed.
21393 (open_verify): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21394 * elf/readelflib.c (ROUND): Removed.
21395 (process_elf_file): Replace ROUND with ELF_NOTE_NEXT_OFFSET.
21396 * include/elf.h [!_ISOMAC]: Include <libc-pointer-arith.h>.
21397 [!_ISOMAC] (ELF_NOTE_DESC_OFFSET): New.
21398 [!_ISOMAC] (ELF_NOTE_NEXT_OFFSET): Likewise.
21399
21400 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21401
21402 * sysdeps/s390/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21403 [!__fmaf] (fmaf): Define using libm_alias_float.
21404
21405 * sysdeps/s390/fpu/s_fma.c: Include <libm-alias-double.h>.
21406 [!__fma] (fma): Define using libm_alias_double.
21407 * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: Remove.
21408
21409 2017-11-28 Mike FABIAN <mfabian@redhat.com>
21410
21411 [BZ #22336]
21412 * localedata/locales/cs_CZ (LC_COLLATE): Use “copy "iso14651_t1"”
21413 and implement the collation rules for cs from CLDR on top of that.
21414 * Makefile: Add cs_CZ.UTF-8 to test-input.
21415 * cs_CZ.UTF-8.in: New file with test data to test the Czech sorting.
21416
21417 2017-11-28 Siddhesh Poyarekar <siddhesh@sourceware.org>
21418
21419 * localedata/Makefile (LOCALES): Remove duplicate cs_CZ.UTF-8.
21420
21421 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21422 Icarus Sparry <icarus.w.sparry@intel.com>
21423
21424 * benchtests/Makefile:Add BENCHSET to allow subsets of
21425 benchmarks to be run.
21426 * benchtests/README: Add documentation for: Running subsets of
21427 benchmarks.
21428
21429 2017-11-28 Victor Rodriguez <victor.rodriguez.bahena@intel.com>
21430
21431 * benchtests/scripts/benchout.schema.json: Fix regex to accept a wider
21432 range of tests names.
21433
21434 * benchtests/scripts/benchout.schema.json: Add throughput as accepted
21435 result from property and remove "max", min" and "mean" from
21436 required properties based on benchtests/bench-skeleton.c.
21437
21438 2017-11-28 Florian Weimer <fweimer@redhat.com>
21439
21440 [BZ #20826]
21441 Turn posix/tst-getaddrinfo4, posix/tst-getaddrinfo5 into xtests
21442 due to Internet requirement.
21443 * posix/Makefile (tests): Remove tst-getaddrinfo4,
21444 tst-getaddrinfo5.
21445 (xtests): Add tst-getaddrinfo4, tst-getaddrinfo5.
21446
21447 2017-11-28 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21448
21449 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21450 [$(subdir) = string] (sysdep_routines): Add memset-ultra1.
21451 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21452 (sysdep_routines): Add memset-ultra1.
21453 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-ultra1.S: New
21454 file.
21455 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.c: Likewise.
21456 * sysdeps/sparc/sparc32/sparcv9/multiarch/bzero.c: Likewise.
21457 * sysdeps/sparc/sparc64/multiarch/ifunc-memset.h: Likewise.
21458 * sysdeps/sparc/sparc64/multiarch/memset-ultra1.S: Likewise.
21459 * sysdeps/sparc/sparc64/multiarch/memset.c: Likewise.
21460 * sysdeps/sparc/sparc64/multiarch/bzero.c: Likewise.
21461 * sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: Remove file.
21462 * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
21463
21464 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra1.S: New
21465 file.
21466 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.c: Likewise.
21467 * sysdeps/sparc/sparc32/sparcv9/multiarch/mempcpy.c: Likewise.
21468 * sysdeps/sparc/sparc64/multiarch/ifunc-memcpy.h: Likewise.
21469 * sysdeps/sparc/sparc64/multiarch/memcpy-ultra1.S: Likewise.
21470 * sysdeps/sparc/sparc64/multiarch/memcpy.c: Likewise.
21471 * sysdeps/sparc/sparc64/multiarch/mempcpy.c: Likewise.
21472 * sysdeps/sparc/sparc-ifunc.h (sparc_libc_ifunc_redirected): New
21473 macro.
21474 * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile
21475 [$(subdir) = string] (sysdep_routines): Add memcpy-ultra1.
21476 * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = string]
21477 (sysdep_routines): Add memcpy-ultra1.
21478 * sysdeps/sparc/sparc64/multiarch/memcpy.S: Remove file.
21479 * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: Likewise.
21480
21481 2017-11-28 Joseph Myers <joseph@codesourcery.com>
21482
21483 * sysdeps/alpha/fpu/cfloat-compat.h: Include <libm-alias-float.h>.
21484 (cfloat_versions): Take function argument without trailing 'f'.
21485 Call libm_alias_float_other.
21486 * sysdeps/alpha/fpu/cabsf.c: Update call to cfloat_versions.
21487 * sysdeps/alpha/fpu/cargf.c: Likewise.
21488 * sysdeps/alpha/fpu/cimagf.c: Likewise.
21489 * sysdeps/alpha/fpu/conjf.c: Likewise.
21490 * sysdeps/alpha/fpu/crealf.c: Likewise.
21491 * sysdeps/alpha/fpu/s_cacosf.c: Likewise.
21492 * sysdeps/alpha/fpu/s_cacoshf.c: Likewise.
21493 * sysdeps/alpha/fpu/s_casinf.c: Likewise.
21494 * sysdeps/alpha/fpu/s_casinhf.c: Likewise.
21495 * sysdeps/alpha/fpu/s_catanf.c: Likewise.
21496 * sysdeps/alpha/fpu/s_catanhf.c: Likewise.
21497 * sysdeps/alpha/fpu/s_ccosf.c: Likewise.
21498 * sysdeps/alpha/fpu/s_ccoshf.c: Likewise.
21499 * sysdeps/alpha/fpu/s_cexpf.c: Likewise.
21500 * sysdeps/alpha/fpu/s_clogf.c: Likewise.
21501 * sysdeps/alpha/fpu/s_cpowf.c: Likewise.
21502 * sysdeps/alpha/fpu/s_cprojf.c: Likewise.
21503 * sysdeps/alpha/fpu/s_csinf.c: Likewise.
21504 * sysdeps/alpha/fpu/s_csinhf.c: Likewise.
21505 * sysdeps/alpha/fpu/s_csqrtf.c: Likewise.
21506 * sysdeps/alpha/fpu/s_ctanf.c: Likewise.
21507 * sysdeps/alpha/fpu/s_ctanhf.c: Likewise.
21508 * sysdeps/alpha/fpu/s_clog10f.c: Include <libm-alias-float.h>.
21509 (clog10f): Use libm_alias_float_other.
21510 * sysdeps/alpha/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21511 (ceilf): Define using libm_alias_float.
21512 * sysdeps/alpha/fpu/s_copysignf.c: Include <libm-alias-float.h>.
21513 (copysignf): Define using libm_alias_float.
21514 * sysdeps/alpha/fpu/s_fabsf.c: Include <libm-alias-float.h>.
21515 (fabsf): Define using libm_alias_float.
21516 * sysdeps/alpha/fpu/s_floorf.c: Include <libm-alias-float.h>.
21517 (floorf): Define using libm_alias_float.
21518 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-float.h>.
21519 (fmaxf): Define using libm_alias_float.
21520 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-float.h>.
21521 (fminf): Define using libm_alias_float.
21522 * sysdeps/alpha/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21523 (lrintf): Define using libm_alias_float.
21524 (llrintf): Likewise.
21525 * sysdeps/alpha/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21526 (lroundf): Define using libm_alias_float.
21527 (llroundf): Likewise.
21528 * sysdeps/alpha/fpu/s_rintf.c: Include <libm-alias-float.h>.
21529 (rintf): Define using libm_alias_float.
21530 * sysdeps/alpha/fpu/s_truncf.c: Include <libm-alias-float.h>.
21531 (truncf): Define using libm_alias_float.
21532
21533 * sysdeps/aarch64/fpu/s_ceilf.c: Include <libm-alias-float.h>.
21534 (ceilf): Define using libm_alias_float.
21535 * sysdeps/aarch64/fpu/s_floorf.c: Include <libm-alias-float.h>.
21536 (floorf): Define using libm_alias_float.
21537 * sysdeps/aarch64/fpu/s_fmaf.c: Include <libm-alias-float.h>.
21538 (fmaf): Define using libm_alias_float.
21539 * sysdeps/aarch64/fpu/s_fmaxf.c: Include <libm-alias-float.h>.
21540 (fmaxf): Define using libm_alias_float.
21541 * sysdeps/aarch64/fpu/s_fminf.c: Include <libm-alias-float.h>.
21542 (fminf): Define using libm_alias_float.
21543 * sysdeps/aarch64/fpu/s_llrintf.c: Include <libm-alias-float.h>.
21544 (llrintf): Define using libm_alias_float.
21545 * sysdeps/aarch64/fpu/s_llroundf.c: Include <libm-alias-float.h>.
21546 (llroundf): Define using libm_alias_float.
21547 * sysdeps/aarch64/fpu/s_lrintf.c: Include <libm-alias-float.h>.
21548 (lrintf): Define using libm_alias_float.
21549 * sysdeps/aarch64/fpu/s_lroundf.c: Include <libm-alias-float.h>.
21550 (lroundf): Define using libm_alias_float.
21551 * sysdeps/aarch64/fpu/s_nearbyintf.c: Include
21552 <libm-alias-float.h>.
21553 (nearbyintf): Define using libm_alias_float.
21554 * sysdeps/aarch64/fpu/s_rintf.c: Include <libm-alias-float.h>.
21555 (rintf): Define using libm_alias_float.
21556 * sysdeps/aarch64/fpu/s_roundf.c: Include <libm-alias-float.h>.
21557 (roundf): Define using libm_alias_float.
21558 * sysdeps/aarch64/fpu/s_truncf.c: Include <libm-alias-float.h>.
21559 (truncf): Define using libm_alias_float.
21560
21561 * sysdeps/alpha/fpu/s_ceil.c: Include <libm-alias-double.h>.
21562 (ceil): Define using libm_alias_double.
21563 * sysdeps/alpha/fpu/s_copysign.c: Include <libm-alias-double.h>.
21564 (copysign): Define using libm_alias_double.
21565 * sysdeps/alpha/fpu/s_fabs.c: Include <libm-alias-double.h>.
21566 (fabs): Define using libm_alias_double.
21567 * sysdeps/alpha/fpu/s_floor.c: Include <libm-alias-double.h>.
21568 (floor): Define using libm_alias_double.
21569 * sysdeps/alpha/fpu/s_fmax.S: Include <libm-alias-double.h>.
21570 (fmax): Define using libm_alias_double.
21571 * sysdeps/alpha/fpu/s_fmin.S: Include <libm-alias-double.h>.
21572 (fmin): Define using libm_alias_double.
21573 * sysdeps/alpha/fpu/s_lrint.c: Include <libm-alias-double.h>.
21574 (lrint): Define using libm_alias_double.
21575 (llrint): Likewise.
21576 * sysdeps/alpha/fpu/s_lround.c: Include <libm-alias-double.h>.
21577 (lround): Define using libm_alias_double.
21578 (llround): Likewise.
21579 * sysdeps/alpha/fpu/s_rint.c: Include <libm-alias-double.h>.
21580 (rint): Define using libm_alias_double.
21581 * sysdeps/alpha/fpu/s_trunc.c: Include <libm-alias-double.h>.
21582 (trunc): Define using libm_alias_double.
21583
21584 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
21585 (libm_alias_double_r): Add semicolon after weak_alias call.
21586
21587 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21588
21589 * sysdeps/aarch64/fpu/s_ceil.c: Include <libm-alias-double.h>.
21590 (ceil): Define using libm_alias_double.
21591 * sysdeps/aarch64/fpu/s_floor.c: Include <libm-alias-double.h>.
21592 (floor): Define using libm_alias_double.
21593 * sysdeps/aarch64/fpu/s_fma.c: Include <libm-alias-double.h>.
21594 (fma): Define using libm_alias_double.
21595 * sysdeps/aarch64/fpu/s_fmax.c: Include <libm-alias-double.h>.
21596 (fmax): Define using libm_alias_double.
21597 * sysdeps/aarch64/fpu/s_fmin.c: Include <libm-alias-double.h>.
21598 (fmin): Define using libm_alias_double.
21599 * sysdeps/aarch64/fpu/s_llrint.c: Include <libm-alias-double.h>.
21600 (llrint): Define using libm_alias_double.
21601 * sysdeps/aarch64/fpu/s_llround.c: Include <libm-alias-double.h>.
21602 (llround): Define using libm_alias_double.
21603 * sysdeps/aarch64/fpu/s_lrint.c: Include <libm-alias-double.h>.
21604 (lrint): Define using libm_alias_double.
21605 * sysdeps/aarch64/fpu/s_lround.c: Include <libm-alias-double.h>.
21606 (lround): Define using libm_alias_double.
21607 * sysdeps/aarch64/fpu/s_nearbyint.c: Include <libm-alias-double.h>.
21608 (nearbyint): Define using libm_alias_double.
21609 * sysdeps/aarch64/fpu/s_rint.c: Include <libm-alias-double.h>.
21610 (rint): Define using libm_alias_double.
21611 * sysdeps/aarch64/fpu/s_round.c: Include <libm-alias-double.h>.
21612 (round): Define using libm_alias_double.
21613 * sysdeps/aarch64/fpu/s_trunc.c: Include <libm-alias-double.h>.
21614 (trunc): Define using libm_alias_double.
21615
21616 2017-11-27 Florian Weimer <fweimer@redhat.com>
21617
21618 * sysdeps/unix/sysv/linux/mlock2.c: New file.
21619 * sysdeps/unix/sysv/linux/tst-mlock2.c: Likewise.
21620 * sysdeps/unix/sysv/linux/Makefile (routines): Add mlock2.
21621 (tests): Add tst-mlock2.
21622 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Export mlock2.
21623 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_MLOCK2)
21624 [__LINUX_KERNEL_VERSION >= 4.4]: Define.
21625 * sysdeps/unix/sysv/linux/libc**.abilist: Update.
21626 * manual/memory.texi (Page Lock Functions): Move @end deftypefun
21627 for mlock. Document mlock2.
21628
21629 2017-11-27 Joseph Myers <joseph@codesourcery.com>
21630
21631 * sysdeps/ia64/Makeconfig (float64x-alias-fcts): New variable.
21632 * sysdeps/ieee754/float128/Makeconfig (float64x-alias-fcts):
21633 Likewise.
21634 * sysdeps/ieee754/ldbl-128/Makeconfig (float64x-alias-fcts):
21635 Likewise.
21636 * sysdeps/x86/Makeconfig: New file.
21637 * bits/floatn-common.h (__HAVE_FLOAT64X): Remove macro.
21638 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21639 * bits/floatn.h (__HAVE_FLOAT64X): New macro.
21640 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21641 * sysdeps/ia64/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21642 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21643 * sysdeps/ieee754/ldbl-128/bits/floatn.h (__HAVE_FLOAT64X):
21644 Likewise.
21645 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21646 * sysdeps/mips/ieee754/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21647 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21648 * sysdeps/powerpc/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21649 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21650 * sysdeps/x86/bits/floatn.h (__HAVE_FLOAT64X): Likewise.
21651 (__HAVE_FLOAT64X_LONG_DOUBLE): Likewise.
21652 * manual/math.texi (Mathematics): Document support for _Float64x.
21653 * math/Versions (GLIBC_2.27): Add _Float64x functions.
21654 * stdlib/Versions (GLIBC_2.27): Likewise.
21655 * wcsmbs/Versions (GLIBC_2.27): Likewise.
21656 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
21657 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
21658 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
21659 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
21660 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
21661 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
21662 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
21663 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
21664 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
21665 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
21666 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
21667 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist:
21668 Likewise.
21669 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
21670 Likewise.
21671 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
21672 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
21673 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
21674 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
21675 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
21676 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
21677 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
21678 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
21679 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
21680 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
21681 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
21682 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
21683 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
21684 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
21685
21686 2017-11-27 Andreas Schwab <schwab@suse.de>
21687
21688 * elf/Makefile (dl-routines): Add dl-sort-maps.
21689 * elf/dl-sort-maps.c: New file.
21690 * sysdeps/generic/ldsodefs.h (_dl_sort_fini): Don't declare.
21691 (_dl_sort_maps): Declare.
21692 * elf/dl-fini.c (_dl_sort_fini): Remove.
21693 (_dl_fini): Use _dl_sort_maps instead of _dl_sort_fini.
21694 * elf/dl-close.c (_dl_close_worker): Likewise.
21695 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_sort_maps instead of
21696 open-coding it.
21697 * elf/dl-open.c (dl_open_worker): Likewise.
21698
21699 2017-11-24 Joseph Myers <joseph@codesourcery.com>
21700
21701 * sysdeps/ieee754/float128/s_fromfpf128.c (fromfpf128): Define
21702 using libm_alias_float128.
21703 * sysdeps/ieee754/float128/s_fromfpxf128.c (fromfpxf128):
21704 Likewise.
21705 * sysdeps/ieee754/float128/s_setpayloadf128.c (setpayloadf128):
21706 Likewise.
21707 * sysdeps/ieee754/float128/s_setpayloadsigf128.c
21708 (setpayloadsigf128): Likewise.
21709 * sysdeps/ieee754/float128/s_ufromfpf128.c (ufromfpf128):
21710 Likewise.
21711 * sysdeps/ieee754/float128/s_ufromfpxf128.c (ufromfpxf128):
21712 Likewise.
21713
21714 * sysdeps/powerpc/powerpc64le/Makefile ($(foreach
21715 suf,$(all-object-suffixes),$(objpfx)test-float64x%$(suf))): Add
21716 -mfloat128 to CFLAGS.
21717 ($(foreach
21718 suf,$(all-object-suffixes),$(objpfx)test-ifloat64x%$(suf))):
21719 Likewise.
21720 (CFLAGS-libm-test-support-float64x.c): New variable.
21721 ($(objpfx)test-float64x% $(objpfx)test-ifloat64x%): Add
21722 $(f128-loader-link) to gnulib-tests.
21723
21724 * sysdeps/generic/libm-alias-float128.h: Include <bits/floatn.h>.
21725 (libm_alias_float128_other_r): If
21726 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE], define f64x
21727 alias.
21728 (libm_alias_float128_r): Add semicolon after weak_alias call.
21729 * sysdeps/generic/libm-alias-ldouble.h
21730 (libm_alias_ldouble_other_r_f128): New macro.
21731 (libm_alias_ldouble_other_r_f64x): Likewise.
21732 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21733 and libm_alias_ldouble_other_r_f64x.
21734 (libm_alias_ldouble_r): Add semicolon after weak_alias call.
21735 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
21736 (libm_alias_ldouble_other_r_f128): New macro.
21737 (libm_alias_ldouble_other_r_f64x): Likewise.
21738 (libm_alias_ldouble_other_r): Use libm_alias_ldouble_other_r_f128
21739 and libm_alias_ldouble_other_r_f64x.
21740
21741 * stdlib/strfroml.c: Always include <stdlib.h>.
21742 [__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x): Define and later
21743 undefine as macro and define as weak alias.
21744 * sysdeps/ieee754/float128/strfromf128.c: Include <bits/floatn.h>.
21745 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE]: Include
21746 <stdlib.h>.
21747 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strfromf64x):
21748 Define and later undefine as macro and define as weak alias.
21749
21750 * stdlib/strtold.c [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21751 Define and later undefine as macro. Define as weak alias if
21752 [!USE_WIDE_CHAR].
21753 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x): Define and later
21754 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21755 * sysdeps/ieee754/float128/strtof128.c: Include <bits/floatn.h>.
21756 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x):
21757 Define and later undefine as macro. Define as weak alias if
21758 [!USE_WIDE_CHAR].
21759 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x):
21760 Define and later undefine as macro. Define as weak alias if
21761 [USE_WIDE_CHAR].
21762 * sysdeps/ieee754/float128/strtof128_l.c
21763 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l):
21764 Define and later undefine as macro. Define as weak alias if
21765 [!USE_WIDE_CHAR].
21766 [__HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l):
21767 Define and later undefine as macro. Define as weak alias if
21768 [USE_WIDE_CHAR].
21769 * sysdeps/ieee754/ldbl-128/strtold_l.c
21770 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21771 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21772 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21773 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21774 * sysdeps/ieee754/ldbl-64-128/strtold_l.c
21775 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21776 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21777 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21778 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21779 * sysdeps/ieee754/ldbl-96/strtold_l.c
21780 [__HAVE_FLOAT64X_LONG_DOUBLE] (strtof64x_l): Define and later
21781 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
21782 [__HAVE_FLOAT64X_LONG_DOUBLE] (wcstof64x_l): Define and later
21783 undefine as macro. Define as weak alias if [USE_WIDE_CHAR].
21784
21785 * math/test-float64x.h: New file.
21786 * math/Makefile (type-float64x-yes): New variable.
21787 (test-types): Add $(type-float64x-$(float64x-alias-fcts)).
21788
21789 * sysdeps/generic/math_private.h (min_of_type_f): Make into a
21790 function-like macro.
21791 (min_of_type_): Likewise.
21792 (min_of_type_l): Likewise.
21793 (min_of_type_f128): Likewise.
21794 (min_of_type): Pass () as last argument of __MATH_TG.
21795
21796 * stdlib/tst-strtod-round-skeleton.c
21797 (__STDC_WANT_IEC_60559_TYPES_EXT__): Define before including
21798 headers.
21799
21800 * math/gen-tgmath-tests.py (Type.init_types): Pass suffix argument
21801 for combinations of long double with _Float64 and _Float64x.
21802
21803 * bits/libm-simd-decl-stubs.h (__DECL_SIMD_cosf16): New macro.
21804 (__DECL_SIMD_cosf32): Likewise.
21805 (__DECL_SIMD_cosf64): Likewise.
21806 (__DECL_SIMD_cosf32x): Likewise.
21807 (__DECL_SIMD_cosf64x): Likewise.
21808 (__DECL_SIMD_cosf128x): Likewise.
21809 (__DECL_SIMD_sinf16): Likewise.
21810 (__DECL_SIMD_sinf32): Likewise.
21811 (__DECL_SIMD_sinf64): Likewise.
21812 (__DECL_SIMD_sinf32x): Likewise.
21813 (__DECL_SIMD_sinf64x): Likewise.
21814 (__DECL_SIMD_sinf128x): Likewise.
21815 (__DECL_SIMD_sincosf16): Likewise.
21816 (__DECL_SIMD_sincosf32): Likewise.
21817 (__DECL_SIMD_sincosf64): Likewise.
21818 (__DECL_SIMD_sincosf32x): Likewise.
21819 (__DECL_SIMD_sincosf64x): Likewise.
21820 (__DECL_SIMD_sincosf128x): Likewise.
21821 (__DECL_SIMD_logf16): Likewise.
21822 (__DECL_SIMD_logf32): Likewise.
21823 (__DECL_SIMD_logf64): Likewise.
21824 (__DECL_SIMD_logf32x): Likewise.
21825 (__DECL_SIMD_logf64x): Likewise.
21826 (__DECL_SIMD_logf128x): Likewise.
21827 (__DECL_SIMD_expf16): Likewise.
21828 (__DECL_SIMD_expf32): Likewise.
21829 (__DECL_SIMD_expf64): Likewise.
21830 (__DECL_SIMD_expf32x): Likewise.
21831 (__DECL_SIMD_expf64x): Likewise.
21832 (__DECL_SIMD_expf128x): Likewise.
21833 (__DECL_SIMD_powf16): Likewise.
21834 (__DECL_SIMD_powf32): Likewise.
21835 (__DECL_SIMD_powf64): Likewise.
21836 (__DECL_SIMD_powf32x): Likewise.
21837 (__DECL_SIMD_powf64x): Likewise.
21838 (__DECL_SIMD_powf128x): Likewise.
21839
21840 * stdlib/Versions (libc): Move entries for wcstof128 and
21841 wcstof128_l to ....
21842 * wcsmbs/Versions (libc): ... here.
21843 Include <float128-abi.h>.
21844
21845 2017-11-24 Florian Weimer <fweimer@redhat.com>
21846
21847 * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21848 bits/mman-shared.h.
21849 * sysdeps/unix/sysv/linux/bits/mman-linux.h: Include
21850 <bits/mman-shared.h>.
21851 (MFD_CLOEXEC, MFD_ALLOW_SEALING, MFD_HUGETLB, memfd_create): Move
21852 to ...
21853 * sysdeps/unix/sysv/linux/bits/mman-shared.h: ... this new file.
21854 Add #ifndef guard for the MFD_* constants based on MFD_CLOEXEC.
21855 * sysdeps/unix/sysv/linux/hppa/bits/mman.h: Include
21856 <bits/mman-shared.h>.
21857
21858 2017-11-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
21859
21860 [BZ #22457]
21861 * sysdeps/posix/preadv_common.c (PREADV): Use mmap/munmap instead of
21862 posix_memalign/free.
21863 * sysdeps/posix/pwritev_common.c (PWRITEV): Likewise.
21864
21865 2017-11-22 Mike FABIAN <mfabian@redhat.com>
21866
21867 [BZ #22469]
21868 * localedata/locales/pl_PL (LC_COLLATE): Use “copy "iso14651_t1"”
21869 and implement the collation rules for pl from CLDR on top of that.
21870 * Makefile: Add pl_PL.UTF-8 to test-input and to the list
21871 of locales to be built for testing.
21872 * pl_PL.UTF-8.in: New file with test data to test the Polish sorting.
21873
21874 2017-11-23 Joseph Myers <joseph@codesourcery.com>
21875
21876 * sysdeps/ia64/fpu/libm-symbols.h: Include <libm-alias-ldouble.h>.
21877 * sysdeps/ia64/fpu/e_acoshl.S (acoshl): Use
21878 libm_alias_ldouble_other.
21879 * sysdeps/ia64/fpu/e_acosl.S (acosl): Likewise.
21880 * sysdeps/ia64/fpu/e_asinl.S (asinl): Likewise.
21881 * sysdeps/ia64/fpu/e_atanhl.S (atanhl): Likewise.
21882 * sysdeps/ia64/fpu/e_coshl.S (coshl): Likewise.
21883 * sysdeps/ia64/fpu/e_exp10l.S (exp10l): Likewise.
21884 * sysdeps/ia64/fpu/e_exp2l.S (exp2l): Likewise.
21885 * sysdeps/ia64/fpu/e_fmodl.S (fmodl): Likewise.
21886 * sysdeps/ia64/fpu/e_hypotl.S (hypotl): Likewise.
21887 * sysdeps/ia64/fpu/e_lgammal_r.c (lgammal_r): Define using
21888 libm_alias_ldouble_r.
21889 * sysdeps/ia64/fpu/e_log2l.S (log2l): Use
21890 libm_alias_ldouble_other.
21891 * sysdeps/ia64/fpu/e_logl.S (logl): Likewise.
21892 (log10l): Likewise.
21893 * sysdeps/ia64/fpu/e_powl.S (powl): Likewise.
21894 * sysdeps/ia64/fpu/e_remainderl.S (remainderl): Likewise.
21895 * sysdeps/ia64/fpu/e_sinhl.S (sinhl): Likewise.
21896 * sysdeps/ia64/fpu/e_sqrtl.S (sqrtl): Likewise.
21897 * sysdeps/ia64/fpu/libm_sincosl.S (sincosl): Likewise.
21898 * sysdeps/ia64/fpu/s_asinhl.S (asinhl): Likewise.
21899 * sysdeps/ia64/fpu/s_atanl.S (atanl): Likewise.
21900 (atan2l): Likewise.
21901 * sysdeps/ia64/fpu/s_cbrtl.S (cbrtl): Likewise.
21902 * sysdeps/ia64/fpu/s_ceill.S (ceill): Likewise.
21903 * sysdeps/ia64/fpu/s_copysign.S (copysignl): Define using
21904 libm_alias_ldouble.
21905 * sysdeps/ia64/fpu/s_cosl.S (sinl): Use libm_alias_ldouble_other.
21906 (cosl): Likewise.
21907 * sysdeps/ia64/fpu/s_erfcl.S (erfcl): Likewise.
21908 * sysdeps/ia64/fpu/s_erfl.S (erfl): Likewise.
21909 * sysdeps/ia64/fpu/s_expm1l.S (expm1l): Likewise.
21910 (expl): Likewise.
21911 * sysdeps/ia64/fpu/s_fabsl.S (fabsl): Likewise.
21912 * sysdeps/ia64/fpu/s_fdiml.S (fdiml): Likewise.
21913 * sysdeps/ia64/fpu/s_floorl.S (floorl): Likewise.
21914 * sysdeps/ia64/fpu/s_fmal.S (fmal): Likewise.
21915 * sysdeps/ia64/fpu/s_fmaxl.S (fmaxl): Likewise.
21916 * sysdeps/ia64/fpu/s_frexpl.c (frexpl): Likewise.
21917 * sysdeps/ia64/fpu/s_ldexpl.c (ldexpl): Likewise.
21918 * sysdeps/ia64/fpu/s_log1pl.S (log1pl): Likewise.
21919 * sysdeps/ia64/fpu/s_logbl.S (logbl): Likewise.
21920 * sysdeps/ia64/fpu/s_modfl.S (modfl): Likewise.
21921 * sysdeps/ia64/fpu/s_nearbyintl.S (nearbyintl): Define using
21922 libm_alias_ldouble.
21923 * sysdeps/ia64/fpu/s_nextafterl.S (nextafterl): Use
21924 libm_alias_ldouble_other.
21925 * sysdeps/ia64/fpu/s_rintl.S (rintl): Likewise.
21926 * sysdeps/ia64/fpu/s_roundl.S (roundl): Likewise.
21927 * sysdeps/ia64/fpu/s_scalbnl.c (scalbnl): Define using
21928 libm_alias_ldouble.
21929 * sysdeps/ia64/fpu/s_tanhl.S (tanhl): Use
21930 libm_alias_ldouble_other.
21931 * sysdeps/ia64/fpu/s_tanl.S (tanl): Likewise.
21932 * sysdeps/ia64/fpu/s_truncl.S (truncl): Likewise.
21933 * sysdeps/ia64/fpu/w_lgammal_main.c
21934 [BUILD_LGAMMA && !USE_AS_COMPAT] (lgammal): Likewise.
21935 * sysdeps/ia64/fpu/w_tgammal_compat.S (tgammal): Likewise.
21936
21937 2017-11-23 Florian Weimer <fweimer@redhat.com>
21938
21939 * malloc/malloc.c (tcache_thread_shutdown): Rename from
21940 tcache_thread_freeres. Define for USE_TCACHE and !USE_TCACHE
21941 alike. Remove freeres marker.
21942 * malloc/arena.c (arena_thread_freeres): Call
21943 tcache_thread_shutdown.
21944
21945 2017-11-23 Florian Weimer <fweimer@redhat.com>
21946
21947 [BZ #22459]
21948 Export nscd hash function as __nss_hash.
21949 * include/nss.h (__nss_hash): Declare.
21950 * nis/nis_hash.c (__nis_hash): Call __nss_hash. Turn into compat
21951 symbol.
21952 * nscd/Makefile (aux, nscd-modules): Remove nscd_hash.
21953 * nscd/cache.c (cache_search, cache_add): Call __nss_hash instead
21954 of __nscd_hash.
21955 * nscd/nscd_helper.c (__nscd_cache_search): Likewise.
21956 * nscd/nscd_hash.h, nscd/nscd_hash.c: Remove files.
21957 * nss/Makefiles (routines): Add nss_hash.
21958 * nss/Versions (GLIBC_PRIVATE): Export __nss_hash.
21959 * nss/nss_hash.c: Rename from nis/nis_hash.c.
21960 (__nss_hash): Rename from __nis_hash. Define hidden alias.
21961 * nis/rpcsvc/nislib.h (__nis_hash): Remove declaration.
21962
21963 2017-11-23 Florian Weimer <fweimer@redhat.com>
21964
21965 [BZ #22478]
21966 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Retry on EINTR.
21967 Return error code, not -1.
21968 * signal/tst-sigwait-eintr.c: New file.
21969 * signal/Makefile (tests): Add tst-sigwait-eintr.
21970
21971 2017-11-23 Florian Weimer <fweimer@redhat.com>
21972
21973 Linux: Add memfd_create system call wrapper
21974 * sysdeps/unix/sysv/linux/Makefile [misc] (tests): Add
21975 tst-memfd_create.
21976 * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_GNU]
21977 (MFD_CLOEXEC, MFD_ALLOW_SEALING): Define.
21978 [__USE_GNU] (memfd_create): Declare.
21979 * sysdeps/unix/sysv/linux/Versions (GLIBC_2.27): Add memfd_create.
21980 * sysdeps/unix/sysv/linux/syscalls.list (memfd_create): Add.
21981 * sysdeps/unix/sysv/linux/tst-memfd_create.c: New file.
21982 * sysdeps/unix/sysv/linux/**.abilist: Update.
21983 * manual/llio.texi (Memory-mapped I/O): Document memfd_create.
21984
21985 2017-11-22 Joseph Myers <joseph@codesourcery.com>
21986
21987 * localedata/gen-locale.sh: Fix typo in variable name.
21988
21989 * resolv/res_debug.c (p_secstodate): Condition definition on
21990 [SHLIB_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]. Define
21991 directly as __p_secstodate, and as a compat symbol. Do not use
21992 libresolv_hidden_def.
21993 * resolv/resolv.h (p_secstodate): Remove macro and function
21994 declaration.
21995 * resolv/ns_print.c (ns_sprintrrf): Print times with %lu, not
21996 using p_secstodate.
21997 * include/resolv.h (__p_secstodate): Do not use
21998 libresolv_hidden_proto.
21999 * resolv/Makefile (tests): Move tst-p_secstodate to ....
22000 (tests-internal): ... here.
22001 * resolv/tst-p_secstodate.c: Include <shlib-compat.h>. Condition
22002 all contents on [TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)]
22003 and declare and use __p_secstodate and use compat_symbol_reference
22004 in that case.
22005 [!TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)] (do_test): Add
22006 implementation returning 77.
22007
22008 [BZ #22463]
22009 * resolv/res_debug.c: Include <libc-diag.h>.
22010 (p_secstodate): Assert time_t at least as wide as u_long. On
22011 overflow, use integer seconds since the epoch as output, or use
22012 "<overflow>" as output and set errno to EOVERFLOW if integer
22013 seconds since the epoch would be 14 or more characters.
22014 (p_secstodate) [__GNUC_PREREQ (7, 0)]: Disable -Wformat-overflow=
22015 for sprintf call.
22016 * resolv/tst-p_secstodate.c: New file.
22017 * resolv/Makefile (tests): Add tst-p_secstodate.
22018 ($(objpfx)tst-p_secstodate): Depend on $(objpfx)libresolv.so.
22019
22020 * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Remove file.
22021 * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
22022 * sysdeps/sparc/sparc64/soft-fp/s_scalbnl.c: Likewise.
22023
22024 2017-11-22 Paul Eggert <eggert@cs.ucla.edu>
22025
22026 * posix/regcomp.c (init_word_char): Add comments.
22027
22028 2017-11-22 Joseph Myers <joseph@codesourcery.com>
22029
22030 [BZ #22447]
22031 * sysdeps/unix/getlogin_r.c (__getlogin_r): Use __strnlen not
22032 strlen to compute length of ut_user and set trailing NUL byte of
22033 result explicitly.
22034
22035 2017-11-21 Mike FABIAN <mfabian@redhat.com>
22036
22037 [BZ #15537]
22038 * localedata/locales/lv_LV (LC_COLLATE): Fix collation by
22039 using “copy "iso14651_t1"” and then implementing the
22040 collation rules for lv from CLDR on top of that.
22041 * Makefile: Add lv_LV.UTF-8 to test-input and to the list
22042 of locales to be built for testing.
22043 * lv_LV.UTF-8.in: New file with test data to test the Latvian
22044 sorting.
22045
22046 2017-11-21 Joseph Myers <joseph@codesourcery.com>
22047
22048 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22049 [__USE_MISC] (MADV_SPACEAVAIL): Remove macro.
22050 [__USE_MISC] (MADV_VPS_PURGE): Likewise.
22051 [__USE_MISC] (MADV_VPS_INHERIT): Likewise.
22052 [__USE_MISC] (MADV_HWPOISON): New macro.
22053 [__USE_MISC] (MADV_SOFT_OFFLINE): Likewise.
22054
22055 2017-11-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22056
22057 * nptl/pthreadP.h (ASSERT_PTHREAD_INTERNAL_SIZE): Add workarond for
22058 -Wmissing-braces on GCC 4.9.
22059
22060 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22061
22062 * sysdeps/s390/s390-64/start.S (_start): Add cfi information for r14.
22063 * sysdeps/s390/s390-32/start.S (_start): Likewise
22064 * sysdeps/unix/sysv/linux/s390/s390-64/clone.S
22065 (thread_start): Likewise.
22066 * sysdeps/unix/sysv/linux/s390/s390-32/clone.S
22067 (thread_start): Likewise.
22068 * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S
22069 (__makecontext_ret): Likewise.
22070 * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S
22071 (__makecontext_ret): Likewise.
22072
22073 2017-11-21 Stefan Liebler <stli@linux.vnet.ibm.com>
22074
22075 * include/wchar.h (__wcsnlen, __wcscat, __wcsncpy, __wcpncpy,
22076 __wcschrnul): Remove attribute_hidden.
22077
22078 2017-11-20 Paul Eggert <eggert@cs.ucla.edu>
22079
22080 regex: don't assume uint64_t or uint32_t
22081 This avoids -Werror=overflow errors for 32-bit systems in
22082 the 64-bit case. Problem reported by Joseph Myers in:
22083 https://sourceware.org/ml/libc-alpha/2017-11/msg00694.html
22084 Also, when this code is used in Gnulib it ports to platforms
22085 that lack uint64_t and uint32_t. The C standard doesn't guarantee
22086 them, and on some 32-bit compilers there is no uint64_t.
22087 Problem reported by Gianluigi Tiesi in:
22088 http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html
22089 * posix/regcomp.c (init_word_char): Don't assume that the types
22090 uint64_t and uint32_t exist. Adapted from Gnulib patch
22091 2012-05-27T06:40:00!eggert@cs.ucla.edu. See:
22092 https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=252b52457da7887667c036d18cc5169777615bb0
22093
22094 2017-11-20 Siddhesh Poyarekar <siddhesh@sourceware.org>
22095
22096 * sysdeps/aarch64/memset-reg.h: New file.
22097 * sysdeps/aarch64/memset.S: Use it.
22098 (__memset): Rename to MEMSET macro.
22099 [ZVA_MACRO]: Use zva_macro.
22100 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines):
22101 Add memset_generic and memset_falkor.
22102 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
22103 (__libc_ifunc_impl_list): Add memset ifuncs.
22104 * sysdeps/aarch64/multiarch/init-arch.h (INIT_ARCH): New
22105 local variable zva_size.
22106 * sysdeps/aarch64/multiarch/memset.c: New file.
22107 * sysdeps/aarch64/multiarch/memset_generic.S: New file.
22108 * sysdeps/aarch64/multiarch/memset_falkor.S: New file.
22109 * sysdeps/aarch64/multiarch/rtld-memset.S: New file.
22110 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c
22111 (DCZID_DZP_MASK): New macro.
22112 (DCZID_BS_MASK): Likewise.
22113 (init_cpu_features): Read and set zva_size.
22114 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h
22115 (struct cpu_features): New member zva_size.
22116
22117 * benchtests/bench-memcpy-walk.c (START_SIZE): Set to 128.
22118 * benchtests/bench-memmove-walk.c (START_SIZE): Likewise.
22119 * benchtests/bench-memset-walk.c (START_SIZE): Likewise.
22120
22121 * benchtests/bench-memcpy-walk.c (do_one_test): Copy only
22122 backwards. Fix timing computation.
22123 * benchtests/bench-memmove-walk.c (do_one_test): Likewise.
22124 * benchtests/bench-memset-walk.c (do_one_test): Walk backwards
22125 on memset by N at a time. Fix timing computation.
22126
22127 2017-11-20 Florian Weimer <fweimer@redhat.com>
22128
22129 * manual/llio.texi (Memory-mapped I/O): Document MAP_HUGETLB,
22130 MADV_HUGEPAGE, MADV_NOHUGEPAGE.
22131
22132 2017-11-19 Florian Weimer <fweimer@redhat.com>
22133
22134 manual: Document mprotect
22135 * manual/memory.texi (Memory Protection): New section.
22136 * manual/llio.texi (Memory-mapped I/O): Remove duplicate
22137 documentation of PROT_* flags and reference the Memory Protection
22138 section instead.
22139
22140 2017-11-19 Florian Weimer <fweimer@redhat.com>
22141
22142 * manual/llio.texi (I/O Primitives): Move preadv, preadv64,
22143 pwritev, pwritev64, preadv2, preadv64v2, pwritev2, pwritev64v2 ...
22144 (Scatter-Gather): ... to here. Remove misleading comment.
22145
22146 2017-11-18 Christian Brauner <christian.brauner@ubuntu.com>
22147
22148 * support/support_become_root.c (setup_uid_gid_mapping): Fix comment
22149 style.
22150
22151 * support/support_become_root.c (setup_uid_gid_mapping): Don't fail
22152 when /proc/<pid>/setgroups does not exist.
22153
22154 2017-11-18 Florian Weimer <fweimer@redhat.com>
22155
22156 * sysdeps/unix/sysv/linux/tst-ttyname.c
22157 (become_root_in_mount_ns): Remove.
22158 (do_in_chroot_1): Call support_enter_mount_namespace.
22159 (do_in_chroot_2): Likewise.
22160 (do_test): Call support_become_root early.
22161
22162 2017-11-18 Florian Weimer <fweimer@redhat.com>
22163
22164 * support/namespace.h (support_enter_mount_namespace): Declare.
22165 * support/support_enter_mount_namespace.c: New file.
22166 * support/Makefile (libsupport-routines): Add
22167 support_enter_mount_namespace.
22168
22169 2017-11-18 Florian Weimer <fweimer@redhat.com>
22170
22171 * support/temp_file.c (support_create_temp_directory): Use
22172 test_dir and do not rely on the presence of the XXXXXX suffix.
22173 * support/temp_file.h (support_create_temp_directory): Update
22174 comment.
22175 * support/tst-xreadlink.c (do_test): Adjust.
22176 * support/support_chroot.c (support_chroot_create): Likewise.
22177
22178 2017-11-17 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
22179
22180 * sysdeps/powerpc/bits/hwcap.h (PPC_FEATURE2_HTM_NO_SUSPEND): New
22181 macro.
22182 * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Add
22183 htm-no-suspend.
22184
22185 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22186
22187 * sysdeps/x86_64/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22188 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22189 * sysdeps/x86_64/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22190 (ceill): Define using libm_alias_ldouble.
22191 * sysdeps/x86_64/fpu/s_copysignl.S: Include
22192 <libm-alias-ldouble.h>.
22193 (copysignl): Define using libm_alias_ldouble.
22194 * sysdeps/x86_64/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22195 (fabsl): Define using libm_alias_ldouble.
22196 * sysdeps/x86_64/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22197 (floorl): Define using libm_alias_ldouble.
22198 * sysdeps/x86_64/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22199 (fmaxl): Define using libm_alias_ldouble.
22200 * sysdeps/x86_64/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22201 (fminl): Define using libm_alias_ldouble.
22202 * sysdeps/x86_64/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22203 (llrintl): Define using libm_alias_ldouble.
22204 (lrintl): Likewise.
22205 * sysdeps/x86_64/fpu/s_nearbyintl.S: Include
22206 <libm-alias-ldouble.h>.
22207 (nearbyintl): Define using libm_alias_ldouble.
22208 * sysdeps/x86_64/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22209 (truncl): Define using libm_alias_ldouble.
22210 * sysdeps/x86_64/x32/fpu/s_lrintl.S: Include
22211 <libm-alias-ldouble.h>.
22212 (lrintl): Define using libm_alias_ldouble.
22213
22214 * sysdeps/i386/fpu/e_expl.S: Include <libm-alias-ldouble.h>.
22215 [USE_AS_EXPM1L] (expm1l): Define using libm_alias_ldouble.
22216 * sysdeps/i386/fpu/s_asinhl.S: Include <libm-alias-ldouble.h>.
22217 (asinhl): Define using libm_alias_ldouble.
22218 * sysdeps/i386/fpu/s_atanl.c: Include <libm-alias-ldouble.h>.
22219 (atanl): Define using libm_alias_ldouble.
22220 * sysdeps/i386/fpu/s_cbrtl.S: Include <libm-alias-ldouble.h>.
22221 (cbrtl): Define using libm_alias_ldouble.
22222 * sysdeps/i386/fpu/s_ceill.S: Include <libm-alias-ldouble.h>.
22223 (ceill): Define using libm_alias_ldouble.
22224 * sysdeps/i386/fpu/s_copysignl.S: Include <libm-alias-ldouble.h>.
22225 (copysignl): Define using libm_alias_ldouble.
22226 * sysdeps/i386/fpu/s_fabsl.S: Include <libm-alias-ldouble.h>.
22227 (fabsl): Define using libm_alias_ldouble.
22228 * sysdeps/i386/fpu/s_floorl.S: Include <libm-alias-ldouble.h>.
22229 (floorl): Define using libm_alias_ldouble.
22230 * sysdeps/i386/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22231 (fmaxl): Define using libm_alias_ldouble.
22232 * sysdeps/i386/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22233 (fminl): Define using libm_alias_ldouble.
22234 * sysdeps/i386/fpu/s_frexpl.S: Include <libm-alias-ldouble.h>.
22235 (frexpl): Define using libm_alias_ldouble.
22236 * sysdeps/i386/fpu/s_llrintl.S: Include <libm-alias-ldouble.h>.
22237 (llrintl): Define using libm_alias_ldouble.
22238 * sysdeps/i386/fpu/s_logbl.c: Include <libm-alias-ldouble.h>.
22239 (logbl): Define using libm_alias_ldouble.
22240 * sysdeps/i386/fpu/s_lrintl.S: Include <libm-alias-ldouble.h>.
22241 (lrintl): Define using libm_alias_ldouble.
22242 * sysdeps/i386/fpu/s_nearbyintl.S: Include <libm-alias-ldouble.h>.
22243 (nearbyintl): Define using libm_alias_ldouble.
22244 * sysdeps/i386/fpu/s_nextafterl.c: Include <libm-alias-ldouble.h>.
22245 (nextafterl): Define using libm_alias_ldouble.
22246 * sysdeps/i386/fpu/s_remquol.S: Include <libm-alias-ldouble.h>.
22247 (remquol): Define using libm_alias_ldouble.
22248 * sysdeps/i386/fpu/s_rintl.c: Include <libm-alias-ldouble.h>.
22249 (rintl): Define using libm_alias_ldouble.
22250 * sysdeps/i386/fpu/s_truncl.S: Include <libm-alias-ldouble.h>.
22251 (truncl): Define using libm_alias_ldouble.
22252 * sysdeps/i386/i686/fpu/s_fmaxl.S: Include <libm-alias-ldouble.h>.
22253 (fmaxl): Define using libm_alias_ldouble.
22254 * sysdeps/i386/i686/fpu/s_fminl.S: Include <libm-alias-ldouble.h>.
22255 (fminl): Define using libm_alias_ldouble.
22256
22257 * bits/floatn-common.h [!__ASSEMBLER]: Disable everything related
22258 to C syntax instead of availability and properties of types.
22259 * bits/floatn.h [!__ASSEMBLER]: Likewise.
22260 * sysdeps/ia64/bits/floatn.h [!__ASSEMBLER]: Likewise.
22261 * sysdeps/ieee754/ldbl-128/bits/floatn.h [!__ASSEMBLER]: Likewise.
22262 * sysdeps/mips/ieee754/bits/floatn.h [!__ASSEMBLER]: Likewise.
22263 * sysdeps/powerpc/bits/floatn.h [!__ASSEMBLER]: Likewise.
22264 * sysdeps/x86/bits/floatn.h [!__ASSEMBLER]: Likewise.
22265
22266 2017-11-17 Florian Weimer <fweimer@redhat.com>
22267
22268 support_become_root: Enable file creation in namespaces.
22269 * support/support_become_root.c (setup_mapping): New function.
22270 (support_become_root): Call it.
22271
22272 2017-11-17 Joseph Myers <joseph@codesourcery.com>
22273
22274 * sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h (HWCAP_DCPOP): New
22275 macro.
22276
22277 2017-11-16 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22278
22279 * sysdeps/aarch64/fpu/Makefile (CFLAGS-s_fmax.c, CFLAGS-s_fmaxf.c,
22280 CFLAGS-s_fmin.c, CFLAGS-s_fminf.c): New rule: add -ffinite-math-only.
22281
22282 2017-11-16 Joseph Myers <joseph@codesourcery.com>
22283
22284 * sysdeps/unix/sysv/linux/net/if_arp.h (ARPHRD_RAWIP): New macro.
22285
22286 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
22287 version to 4.14.
22288
22289 2017-11-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
22290
22291 * INSTALL: Fix botched up regeneration.
22292
22293 * NEWS: Update sourceare link to https.
22294 * configure.ac: Likewise.
22295 * crypt/md5test-giant.c: Likewise.
22296 * dlfcn/bug-atexit1.c: Likewise.
22297 * dlfcn/bug-atexit2.c: Likewise.
22298 * localedata/README: Likewise.
22299 * malloc/tst-mallocfork.c: Likewise.
22300 * manual/install.texi: Likewise.
22301 * nptl/tst-pthread-getattr.c: Likewise.
22302 * stdio-common/tst-fgets.c: Likewise.
22303 * stdio-common/tst-fwrite.c: Likewise.
22304 * sunrpc/Makefile: Likewise.
22305 * sysdeps/arm/armv7/multiarch/memcpy_impl.S: Likewise.
22306 * wcsmbs/tst-mbrtowc2.c: Likewise.
22307 * configure: Regenerate.
22308 * INSTALL: Regenerate.
22309
22310 2017-11-15 Martin Sebor <msebor@redhat.com>
22311
22312 * misc/sys/cdefs.h (__attribute_nonstring__): New macro.
22313 * sysdeps/gnu/bits/utmp.h (struct utmp): Use it.
22314 * sysdeps/unix/sysv/linux/s390/bits/utmp.h (struct utmp): Same.
22315
22316 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22317
22318 [BZ #22145]
22319 * sysdeps/unix/sysv/linux/tst-ttyname.c: New file.
22320 * sysdeps/unix/sysv/linux/Makefile: Add tst-ttyname to tests.
22321
22322 [BZ #22145]
22323 * sysdeps/unix/sysv/linux/ttyname.c (ttyname):
22324 Defer is_pty check until end of the function.
22325 * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
22326
22327 [BZ #22145]
22328 * sysdeps/unix/sysv/linux/ttyname.h (is_mytty): New function.
22329 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Call is_mytty.
22330 (ttyname): Likewise.
22331 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
22332 (__ttyname_r): Likewise.
22333
22334 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Change return type from
22335 int to bool.
22336
22337 * sysdeps/unix/sysv/linux/ttyname.h (is_pty): Update doc reference.
22338
22339 * manual/terminal.texi (Is It a Terminal):
22340 Mention ENODEV for ttyname and ttyname_r.
22341
22342 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22343
22344 * sysdeps/unix/sysv/linux/bits/socket.h (MSG_ZEROCOPY): New enum
22345 constant and macro.
22346
22347 * sysdeps/unix/sysv/linux/bits/mman-linux.h
22348 [__USE_MISC] (MADV_WIPEONFORK): New macro.
22349 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22350 * sysdeps/unix/sysv/linux/hppa/bits/mman.h
22351 [__USE_MISC] (MADV_WIPEONFORK): Likewise.
22352 [__USE_MISC] (MADV_KEEPONFORK): Likewise.
22353
22354 2017-11-15 Adhemerval Zanella <adhemerval.zanella@linaro.org>
22355
22356 * signal/sigrelse.c (sigrelse): Optimize implementation.
22357
22358 * sysdeps/posix/sigpause.c (do_sigpause): Remove.
22359 (__sigpause): Rely on __sigsuspend to implement single thread
22360 optimization. Add LIBC_CANCEL_HANDLED for cancellation marking.
22361
22362 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22363
22364 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
22365 kernel version to 4.14.
22366
22367 2017-11-15 Steve Ellcey <sellcey@cavium.com>
22368
22369 [BZ #22442]
22370 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex):
22371 Check if ifname is too long.
22372
22373 2017-11-15 Luke Shumaker <lukeshu@parabola.nu>
22374
22375 * sysdeps/unix/sysv/linux/epoll_wait.c: Include <sysdep-cancel.h>.
22376
22377 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22378
22379 * localedata/locales/ka_GE (LC_MESSAGES): Add “X” back to yesexpr,
22380 was accidentally lost.
22381
22382 2017-11-15 Mike FABIAN <mfabian@redhat.com>
22383
22384 * localedata/locales/az_IR: Add standard copyright header.
22385
22386 2017-11-15 Florian Weimer <fweimer@redhat.com>
22387
22388 [BZ #22439]
22389 * malloc/malloc.c (__malloc_info): Count all heaps in an arena,
22390 not just the top one. Output a new "subheaps" statistic.
22391
22392 2017-11-15 Florian Weimer <fweimer@redhat.com>
22393
22394 [BZ #22408]
22395 * malloc/malloc.c (__malloc_info): Obtain arena heap statistics
22396 under the per-arena lock.
22397 * malloc/Makefile (tests): Add tst-malloc_info.
22398 (tst-malloc_info): Link with libpthread.
22399 * malloc/tst-malloc_info.c: New file.
22400
22401 2017-11-15 Joseph Myers <joseph@codesourcery.com>
22402
22403 [BZ #21660]
22404 * math/tgmath.h (__HAVE_BUILTIN_TGMATH): New macro.
22405 [__HAVE_BUILTIN_TGMATH] (__TG_F16_ARG): Likewise.
22406 [__HAVE_BUILTIN_TGMATH] (__TG_F32_ARG): Likewise.
22407 [__HAVE_BUILTIN_TGMATH] (__TG_F64_ARG): Likewise.
22408 [__HAVE_BUILTIN_TGMATH] (__TG_F128_ARG): Likewise.
22409 [__HAVE_BUILTIN_TGMATH] (__TG_F32X_ARG): Likewise.
22410 [__HAVE_BUILTIN_TGMATH] (__TG_F64X_ARG): Likewise.
22411 [__HAVE_BUILTIN_TGMATH] (__TG_F128X_ARG): Likewise.
22412 [__HAVE_BUILTIN_TGMATH] (__TGMATH_FUNCS): Likewise.
22413 [__HAVE_BUILTIN_TGMATH] (__TGMATH_RCFUNCS): Likewise.
22414 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1): Likewise.
22415 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2): Likewise.
22416 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2STD): Likewise.
22417 [__HAVE_BUILTIN_TGMATH] (__TGMATH_3): Likewise.
22418 [__HAVE_BUILTIN_TGMATH] (__TGMATH_1C): Likewise.
22419 [__HAVE_BUILTIN_TGMATH] (__TGMATH_2C): Likewise.
22420 (__tgml): Make conditional on [!__HAVE_BUILTIN_TGMATH].
22421 (__floating_type): Likewise.
22422 (__real_integer_type): Likewise.
22423 (__complex_integer_type): Likewise.
22424 (__expr_is_real): Likewise.
22425 (__tgmath_real_type_sub): Likewise.
22426 (__tgmath_real_type): Likewise.
22427 (__tgmath_complex_type_sub): Likewise.
22428 (__tgmath_complex_type): Likewise.
22429 (__TGMATH_F128): Likewise.
22430 (__TGMATH_CF128): Likewise.
22431 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_ONLY): Define using
22432 new macros.
22433 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
22434 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_ONLY):
22435 Likewise.
22436 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_FIRST_REAL_STD_ONLY):
22437 Likewise.
22438 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_ONLY): Likewise.
22439 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
22440 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
22441 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY):
22442 Likewise.
22443 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_REAL_ONLY): Likewise.
22444 [__HAVE_BUILTIN_TGMATH] (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY):
22445 Likewise.
22446 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG): Likewise.
22447 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_IMAG): Likewise.
22448 [__HAVE_BUILTIN_TGMATH] (__TGMATH_UNARY_REAL_IMAG_RET_REAL):
22449 Likewise.
22450 [__HAVE_BUILTIN_TGMATH] (__TGMATH_BINARY_REAL_IMAG): Likewise.
22451 (__TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME): New macro.
22452 (carg): Use __TGMATH_UNARY_REAL_IMAG_RET_REAL_SAME.
22453 (cimag): Likewise.
22454 (creal): Likewise.
22455
22456 2017-11-14 Joseph Myers <joseph@codesourcery.com>
22457
22458 * string/tester.c (test_stpncpy): Disable -Wstringop-truncation
22459 for stpncpy calls for GCC 8.
22460 (test_strncat): Disable -Wstringop-truncation warning for strncat
22461 calls for GCC 8. Disable -Wstringop-overflow= warning for one
22462 strncat call for GCC 7.
22463 (test_strncpy): Disable -Wstringop-truncation warning for strncpy
22464 calls for GCC 8.
22465 (test_memcmp): Use memcpy instead of strncpy for calls not copying
22466 trailing NUL.
22467
22468 * string/bug-strncat1.c: Include <libc-diag.h>.
22469 (main): Disable -Wstringop-truncation for strncat call for GCC 8.
22470
22471 2017-11-13 Claude Paroz <claude@2xlibre.net>
22472
22473 [BZ #22387]
22474 * localedata/locales/aa_DJ: Improved readibility by replacing
22475 <Uxxxx> sequences in the ASCII printable range by their ASCII
22476 character equivalents.
22477 * localedata/locales/aa_ER: Likewise.
22478 * localedata/locales/aa_ER@saaho: Likewise.
22479 * localedata/locales/aa_ET: Likewise.
22480 * localedata/locales/af_ZA: Likewise.
22481 * localedata/locales/agr_PE: Likewise.
22482 * localedata/locales/ak_GH: Likewise.
22483 * localedata/locales/am_ET: Likewise.
22484 * localedata/locales/anp_IN: Likewise.
22485 * localedata/locales/ar_AE: Likewise.
22486 * localedata/locales/ar_BH: Likewise.
22487 * localedata/locales/ar_DZ: Likewise.
22488 * localedata/locales/ar_EG: Likewise.
22489 * localedata/locales/ar_IN: Likewise.
22490 * localedata/locales/ar_IQ: Likewise.
22491 * localedata/locales/ar_JO: Likewise.
22492 * localedata/locales/ar_KW: Likewise.
22493 * localedata/locales/ar_LB: Likewise.
22494 * localedata/locales/ar_LY: Likewise.
22495 * localedata/locales/ar_MA: Likewise.
22496 * localedata/locales/ar_OM: Likewise.
22497 * localedata/locales/ar_QA: Likewise.
22498 * localedata/locales/ar_SA: Likewise.
22499 * localedata/locales/ar_SD: Likewise.
22500 * localedata/locales/ar_SS: Likewise.
22501 * localedata/locales/ar_SY: Likewise.
22502 * localedata/locales/ar_TN: Likewise.
22503 * localedata/locales/ar_YE: Likewise.
22504 * localedata/locales/as_IN: Likewise.
22505 * localedata/locales/ast_ES: Likewise.
22506 * localedata/locales/ayc_PE: Likewise.
22507 * localedata/locales/az_AZ: Likewise.
22508 * localedata/locales/az_IR: Likewise.
22509 * localedata/locales/be_BY: Likewise.
22510 * localedata/locales/be_BY@latin: Likewise.
22511 * localedata/locales/bem_ZM: Likewise.
22512 * localedata/locales/ber_DZ: Likewise.
22513 * localedata/locales/ber_MA: Likewise.
22514 * localedata/locales/bg_BG: Likewise.
22515 * localedata/locales/bhb_IN: Likewise.
22516 * localedata/locales/bho_IN: Likewise.
22517 * localedata/locales/bi_VU: Likewise.
22518 * localedata/locales/bn_BD: Likewise.
22519 * localedata/locales/bn_IN: Likewise.
22520 * localedata/locales/bo_CN: Likewise.
22521 * localedata/locales/bo_IN: Likewise.
22522 * localedata/locales/br_FR: Likewise.
22523 * localedata/locales/brx_IN: Likewise.
22524 * localedata/locales/bs_BA: Likewise.
22525 * localedata/locales/byn_ER: Likewise.
22526 * localedata/locales/ca_AD: Likewise.
22527 * localedata/locales/ca_ES: Likewise.
22528 * localedata/locales/ca_FR: Likewise.
22529 * localedata/locales/ca_IT: Likewise.
22530 * localedata/locales/ce_RU: Likewise.
22531 * localedata/locales/chr_US: Likewise.
22532 * localedata/locales/cmn_TW: Likewise.
22533 * localedata/locales/crh_UA: Likewise.
22534 * localedata/locales/cs_CZ: Likewise.
22535 * localedata/locales/csb_PL: Likewise.
22536 * localedata/locales/cv_RU: Likewise.
22537 * localedata/locales/cy_GB: Likewise.
22538 * localedata/locales/da_DK: Likewise.
22539 * localedata/locales/de_AT: Likewise.
22540 * localedata/locales/de_BE: Likewise.
22541 * localedata/locales/de_CH: Likewise.
22542 * localedata/locales/de_DE: Likewise.
22543 * localedata/locales/de_IT: Likewise.
22544 * localedata/locales/de_LI: Likewise.
22545 * localedata/locales/de_LU: Likewise.
22546 * localedata/locales/doi_IN: Likewise.
22547 * localedata/locales/dv_MV: Likewise.
22548 * localedata/locales/dz_BT: Likewise.
22549 * localedata/locales/el_CY: Likewise.
22550 * localedata/locales/el_GR: Likewise.
22551 * localedata/locales/en_AG: Likewise.
22552 * localedata/locales/en_AU: Likewise.
22553 * localedata/locales/en_BW: Likewise.
22554 * localedata/locales/en_CA: Likewise.
22555 * localedata/locales/en_DK: Likewise.
22556 * localedata/locales/en_GB: Likewise.
22557 * localedata/locales/en_HK: Likewise.
22558 * localedata/locales/en_IE: Likewise.
22559 * localedata/locales/en_IL: Likewise.
22560 * localedata/locales/en_IN: Likewise.
22561 * localedata/locales/en_NG: Likewise.
22562 * localedata/locales/en_NZ: Likewise.
22563 * localedata/locales/en_PH: Likewise.
22564 * localedata/locales/en_SG: Likewise.
22565 * localedata/locales/en_US: Likewise.
22566 * localedata/locales/en_ZA: Likewise.
22567 * localedata/locales/en_ZM: Likewise.
22568 * localedata/locales/en_ZW: Likewise.
22569 * localedata/locales/eo: Likewise.
22570 * localedata/locales/es_AR: Likewise.
22571 * localedata/locales/es_BO: Likewise.
22572 * localedata/locales/es_CL: Likewise.
22573 * localedata/locales/es_CO: Likewise.
22574 * localedata/locales/es_CR: Likewise.
22575 * localedata/locales/es_CU: Likewise.
22576 * localedata/locales/es_DO: Likewise.
22577 * localedata/locales/es_EC: Likewise.
22578 * localedata/locales/es_ES: Likewise.
22579 * localedata/locales/es_GT: Likewise.
22580 * localedata/locales/es_HN: Likewise.
22581 * localedata/locales/es_MX: Likewise.
22582 * localedata/locales/es_NI: Likewise.
22583 * localedata/locales/es_PA: Likewise.
22584 * localedata/locales/es_PE: Likewise.
22585 * localedata/locales/es_PR: Likewise.
22586 * localedata/locales/es_PY: Likewise.
22587 * localedata/locales/es_SV: Likewise.
22588 * localedata/locales/es_US: Likewise.
22589 * localedata/locales/es_UY: Likewise.
22590 * localedata/locales/es_VE: Likewise.
22591 * localedata/locales/et_EE: Likewise.
22592 * localedata/locales/eu_ES: Likewise.
22593 * localedata/locales/eu_ES@euro: Likewise.
22594 * localedata/locales/fa_IR: Likewise.
22595 * localedata/locales/ff_SN: Likewise.
22596 * localedata/locales/fi_FI: Likewise.
22597 * localedata/locales/fil_PH: Likewise.
22598 * localedata/locales/fo_FO: Likewise.
22599 * localedata/locales/fr_BE: Likewise.
22600 * localedata/locales/fr_CA: Likewise.
22601 * localedata/locales/fr_CH: Likewise.
22602 * localedata/locales/fr_FR: Likewise.
22603 * localedata/locales/fr_LU: Likewise.
22604 * localedata/locales/fur_IT: Likewise.
22605 * localedata/locales/fy_DE: Likewise.
22606 * localedata/locales/fy_NL: Likewise.
22607 * localedata/locales/ga_IE: Likewise.
22608 * localedata/locales/gd_GB: Likewise.
22609 * localedata/locales/gez_ER: Likewise.
22610 * localedata/locales/gez_ET: Likewise.
22611 * localedata/locales/gl_ES: Likewise.
22612 * localedata/locales/gu_IN: Likewise.
22613 * localedata/locales/gv_GB: Likewise.
22614 * localedata/locales/ha_NG: Likewise.
22615 * localedata/locales/hak_TW: Likewise.
22616 * localedata/locales/he_IL: Likewise.
22617 * localedata/locales/hi_IN: Likewise.
22618 * localedata/locales/hif_FJ: Likewise.
22619 * localedata/locales/hne_IN: Likewise.
22620 * localedata/locales/hr_HR: Likewise.
22621 * localedata/locales/hsb_DE: Likewise.
22622 * localedata/locales/ht_HT: Likewise.
22623 * localedata/locales/hu_HU: Likewise.
22624 * localedata/locales/hy_AM: Likewise.
22625 * localedata/locales/i18n: Likewise.
22626 * localedata/locales/ia_FR: Likewise.
22627 * localedata/locales/id_ID: Likewise.
22628 * localedata/locales/ig_NG: Likewise.
22629 * localedata/locales/ik_CA: Likewise.
22630 * localedata/locales/is_IS: Likewise.
22631 * localedata/locales/it_CH: Likewise.
22632 * localedata/locales/it_IT: Likewise.
22633 * localedata/locales/iu_CA: Likewise.
22634 * localedata/locales/ja_JP: Likewise.
22635 * localedata/locales/ka_GE: Likewise.
22636 * localedata/locales/kk_KZ: Likewise.
22637 * localedata/locales/kl_GL: Likewise.
22638 * localedata/locales/kn_IN: Likewise.
22639 * localedata/locales/ko_KR: Likewise.
22640 * localedata/locales/kok_IN: Likewise.
22641 * localedata/locales/ks_IN: Likewise.
22642 * localedata/locales/ks_IN@devanagari: Likewise.
22643 * localedata/locales/ku_TR: Likewise.
22644 * localedata/locales/kw_GB: Likewise.
22645 * localedata/locales/ky_KG: Likewise.
22646 * localedata/locales/lb_LU: Likewise.
22647 * localedata/locales/lg_UG: Likewise.
22648 * localedata/locales/li_BE: Likewise.
22649 * localedata/locales/li_NL: Likewise.
22650 * localedata/locales/lij_IT: Likewise.
22651 * localedata/locales/ln_CD: Likewise.
22652 * localedata/locales/lo_LA: Likewise.
22653 * localedata/locales/lt_LT: Likewise.
22654 * localedata/locales/lv_LV: Likewise.
22655 * localedata/locales/lzh_TW: Likewise.
22656 * localedata/locales/mag_IN: Likewise.
22657 * localedata/locales/mai_IN: Likewise.
22658 * localedata/locales/mg_MG: Likewise.
22659 * localedata/locales/mhr_RU: Likewise.
22660 * localedata/locales/mi_NZ: Likewise.
22661 * localedata/locales/mk_MK: Likewise.
22662 * localedata/locales/ml_IN: Likewise.
22663 * localedata/locales/mn_MN: Likewise.
22664 * localedata/locales/mni_IN: Likewise.
22665 * localedata/locales/mr_IN: Likewise.
22666 * localedata/locales/ms_MY: Likewise.
22667 * localedata/locales/mt_MT: Likewise.
22668 * localedata/locales/my_MM: Likewise.
22669 * localedata/locales/nan_TW: Likewise.
22670 * localedata/locales/nan_TW@latin: Likewise.
22671 * localedata/locales/nb_NO: Likewise.
22672 * localedata/locales/nds_DE: Likewise.
22673 * localedata/locales/nds_NL: Likewise.
22674 * localedata/locales/ne_NP: Likewise.
22675 * localedata/locales/nhn_MX: Likewise.
22676 * localedata/locales/niu_NU: Likewise.
22677 * localedata/locales/niu_NZ: Likewise.
22678 * localedata/locales/nl_AW: Likewise.
22679 * localedata/locales/nl_BE: Likewise.
22680 * localedata/locales/nl_NL: Likewise.
22681 * localedata/locales/nn_NO: Likewise.
22682 * localedata/locales/nr_ZA: Likewise.
22683 * localedata/locales/nso_ZA: Likewise.
22684 * localedata/locales/oc_FR: Likewise.
22685 * localedata/locales/om_ET: Likewise.
22686 * localedata/locales/om_KE: Likewise.
22687 * localedata/locales/or_IN: Likewise.
22688 * localedata/locales/os_RU: Likewise.
22689 * localedata/locales/pa_IN: Likewise.
22690 * localedata/locales/pa_PK: Likewise.
22691 * localedata/locales/pap_AW: Likewise.
22692 * localedata/locales/pap_CW: Likewise.
22693 * localedata/locales/pl_PL: Likewise.
22694 * localedata/locales/ps_AF: Likewise.
22695 * localedata/locales/pt_BR: Likewise.
22696 * localedata/locales/pt_PT: Likewise.
22697 * localedata/locales/quz_PE: Likewise.
22698 * localedata/locales/raj_IN: Likewise.
22699 * localedata/locales/ro_RO: Likewise.
22700 * localedata/locales/ru_RU: Likewise.
22701 * localedata/locales/ru_UA: Likewise.
22702 * localedata/locales/rw_RW: Likewise.
22703 * localedata/locales/sa_IN: Likewise.
22704 * localedata/locales/sat_IN: Likewise.
22705 * localedata/locales/sc_IT: Likewise.
22706 * localedata/locales/sd_IN: Likewise.
22707 * localedata/locales/sd_IN@devanagari: Likewise.
22708 * localedata/locales/se_NO: Likewise.
22709 * localedata/locales/sgs_LT: Likewise.
22710 * localedata/locales/shs_CA: Likewise.
22711 * localedata/locales/si_LK: Likewise.
22712 * localedata/locales/sid_ET: Likewise.
22713 * localedata/locales/sk_SK: Likewise.
22714 * localedata/locales/sl_SI: Likewise.
22715 * localedata/locales/sm_WS: Likewise.
22716 * localedata/locales/so_DJ: Likewise.
22717 * localedata/locales/so_ET: Likewise.
22718 * localedata/locales/so_KE: Likewise.
22719 * localedata/locales/so_SO: Likewise.
22720 * localedata/locales/sq_AL: Likewise.
22721 * localedata/locales/sq_MK: Likewise.
22722 * localedata/locales/sr_ME: Likewise.
22723 * localedata/locales/sr_RS: Likewise.
22724 * localedata/locales/sr_RS@latin: Likewise.
22725 * localedata/locales/ss_ZA: Likewise.
22726 * localedata/locales/st_ZA: Likewise.
22727 * localedata/locales/sv_FI: Likewise.
22728 * localedata/locales/sv_SE: Likewise.
22729 * localedata/locales/sw_KE: Likewise.
22730 * localedata/locales/sw_TZ: Likewise.
22731 * localedata/locales/szl_PL: Likewise.
22732 * localedata/locales/ta_IN: Likewise.
22733 * localedata/locales/ta_LK: Likewise.
22734 * localedata/locales/tcy_IN: Likewise.
22735 * localedata/locales/te_IN: Likewise.
22736 * localedata/locales/tg_TJ: Likewise.
22737 * localedata/locales/th_TH: Likewise.
22738 * localedata/locales/the_NP: Likewise.
22739 * localedata/locales/ti_ER: Likewise.
22740 * localedata/locales/ti_ET: Likewise.
22741 * localedata/locales/tig_ER: Likewise.
22742 * localedata/locales/tk_TM: Likewise.
22743 * localedata/locales/tl_PH: Likewise.
22744 * localedata/locales/tn_ZA: Likewise.
22745 * localedata/locales/to_TO: Likewise.
22746 * localedata/locales/tpi_PG: Likewise.
22747 * localedata/locales/tr_CY: Likewise.
22748 * localedata/locales/tr_TR: Likewise.
22749 * localedata/locales/ts_ZA: Likewise.
22750 * localedata/locales/tt_RU: Likewise.
22751 * localedata/locales/tt_RU@iqtelif: Likewise.
22752 * localedata/locales/ug_CN: Likewise.
22753 * localedata/locales/uk_UA: Likewise.
22754 * localedata/locales/unm_US: Likewise.
22755 * localedata/locales/ur_IN: Likewise.
22756 * localedata/locales/ur_PK: Likewise.
22757 * localedata/locales/uz_UZ: Likewise.
22758 * localedata/locales/uz_UZ@cyrillic: Likewise.
22759 * localedata/locales/ve_ZA: Likewise.
22760 * localedata/locales/vi_VN: Likewise.
22761 * localedata/locales/wa_BE: Likewise.
22762 * localedata/locales/wae_CH: Likewise.
22763 * localedata/locales/wal_ET: Likewise.
22764 * localedata/locales/wo_SN: Likewise.
22765 * localedata/locales/xh_ZA: Likewise.
22766 * localedata/locales/yi_US: Likewise.
22767 * localedata/locales/yo_NG: Likewise.
22768 * localedata/locales/yue_HK: Likewise.
22769 * localedata/locales/yuw_PG: Likewise.
22770 * localedata/locales/zh_CN: Likewise.
22771 * localedata/locales/zh_HK: Likewise.
22772 * localedata/locales/zh_SG: Likewise.
22773 * localedata/locales/zh_TW: Likewise.
22774 * localedata/locales/zu_ZA: Likewise.
22775
22776 2017-11-13 Florian Weimer <fweimer@redhat.com>
22777
22778 * support/next_to_fault.h, support/next_to_fault.c: New files.
22779 * support/Makefile (libsupport-routines): Add next_to_fault.
22780 * resolv/tst-inet_pton.c (struct next_to_fault)
22781 (next_to_fault_allocate, next_to_fault_free): Remove.
22782 (run_one_test): Switch to <support/next_to_fault.h> interfaces.
22783
22784 2017-11-13 H.J. Lu <hongjiu.lu@intel.com>
22785
22786 * elf/dl-support.c: Include <dl-procruntime.c>.
22787 * include/link.h: Include <link_map.h>.
22788 * sysdeps/generic/dl-procruntime.c: New file.
22789 * sysdeps/generic/link_map.h: Likewise.
22790 * sysdeps/generic/ldsodefs.h: Include <dl-procruntime.c> in
22791 the writable ld.so namespace.
22792
22793 2017-11-12 Paul Eggert <eggert@cs.ucla.edu>
22794
22795 timezone: pacify GCC -Wstringop-truncation
22796 Problem reported by Martin Sebor in:
22797 https://sourceware.org/ml/libc-alpha/2017-11/msg00336.html
22798 * timezone/zic.c (writezone): Use memcpy, not strncpy.
22799
22800 2017-11-12 Florian Weimer <fweimer@redhat.com>
22801
22802 * support/Makefile (libsupport-routines): Add xreadlink, xstrndup,
22803 tst-xreadlink.
22804 (tests): Add tst-xreadlink.
22805 * support/support.h (xstrndup): Declare.
22806 * support/xunistd.h (xunlink, xreadlink): Declare.
22807 * support/temp_file.h (support_create_temp_directory): Declare.
22808 * support/temp_file.c (support_create_temp_directory): New function.
22809 * support/support_chroot.c (support_chroot_create): Use it.
22810 * support/xreadlink.c: New file.
22811 * support/xstrndup.c: Likewise.
22812 * support/xunlink.c: Likewise.
22813 * support/tst-xreadlink.c: Likewise.
22814
22815 2017-11-11 John David Anglin <danglin@gcc.gnu.org>
22816
22817 * sysdeps/hppa/fpu/libm-test-ulps: Update clog10_downward ulps.
22818
22819 2017-11-11 Florian Weimer <fweimer@redhat.com>
22820
22821 [BZ #22409]
22822 [BZ #22412]
22823 * resolv/res_comp.c (printable_string, binary_hnok)
22824 (binary_leading_dash): New functions.
22825 (res_hnok): Reimplement using these functions and ns_name_pton.
22826 (res_ownok): Likewise.
22827 (res_mailok): Reimplement using printable_string, ns_name_pton and
22828 binary_hnok.
22829 (res_dnok): Reimplement using printable_string and ns_name_pton.
22830 * resolv/tst-res_hnok.c (tests): Add additional tests.
22831 (LETTERDIGITS, PRINTABLE): Define.
22832 (do_test): Adjust one_char results.
22833
22834 2017-11-11 Florian Weimer <fweimer@redhat.com>
22835
22836 [BZ #22413]
22837 * resolv/ns_name.c (ns_name_pton): Treat trailing backslash as error.
22838 * resolv/tst-ns_name_pton.c (tests): Add trailing backslash tests.
22839
22840 2017-11-11 Florian Weimer <fweimer@redhat.com>
22841
22842 * resolv/tst-ns_name_pton.c: New file.
22843 * resolv/Makefile (tests): Add tst-ns_name_pton.
22844 (tst-ns_name_pton): Link against libresolv.
22845
22846 2017-11-11 Florian Weimer <fweimer@redhat.com>
22847
22848 * resolv/tst-res_hnok.c: New file.
22849 * resolv/Makefile (tests): Add tst-res_hnok.
22850 (tst-res_hnok): Link against libresolv.
22851
22852 2017-11-11 Florian Weimer <fweimer@redhat.com>
22853
22854 * resolv/tst-resolv-network.c: Use test framework instead explicit
22855 main function.
22856
22857 2017-11-09 H.J. Lu <hongjiu.lu@intel.com>
22858
22859 * include/setjmp.h [!_ISOMAC]: Include <stddef.h> and
22860 <jmp_buf-macros.h>.
22861 [!_ISOMAC] (STR_HELPER): New.
22862 [!_ISOMAC] (STR): Likewise.
22863 [!_ISOMAC] (TEST_SIZE): Likewise.
22864 [!_ISOMAC] (TEST_ALIGN): Likewise.
22865 [!_ISOMAC] (TEST_OFFSET): Likewise.
22866 [!_ISOMAC] Add _Static_assert to check sizes, alignments and
22867 field offsets of jmp_buf as well as sigjmp_buf.
22868 * sysdeps/unix/sysv/linux/aarch64/jmp_buf-macros.h: Likewise.
22869 * sysdeps/unix/sysv/linux/alpha/jmp_buf-macros.h: Likewise.
22870 * sysdeps/unix/sysv/linux/arm/jmp_buf-macros.h: Likewise.
22871 * sysdeps/unix/sysv/linux/hppa/jmp_buf-macros.h: Likewise.
22872 * sysdeps/unix/sysv/linux/i386/jmp_buf-macros.h: Likewise.
22873 * sysdeps/unix/sysv/linux/ia64/jmp_buf-macros.h: Likewise.
22874 * sysdeps/unix/sysv/linux/m68k/jmp_buf-macros.h: Likewise.
22875 * sysdeps/unix/sysv/linux/microblaze/jmp_buf-macros.h: Likewise.
22876 * sysdeps/unix/sysv/linux/mips/mips32/jmp_buf-macros.h: Likewise.
22877 * sysdeps/unix/sysv/linux/mips/mips64/n32/jmp_buf-macros.h:
22878 Likewise.
22879 * sysdeps/unix/sysv/linux/mips/mips64/n64/jmp_buf-macros.h:
22880 Likewise.
22881 * sysdeps/unix/sysv/linux/nios2/jmp_buf-macros.h: Likewise.
22882 * sysdeps/unix/sysv/linux/powerpc/powerpc32/jmp_buf-macros.h:
22883 Likewise.
22884 * sysdeps/unix/sysv/linux/powerpc/powerpc64/jmp_buf-macros.h:
22885 Likewise.
22886 * sysdeps/unix/sysv/linux/s390/s390-32/jmp_buf-macros.h: Likewise.
22887 * sysdeps/unix/sysv/linux/s390/s390-64/jmp_buf-macros.h: Likewise.
22888 * sysdeps/unix/sysv/linux/sh/jmp_buf-macros.h: Likewise.
22889 * sysdeps/unix/sysv/linux/sparc/sparc32/jmp_buf-macros.h: Likewise.
22890 * sysdeps/unix/sysv/linux/sparc/sparc64/jmp_buf-macros.h: Likewise.
22891 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/jmp_buf-macros.h:
22892 Likewise.
22893 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/jmp_buf-macros.h:
22894 Likewise.
22895 * sysdeps/unix/sysv/linux/tile/tilepro/jmp_buf-macros.h: Likewise.
22896 * sysdeps/unix/sysv/linux/x86_64/64/jmp_buf-macros.h: Likewise.
22897 * sysdeps/unix/sysv/linux/x86_64/x32/jmp_buf-macros.h: Likewise.
22898
22899 2017-11-07 Joseph Myers <joseph@codesourcery.com>
22900
22901 * include/float.h
22902 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22903 && __HAVE_FLOAT32] (FLT32_MANT_DIG): New macro.
22904 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22905 && __HAVE_FLOAT32] (FLT32_DECIMAL_DIG): Likewise.
22906 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22907 && __HAVE_FLOAT32] (FLT32_DIG): Likewise.
22908 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22909 && __HAVE_FLOAT32] (FLT32_MIN_EXP): Likewise.
22910 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22911 && __HAVE_FLOAT32] (FLT32_MIN_10_EXP): Likewise.
22912 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22913 && __HAVE_FLOAT32] (FLT32_MAX_EXP): Likewise.
22914 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22915 && __HAVE_FLOAT32] (FLT32_MAX_10_EXP): Likewise.
22916 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22917 && __HAVE_FLOAT32] (FLT32_MAX): Likewise.
22918 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22919 && __HAVE_FLOAT32] (FLT32_EPSILON): Likewise.
22920 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22921 && __HAVE_FLOAT32] (FLT32_MIN): Likewise.
22922 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22923 && __HAVE_FLOAT32] (FLT32_TRUE_MIN): Likewise.
22924 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22925 && __HAVE_FLOAT64] (FLT64_MANT_DIG): Likewise.
22926 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22927 && __HAVE_FLOAT64] (FLT64_DECIMAL_DIG): Likewise.
22928 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22929 && __HAVE_FLOAT64] (FLT64_DIG): Likewise.
22930 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22931 && __HAVE_FLOAT64] (FLT64_MIN_EXP): Likewise.
22932 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22933 && __HAVE_FLOAT64] (FLT64_MIN_10_EXP): Likewise.
22934 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22935 && __HAVE_FLOAT64] (FLT64_MAX_EXP): Likewise.
22936 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22937 && __HAVE_FLOAT64] (FLT64_MAX_10_EXP): Likewise.
22938 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22939 && __HAVE_FLOAT64] (FLT64_MAX): Likewise.
22940 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22941 && __HAVE_FLOAT64] (FLT64_EPSILON): Likewise.
22942 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22943 && __HAVE_FLOAT64] (FLT64_MIN): Likewise.
22944 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22945 && __HAVE_FLOAT64] (FLT64_TRUE_MIN): Likewise.
22946 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22947 && __HAVE_FLOAT32X] (FLT32X_MANT_DIG): Likewise.
22948 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22949 && __HAVE_FLOAT32X] (FLT32X_DECIMAL_DIG): Likewise.
22950 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22951 && __HAVE_FLOAT32X] (FLT32X_DIG): Likewise.
22952 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22953 && __HAVE_FLOAT32X] (FLT32X_MIN_EXP): Likewise.
22954 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22955 && __HAVE_FLOAT32X] (FLT32X_MIN_10_EXP): Likewise.
22956 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22957 && __HAVE_FLOAT32X] (FLT32X_MAX_EXP): Likewise.
22958 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22959 && __HAVE_FLOAT32X] (FLT32X_MAX_10_EXP): Likewise.
22960 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22961 && __HAVE_FLOAT32X] (FLT32X_MAX): Likewise.
22962 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22963 && __HAVE_FLOAT32X] (FLT32X_EPSILON): Likewise.
22964 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22965 && __HAVE_FLOAT32X] (FLT32X_MIN): Likewise.
22966 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22967 && __HAVE_FLOAT32X] (FLT32X_TRUE_MIN): Likewise.
22968 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22969 && __HAVE_FLOAT64X] (FLT64X_MANT_DIG): Likewise.
22970 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22971 && __HAVE_FLOAT64X] (FLT64X_DECIMAL_DIG): Likewise.
22972 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22973 && __HAVE_FLOAT64X] (FLT64X_DIG): Likewise.
22974 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22975 && __HAVE_FLOAT64X] (FLT64X_MIN_EXP): Likewise.
22976 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22977 && __HAVE_FLOAT64X] (FLT64X_MIN_10_EXP): Likewise.
22978 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22979 && __HAVE_FLOAT64X] (FLT64X_MAX_EXP): Likewise.
22980 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22981 && __HAVE_FLOAT64X] (FLT64X_MAX_10_EXP): Likewise.
22982 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22983 && __HAVE_FLOAT64X] (FLT64X_MAX): Likewise.
22984 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22985 && __HAVE_FLOAT64X] (FLT64X_EPSILON): Likewise.
22986 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22987 && __HAVE_FLOAT64X] (FLT64X_MIN): Likewise.
22988 [!__GNUC_PREREQ (7, 0) && __GLIBC_USE (IEC_60559_TYPES_EXT)
22989 && __HAVE_FLOAT64X] (FLT64X_TRUE_MIN): Likewise.
22990
22991 * stdlib/tst-strtod.h (F16): New macro.
22992 (F32): Likewise.
22993 (F64): Likewise.
22994 (F32X): Likewise.
22995 (F64X): Likewise.
22996 (F128X): Likewise.
22997 (IF_FLOAT16): Likewise.
22998 (IF_FLOAT32): Likewise.
22999 (IF_FLOAT64): Likewise.
23000 (IF_FLOAT32X): Likewise.
23001 (IF_FLOAT64X): Likewise.
23002 (IF_FLOAT128X): Likewise.
23003 (GEN_TEST_STRTOD_FOREACH): Conditionally call macros for _Float16,
23004 _Float32, _Float64, _Float32x, _Float64x and _Float128x.
23005 (STRTOD_TEST_FOREACH): Likewise.
23006 * stdlib/tst-strtod-round-skeleton.c (CHOOSE_f32): New macro.
23007 (CHOOSE_f64): Likewise.
23008 (CHOOSE_f32x): Likewise.
23009 (CHOOSE_f64x): Likewise.
23010
23011 2017-11-07 Andreas Schwab <schwab@suse.de>
23012
23013 * nptl/Makefile (tests-internal): Remove tst-typesizes.
23014
23015 2017-11-07 Mike FABIAN <mfabian@redhat.com>
23016
23017 [BZ #22403]
23018 * localedata/locales/mfe_MU (LC_TIME): Fix wrong d_fmt, / needs
23019 to be escaped.
23020 * localedata/locales/miq_NI (LC_TIME): Fix wrong d_fmt, / needs
23021 to be escaped.
23022
23023 2017-11-07 Claude Paroz <claude@2xlibre.net>
23024
23025 [BZ #22403]
23026 * localedata/locales/an_ES (LC_TIME): Fix wrong d_fmt, / needs
23027 to be escaped.
23028 * localedata/locales/kab_DZ (LC_TIME): Fix wrong d_fmt, / needs
23029 to be escaped.
23030 * localedata/locales/om_ET (LC_TIME): Fix wrong d_fmt, / needs
23031 to be escaped.
23032
23033 2017-11-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23034
23035 [BZ #22298]
23036 * nptl/allocatestack.c (allocate_stack): Check if
23037 __PTHREAD_MUTEX_HAVE_PREV is non-zero, instead if
23038 __PTHREAD_MUTEX_HAVE_PREV is defined.
23039 * nptl/descr.h (pthread): Likewise.
23040 * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
23041 Likewise.
23042 * nptl/pthread_create.c (START_THREAD_DEFN): Likewise.
23043 * sysdeps/nptl/fork.c (__libc_fork): Likewise.
23044 * sysdeps/nptl/pthread.h (PTHREAD_MUTEX_INITIALIZER): Likewise.
23045 * sysdeps/nptl/bits/thread-shared-types.h
23046 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23047 defines.
23048 (__pthread_internal_list): Check __PTHREAD_MUTEX_USE_UNION instead
23049 of __WORDSIZE for internal layout.
23050 (__pthread_mutex_s): Check __PTHREAD_MUTEX_NUSERS_AFTER_KIND instead
23051 of __WORDSIZE for internal __nusers layout and __PTHREAD_MUTEX_USE_UNION
23052 instead of __WORDSIZE whether to use an union for __spins and __list
23053 fields.
23054 (__PTHREAD_MUTEX_HAVE_PREV): Define also for __PTHREAD_MUTEX_USE_UNION
23055 case.
23056 * sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
23057 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION): New
23058 defines.
23059 * sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
23060 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23061 Likewise.
23062 * sysdeps/arm/nptl/bits/pthreadtypes-arch.h
23063 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23064 Likewise.
23065 * sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
23066 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23067 Likewise.
23068 * sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
23069 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23070 Likewise.
23071 * sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
23072 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23073 Likewise.
23074 * sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
23075 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23076 Likewise.
23077 * sysdeps/mips/nptl/bits/pthreadtypes-arch.h
23078 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23079 Likewise.
23080 * sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
23081 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23082 Likewise.
23083 * sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
23084 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23085 Likewise.
23086 * sysdeps/s390/nptl/bits/pthreadtypes-arch.h
23087 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23088 Likewise.
23089 * sysdeps/sh/nptl/bits/pthreadtypes-arch.h
23090 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23091 Likewise.
23092 * sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
23093 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23094 Likewise.
23095 * sysdeps/tile/nptl/bits/pthreadtypes-arch.h
23096 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23097 Likewise.
23098 * sysdeps/x86/nptl/bits/pthreadtypes-arch.h
23099 (__PTHREAD_MUTEX_NUSERS_AFTER_KIND, __PTHREAD_MUTEX_USE_UNION):
23100 Likewise.
23101
23102 * nptl/pthreadP.h (ASSERT_TYPE_SIZE, ASSERT_PTHREAD_INTERNAL_SIZE):
23103 New macros.
23104 * nptl/pthread_attr_init.c (__pthread_mutex_init): Add build time
23105 checks for expected input type size.
23106 * nptl/pthread_barrier_init.c (__pthread_barrier_init): Likewise.
23107 * nptl/pthread_barrierattr_init.c (pthread_barrierattr_init):
23108 Likewise.
23109 * nptl/pthread_cond_init.c (__pthread_cond_init): Likewise.
23110 * nptl/pthread_condattr_init.c (__pthread_condattr_init): Likewise.
23111 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
23112 * nptl/pthread_mutexattr_init.c (__pthread_mutexattr_init): Likewise.
23113 * nptl/pthread_rwlock_init.c (__pthread_rwlock_init): Likewise.
23114 * nptl/pthread_rwlockattr_init.c (pthread_rwlockattr_init): Likewise.
23115 * nptl/sem_init.c (__new_sem_init, __old_sem_init): Likewise
23116 * nptl/pthread_attr_destroy.c (__pthread_attr_destroy): Remove
23117 superflous runtime assert check.
23118 * nptl/pthread_attr_getaffinity.c (__pthread_attr_getaffinity_new):
23119 Likewise.
23120 * nptl/pthread_attr_getdetachstate.c (__pthread_attr_getdetachstate):
23121 Likewise.
23122 * nptl/pthread_attr_getguardsize.c (pthread_attr_getguardsize):
23123 Likewise.
23124 * nptl/pthread_attr_getinheritsched.c (__pthread_attr_getinheritsched):
23125 Likewise.
23126 * nptl/pthread_attr_getschedparam.c (__pthread_attr_getschedparam):
23127 Likewise.
23128 * nptl/pthread_attr_getschedpolicy.c (__pthread_attr_getschedpolicy):
23129 Likewise.
23130 * nptl/pthread_attr_getscope.c (__pthread_attr_getscope): Likewise.
23131 * nptl/pthread_attr_getstack.c (__pthread_attr_getstack): Likewise.
23132 * nptl/pthread_attr_getstackaddr.c (__pthread_attr_getstackaddr):
23133 Likewise.
23134 * nptl/pthread_attr_getstacksize.c (__pthread_attr_getstacksize):
23135 Likewise.
23136 * nptl/pthread_attr_setaffinity.c (__pthread_attr_setaffinity_new):
23137 Likewise.
23138 * nptl/pthread_attr_setdetachstate.c (__pthread_attr_setdetachstate):
23139 Likewise.
23140 * nptl/pthread_attr_setguardsize.c (pthread_attr_setguardsize):
23141 Likewise.
23142 * nptl/pthread_attr_setinheritsched.c
23143 (__pthread_attr_setinheritsched): Likewise.
23144 * nptl/pthread_attr_setschedparam.c (__pthread_attr_setschedparam):
23145 Likewise.
23146 * nptl/pthread_attr_setschedpolicy.c (__pthread_attr_setschedpolicy):
23147 Likewise.
23148 * nptl/pthread_attr_setscope.c (__pthread_attr_setscope): Likewise.
23149 * nptl/pthread_attr_setstack.c (__pthread_attr_setstack,
23150 __old_pthread_attr_setstack): Likewise.
23151 * nptl/pthread_attr_setstackaddr.c (__pthread_attr_setstackaddr):
23152 Likewise.
23153 * nptl/pthread_attr_setstacksize.c (__pthread_attr_setstacksize):
23154 Likewise.
23155 * nptl/pthread_getattr_default_np.c (pthread_getattr_default_np):
23156 Likewise.
23157 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock): Likewise.
23158 * nptl/pthread_setattr_default_np.c (pthread_setattr_default_np):
23159 Likewise.
23160 * nptl/tst-typesizes.c: Remove file.
23161
23162 * nptl/pthreadP.h (ASSERT_PTHREAD_STRING,
23163 ASSERT_PTHREAD_INTERNAL_OFFSET): New macro.
23164 * nptl/pthread_mutex_init.c (__pthread_mutex_init): Add build time
23165 checks for internal pthread_mutex_t offsets.
23166 * sysdeps/aarch64/nptl/pthread-offsets.h
23167 (__PTHREAD_MUTEX_NUSERS_OFFSET, __PTHREAD_MUTEX_KIND_OFFSET,
23168 __PTHREAD_MUTEX_SPINS_OFFSET, __PTHREAD_MUTEX_ELISION_OFFSET,
23169 __PTHREAD_MUTEX_LIST_OFFSET): New macro.
23170 * sysdeps/alpha/nptl/pthread-offsets.h: Likewise.
23171 * sysdeps/arm/nptl/pthread-offsets.h: Likewise.
23172 * sysdeps/hppa/nptl/pthread-offsets.h: Likewise.
23173 * sysdeps/i386/nptl/pthread-offsets.h: Likewise.
23174 * sysdeps/ia64/nptl/pthread-offsets.h: Likewise.
23175 * sysdeps/m68k/nptl/pthread-offsets.h: Likewise.
23176 * sysdeps/microblaze/nptl/pthread-offsets.h: Likewise.
23177 * sysdeps/mips/nptl/pthread-offsets.h: Likewise.
23178 * sysdeps/nios2/nptl/pthread-offsets.h: Likewise.
23179 * sysdeps/powerpc/nptl/pthread-offsets.h: Likewise.
23180 * sysdeps/s390/nptl/pthread-offsets.h: Likewise.
23181 * sysdeps/sh/nptl/pthread-offsets.h: Likewise.
23182 * sysdeps/sparc/nptl/pthread-offsets.h: Likewise.
23183 * sysdeps/tile/nptl/pthread-offsets.h: Likewise.
23184 * sysdeps/x86_64/nptl/pthread-offsets.h: Likewise.
23185
23186 2017-11-07 Florian Weimer <fweimer@redhat.com>
23187
23188 * bits/mman-linux.h: Move ...
23189 * sysdeps/unix/sysv/linux/bits/mman-linux.h: ... here. Update
23190 comment.
23191 * sysdeps/unix/sysv/linux/bits/Makefile (sysdep_headers): Remove
23192 outdated comment.
23193
23194 2017-11-07 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
23195
23196 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S (STRNLEN):
23197 Redefine STRNLEN as __strnlen_power8.
23198
23199 2017-11-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
23200
23201 * signal/sighold.c (sighold): Optimize implementation.
23202
23203 * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Asssume
23204 __NR_rt_sigqueueinfo.
23205
23206 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
23207 __sigtimedwait.
23208 * sysdeps/unix/sysv/linux/sigtimedwait.c: Simplify includes and
23209 assume __NR_rt_sigtimedwait.
23210 * sysdeps/unix/sysv/linux/sigwait.c (__sigwait): Call __sigtimedwait
23211 and add LIBC_CANCEL_HANDLED for cancellation marking.
23212 * sysdeps/unix/sysv/linux/sigwaitinfo.c (__sigwaitinfo): Likewise.
23213
23214 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23215 (sysdeps_routines): Add memchr_noneon.
23216 * sysdeps/arm/armv7/multiarch/ifunc-memchr.h: New file.
23217 * sysdeps/arm/armv7/multiarch/memchr_noneon.S: Likewise.
23218 * sysdeps/arm/armv7/multiarch/rtld-memchr.S: Likewise.
23219 * sysdeps/arm/armv7/multiarch/memchr.S: Remove file.
23220 * sysdeps/arm/armv7/multiarch/memchr.c: New file.
23221 * sysdeps/arm/armv7/multiarch/memchr_impl.S: Move to ...
23222 * sysdeps/arm/armv7/multiarch/memchr_neon.S: ... here.
23223
23224 * sysdeps/arm/arm-ifunc.h: New file.
23225 * sysdeps/arm/armv7/multiarch/ifunc-memcpy.h: Likewise.
23226 * sysdeps/arm/armv7/multiarch/memcpy.c: Likewise.
23227 * sysdeps/arm/armv7/multiarch/memcpy_arm.S: Likewise.
23228 * sysdeps/arm/armv7/multiarch/rtld-memcpy.S: Likewise.
23229 * sysdeps/arm/armv7/multiarch/memcpy_neon.S [!__ARM_NEON__]
23230 (__memcpy_neon): Avoid create hidden alias.
23231 * sysdeps/arm/armv7/multiarch/memcpy_vfp.S [!__ARM_NEON_]
23232 (__memcpy_vfp): Likewise.
23233 * sysdeps/arm/armv7/multiarch/Makefile [$(subdir) = string]
23234 (sysdep_routines): Add memcpy_arm.
23235 * sysdeps/arm/armv7/multiarch/memcpy.S: Remove file.
23236
23237 2017-11-06 H.J. Lu <hongjiu.lu@intel.com>
23238
23239 [BZ #22362]
23240 * Makerules (make-link-multidir): New.
23241 * config.make.in (multidir): New.
23242 * configure.ac (libc_cv_multidir): New. AC_SUBST.
23243 * configure: Regenerated.
23244 * csu/Makefile [$(multidir) != .](multilib-extra-objs): New.
23245 [$(multidir) != .](extra-objs): Add $(multilib-extra-objs).
23246 [$(multidir) != .]($(addprefix $(objpfx)$(multidir)/, $(install-lib))):
23247 New target.
23248
23249 2017-11-06 Joseph Myers <joseph@codesourcery.com>
23250
23251 [BZ #22402]
23252 * sysdeps/powerpc/bits/floatn.h: Include <bits/long-double.h>.
23253 [__NO_LONG_DOUBLE_MATH] (__HAVE_FLOAT128): Define to 0.
23254
23255 2017-11-04 Mike FABIAN <mfabian@redhat.com>
23256
23257 * localedata/locales/tpi_PG (LC_TIME): Fix wrong d_fmt, / needs
23258 to be escaped.
23259
23260 2017-11-04 Florian Weimer <fweimer@redhat.com>
23261
23262 * manual/llio.texi (Open-time Flags): Document O_TMPFILE.
23263
23264 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23265
23266 * math/math.h [__HAVE_DISTINCT_FLOAT16
23267 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23268 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23269 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23270 [__NO_LONG_DOUBLE_MATH && __HAVE_DISTINCT_FLOAT128]: Likewise.
23271 [__HAVE_DISTINCT_FLOAT128 && !__HAVE_GENERIC_SELECTION
23272 && __HAVE_FLOATN_NOT_TYPEDEF]: Likewise.
23273 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23274 (__MATH_TG_F32): New macro.
23275 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23276 (__MATH_TG_F64X): Likewise.
23277 [__HAVE_DISTINCT_FLOAT128 && __HAVE_GENERIC_SELECTION]
23278 (__MATH_TG): Use __MATH_TG_F32 and __MATH_TG_F64X.
23279
23280 2017-11-03 Dmitry V. Levin <ldv@altlinux.org>
23281
23282 * po/de.po: Update translations.
23283 * po/ru.po: Likewise.
23284
23285 2017-11-03 Florian Weimer <fweimer@redhat.com>
23286
23287 * manual/filesys.texi (Hard Links): Document linkat.
23288
23289 2017-11-03 Joseph Myers <joseph@codesourcery.com>
23290
23291 * math/tgmath.h [__HAVE_DISTINCT_FLOAT16
23292 || __HAVE_DISTINCT_FLOAT32 || __HAVE_DISTINCT_FLOAT64
23293 || __HAVE_DISTINCT_FLOAT32X || __HAVE_DISTINCT_FLOAT64X
23294 || __HAVE_DISTINCT_FLOAT128X]: Use #error.
23295 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23296 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23297 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_F128): Handle _Float64x
23298 the same as _Float128.
23299 [__HAVE_DISTINCT_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)
23300 && __HAVE_FLOAT64X && !__HAVE_FLOAT64X_LONG_DOUBLE
23301 && __HAVE_FLOATN_NOT_TYPEDEF] (__TGMATH_CF128): Likewise.
23302
23303 * stdlib/stdlib.h
23304 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof16):
23305 Declare.
23306 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof32):
23307 Likewise.
23308 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (strtof64):
23309 Likewise.
23310 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23311 (strtof32x): Likewise.
23312 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23313 (strtof64x): Likewise.
23314 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23315 (strtof128x): Likewise.
23316 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23317 (strfromf16): Likewise.
23318 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23319 (strfromf32): Likewise.
23320 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23321 (strfromf64): Likewise.
23322 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23323 (strfromf32x): Likewise.
23324 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23325 (strfromf64x): Likewise.
23326 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23327 (strfromf128x): Likewise.
23328 [__USE_GNU && __HAVE_FLOAT16] (strtof16_l): Likewise.
23329 [__USE_GNU && __HAVE_FLOAT32] (strtof32_l): Likewise.
23330 [__USE_GNU && __HAVE_FLOAT64] (strtof64_l): Likewise.
23331 [__USE_GNU && __HAVE_FLOAT32X] (strtof32x_l): Likewise.
23332 [__USE_GNU && __HAVE_FLOAT64X] (strtof64x_l): Likewise.
23333 [__USE_GNU && __HAVE_FLOAT128X] (strtof128x_l): Likewise.
23334
23335 2017-11-03 Richard Henderson <rth@twiddle.net>
23336
23337 * sysdeps/unix/sysv/linux/aarch64/sysconf.c: New file.
23338
23339 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23340
23341 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic): Optimize.
23342
23343 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23344
23345 * sysdeps/arm/dl-machine.h (elf_machine_runtime_setup): Remove
23346 DT_TLSDESC_GOT initialization.
23347 * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_lazy_resolver): Remove.
23348 (_dl_tlsdesc_resolve_hold): Likewise.
23349 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_lazy_resolver): Remove.
23350 (_dl_tlsdesc_resolve_hold): Likewise.
23351 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_lazy_resolver_fixup): Remove.
23352 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23353
23354 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23355
23356 * sysdeps/arm/dl-machine.h (elf_machine_rel): Remove volatile.
23357
23358 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23359
23360 [BZ #18572]
23361 * sysdeps/arm/dl-machine.h (elf_machine_lazy_rel): Do symbol binding
23362 non-lazily for R_ARM_TLS_DESC.
23363
23364 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23365
23366 [BZ #17078]
23367 * sysdeps/arm/dl-machine.h (elf_machine_rela): Remove the
23368 R_ARM_TLS_DESC case.
23369 (elf_machine_lazy_rel): Remove the prelink check.
23370
23371 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23372
23373 * sysdeps/aarch64/dl-machine.h (elf_machine_runtime_setup): Remove
23374 DT_TLSDESC_GOT initialization.
23375 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_return_lazy): Remove.
23376 (_dl_tlsdesc_resolve_rela): Likewise.
23377 (_dl_tlsdesc_resolve_hold): Likewise.
23378 (_dl_tlsdesc_undefweak): Remove ldar.
23379 (_dl_tlsdesc_dynamic): Likewise.
23380 * sysdeps/aarch64/dl-tlsdesc.h (_dl_tlsdesc_return_lazy): Remove.
23381 (_dl_tlsdesc_resolve_rela): Likewise.
23382 (_dl_tlsdesc_resolve_hold): Likewise.
23383 * sysdeps/aarch64/tlsdesc.c (_dl_tlsdesc_resolve_rela_fixup): Remove.
23384 (_dl_tlsdesc_resolve_hold_fixup): Likewise.
23385 (_dl_tlsdesc_resolve_rela): Likewise.
23386 (_dl_tlsdesc_resolve_hold): Likewise.
23387
23388 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23389
23390 * sysdeps/aarch64/dl-machine.h (elf_machine_lazy_rel): Do symbol
23391 binding and initialization non-lazily for R_AARCH64_TLSDESC.
23392
23393 2017-11-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23394
23395 * elf/tlsdeschtab.h (_dl_tls_resolve_early_return_p): Mark unused.
23396 (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23397
23398 2017-11-02 Joseph Myers <joseph@codesourcery.com>
23399
23400 * wcsmbs/wchar.h [__HAVE_FLOAT16 && __USE_GNU] (wcstof16):
23401 Declare.
23402 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32): Likewise.
23403 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64): Likewise.
23404 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x): Likewise.
23405 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x): Likewise.
23406 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x): Likewise.
23407 [__HAVE_FLOAT16 && __USE_GNU] (wcstof16_l): Likewise.
23408 [__HAVE_FLOAT32 && __USE_GNU] (wcstof32_l): Likewise.
23409 [__HAVE_FLOAT64 && __USE_GNU] (wcstof64_l): Likewise.
23410 [__HAVE_FLOAT32X && __USE_GNU] (wcstof32x_l): Likewise.
23411 [__HAVE_FLOAT64X && __USE_GNU] (wcstof64x_l): Likewise.
23412 [__HAVE_FLOAT128X && __USE_GNU] (wcstof128x_l): Likewise.
23413
23414 2017-11-02 Mike FABIAN <mfabian@redhat.com>
23415
23416 [BZ #22382]
23417 * localedata/locales/tpi_PG (LC_TIME): Fix syntax error.
23418 * localedata/locales/tpi_PG: Add standard header.
23419
23420 2017-11-02 Florian Weimer <fweimer@redhat.com>
23421
23422 test-errno-linux: quotactl can fail with EPERM in containers.
23423 * sysdeps/unix/sysv/linux/test-errno-linux.c
23424 (LIST, LIST_FORWARD): New macros.
23425 (check_error_in_list): New function.
23426 (test_wrp_rv): Accept list of permitted error codes.
23427 (test_wrp_rv2): Remove.
23428 (test_wrp): Call test_wrp_rv with list of error codes.
23429 (test_wrp2): Accept list of error codes.
23430 (do_test): Adjust. Allow EPERM for quotactl.
23431
23432 2017-11-02 Florian Weimer <fweimer@redhat.com>
23433
23434 * stdio-common/bug16.c (do_test): Use array_length.
23435 * stdio-common/errlist.c (_sys_nerr): Likewise.
23436 * stdio-common/printf_fp.c (PRINTF_FP_FETCH): Likewise.
23437 * stdio-common/printf_fphex.c (__printf_fphex): Use array_end.
23438 * stdio-common/psiginfo.c (psiginfo): Use array_length.
23439 * stdio-common/test-vfprintf.c (nlocs): Remove definition.
23440 (do_test): Use array_length.
23441 * stdio-common/tst-fphex.c (do_test): Use array_end, array_length.
23442 * stdio-common/tst-long-dbl-fphex.c (do_test): Use array_length.
23443 * stdio-common/tst-printf-round.c (do_test): Likewise.
23444 * stdio-common/tst-swprintf.c (nbuf): Remove definition.
23445 (CHECK): Use array_length.
23446 * stdio-common/tstdiomisc.c (t3, F): Likewise.
23447 * stdio-common/tstscanf.c (main): Likewise.
23448 * stdio-common/vfprintf.c (process_string_arg): Likewise.
23449
23450 2017-11-02 Florian Weimer <fweimer@redhat.com>
23451
23452 Add array_length and array_end macros.
23453 * include/array_length.h: New file.
23454
23455 2017-11-02 Florian Weimer <fweimer@redhat.com>
23456
23457 [BZ #22332]
23458 * posix/tst-glob-tilde.c (do_noescape): New variable.
23459 (one_test): Process it.
23460 (do_test): Set do_noescape. Add unescaping test case.
23461
23462 2017-11-01 Joseph Myers <joseph@codesourcery.com>
23463
23464 * math/complex.h
23465 [(__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC))
23466 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Include <bits/cmathcalls.h>
23467 with appropriate macros defined and undefined.
23468 [(__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC))
23469 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23470 [(__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC))
23471 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23472 [(__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC))
23473 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23474 [(__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC))
23475 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23476 [(__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC))
23477 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Likewise.
23478
23479 * math/complex.h
23480 [(__HAVE_DISTINCT_FLOAT128 || (__HAVE_FLOAT128 && !LIBC))
23481 && __GLIBC_USE (IEC_60559_TYPES_EXT)]: Move conditional code after
23482 that for long double. Do not condition define and undefine of
23483 _Mdouble_complex_ on [__CFLOAT128].
23484
23485 2017-11-01 H.J. Lu <hongjiu.lu@intel.com>
23486
23487 * sysdeps/i386/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23488 of <sysdeps/generic/sysdep.h>.
23489 (ALIGNARG): Removed.
23490 (ASM_SIZE_DIRECTIVE): Likewise.
23491 (ENTRY): Likewise.
23492 (END): Likewise.
23493 (ENTRY_CHK): Likewise.
23494 (END_CHK): Likewise.
23495 (syscall_error): Likewise.
23496 (mcount): Likewise.
23497 (PSEUDO_END): Likewise.
23498 (L): Likewise.
23499 (atom_text_section): Likewise.
23500 * sysdeps/x86/sysdep.h: New file.
23501 * sysdeps/x86_64/sysdep.h: Include <sysdeps/x86/sysdep.h> instead
23502 of <sysdeps/generic/sysdep.h>.
23503 (ALIGNARG): Removed.
23504 (ASM_SIZE_DIRECTIVE): Likewise.
23505 (ENTRY): Likewise.
23506 (END): Likewise.
23507 (ENTRY_CHK): Likewise.
23508 (END_CHK): Likewise.
23509 (syscall_error): Likewise.
23510 (mcount): Likewise.
23511 (PSEUDO_END): Likewise.
23512 (L): Likewise.
23513 (atom_text_section): Likewise.
23514
23515 2017-10-31 Rafal Luzynski <digitalfreak@lingonborough.com>
23516
23517 * localedata/unicode-gen/gen_unicode_ctype.py (output_head):
23518 category of LC_CTYPE set to "i18n:2012".
23519 * localedata/locales/i18n_ctype: Regenerate.
23520
23521 2017-10-31 Yury Norov <ynorov@caviumnetworks.com>
23522
23523 * sysdeps/unix/sysv/linux/sigprocmask.c: Remove useless #ifdefs.
23524 * sysdeps/unix/sysv/linux/sigtimedwait.c: Likewise.
23525 * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
23526 * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
23527
23528 * sysdeps/unix/sysv/linux/ia64/sigpending.c: Remove file.
23529 * sysdeps/unix/sysv/linux/s390/s390-64/sigpending.c: Likewise.
23530 * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Likewise.
23531 * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Likewise.
23532
23533 2017-10-31 Joseph Myers <joseph@codesourcery.com>
23534
23535 * math/complex.h
23536 [__HAVE_FLOAT16 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF16):
23537 New macro.
23538 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF32):
23539 Likewise.
23540 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (CMPLXF64):
23541 Likewise.
23542 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23543 (CMPLXF32X): Likewise.
23544 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23545 (CMPLXF64X): Likewise.
23546 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23547 (CMPLXF128X): Likewise.
23548
23549 * math/math.h
23550 [__FLT_EVAL_METHOD__ == 0 || __FLT_EVAL_METHOD__ == 32]
23551 (__MATH_EVAL_FMT2): Define to add 0.0f.
23552
23553 2017-10-31 Alan Modra <amodra@gmail.com>
23554
23555 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-power8.S: Don't
23556 include sysdep.h.
23557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: Likewise.
23558 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: Likewise.
23559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-power8.S: Likewise.
23560 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_cosf-ppc64.c: Likewise.
23561 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: Likewise.
23562 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: Likewise.
23563 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: Likewise.
23564 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: Likewise.
23565 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: Likewise.
23566 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: Likewise.
23567 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-power8.S: Likewise.
23568 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_sinf-ppc64.c: Likewise.
23569 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: Likewise.
23570 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: Likewise.
23571 * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: Likewise.
23572 * sysdeps/powerpc/powerpc64/multiarch/memchr-power8.S: Likewise.
23573 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: Likewise.
23574 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: Likewise.
23575 * sysdeps/powerpc/powerpc64/multiarch/memcmp-power8.S: Likewise.
23576 * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: Likewise.
23577 * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: Likewise.
23578 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: Likewise.
23579 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: Likewise.
23580 * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: Likewise.
23581 * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
23582 * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: Likewise.
23583 * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: Likewise.
23584 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: Likewise.
23585 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S: Likewise.
23586 * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: Likewise.
23587 * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
23588 * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
23589 * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: Likewise.
23590 * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: Likewise.
23591 * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power8.S: Likewise.
23592 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: Likewise.
23593 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Likewise.
23594 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Likewise.
23595 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power8.S: Likewise.
23596 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
23597 * sysdeps/powerpc/powerpc64/multiarch/strcasestr-power8.S: Likewise.
23598 * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: Likewise.
23599 * sysdeps/powerpc/powerpc64/multiarch/strchr-power8.S: Likewise.
23600 * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: Likewise.
23601 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: Likewise.
23602 * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power8.S: Likewise.
23603 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: Likewise.
23604 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Likewise.
23605 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23606 * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
23607 * sysdeps/powerpc/powerpc64/multiarch/strcpy-power8.S: Likewise.
23608 * sysdeps/powerpc/powerpc64/multiarch/strcspn-power8.S: Likewise.
23609 * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: Likewise.
23610 * sysdeps/powerpc/powerpc64/multiarch/strlen-power8.S: Likewise.
23611 * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
23612 * sysdeps/powerpc/powerpc64/multiarch/strncase-power8.S: Likewise.
23613 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: Likewise.
23614 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: Likewise.
23615 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23616 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23617 * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
23618 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: Likewise.
23619 * sysdeps/powerpc/powerpc64/multiarch/strncpy-power8.S: Likewise.
23620 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
23621 * sysdeps/powerpc/powerpc64/multiarch/strnlen-power8.S: Likewise.
23622 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: Likewise.
23623 * sysdeps/powerpc/powerpc64/multiarch/strrchr-power8.S: Likewise.
23624 * sysdeps/powerpc/powerpc64/multiarch/strspn-power8.S: Likewise.
23625 * sysdeps/powerpc/powerpc64/multiarch/strstr-power7.S: Likewise.
23626
23627 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: Don't
23628 include sysdep.h and math_ldbl_opt.h.
23629
23630 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: Don't
23631 include sysdep.h and math_ldbl_opt.h. Include shlib-compat.h.
23632 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: Likewise.
23633 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: Likewise.
23634 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: Likewise.
23635 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: Likewise.
23636 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: Likewise.
23637 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: Likewise.
23638 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: Likewise.
23639 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: Likewise.
23640 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: Likewise.
23641 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: Likewise.
23642 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: Likewise.
23643 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: Likewise.
23644 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: Likewise.
23645 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: Likewise.
23646 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: Likewise.
23647 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: Likewise.
23648 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: Likewise.
23649 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: Likewise.
23650 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: Likewise.
23651 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llroundf-ppc64.S: Likewise.
23652 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: Likewise.
23653 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: Likewise.
23654 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: Likewise.
23655 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: Likewise.
23656
23657 2017-10-31 Alan Modra <amodra@gmail.com>
23658
23659 * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: Include
23660 string/strncase_l.c, not string/strncase.c.
23661 (USE_IN_EXTENDED_LOCALE_MODEL): Don't define.
23662 (libc_hidden_def): Redefine.
23663
23664 2017-10-31 Alan Modra <amodra@gmail.com>
23665
23666 * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S:
23667 (__STRCMP, STRCMP, __strcasecmp_l): Define.
23668 (__strcasecmp): Don't define.
23669
23670 2017-10-31 Alan Modra <amodra@gmail.com>
23671
23672 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power8.S: Wrap in
23673 IS_IN (libc).
23674 * sysdeps/powerpc/powerpc64/multiarch/strcmp-power9.S: Likewise.
23675 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power8.S: Likewise.
23676 * sysdeps/powerpc/powerpc64/multiarch/strncmp-power9.S: Likewise.
23677
23678 2017-10-31 Alan Modra <amodra@gmail.com>
23679
23680 * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power8.S: Don't define
23681 USE_AS_STPNCPY.
23682
23683 2017-10-31 Alan Modra <amodra@gmail.com>
23684
23685 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S (hidden_def):
23686 Redefine only when SHARED.
23687
23688 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23689
23690 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23691 Include <bits/math-finite.h> with appropriate macros defined and
23692 undefined.
23693 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23694 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23695 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23696 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23697 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23698
23699 * math/math.h [!_Mfloat_] (_Mfloat_): Do not define.
23700 [!_Mlong_double_] (_Mlong_double_): Likewise.
23701 [!_Mfloat16_] (_Mfloat16_): Likewise.
23702 [!_Mfloat32_] (_Mfloat32_): Likewise.
23703 [!_Mfloat64_] (_Mfloat64_): Likewise.
23704 [!_Mfloat128_] (_Mfloat128_): Likewise.
23705 [!_Mfloat32x_] (_Mfloat32x_): Likewise.
23706 [!_Mfloat64x_] (_Mfloat64x_): Likewise.
23707 [!_Mfloat128x_] (_Mfloat128x_): Likewise.
23708 (_Mdouble_): Define without indirection through those macros.
23709 * math/complex.h [!_Mfloat_] (_Mfloat_): Do not define.
23710 [!_Mfloat128_] (_Mfloat128_): Likewise.
23711 [_Mlong_double_] (_Mlong_double_): Likewise.
23712 (_Mdouble_): Define without indirection through those macros.
23713 * math/Makefile [$(long-double-fcts) != yes] (math-CPPFLAGS): Do
23714 not add -D_Mlong_double_=double.
23715 * include/math.h [_ISOMAC] (_Mlong_double_): Do not undefine.
23716 * math/test-signgam-finite-c99.c (_Mlong_double_): Likewise.
23717
23718 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23719
23720 * sysdeps/x86/libc-start.c: Add /* !SHARED */.
23721
23722 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23723
23724 * sysdeps/x86/libc-start.c: Reformat.
23725
23726 2017-10-30 H.J. Lu <hongjiu.lu@intel.com>
23727
23728 [BZ #22353]
23729 * sysdeps/i386/i586/strcpy.S (STRCPY): Use conditional branches.
23730 (1): Renamed to ...
23731 (L(Src0)): This.
23732 (L(Src1)): New.
23733 (L(Src2)): Likewise.
23734 (L(1)): Renamed to ...
23735 (L(Src3)): This.
23736
23737 2017-10-30 Joseph Myers <joseph@codesourcery.com>
23738
23739 * math/math.h [__HAVE_FLOAT16 && __USE_GNU] (M_Ef16): New macro.
23740 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG2Ef16): Likewise.
23741 [__HAVE_FLOAT16 && __USE_GNU] (M_LOG10Ef16): Likewise.
23742 [__HAVE_FLOAT16 && __USE_GNU] (M_LN2f16): Likewise.
23743 [__HAVE_FLOAT16 && __USE_GNU] (M_LN10f16): Likewise.
23744 [__HAVE_FLOAT16 && __USE_GNU] (M_PIf16): Likewise.
23745 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_2f16): Likewise.
23746 [__HAVE_FLOAT16 && __USE_GNU] (M_PI_4f16): Likewise.
23747 [__HAVE_FLOAT16 && __USE_GNU] (M_1_PIf16): Likewise.
23748 [__HAVE_FLOAT16 && __USE_GNU] (M_2_PIf16): Likewise.
23749 [__HAVE_FLOAT16 && __USE_GNU] (M_2_SQRTPIf16): Likewise.
23750 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT2f16): Likewise.
23751 [__HAVE_FLOAT16 && __USE_GNU] (M_SQRT1_2f16): Likewise.
23752 [__HAVE_FLOAT32 && __USE_GNU] (M_Ef32): Likewise.
23753 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG2Ef32): Likewise.
23754 [__HAVE_FLOAT32 && __USE_GNU] (M_LOG10Ef32): Likewise.
23755 [__HAVE_FLOAT32 && __USE_GNU] (M_LN2f32): Likewise.
23756 [__HAVE_FLOAT32 && __USE_GNU] (M_LN10f32): Likewise.
23757 [__HAVE_FLOAT32 && __USE_GNU] (M_PIf32): Likewise.
23758 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_2f32): Likewise.
23759 [__HAVE_FLOAT32 && __USE_GNU] (M_PI_4f32): Likewise.
23760 [__HAVE_FLOAT32 && __USE_GNU] (M_1_PIf32): Likewise.
23761 [__HAVE_FLOAT32 && __USE_GNU] (M_2_PIf32): Likewise.
23762 [__HAVE_FLOAT32 && __USE_GNU] (M_2_SQRTPIf32): Likewise.
23763 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT2f32): Likewise.
23764 [__HAVE_FLOAT32 && __USE_GNU] (M_SQRT1_2f32): Likewise.
23765 [__HAVE_FLOAT64 && __USE_GNU] (M_Ef64): Likewise.
23766 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG2Ef64): Likewise.
23767 [__HAVE_FLOAT64 && __USE_GNU] (M_LOG10Ef64): Likewise.
23768 [__HAVE_FLOAT64 && __USE_GNU] (M_LN2f64): Likewise.
23769 [__HAVE_FLOAT64 && __USE_GNU] (M_LN10f64): Likewise.
23770 [__HAVE_FLOAT64 && __USE_GNU] (M_PIf64): Likewise.
23771 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_2f64): Likewise.
23772 [__HAVE_FLOAT64 && __USE_GNU] (M_PI_4f64): Likewise.
23773 [__HAVE_FLOAT64 && __USE_GNU] (M_1_PIf64): Likewise.
23774 [__HAVE_FLOAT64 && __USE_GNU] (M_2_PIf64): Likewise.
23775 [__HAVE_FLOAT64 && __USE_GNU] (M_2_SQRTPIf64): Likewise.
23776 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT2f64): Likewise.
23777 [__HAVE_FLOAT64 && __USE_GNU] (M_SQRT1_2f64): Likewise.
23778 [__HAVE_FLOAT32X && __USE_GNU] (M_Ef32x): Likewise.
23779 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG2Ef32x): Likewise.
23780 [__HAVE_FLOAT32X && __USE_GNU] (M_LOG10Ef32x): Likewise.
23781 [__HAVE_FLOAT32X && __USE_GNU] (M_LN2f32x): Likewise.
23782 [__HAVE_FLOAT32X && __USE_GNU] (M_LN10f32x): Likewise.
23783 [__HAVE_FLOAT32X && __USE_GNU] (M_PIf32x): Likewise.
23784 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_2f32x): Likewise.
23785 [__HAVE_FLOAT32X && __USE_GNU] (M_PI_4f32x): Likewise.
23786 [__HAVE_FLOAT32X && __USE_GNU] (M_1_PIf32x): Likewise.
23787 [__HAVE_FLOAT32X && __USE_GNU] (M_2_PIf32x): Likewise.
23788 [__HAVE_FLOAT32X && __USE_GNU] (M_2_SQRTPIf32x): Likewise.
23789 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT2f32x): Likewise.
23790 [__HAVE_FLOAT32X && __USE_GNU] (M_SQRT1_2f32x): Likewise.
23791 [__HAVE_FLOAT64X && __USE_GNU] (M_Ef64x): Likewise.
23792 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG2Ef64x): Likewise.
23793 [__HAVE_FLOAT64X && __USE_GNU] (M_LOG10Ef64x): Likewise.
23794 [__HAVE_FLOAT64X && __USE_GNU] (M_LN2f64x): Likewise.
23795 [__HAVE_FLOAT64X && __USE_GNU] (M_LN10f64x): Likewise.
23796 [__HAVE_FLOAT64X && __USE_GNU] (M_PIf64x): Likewise.
23797 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_2f64x): Likewise.
23798 [__HAVE_FLOAT64X && __USE_GNU] (M_PI_4f64x): Likewise.
23799 [__HAVE_FLOAT64X && __USE_GNU] (M_1_PIf64x): Likewise.
23800 [__HAVE_FLOAT64X && __USE_GNU] (M_2_PIf64x): Likewise.
23801 [__HAVE_FLOAT64X && __USE_GNU] (M_2_SQRTPIf64x): Likewise.
23802 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT2f64x): Likewise.
23803 [__HAVE_FLOAT64X && __USE_GNU] (M_SQRT1_2f64x): Likewise.
23804 [__HAVE_FLOAT128X && __USE_GNU]: Use #error.
23805
23806 2017-10-30 Florian Weimer <fweimer@redhat.com>
23807
23808 * elf/ldconfig.c (search_dir): Assume that _DIRENT_HAVE_D_TYPE is
23809 always defined.
23810 * io/tst-mkdirat.c (do_test): Likewise.
23811 * io/tst-mkfifoat.c (do_test): Likewise.
23812 * io/tst-mknodat.c (do_test): Likewise.
23813 * locale/programs/charmap-dir.c (charmap_readdir): Likewise.
23814 * locale/programs/locale.c (select_dirs): Likewise.
23815 * locale/programs/locarchive.c (add_locales_to_archive): Likewise.
23816 * posix/bug-glob2.c (my_readdir): Likewise.
23817 * posix/tst-dir.c (main): Likewise.
23818 * posix/tst-glob_lstat_compat.c (my_readdir): Likewise.
23819 * posix/tst-gnuglob-skeleton.c (my_readdir): Likewise.
23820
23821 2017-10-30 Florian Weimer <fweimer@redhat.com>
23822
23823 * string/strings.h (ffsl, ffsll): Declare under __USE_MISC, not
23824 just __USE_GNU.
23825
23826 2017-10-30 Florian Weimer <fweimer@redhat.com>
23827
23828 * posix/tst-gnuglob-skeleton.c: Renamed from tst-gnuglob.c.
23829 Convert to support/test-driver.c.
23830 (GLOB_FUNC, GLOB_TYPE, GLOBFREE_FUNC, DIRENT_STRUCT, STAT_STRUCT):
23831 New macro parameters.
23832 (PRINTF): Remove macro. Use test_verbose conditionals instead.
23833 * posix/tst-gnuglob.c: New file.
23834 * posix/tst-gnuglob64.c: Likewise.
23835 * posix/Makefile (tests): Add tst-gnuglob64.
23836
23837 2017-10-30 Michal Ostrowski <ostrowski.michal@gmail.com>
23838
23839 [BZ #19485]
23840 * localedata/locales/csb_PL (LC_TIME): Fix “abmon” for March
23841 and use a better translation for March in “mon”.
23842 * localedata/locales/csb_PL: Use more ASCII to improve the
23843 readability of the source.
23844
23845 2017-10-30 Mike FABIAN <mfabian@redhat.com>
23846
23847 [BZ #13953]
23848 * localedata/locales/km_KH: Use ASCII as much
23849 as possible for better readability of the source and
23850 remove useless comments.
23851 * localedata/locales/km_KH (LC_TIME): Remove era stuff, it
23852 was commented out and apparently wrong anyway because it was
23853 using Lao characters. If Buddhist era should be used
23854 for km_KH, a native speaker should write the correct formaat
23855 for Khmer.
23856 * localedata/locales/km_KH (LC_TIME): Add first_weekday 1
23857 (According to CLDR, the first weekday for Cambodia is Sunday).
23858 * localedata/locales/km_KH (LC_NAME): Remove name_mr and name_mrs
23859 (These were using Lao characters which must be wrong. If we get
23860 the correct data from a native speaker, we could add it back, until
23861 then it is better not to have name_mr and name_mrs at all than
23862 having it wrong).
23863
23864 2017-10-27 Rafal Luzynski <digitalfreak@lingonborough.com>
23865
23866 * locale/loadlocale.c: Correct size of
23867 _nl_value_type_LC_<category> arrays.
23868
23869 2017-10-27 Joseph Myers <joseph@codesourcery.com>
23870
23871 * math/math.h [__HAVE_DISTINCT_FLOAT16 || (__HAVE_FLOAT16 && !_LIBC)]:
23872 Include <bits/mathcalls-helper-functions.h> and <bits/mathcalls.h>
23873 with appropriate macros defined and undefined.
23874 [__HAVE_DISTINCT_FLOAT32 || (__HAVE_FLOAT32 && !_LIBC)]: Likewise.
23875 [__HAVE_DISTINCT_FLOAT64 || (__HAVE_FLOAT64 && !_LIBC)]: Likewise.
23876 [__HAVE_DISTINCT_FLOAT32X || (__HAVE_FLOAT32X && !_LIBC)]: Likewise.
23877 [__HAVE_DISTINCT_FLOAT64X || (__HAVE_FLOAT64X && !_LIBC)]: Likewise.
23878 [__HAVE_DISTINCT_FLOAT128X || (__HAVE_FLOAT128X && !_LIBC)]: Likewise.
23879
23880 2017-10-27 H.J. Lu <hongjiu.lu@intel.com>
23881
23882 * sysdeps/i386/fpu/libm-test-ulps: Regenerated for GCC 7 with
23883 "-O2 -march=i586".
23884
23885 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23886
23887 * localedata/locales/tt_RU (LC_MESSAGES): Start yesstr and nostr
23888 with lowercase letters to make it agree with CLDR.
23889
23890 2017-10-27 Mike FABIAN <mfabian@redhat.com>
23891
23892 [BZ #15260]
23893 * localedata/locales/doi_IN (LC_MESSAGES): Match only for the
23894 first letters of yesstr and nostr in yesexpr and noexpr,
23895 not for the full words.
23896 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
23897 * localedata/locales/kok_IN (LC_MESSAGES): Likewise.
23898 * localedata/locales/mr_IN (LC_MESSAGES): Likewise.
23899 * localedata/locales/sat_IN (LC_MESSAGES): Likewise.
23900 * localedata/locales/km_KH (LC_MESSAGES): Match also for the
23901 first letters of yesstr and nostr in yesexpr and noexpr,
23902 until now only English was matched in yesexpr and noexpr.
23903 * localedata/locales/tl_PH (LC_MESSAGES): Use “copy "fil_PH"”
23904 instead of “copy "en_US"”. CLDR has yesstr and nostr data for
23905 fil but not for tl. As tl and fil are very similar, using fil
23906 is probably better than using English.
23907
23908 2017-10-27 Thierry Vignaud <thierry.vignaud@gmail.com>
23909
23910 [BZ #21706]
23911 * localedata/locales/br_FR (LC_MESSAGES): Use all lowercase
23912 in yesstr and nostr.
23913
23914 2017-10-26 Joseph Myers <joseph@codesourcery.com>
23915
23916 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23917 (IEC_60559_TYPES_EXT)] (SNANF16): New macro.
23918 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32):
23919 Likewise.
23920 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64):
23921 Likewise.
23922 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF32X):
23923 Likewise.
23924 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)] (SNANF64X):
23925 Likewise.
23926 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23927 (SNANF128X): Likewise.
23928
23929 * math/math.h [__HAVE_FLOAT16 && __GLIBC_USE
23930 (IEC_60559_TYPES_EXT)] (HUGE_VAL_F16): New macro.
23931 [__HAVE_FLOAT32 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23932 (HUGE_VAL_F32): Likewise.
23933 [__HAVE_FLOAT64 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23934 (HUGE_VAL_F64): Likewise.
23935 [__HAVE_FLOAT32X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23936 (HUGE_VAL_F32X): Likewise.
23937 [__HAVE_FLOAT64X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23938 (HUGE_VAL_F64X): Likewise.
23939 [__HAVE_FLOAT128X && __GLIBC_USE (IEC_60559_TYPES_EXT)]
23940 (HUGE_VAL_F128X): Likewise.
23941
23942 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23943
23944 * localedata/locales/br_FR (LC_IDENTIFICATON): Add
23945 Thierry Vignaud <thierry.vignaud@gmail.com> as the contact
23946 for the br_FR locale.
23947
23948 2017-10-26 Thierry Vignaud <thierry.vignaud@gmail.com>
23949
23950 [BZ #21706]
23951 * localedata/locales/br_FR (LC_MESSAGES): Fix nostr.
23952
23953 2017-10-25 Carlos O'Donell <carlos@redhat.com>
23954
23955 * locale/programs/record-status.h: Define globals, and function
23956 prototypes. Move function bodies...
23957 * locale/programs/record-status.c: ... to here. New file.
23958 * iconv/Makefile (iconv_prog-modules): Add record-status.
23959 * locale/Makefile (lib-modules): Likewise.
23960 * iconv/iconv_prog.c: Remove verbose.
23961 * iconv/iconv_prog.h: Include record-status.h (defines verbose).
23962 * locale/programs/charmap.c (charmap_read): If warn_ascii is true then
23963 record a warning about ASCII compatibility.
23964 * locale/programs/ld-monetary.c (monetary_finish): If
23965 warn_int_curr_symbol is true then record a warning about the symbol
23966 not being in our ISO 4217 list.
23967 * locale/programs/locale.c: Include record-status.h. Remove verbose.
23968 * locale/programs/localedef.c: Include ctype.h. Remove delcaration of
23969 verbose, recorded_warning_count, recorded_error_count, and be_quiet.
23970 (OPT_NO_WARN): Define.
23971 (OPT_WARN): Define.
23972 (options): Add entry for --no-warnings, and --warnings.
23973 (set_warnings): New function to enable/disable warnings.
23974 (parse_opt): Call set_warnings for OPT_NO_WARN and OPT_WARN.
23975 * locale/programs/localedef.h: Remove warn_int_curr_symbol.
23976 * localedata/gen-locale.sh: Default flags to `--quiet -c'.
23977 Add `--no-warnings=ascii' to locales using SHIFT_JIS or SHIFT_JIXX0213.
23978 Pass flags to generate_locale.
23979 (generate_locale): Accept new flag argument and pass it to localedef
23980 invocation.
23981 * localedata/Makefile (INSTALL-SUPPORTED-LOCALES): Use
23982 --no-warnings=ascii for SHIFT_JIS and SHIFT_JISX0213 charmaps.
23983
23984 * localedata/Makefile (test-input-data): Use full file name.
23985 * localedata/da_DK.in: Rename to...
23986 * localedata/da_DK.ISO-8859-1.in: ...this.
23987 * localedata/de_DE.in: Rename to...
23988 * localedata/de_DE.ISO-8859-1.in: ...this.
23989 * localedata/en_US.in: Rename to...
23990 * localedata/en_US.ISO-8859-1.in: ...this.
23991 * localedata/fr_FR.in: Rename to...
23992 * localedata/fr_FR.UTF-8.in: ... this.
23993 * localedata/hr_HR.in: Rename to...
23994 * localedata/hr_HR.ISO-8859-2.in: ...this.
23995 * localedata/hu_HU.in: Rename to...
23996 * localedata/hu_HU.UTF-8.in: ...this.
23997 * localedata/si_LK.in: Rename to...
23998 * localedata/si_LK.UTF-8.in: ...this.
23999 * localedata/sv_SE.in: Rename to...
24000 * localedata/sv_SE.ISO-8859-1.in: ...this.
24001 * localedata/tr_TR.in: Rename to...
24002 * localedata/tr_TR.UTF-8.in: ...this.
24003 * localedata/uk_UA.in: Rename to...
24004 * localedata/uk_UA.UTF-8.in: ...this.
24005 * localedata/sort-test.sh: Test file is locale name with the
24006 suffix.
24007
24008 * localedata/unicode-gen/Makefile (check_i18n): Rename to
24009 check_i18n_ctype. Depend on i18n_ctype-report. Check i18n_ctype-report
24010 file.
24011 * localedata/locales/i18n_ctype: Regenerate.
24012 * localedata/locales/tr_TR: Likewise.
24013 * localedata/locales/translit_circle: Likewise.
24014 * localedata/locales/translit_cjk_compat: Likewise.
24015 * localedata/locales/translit_combining: Likewise.
24016 * localedata/locales/translit_compat: Likewise.
24017 * localedata/locales/translit_font: Likewise.
24018 * localedata/locales/translit_fraction: Likewise.
24019
24020 2017-10-25 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
24021
24022 * sysdeps/powerpc/powerpc64/power7/memcpy.S: Replace
24023 lxvd2x/stxvd2x with lvx/stvx.
24024 * sysdeps/powerpc/powerpc64/power7/memmove.S: Likewise.
24025
24026 2017-10-25 H.J. Lu <hongjiu.lu@intel.com>
24027
24028 * include/alloc_buffer.h: Replace "if if " with "if " in
24029 comments.
24030 * sysdeps/mips/memcpy.S: Likkewise.
24031 * sysdeps/mips/memset.S: Likewise.
24032 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
24033 Likewise.
24034 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf4_core_sse4.S:
24035 Likewise.
24036 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf8_core_avx2.S:
24037 Likewise.
24038
24039 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24040
24041 [BZ #15261]
24042 * localedata/locales/cmn_TW (LC_MESSAGES): Add fullwidth yYnN to
24043 yesexpr and noexpr.
24044 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24045 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24046 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24047 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24048 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24049 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24050 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24051
24052 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24053
24054 * localedata/locales/am_ET (LC_MESSAGES): Sync with CLDR.
24055 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24056 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24057 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24058 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24059 * localedata/locales/mfe_MU (LC_MESSAGES): Likewise.
24060 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24061 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24062 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24063 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24064 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24065 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24066
24067 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24068
24069 * localedata/locales/aa_ET (LC_MESSAGES): Use ASCII as much
24070 as possible for better readability of the source.
24071 * localedata/locales/af_ZA (LC_MESSAGES): Likewise.
24072 * localedata/locales/ak_GH (LC_MESSAGES): Likewise.
24073 * localedata/locales/am_ET (LC_MESSAGES): Likewise.
24074 * localedata/locales/anp_IN (LC_MESSAGES): Likewise.
24075 * localedata/locales/ar_EG (LC_MESSAGES): Likewise.
24076 * localedata/locales/as_IN (LC_MESSAGES): Likewise.
24077 * localedata/locales/ast_ES (LC_MESSAGES): Likewise.
24078 * localedata/locales/ayc_PE (LC_MESSAGES): Likewise.
24079 * localedata/locales/az_AZ (LC_MESSAGES): Likewise.
24080 * localedata/locales/az_IR (LC_MESSAGES): Likewise.
24081 * localedata/locales/be_BY (LC_MESSAGES): Likewise.
24082 * localedata/locales/be_BY@latin (LC_MESSAGES): Likewise.
24083 * localedata/locales/bem_ZM (LC_MESSAGES): Likewise.
24084 * localedata/locales/ber_MA (LC_MESSAGES): Likewise.
24085 * localedata/locales/bg_BG (LC_MESSAGES): Likewise.
24086 * localedata/locales/bhb_IN (LC_MESSAGES): Likewise.
24087 * localedata/locales/bi_VU (LC_MESSAGES): Likewise.
24088 * localedata/locales/bo_CN (LC_MESSAGES): Likewise.
24089 * localedata/locales/br_FR (LC_MESSAGES): Likewise.
24090 * localedata/locales/bs_BA (LC_MESSAGES): Likewise.
24091 * localedata/locales/ca_ES (LC_MESSAGES): Likewise.
24092 * localedata/locales/ce_RU (LC_MESSAGES): Likewise.
24093 * localedata/locales/crh_UA (LC_MESSAGES): Likewise.
24094 * localedata/locales/cs_CZ (LC_MESSAGES): Likewise.
24095 * localedata/locales/csb_PL (LC_MESSAGES): Likewise.
24096 * localedata/locales/cv_RU (LC_MESSAGES): Likewise.
24097 * localedata/locales/cy_GB (LC_MESSAGES): Likewise.
24098 * localedata/locales/da_DK (LC_MESSAGES): Likewise.
24099 * localedata/locales/de_DE (LC_MESSAGES): Likewise.
24100 * localedata/locales/dv_MV (LC_MESSAGES): Likewise.
24101 * localedata/locales/dz_BT (LC_MESSAGES): Likewise.
24102 * localedata/locales/el_GR (LC_MESSAGES): Likewise.
24103 * localedata/locales/en_CA (LC_MESSAGES): Likewise.
24104 * localedata/locales/en_US (LC_MESSAGES): Likewise.
24105 * localedata/locales/es_ES (LC_MESSAGES): Likewise.
24106 * localedata/locales/et_EE (LC_MESSAGES): Likewise.
24107 * localedata/locales/eu_ES (LC_MESSAGES): Likewise.
24108 * localedata/locales/fa_IR (LC_MESSAGES): Likewise.
24109 * localedata/locales/ff_SN (LC_MESSAGES): Likewise.
24110 * localedata/locales/fi_FI (LC_MESSAGES): Likewise.
24111 * localedata/locales/fil_PH (LC_MESSAGES): Likewise.
24112 * localedata/locales/fo_FO (LC_MESSAGES): Likewise.
24113 * localedata/locales/fr_BE (LC_MESSAGES): Likewise.
24114 * localedata/locales/fr_CH (LC_MESSAGES): Likewise.
24115 * localedata/locales/fr_FR (LC_MESSAGES): Likewise.
24116 * localedata/locales/fr_LU (LC_MESSAGES): Likewise.
24117 * localedata/locales/fur_IT (LC_MESSAGES): Likewise.
24118 * localedata/locales/fy_DE (LC_MESSAGES): Likewise.
24119 * localedata/locales/ga_IE (LC_MESSAGES): Likewise.
24120 * localedata/locales/gd_GB (LC_MESSAGES): Likewise.
24121 * localedata/locales/gl_ES (LC_MESSAGES): Likewise.
24122 * localedata/locales/gu_IN (LC_MESSAGES): Likewise.
24123 * localedata/locales/gv_GB (LC_MESSAGES): Likewise.
24124 * localedata/locales/ha_NG (LC_MESSAGES): Likewise.
24125 * localedata/locales/hak_TW (LC_MESSAGES): Likewise.
24126 * localedata/locales/he_IL (LC_MESSAGES): Likewise.
24127 * localedata/locales/hif_FJ (LC_MESSAGES): Likewise.
24128 * localedata/locales/hne_IN (LC_MESSAGES): Likewise.
24129 * localedata/locales/hr_HR (LC_MESSAGES): Likewise.
24130 * localedata/locales/hsb_DE (LC_MESSAGES): Likewise.
24131 * localedata/locales/ht_HT (LC_MESSAGES): Likewise.
24132 * localedata/locales/hu_HU (LC_MESSAGES): Likewise.
24133 * localedata/locales/hy_AM (LC_MESSAGES): Likewise.
24134 * localedata/locales/ia_FR (LC_MESSAGES): Likewise.
24135 * localedata/locales/id_ID (LC_MESSAGES): Likewise.
24136 * localedata/locales/ig_NG (LC_MESSAGES): Likewise.
24137 * localedata/locales/ik_CA (LC_MESSAGES): Likewise.
24138 * localedata/locales/is_IS (LC_MESSAGES): Likewise.
24139 * localedata/locales/it_CH (LC_MESSAGES): Likewise.
24140 * localedata/locales/it_IT (LC_MESSAGES): Likewise.
24141 * localedata/locales/iu_CA (LC_MESSAGES): Likewise.
24142 * localedata/locales/ja_JP (LC_MESSAGES): Likewise.
24143 * localedata/locales/kk_KZ (LC_MESSAGES): Likewise.
24144 * localedata/locales/kl_GL (LC_MESSAGES): Likewise.
24145 * localedata/locales/ko_KR (LC_MESSAGES): Likewise.
24146 * localedata/locales/ks_IN (LC_MESSAGES): Likewise.
24147 * localedata/locales/ku_TR (LC_MESSAGES): Likewise.
24148 * localedata/locales/kw_GB (LC_MESSAGES): Likewise.
24149 * localedata/locales/ky_KG (LC_MESSAGES): Likewise.
24150 * localedata/locales/lb_LU (LC_MESSAGES): Likewise.
24151 * localedata/locales/lg_UG (LC_MESSAGES): Likewise.
24152 * localedata/locales/li_NL (LC_MESSAGES): Likewise.
24153 * localedata/locales/lij_IT (LC_MESSAGES): Likewise.
24154 * localedata/locales/ln_CD (LC_MESSAGES): Likewise.
24155 * localedata/locales/lo_LA (LC_MESSAGES): Likewise.
24156 * localedata/locales/lt_LT (LC_MESSAGES): Likewise.
24157 * localedata/locales/lv_LV (LC_MESSAGES): Likewise.
24158 * localedata/locales/lzh_TW (LC_MESSAGES): Likewise.
24159 * localedata/locales/mg_MG (LC_MESSAGES): Likewise.
24160 * localedata/locales/mhr_RU (LC_MESSAGES): Likewise.
24161 * localedata/locales/mi_NZ (LC_MESSAGES): Likewise.
24162 * localedata/locales/mk_MK (LC_MESSAGES): Likewise.
24163 * localedata/locales/ml_IN (LC_MESSAGES): Likewise.
24164 * localedata/locales/mn_MN (LC_MESSAGES): Likewise.
24165 * localedata/locales/ms_MY (LC_MESSAGES): Likewise.
24166 * localedata/locales/mt_MT (LC_MESSAGES): Likewise.
24167 * localedata/locales/my_MM (LC_MESSAGES): Likewise.
24168 * localedata/locales/nan_TW (LC_MESSAGES): Likewise.
24169 * localedata/locales/nan_TW@latin (LC_MESSAGES): Likewise.
24170 * localedata/locales/nb_NO (LC_MESSAGES): Likewise.
24171 * localedata/locales/nds_DE (LC_MESSAGES): Likewise.
24172 * localedata/locales/nds_NL (LC_MESSAGES): Likewise.
24173 * localedata/locales/ne_NP (LC_MESSAGES): Likewise.
24174 * localedata/locales/nhn_MX (LC_MESSAGES): Likewise.
24175 * localedata/locales/niu_NU (LC_MESSAGES): Likewise.
24176 * localedata/locales/nl_NL (LC_MESSAGES): Likewise.
24177 * localedata/locales/nn_NO (LC_MESSAGES): Likewise.
24178 * localedata/locales/nr_ZA (LC_MESSAGES): Likewise.
24179 * localedata/locales/nso_ZA (LC_MESSAGES): Likewise.
24180 * localedata/locales/oc_FR (LC_MESSAGES): Likewise.
24181 * localedata/locales/om_ET (LC_MESSAGES): Likewise.
24182 * localedata/locales/or_IN (LC_MESSAGES): Likewise.
24183 * localedata/locales/os_RU (LC_MESSAGES): Likewise.
24184 * localedata/locales/pa_IN (LC_MESSAGES): Likewise.
24185 * localedata/locales/pa_PK (LC_MESSAGES): Likewise.
24186 * localedata/locales/pap_AW (LC_MESSAGES): Likewise.
24187 * localedata/locales/pap_CW (LC_MESSAGES): Likewise.
24188 * localedata/locales/pl_PL (LC_MESSAGES): Likewise.
24189 * localedata/locales/ps_AF (LC_MESSAGES): Likewise.
24190 * localedata/locales/pt_BR (LC_MESSAGES): Likewise.
24191 * localedata/locales/quz_PE (LC_MESSAGES): Likewise.
24192 * localedata/locales/raj_IN (LC_MESSAGES): Likewise.
24193 * localedata/locales/ro_RO (LC_MESSAGES): Likewise.
24194 * localedata/locales/ru_RU (LC_MESSAGES): Likewise.
24195 * localedata/locales/ru_UA (LC_MESSAGES): Likewise.
24196 * localedata/locales/rw_RW (LC_MESSAGES): Likewise.
24197 * localedata/locales/sa_IN (LC_MESSAGES): Likewise.
24198 * localedata/locales/sc_IT (LC_MESSAGES): Likewise.
24199 * localedata/locales/sd_IN@devanagari (LC_MESSAGES): Likewise.
24200 * localedata/locales/se_NO (LC_MESSAGES): Likewise.
24201 * localedata/locales/sgs_LT (LC_MESSAGES): Likewise.
24202 * localedata/locales/si_LK (LC_MESSAGES): Likewise.
24203 * localedata/locales/sk_SK (LC_MESSAGES): Likewise.
24204 * localedata/locales/sl_SI (LC_MESSAGES): Likewise.
24205 * localedata/locales/sm_WS (LC_MESSAGES): Likewise.
24206 * localedata/locales/so_DJ (LC_MESSAGES): Likewise.
24207 * localedata/locales/sq_AL (LC_MESSAGES): Likewise.
24208 * localedata/locales/sr_RS (LC_MESSAGES): Likewise.
24209 * localedata/locales/sr_RS@latin (LC_MESSAGES): Likewise.
24210 * localedata/locales/ss_ZA (LC_MESSAGES): Likewise.
24211 * localedata/locales/st_ZA (LC_MESSAGES): Likewise.
24212 * localedata/locales/sv_SE (LC_MESSAGES): Likewise.
24213 * localedata/locales/sw_KE (LC_MESSAGES): Likewise.
24214 * localedata/locales/szl_PL (LC_MESSAGES): Likewise.
24215 * localedata/locales/tcy_IN (LC_MESSAGES): Likewise.
24216 * localedata/locales/tg_TJ (LC_MESSAGES): Likewise.
24217 * localedata/locales/th_TH (LC_MESSAGES): Likewise.
24218 * localedata/locales/the_NP (LC_MESSAGES): Likewise.
24219 * localedata/locales/ti_ER (LC_MESSAGES): Likewise.
24220 * localedata/locales/tk_TM (LC_MESSAGES): Likewise.
24221 * localedata/locales/tn_ZA (LC_MESSAGES): Likewise.
24222 * localedata/locales/to_TO (LC_MESSAGES): Likewise.
24223 * localedata/locales/tr_TR (LC_MESSAGES): Likewise.
24224 * localedata/locales/ts_ZA (LC_MESSAGES): Likewise.
24225 * localedata/locales/tt_RU (LC_MESSAGES): Likewise.
24226 * localedata/locales/tt_RU@iqtelif (LC_MESSAGES): Likewise.
24227 * localedata/locales/uk_UA (LC_MESSAGES): Likewise.
24228 * localedata/locales/unm_US (LC_MESSAGES): Likewise.
24229 * localedata/locales/ur_IN (LC_MESSAGES): Likewise.
24230 * localedata/locales/ur_PK (LC_MESSAGES): Likewise.
24231 * localedata/locales/uz_UZ (LC_MESSAGES): Likewise.
24232 * localedata/locales/uz_UZ@cyrillic (LC_MESSAGES): Likewise.
24233 * localedata/locales/ve_ZA (LC_MESSAGES): Likewise.
24234 * localedata/locales/vi_VN (LC_MESSAGES): Likewise.
24235 * localedata/locales/wa_BE (LC_MESSAGES): Likewise.
24236 * localedata/locales/wo_SN (LC_MESSAGES): Likewise.
24237 * localedata/locales/xh_ZA (LC_MESSAGES): Likewise.
24238 * localedata/locales/yi_US (LC_MESSAGES): Likewise.
24239 * localedata/locales/yo_NG (LC_MESSAGES): Likewise.
24240 * localedata/locales/yue_HK (LC_MESSAGES): Likewise.
24241 * localedata/locales/zh_CN (LC_MESSAGES): Likewise.
24242 * localedata/locales/zh_HK (LC_MESSAGES): Likewise.
24243 * localedata/locales/zh_TW (LC_MESSAGES): Likewise.
24244 * localedata/locales/zu_ZA (LC_MESSAGES): Likewise.
24245
24246 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24247
24248 * localedata/locales/brx_IN (LC_MESSAGES): Fix yesexpr and noexpr
24249 (Use first letters of yesstr and nostr correctly instead of using
24250 full words).
24251
24252 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24253
24254 * localedata/locales/ta_IN (LC_MESSAGES): Fix yesexpr and noexpr
24255 (Use first letters of yesstr and nostr correctly).
24256
24257 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24258
24259 * localedata/locales/hi_IN (LC_MESSAGES): In yesexpr and noexpr,
24260 also check for the first characters of yesstr and nostr.
24261 * localedata/locales/kn_IN (LC_MESSAGES): Likewise.
24262 * localedata/locales/ks_IN@devanagari (LC_MESSAGES): Likewise.
24263
24264 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24265
24266 * localedata/locales/cmn_TW (LC_MESSAGES): In yesexpr and noexpr,
24267 also check for Chinese characters.
24268
24269 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24270
24271 * localedata/locales/chr_US (LC_MESSAGES): In yesexpr and noexpr,
24272 match also for the contents of yesstr and nostr. As the first letter
24273 of yesstr and nostr is equal, checking only for the first letter
24274 is not enough.
24275
24276 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24277
24278 * localedata/locales/ber_DZ (LC_MESSAGES): Use copy "kab_DZ",
24279 it is the same according to Belkacem Mohammed <belkacem77@gmail.com>.
24280
24281 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24282
24283 * localedata/locales/kab_DZ (LC_IDENTIFICATION): Add e-mail
24284 of main contributor.
24285
24286 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24287
24288 * localedata/locales/zh_SG (LC_MESSAGES): Use copy "zh_CN"
24289 instead of using English.
24290
24291 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24292
24293 * localedata/locales/ug_CN (LC_MESSAGES): Fix noexpr and yesexpr
24294 by including the first letters of nostr and yesexpr in the regexp.
24295 Also make it more readable by using ASCII where possible.
24296
24297 2017-10-25 Mike FABIAN <mfabian@redhat.com>
24298
24299 * localedata/locales/te_IN (LC_MESSAGES): Fix noexpr by including
24300 the first letter of nostr in the regexp. It agrees with CLDR now.
24301 Also make it more readable by using ASCII where possible.
24302
24303 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24304
24305 * localedata/locales/km_KH (LC_MESSAGES): Fix yestr and nostr.
24306 The yesstr and nostr apparently came from CLDR. And CLDR has a bug there:
24307 these strings contain a U+17D6 (which somewhat looks like a colon)
24308 instead of a real colon to separate the full words for “yes”
24309 and “no” from the single letter responses.
24310
24311 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24312
24313 * localedata/locales/ka_GE (LC_MESSAGES): Fix yesexp to make
24314 it agree with CLDR (include the first letter of yesstr).
24315 Also make it more readable by using ASCII where possible.
24316
24317 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24318
24319 * localedata/locales/mr_IN (LC_MESSAGES): Fix yesstr and nostr
24320 and improve yesexpr and noexpr. The yesstr and nostr apparently
24321 came from CLDR. And CLDR has a bug there: these strings contain
24322 a U+0903 (which looks like a colon) instead of a real colon
24323 to separate the full words for “yes” and “no” from the single
24324 letter responses.
24325
24326 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24327
24328 * localedata/locales/bn_BD (LC_MESSAGES): Use only the first
24329 letters of the full yesstr and nostr in yesexpr and noexpr.
24330
24331 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24332
24333 * localedata/locales/an_ES (LC_MESSAGES): Add yesstr and nostr.
24334 * localedata/locales/an_ES (LC_ADDRESS): Add lang_term and lang_lib.
24335 * localedata/locales/an_ES: Make source more readable by using ASCII
24336 where possible.
24337
24338 2017-10-24 Mike FABIAN <mfabian@redhat.com>
24339
24340 [BZ #20952]
24341 * localedata/locales/yuw_PG: New file.
24342 * localedata/SUPPORTED: Add yuw_PG/UTF-8.
24343 * locale/iso-639.def: Add Yau (Uruwa).
24344
24345 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24346
24347 * malloc/malloc.c (_int_malloc): Add SINGLE_THREAD_P path.
24348
24349 2017-10-23 Wilco Dijkstra <wdijkstr@arm.com>
24350
24351 * malloc/malloc.c (__libc_malloc): Add SINGLE_THREAD_P path.
24352 (__libc_realloc): Likewise.
24353 (_mid_memalign): Likewise.
24354 (__libc_calloc): Likewise.
24355
24356 2017-10-23 Mike FABIAN <mfabian@redhat.com>
24357
24358 * localedata/locales/tpi_PG (LC_MESSAGES): Fix yesexpr and noexpr
24359 by adding the generic +1 and -0 as in all other locales.
24360 * localedata/locales/tpi_PG (LC_TIME): Fix some typos in the month and
24361 day names and make it more readable by using ASCII where possible.
24362
24363 2017-10-24 Joseph Myers <joseph@codesourcery.com>
24364
24365 * sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
24366 (FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
24367
24368 2017-10-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24369
24370 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
24371 WNOHANG in waitpid call.
24372
24373 2017-10-23 Siddhesh Poyarekar <siddhesh@sourceware.org>
24374
24375 * manual/conf.texi (_SC_LEVEL1_DCACHE_LINESIZE,
24376 _SC_LEVEL1_ICACHE_LINESIZE): Document aarch64 caveat.
24377
24378 * manual/conf.texi (_SC_LEVEL1_ICACHE_SIZE,
24379 _SC_LEVEL1_ICACHE_ASSOC, _SC_LEVEL1_ICACHE_LINESIZE,
24380 _SC_LEVEL1_DCACHE_SIZE, _SC_LEVEL1_DCACHE_ASSOC,
24381 _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL2_CACHE_SIZE,
24382 _SC_LEVEL2_CACHE_ASSOC, _SC_LEVEL2_CACHE_LINESIZE,
24383 _SC_LEVEL3_CACHE_SIZE, _SC_LEVEL3_CACHE_ASSOC,
24384 _SC_LEVEL3_CACHE_LINESIZE, _SC_LEVEL4_CACHE_SIZE,
24385 _SC_LEVEL4_CACHE_ASSOC, _SC_LEVEL4_CACHE_LINESIZE): New
24386 variables.
24387
24388 2017-10-23 Michael Collison <michael.collison@arm.com>
24389
24390 * sysdeps/aarch64/fpu/e_sqrt.c (ieee754_sqrt): Replace asm statements
24391 with __builtin_sqrt.
24392 * sysdeps/aarch64/fpu/e_sqrtf.c (ieee754_sqrtf): Replace asm statements
24393 with __builtin_sqrtf.
24394 * sysdeps/aarch64/fpu/s_ceil.c (__ceil): Replace asm statements
24395 with __builtin_ceil.
24396 * sysdeps/aarch64/fpu/s_ceilf.c (__ceilf): Replace asm statements
24397 with __builtin_ceilf.
24398 * sysdeps/aarch64/fpu/s_floor.c (__floor): Replace asm statements
24399 with __builtin_floor.
24400 * sysdeps/aarch64/fpu/s_floorf.c (__floorf): Replace asm statements
24401 with __builtin_floorf.
24402 * sysdeps/aarch64/fpu/s_fma.c (__fma): Replace asm statements
24403 with __builtin_fma.
24404 * sysdeps/aarch64/fpu/s_fmaf.c (__fmaf): Replace asm statements
24405 with __builtin_fmaf.
24406 * sysdeps/aarch64/fpu/s_fmax.c (__fmax): Replace asm statements
24407 with __builtin_fmax.
24408 * sysdeps/aarch64/fpu/s_fmaxf.c (__fmaxf): Replace asm statements
24409 with __builtin_fmaxf.
24410 * sysdeps/aarch64/fpu/s_fmin.c (__fmin): Replace asm statements
24411 with __builtin_fmin.
24412 * sysdeps/aarch64/fpu/s_fminf.c (__fminf): Replace asm statements
24413 with __builtin_fminf.
24414 * sysdeps/aarch64/fpu/s_frint.c: Delete file.
24415 * sysdeps/aarch64/fpu/s_frintf.c: Delete file.
24416 * sysdeps/aarch64/fpu/s_llrint.c (__llrint): Replace asm statements
24417 with builtin_rint and conversion to int.
24418 * sysdeps/aarch64/fpu/s_llrintf.c (__llrintf): Likewise.
24419 * sysdeps/aarch64/fpu/s_llround.c (__llround): Replace asm statements
24420 with builtin_llround.
24421 * sysdeps/aarch64/fpu/s_llroundf.c (__llroundf): Likewise.
24422 * sysdeps/aarch64/fpu/s_lrint.c (__lrint): Replace asm statements
24423 with builtin_rint and conversion to long int.
24424 * sysdeps/aarch64/fpu/s_lrintf.c (__lrintf): Likewise.
24425 * sysdeps/aarch64/fpu/s_lround.c (__lround): Replace asm statements
24426 with builtin_lround.
24427 * sysdeps/aarch64/fpu/s_lroundf.c (__lroundf): Replace asm statements
24428 with builtin_lroundf.
24429 * sysdeps/aarch64/fpu/s_nearbyint.c (__nearbyint): Replace asm
24430 statements with __builtin_nearbyint.
24431 * sysdeps/aarch64/fpu/s_nearbyintf.c (__nearbyintf): Replace asm
24432 statements with __builtin_nearbyintf.
24433 * sysdeps/aarch64/fpu/s_rint.c (__rint): Replace asm statements
24434 with __builtin_rint.
24435 * sysdeps/aarch64/fpu/s_rintf.c (__rintf): Replace asm statements
24436 with __builtin_rintf.
24437 * sysdeps/aarch64/fpu/s_round.c (__round): Replace asm statements
24438 with __builtin_round.
24439 * sysdeps/aarch64/fpu/s_roundf.c (__roundf): Replace asm statements
24440 with __builtin_roundf.
24441 * sysdeps/aarch64/fpu/s_trunc.c (__trunc): Replace asm statements
24442 with __builtin_trunc.
24443 * sysdeps/aarch64/fpu/s_truncf.c (__truncf): Replace asm statements
24444 with __builtin_truncf.
24445 * sysdeps/aarch64/fpu/Makefile: Build e_sqrt[f].c with -fno-math-errno,
24446 and s_l[l]round[f].c too.
24447
24448 2017-10-23 Alan Modra <amodra@gmail.com>
24449
24450 * sysdeps/powerpc/powerpc64/power8/strncpy.S: Move LR cfi.
24451 Adjust stack after restoring regs. Add missing LR cfi_restore.
24452
24453 2017-10-23 Alan Modra <amodra@gmail.com>
24454
24455 * sysdeps/powerpc/powerpc64/power7/strncpy.S: Decrease FRAMESIZE.
24456 Move LR save and frame setup/teardown and LR restore to
24457 immediately around memset call. Provide cfi.
24458
24459 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24460
24461 * sysdeps/i386/fpu/e_powf.S: Removed.
24462 * sysdeps/i386/fpu/e_powf_log2_data.c: Likewise.
24463 * sysdeps/i386/fpu/w_powf.c: Likewise.
24464 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_powf.c.
24465 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24466 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24467 Add e_powf-sse2.
24468 (CFLAGS-e_powf-sse2.c): New.
24469 * sysdeps/i386/i686/fpu/multiarch/e_powf-sse2.c: New file.
24470 * sysdeps/i386/i686/fpu/multiarch/e_powf.c: Likewise.
24471
24472 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24473
24474 * sysdeps/i386/fpu/e_log2f.S: Removed.
24475 * sysdeps/i386/fpu/e_log2f_data.c: Likewise.
24476 * sysdeps/i386/fpu/w_log2f.c: Likewise.
24477 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_log2f.c.
24478 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24479 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24480 Add e_log2f-sse2.
24481 (CFLAGS-e_log2f-sse2.c): New.
24482 * sysdeps/i386/i686/fpu/multiarch/e_log2f-sse2.c: New file.
24483 * sysdeps/i386/i686/fpu/multiarch/e_log2f.c: Likewise.
24484
24485 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24486
24487 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24488 Add e_powf-fma.
24489 (CFLAGS-e_powf-fma.c): New.
24490 * sysdeps/x86_64/fpu/multiarch/e_powf-fma.c: New file.
24491 * sysdeps/x86_64/fpu/multiarch/e_powf.c: Likewise.
24492
24493 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24494
24495 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24496 Add e_log2f-fma.
24497 (CFLAGS-e_log2f-fma.c): New.
24498 * sysdeps/x86_64/fpu/multiarch/e_log2f-fma.c: New file.
24499 * sysdeps/x86_64/fpu/multiarch/e_log2f.c: Likewise.
24500
24501 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24502
24503 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24504 Add e_logf-fma.
24505 (CFLAGS-e_logf-fma.c): New.
24506 * sysdeps/x86_64/fpu/multiarch/e_logf-fma.c: New file.
24507 * sysdeps/x86_64/fpu/multiarch/e_logf.c: Likewise.
24508
24509 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24510
24511 * sysdeps/i386/fpu/e_logf.S: Removed.
24512 * sysdeps/i386/fpu/e_logf_data.c: Likewise.
24513 * sysdeps/i386/fpu/w_logf.c: Likewise.
24514 * sysdeps/i386/i686/fpu/e_logf.S: Likewise.
24515 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_logf.c.
24516 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24517 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24518 Add e_logf-sse2.
24519 (CFLAGS-e_logf-sse2.c): New.
24520 * sysdeps/i386/i686/fpu/multiarch/e_logf-sse2.c: New file.
24521 * sysdeps/i386/i686/fpu/multiarch/e_logf.c: Likewise.
24522
24523 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24524
24525 * sysdeps/i386/fpu/e_exp2f.S: Removed.
24526 * sysdeps/i386/fpu/w_exp2f.c: Likewise.
24527 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_exp2f.c.
24528 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24529 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24530 Add e_exp2f-sse2.
24531 (CFLAGS-e_exp2f-sse2.c): New.
24532 * sysdeps/i386/i686/fpu/multiarch/e_exp2f-sse2.c: New file.
24533 * sysdeps/i386/i686/fpu/multiarch/e_exp2f.c: Likewise.
24534
24535 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24536
24537 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24538 Add e_exp2f-fma.
24539 (CFLAGS-e_exp2f-fma.c): New.
24540 * sysdeps/x86_64/fpu/multiarch/e_exp2f-fma.c: New file.
24541 * sysdeps/x86_64/fpu/multiarch/e_exp2f.c: Likewise.
24542
24543 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24544
24545 * sysdeps/i386/fpu/e_exp2f_data.c: Removed.
24546 * sysdeps/i386/fpu/e_expf.S: Likewise.
24547 * sysdeps/i386/fpu/math_errf.c: Likewise.
24548 * sysdeps/i386/fpu/w_expf.c: Likewise.
24549 * sysdeps/i386/i686/fpu/multiarch/e_expf-ia32.S: Likewise.
24550 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
24551 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: Likewise.
24552 * sysdeps/i386/fpu/libm-test-ulps: Updated for generic e_expf.c.
24553 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
24554 * sysdeps/i386/i686/fpu/multiarch/Makefile (libm-sysdep_routines):
24555 Remove e_expf-ia32.
24556 (CFLAGS-e_expf-sse2.c): New.
24557 * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.c: New file.
24558 * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Rewritten.
24559
24560 2017-10-22 H.J. Lu <hongjiu.lu@intel.com>
24561
24562 * sysdeps/x86_64/fpu/e_expf.S: Removed.
24563 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: Likewise.
24564 * sysdeps/x86_64/fpu/w_expf.c: Likewise.
24565 * sysdeps/x86_64/fpu/libm-test-ulps: Updated for generic
24566 e_expf.c.
24567 * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-e_expf-fma.c):
24568 New.
24569 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.c: New file.
24570 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
24571 Renamed to ...
24572 (__redirect_expf): This.
24573 (SYMBOL_NAME): Changed to expf.
24574 (__ieee754_expf): Renamed to ...
24575 (__expf): This.
24576 (__GI___expf): This.
24577 (__ieee754_expf): Add strong_alias.
24578 (__expf_finite): Likewise.
24579 (__expf): New.
24580 Include <sysdeps/ieee754/flt-32/e_expf.c>.
24581
24582 2017-10-22 Paul Eggert <eggert@cs.ucla.edu>
24583
24584 [BZ #22332]
24585 * posix/glob.c (__glob): Fix buffer overflow during GLOB_TILDE
24586 unescaping.
24587
24588 2017-10-21 Florian Weimer <fweimer@redhat.com>
24589
24590 * posix/Makefile (tests): Add tst-glob-tilde.
24591 (tests-special): Add tst-glob-tilde-mem.out
24592 (tst-glob-tilde-ENV): Set MALLOC_TRACE.
24593 (tst-glob-tilde-mem.out): Add mtrace check.
24594 * posix/tst-glob-tilde.c: New file.
24595
24596 2017-10-20 Joseph Myers <joseph@codesourcery.com>
24597
24598 * bits/floatn-common.h: New file.
24599 * math/Makefile (headers): Add bits/floatn-common.h.
24600 * bits/floatn.h: Include <bits/floatn-common.h>.
24601 * sysdeps/ia64/bits/floatn.h: Likewise.
24602 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24603 * sysdeps/mips/ieee754/bits/floatn.h: Likewise.
24604 * sysdeps/powerpc/bits/floatn.h: Likewise.
24605 * sysdeps/x86/bits/floatn.h: Likewise.
24606
24607 2017-10-20 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24608
24609 * configure.ac (libc_cv_gcc_incompatbile_alias): New define:
24610 indicates whether compiler emits an warning for alias for
24611 functions with incompatible types.
24612
24613 [BZ #22273]
24614 * sysdeps/unix/sysv/linux/spawni.c (__spawnix): Handle the case where
24615 the auxiliary process is terminated by a signal before calling _exit
24616 or execve.
24617
24618 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24619
24620 [BZ #21265]
24621 * sysdeps/x86/cpu-features-offsets.sym (XSAVE_STATE_SIZE_OFFSET):
24622 New.
24623 * sysdeps/x86/cpu-features.c: Include <libc-pointer-arith.h>.
24624 (get_common_indeces): Set xsave_state_size, xsave_state_full_size
24625 and bit_arch_XSAVEC_Usable if needed.
24626 (init_cpu_features): Remove bit_arch_Use_dl_runtime_resolve_slow
24627 and bit_arch_Use_dl_runtime_resolve_opt.
24628 * sysdeps/x86/cpu-features.h (bit_arch_Use_dl_runtime_resolve_opt):
24629 Removed.
24630 (bit_arch_Use_dl_runtime_resolve_slow): Likewise.
24631 (bit_arch_Prefer_No_AVX512): Updated.
24632 (bit_arch_MathVec_Prefer_No_AVX512): Likewise.
24633 (bit_arch_XSAVEC_Usable): New.
24634 (STATE_SAVE_OFFSET): Likewise.
24635 (STATE_SAVE_MASK): Likewise.
24636 [__ASSEMBLER__]: Include <cpu-features-offsets.h>.
24637 (cpu_features): Add xsave_state_size and xsave_state_full_size.
24638 (index_arch_Use_dl_runtime_resolve_opt): Removed.
24639 (index_arch_Use_dl_runtime_resolve_slow): Likewise.
24640 (index_arch_XSAVEC_Usable): New.
24641 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
24642 Support XSAVEC_Usable. Remove Use_dl_runtime_resolve_slow.
24643 * sysdeps/x86_64/Makefile (tst-x86_64-1-ENV): New if tunables
24644 is enabled.
24645 * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup):
24646 Replace _dl_runtime_resolve_sse, _dl_runtime_resolve_avx,
24647 _dl_runtime_resolve_avx_slow, _dl_runtime_resolve_avx_opt,
24648 _dl_runtime_resolve_avx512 and _dl_runtime_resolve_avx512_opt
24649 with _dl_runtime_resolve_fxsave, _dl_runtime_resolve_xsave and
24650 _dl_runtime_resolve_xsavec.
24651 * sysdeps/x86_64/dl-trampoline.S (DL_RUNTIME_UNALIGNED_VEC_SIZE):
24652 Removed.
24653 (DL_RUNTIME_RESOLVE_REALIGN_STACK): Check STATE_SAVE_ALIGNMENT
24654 instead of VEC_SIZE.
24655 (REGISTER_SAVE_BND0): Removed.
24656 (REGISTER_SAVE_BND1): Likewise.
24657 (REGISTER_SAVE_BND3): Likewise.
24658 (REGISTER_SAVE_RAX): Always defined to 0.
24659 (VMOV): Removed.
24660 (_dl_runtime_resolve_avx): Likewise.
24661 (_dl_runtime_resolve_avx_slow): Likewise.
24662 (_dl_runtime_resolve_avx_opt): Likewise.
24663 (_dl_runtime_resolve_avx512): Likewise.
24664 (_dl_runtime_resolve_avx512_opt): Likewise.
24665 (_dl_runtime_resolve_sse): Likewise.
24666 (_dl_runtime_resolve_sse_vex): Likewise.
24667 (USE_FXSAVE): New.
24668 (_dl_runtime_resolve_fxsave): Likewise.
24669 (USE_XSAVE): Likewise.
24670 (_dl_runtime_resolve_xsave): Likewise.
24671 (USE_XSAVEC): Likewise.
24672 (_dl_runtime_resolve_xsavec): Likewise.
24673 * sysdeps/x86_64/dl-trampoline.h (_dl_runtime_resolve_avx512):
24674 Removed.
24675 (_dl_runtime_resolve_avx512_opt): Likewise.
24676 (_dl_runtime_resolve_avx): Likewise.
24677 (_dl_runtime_resolve_avx_opt): Likewise.
24678 (_dl_runtime_resolve_sse): Likewise.
24679 (_dl_runtime_resolve_sse_vex): Likewise.
24680 (_dl_runtime_resolve_fxsave): New.
24681 (_dl_runtime_resolve_xsave): Likewise.
24682 (_dl_runtime_resolve_xsavec): Likewise.
24683
24684 2017-10-20 Paul Eggert <eggert@cs.ucla.edu>
24685
24686 [BZ #22320]
24687 CVE-2017-15670
24688 * posix/glob.c (__glob): Fix one-byte overflow.
24689
24690 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24691
24692 * malloc/malloc.c (sysdep-cancel.h): Add include.
24693
24694 2017-10-20 Wilco Dijkstra <wdijkstr@arm.com>
24695
24696 * malloc/malloc.c (_int_free): Add SINGLE_THREAD_P fast paths.
24697
24698 2017-10-20 Will Hawkins <hawkinsw@borlaugic.com>
24699
24700 * resolv/Makefile [$(build-shared)$(have-thread-library) == yesyes]
24701 (tests): Remove $(objpfx)ga_test depdendency.
24702 * resolv/ga_test.c: Remove file.
24703
24704 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24705
24706 [BZ #18812]
24707 * localedata/SUPPORTED: Add kab_DZ/UTF-8.
24708 * localedata/locales/kab_DZ: New file.
24709
24710 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24711
24712 * sysdeps/m68k/dl-machine.h (elf_machine_load_address): Use
24713 _dl_relocate_static_pie instead of _dl_start to compute load
24714 address in static PIE.
24715
24716 2017-10-20 H.J. Lu <hongjiu.lu@intel.com>
24717
24718 * sysdeps/m68k/start.S (_start): Check PIC instead of SHARED.
24719
24720 2017-10-20 Mike FABIAN <mfabian@redhat.com>
24721
24722 [BZ #13605]
24723 * localedata/SUPPORTED: Add shn_MM/UTF-8.
24724 * localedata/locales/shn_MM: New file.
24725
24726 2017-10-20 Florian Weimer <fweimer@redhat.com>
24727
24728 [BZ #22321]
24729 sysconf: Fix missing definition of UIO_MAXIOV on Linux.
24730 * sysdeps/posix/sysconf.c: Include <sys/uio.h>.
24731 * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-sysconf-iov_max.
24732 (tst-sysconf-iov_max): Link with tst-sysconf-iov_max-uapi.o.
24733 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max.c: New file.
24734 * sysdeps/unix/sysv/linux/tst-sysconf-iov_max-uapi.c: Likewise.
24735
24736 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
24737
24738 * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
24739
24740 2017-10-19 Joseph Myers <joseph@codesourcery.com>
24741
24742 * sysdeps/mips/ieee754/bits/floatn.h: New file.
24743
24744 [BZ #22322]
24745 * sysdeps/mips/bits/long-double.h: Move to ....
24746 * sysdeps/mips/ieee754/bits/long-double.h: ... here.
24747
24748 2017-10-19 Wilco Dijkstra <wdijkstr@arm.com>
24749
24750 * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
24751
24752 2017-10-19 Valery Reznic <valery_reznic@yahoo.com>
24753 H.J. Lu <hongjiu.lu@intel.com>
24754
24755 [BZ #22299]
24756 * sysdeps/x86/cpu-features.c (init_cpu_features): Don't set
24757 GLRO(dl_platform) to NULL.
24758 * sysdeps/x86_64/Makefile (tests): Add tst-platform-1.
24759 (modules-names): Add tst-platformmod-1 and
24760 x86_64/tst-platformmod-2.
24761 (CFLAGS-tst-platform-1.c): New.
24762 (CFLAGS-tst-platformmod-1.c): Likewise.
24763 (CFLAGS-tst-platformmod-2.c): Likewise.
24764 (LDFLAGS-tst-platformmod-2.so): Likewise.
24765 ($(objpfx)tst-platform-1): Likewise.
24766 ($(objpfx)tst-platform-1.out): Likewise.
24767 (tst-platform-1-ENV): Likewise.
24768 ($(objpfx)x86_64/tst-platformmod-2.os): Likewise.
24769 * sysdeps/x86_64/tst-platform-1.c: New file.
24770 * sysdeps/x86_64/tst-platformmod-1.c: Likewise.
24771 * sysdeps/x86_64/tst-platformmod-2.c: Likewise.
24772
24773 2017-10-19 Mike FABIAN <mfabian@redhat.com>
24774
24775 [BZ #13994]
24776 * locale/iso-639.def: Add Karbi.
24777 * localedata/SUPPORTED: Add mjw_IN/UTF-8.
24778 * localedata/locales/mjw_IN: New file.
24779
24780 2017-10-18 Joseph Myers <joseph@codesourcery.com>
24781
24782 * sysdeps/ieee754/ldbl-128/Makeconfig: New file.
24783 * sysdeps/ieee754/ldbl-128/bits/floatn.h: Likewise.
24784 * sysdeps/ieee754/ldbl-128/float128-abi.h: Likewise.
24785 * sysdeps/generic/libm-alias-ldouble.h: Include <bits/floatn.h>.
24786 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24787 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24788 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Include
24789 <bits/floatn.h>.
24790 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128]
24791 (libm_alias_ldouble_other_r): Also create _Float128 alias.
24792 * manual/math.texi (Mathematics): Document additional architecture
24793 support for _Float128.
24794 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Update.
24795 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Likewise.
24796 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
24797 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
24798 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
24799 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
24800 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
24801 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
24802 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
24803 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
24804 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
24805 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
24806 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
24807 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
24808 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
24809
24810 2017-10-18 Renlin Li <renlin.li@arm.com>
24811
24812 * sysdeps/aarch64/dl-machine.h (elf_machine_load_address): Use
24813 _DYNAMIC symbol to calculate load address.
24814
24815 2017-10-18 Paul A. Clarke <pc@us.ibm.com>
24816
24817 * sysdeps/powerpc/fpu/fenv_private.h (_FPU_MASK_TRAPS_RN):
24818 (_FPU_MASK_FRAC_INEX_RET_CC): Fix masks to more properly handle
24819 summary bits.
24820 (_FPU_MASK_RN): Expand _FPU_MASK_RN to 64bit hex.
24821 (_FPU_MASK_NOT_RN_NI): Treat bit 52 (left-to-right) as reserved.
24822
24823 2017-10-18 Mike FABIAN <mfabian@redhat.com>
24824
24825 [BZ #16777]
24826 * localedata/locales/pl_PL (LC_MONETARY): Use U+202F as mon_thousands_sep
24827 and improve readability by using more ASCII.
24828 * localedata/locales/pl_PL (LC_NUMERIC): Use U+202F as thousands_sep
24829 and improve readability by using more ASCII.
24830
24831 2017-10-18 Wilco Dijkstra <wdijkstr@arm.com>
24832
24833 * malloc/malloc.c (malloc_state): Use int for have_fastchunks since
24834 not all targets support atomics on bool.
24835
24836 2017-10-17 Joseph Myers <joseph@codesourcery.com>
24837
24838 * include/float.h [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 &&
24839 __GLIBC_USE (IEC_60559_TYPES_EXT)] (FLT128_MAX): Define using
24840 __f128.
24841 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24842 (IEC_60559_TYPES_EXT)] (FLT128_EPSILON): Likewise.
24843 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24844 (IEC_60559_TYPES_EXT)] (FLT128_MIN): Likewise.
24845 [!__GNUC_PREREQ (7, 0) && __HAVE_FLOAT128 && __GLIBC_USE
24846 (IEC_60559_TYPES_EXT)] (FLT128_TRUE_MIN): Likewise.
24847
24848 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24849
24850 * bits/uio-ext.h (RWF_HIPRI, RWF_DSYNC, RWF_SYNC, RWF_NOWAIT): New
24851 defines.
24852
24853 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24854
24855 [BZ #22159]
24856 * malloc/arena.c (ptmalloc_init): Call malloc_init_state.
24857 * malloc/malloc.c (do_check_free_chunk): Fix build bug.
24858 (do_check_remalloced_chunk): Fix build bug.
24859 (do_check_malloc_state): Add assert that checks arena->top.
24860 (malloc_consolidate): Remove initialization.
24861 (int_mallinfo): Remove call to malloc_consolidate.
24862 (__libc_mallopt): Clarify why malloc_consolidate is needed.
24863
24864 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24865
24866 * malloc/malloc.c (FASTCHUNKS_BIT): Remove.
24867 (have_fastchunks): Remove.
24868 (clear_fastchunks): Remove.
24869 (set_fastchunks): Remove.
24870 (malloc_state): Add have_fastchunks.
24871 (malloc_init_state): Use have_fastchunks.
24872 (do_check_malloc_state): Remove incorrect invariant checks.
24873 (_int_malloc): Use have_fastchunks.
24874 (_int_free): Likewise.
24875 (malloc_consolidate): Likewise.
24876
24877 2017-10-17 Wilco Dijkstra <wdijkstr@arm.com>
24878
24879 * malloc/malloc.c (tcache_put): Inline.
24880 (tcache_get): Inline.
24881
24882 2017-10-17 Jordi Mallach <jordi@gnu.org>
24883
24884 Aurelien Jarno <aurelien@aurel32.net>
24885 [BZ #2522]
24886 * localedata/locales/ca_ES@valencia: New file.
24887 * localedata/SUPPORTED: Add ca_ES@valencia/UTF-8.
24888
24889 2017-10-17 Romain Naour <romain.naour@gmail.com> (tiny change)
24890
24891 [BZ #22296]
24892 * math/math.h: Let signbit use the builtin in C++ mode with gcc
24893 < 6.x
24894
24895 2017-10-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
24896
24897 * scripts/build-many-glibcs.py (Context.add_all_configs):
24898 Add arm-linux-gnueabihf multiarch extra_glibcs.
24899
24900 * sysdeps/generic/ifunc-init.h: New file.
24901 * sysdeps/x86/init-arch.h: Use generic ifunc-init.h.
24902
24903 2017-10-17 Mike FABIAN <mfabian@redhat.com>
24904
24905 [BZ #22019]
24906 * localedata/locales/el_GR: Set n_cs_precedes to 0.
24907 * localedata/locales/el_CY: copy "el_GR" because it is identical.
24908 * stdlib/tst-strfmon_l.c: adapt test case.
24909
24910 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24911
24912 * sysdeps/generic/float128-abi.h: New file.
24913 * sysdeps/ieee754/float128/Versions (FLOAT128_VERSION): Move
24914 non-__prefixed symbols to ....
24915 * math/Versions: ... here. Include <float128-abi.h>.
24916 * stdlib/Versions ... and here. Include <float128-abi.h>
24917
24918 2017-10-16 Florian Weimer <fweimer@redhat.com>
24919
24920 * version.h (VERSION): Switch to ".9000" as the development
24921 version suffix.
24922
24923 2017-10-16 Florian Weimer <fweimer@redhat.com>
24924
24925 [BZ #22050]
24926 * malloc/mcheck-init.c (__malloc_initialize_hook): Use
24927 compat_symbol_reference to access non-default version.
24928
24929 2017-10-16 Florian Weimer <fweimer@redhat.com>
24930
24931 * malloc/Makefile (others-extras): Set to mcheck-init.o.
24932
24933 2017-10-16 Carlos O'Donell <carlos@redhat.com>
24934
24935 * include/shlib-compat.h (compat_symbol_reference): Update
24936 comment.
24937
24938 2017-10-16 Joseph Myers <joseph@codesourcery.com>
24939
24940 * math/Makefile (test-types): Add
24941 $(type-float128-$(float128-alias-fcts)).
24942 * math/test-float128.h (TYPE_STR): Define conditional on
24943 [FLT128_MANT_DIG == LDBL_MANT_DIG].
24944 (ULP_IDX): Likewise.
24945 (ULP_I_IDX): Likewise.
24946
24947 * stdlib/strtold.c: Include <bits/floatn.h>
24948 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128): Define
24949 and later undefine as macro. Define as weak alias if
24950 [!USE_WIDE_CHAR].
24951 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128): Define
24952 and later undefine as macro. Define as weak alias if
24953 [USE_WIDE_CHAR].
24954 * sysdeps/ieee754/ldbl-128/strtold_l.c [__HAVE_FLOAT128 &&
24955 !__HAVE_DISTINCT_FLOAT128] (strtof128_l): Define and later
24956 undefine as macro. Define as weak alias if [!USE_WIDE_CHAR].
24957 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24958 Define and later undefine as macro. Define as weak alias if
24959 [USE_WIDE_CHAR].
24960 * sysdeps/ieee754/ldbl-64-128/strtold_l.c: Include
24961 <bits/floatn.h>.
24962 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strtof128_l):
24963 Define and later undefine as macro. Define as weak alias if
24964 [!USE_WIDE_CHAR].
24965 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (wcstof128_l):
24966 Define and later undefine as macro. Define as weak alias if
24967 [USE_WIDE_CHAR].
24968
24969 2017-10-15 Carlos O'Donell <carlos@redhat.com>
24970
24971 * localedata/collate-test.c (allocate_arrays): Don't use \n in
24972 record_verbose messages.
24973
24974 2017-10-15 H.J. Lu <hongjiu.lu@intel.com>
24975
24976 [BZ #22052]
24977 * malloc/hooks.c (realloc_check): Use DIAG_IGNORE_NEEDS_COMMENT
24978 to silence -O3 -Wall warning with GCC 7.
24979
24980 2017-10-14 H.J. Lu <hongjiu.lu@intel.com>
24981
24982 * Makeconfig (+link-static-before-libc): Use the first of
24983 $(CRT-$(@F)) and $(csu-objpfx)$(static-start-installed-name).
24984 * gmon/Makefile (tests): Add tst-gmon-static.
24985 (tests-static): Likewise.
24986 (CFLAGS-tst-gmon-static.c): New.
24987 (CRT-tst-gmon-static): Likewise.
24988 (DEFAULT-LDFLAGS-tst-gmon-static): Likewise.
24989 (tst-gmon-static-ENV): Likewise.
24990 (tests-special): Likewise.
24991 ($(objpfx)tst-gmon-static.out): Likewise.
24992 (clean-tst-gmon-static-data): Likewise.
24993 ($(objpfx)tst-gmon-static-gprof.out): Likewise.
24994 * gmon/tst-gmon-static-gprof.sh: New file.
24995 * gmon/tst-gmon-static.c: Likewise.
24996
24997 2017-10-13 Carlos O'Donell <carlos@redhat.com>
24998
24999 [BZ #22295]
25000 * locale/programs/linereader.c (get_string): Don't warn on
25001 non-symbolic character.
25002
25003 [BZ #22294]
25004 * locale/programs/ld-monetary.c (monetary_finish): Allow ""
25005 int_curr_symbol.
25006
25007 [BZ #22292]
25008 * locale/programs/record-status.h: New file
25009 * locale/programs/locale.c: Add comment.
25010 * locale/programs/charmap-dir.c: Don't include error.h.
25011 (charmap_opendir): Use record_error.
25012 * locale/programs/charmap.c: Don't include error.h.
25013 (charmap_read): Use record_error, and record_warning.
25014 (parse_charmap): Likewise.
25015 * locale/programs/ld-address.c: Don't include error.h.
25016 (address_finish): Use record_error, and record_warning.
25017 * locale/programs/ld-collate.c: Don't include error.h.
25018 (collate_finish): Use record_error, and record_error_at_line.
25019 * locale/programs/ld-ctype.c (ctype_finish): Use record_error.
25020 (ctype_class_new): Likewise.
25021 (ctype_map_new): Likewise.
25022 (set_one_default): Likewise.
25023 (set_class_defaults): Likewise.
25024 (translit_flatten): Likewise.
25025 (allocate_arrays): Use record_error, and record_verbose.
25026 * locale/programs/ld-identification.c: Don't include error.h.
25027 (indentation_finish): Use record_error and record_warning.
25028 * locale/programs/ld-measurement.c: Don't include error.h.
25029 (measurement_finish): Use record_error.
25030 * locale/programs/ld-messages.c
25031 (message_finish): Likewise.
25032 * locale/programs/ld-monetary.c
25033 (monetary_finish): Likewise.
25034 * locale/programs/ld-name.c (name_finish): Use record_error
25035 and record_warning.
25036 * locale/programs/ld-numeric.c
25037 (numeric_finish): Use record_error.
25038 * locale/programs/ld-paper.c: Don't include error.h.
25039 (paper_finish): Use record_error.
25040 * locale/programs/ld-telephone.c: Don't include error.h.
25041 (telephone_finish): Use record_error.
25042 * locale/programs/ld-time.c (time_finish): Likewise.
25043 * locale/programs/linereader.h (lr_error): Make inline func.
25044 * locale/programs/localedef.c: Define recorded_warning_count,
25045 and recorded_error_count.
25046 (main): Use record_error. Use recorded_error_count and
25047 recorded_warning_count to issue correct error returns.
25048 (add_to_readlist): Use record_error.
25049 (find_locale): Likewise.
25050 (load_locale): Likewise.
25051 * locale/programs/localedef.h: Remove be_quiet
25052 and WITH_CUR_LOCALE.
25053 * locale/programs/locarchive.c (compare_from_file): Use
25054 record_error.
25055 * locale/programs/locfile.c (write_locale_data): Use
25056 record_error.
25057 * locale/programs/repertoire.c: Dont include error.h.
25058 (repertoire_complain): Use record_error.
25059 * localedata/tst-fmon.sh: Expect failures from localedef.
25060 * localedata/tst-locale.sh: Likewise.
25061 * localedata/gen-locale.sh: Expect failures from SHIFT_JIS.
25062
25063 * localedata/unicode-gen/Makefile (GENERATED): Use i18n_ctype.
25064 (REPORTS): Likewise.
25065 (check): Likewise.
25066 (i18n): Rename to...
25067 (i18n_ctype): ...this.
25068 (i18n-report): Rename to...
25069 (i18n_ctype-report): ...this.
25070 * localedata/locales/i18n_ctype: Regenerate.
25071 * localedata/locales/i18n: copy i18n_ctype.
25072
25073 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25074
25075 * stdlib/strfroml.c: Include <bits/floatn.h>.
25076 [__HAVE_FLOAT128 && !__HAVE_DISTINCT_FLOAT128] (strfromf128):
25077 Define before include of <stdlib.h> and undefine afterwards, then
25078 define as weak alias.
25079
25080 * sysdeps/ieee754/ldbl-64-128/s_nextafterl.c (weak_alias):
25081 Undefine and restore default definition. Use
25082 libm_alias_ldouble_other.
25083
25084 2017-10-13 Peter Zelezny <peter.zelezny@dektech.com.au>
25085
25086 [BZ #22153]
25087 * nptl/allocatestack.c (__nptl_setxid_error): Preserve error code
25088 in coredumps.
25089
25090 2017-10-13 James Clarke <jrtc27@jrtc27.com>
25091
25092 * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
25093 Assign sym_map to be map for local symbols, as TLS relocations
25094 use sym_map to determine whether the symbol is defined and to
25095 extract the TLS information.
25096 * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
25097 * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
25098
25099 2017-10-13 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
25100
25101 [BZ #22189]
25102 * sysdeps/powerpc/fpu/math_private.h (math_opt_barrier):
25103 (math_force_eval): Add powerpc version.
25104
25105 [BZ #22142]
25106 * stdio-common/tst-printf.c (fp_test): Add tests for DBL_MAX and
25107 -DBL_MAX.
25108 (do_test): Likewise.
25109 * stdio-common/tst-printf.sh: Likewise.
25110 * sysdeps/powerpc/powerpc64/power7/add_n.S: Invert the initial
25111 ifdef clause in order to set the carry bit right. Replace r0 by
25112 0 without changing the behavior.
25113
25114 2017-10-13 Joseph Myers <joseph@codesourcery.com>
25115
25116 * sysdeps/sparc/sparc32/fpu/s_fabsl.c: Include
25117 <libm-alias-ldouble.h>.
25118 (fabsl): Define using libm_alias_ldouble.
25119 * sysdeps/sparc/sparc64/fpu/s_fabsl.c: Include
25120 <libm-alias-ldouble.h>.
25121 (fabsl): Define using libm_alias_ldouble.
25122
25123 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]:
25124 Remove conditional code.
25125
25126 * sysdeps/ieee754/ldbl-opt/s_clog10l.c (__clog10l__internal):
25127 Rename to __clog10_internal_l.
25128 (__clog10_internal_l): Define aliases using
25129 libm_alias_ldouble_other instead of using libm_alias_ldouble_other
25130 with __clog10.
25131
25132 2017-10-13 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25133
25134 * benchtests/Makefile (bench-math): Add sinf, cosf and sincosf.
25135 * benchtests/sincosf-inputs: New file.
25136 * benchtests/cosf-inputs: New file.
25137 * benchtests/sinf-inputs: New file.
25138
25139 2017-10-12 Szabolcs Nagy <szabolcs.nagy@arm.com>
25140
25141 * posix/tst-spawn.c (do_test): Wait for both children.
25142
25143 2017-10-12 H.J. Lu <hongjiu.lu@intel.com>
25144
25145 [BZ #22284]
25146 * gmon/Makefile [$(have-fpie)$(build-shared) == yesyes] (tests,
25147 tests-pie): Add tst-gmon-pie.
25148 (CFLAGS-tst-gmon-pie.c): New.
25149 (CRT-tst-gmon-pie): Likewise.
25150 (tst-gmon-pie-ENV): Likewise.
25151 [$(have-fpie)$(build-shared) == yesyes] (tests-special): Likewise.
25152 ($(objpfx)tst-gmon-pie.out): Likewise.
25153 (clean-tst-gmon-pie-data): Likewise.
25154 ($(objpfx)tst-gmon-pie-gprof.out): Likewise.
25155 * gmon/gmon.c [PIC]: Include <link.h>.
25156 [PIC] (callback): New function.
25157 (write_hist): Add an argument for load address. Subtract load
25158 address from PCs.
25159 (write_call_graph): Likewise.
25160 (write_gmon): Call __dl_iterate_phdr to get load address, pass
25161 it to write_hist and write_call_graph.
25162 * gmon/tst-gmon-pie.c: New file.
25163
25164 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25165
25166 * math/Makefile (test-types-basic): New variable.
25167 (test-types): Likewise.
25168 (libm-test-support): Use $(test-types) instead of $(types).
25169 (libm-tests-base-normal): Likewise.
25170 (libm-tests-base-finite): Likewise.
25171 (libm-tests-base-inline): Likewise.
25172 (generated): Likewise.
25173 ($(objpfx)libm-test-support-$(t).c): Likewise.
25174 (libm-tests-for-type iterator): Likewise.
25175 (libm-test-support iterator): Likewise.
25176 * math/libm-test-support.c (ulp_i_idx): Use ULP_I_IDX.
25177 (ulp_idx): Use ULP_IDX.
25178 * math/test-ldouble.h: Include <float.h>.
25179 (TYPE_STR): Define conditional on [LDBL_MANT_DIG == DBL_MANT_DIG].
25180 (ULP_IDX): New macro.
25181 (ULP_I_IDX): Likewise.
25182 * math/test-double.h (ULP_IDX): Likewise.
25183 (ULP_I_IDX): Likewise.
25184 * math/test-float.h (ULP_IDX): Likewise.
25185 (ULP_I_IDX): Likewise.
25186 * math/test-float128.h (ULP_IDX): Likewise.
25187 (ULP_I_IDX): Likewise.
25188
25189 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25190
25191 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Remove file.
25192 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
25193 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
25194 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: Likewise.
25195 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
25196 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h: Likewise.
25197 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: Likewise.
25198 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
25199 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
25200 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
25201 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: Likewise.
25202 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
25203 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
25204 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
25205 (SINGLE_THREAD_BY_GLOBAL): Define.
25206 * sysdeps/unix/sysv/linux/aarch64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25207 Likewise.
25208 * sysdeps/unix/sysv/linux/alpha/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25209 Likewise.
25210 * sysdeps/unix/sysv/linux/arm/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25211 Likewise.
25212 * sysdeps/unix/sysv/linux/hppa/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25213 Likewise.
25214 * sysdeps/unix/sysv/linux/microblaze/sysdep.h
25215 (SINGLE_THREAD_BY_GLOBAL): Likewise.
25216 * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SINGLE_THREAD_BY_GLOBAL):
25217 Likewise.
25218
25219 2017-10-11 Andreas Schwab <schwab@suse.de>
25220
25221 * nis/Makefile (aux): Remove.
25222 * nscd/Makefile (aux): Add nscd_hash.
25223 (nscd-modules): Likewise.
25224 ($(objpfx)nscd): Don't depend on libnsl.
25225 * nscd/nscd_hash.c: New file.
25226 * nscd/nscd_hash.h: Likewise.
25227 * nscd/cache.c: Include "nscd_hash.h" instead of <rpcsvc/nis.h>.
25228 (cache_search, cache_add): Use __nscd_hash instead of __nis_hash.
25229 * nscd/nscd_helper.c: Include <sys/param.h> and "nscd_hash.h"
25230 instead of <nis/rpcsvc/nis.h>.
25231 (__nscd_cache_search): Use __nscd_hash instead of __nis_hash.
25232
25233 2017-10-11 Florian Weimer <fweimer@redhat.com>
25234
25235 [BZ #22078]
25236 Avoid large NSS buffers with many addresses, aliases.
25237 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Rewrite
25238 using dynarrays and struct alloc_buffer.
25239 * nss/Makefile (tests): Add tst-nss-files-hosts-multi.
25240 (tst-nss-files-hosts-multi): Link with -ldl.
25241 * nss/tst-nss-files-hosts-multi.c: New file.
25242
25243 2017-10-11 Florian Weimer <fweimer@redhat.com>
25244
25245 [BZ #18023]
25246 * nss/nss_files/files-hosts.c (gethostbyname3_multi): Use struct
25247 scratch_buffer. Eliminate gotos.
25248
25249 2017-10-11 Joseph Myers <joseph@codesourcery.com>
25250
25251 * sysdeps/ieee754/ldbl-opt/s_clog10l.c: Use
25252 libm_alias_ldouble_other.
25253 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (weak_alias): Do not
25254 undefine and redefine.
25255 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
25256 (exp10l): Do not define here.
25257 * sysdeps/ieee754/ldbl-opt/w_lgamma_compatl.c [BUILD_LGAMMA]
25258 (weak_alias): Undefine and redefine.
25259 [BUILD_LGAMMA]: Use libm_alias_ldouble_other.
25260 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
25261 [LIBM_SVID_COMPAT] (weak_alias): Undefine and redefine here.
25262 [LIBM_SVID_COMPAT]: Use libm_alias_ldouble_other.
25263
25264 * soft-fp/fmadf4.c: Include <libm-alias-double.h>.
25265 [!__fma] (fma): Define using libm_alias_double.
25266 * soft-fp/fmasf4.c: Include <libm-alias-float.h>.
25267 [!__fmaf] (fmaf): Define using libm_alias_float.
25268 * soft-fp/fmatf4.c: Include <libm-alias-ldouble.h>.
25269 (fmal): Define using libm_alias_ldouble.
25270
25271 2017-10-10 Joseph Myers <joseph@codesourcery.com>
25272
25273 * sysdeps/generic/libm-alias-double.h (libm_alias_double_other_r):
25274 New macro.
25275 (libm_alias_double_other): Likewise.
25276 (libm_alias_double_r): Use libm_alias_double_other_r.
25277 * sysdeps/generic/libm-alias-float.h (libm_alias_float_other_r):
25278 New macro.
25279 (libm_alias_float_other): Likewise.
25280 (libm_alias_float_r): Use libm_alias_float_other_r.
25281 * sysdeps/generic/libm-alias-float128.h
25282 (libm_alias_float128_other_r): New macro.
25283 (libm_alias_float128_other): Likewise.
25284 (libm_alias_float128_r): Use libm_alias_float128_other_r.
25285 * sysdeps/generic/libm-alias-ldouble.h
25286 (libm_alias_ldouble_other_r): New macro.
25287 (libm_alias_ldouble_other): Likewise.
25288 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25289 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h
25290 (libm_alias_double_other_r): New macro.
25291 (libm_alias_double_other): Likewise.
25292 (libm_alias_double_r): Use libm_alias_double_other_r.
25293 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h
25294 (libm_alias_ldouble_other_r): New macro.
25295 (libm_alias_ldouble_other): Likewise.
25296 (libm_alias_ldouble_r): Use libm_alias_ldouble_other_r.
25297 * math/w_lgamma_main.c: Include <libm-alias-double.h>.
25298 [!USE_AS_COMPAT]: Use libm_alias_double_other.
25299 * math/w_lgammaf_main.c: Include <libm-alias-float.h>.
25300 [!USE_AS_COMPAT]: Use libm_alias_float_other.
25301 * math/w_lgammal_main.c: Include <libm-alias-ldouble.h>.
25302 [!USE_AS_COMPAT]: Use libm_alias_ldouble_other.
25303 * math/w_exp2f.c: Use libm_alias_float_other.
25304 * math/w_expf.c: Likewise.
25305 * math/w_log2f.c: Likewise.
25306 * math/w_logf.c: Likewise.
25307 * math/w_powf.c: Likewise.
25308 * sysdeps/ieee754/flt-32/e_exp2f.c: Include <libm-alias-float.h>.
25309 [!__exp2f]: Use libm_alias_float_other.
25310 * sysdeps/ieee754/flt-32/e_expf.c: Include <libm-alias-float.h>.
25311 [!__expf]: Use libm_alias_float_other.
25312 * sysdeps/ieee754/flt-32/e_log2f.c: Include <libm-alias-float.h>.
25313 [!__log2f]: Use libm_alias_float_other.
25314 * sysdeps/ieee754/flt-32/e_logf.c: Include <libm-alias-float.h>.
25315 [!__logf]: Use libm_alias_float_other.
25316 * sysdeps/ieee754/flt-32/e_powf.c: Include <libm-alias-float.h>.
25317 [!__powf]: Use libm_alias_float_other.
25318
25319 2017-10-10 Florian Weimer <fweimer@redhat.com>
25320
25321 * nss/nss_files/files-hosts.c (gethostbyname3_multi): New
25322 function.
25323 (_nss_files_gethostbyname3_r): Call it.
25324
25325 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25326
25327 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias]: Give
25328 error. Remove default definition of declare_mgen_alias.
25329 [!declare_mgen_alias_r]: Likewise.
25330 * sysdeps/generic/math-type-macros-double.h
25331 [!declare_mgen_alias_r] (declare_mgen_alias_r): New macro.
25332 * sysdeps/generic/math-type-macros-float.h [!declare_mgen_alias_r]
25333 (declare_mgen_alias_r): Likewise.
25334 * sysdeps/generic/math-type-macros-float128.h
25335 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25336 * sysdeps/generic/math-type-macros-ldouble.h
25337 [!declare_mgen_alias_r] (declare_mgen_alias_r): Likewise.
25338 * math/w_lgamma_r_template.c (declare_mgen_alias_r_x): Remove
25339 macro.
25340 (declare_mgen_alias_r_s): Likewise.
25341 (declare_mgen_alias_r): Likewise.
25342 * math/w_lgamma_r_compat.c: Include <libm-alias-double.h>.
25343 (lgamma_r): Define using libm_alias_double_r.
25344 * math/w_lgammaf_r_compat.c: Include <libm-alias-float.h>.
25345 (lgammaf_r): Define using libm_alias_float_r.
25346 * math/w_lgammal_r_compat.c: Include <libm-alias-ldouble.h>.
25347 (lgammal_r): Define using libm_alias_ldouble_r.
25348 * sysdeps/ieee754/ldbl-opt/w_lgamma_r_compat.c: Remove file.
25349 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
25350
25351 2017-10-09 Adhemerval Zanella <adhemerval.zanella@linaro.org>
25352
25353 * lib/glob.c (__glob_pattern_type): Remove now-spurious
25354 extern declaration.
25355
25356 2017-10-09 Joseph Myers <joseph@codesourcery.com>
25357
25358 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Remove file.
25359
25360 2017-10-09 Jonathan Wakely <jwakely@redhat.com>
25361
25362 [BZ #21326]
25363 * include/features.h [__cplusplus >= 201703] (__USE_ISOC11): Define.
25364 [__cplusplus >= 201103] (__USE_ISOC99): Define.
25365 * math/Makefile (test-math-cxx11): New test.
25366 * math/test-math-cxx11.cc: New file.
25367
25368 2017-10-08 Christian Brauner <christian.brauner@ubuntu.com>
25369
25370 * login/openpty.c (openpty): Close slave pty file descriptor on error.
25371
25372 * login/openpty.c (openpty): If defined, use the TIOCGPTPEER ioctl()
25373 call to allocate the slave pty file descriptor.
25374
25375 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25376
25377 * sysdeps/ieee754/ldbl-128/s_fma.c: Include <libm-alias-double.h>.
25378 [!__fma] (fma): Define using libm_alias_double.
25379 * sysdeps/ieee754/ldbl-96/s_fma.c: Include <libm-alias-double.h>.
25380 [!__fma] (fma): Define using libm_alias_double.
25381
25382 * sysdeps/ieee754/float128/float128_private.h: Include
25383 <libm-alias-ldouble.h> and <libm-alias-float128.h>.
25384 (libm_alias_ldouble_r): Undefine and redefine.
25385 * sysdeps/ieee754/ldbl-128/s_asinhl.c: Include
25386 <libm-alias-ldouble.h>.
25387 (asinhl): Define using libm_alias_ldouble.
25388 * sysdeps/ieee754/ldbl-128/s_atanl.c: Include
25389 <libm-alias-ldouble.h>.
25390 (atanl): Define using libm_alias_ldouble.
25391 * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Include
25392 <libm-alias-ldouble.h>.
25393 (cbrtl): Define using libm_alias_ldouble.
25394 * sysdeps/ieee754/ldbl-128/s_ceill.c: Include
25395 <libm-alias-ldouble.h>.
25396 (ceill): Define using libm_alias_ldouble.
25397 * sysdeps/ieee754/ldbl-128/s_copysignl.c: Include
25398 <libm-alias-ldouble.h>.
25399 (copysignl): Define using libm_alias_ldouble.
25400 * sysdeps/ieee754/ldbl-128/s_cosl.c: Include
25401 <libm-alias-ldouble.h>.
25402 (cosl): Define using libm_alias_ldouble.
25403 * sysdeps/ieee754/ldbl-128/s_erfl.c: Include
25404 <libm-alias-ldouble.h>.
25405 (erfl): Define using libm_alias_ldouble.
25406 (erfcl): Likewise.
25407 * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include
25408 <libm-alias-ldouble.h>.
25409 (expm1l): Define using libm_alias_ldouble.
25410 * sysdeps/ieee754/ldbl-128/s_fabsl.c: Include
25411 <libm-alias-ldouble.h>.
25412 (fabsl): Define using libm_alias_ldouble.
25413 * sysdeps/ieee754/ldbl-128/s_floorl.c: Include
25414 <libm-alias-ldouble.h>.
25415 (floorl): Define using libm_alias_ldouble.
25416 * sysdeps/ieee754/ldbl-128/s_fmal.c: Include
25417 <libm-alias-ldouble.h>.
25418 (fmal): Define using libm_alias_ldouble.
25419 * sysdeps/ieee754/ldbl-128/s_frexpl.c: Include
25420 <libm-alias-ldouble.h>.
25421 (frexpl): Define using libm_alias_ldouble.
25422 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (fromfpl): Define using
25423 libm_alias_ldouble.
25424 * sysdeps/ieee754/ldbl-128/s_fromfpl_main.c: Include
25425 <libm-alias-ldouble.h>.
25426 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (fromfpxl): Define using
25427 libm_alias_ldouble.
25428 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c: Include
25429 <libm-alias-ldouble.h>.
25430 (getpayloadl): Define using libm_alias_ldouble.
25431 * sysdeps/ieee754/ldbl-128/s_llrintl.c: Include
25432 <libm-alias-ldouble.h>.
25433 (llrintl): Define using libm_alias_ldouble.
25434 * sysdeps/ieee754/ldbl-128/s_llroundl.c: Include
25435 <libm-alias-ldouble.h>.
25436 (llroundl): Define using libm_alias_ldouble.
25437 * sysdeps/ieee754/ldbl-128/s_logbl.c: Include
25438 <libm-alias-ldouble.h>.
25439 (logbl): Define using libm_alias_ldouble.
25440 * sysdeps/ieee754/ldbl-128/s_lrintl.c: Include
25441 <libm-alias-ldouble.h>.
25442 (lrintl): Define using libm_alias_ldouble.
25443 * sysdeps/ieee754/ldbl-128/s_lroundl.c: Include
25444 <libm-alias-ldouble.h>.
25445 (lroundl): Define using libm_alias_ldouble.
25446 * sysdeps/ieee754/ldbl-128/s_modfl.c: Include
25447 <libm-alias-ldouble.h>.
25448 (modfl): Define using libm_alias_ldouble.
25449 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Include
25450 <libm-alias-ldouble.h>.
25451 (nearbyintl): Define using libm_alias_ldouble.
25452 * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Include
25453 <libm-alias-ldouble.h>.
25454 (nextafterl): Define using libm_alias_ldouble.
25455 * sysdeps/ieee754/ldbl-128/s_nextupl.c: Include
25456 <libm-alias-ldouble.h>.
25457 (nextupl): Define using libm_alias_ldouble.
25458 * sysdeps/ieee754/ldbl-128/s_remquol.c: Include
25459 <libm-alias-ldouble.h>.
25460 (remquol): Define using libm_alias_ldouble.
25461 * sysdeps/ieee754/ldbl-128/s_rintl.c: Include
25462 <libm-alias-ldouble.h>.
25463 (rintl): Define using libm_alias_ldouble.
25464 * sysdeps/ieee754/ldbl-128/s_roundevenl.c: Include
25465 <libm-alias-ldouble.h>.
25466 (roundevenl): Define using libm_alias_ldouble.
25467 * sysdeps/ieee754/ldbl-128/s_roundl.c: Include
25468 <libm-alias-ldouble.h>.
25469 (roundl): Define using libm_alias_ldouble.
25470 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (setpayloadl): Define
25471 using libm_alias_ldouble.
25472 * sysdeps/ieee754/ldbl-128/s_setpayloadl_main.c: Include
25473 <libm-alias-ldouble.h>.
25474 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (setpayloadsigl):
25475 Define using libm_alias_ldouble.
25476 * sysdeps/ieee754/ldbl-128/s_sincosl.c: Include
25477 <libm-alias-ldouble.h>.
25478 (sincosl): Define using libm_alias_ldouble.
25479 * sysdeps/ieee754/ldbl-128/s_sinl.c: Include
25480 <libm-alias-ldouble.h>.
25481 (sinl): Define using libm_alias_ldouble.
25482 * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include
25483 <libm-alias-ldouble.h>.
25484 (tanhl): Define using libm_alias_ldouble.
25485 * sysdeps/ieee754/ldbl-128/s_tanl.c: Include
25486 <libm-alias-ldouble.h>.
25487 (tanl): Define using libm_alias_ldouble.
25488 * sysdeps/ieee754/ldbl-128/s_totalorderl.c: Include
25489 <libm-alias-ldouble.h>.
25490 (totalorderl): Define using libm_alias_ldouble.
25491 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c: Include
25492 <libm-alias-ldouble.h>.
25493 (totalordermagl): Define using libm_alias_ldouble.
25494 * sysdeps/ieee754/ldbl-128/s_truncl.c: Include
25495 <libm-alias-ldouble.h>.
25496 (truncl): Define using libm_alias_ldouble.
25497 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (ufromfpl): Define using
25498 libm_alias_ldouble.
25499 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (ufromfpxl): Define using
25500 libm_alias_ldouble.
25501 * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Include
25502 <libm-alias-ldouble.h>.
25503 (weak_alias): Do not undefine and redefine.
25504 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25505 (copysignl): Define with long_double_symbol only if [IS_IN
25506 (libc)].
25507 * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Include
25508 <libm-alias-ldouble.h>.
25509 (weak_alias): Do not undefine and redefine.
25510 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25511 (frexpl): Define with long_double_symbol only if [IS_IN (libc)].
25512 * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Include
25513 <libm-alias-ldouble.h>.
25514 (weak_alias): Do not undefine and redefine.
25515 [IS_IN (libc)] (libm_alias_ldouble): Undefine and redefine.
25516 (modfl): Define with long_double_symbol only if [IS_IN (libc)].
25517 * sysdeps/ieee754/ldbl-64-128/s_asinhl.c: Remove file.
25518 * sysdeps/ieee754/ldbl-64-128/s_atanl.c: Likewise.
25519 * sysdeps/ieee754/ldbl-64-128/s_cbrtl.c: Likewise.
25520 * sysdeps/ieee754/ldbl-64-128/s_ceill.c: Likewise.
25521 * sysdeps/ieee754/ldbl-64-128/s_cosl.c: Likewise.
25522 * sysdeps/ieee754/ldbl-64-128/s_erfl.c: Likewise.
25523 * sysdeps/ieee754/ldbl-64-128/s_expm1l.c: Likewise.
25524 * sysdeps/ieee754/ldbl-64-128/s_fabsl.c: Likewise.
25525 * sysdeps/ieee754/ldbl-64-128/s_floorl.c: Likewise.
25526 * sysdeps/ieee754/ldbl-64-128/s_fmal.c: Likewise.
25527 * sysdeps/ieee754/ldbl-64-128/s_llrintl.c: Likewise.
25528 * sysdeps/ieee754/ldbl-64-128/s_llroundl.c: Likewise.
25529 * sysdeps/ieee754/ldbl-64-128/s_logbl.c: Likewise.
25530 * sysdeps/ieee754/ldbl-64-128/s_lrintl.c: Likewise.
25531 * sysdeps/ieee754/ldbl-64-128/s_lroundl.c: Likewise.
25532 * sysdeps/ieee754/ldbl-64-128/s_nearbyintl.c: Likewise.
25533 * sysdeps/ieee754/ldbl-64-128/s_remquol.c: Likewise.
25534 * sysdeps/ieee754/ldbl-64-128/s_rintl.c: Likewise.
25535 * sysdeps/ieee754/ldbl-64-128/s_roundl.c: Likewise.
25536 * sysdeps/ieee754/ldbl-64-128/s_sincosl.c: Likewise.
25537 * sysdeps/ieee754/ldbl-64-128/s_sinl.c: Likewise.
25538 * sysdeps/ieee754/ldbl-64-128/s_tanhl.c: Likewise.
25539 * sysdeps/ieee754/ldbl-64-128/s_tanl.c: Likewise.
25540 * sysdeps/ieee754/ldbl-64-128/s_truncl.c: Likewise.
25541
25542 2017-10-06 Carlos O'Donell <carlos@redhat.com>
25543
25544 [BZ #22111]
25545 * malloc/malloc.c (tcache_shutting_down): Use bool type.
25546 (tcache_thread_freeres): Set tcache_shutting_down before
25547 freeing the tcache.
25548 * malloc/Makefile (tests): Add tst-malloc-tcache-leak.
25549 * malloc/tst-malloc-tcache-leak.c: New file.
25550
25551 2017-10-06 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
25552
25553 * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: Revert
25554 back to powerpc32 file.
25555 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
25556 (memrchr): Add __memrchr_power8 to ifunc list.
25557 * sysdeps/powerpc/powerpc64/power8/memrchr.S: Mask
25558 extra bytes for unaligned inputs.
25559
25560 2017-10-06 Joseph Myers <joseph@codesourcery.com>
25561
25562 * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: Remove file.
25563 * sysdeps/ieee754/ldbl-64-128/s_log1pl.c: Likewise.
25564 * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c: Likewise.
25565 * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
25566 * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
25567
25568 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25569
25570 * sysdeps/arm/libm-test-ulps: Update.
25571
25572 * sysdeps/ieee754/ldbl-96/s_asinhl.c: Include
25573 <libm-alias-ldouble.h>.
25574 (asinhl): Define using libm_alias_ldouble.
25575 * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Include
25576 <libm-alias-ldouble.h>.
25577 (cbrtl): Define using libm_alias_ldouble.
25578 * sysdeps/ieee754/ldbl-96/s_copysignl.c: Include
25579 <libm-alias-ldouble.h>.
25580 (copysignl): Define using libm_alias_ldouble.
25581 * sysdeps/ieee754/ldbl-96/s_cosl.c: Include
25582 <libm-alias-ldouble.h>.
25583 (cosl): Define using libm_alias_ldouble.
25584 * sysdeps/ieee754/ldbl-96/s_erfl.c: Include
25585 <libm-alias-ldouble.h>.
25586 (erfl): Define using libm_alias_ldouble.
25587 (erfcl): Likewise.
25588 * sysdeps/ieee754/ldbl-96/s_fmal.c: Include
25589 <libm-alias-ldouble.h>.
25590 (fmal): Define using libm_alias_ldouble.
25591 * sysdeps/ieee754/ldbl-96/s_frexpl.c: Include
25592 <libm-alias-ldouble.h>.
25593 (frexpl): Define using libm_alias_ldouble.
25594 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (fromfpl): Define using
25595 libm_alias_ldouble.
25596 * sysdeps/ieee754/ldbl-96/s_fromfpl_main.c: Include
25597 <libm-alias-ldouble.h>.
25598 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (fromfpxl): Define using
25599 libm_alias_ldouble.
25600 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c: Include
25601 <libm-alias-ldouble.h>.
25602 (getpayloadl): Define using libm_alias_ldouble.
25603 * sysdeps/ieee754/ldbl-96/s_llrintl.c: Include
25604 <libm-alias-ldouble.h>.
25605 (llrintl): Define using libm_alias_ldouble.
25606 * sysdeps/ieee754/ldbl-96/s_llroundl.c: Include
25607 <libm-alias-ldouble.h>.
25608 (llroundl): Define using libm_alias_ldouble.
25609 * sysdeps/ieee754/ldbl-96/s_lrintl.c: Include
25610 <libm-alias-ldouble.h>.
25611 (lrintl): Define using libm_alias_ldouble.
25612 * sysdeps/ieee754/ldbl-96/s_lroundl.c: Include
25613 <libm-alias-ldouble.h>.
25614 (lroundl): Define using libm_alias_ldouble.
25615 * sysdeps/ieee754/ldbl-96/s_modfl.c: Include
25616 <libm-alias-ldouble.h>.
25617 (modfl): Define using libm_alias_ldouble.
25618 * sysdeps/ieee754/ldbl-96/s_nextupl.c: Include
25619 <libm-alias-ldouble.h>.
25620 (nextupl): Define using libm_alias_ldouble.
25621 * sysdeps/ieee754/ldbl-96/s_remquol.c: Include
25622 <libm-alias-ldouble.h>.
25623 (remquol): Define using libm_alias_ldouble.
25624 * sysdeps/ieee754/ldbl-96/s_roundevenl.c: Include
25625 <libm-alias-ldouble.h>.
25626 (roundevenl): Define using libm_alias_ldouble.
25627 * sysdeps/ieee754/ldbl-96/s_roundl.c: Include
25628 <libm-alias-ldouble.h>.
25629 (roundl): Define using libm_alias_ldouble.
25630 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (setpayloadl): Define
25631 using libm_alias_ldouble.
25632 * sysdeps/ieee754/ldbl-96/s_setpayloadl_main.c: Include
25633 <libm-alias-ldouble.h>.
25634 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c: Include
25635 <libm-alias-ldouble.h>.
25636 (setpayloadsigl): Define using libm_alias_ldouble.
25637 * sysdeps/ieee754/ldbl-96/s_sincosl.c: Include
25638 <libm-alias-ldouble.h>.
25639 (sincosl): Define using libm_alias_ldouble.
25640 * sysdeps/ieee754/ldbl-96/s_sinl.c: Include
25641 <libm-alias-ldouble.h>.
25642 (sinl): Define using libm_alias_ldouble.
25643 * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include
25644 <libm-alias-ldouble.h>.
25645 (tanhl): Define using libm_alias_ldouble.
25646 * sysdeps/ieee754/ldbl-96/s_tanl.c: Include
25647 <libm-alias-ldouble.h>.
25648 (tanl): Define using libm_alias_ldouble.
25649 * sysdeps/ieee754/ldbl-96/s_totalorderl.c: Include
25650 <libm-alias-ldouble.h>.
25651 (totalorderl): Define using libm_alias_ldouble.
25652 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c: Include
25653 <libm-alias-ldouble.h>.
25654 (totalordermagl): Define using libm_alias_ldouble.
25655 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (ufromfpl): Define using
25656 libm_alias_ldouble.
25657 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (ufromfpxl): Define using
25658 libm_alias_ldouble.
25659
25660 2017-10-05 Siddhesh Poyarekar <siddhesh@sourceware.org>
25661
25662 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
25663 memmove_falkor.
25664 * sysdeps/aarch64/multiarch/ifunc-impl-list.c
25665 (__libc_ifunc_impl_list): Likewise.
25666 * sysdeps/aarch64/multiarch/memmove.c: Likewise.
25667 * sysdeps/aarch64/multiarch/memmove_falkor.S: New file.
25668
25669 * benchtests/bench-memmove-walk.c: New file.
25670 * benchtests/Makefile (string-benchset): Add it.
25671
25672 * benchtests/bench-memset-walk.c: New file.
25673 * benchtests/Makefile (string-benchset): Add it.
25674
25675 * benchtests/bench-memcpy-walk.c: New file.
25676 * benchtests/Makefile (string-benchset): Add it.
25677
25678 2017-10-05 Florian Weimer <fweimer@redhat.com>
25679
25680 nscd: Eliminate compilation time dependency in the build output.
25681 * nscd/nscd_stat.c (STATDATA_VERSION)
25682 (STATDATA_VERSION_SELINUX_FLAG, STATDATA_VERSION_FLAGS)
25683 (STATDATA_VERSION_FULL): New macro definitions.
25684 (compilation): Remove.
25685 (struct statdata): Adjust version member.
25686 (send_stats): Set version from STATDATA_VERSION_FULL.
25687 (receive_print_stats): Verify version against STATDATA_VERSION_FULL.
25688
25689 2017-10-05 Joseph Myers <joseph@codesourcery.com>
25690
25691 * configure.ac (--enable-add-ons): Remove option.
25692 (machine): Do not mention add-ons in comment.
25693 (LIBC_PRECONFIGURE): Likewise.
25694 (add_ons): Remove variable and sanity checks and logic to locate
25695 add-ons.
25696 (add_ons_automatic): Remove variable.
25697 (configured_add_ons): Likewise.
25698 (add_ons_sfx): Likewise.
25699 (add_ons_pfx): Likewise.
25700 (add_on_subdirs): Likewise.
25701 (sysnames_add_ons): Likewise. Remove loop over add-ons and
25702 consideration of add-ons in Implies handling.
25703 (sysdeps_add_ons): Likewise.
25704 * configure: Regenerated.
25705 * libidn/configure.ac: Remove.
25706 * libidn/configure: Likewise.
25707 * sysdeps/unix/inet/configure.ac: New file.
25708 * sysdeps/unix/inet/configure: New generated file.
25709 * sysdeps/unix/inet/Subdirs: Add libidn.
25710 * Makeconfig (sysdeps-srcdirs): Remove variable.
25711 (+sysdep_dirs): Do not include $(sysdeps-srcdirs).
25712 ($(common-objpfx)config.status): Do not depend on add-on files.
25713 ($(common-objpfx)shlib-versions.v.i): Do not mention add-ons in
25714 comment.
25715 (all-subdirs): Do not include $(add-on-subdirs).
25716 * Makefile (dist-prepare): Do not use $(sysdeps-add-ons).
25717 * config.make.in (add-ons): Remove variable.
25718 (add-on-subdirs): Likewise.
25719 (sysdeps-add-ons): Likewise.
25720 * manual/Makefile (add-chapters): Remove.
25721 ($(objpfx)texis): Do not depend on $(add-chapters).
25722 (nonexamples): Do not handle $(add-chapters).
25723 (examples): Do not handle $(add-ons).
25724 (chapters.% top-menu.%): Do not pass '$(add-chapters)' to
25725 libc-texinfo.sh.
25726 * manual/install.texi (Installation): Do not mention add-ons.
25727 (--enable-add-ons): Do not document configure option.
25728 * INSTALL: Regenerated.
25729 * manual/libc-texinfo.sh: Do not handle $2 add-ons argument.
25730 * manual/maint.texi (Hierarchy Conventions): Do not mention
25731 add-ons.
25732 * scripts/build-many-glibcs.py (Glibc.build_glibc): Do not use
25733 --enable-add-ons.
25734 * scripts/gen-sorted.awk: Do not handle Subdirs files from
25735 add-ons.
25736 * scripts/test-installation.pl: Do not handle glibc-compat add-on.
25737 * sysdeps/nptl/Makeconfig: Do not mention add-ons in comment.
25738
25739 2017-10-05 Andreas Schwab <schwab@suse.de>
25740
25741 [BZ #15142]
25742 * libio/genops.c (_IO_list_all_stamp): Delete. All uses removed.
25743 (_IO_flush_all_lockp): Always lock list_all_lock.
25744 (_IO_flush_all_linebuffered): Likewise.
25745 (_IO_unbuffer_all): Likewise.
25746
25747 2017-10-05 Florian Weimer <fweimer@redhat.com>
25748
25749 [BZ #15436]
25750 Do not flush stdio streams on abort.
25751 * stdlib/abort.c (fflush): Remove macro definition.
25752 (abort): Remove stages related to stdio flushing.
25753
25754 2017-10-05 Florian Weimer <fweimer@redhat.com>
25755
25756 * gmon/Makefile (CFLAGS-tst-gmon.c): Add -fno-omit-frame-pointer.
25757
25758 2017-10-05 Stefan Liebler <stli@linux.vnet.ibm.com>
25759
25760 * sysdeps/s390/fpu/libm-test-ulps: Regenerated.
25761
25762 2017-10-05 Florian Weimer <fweimer@redhat.com>
25763
25764 * support/support_format_hostent.c (support_format_hostent): Add
25765 more error information for NETDB_INTERNAL.
25766
25767 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25768
25769 * config.h.in (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New.
25770 * include/libc-symbols.h (__hidden_proto_hiddenattr): Add check
25771 for PIC and NO_HIDDEN_EXTERN_FUNC_IN_PIE.
25772 * sysdeps/i386/configure.ac (NO_HIDDEN_EXTERN_FUNC_IN_PIE): New
25773 AC_DEFINE if multi-arch is enabled.
25774 * sysdeps/i386/configure: Regenerated.
25775
25776 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25777
25778 * Makeconfig (+link-static-before-libc): Use
25779 $(DEFAULT-LDFLAGS-$(@F)).
25780 * elf/Makefile (CRT-tst-tls1-static-non-pie): New.
25781 (LDFLAGS-tst-tls1-static-non-pie): Renamed to ...
25782 (DEFAULT-LDFLAGS-tst-tls1-static-non-pie): This.
25783
25784 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25785
25786 * elf/Makefile (tests): Add tst-main1.
25787 (modules-names): Add tst-main1mod.
25788 ($(objpfx)tst-main1): New.
25789 (CRT-tst-main1): Likewise.
25790 (LDFLAGS-tst-main1): Likewise.
25791 (LDLIBS-tst-main1): Likewise.
25792 (tst-main1mod.so-no-z-defs): Likewise.
25793 * elf/tst-main1.c: New file.
25794 * elf/tst-main1mod.c: Likewise.
25795
25796 2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
25797
25798 * math/test-math-iscanonical.cc (do_test): Return errors != 0.
25799
25800 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25801
25802 * sysdeps/ieee754/dbl-64/s_fma.c: Include <libm-alias-double.h>.
25803 (fma): Define using libm_alias_double.
25804 * sysdeps/ieee754/ldbl-opt/s_fma.c: Remove file.
25805 * sysdeps/sparc/sparc32/fpu/s_fma.c: Do not include
25806 <math_ldbl_opt.h>.
25807 (fmal): Do not define as compat symbol here.
25808 * sysdeps/alpha/fpu/s_fma.c: New file.
25809
25810 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25811
25812 * sysdeps/aarch64/dl-machine.h (elf_machine_rela): Expand MIN.
25813
25814 2017-10-04 Joseph Myers <joseph@codesourcery.com>
25815
25816 [BZ #22229]
25817 * sysdeps/sparc/sparc32/fpu/s_copysign.S: Include
25818 <math_ldbl_opt.h>
25819 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25820 and libc.
25821 * sysdeps/sparc/sparc32/fpu/s_fabs.S: Include <math_ldbl_opt.h>.
25822 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25823 * sysdeps/sparc/sparc32/fpu/s_fma.c: Include <math_ldbl_opt.h>.
25824 (fmal): Define as compat symbol at version GLIBC_2_1 for libm.
25825 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25826 Include <math_ldbl_opt.h>
25827 (copysignl): Define as compat symbol at version GLIBC_2_0 for libm
25828 and libc.
25829 (compat_symbol): Undefine and redefine.
25830 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Include
25831 <math_ldbl_opt.h>
25832 (fabsl): Define as compat symbol at version GLIBC_2_0 for libm.
25833 (compat_symbol): Undefine and redefine.
25834 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c
25835 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h>.
25836 [HAVE_AS_VIS3_SUPPORT] (fmal): Define as compat symbol at version
25837 GLIBC_2_1 for libm.
25838 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Add
25839 GLIBC_2.0 copysignl symbol.
25840 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
25841 GLIBC_2.0 copysignl and fabsl and GLIBC_2.1 fmal symbols.
25842
25843 * sysdeps/alpha/fpu/s_nearbyint.c: Remove file.
25844
25845 2017-10-04 Florian Weimer <fweimer@redhat.com>
25846
25847 * scripts/check-local-headers.sh: Ignore nspr4 header file
25848 directory in addition to nspr.
25849
25850 2017-10-04 Guido Trentalancia <guido@trentalancia.net>
25851
25852 [BZ #17956]
25853 * configure.ac (--enable-nss-crypt): Use NSPR include directory.
25854 * configure: Regenerate.
25855 * crypt/Makefile (nss-cpp-flags): New variable.
25856 (CPPFLAGS-sha256-crypt.c, CPPFLAGS-sha512-crypt.c)
25857 (CPPFLAGS-md5-crypt.c): Use it.
25858 * scripts/check-local-headers.sh: Ignore nspr header file
25859 directory.
25860
25861 2017-10-04 Andreas Schwab <schwab@suse.de>
25862
25863 * nis/Makefile (services): Remove compat.
25864 (libnss_compat-routines, libnss_compat-inhibit-o): Don't define.
25865 ($(objpfx)libnss_compat.so): Remove rule.
25866 * nis/Versions (libnss_compat): Remove.
25867 * nss/Makefile (services): Add compat.
25868 (libnss_compat-routines, libnss_compat-inhibit-o): Define.
25869 * nss/Versions (libnss_compat): Define.
25870 * nss/nss_compat/compat-grp.c: Moved here from nis/nss_compat.
25871 Don't include <rpc/types.h>. Replace bool_t by bool.
25872 * nss/nss_compat/compat-initgroups.c: Likewise.
25873 * nss/nss_compat/compat-pwd.c: Likewise. Include "nisdomain.h"
25874 instead of <rpcsrv/ypclnt.h>.
25875 (getpwent_next_nss_netgr): Use __nss_get_default_domain instead of
25876 yp_get_default_domain.
25877 * nss/nss_compat/compat-pwd.c: Likewise.
25878 (getspent_next_nss_netgr): Use __nss_get_default_domain instead of
25879 yp_get_default_domain.
25880 * nss/nss_compat/nisdomain.c: New file.
25881 * nss/nss_compat/nisdomain.h: Likewise.
25882
25883 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25884
25885 [BZ #22244]
25886 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Fix x == 0 case.
25887 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
25888
25889 2017-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25890
25891 [BZ #22243]
25892 * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10): Use fabs.
25893 * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2): Likewise.
25894
25895 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25896
25897 * sysdeps/i386/start.S: Replace "leal main@GOT(%ebx), %eax" with
25898 "movl main@GOTOFF(%ebx), %eax".
25899
25900 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25901
25902 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Don't
25903 allow undefined _DYNAMIC in PIE libc.a.
25904 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
25905 Likewse.
25906
25907 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25908
25909 * sysdeps/mips/dl-machine.h (elf_machine_load_address): Don't
25910 check _DYNAMIC.
25911
25912 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25913
25914 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Don't
25915 check _DYNAMIC.
25916
25917 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25918
25919 * math/test-math-iscanonical.cc (error): Replace bool with int.
25920
25921 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25922
25923 * sysdeps/ieee754/dbl-64/s_modf.c: Include <libm-alias-double.h>.
25924 (modf): Define using libm_alias_double, only if [!__modf].
25925 * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Include
25926 <libm-alias-double.h>.
25927 (modf): Define using libm_alias_double, only if [!__modf].
25928 * sysdeps/ieee754/ldbl-opt/s_modf.c (modfl): Only define libc
25929 compat symbol here.
25930 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c
25931 (weak_alias): Do not undefine and redefine.
25932 (strong_alias): Likewise.
25933 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c
25934 (weak_alias): Likewise.
25935 (strong_alias): Likewise.
25936
25937 * sysdeps/ieee754/dbl-64/s_logb.c: Include <libm-alias-double.h>.
25938 (logb): Define using libm_alias_double, only if [!__logb].
25939 * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Include
25940 <libm-alias-double.h>.
25941 (logb): Define using libm_alias_double, only if [!__logb].
25942 * sysdeps/ieee754/ldbl-opt/s_logb.c: Remove file.
25943 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c
25944 (weak_alias): Do not undefine and redefine.
25945 (strong_alias): Likewise.
25946 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c
25947 (weak_alias): Likewise.
25948 (strong_alias): Likewise.
25949
25950 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
25951
25952 * sysdeps/unix/sysv/linux/tile/sysdep.h (SYSCALL_ERROR_NAME):
25953 Check SHARED instead PIC.
25954
25955 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25956
25957 * sysdeps/ieee754/dbl-64/s_fmaf.c: Include <libm-alias-float.h>.
25958 [!__fmaf] (fmaf): Define using libm_alias_float.
25959
25960 * sysdeps/ieee754/dbl-64/s_frexp.c: Include <libm-alias-double.h>.
25961 (frexp): Define using libm_alias_double.
25962 * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Include
25963 <libm-alias-double.h>.
25964 (frexp): Define using libm_alias_double.
25965 * sysdeps/ieee754/ldbl-opt/s_frexp.c (frexpl): Only define libc
25966 compat symbol here.
25967
25968 2017-10-03 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
25969
25970 [BZ #22235]
25971 * math/math.h: Trivial fix for unbalanced parentheses in comment.
25972 * math/Makefile [CXX] (tests): Add test-math-iscanonical.cc.
25973 (CFLAGS-test-math-iscanonical.cc): New variable.
25974 * math/test-math-iscanonical.cc: New file.
25975 * sysdeps/ieee754/ldbl-96/bits/iscanonical.h (iscanonical):
25976 Provide a C++ implementation based on function overloading,
25977 rather than using __MATH_TG, which uses C-only builtins.
25978 * sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h (iscanonical):
25979 Likewise.
25980 * sysdeps/powerpc/powerpc64le/Makefile
25981 (CFLAGS-test-math-iscanonical.cc): New variable.
25982
25983 2017-10-03 Joseph Myers <joseph@codesourcery.com>
25984
25985 * sysdeps/ieee754/dbl-64/s_ceil.c: Include <libm-alias-double.h>.
25986 (ceil): Define using libm_alias_double.
25987 * sysdeps/ieee754/dbl-64/s_floor.c: Include <libm-alias-double.h>.
25988 (floor): Define using libm_alias_double.
25989 * sysdeps/ieee754/dbl-64/s_llround.c: Include
25990 <libm-alias-double.h>.
25991 (llround): Define using libm_alias_double.
25992 * sysdeps/ieee754/dbl-64/s_lround.c: Include
25993 <libm-alias-double.h>.
25994 (lround): Define using libm_alias_double.
25995 * sysdeps/ieee754/dbl-64/s_nearbyint.c: Include
25996 <libm-alias-double.h>.
25997 (nearbyint): Define using libm_alias_double.
25998 * sysdeps/ieee754/dbl-64/s_remquo.c: Include
25999 <libm-alias-double.h>.
26000 (remquo): Define using libm_alias_double.
26001 * sysdeps/ieee754/dbl-64/s_rint.c: Include <libm-alias-double.h>.
26002 (rint): Define using libm_alias_double.
26003 * sysdeps/ieee754/dbl-64/s_round.c: Include <libm-alias-double.h>.
26004 (round): Define using libm_alias_double.
26005 * sysdeps/ieee754/dbl-64/s_trunc.c: Include <libm-alias-double.h>.
26006 (trunc): Define using libm_alias_double.
26007 * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Include
26008 <libm-alias-double.h>.
26009 (ceil): Define using libm_alias_double.
26010 * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Include
26011 <libm-alias-double.h>.
26012 (floor): Define using libm_alias_double.
26013 * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: Include
26014 <libm-alias-double.h>.
26015 (llround): Define using libm_alias_double.
26016 [_LP64] (lround): Likewise.
26017 * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Include
26018 <libm-alias-double.h>.
26019 [!_LP64] (lround): Define using libm_alias_double.
26020 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Include
26021 <libm-alias-double.h>.
26022 (nearbyint): Define using libm_alias_double.
26023 * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Include
26024 <libm-alias-double.h>.
26025 (remquo): Define using libm_alias_double.
26026 * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Include
26027 <libm-alias-double.h>.
26028 (rint): Define using libm_alias_double.
26029 * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Include
26030 <libm-alias-double.h>.
26031 (round): Define using libm_alias_double.
26032 * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Include
26033 <libm-alias-double.h>.
26034 (trunc): Define using libm_alias_double.
26035 * sysdeps/ieee754/ldbl-opt/s_ceil.c: Remove file.
26036 * sysdeps/ieee754/ldbl-opt/s_floor.c: Likewise.
26037 * sysdeps/ieee754/ldbl-opt/s_llround.c: Likewise.
26038 * sysdeps/ieee754/ldbl-opt/s_lround.c: Likewise.
26039 * sysdeps/ieee754/ldbl-opt/s_nearbyint.c: Likewise.
26040 * sysdeps/ieee754/ldbl-opt/s_remquo.c: Likewise.
26041 * sysdeps/ieee754/ldbl-opt/s_rint.c: Likewise.
26042 * sysdeps/ieee754/ldbl-opt/s_round.c: Likewise.
26043 * sysdeps/ieee754/ldbl-opt/s_trunc.c: Likewise.
26044
26045 2017-10-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
26046
26047 * math/w_remainder.c: New file.
26048 * math/w_remainderf.c: New file.
26049 * math/w_remainderl.c: New file.
26050
26051 2017-10-03 H.J. Lu <hongjiu.lu@intel.com>
26052
26053 * elf/rtld.c (BOOTSTRAP_MAP): New.
26054 (RESOLVE_MAP): Replace (&bootstrap_map) with BOOTSTRAP_MAP.
26055 * sysdeps/hppa/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26056 Likewise.
26057 * sysdeps/ia64/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26058 Likewise.
26059 * sysdeps/mips/dl-machine.h (ELF_MACHINE_BEFORE_RTLD_RELOC):
26060 Likewise.
26061
26062 2017-10-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
26063
26064 * include/libc-symbols.h [NO_RTLD_HIDDEN] (rtld_hidden_proto,
26065 rtld_hidden_tls_proto, rtld_hidden_def, rtld_hidden_weak,
26066 rtld_hidden_rtld_hidden_ver, data_def, rtld_hidden_data_weak,
26067 rtld_hidden_data_ver): Define to empty.
26068 * include/assert.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__assert_fail,
26069 __assert_perror_fail): Likewise.
26070 * include/dirent.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26071 (__rewinddir): Likewise.
26072 * include/libc-internal.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26073 (__profile_frequency): Likewise.
26074 * include/setjmp.h (__sigsetjmp): Likewise.
26075 * include/signal.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__sigaction,
26076 __libc_sigaction): Likewise.
26077 * include/stdlib.h [NO_RTLD_HIDDEN] (unsetenv, __strtoul_internal): Do
26078 not set hidden attribute.
26079 * include/string.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__stpcpy, __strdup,
26080 __strerror_t, __strsep_g, memchr, memcmp, memcpy, memmove, memset,
26081 rawmemchr, stpcpy, strchr, strcmp, strlen, strnlen, strsep): Likewise.
26082 * include/sys/stat.h [IS_IN(rtld) && NO_RTLD_HIDDEN] (__fxstat,
26083 __fxstat64, __lxstat, __lxstat64, __xstat, __xstat64,
26084 __fxstatat64): Likewise.
26085 * include/sys/utsname.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26086 (__uname): Likewise.
26087 * include/sysdeps/generic/_itoa.h [IS_IN(rtld) && NO_RTLD_HIDDEN]
26088 (_itoa_upper_digits, _itoa_lower_digits): Likewise.
26089 * sysdeps/mach/hurd/configure.ac (NO_HIDDEN): Do not set.
26090 (NO_RTLD_HIDDEN): Set.
26091 * sysdeps/mach/hurd/configure: Refresh.
26092 * config.h.in: Refresh.
26093
26094 2017-10-02 Joseph Myers <joseph@codesourcery.com>
26095
26096 * sysdeps/ieee754/dbl-64/s_atan.c: Include <libm-alias-double.h>.
26097 (atan): Define using libm_alias_double.
26098 * sysdeps/ieee754/dbl-64/s_tan.c: Include <libm-alias-double.h>.
26099 (tan): Define using libm_alias_double.
26100 * sysdeps/ieee754/ldbl-opt/s_atan.c: Remove file.
26101 * sysdeps/ieee754/ldbl-opt/s_tan.c: Likewise.
26102
26103 * sysdeps/ieee754/dbl-64/s_atan.c (atan): Rename to __atan and
26104 define as weak alias of __atan. Do not define any aliases if
26105 [__atan].
26106 [NO_LONG_DOUBLE] (__atanl): Define as strong alias of __atan.
26107 [NO_LONG_DOUBLE] (atanl): Define as weak alias of __atanl.
26108 * sysdeps/ieee754/dbl-64/s_tan.c (tan): Rename to __tan and define
26109 as weak alias of __tan. Do not define any aliases if [__tan].
26110 [NO_LONG_DOUBLE] (__tanl): Define as strong alias of __tan.
26111 [NO_LONG_DOUBLE] (tanl): Define as weak alias of __tanl.
26112 * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c (atan): Rename to
26113 __atan.
26114 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c (atan): Likewise.
26115 * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c (atan): Likewise.
26116 * sysdeps/x86_64/fpu/multiarch/s_atan.c (atan): Rename to __atan
26117 and define as weak alias of __atan.
26118 * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c (tan): Rename to
26119 __atan.
26120 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c (tan): Likewise.
26121 * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (tan): Likewise.
26122 * sysdeps/x86_64/fpu/multiarch/s_tan.c (tan): Rename to __tan and
26123 define as weak alias of __tan.
26124
26125 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26126
26127 * math/w_lgamma.c: New file.
26128 * math/w_lgammaf.c: New file.
26129 * math/w_lgammal.c: New file.
26130
26131 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26132
26133 * sysdeps/ieee754/flt-32/e_log2f.c (__log2f): Define without wrapper.
26134 * sysdeps/ieee754/flt-32/e_logf.c (__logf): Likewise
26135 * sysdeps/ieee754/flt-32/e_powf.c (__powf): Likewise
26136 * sysdeps/ieee754/flt-32/w_log2f.c: New file.
26137 * sysdeps/ieee754/flt-32/w_logf.c: New file.
26138 * sysdeps/ieee754/flt-32/w_powf.c: New file.
26139 * sysdeps/i386/fpu/w_log2f.c: New file.
26140 * sysdeps/i386/fpu/w_logf.c: New file.
26141 * sysdeps/i386/fpu/w_powf.c: New file.
26142 * sysdeps/m68k/m680x0/fpu/w_log2f.c: New file.
26143 * sysdeps/m68k/m680x0/fpu/w_logf.c: New file.
26144 * sysdeps/m68k/m680x0/fpu/w_powf.c: New file.
26145
26146 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26147 H.J. Lu <hongjiu.lu@intel.com>
26148
26149 * sysdeps/ieee754/flt-32/e_exp2f.c (__exp2f): Define without wrapper.
26150 * sysdeps/ieee754/flt-32/e_expf.c (__expf): Likewise
26151 * sysdeps/ieee754/flt-32/w_exp2f.c: New file.
26152 * sysdeps/ieee754/flt-32/w_expf.c: New file.
26153 * sysdeps/powerpc/powerpc64/fpu/multiarch/e_expf-ppc64.c: Update for
26154 the new expf code.
26155 * sysdeps/powerpc/powerpc64/fpu/multiarch/w_expf.c: New file.
26156 * sysdeps/powerpc/powerpc64/power8/fpu/w_expf.c: New file.
26157 * sysdeps/m68k/m680x0/fpu/w_exp2f.c: New file.
26158 * sysdeps/m68k/m680x0/fpu/w_expf.c: New file.
26159 * sysdeps/i386/fpu/w_exp2f.c: New file.
26160 * sysdeps/i386/fpu/w_expf.c: New file.
26161 * sysdeps/i386/i686/fpu/multiarch/w_expf.c: New file.
26162 * sysdeps/x86_64/fpu/w_expf.c: New file.
26163
26164 2017-10-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
26165
26166 * math/Versions (logf): New libm symbol at GLIBC_2.27.
26167 (log2f): Likewise.
26168 (powf): Likewise.
26169 * math/w_log2f.c: New file.
26170 * math/w_logf.c: New file.
26171 * math/w_powf.c: New file.
26172 * math/w_log2f_compat.c (__log2f_compat): For compat symbol only.
26173 * math/w_logf_compat.c (__logf_compat): Likewise.
26174 * math/w_powf_compat.c (__powf_compat): Likewise.
26175 * sysdeps/ia64/fpu/e_log2f.S: Add versioned symbols.
26176 * sysdeps/ia64/fpu/e_logf.S: Likewise.
26177 * sysdeps/ia64/fpu/e_powf.S: Likewise.
26178 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
26179 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
26180 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
26181 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
26182 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
26183 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
26184 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
26185 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
26186 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
26187 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
26188 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
26189 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
26190 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
26191 Likewise.
26192 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
26193 Likewise.
26194 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
26195 Likewise.
26196 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
26197 Likewise.
26198 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
26199 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
26200 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
26201 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
26202 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
26203 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
26204 Likewise.
26205 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
26206 Likewise.
26207 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
26208 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
26209 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
26210
26211 2017-10-02 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
26212
26213 * sysdeps/powerpc/powerpc64/multiarch/Makefile
26214 (sysdep_routines): Add memrchr_power8.
26215 * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
26216 (memrchr): Add __memrchr_power8 to list of memrchr functions.
26217 * sysdeps/powerpc/powerpc64/multiarch/memrchr-power8.S:
26218 New file.
26219 * sysdeps/powerpc/powerpc64/multiarch/memrchr.c
26220 (memrchr): Add __memrchr_power8 to ifunc list.
26221 * sysdeps/powerpc/powerpc64/power8/memrchr.S: New file.
26222
26223 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26224
26225 [BZ #18822]
26226 * sysdeps/unix/sysv/linux/posix_fadvise64.c
26227 (__posix_fadvise64_l64): Add Add libc_hidden_proto and
26228 libc_hidden_def.
26229 * sysdeps/unix/sysv/linux/posix_fallocate64.c
26230 (__posix_fallocate64_l64): Likewise.
26231
26232 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26233
26234 [BZ #18822]
26235 * sysdeps/unix/sysv/linux/sched_setaffinity.c
26236 (__sched_setaffinity_new): Add libc_hidden_proto and
26237 libc_hidden_def.
26238
26239 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26240
26241 [BZ #18822]
26242 * include/glob.h (__glob64): Add libc_hidden_proto.
26243 * sysdeps/unix/sysv/linux/glob64.c (__glob64): Add
26244 libc_hidden_def.
26245
26246 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26247
26248 [BZ #18822]
26249 * sysdeps/unix/sysv/linux/getrlimit64.c (__new_getrlimit): Add
26250 attribute_hidden.
26251
26252 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26253
26254 [BZ #18822]
26255 * stdlib/exit.h (__new_exitfn): Add attribute_hidden.
26256
26257 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26258
26259 [BZ #18822]
26260 * mon/gmon.c (__moncontrol): Add libc_hidden_proto and
26261 libc_hidden_def.
26262
26263 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26264
26265 [BZ #18822]
26266 * csu/version.c (__libc_print_version): Add attribute_hidden.
26267
26268 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26269
26270 [BZ #18822]
26271 * include/libc-internal.h (__init_misc): Add attribute_hidden.
26272
26273 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26274
26275 [BZ #18822]
26276 * include/fpu_control.h (__setfpucw): Add attribute_hidden.
26277
26278 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26279
26280 [BZ #18822]
26281 * nscd/nscd_helper.c (__nis_hash): New prototype.
26282
26283 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26284
26285 [BZ #18822]
26286 * include/termios.h (__tcgetattr): Add libc_hidden_proto.
26287 * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add
26288 libc_hidden_def.
26289 * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
26290 * termios/tcgetattr.c (__tcgetattr): Likewise.
26291
26292 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26293
26294 [BZ #18822]
26295 * include/sys/resource.h (__setrlimit): Add libc_hidden_proto.
26296 * resource/setrlimit.c (__setrlimit): Add libc_hidden_def.
26297 * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Likewise.
26298 * sysdeps/unix/sysv/linux/setrlimit.c (__setrlimit): Likewise.
26299 * sysdeps/unix/sysv/linux/setrlimit64.c (__GI___setrlimit): New.
26300
26301 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26302
26303 [BZ #18822]
26304 * include/monetary.h (__vstrfmon_l): Add attribute_hidden.
26305
26306 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26307
26308 [BZ #18822]
26309 * include/sched.h (__sched_setparam): Add libc_hidden_proto.
26310 * posix/sched_setp.c (__sched_setparam): Add libc_hidden_def.
26311
26312 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26313
26314 [BZ #18822]
26315 * intl/hash-string.h (__hash_string): Add attribute_hidden.
26316
26317 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26318
26319 [BZ #18822]
26320 * include/mntent.h (__hasmntopt): Add libc_hidden_proto.
26321 * misc/mntent_r.c (__hasmntopt): Add libc_hidden_def.
26322
26323 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26324
26325 [BZ #18822]
26326 * include/ifreq.h: New file.
26327 * sysdeps/generic/ifreq.h (__if_nextreq): Removed.
26328 (__ifreq): Likewise.
26329 * sysdeps/mach/hurd/ifreq.h (__if_nextreq): Removed.
26330 (__ifreq): Likewise.
26331
26332 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26333
26334 [BZ #18822]
26335 * include/idna.h: New file.
26336 * inet/getnameinfo.c: Include <idna.h> instead of
26337 <libidn/idna.h>.
26338 (__idna_to_unicode_lzlz): Removed.
26339 * sysdeps/posix/getaddrinfo.c: Include <idna.h> instead of
26340 <libidn/idna.h>.
26341 (__idna_to_ascii_lz): Removed.
26342 (__idna_to_unicode_lzlz): Likewise.
26343
26344 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26345
26346 [BZ #18822]
26347 * include/plural-exp.h: New file.
26348 * intl/plural-exp.c: Include <plural-exp.h> instead of
26349 "plural-exp.h".
26350
26351 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26352
26353 [BZ #18822]
26354 * sysdeps/unix/sysv/linux/getsourcefilter.c: Include
26355 "getsourcefilter.h".
26356 * sysdeps/unix/sysv/linux/getsourcefilter.h: New file.
26357 * sysdeps/unix/sysv/linux/setsourcefilter.c: Include
26358 "getsourcefilter.h".
26359 (__get_sol): Removed.
26360
26361 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26362
26363 [BZ #18822]
26364 * elf/dl-iteratephdr.c (hidden_proto (__dl_iterate_phdr)): Moved
26365 to ...
26366 * include/link.h (hidden_proto (__dl_iterate_phdr)): Here.
26367
26368 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26369
26370 [BZ #18822]
26371 * sysdeps/unix/sysv/linux/getpt.c (__bsd_getpt): Add
26372 attribute_hidden.
26373
26374 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26375
26376 [BZ #18822]
26377 * libio/iolibio.h (__fopen_maybe_mmap): Add attribute_hidden.
26378
26379 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26380
26381 [BZ #18822]
26382 * include/search.h (__tdestroy): Add libc_hidden_proto.
26383 * misc/tsearch.c (__tdestroy): Add libc_hidden_def.
26384
26385 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26386
26387 [BZ #18822]
26388 * include/assert.h (__assert_fail_base): Add attribute_hidden.
26389
26390 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26391
26392 [BZ #18822]
26393 * sysdeps/unix/sysv/linux/include/sys/sysinfo.h (__sysinfo): Add
26394 attribute_hidden.
26395
26396 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26397
26398 [BZ #18822]
26399 * include/signal.h (__kill): Add libc_hidden_proto.
26400 (__sigblock): Likewise.
26401 (__sigprocmask): Likewise.
26402 (__sigaltstack): Likewise.
26403 * signal/kill.c (__kill): Add libc_hidden_def.
26404 * signal/sigblock.c (__sigblock): Likewise.
26405 * signal/sigprocmask.c (__sigprocmask): Likewise.
26406 * sysdeps/mach/hurd/kill.c (__kill): Likewise.
26407 * sysdeps/mach/hurd/sigaltstack.c (__sigaltstack): Likewise.
26408 * sysdeps/mach/hurd/sigprocmask.c (__sigprocmask): Likewise.
26409 * sysdeps/posix/sigblock.c (__sigblock): Likewise.
26410 * sysdeps/unix/sysv/linux/alpha/sigprocmask.c (__sigprocmask):
26411 Likewise.
26412 * sysdeps/unix/sysv/linux/ia64/sigprocmask.c (__sigprocmask):
26413 Likewise.
26414 * sysdeps/unix/sysv/linux/s390/s390-64/sigprocmask.c
26415 (__sigprocmask): Likewise.
26416 * sysdeps/unix/sysv/linux/sigprocmask.c (__sigprocmask):
26417 Likewise.
26418 * /sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c
26419 (__sigprocmask): Likewise.
26420 * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c (__sigprocmask):
26421 Likewise.
26422
26423 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26424
26425 [BZ #18822]
26426 * include/string.h (__strsep): Add libc_hidden_proto.
26427 * string/strsep.c (__strsep): Add libc_hidden_def.
26428
26429 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26430
26431 [BZ #18822]
26432 * posix/spawn_int.h (__posix_spawn_file_actions_realloc): Add
26433 attribute_hidden.
26434 (__spawni): Likewise.
26435
26436 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26437
26438 [BZ #18822]
26439 * include/sys/mman.h (__mremap): Add libc_hidden_proto.
26440 * sysdeps/unix/sysv/linux/m68k/mremap.S (__mremap): Add
26441 libc_hidden_def.
26442
26443 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26444
26445 [BZ #18822]
26446 * include/malloc.h (__malloc_check_init): Add attribute_hidden.
26447
26448 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26449
26450 [BZ #18822]
26451 * include/sys/ioctl.h (__ioctl): Add libc_hidden_proto.
26452 * misc/ioctl.c (__ioctl): Add libc_hidden_def.
26453 * sysdeps/mach/hurd/ioctl.c (__ioctl): Likewise.
26454 * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Likewise.
26455 * sysdeps/unix/sysv/linux/mips/mips64/n64/ioctl.S (__ioctl):
26456 Likewise.
26457 * sysdeps/unix/sysv/linux/powerpc/ioctl.c (__ioctl): Likewise.
26458 * sysdeps/unix/sysv/linux/tile/tilegx/ioctl.S (__ioctl): Likewise.
26459
26460 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26461
26462 [BZ #18822]
26463 * intl/gettextP.h (__dcngettext): Add attribute_hidden.
26464 (__dcigettext): Likewise.
26465
26466 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26467
26468 [BZ #18822]
26469 * include/sys/sysinfo.h (__get_nprocs_conf): Add
26470 libc_hidden_proto.
26471 (__get_nprocs): Likewise.
26472 (__get_phys_pages): Likewise.
26473 (__get_avphys_pages): Likewise.
26474 (__get_child_max): Add attribute_hidden.
26475 * misc/getsysstats.c (__get_nprocs_conf): Add libc_hidden_def.
26476 (__get_nprocs): Likewise.
26477 (__get_phys_pages): Likewise.
26478 (__get_avphys_pages): Likewise.
26479 * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Add
26480 libc_hidden_def.
26481 (__get_nprocs): Likewise.
26482 (__get_phys_pages): Likewise.
26483 (__get_avphys_pages): Likewise.
26484 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Add
26485 libc_hidden_def.
26486 (__get_nprocs_conf): Likewise.
26487 (__get_phys_pages): Likewise.
26488 (__get_avphys_pages): Likewise.
26489
26490 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26491
26492 [BZ #18822]
26493 * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
26494 attribute_hidden.
26495 (__netlink_close): Likewise.
26496 (__netlink_free_handle): Likewise.
26497 (__netlink_request): Likewise.
26498
26499 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26500
26501 [BZ #18822]
26502 * include/rpc/rpc.h (__rpc_thread_variables): Add
26503 attribute_hidden.
26504 (__rpc_thread_svc_cleanup): Likewise.
26505 (__rpc_thread_clnt_cleanup): Likewise.
26506 (__rpc_thread_key_cleanup): Likewise.
26507
26508 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26509
26510 [BZ #18822]
26511 * include/sys/uio.h (__readv): Add libc_hidden_proto.
26512 (__writev): Likewise.
26513 * misc/readv.c (__readv): Add libc_hidden_def.
26514 * misc/writev.c (__writev): Likewise.
26515 * sysdeps/posix/readv.c (__readv): Likewise.
26516 * sysdeps/posix/writev.c (__writev): Likewise.
26517 * sysdeps/unix/sysv/linux/readv.c: Include <sys/uio.h>.
26518 (__readv): Likewise.
26519 * sysdeps/unix/sysv/linux/writev.c: Include <sys/uio.h>.
26520 (__writev): Likewise.
26521
26522 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26523
26524 [BZ #18822]
26525 * include/regex.h (__re_compile_fastmap): Add attribute_hidden.
26526 (__regcomp): Add libc_hidden_proto.
26527 (__regexec): Likewise.
26528 (__regfree): Likewise.
26529 * posix/regcomp.c (__regcomp): Add libc_hidden_def.
26530 (__regfree): Likewise.
26531 * posix/regexec.c (__regexec): Likewise.
26532
26533 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26534
26535 [BZ #18822]
26536 * include/utmp.h (__updwtmp): Add libc_hidden_proto.
26537 (__getutent): Likewise.
26538 (__getutid): Likewise.
26539 (__getutline): Likewise.
26540 (__pututline): Likewise.
26541 (__getutent_r): Likewise.
26542 (__getutid_r): Likewise.
26543 (__getutline_r): Likewise.
26544 (__utmpname): Add attribute_hidden.
26545 (__setutent): Likewise.
26546 (__endutent): Likewise.
26547 * login/getutent.c (__getutent): Add libc_hidden_def.
26548 * login/getutent_r.c (__getutent_r): Likewise.
26549 (__pututline): Likewise.
26550 * login/getutid.c (__getutid): Likewise.
26551 * login/getutid_r.c (__getutid_r): Likewise.
26552 * login/getutline.c (__getutline): Likewise.
26553 * login/getutline_r.c (__getutline_r): Likewise.
26554 * login/updwtmp.c (__updwtmp): Likewise.
26555
26556 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26557
26558 [BZ #18822]
26559 * include/dirent.h (__opendir): Always add attribute_hidden.
26560 (__fdopendir): Likewise.
26561 (__closedir): Likewise.
26562 (__readdir): Likewise.
26563 (__readdir64): Add libc_hidden_proto.
26564 * sysdeps/mach/hurd/readdir64.c (__readdir64): Add libc_hidden_def.
26565 * sysdeps/unix/sysv/linux/i386/readdir64.c (__readdir64): Likewise.
26566 * sysdeps/unix/sysv/linux/readdir64.c (__readdir64): Likewise.
26567 * sysdeps/unix/sysv/linux/wordsize-64/readdir.c (__GI___readdir64):
26568 New alias.
26569
26570 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26571
26572 [BZ #18822]
26573 * include/aliases.h (__getaliasbyname_r): Add attribute_hidden.
26574 * include/netdb.h (__gethostbyaddr_r): Likewise.
26575 (__gethostbyname_r): Likewise.
26576 (__gethostbyname2_r): Likewise.
26577 (__getnetbyaddr_r): Likewise.
26578 (__getnetbyname_r): Likewise.
26579 (__getservbyname_r): Likewise.
26580 (__getservbyport_r): Likewise.
26581 (__getprotobyname_r): Likewise.
26582 (__getprotobynumber_r): Likewise.
26583 (__getnetgrent_r): Likewise.
26584 * include/rpc/netdb.h (__getrpcbyname_r): Likewise.
26585 (__getrpcbynumber_r): Likewise.
26586 * nss/getXXbyYY.c (INTERNAL (REENTRANT_NAME)): Likewise.
26587
26588 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26589
26590 [BZ #18822]
26591 * include/stdio.h (__fcloseall): Add attribute_hidden.
26592 (__getline): Likewise.
26593 (__path_search): Likewise.
26594 (__gen_tempname): Likewise.
26595 (__libc_message): Likewise.
26596 (__flockfile): Likewise.
26597 (__funlockfile): Likewise.
26598 (__fxprintf): Likewise.
26599 (__fxprintf_nocancel): Likewise.
26600
26601 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26602
26603 [BZ #18822]
26604 * include/gshadow.h (__fgetsgent_r): Add attribute_hidden.
26605 (__sgetsgent_r): Likewise.
26606
26607 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26608
26609 [BZ #18822]
26610 * include/sys/statfs.h (__fstatfs): Add attribute_hidden.
26611 (__statfs64): Likewise.
26612 (__fstatfs64): Likewise.
26613 * include/sys/statvfs.h (__statvfs64): Likewise.
26614 (__fstatvfs64): Likewise.
26615 * sysdeps/unix/sysv/linux/pathconf.h (__statfs_link_max): Likewise.
26616 (__statfs_filesize_max): Likewise.
26617 (__statfs_symlinks): Likewise.
26618 (__statfs_chown_restricted): Likewise.
26619
26620 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26621
26622 [BZ #18822]
26623 * include/time.h (__tzstring): Add attribute_hidden.
26624 (__tzfile_read): Likewise.
26625 (__tzfile_compute): Likewise.
26626 (__tzfile_default): Likewise.
26627 (__tzset_parse_tz): Likewise.
26628 (__offtime): Likewise.
26629 (__asctime_r): Likewise.
26630 (__tzset): Likewise.
26631 (__tz_convert): Likewise.
26632 (__getdate_r): Likewise.
26633 (__getclktck): Likewise.
26634
26635 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26636
26637 [BZ #18822]
26638 * nscd/nscd-client.h (__nscd_get_map_ref): Add attribute_hidden.
26639 (__nscd_unmap): Likewise.
26640 (__nscd_cache_search): Likewise.
26641 (__nscd_get_nl_timestamp): Likewise.
26642 (__nscd_getpwnam_r): Likewise.
26643 (__nscd_getpwuid_r): Likewise.
26644 (__nscd_getgrnam_r): Likewise.
26645 (__nscd_getgrgid_r): Likewise.
26646 (__nscd_gethostbyname_r): Likewise.
26647 (__nscd_gethostbyname2_r): Likewise.
26648 (__nscd_gethostbyaddr_r): Likewise.
26649 (__nscd_getai): Likewise.
26650 (__nscd_getgrouplist): Likewise.
26651 (__nscd_getservbyname_r): Likewise.
26652 (__nscd_getservbyport_r): Likewise.
26653 (__nscd_innetgr): Likewise.
26654 (__nscd_setnetgrent): Likewise.
26655
26656 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26657
26658 [BZ #18822]
26659 * include/gmp.h: Declare internal functions only if _ISOMAC is
26660 undefined.
26661 (__mpn_extract_double): Add attribute_hidden.
26662 (__mpn_extract_long_double): Likewise.
26663 (__mpn_extract_float128): Likewise.
26664 (__mpn_construct_float): Likewise.
26665 (__mpn_construct_double): Likewise.
26666 (__mpn_construct_long_double): Likewise.
26667 (__mpn_construct_float128): Likewise.
26668 (mpn_add_1): Likewise.
26669 (mpn_addmul_1): Likewise.
26670 (mpn_add_n): Likewise.
26671 (mpn_cmp): Likewise.
26672 (mpn_divrem): Likewise.
26673 (mpn_lshift): Likewise.
26674 (mpn_mul): Likewise.
26675 (mpn_mul_1): Likewise.
26676 (mpn_rshift): Likewise.
26677 (mpn_sub_1): Likewise.
26678 (mpn_submul_1): Likewise.
26679 (mpn_sub_n): Likewise.
26680
26681 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26682
26683 [BZ #18822]
26684 * include/wchar.h (__wcsnlen): Add attribute_hidden.
26685 (__wcscat): Likewise.
26686 (__btowc): Likewise.
26687 (__wcrtomb): Likewise.
26688 (__mbsrtowcs): Likewise.
26689 (__wcsrtombs): Likewise.
26690 (__mbsnrtowcs): Likewise.
26691 (__wcsnrtombs): Likewise.
26692 (__wcsncpy): Likewise.
26693 (__wcpncpy): Likewise.
26694 (__wmemcpy): Likewise.
26695 (__wmempcpy): Likewise.
26696 (__wmemmove): Likewise.
26697 (__wcschrnul): Likewise.
26698 (__vfwscanf): Likewise.
26699 (__vswprintf): Likewise.
26700 (__fwprintf): Likewise.
26701 (__vfwprintf): Likewise.
26702
26703 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26704
26705 [BZ #18822]
26706 * include/grp.h (__fgetgrent_r): Add attribute_hidden.
26707 (__getgrgid_r): Likewise.
26708 (__getgrnam_r): Likewise.
26709 * include/pwd.h (__getpwuid_r): Likewise.
26710 (__getpwnam_r): Likewise.
26711 (__fgetpwent_r): Likewise.
26712 * include/shadow.h (__getspnam_r): Likewise.
26713 (__sgetspent_r): Likewise.
26714 (__fgetspent_r): Likewise.
26715
26716 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26717
26718 [BZ #18822]
26719 * include/unistd.h (__access): Add attribute_hidden.
26720 (__lseek64): Likewise.
26721 (__libc_pread64): Likewise.
26722 (__pipe2): Likewise.
26723 (__sleep): Likewise.
26724 (__chdir): Likewise.
26725 (__fchdir): Likewise.
26726 (__getcwd): Likewise.
26727 (__rmdir): Likewise.
26728 (__execvpe): Likewise.
26729 (__execve): Likewise.
26730 (__setsid): Likewise.
26731 (__getuid): Likewise.
26732 (__geteuid): Likewise.
26733 (__getgid): Likewise.
26734 (__getegid): Likewise.
26735 (__getgroups): Likewise.
26736 (__group_member): Likewise.
26737 (__ttyname_r): Likewise.
26738 (__isatty): Likewise.
26739 (__readlink): Likewise.
26740 (__unlink): Likewise.
26741 (__gethostname): Likewise.
26742 (__profil): Likewise.
26743 (__getdtablesize): Likewise.
26744 (__brk): Likewise.
26745 (__ftruncate): Likewise.
26746 (__ftruncate64): Likewise.
26747
26748 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26749
26750 [BZ #18822]
26751 * argp/argp-fmtstream.c: Include <argp-fmtstream.h>.
26752 * argp/argp-fs-xinl.c: Likewise.
26753 * argp/argp-help.c: Include <argp.h> and <argp-fmtstream.h>.
26754 * argp/argp-parse.c: Include <argp.h>.
26755 * argp/argp-xinl.c: Likewise.
26756 * include/argp-fmtstream.h: New file.
26757 * include/argp.h (__argp_error): Add attribute_hidden.
26758 (__argp_failure): Likewise.
26759 (__argp_input): Likewise.
26760 (__argp_state_help): Likewise.
26761
26762 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26763
26764 [BZ #18822]
26765 * include/wchar.h (____wcstof_l_internal): New prototype.
26766 (____wcstod_l_internal): Likewise.
26767 (____wcstold_l_internal): Likewise.
26768 (____wcstol_l_internal): Likewise.
26769 (____wcstoul_l_internal): Likewise.
26770 (____wcstoll_l_internal): Likewise.
26771 (____wcstoull_l_internal): Likewise.
26772 (____wcstof128_l_internal): Likewise.
26773 * sysdeps/ieee754/float128/wcstof128.c
26774 (____wcstof128_l_internal): Removed.
26775 * sysdeps/ieee754/float128/wcstof128_l.c
26776 (____wcstof128_l_internal): Likewise.
26777 * wcsmbs/wcstod.c (____wcstod_l_internal): Likewise.
26778 * wcsmbs/wcstod_l.c (____wcstod_l_internal): Likewise.
26779 * wcsmbs/wcstof.c (____wcstof_l_internal): Likewise.
26780 * wcsmbs/wcstof_l.c (____wcstof_l_internal): Likewise.
26781 * wcsmbs/wcstol_l.c (____wcstol_l_internal): Likewise.
26782 * wcsmbs/wcstold.c (____wcstold_l_internal): Likewise.
26783 * wcsmbs/wcstold_l.c (____wcstold_l_internal): Likewise.
26784 * wcsmbs/wcstoll_l.c (____wcstoll_l_internal): Likewise.
26785 * wcsmbs/wcstoul_l.c (____wcstoul_l_internal): Likewise.
26786 * wcsmbs/wcstoull_l.c (____wcstoull_l_internal): Likewise.
26787
26788 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26789
26790 [BZ #18822]
26791 * sysdeps/unix/sysv/linux/fstatvfs.c: Include "internal_statvfs.h"
26792 instead of <sys/statvfs.h>.
26793 (__internal_statvfs): Removed.
26794 * sysdeps/unix/sysv/linux/fstatvfs64.c Include "internal_statvfs.h"
26795 instead of <sys/statvfs.h>.
26796 (__internal_statvfs64): Removed.
26797 * sysdeps/unix/sysv/linux/internal_statvfs.c: Include
26798 "internal_statvfs.h" instead of <sys/statvfs.h>.
26799 * sysdeps/unix/sysv/linux/internal_statvfs.h: New file.
26800 * sysdeps/unix/sysv/linux/statvfs.c Include "internal_statvfs.h"
26801 instead of <sys/statvfs.h>.
26802 (__internal_statvfs): Removed.
26803 * sysdeps/unix/sysv/linux/statvfs64.c Include "internal_statvfs.h"
26804 instead of <sys/statvfs.h>.
26805 (__internal_statvfs64): Removed.
26806
26807 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26808
26809 [BZ #18822]
26810 * iconv/gconv_int.h (__gconv_open): Add attribute_hidden.
26811 (__gconv_close): Likewise.
26812 (__gconv): Likewise.
26813 (__gconv_find_transform): Likewise.
26814 (__gconv_lookup_cache): Likewise.
26815 (__gconv_compare_alias_cache): Likewise.
26816 (__gconv_load_cache): Likewise.
26817 (__gconv_get_path): Likewise.
26818 (__gconv_close_transform): Likewise.
26819 (__gconv_release_cache): Likewise.
26820 (__gconv_find_shlib): Likewise.
26821 (__gconv_release_shlib): Likewise.
26822 (__gconv_get_builtin_trans): Likewise.
26823 (__gconv_compare_alias): Likewise.
26824 * include/dlfcn.h (_dlerror_run): Likewise.
26825 * include/stdio.h (__fortify_fail_abort): Likewise.
26826 * include/time.h (__tz_compute): Likewise.
26827 (__strptime_internal): Likewise.
26828 * intl/gettextP.h (_nl_find_domain): Likewise.
26829 (_nl_load_domain): Likewise.
26830 (_nl_find_msg): Likewise.
26831 * intl/plural-exp.h (FREE_EXPRESSION): Likewise.
26832 (EXTRACT_PLURAL_EXPRESSION): Likewise.
26833 * locale/coll-lookup.h (__collidx_table_lookup): Likewise.
26834 * resolv/gai_misc.h (__gai_enqueue_request): Likewise.
26835 (__gai_find_request): Likewise.
26836 (__gai_remove_request): Likewise.
26837 (__gai_notify): Likewise.
26838 (__gai_notify_only): Likewise.
26839 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
26840 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
26841 (_dl_non_dynamic_init): Likewise.
26842 (_dl_aux_init): Likewise.
26843 * sysdeps/i386/machine-gmon.h (mcount_internal): Likewise.
26844 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
26845 Likewise.
26846 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv): Likewise.
26847 (__wcsmbs_clone_conv): Likewise.
26848 (__wcsmbs_named_conv): Likewise.
26849
26850 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26851
26852 [BZ #18822]
26853 * include/stdlib.h (__random): Add attribute_hidden.
26854 (__random_r): Likewise.
26855 (__srandom_r): Likewise.
26856 (__initstate_r): Likewise.
26857 (__setstate_r): Likewise.
26858 (__erand48_r): Likewise.
26859 (__nrand48_r): Likewise.
26860 (__jrand48_r): Likewise.
26861 (__srand48_r): Likewise.
26862 (__seed48_r): Likewise.
26863 (__lcong48_r): Likewise.
26864 (__drand48_iterate): Likewise.
26865 (__setenv): Likewise.
26866 (__unsetenv): Likewise.
26867 (__clearenv): Likewise.
26868 (__ptsname_r): Likewise.
26869 (__posix_openpt): Likewise.
26870 (__add_to_environ): Likewise.
26871 (__realpath): Add libc_hidden_proto.
26872 (__ecvt_r): Likewise.
26873 (__fcvt_r): Likewise.
26874 (__qecvt_r): Likewise.
26875 (__qfcvt_r): Likewise.
26876 * misc/efgcvt_r.c (cvt_symbol_1): Add libc_hidden_def (local).
26877 * stdlib/canonicalize.c (__realpath): Add libc_hidden_def.
26878
26879 2017-10-01 H.J. Lu <hongjiu.lu@intel.com>
26880
26881 [BZ #18822]
26882 * include/stdlib.h (__ptsname_internal): Add attribute_hidden.
26883 * include/time.h (__mktime_internal): Likewise.
26884 * libio/iolibio.h (__fopen_internal): Likewise.
26885
26886 2017-10-01 John David Anglin <danglin@gcc.gnu.org>
26887
26888 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Save return
26889 pointer in frame.
26890 * sysdeps/unix/sysv/linux/hppa/setcontext.S (__setcontext): Likewise.
26891 Correct offset used to restore PIC register.
26892
26893 2017-09-30 John David Anglin <danglin@gcc.gnu.org>
26894
26895 [BZ libc/22165]
26896 * sysdeps/unix/sysv/linux/hppa/getcontext.S (__getcontext): Use PIC
26897 code to load address of __getcontext_ret when generating PIC code.
26898
26899 2017-09-30 H.J. Lu <hongjiu.lu@intel.com>
26900
26901 * elf/Makefile (tests-static-internal): Add
26902 tst-tls1-static-non-pie.
26903 (LDFLAGS-tst-tls1-static-non-pie): New.
26904 * elf/tst-tls1-static-non-pie.c: New file.
26905
26906 2017-09-29 Joseph Myers <joseph@codesourcery.com>
26907
26908 * sysdeps/ieee754/dbl-64/s_asinh.c: Include <libm-alias-double.h>.
26909 (asinh): Define using libm_alias_double.
26910 * sysdeps/ieee754/dbl-64/s_cbrt.c: Include <libm-alias-double.h>.
26911 (cbrt): Define using libm_alias_double.
26912 * sysdeps/ieee754/dbl-64/s_copysign.c: Include
26913 <libm-alias-double.h>.
26914 (copysign): Define using libm_alias_double.
26915 * sysdeps/ieee754/dbl-64/s_erf.c: Include <libm-alias-double.h>.
26916 (erf): Define using libm_alias_double.
26917 (erfc): Likewise.
26918 * sysdeps/ieee754/dbl-64/s_expm1.c: Include <libm-alias-double.h>.
26919 (expm1): Define using libm_alias_double.
26920 * sysdeps/ieee754/dbl-64/s_fabs.c: Include <libm-alias-double.h>.
26921 (fabs): Define using libm_alias_double.
26922 * sysdeps/ieee754/dbl-64/s_fromfp.c (fromfp): Define using
26923 libm_alias_double.
26924 * sysdeps/ieee754/dbl-64/s_fromfp_main.c: Include
26925 <libm-alias-double.h>.
26926 * sysdeps/ieee754/dbl-64/s_fromfpx.c (fromfpx): Define using
26927 libm_alias_double.
26928 * sysdeps/ieee754/dbl-64/s_getpayload.c: Include
26929 <libm-alias-double.h>.
26930 (getpayload): Define using libm_alias_double.
26931 * sysdeps/ieee754/dbl-64/s_llrint.c: Include
26932 <libm-alias-double.h>.
26933 (llrint): Define using libm_alias_double.
26934 * sysdeps/ieee754/dbl-64/s_lrint.c: Include <libm-alias-double.h>.
26935 (lrint): Define using libm_alias_double.
26936 * sysdeps/ieee754/dbl-64/s_nextup.c: Include
26937 <libm-alias-double.h>.
26938 (nextup): Define using libm_alias_double.
26939 * sysdeps/ieee754/dbl-64/s_roundeven.c: Include
26940 <libm-alias-double.h>.
26941 (roundeven): Define using libm_alias_double.
26942 * sysdeps/ieee754/dbl-64/s_setpayload.c (setpayload): Define using
26943 libm_alias_double.
26944 * sysdeps/ieee754/dbl-64/s_setpayload_main.c: Include
26945 <libm-alias-double.h>.
26946 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (setpayloadsig): Define
26947 using libm_alias_double.
26948 * sysdeps/ieee754/dbl-64/s_sin.c: Include <libm-alias-double.h>.
26949 (cos): Define using libm_alias_double.
26950 (sin): Likewise.
26951 * sysdeps/ieee754/dbl-64/s_sincos.c: Include
26952 <libm-alias-double.h>.
26953 (sincos): Define using libm_alias_double.
26954 * sysdeps/ieee754/dbl-64/s_tanh.c: Include <libm-alias-double.h>.
26955 (tanh): Define using libm_alias_double.
26956 * sysdeps/ieee754/dbl-64/s_totalorder.c: Include
26957 <libm-alias-double.h>.
26958 (totalorder): Define using libm_alias_double.
26959 * sysdeps/ieee754/dbl-64/s_totalordermag.c: Include
26960 <libm-alias-double.h>.
26961 (totalordermag): Define using libm_alias_double.
26962 * sysdeps/ieee754/dbl-64/s_ufromfp.c (ufromfp): Define using
26963 libm_alias_double.
26964 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (ufromfpx): Define using
26965 libm_alias_double.
26966 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c: Include
26967 <libm-alias-double.h>.
26968 (getpayload): Define using libm_alias_double.
26969 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c: Include
26970 <libm-alias-double.h>.
26971 (roundeven): Define using libm_alias_double.
26972 * sysdeps/ieee754/dbl-64/wordsize-64/s_setpayload_main.c: Include
26973 <libm-alias-double.h>.
26974 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c: Include
26975 <libm-alias-double.h>.
26976 (totalorder): Define using libm_alias_double.
26977 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c: Include
26978 <libm-alias-double.h>.
26979 (totalordermag): Define using libm_alias_double.
26980 * sysdeps/ieee754/ldbl-opt/s_copysign.c (copysignl): Only define
26981 libc compat symbol here.
26982 * sysdeps/ieee754/ldbl-opt/s_asinh.c: Remove file.
26983 * sysdeps/ieee754/ldbl-opt/s_cbrt.c: Likewise.
26984 * sysdeps/ieee754/ldbl-opt/s_erf.c: Likewise.
26985 * sysdeps/ieee754/ldbl-opt/s_expm1.c: Likewise.
26986 * sysdeps/ieee754/ldbl-opt/s_fabs.c: Likewise.
26987 * sysdeps/ieee754/ldbl-opt/s_llrint.c: Likewise.
26988 * sysdeps/ieee754/ldbl-opt/s_lrint.c: Likewise.
26989 * sysdeps/ieee754/ldbl-opt/s_sin.c: Likewise.
26990 * sysdeps/ieee754/ldbl-opt/s_sincos.c: Likewise.
26991 * sysdeps/ieee754/ldbl-opt/s_tanh.c: Likewise.
26992
26993 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
26994
26995 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Use
26996 _dl_relocate_static_pie instead of _dl_start to compute load
26997 address in static PIE. Return 0 if _DYNAMIC is undefined for
26998 static executable.
26999
27000 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27001
27002 * sysdeps/mips/dl-machine.h (elf_machine_dynamic): Return 0 if
27003 _DYNAMIC is undefined for static executable.
27004
27005 2017-09-29 H.J. Lu <hongjiu.lu@intel.com>
27006
27007 * sysdeps/arm/start.S (_start): Check PIC instead of SHARED.
27008
27009 2017-09-29 Joseph Myers <joseph@codesourcery.com>
27010
27011 * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27012
27013 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27014
27015 * sysdeps/ieee754/dbl-64/e_lgamma_r.c
27016 (__ieee754_lgamma_r): Use fabs rather than __fabs.
27017 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
27018 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
27019 * sysdeps/ieee754/flt-32/e_lgammaf_r.c
27020 (__ieee754_lgammaf_r): Use fabsf rather than __fabsf.
27021 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
27022 * sysdeps/ieee754/flt-32/e_log2f.c (__ieee754_log2f): Likewise.
27023 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c
27024 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27025 * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Likewise.
27026 * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Likewise.
27027 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27028 (__ieee754_lgammal_r): Use fabsl rather than __fabsl.
27029 * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
27030 * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
27031 * sysdeps/powerpc/nofpu/Makefile: Add -fno-builtin-fabsl for BZ #29253.
27032
27033 2017-09-29 Wilco Dijkstra <wdijkstr@arm.com>
27034
27035 * math/bits/cmathcalls.h (cimag): Remove inline.
27036 (creal): Remove inline.
27037 (conj): Remove inline.
27038
27039 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27040
27041 * math/Makefile (type-float-routines): Add e_powf_log2_data.
27042 * sysdeps/ieee754/flt-32/e_powf.c: New implementation.
27043 * sysdeps/ieee754/flt-32/e_powf_log2_data.c: New file.
27044 * sysdeps/ieee754/flt-32/math_config.h (__powf_log2_data): Define.
27045 (issignalingf_inline): Likewise.
27046 (POWF_LOG2_TABLE_BITS): Likewise.
27047 (POWF_LOG2_POLY_ORDER): Likewise.
27048 (POWF_SCALE_BITS): Likewise.
27049 (POWF_SCALE): Likewise.
27050 * sysdeps/i386/fpu/e_powf_log2_data.c: New file.
27051 * sysdeps/ia64/fpu/e_powf_log2_data.c: New file.
27052 * sysdeps/m68k/m680x0/fpu/e_powf_log2_data.c: New file.
27053
27054 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27055
27056 * math/Makefile (type-float-routines): Add e_log2f_data.
27057 * sysdeps/ieee754/flt-32/e_log2f.c: New implementation.
27058 * sysdeps/ieee754/flt-32/e_log2f_data.c: New file.
27059 * sysdeps/ieee754/flt-32/math_config.h (__log2f_data): Define.
27060 (LOG2F_TABLE_BITS, LOG2F_POLY_ORDER): Define.
27061 * sysdeps/i386/fpu/e_log2f_data.c: New file.
27062 * sysdeps/ia64/fpu/e_log2f_data.c: New file.
27063 * sysdeps/m68k/m680x0/fpu/e_log2f_data.c: New file.
27064
27065 2017-09-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
27066
27067 * math/Makefile (type-float-routines): Add e_logf_data.
27068 * sysdeps/ieee754/flt-32/e_logf.c: New implementation.
27069 * sysdeps/ieee754/flt-32/e_logf_data.c: New file.
27070 * sysdeps/ieee754/flt-32/math_config.h (__logf_data): Define.
27071 (LOGF_TABLE_BITS, LOGF_POLY_ORDER): Define.
27072 * sysdeps/i386/fpu/e_logf_data.c: New file.
27073 * sysdeps/ia64/fpu/e_logf_data.c: New file.
27074 * sysdeps/m68k/m680x0/fpu/e_logf_data.c: New file.
27075
27076 2017-09-28 H.J. Lu <hongjiu.lu@intel.com>
27077
27078 * sysdeps/i386/dl-machine.h (elf_machine_load_address): Allow
27079 undefined _DYNAMIC in PIE libc.a.
27080 * sysdeps/x86_64/dl-machine.h (elf_machine_load_address):
27081 Likewse.
27082
27083 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27084
27085 * sysdeps/alpha/fpu/bits/mathinline.h: Delete file.
27086 * sysdeps/ia64/fpu/bits/mathinline.h: Delete file.
27087 * sysdeps/m68k/coldfire/fpu/bits/mathinline.h: Delete file.
27088 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: (__signbitf): Remove.
27089 (__signbit): Remove.
27090 (__signbitl): Remove.
27091 * sysdeps/powerpc/bits/mathinline.h (__signbitf): Remove.
27092 (__signbit): Remove.
27093 (__signbitl): Remove.
27094 * sysdeps/s390/fpu/bits/mathinline.h: (__signbitf): Remove.
27095 (__signbit): Remove.
27096 (__signbitl): Remove.
27097 * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf): Remove.
27098 (__signbit): Remove.
27099 (__signbitl): Remove.
27100 * sysdeps/tile/bits/mathinline.h: Delete file.
27101 * sysdeps/x86/fpu/bits/mathinline.h (__signbitf): Remove.
27102 (__signbit): Remove.
27103 (__signbitl): Remove.
27104
27105 2017-09-28 Wilco Dijkstra <wdijkstr@arm.com>
27106
27107 * math/math.h: Improve handling of C99 isgreater macros.
27108 * sysdeps/alpha/fpu/bits/mathinline.h: Remove isgreater macros.
27109 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h: Likewise.
27110 * sysdeps/powerpc/bits/mathinline.h: Likewise.
27111 * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27112 * sysdeps/x86/fpu/bits/mathinline.h: Likewise.
27113
27114 2017-09-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
27115
27116 * sysdeps/aarch64/libm-test-ulps: Update.
27117
27118 2017-09-28 Joseph Myers <joseph@codesourcery.com>
27119
27120 [BZ #22225]
27121 * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
27122 math_opt_barrier on argument when doing arithmetic on it.
27123 * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
27124 Likewise. Use math_force_eval not math_opt_barrier after
27125 arithmetic.
27126 * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Use
27127 math_opt_barrier on argument when doing arithmetic on it.
27128 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
27129 Likewise.
27130
27131 2017-09-27 H.J. Lu <hongjiu.lu@intel.com>
27132
27133 * sysdeps/unix/sysv/linux/ifaddrs.c (__getifaddrs): Add
27134 libc_hidden_def.
27135 (__freeifaddrs): Likewise.
27136
27137 2017-09-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
27138
27139 * include/dirent.h (__dirfd): New declaration.
27140 * dirent/dirfd.c (dirfd): Rename to __dirfd, and redefine as weak
27141 alias.
27142 * sysdeps/posix/dirfd/dirfd.c (dirfd): Likewise.
27143 * sysdeps/mach/hurd/dirfd.c (dirfd): Likewise.
27144 * io/ftw.c (open_dir_stream, ftw_dir): Use __dirfd instead of dirfd.
27145 * include/unistd.h (__revoke): New declaration.
27146 * misc/revoke.c (revoke): Rename to __revoke, and redefine as weak
27147 alias.
27148 * sysdeps/mach/hurd/revoke.c (revoke): Likewise.
27149 * sysdeps/unix/bsd/unlockpt.c (unlockpt): Use __revoke instead of
27150 revoke.
27151 * include/dirent.h (__seekdir): New declaration.
27152 * sysdeps/mach/hurd/seekdir.c (seekdir): Rename to __seekdir and
27153 redefine as weak alias.
27154 * sysdeps/mach/hurd/rewinddir.c (__rewinddir): Use __seekdir instead
27155 of seekdir.
27156 * include/ifaddrs.h (__getifaddrs, __freeifaddrs): New declarations,
27157 and use libc_hidden_def on them.
27158 * inet/ifaddrs.c (__getifaddrs, __freeifaddrs): Use libc_hidden_def on
27159 them.
27160 * sysdeps/gnu/ifaddrs.c (__getifaddrs, __freeifaddrs): Likewise.
27161 * inet/check_pf.c (__check_pf): Use __getifaddrs and __freeifaddrs
27162 instead of getifaddrs and freeifaddrs.
27163
27164 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27165
27166 [BZ #18822]
27167 * dlfcn/modatexit.c (foo): Remove __dso_handle check.
27168 * dlfcn/modcxaatexit.c: Include <dso_handle.h>.
27169 (__dso_handle): Remove declaration.
27170 * dlfcn/tstatexit.c (__dso_handle): Removed.
27171 (main): Don't check __dso_handle.
27172 * dlfcn/tstcxaatexit.c (__dso_handle): Removed.
27173 (main): Don't check __dso_handle.
27174 * include/dso_handle.h: New file.
27175 * malloc/mtrace.c: Include <dso_handle.h>.
27176 (mtrace): Pass __dso_handle directly.
27177 * nptl/pthread_atfork.c: Include <dso_handle.h>.
27178 (__dso_handle): Remove declaration.
27179 (__pthread_atfork): Pass __dso_handle directly.
27180 * nptl/tst-atfork2mod.c: Include <dso_handle.h>.
27181 (__dso_handle): Removed.
27182 * posix/wordexp-test.c: Include <dso_handle.h>.
27183 (__dso_handle): Remove declaration.
27184 (__app_register_atfork): Pass __dso_handle directly.
27185 * stdlib/at_quick_exit.c: Include <dso_handle.h>.
27186 (__dso_handle): Remove declaration.
27187 (at_quick_exit): Pass __dso_handle directly.
27188 * stdlib/atexit.c: Include <dso_handle.h>.
27189 (__dso_handle): Remove declaration.
27190 (atexit): Pass __dso_handle directly.
27191 * stdlib/tst-tls-atexit-lib.c: Include <dso_handle.h>.
27192 (__dso_handle): Removed.
27193
27194 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27195
27196 * sysdeps/unix/make-syscalls.sh: Use __ifunc to define symbols
27197 using VDSO.
27198
27199 2017-09-26 Alexey Makhalov <amakhalov@vmware.com>
27200
27201 * elf/dl-tunables.c (do_tunable_update_val): Range checking fix.
27202 * scripts/gen-tunables.awk: Set unspecified minval and/or maxval
27203 values to correct default value for given type.
27204
27205 2017-09-26 H.J. Lu <hongjiu.lu@intel.com>
27206
27207 [BZ #22101]
27208 * elf/Makefile (tests): Add tst-debug1.
27209 ($(objpfx)tst-debug1): New.
27210 ($(objpfx)tst-debug1.out): Likewise.
27211 ($(objpfx)tst-debug1mod1.so): Likewise.
27212 * elf/dl-load.c (_dl_map_object_from_fd): Skip PT_DYNAMIC segment
27213 with p_filesz == 0.
27214 * elf/tst-debug1.c: New file.
27215
27216 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27217
27218 * sysdeps/sparc/sparc-ifunc.h [!__ASSEMBLER__] (sparc_libm_ifunc):
27219 Define using __ifunc.
27220
27221 2017-09-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27222
27223 * sysdeps/powerpc/fpu/libm-test-ulps: Regenerate expf() and
27224 exp2f() values.
27225
27226 2017-09-26 Joseph Myers <joseph@codesourcery.com>
27227
27228 [BZ #22156]
27229 * sysdeps/ia64/stackinfo.h (DEFAULT_STACK_PERMS): Likewise.
27230
27231 2017-09-26 Florian Weimer <fweimer@redhat.com>
27232
27233 * resolv/Makefile (tests-internal): Fix typo in comment.
27234
27235 2017-09-26 Florian Weimer <fweimer@redhat.com>
27236
27237 * resolv/nss_dns/dns-host.c: Fix typo in comment.
27238
27239 2017-09-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
27240
27241 * lib/malloc/scratch_buffer.h (struct scratch_buffer):
27242 Use an union instead of a max_align_t array for __space,
27243 so that __space is the same size on all platforms.
27244 * malloc/scratch_buffer_grow_preserve.c
27245 (__libc_scratch_buffer_grow_preserve): Likewise.
27246
27247 [BZ #22183]
27248 * include/gnu-versions.h (_GNU_GLOB_INTERFACE_VERSION): Increase
27249 version to 2.
27250 * posix/Makefile (routines): Add glob-lstat-compat and
27251 glob64-lstat-compat.
27252 * posix/Versions (GLIBC_2.27, glob, glob64): Add symbol version.
27253 * posix/glob-lstat-compat.c: New file.
27254 * posix/glob64-lstat-compat.c: Likewise.
27255 * posix/tst-glob_lstat_compat.c: Likewise.
27256 * sysdeps/unix/sysv/linux/glob-lstat-compat.c: Likewise.
27257 * sysdeps/unix/sysv/linux/alpha/glob-lstat-compat.c: Likewise.
27258 * sysdeps/unix/sysv/linux/glob64-lstat-compat.c: Likewise.
27259 * sysdeps/unix/sysv/linux/s390/s390-32/glob64-lstat-compat.c:
27260 Likewise.
27261 * sysdeps/unix/sysv/linux/alpha/glob.c: Remove file.
27262 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
27263 * posix/glob.c (glob_lstat): New function.
27264 (glob): Rename to __glob and add versioned symbol to 2.27.
27265 (glob_in_dir): Use glob_lstat.
27266 * posix/glob64.c (glob64): Add GLOB_ATTRIBUTE.
27267 * sysdeps/unix/sysv/linux/arm/libc.abilist: Likewise.
27268 * sysdeps/unix/sysv/linux/glob.c (glob): Add versioned symbol for
27269 2.27.
27270 * sysdeps/unix/sysv/linux/glob64.c (glob64): Likewise.
27271 * sysdeps/unix/sysv/linux/oldglob.c (GLOB_NO_LSTAT): Define.
27272 * sysdeps/unix/sysv/linux/alpha/oldglob.c (__old_glob): Do not use
27273 gl_lstat on glob call.
27274 * sysdeps/unix/sysv/linux/aarch64/libc.abilist: Add GLIBC_2.27 glob
27275 and glob64 symbols.
27276 * sysdeps/unix/sysv/linux/alpha/libc.abilist: Likewise.
27277 * sysdeps/unix/sysv/linux/hppa/libc.abilist: Likewise.
27278 * sysdeps/unix/sysv/linux/i386/libc.abilist: Likewise.
27279 * sysdeps/unix/sysv/linux/ia64/libc.abilist: Likewise.
27280 * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: Likewise.
27281 * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: Likewise.
27282 * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Likewise.
27283 * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: Likewise.
27284 * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: Likewise.
27285 * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: Likewise.
27286 * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: Likewise.
27287 * sysdeps/unix/sysv/linux/nios2/libc.abilist: Likewise.
27288 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist:
27289 Likewise.
27290 * sysdeps/unix/linux/powerpc/powerpc32/nofpu/libc.abilist: Likewise.
27291 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: Likewise.
27292 * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: Likewise.
27293 * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: Likewise.
27294 * sysdeps/unix/sysv/linux/sh/libc.abilist: Likewise.
27295 * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: Likewise.
27296 * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: Likewise.
27297 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: Likewise.
27298 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: Likewise.
27299 * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: Likewise.
27300 * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: Likewise.
27301 * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: Likewise.
27302
27303 2017-09-25 H.J. Lu <hongjiu.lu@intel.com>
27304
27305 * configure.ac (AS): Require binutils 2.25 or later.
27306 * configure: Regenerated.
27307
27308 2017-09-25 Paul Pluzhnikov <ppluzhnikov@google.com>
27309
27310 [BZ #22207]
27311 * stdlib/test-atexit-race-common.c (do_test): Minimize required
27312 VM size.
27313
27314 2017-09-25 DJ Delorie <dj@redhat.com>
27315
27316 [BZ #22161]
27317 * nscd/netgroupcache.c (addinnetgrX): Release read lock after
27318 resetting timeout.
27319
27320 2017-09-25 Stefan Liebler <stli@linux.vnet.ibm.com>
27321
27322 * sysdeps/ieee754/dbl-64/sincos32.h
27323 [SINCCOS32_H]: Remove define.
27324 [SINCOS32_H]: Define.
27325
27326 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27327
27328 * math/Versions (expf): New libm symbol at GLIBC_2.27.
27329 (exp2f): Likewise.
27330 * math/w_exp2f.c: New file.
27331 * math/w_expf.c: New file.
27332 * math/w_exp2f_compat.c (__exp2f_compat): For compat symbol only.
27333 * math/w_expf_compat.c (__expf_compat): Likewise.
27334 * sysdeps/ia64/fpu/e_exp2f.S: Add versioned symbols.
27335 * sysdeps/ia64/fpu/e_expf.S: Likewise.
27336 * sysdeps/unix/sysv/linux/aarch64/libm.abilist: Update.
27337 * sysdeps/unix/sysv/linux/alpha/libm.abilist: Likewise.
27338 * sysdeps/unix/sysv/linux/arm/libm.abilist: Likewise.
27339 * sysdeps/unix/sysv/linux/hppa/libm.abilist: Likewise.
27340 * sysdeps/unix/sysv/linux/i386/libm.abilist: Likewise.
27341 * sysdeps/unix/sysv/linux/ia64/libm.abilist: Likewise.
27342 * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: Likewise.
27343 * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: Likewise.
27344 * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Likewise.
27345 * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: Likewise.
27346 * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: Likewise.
27347 * sysdeps/unix/sysv/linux/nios2/libm.abilist: Likewise.
27348 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist:
27349 Likewise.
27350 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
27351 Likewise.
27352 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist:
27353 Likewise.
27354 * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist:
27355 Likewise.
27356 * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: Likewise.
27357 * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: Likewise.
27358 * sysdeps/unix/sysv/linux/sh/libm.abilist: Likewise.
27359 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Likewise.
27360 * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: Likewise.
27361 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist:
27362 Likewise.
27363 * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist:
27364 Likewise.
27365 * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: Likewise.
27366 * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: Likewise.
27367 * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: Likewise.
27368
27369 2017-09-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
27370
27371 * math/Makefile (type-float-routines): Add math_errf and e_exp2f_data.
27372 * sysdeps/aarch64/fpu/math_private.h (TOINT_INTRINSICS): Define.
27373 (roundtoint, converttoint): Likewise.
27374 * sysdeps/ieee754/flt-32/e_expf.c: New implementation.
27375 * sysdeps/ieee754/flt-32/e_exp2f.c: New implementation.
27376 * sysdeps/ieee754/flt-32/e_exp2f_data.c: New file.
27377 * sysdeps/ieee754/flt-32/math_config.h: New file.
27378 * sysdeps/ieee754/flt-32/math_errf.c: New file.
27379 * sysdeps/ieee754/flt-32/t_exp2f.h: Remove.
27380 * sysdeps/i386/fpu/e_exp2f_data.c: New file.
27381 * sysdeps/i386/fpu/math_errf.c: New file.
27382 * sysdeps/ia64/fpu/e_exp2f_data.c: New file.
27383 * sysdeps/ia64/fpu/math_errf.c: New file.
27384 * sysdeps/m68k/m680x0/fpu/e_exp2f_data.c: New file.
27385 * sysdeps/m68k/m680x0/fpu/math_errf.c: New file.
27386
27387 2017-09-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27388
27389 * sysdeps/mach/hurd/dl-sysdep.c (check_no_hidden): New macro.
27390 (__open, __close, __libc_read, __libc_write, __writev, __libc_lseek64,
27391 __mmap, __fxstat64, __xstat64, __access, __access_noerrno, __getpid,
27392 __getcwd, __sbrk, __strtoul_internal, _exit, abort): Use check_no_hidden
27393 to make sure that these symbols are defined.
27394 * sysdeps/mach/hurd/bits/socket.h: Include <bits/wordsize.h> instead
27395 of <limits.h>
27396 (__need_NULL): Do not define.
27397 (__ss_aligntype): Use __WORDSIZE instead of ULONG_MAX to determine
27398 alignment.
27399 [!__USE_MISC] (pseudo_AF_XTP, pseudo_AF_RTIP, pseudo_AF_PIP,
27400 CMGROUP_MAX, cmsgcred): Do not define.
27401 (CMSG_FIRSTHDR, __cmsg_nxthdr): Use (struct cmsghdr *) 0 instead of
27402 NULL.
27403 * bits/socket.h: Likewise.
27404 * sysdeps/unix/clock_gettime.c (realtime_gettime, __clock_gettime): Use
27405 __gettimeofday instead of gettimeofday.
27406 * sysdeps/unix/clock_settime.c (__clock_settime): Use __settimeofday
27407 instead of settimeofday.
27408
27409 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27410
27411 * sysdeps/ieee754/flt-32/s_asinhf.c: Include <libm-alias-float.h>.
27412 (asinhf): Define using libm_alias_float.
27413 * sysdeps/ieee754/flt-32/s_atanf.c: Include <libm-alias-float.h>.
27414 (atanf): Define using libm_alias_float.
27415 * sysdeps/ieee754/flt-32/s_cbrtf.c: Include <libm-alias-float.h>.
27416 (cbrtf): Define using libm_alias_float.
27417 * sysdeps/ieee754/flt-32/s_ceilf.c: Include <libm-alias-float.h>.
27418 (ceilf): Define using libm_alias_float.
27419 * sysdeps/ieee754/flt-32/s_copysignf.c: Include
27420 <libm-alias-float.h>.
27421 (copysignf): Define using libm_alias_float.
27422 * sysdeps/ieee754/flt-32/s_cosf.c: Include <libm-alias-float.h>.
27423 (cosf): Define using libm_alias_float.
27424 * sysdeps/ieee754/flt-32/s_erff.c: Include <libm-alias-float.h>.
27425 (erff): Define using libm_alias_float.
27426 (erfcf): Likewise.
27427 * sysdeps/ieee754/flt-32/s_expm1f.c: Include <libm-alias-float.h>.
27428 (expm1f): Define using libm_alias_float.
27429 * sysdeps/ieee754/flt-32/s_fabsf.c: Include <libm-alias-float.h>.
27430 (fabsf): Define using libm_alias_float.
27431 * sysdeps/ieee754/flt-32/s_floorf.c: Include <libm-alias-float.h>.
27432 (floorf): Define using libm_alias_float.
27433 * sysdeps/ieee754/flt-32/s_frexpf.c: Include <libm-alias-float.h>.
27434 (frexpf): Define using libm_alias_float.
27435 * sysdeps/ieee754/flt-32/s_fromfpf.c (fromfpf): Define using
27436 libm_alias_float.
27437 * sysdeps/ieee754/flt-32/s_fromfpf_main.c: Include
27438 <libm-alias-float.h>.
27439 * sysdeps/ieee754/flt-32/s_fromfpxf.c (fromfpxf): Define using
27440 libm_alias_float.
27441 * sysdeps/ieee754/flt-32/s_getpayloadf.c: Include
27442 <libm-alias-float.h>.
27443 (getpayloadf): Define using libm_alias_float.
27444 * sysdeps/ieee754/flt-32/s_llrintf.c: Include
27445 <libm-alias-float.h>.
27446 (llrintf): Define using libm_alias_float.
27447 * sysdeps/ieee754/flt-32/s_llroundf.c: Include
27448 <libm-alias-float.h>.
27449 (llroundf): Define using libm_alias_float.
27450 * sysdeps/ieee754/flt-32/s_logbf.c: Include <libm-alias-float.h>.
27451 (logbf): Define using libm_alias_float.
27452 * sysdeps/ieee754/flt-32/s_lrintf.c: Include <libm-alias-float.h>.
27453 (lrintf): Define using libm_alias_float.
27454 * sysdeps/ieee754/flt-32/s_lroundf.c: Include <libm-alias-float.h>.
27455 (lroundf): Define using libm_alias_float.
27456 * sysdeps/ieee754/flt-32/s_modff.c: Include <libm-alias-float.h>.
27457 (modff): Define using libm_alias_float.
27458 * sysdeps/ieee754/flt-32/s_nearbyintf.c: Include
27459 <libm-alias-float.h>.
27460 (nearbyintf): Define using libm_alias_float.
27461 * sysdeps/ieee754/flt-32/s_nextafterf.c: Include
27462 <libm-alias-float.h>.
27463 (nextafterf): Define using libm_alias_float.
27464 * sysdeps/ieee754/flt-32/s_nextupf.c: Include
27465 <libm-alias-float.h>.
27466 (nextupf): Define using libm_alias_float.
27467 * sysdeps/ieee754/flt-32/s_remquof.c: Include
27468 <libm-alias-float.h>.
27469 (remquof): Define using libm_alias_float.
27470 * sysdeps/ieee754/flt-32/s_rintf.c: Include <libm-alias-float.h>.
27471 (rintf): Define using libm_alias_float.
27472 * sysdeps/ieee754/flt-32/s_roundevenf.c: Include
27473 <libm-alias-float.h>.
27474 (roundevenf): Define using libm_alias_float.
27475 * sysdeps/ieee754/flt-32/s_roundf.c: Include <libm-alias-float.h>.
27476 (roundf): Define using libm_alias_float.
27477 * sysdeps/ieee754/flt-32/s_setpayloadf.c (setpayloadf): Define
27478 using libm_alias_float.
27479 * sysdeps/ieee754/flt-32/s_setpayloadf_main.c: Include
27480 <libm-alias-float.h>.
27481 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (setpayloadsigf):
27482 Define using libm_alias_float.
27483 * sysdeps/ieee754/flt-32/s_sincosf.c: Include
27484 <libm-alias-float.h>.
27485 (sincosf): Define using libm_alias_float.
27486 * sysdeps/ieee754/flt-32/s_sinf.c: Include <libm-alias-float.h>.
27487 (sinf): Define using libm_alias_float.
27488 * sysdeps/ieee754/flt-32/s_tanf.c: Include <libm-alias-float.h>.
27489 (tanf): Define using libm_alias_float.
27490 * sysdeps/ieee754/flt-32/s_tanhf.c: Include <libm-alias-float.h>.
27491 (tanhf): Define using libm_alias_float.
27492 * sysdeps/ieee754/flt-32/s_totalorderf.c: Include
27493 <libm-alias-float.h>.
27494 (totalorderf): Define using libm_alias_float.
27495 * sysdeps/ieee754/flt-32/s_totalordermagf.c: Include
27496 <libm-alias-float.h>.
27497 (totalordermagf): Define using libm_alias_float.
27498 * sysdeps/ieee754/flt-32/s_truncf.c: Include <libm-alias-float.h>.
27499 (truncf): Define using libm_alias_float.
27500 * sysdeps/ieee754/flt-32/s_ufromfpf.c (ufromfpf): Define using
27501 libm_alias_float.
27502 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (ufromfpxf): Define using
27503 libm_alias_float.
27504
27505 2017-09-22 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27506
27507 [BZ #22146]
27508 math/math.h: Let fpclassify use the builtin in C++ mode, even
27509 when optimazing for size.
27510
27511 2017-09-22 Joseph Myers <joseph@codesourcery.com>
27512
27513 * csu/Makefile (generated): Do not add version-info.h.
27514 (before-compile): Likewise.
27515 (all-Banner-files): Remove variable.
27516 ($(objpfx)version-info.h): Remove rule.
27517 * csu/version.c (banner): Do not include "version-info.h".
27518 * libidn/Banner: Remove.
27519 * manual/contrib.texi (Simon Josefsson): New entry.
27520
27521 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27522
27523 * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
27524 Remove conditionals on LDBL_MANT_DIG.
27525 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
27526 (__ieee754_lgammal_r): Likewise.
27527
27528 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27529
27530 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Remove definitions of
27531 _Float128 and L().
27532 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Remove definitions of
27533 _Float128 and L(). Replace _Float128 with long double and L(x)
27534 with xL, throughout the file.
27535 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27536 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27537 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27538 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27539
27540 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27541
27542 * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
27543 sysdeps/ieee754/ldbl-128ibm.
27544 * sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
27545 equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
27546 of including it. Keep _Float128 and L() intact. These will be
27547 reviewed by a separate patch.
27548 * sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
27549 * sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
27550 * sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
27551 * sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
27552
27553 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27554
27555 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c
27556 (__finitef128): Define to __redirect___finitef128.
27557 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c
27558 (__isinff128): Define to __redirect___isinff128.
27559 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c
27560 (__isnanf128): Define to __redirect___isnanf128.
27561
27562 2017-09-21 Gabriel F. T. Gomes <gabriel@inconstante.eti.br>
27563
27564 * sysdeps/powerpc/powerpc64le/Makefile
27565 (CFLAGS-tst-strtod-nan-locale.c): New variable.
27566 (CFLAGS-tst-wcstod-nan-locale.c): New variable.
27567
27568 2017-09-21 Paul Pluzhnikov <ppluzhnikov@google.com>
27569 Carlos O'Donell <carlos@redhat.com>
27570
27571 [BZ #22180]
27572 * stdlib/Makefile (tests): Add test-dlclose-exit-race.
27573 * stdlib/test-dlclose-exit-race.c: New file.
27574 * stdlib/test-dlclose-exit-race-helper.c: New file.
27575 * stdlib/exit.c (__run_exit_handlers): Mark slot as free.
27576
27577 2017-09-21 Joseph Myers <joseph@codesourcery.com>
27578
27579 * crypt/Banner: Remove file.
27580 * nptl/Banner: Likewise.
27581 * resolv/Banner: Likewise.
27582 * soft-fp/Banner: Likewise.
27583 * nptl/Makefile ($(objpfx)banner.h): Remove rule.
27584 ($(objpfx)version.d): Remove dependency on banner.h.
27585 ($(objpfx)version.os): Likewise.
27586 * nptl/version.c (banner): Do not include banner.h.
27587 * manual/contrib.texi: Update entries for Richard Henderson, Jakub
27588 Jelinek and BIND code.
27589
27590 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27591 Carlos O'Donell <carlos@redhat.com>
27592
27593 * support/xdlfcn.h: New file.
27594 * support/xdlfcn.c: New file.
27595 * support/Makefile (libsupport-routines): Add xdlfcn.
27596 * stdlib/tst-tls-atexit.c: Use xdlopen, xdlsym, xdlclose.
27597
27598 2017-09-20 Joseph Myers <joseph@codesourcery.com>
27599
27600 [BZ #20142]
27601 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
27602 Add s_trunc-c, s_truncf-c, s_trunc-sse4_1 and s_truncf-sse4_1.
27603 * sysdeps/x86_64/fpu/multiarch/s_trunc-c.c: New file.
27604 * sysdeps/x86_64/fpu/multiarch/s_trunc-sse4_1.S: Likewise.
27605 * sysdeps/x86_64/fpu/multiarch/s_trunc.c: Likewise.
27606 * sysdeps/x86_64/fpu/multiarch/s_truncf-c.c: Likewise.
27607 * sysdeps/x86_64/fpu/multiarch/s_truncf-sse4_1.S: Likewise.
27608 * sysdeps/x86_64/fpu/multiarch/s_truncf.c: Likewise.
27609
27610 2017-09-20 Paul Pluzhnikov <ppluzhnikov@google.com>
27611 Ricky Zhou <rickyz@google.com>
27612 Anoop V Chakkalakkal <anoop.vijayan@in.ibm.com>
27613
27614 [BZ #14333]
27615 * stdlib/cxa_atexit.c (__internal_atexit): Use __exit_funcs_lock.
27616 Remove atomics.
27617 (__new_exitfn): Fail registration when we finished at_exit processing.
27618 * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
27619 * stdlib/on_exit.c (__on_exit): Likewise.
27620 * stdlib/exit.c (__exit_funcs_done): New variable.
27621 (__run_exit_handlers): Use __exit_funcs_lock.
27622 * stdlib/exit.h (__exit_funcs_lock, __exit_funcs_done): New
27623 declarations.
27624 * stdlib/Makefile (test-atexit-race, test-quick_at_exit-race)
27625 (test-cxa_atexit-race, test-on_exit-race): New tests.
27626 * stdlib/test-atexit-race-common.c: New file.
27627 * stdlib/test-atexit-race.c: New file.
27628 * stdlib/test-at_quick_exit-race.c: New file.
27629 * stdlib/test-cxa_atexit-race.c: New file.
27630 * stdlib/test-on_exit-race.c: New file.
27631
27632 2017-09-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
27633
27634 * benchtests/Makefile: Add exp2f and log2f benchmarks.
27635 * benchtests/exp2f-inputs: Copy of expf-inputs.
27636 * benchtests/log2f-inputs: Copy of logf-inputs.
27637
27638 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27639
27640 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]:
27641 Explicitly take address of first element of array arguments in
27642 call to INLINE_SYSCALL.
27643
27644 2017-09-19 Andreas Schwab <schwab@suse.de>
27645
27646 [BZ #22134]
27647 * sysdeps/unix/sysv/linux/fexecve.c (fexecve) [__NR_execveat]: Try
27648 execveat first.
27649 [!__ASSUME_EXECVEAT]: Fall back to /proc if execveat is
27650 unimplemented.
27651 * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_EXECVEAT)
27652 [__LINUX_KERNEL_VERSION >= 0x031300]: Define.
27653 * sysdeps/unix/sysv/linux/alpha/kernel-features.h
27654 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040200]: Undef.
27655 * sysdeps/unix/sysv/linux/hppa/kernel-features.h
27656 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27657 * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
27658 (__ASSUME_EXECVEAT) [__LINUX_KERNEL_VERSION < 0x040000]: Undef.
27659 * posix/Makefile (tests): Add tst-fexecve.
27660 * posix/tst-fexecve.c: New file.
27661
27662 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27663
27664 * benchtests/Makefile: Add logf benchmark.
27665 * benchtests/logf-inputs: Add reduced trace from wrf_r.
27666
27667 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27668
27669 * benchtests/Makefile: Add expf benchmark.
27670 * benchtests/expf-inputs: Add reduced trace from wrf_r.
27671
27672 2017-09-19 Wilco Dijkstra <wdijkstr@arm.com>
27673
27674 * csu/Makefile: Add -funwind-tables to libc-start.c.
27675 * debug/Makefile: Add -funwind-tables to backtrace.c.
27676 * sysdeps/aarch64/Makefile: Remove CFLAGS-backtrace.c.
27677 * sysdeps/arm/Makefile: Likewise.
27678 * sysdeps/i386/Makefile: Likewise.
27679 * sysdeps/m68k/Makefile: Likewise.
27680 * sysdeps/mips/Makefile: Likewise.
27681 * sysdeps/nios2/Makefile: Likewise.
27682 * sysdeps/sh/Makefile: Likewise.
27683 * sysdeps/sparc/Makefile: Likewise.
27684
27685 2017-09-19 Joseph Myers <joseph@codesourcery.com>
27686
27687 * benchtests/Makefile (bench-math): Add trunc and truncf.
27688 (CFLAGS-bench-trunc.c): New variable.
27689 (CFLAGS-bench-truncf.c): Likewise.
27690 * benchtests/trunc-inputs: New file.
27691 * benchtests/truncf-inputs: Likewise.
27692
27693 2017-09-19 Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
27694
27695 * sysdeps/powerpc/powerpc64/power8/memset.S: Avoid misaligned stores.
27696
27697 2017-09-18 Joseph Myers <joseph@codesourcery.com>
27698
27699 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT &&
27700 !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)] (weak_alias): Undefine and
27701 redefine.
27702 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_1)]
27703 (exp10l): Define as weak alias.
27704 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c [LIBM_SVID_COMPAT
27705 && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)] (weak_alias): Undefine
27706 and redefine.
27707 [LIBM_SVID_COMPAT && !LONG_DOUBLE_COMPAT (libm, GLIBC_2_0)]
27708 (remainderl): Define as weak alias.
27709
27710 * math/s_fmal.c: Include <libm-alias-ldouble.h>.
27711 (fmal): Define using libm_alias_ldouble.
27712 * math/w_acoshl_compat.c: Include <libm-alias-ldouble.h>.
27713 (acoshl): Define using libm_alias_ldouble.
27714 * math/w_acosl_compat.c: Include <libm-alias-ldouble.h>.
27715 (acosl): Define using libm_alias_ldouble.
27716 * math/w_asinl_compat.c: Include <libm-alias-ldouble.h>.
27717 (asinl): Define using libm_alias_ldouble.
27718 * math/w_atan2l_compat.c: Include <libm-alias-ldouble.h>.
27719 (atan2l): Define using libm_alias_ldouble.
27720 * math/w_atanhl_compat.c: Include <libm-alias-ldouble.h>.
27721 (atanhl): Define using libm_alias_ldouble.
27722 * math/w_coshl_compat.c: Include <libm-alias-ldouble.h>.
27723 (coshl): Define using libm_alias_ldouble.
27724 * math/w_exp10l_compat.c: Include <libm-alias-ldouble.h>.
27725 (exp10l): Define using libm_alias_ldouble.
27726 * math/w_exp2l_compat.c: Include <libm-alias-ldouble.h>.
27727 (exp2l): Define using libm_alias_ldouble.
27728 * math/w_expl_compat.c: Include <libm-alias-ldouble.h>.
27729 (expl): Define using libm_alias_ldouble.
27730 * math/w_fmodl_compat.c: Include <libm-alias-ldouble.h>.
27731 (fmodl): Define using libm_alias_ldouble.
27732 * math/w_hypotl_compat.c: Include <libm-alias-ldouble.h>.
27733 (hypotl): Define using libm_alias_ldouble.
27734 * math/w_j0l_compat.c: Include <libm-alias-ldouble.h>.
27735 (j0l): Define using libm_alias_ldouble.
27736 (y0l): Likewise.
27737 * math/w_j1l_compat.c: Include <libm-alias-ldouble.h>.
27738 (j1l): Define using libm_alias_ldouble.
27739 (y1l): Likewise.
27740 * math/w_jnl_compat.c: Include <libm-alias-ldouble.h>.
27741 (jnl): Define using libm_alias_ldouble.
27742 (ynl): Likewise.
27743 * math/w_log10l_compat.c: Include <libm-alias-ldouble.h>.
27744 (log10l): Define using libm_alias_ldouble.
27745 * math/w_log2l_compat.c: Include <libm-alias-ldouble.h>.
27746 (log2l): Define using libm_alias_ldouble.
27747 * math/w_logl_compat.c: Include <libm-alias-ldouble.h>.
27748 (logl): Define using libm_alias_ldouble.
27749 * math/w_powl_compat.c: Include <libm-alias-ldouble.h>.
27750 (powl): Define using libm_alias_ldouble.
27751 * math/w_remainderl_compat.c: Include <libm-alias-ldouble.h>.
27752 (remainderl): Define using libm_alias_ldouble.
27753 * math/w_sinhl_compat.c: Include <libm-alias-ldouble.h>.
27754 (sinhl): Define using libm_alias_ldouble.
27755 * math/w_sqrtl_compat.c: Include <libm-alias-ldouble.h>.
27756 (sqrtl): Define using libm_alias_ldouble.
27757 * math/w_tgammal_compat.c: Include <libm-alias-ldouble.h>.
27758 (tgammal): Define using libm_alias_ldouble.
27759 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c [LIBM_SVID_COMPAT]
27760 (exp10l): Do not use long_double_symbol here.
27761 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c
27762 [LIBM_SVID_COMPAT] (remainderl): Likewise.
27763 * sysdeps/ieee754/ldbl-opt/s_fmal.c: Remove.
27764 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
27765 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
27766 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
27767 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
27768 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
27769 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
27770 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
27771 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
27772 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
27773 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
27774 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
27775 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
27776 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
27777 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
27778 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
27779 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
27780 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
27781 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
27782 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
27783
27784 2017-09-18 Wang Boshi <wangboshi@huawei.com> (tiny change)
27785
27786 * sysdeps/aarch64/start.S: Use MOVL instead of literal pools.
27787 * sysdeps/aarch64/sysdep.h (MOVL): Add MOVL macro.
27788
27789 2017-09-17 Samuel Thibault <samuel.thibault@ens-lyon.org>
27790
27791 * io/read.c (read): Add libc_hidden_weak.
27792 * sysdeps/mach/hurd/read.c (read): Likewise.
27793 * io/write.c (write): Likewise.
27794 * sysdeps/mach/hurd/write.c (write): Likewise.
27795 * io/pread64.c (__pread64): Likewise.
27796 * sysdeps/mach/hurd/pread64.c (__pread64): Likewise.
27797 * posix/pread64.c (__pread64): Add libc_hidden_def.
27798
27799 2017-09-16 Siddhesh Poyarekar <siddhesh@sourceware.org>
27800
27801 * benchtests/scripts/compare_strings.py: New option -g.
27802 (draw_graph): Print a message that a graph is being generated.
27803 (process_results): Generate graph only if -g is passed.
27804 (main): Process option -g.
27805
27806 * benchtests/scripts/compare_strings.py (process_results):
27807 Better spacing for output.
27808
27809 * benchtests/scripts/compare_strings.py: Use argparse.
27810 * benchtests/README: Document existence of compare_strings.py.
27811
27812 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27813
27814 * math/s_fma.c: Include <libm-alias-double.h>.
27815 (fma): Define using libm_alias_double.
27816 * math/s_nextafter.c: Include <libm-alias-double.h>.
27817 (nextafter): Define using libm_alias_double.
27818 * math/w_acos_compat.c: Include <libm-alias-double.h>.
27819 (acos): Define using libm_alias_double.
27820 * math/w_acosh_compat.c: Include <libm-alias-double.h>.
27821 (aocsh): Define using libm_alias_double.
27822 * math/w_asin_compat.c: Include <libm-alias-double.h>.
27823 (asin): Define using libm_alias_double.
27824 * math/w_atan2_compat.c: Include <libm-alias-double.h>.
27825 (atan2): Define using libm_alias_double.
27826 * math/w_atanh_compat.c: Include <libm-alias-double.h>.
27827 (atanh): Define using libm_alias_double.
27828 * math/w_cosh_compat.c: Include <libm-alias-double.h>.
27829 (cosh): Define using libm_alias_double.
27830 * math/w_exp10_compat.c: Include <libm-alias-double.h>.
27831 (exp10): Define using libm_alias_double.
27832 * math/w_exp2_compat.c: Include <libm-alias-double.h>.
27833 (exp2): Define using libm_alias_double.
27834 * math/w_exp_compat.c: Include <libm-alias-double.h>.
27835 (exp): Define using libm_alias_double.
27836 * math/w_fmod_compat.c: Include <libm-alias-double.h>.
27837 (fmod): Define using libm_alias_double.
27838 * math/w_hypot_compat.c: Include <libm-alias-double.h>.
27839 (hypot): Define using libm_alias_double.
27840 * math/w_j0_compat.c: Include <libm-alias-double.h>.
27841 (j0): Define using libm_alias_double.
27842 (y0): Likewise.
27843 * math/w_j1_compat.c: Include <libm-alias-double.h>.
27844 (j1): Define using libm_alias_double.
27845 (y1): Likewise.
27846 * math/w_jn_compat.c: Include <libm-alias-double.h>.
27847 (jn): Define using libm_alias_double.
27848 (yn): Likewise.
27849 * math/w_log10_compat.c: Include <libm-alias-double.h>.
27850 (log10): Define using libm_alias_double.
27851 * math/w_log2_compat.c: Include <libm-alias-double.h>.
27852 (log2): Define using libm_alias_double.
27853 * math/w_log_compat.c: Include <libm-alias-double.h>.
27854 (log): Define using libm_alias_double.
27855 * math/w_pow_compat.c: Include <libm-alias-double.h>.
27856 (pow): Define using libm_alias_double.
27857 * math/w_remainder_compat.c: Include <libm-alias-double.h>.
27858 (remainder): Define using libm_alias_double.
27859 * math/w_sinh_compat.c: Include <libm-alias-double.h>.
27860 (sinh): Define using libm_alias_double.
27861 * math/w_sqrt_compat.c: Include <libm-alias-double.h>.
27862 (sqrt): Define using libm_alias_double.
27863 * math/w_tgamma_compat.c: Include <libm-alias-double.h>.
27864 (tgamma): Define using libm_alias_double.
27865 * sysdeps/ieee754/ldbl-opt/s_nextafter.c [LONG_DOUBLE_COMPAT(libm,
27866 GLIBC_2_0)] (nextafterl): Do not define compat symbol here.
27867 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c
27868 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)] (exp10l): Likewise.
27869 * sysdeps/ieee754/ldbl-opt/w_remainder_compat.c
27870 [LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)] (remainderl): Likewise.
27871 * sysdeps/ieee754/ldbl-opt/w_acos_compat.c: Remove.
27872 * sysdeps/ieee754/ldbl-opt/w_acosh_compat.c: Likewise.
27873 * sysdeps/ieee754/ldbl-opt/w_asin_compat.c: Likewise.
27874 * sysdeps/ieee754/ldbl-opt/w_atan2_compat.c: Likewise.
27875 * sysdeps/ieee754/ldbl-opt/w_atanh_compat.c: Likewise.
27876 * sysdeps/ieee754/ldbl-opt/w_cosh_compat.c: Likewise.
27877 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Likewise.
27878 * sysdeps/ieee754/ldbl-opt/w_fmod_compat.c: Likewise.
27879 * sysdeps/ieee754/ldbl-opt/w_hypot_compat.c: Likewise.
27880 * sysdeps/ieee754/ldbl-opt/w_j0_compat.c: Likewise.
27881 * sysdeps/ieee754/ldbl-opt/w_j1_compat.c: Likewise.
27882 * sysdeps/ieee754/ldbl-opt/w_jn_compat.c: Likewise.
27883 * sysdeps/ieee754/ldbl-opt/w_log10_compat.c: Likewise.
27884 * sysdeps/ieee754/ldbl-opt/w_log2_compat.c: Likewise.
27885 * sysdeps/ieee754/ldbl-opt/w_log_compat.c: Likewise.
27886 * sysdeps/ieee754/ldbl-opt/w_pow_compat.c: Likewise.
27887 * sysdeps/ieee754/ldbl-opt/w_sinh_compat.c: Likewise.
27888 * sysdeps/ieee754/ldbl-opt/w_sqrt_compat.c: Likewise.
27889 * sysdeps/ieee754/ldbl-opt/w_tgamma_compat.c: Likewise.
27890
27891 * math/e_acoshl.c: Remove.
27892 * math/e_acosl.c: Likewise.
27893 * math/e_asinl.c: Likewise.
27894 * math/e_atan2l.c: Likewise.
27895 * math/e_atanhl.c: Likewise.
27896 * math/e_coshl.c: Likewise.
27897 * math/e_expl.c: Likewise.
27898 * math/e_fmodl.c: Likewise.
27899 * math/e_gammal_r.c: Likewise.
27900 * math/e_hypotl.c: Likewise.
27901 * math/e_j0l.c: Likewise.
27902 * math/e_j1l.c: Likewise.
27903 * math/e_jnl.c: Likewise.
27904 * math/e_lgammal_r.c: Likewise.
27905 * math/e_log10l.c: Likewise.
27906 * math/e_log2l.c: Likewise.
27907 * math/e_logl.c: Likewise.
27908 * math/e_powl.c: Likewise.
27909 * math/e_rem_pio2l.c: Likewise.
27910 * math/e_sinhl.c: Likewise.
27911 * math/e_sqrtf128.c: Likewise.
27912 * math/e_sqrtl.c: Likewise.
27913 * math/k_cosl.c: Likewise.
27914 * math/k_sinl.c: Likewise.
27915 * math/k_tanl.c: Likewise.
27916 * math/s_asinhl.c: Likewise.
27917 * math/s_atanl.c: Likewise.
27918 * math/s_cbrtl.c: Likewise.
27919 * math/s_erfl.c: Likewise.
27920 * math/s_expm1l.c: Likewise.
27921 * math/s_log1pl.c: Likewise.
27922 * math/s_tanhl.c: Likewise.
27923
27924 2017-09-15 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
27925
27926 [BZ #21745]
27927 * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile:
27928 [$(subdir) = math] (sysdep_calls): New variable. Has the
27929 previous contents of sysdep_routines, but re-sorted..
27930 [$(subdir) = math] (sysdep_routines): Re-use the contents from
27931 sysdep_calls.
27932 [$(subdir) = math] (libm-sysdep_routines): Remove the functions
27933 defined in sysdep_calls and replace by the respective m_* names.
27934 * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S:
27935 (compat_symbol): Undefine to avoid duplicated compat symbols in
27936 libc.
27937
27938 2017-09-15 Joseph Myers <joseph@codesourcery.com>
27939
27940 * math/s_fmaf.c: Include <libm-alias-float.h>.
27941 (fmaf): Define using libm_alias_float.
27942 * math/w_acosf_compat.c: Include <libm-alias-float.h>.
27943 (acosf): Define using libm_alias_float.
27944 * math/w_acoshf_compat.c: Include <libm-alias-float.h>.
27945 (acoshf): Define using libm_alias_float.
27946 * math/w_asinf_compat.c: Include <libm-alias-float.h>.
27947 (asinf): Define using libm_alias_float.
27948 * math/w_atan2f_compat.c: Include <libm-alias-float.h>.
27949 (atan2f): Define using libm_alias_float.
27950 * math/w_atanhf_compat.c: Include <libm-alias-float.h>.
27951 (atanhf): Define using libm_alias_float.
27952 * math/w_coshf_compat.c: Include <libm-alias-float.h>.
27953 (coshf): Define using libm_alias_float.
27954 * math/w_exp10f_compat.c: Include <libm-alias-float.h>.
27955 (exp10f): Define using libm_alias_float.
27956 * math/w_fmodf_compat.c: Include <libm-alias-float.h>.
27957 (fmodf): Define using libm_alias_float.
27958 * math/w_hypotf_compat.c: Include <libm-alias-float.h>.
27959 (hypotf): Define using libm_alias_float.
27960 * math/w_j0f_compat.c: Include <libm-alias-float.h>.
27961 (j0f): Define using libm_alias_float.
27962 (y0f): Likewise.
27963 * math/w_j1f_compat.c: Include <libm-alias-float.h>.
27964 (j1f): Define using libm_alias_float.
27965 (y1f): Likewise.
27966 * math/w_jnf_compat.c: Include <libm-alias-float.h>.
27967 (jnf): Define using libm_alias_float.
27968 (ynf): Likewise.
27969 * math/w_log10f_compat.c: Include <libm-alias-float.h>.
27970 (log10f): Define using libm_alias_float.
27971 * math/w_log2f_compat.c: Include <libm-alias-float.h>.
27972 (log2f): Define using libm_alias_float.
27973 * math/w_logf_compat.c: Include <libm-alias-float.h>.
27974 (logf): Define using libm_alias_float.
27975 * math/w_powf_compat.c: Include <libm-alias-float.h>.
27976 (powf): Define using libm_alias_float.
27977 * math/w_remainderf_compat.c: Include <libm-alias-float.h>.
27978 (remainderf): Define using libm_alias_float.
27979 * math/w_sinhf_compat.c: Include <libm-alias-float.h>.
27980 (sinhf): Define using libm_alias_float.
27981 * math/w_sqrtf_compat.c: Include <libm-alias-float.h>.
27982 (sqrtf): Define using libm_alias_float.
27983 * math/w_tgammaf_compat.c: Include <libm-alias-float.h>.
27984 (tgammaf): Define using libm_alias_float.
27985
27986 2017-09-14 Joseph Myers <joseph@codesourcery.com>
27987
27988 * include/math.h (roundeven): Change hidden_proto call to
27989 __roundeven.
27990 * math/w_j0_compat.c (j0): Rename to __j0 and define as weak
27991 alias.
27992 [NO_LONG_DOUBLE] (__j0l): New strong alias.
27993 (y0): Rename to __y0 and define as weak alias.
27994 [NO_LONG_DOUBLE] (__y0l): New strong alias.
27995 * math/w_j0f_compat.c (j0f): Rename to __j0f and define as weak
27996 alias.
27997 (y0f): Rename to __y0f and define as weak alias.
27998 * math/w_j1_compat.c (j1): Rename to __j1 and define as weak
27999 alias.
28000 [NO_LONG_DOUBLE] (__j1l): New strong alias.
28001 (y1): Rename to __y1 and define as weak alias.
28002 [NO_LONG_DOUBLE] (__y1l): New strong alias.
28003 * math/w_j1f_compat.c (j1f): Rename to __j1f and define as weak
28004 alias.
28005 (y1f): Rename to __y1f and define as weak alias.
28006 * math/w_jn_compat.c (jn): Rename to __jn and define as weak
28007 alias.
28008 [NO_LONG_DOUBLE] (__jnl): New strong alias.
28009 (yn): Rename to __yn and define as weak alias.
28010 [NO_LONG_DOUBLE] (__ynl): New strong alias.
28011 * math/w_jnf_compat.c (jnf): Rename to __jnf and define as weak
28012 alias.
28013 (ynf): Rename to __ynf and define as weak alias.
28014 * sysdeps/ieee754/dbl-64/s_fromfp.c (FUNC): Define to __fromfp.
28015 (fromfp): Define as weak alias.
28016 [NO_LONG_DOUBLE] (__fromfpl): New strong alias.
28017 * sysdeps/ieee754/dbl-64/s_fromfpx.c (FUNC): Define to __fromfpx.
28018 (fromfpx): Define as weak alias.
28019 [NO_LONG_DOUBLE] (__fromfpxl): New strong alias.
28020 * sysdeps/ieee754/dbl-64/s_getpayload.c (getpayload): Rename to
28021 __getpayload and define as weak alias.
28022 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28023 * sysdeps/ieee754/dbl-64/s_roundeven.c (roundeven): Rename to
28024 __roundeven and define as weak alias.
28025 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28026 * sysdeps/ieee754/dbl-64/s_setpayload.c (FUNC): Define to
28027 __setpayload.
28028 (setpayload): Define as weak alias.
28029 [NO_LONG_DOUBLE] (__setpayloadl): New strong alias.
28030 * sysdeps/ieee754/dbl-64/s_setpayloadsig.c (FUNC): Define to
28031 __setpayloadsig.
28032 (setpayloadsig): Define as weak alias.
28033 [NO_LONG_DOUBLE] (__setpayloadsigl): New strong alias.
28034 * sysdeps/ieee754/dbl-64/s_totalorder.c (totalorder): Rename to
28035 __totalorder and define as weak alias.
28036 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28037 * sysdeps/ieee754/dbl-64/s_totalordermag.c (totalordermag): Rename
28038 to __totalordermag and define as weak alias.
28039 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28040 * sysdeps/ieee754/dbl-64/s_ufromfp.c (FUNC): Define to __ufromfp.
28041 (ufromfp): Define as weak alias.
28042 [NO_LONG_DOUBLE] (__ufromfpl): New strong alias.
28043 * sysdeps/ieee754/dbl-64/s_ufromfpx.c (FUNC): Define to
28044 __ufromfpx.
28045 (ufromfpx): Define as weak alias.
28046 [NO_LONG_DOUBLE] (__ufromfpxl): New strong alias.
28047 * sysdeps/ieee754/dbl-64/wordsize-64/s_getpayload.c (getpayload):
28048 Rename to __getpayload and define as weak alias.
28049 [NO_LONG_DOUBLE] (__getpayloadl): New strong alias.
28050 * sysdeps/ieee754/dbl-64/wordsize-64/s_roundeven.c (roundeven):
28051 Rename to __roundeven and define as weak alias.
28052 [NO_LONG_DOUBLE] (__roundevenl): New strong alias.
28053 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalorder.c (totalorder):
28054 Rename to __totalorder and define as weak alias.
28055 [NO_LONG_DOUBLE] (__totalorderl): New strong alias.
28056 * sysdeps/ieee754/dbl-64/wordsize-64/s_totalordermag.c
28057 (totalordermag): Rename to __totalordermag and define as weak
28058 alias.
28059 [NO_LONG_DOUBLE] (__totalordermagl): New strong alias.
28060 * sysdeps/ieee754/float128/float128_private.h (__getpayloadl): New
28061 macro.
28062 (__roundevenl): Likewise.
28063 (__totalorderl): Likewise.
28064 (__totalordermagl): Likewise
28065 * sysdeps/ieee754/float128/s_fromfpf128.c (FUNC): Define to
28066 __fromfpf128.
28067 (fromfpf128): Define as weak alias.
28068 * sysdeps/ieee754/float128/s_fromfpxf128.c (FUNC): Define to
28069 __fromfpxf128.
28070 (fromfpxf128): Define as weak alias.
28071 * sysdeps/ieee754/float128/s_setpayloadf128.c (FUNC): Define to
28072 __setpayloadf128.
28073 (setpayloadf128): Define as weak alias.
28074 * sysdeps/ieee754/float128/s_setpayloadsigf128.c (FUNC): Define to
28075 __setpayloadsigf128.
28076 (setpayloadsigf128): Define as weak alias.
28077 * sysdeps/ieee754/float128/s_ufromfpf128.c (FUNC): Define to
28078 __ufromfpf128.
28079 (ufromfpf128): Define as weak alias.
28080 * sysdeps/ieee754/float128/s_ufromfpxf128.c (FUNC): Define to
28081 __ufromfpxf128.
28082 (ufromfpxf128): Define as weak alias.
28083 * sysdeps/ieee754/flt-32/s_fromfpf.c (FUNC): Define to __fromfpf.
28084 (fromfpf): Define as weak alias.
28085 * sysdeps/ieee754/flt-32/s_fromfpxf.c (FUNC): Define to
28086 __fromfpxf.
28087 (fromfpxf): Define as weak alias.
28088 * sysdeps/ieee754/flt-32/s_getpayloadf.c (getpayloadf): Rename to
28089 __getpayloadf and define as weak alias.
28090 * sysdeps/ieee754/flt-32/s_roundevenf.c (roundevenf): Rename to
28091 __roundevenf and define as weak alias.
28092 * sysdeps/ieee754/flt-32/s_setpayloadf.c (FUNC): Define to
28093 __setpayloadf.
28094 (setpayloadf): Define as weak alias.
28095 * sysdeps/ieee754/flt-32/s_setpayloadsigf.c (FUNC): Define to
28096 __setpayloadsigf.
28097 (setpayloadsigf): Define as weak alias.
28098 * sysdeps/ieee754/flt-32/s_totalorderf.c (totalorderf): Rename to
28099 __totalorderf and define as weak alias.
28100 * sysdeps/ieee754/flt-32/s_totalordermagf.c (totalordermagf):
28101 Rename to __totalordermagf and define as weak alias.
28102 * sysdeps/ieee754/flt-32/s_ufromfpf.c (FUNC): Define to
28103 __ufromfpf.
28104 (ufromfpf): Define as weak alias.
28105 * sysdeps/ieee754/flt-32/s_ufromfpxf.c (FUNC): Define to
28106 __ufromfpxf.
28107 (ufromfpxf): Define as weak alias.
28108 * sysdeps/ieee754/ldbl-128/s_fromfpl.c (FUNC): Define to
28109 __fromfpl.
28110 (fromfpl): Define as weak alias.
28111 * sysdeps/ieee754/ldbl-128/s_fromfpxl.c (FUNC): Define to
28112 __fromfpxl.
28113 (fromfpxl): Define as weak alias.
28114 * sysdeps/ieee754/ldbl-128/s_getpayloadl.c (getpayloadl): Rename
28115 to __getpayloadl and define as weak alias.
28116 * sysdeps/ieee754/ldbl-128/s_roundevenl.c (roundevenl): Rename to
28117 __roundevenl and define as weak alias.
28118 * sysdeps/ieee754/ldbl-128/s_setpayloadl.c (FUNC): Define to
28119 __setpayloadl.
28120 (setpayloadl): Define as weak alias.
28121 * sysdeps/ieee754/ldbl-128/s_setpayloadsigl.c (FUNC): Define to
28122 __setpayloadsigl.
28123 (setpayloadsigl): Define as weak alias.
28124 * sysdeps/ieee754/ldbl-128/s_totalorderl.c (totalorderl): Rename
28125 to __totalorderl and define as weak alias.
28126 * sysdeps/ieee754/ldbl-128/s_totalordermagl.c (totalordermagl):
28127 Rename to __totalordermagl and define as weak alias.
28128 * sysdeps/ieee754/ldbl-128/s_ufromfpl.c (FUNC): Define to
28129 __ufromfpl.
28130 (ufromfpl): Define as weak alias.
28131 * sysdeps/ieee754/ldbl-128/s_ufromfpxl.c (FUNC): Define to
28132 __ufromfpxl.
28133 (ufromfpxl): Define as weak alias.
28134 * sysdeps/ieee754/ldbl-128ibm/s_fromfpl.c (FUNC): Define to
28135 __fromfpl.
28136 (fromfpl): Define as weak alias.
28137 * sysdeps/ieee754/ldbl-128ibm/s_fromfpxl.c (FUNC): Define to
28138 __fromfpxl.
28139 (fromfpxl): Define as weak alias.
28140 * sysdeps/ieee754/ldbl-128ibm/s_getpayloadl.c (getpayloadl):
28141 Rename to __getpayloadl and define as weak alias.
28142 * sysdeps/ieee754/ldbl-128ibm/s_roundevenl.c (roundevenl): Rename
28143 to __roundevenl and define as weak alias. Call __roundeven
28144 instead of roundeven.
28145 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadl.c (FUNC): Define to
28146 __setpayloadl.
28147 (setpayloadl): Define as weak alias.
28148 * sysdeps/ieee754/ldbl-128ibm/s_setpayloadsigl.c (FUNC): Define to
28149 __setpayloadsigl.
28150 (setpayloadsigl): Define as weak alias.
28151 * sysdeps/ieee754/ldbl-128ibm/s_totalorderl.c (totalorderl):
28152 Rename to __totalorderl and define as weak alias.
28153 * sysdeps/ieee754/ldbl-128ibm/s_totalordermagl.c (totalordermagl):
28154 Rename to __totalordermagl and define as weak alias.
28155 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpl.c (FUNC): Define to
28156 __ufromfpl.
28157 (ufromfpl): Define as weak alias.
28158 * sysdeps/ieee754/ldbl-128ibm/s_ufromfpxl.c (FUNC): Define to
28159 __ufromfpxl.
28160 (ufromfpxl): Define as weak alias.
28161 * sysdeps/ieee754/ldbl-96/s_fromfpl.c (FUNC): Define to
28162 __fromfpl.
28163 (fromfpl): Define as weak alias.
28164 * sysdeps/ieee754/ldbl-96/s_fromfpxl.c (FUNC): Define to
28165 __fromfpxl.
28166 (fromfpxl): Define as weak alias.
28167 * sysdeps/ieee754/ldbl-96/s_getpayloadl.c (getpayloadl): Rename to
28168 __getpayloadl and define as weak alias.
28169 * sysdeps/ieee754/ldbl-96/s_roundevenl.c (roundevenl): Rename to
28170 __roundevenl and define as weak alias.
28171 * sysdeps/ieee754/ldbl-96/s_setpayloadl.c (FUNC): Define to
28172 __setpayloadl.
28173 (setpayloadl): Define as weak alias.
28174 * sysdeps/ieee754/ldbl-96/s_setpayloadsigl.c (FUNC): Define to
28175 __setpayloadsigl.
28176 (setpayloadsigl): Define as weak alias.
28177 * sysdeps/ieee754/ldbl-96/s_totalorderl.c (totalorderl): Rename to
28178 __totalorderl and define as weak alias.
28179 * sysdeps/ieee754/ldbl-96/s_totalordermagl.c (totalordermagl):
28180 Rename to __totalordermagl and define as weak alias.
28181 * sysdeps/ieee754/ldbl-96/s_ufromfpl.c (FUNC): Define to
28182 __ufromfpl.
28183 (ufromfpl): Define as weak alias.
28184 * sysdeps/ieee754/ldbl-96/s_ufromfpxl.c (FUNC): Define to
28185 __ufromfpxl.
28186 (ufromfpxl): Define as weak alias.
28187
28188 2017-09-14 Siddhesh Poyarekar <siddhesh@sourceware.org>
28189
28190 * benchtests/bench-string.h (realloc_bufs): New function.
28191 (test_init): Call it.
28192 * benchtests/bench-memset-large.c (do_test): Likewise.
28193 * benchtests/bench-memset.c (do_test): Likewise.
28194
28195 * benchtests/bench-memset-large.c: Print output in JSON
28196 format.
28197 * benchtests/bench-memset.c: Likewise.
28198
28199 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28200
28201 [BZ #21084]
28202 * benchtests/strcoll-inputs/filelist#en_US.UTF-8: Add IBM858 and ibm858.c.
28203 * iconvdata/Makefile: Add IBM858.
28204 * iconvdata/gconv-modules: Likewise.
28205 * iconvdata/tst-tables.sh: Likewise.
28206 * iconvdata/ibm858.c: New file.
28207 * localedata/charmaps/IBM858: Likewise.
28208
28209 2017-09-14 Akhilesh Kumar <akhilesh.k@samsung.com>
28210
28211 [BZ #22023]
28212 * locales/niu_NZ (LC_TIME): copy "niu_NU".
28213 * locales/niu_NZ (LC_MESSAGES): copy "niu_NU".
28214
28215 2017-09-14 Mike FABIAN <mfabian@redhat.com>
28216
28217 [BZ #22112]
28218 * localedata/locales/az_AZ(LC_TELEPHONE): Fix int_select
28219 and add tel_int_fmt.
28220
28221 2017-09-14 Joseph Myers <joseph@codesourcery.com>
28222
28223 * sysdeps/generic/libm-alias-float128.h: New file.
28224 * sysdeps/generic/math-type-macros-float128.h: Include
28225 <libm-alias-float128.h>.
28226 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28227
28228 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28229
28230 * sysdeps/generic/libm-alias-ldouble.h: New file.
28231 * sysdeps/ieee754/ldbl-opt/libm-alias-ldouble.h: Likewise.
28232 * sysdeps/ieee754/ldbl-opt/math-type-macros-ldouble.h: Remove.
28233 * sysdeps/generic/math-type-macros-ldouble.h: Include
28234 <libm-alias-ldouble.h>.
28235 [!declare_mgen_alias] (declare_mgen_alias): Define to use
28236 libm_alias_ldouble.
28237
28238 2017-09-13 Szabolcs Nagy <szabolcs.nagy@arm.com>
28239
28240 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Move to...
28241 * math/w_exp_compat.c: ... here.
28242 * sysdeps/ieee754/flt-32/w_expf_compat.c: Move to...
28243 * math/w_expf_compat.c: ... here.
28244 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Move to...
28245 * math/w_expl_compat.c: ... here.
28246 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Remove.
28247 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Remove.
28248 * sysdeps/ieee754/ldbl-opt/w_exp_compat.c: Use the new path.
28249 * sysdeps/ieee754/ldbl-opt/w_expl_compat.c: Likewise.
28250
28251 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28252
28253 * math/w_scalbln_template.c (strong_alias): Do not undefine and
28254 redefine.
28255 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (declare_mgen_alias): Remove
28256 macro.
28257 (ldexpl): Only define as compat symbol for libc, not libm.
28258 (scalbnl): Define as compat symbol for libc here.
28259 * sysdeps/ieee754/ldbl-opt/s_ldexpl.c (declare_mgen_alias): Only
28260 define for [IS_IN (libc)].
28261 (__ldexpl_2): Remove alias.
28262 (ldexpl): Only define with long_double_symbol if [IS_IN (libc)].
28263 (scalbnl): Likewise. Use __wrap_scalbnl not __ldexpl_2 as base
28264 name in long_double_symbol call.
28265 * sysdeps/ieee754/ldbl-opt/s_log1p.c: Remove file.
28266 * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
28267 * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
28268 * sysdeps/ieee754/ldbl-opt/w_log1p.c: Likewise.
28269 * sysdeps/ieee754/ldbl-opt/w_scalbln.c (declare_mgen_alias):
28270 Remove macro.
28271 [IS_IN (libc) && LONG_DOUBLE_COMPAT (libc, GLIBC_2_1)] (scalblnl):
28272 Define as compat symbol.
28273
28274 2017-09-13 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28275
28276 * sysdeps/unix/sysv/linux/s390/s390-32/oldglob.c: New file.
28277 * sysdeps/unix/sysv/linux/alpha/Makefile
28278 [$(subdir) = csu] (sysdep_routines): Remove rule.
28279
28280 2017-09-13 Joseph Myers <joseph@codesourcery.com>
28281
28282 * sysdeps/generic/libm-alias-double.h: New file.
28283 * sysdeps/ieee754/ldbl-opt/libm-alias-double.h: Likewise.
28284 * sysdeps/generic/math-type-macros-double.h: Include
28285 <libm-alias-double.h>.
28286 [declare_mgen_alias] (declare_mgen_alias): Define to use
28287 libm_alias_double.
28288 * sysdeps/generic/math-type-macros.h [!M_LIBM_NEED_COMPAT]
28289 (M_LIBM_NEED_COMPAT): Remove macro.
28290 [!M_LIBM_NEED_COMPAT] (declare_mgen_libm_compat): Likewise.
28291 * sysdeps/ieee754/ldbl-opt/math-type-macros-double.h: Remove.
28292 * math/cabs_template.c [M_LIBM_NEED_COMPAT]: Remove conditional
28293 code.
28294 * math/carg_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28295 * math/cimag_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28296 * math/conj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28297 * math/creal_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28298 * math/s_cacos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28299 * math/s_cacosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28300 * math/s_casin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28301 * math/s_casinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28302 * math/s_catan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28303 * math/s_catanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28304 * math/s_ccos_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28305 * math/s_ccosh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28306 * math/s_cexp_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28307 * math/s_clog10_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28308 * math/s_clog_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28309 * math/s_cpow_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28310 * math/s_cproj_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28311 * math/s_csin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28312 * math/s_csinh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28313 * math/s_csqrt_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28314 * math/s_ctan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28315 * math/s_ctanh_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28316 * math/s_fdim_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28317 * math/s_fmax_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28318 * math/s_fmin_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28319 * math/s_nan_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28320 * math/w_ilogb_template.c [M_LIBM_NEED_COMPAT]: Likewise.
28321 * sysdeps/ieee754/ldbl-opt/s_clog10.c: New file.
28322 * sysdeps/ieee754/ldbl-opt/s_ldexp.c (M_LIBM_NEED_COMPAT): Remove
28323 macro.
28324 (declare_mgen_alias): New macro.
28325 * sysdeps/ieee754/ldbl-opt/w_log1p.c: New file.
28326 * sysdeps/ieee754/ldbl-opt/w_scalbln.c: Likewise.
28327 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.c
28328 (M_LIBM_NEED_COMPAT): Remove macro.
28329 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.c
28330 [HAVE_AS_VIS3_SUPPORT]: Include <math_ldbl_opt.h> and
28331 <first-versions.h>.
28332 [HAVE_AS_VIS3_SUPPORT && LONG_DOUBLE_COMPAT (libm,
28333 FIRST_VERSION_libm_fdiml)]: Define fdiml as compat symbol.
28334
28335 2017-09-12 Joseph Myers <joseph@codesourcery.com>
28336
28337 * sysdeps/generic/math-type-macros.h [!declare_mgen_alias_2]
28338 (declare_mgen_alias_2): Remove.
28339 * sysdeps/generic/math-type-macros-double.h
28340 [NO_LONG_DOUBLE && !declare_mgen_alias_2] (declare_mgen_alias_2):
28341 Likewise.
28342 * math/s_ldexp_template.c (M_SUF (__wrap_scalbn)): Define strong
28343 alias.
28344 (ldexp): Define with declare_mgen_alias.
28345 (scalbn): Likewise.
28346
28347 2017-09-12 Steve Ellcey <sellcey@cavium.com>
28348
28349 * grp/initgroups.c: Include config.h.
28350 (DEFAULT_CONFIG): New macro.
28351 (internal_getgrouplist): Use DEFAULT_CONFIG.
28352 * nscd/initgrcache.c (addinitgroupsX): Likewise.
28353 * nss/nsswitch.c (__nss_disable_nscd): Likewise.
28354 (DEFAULT_DEFCONFIG): New macro.
28355 (__nss_database_lookup): Use DEFAULT_DEFCONFIG.
28356 * nss/grp-lookup.c: Include config.h
28357 (DEFAULT_CONFIG): Set definition based on LINK_OBSOLETE_NSL.
28358 * nss/pwd-lookup.c (DEFAULT_CONFIG): Likewise.
28359 * nss/spwd-lookup.c (DEFAULT_CONFIG): Likewise.
28360 * manual/nss.texi: Update default values section.
28361
28362 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
28363
28364 [BZ #21967]
28365 * sysdeps/x86/cpu-features.h (bit_arch_MathVec_Prefer_No_AVX512):
28366 New.
28367 (index_arch_MathVec_Prefer_No_AVX512): Likewise.
28368 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
28369 Handle MathVec_Prefer_No_AVX512.
28370 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h
28371 (IFUNC_SELECTOR): Return AVX2 version if MathVec_Prefer_No_AVX512
28372 is set.
28373
28374 2017-09-12 Samuel Thibault <samuel.thibault@ens-lyon.org>
28375
28376 * posix/sched_primax.c (__sched_get_priority_max): Add
28377 libc_hidden_def.
28378 * posix/sched_primin.c (__sched_get_priority_min): Likewise.
28379 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
28380 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
28381 * sysdeps/mach/hurd/mprotect.c (__mprotect): Likewise.
28382 * sysdeps/mach/hurd/munmap.c (__munmap): Likewise.
28383 * sysdeps/mach/hurd/dl-sysdep.c (__GI___getpid,
28384 __GI___strtoul_internal, __GI_____strtoul_internal, __GI___chk_fail,
28385 __GI___fortify_fail, __GI___assert_fail, __GI___assert_perror_fail):
28386 Add aliases.
28387
28388 2017-09-11 Joseph Myers <joseph@codesourcery.com>
28389
28390 * sysdeps/generic/libm-alias-float.h: New file.
28391 * sysdeps/generic/math-type-macros-float.h: Include
28392 <libm-alias-float.h>.
28393 [!declare_mgen_alias] (declare_mgen_alias): Define macro.
28394
28395 2017-09-11 H.J. Lu <hongjiu.lu@intel.com>
28396
28397 [BZ #22093]
28398 * sysdeps/x86/cpu-features.c (init_cpu_features): Initialize
28399 GLRO(dl_hwcap) to HWCAP_X86_64 for x86-64.
28400 * sysdeps/x86/dl-hwcap.h (HWCAP_COUNT): Updated.
28401 (HWCAP_IMPORTANT): Likewise.
28402 (HWCAP_X86_64): New enum.
28403 (HWCAP_X86_AVX512_1): Updated.
28404 * sysdeps/x86/dl-procinfo.c (_dl_x86_hwcap_flags): Add "x86_64".
28405 * sysdeps/x86_64/Makefile (tests): Add tst-x86_64-1.
28406 (modules-names): Add x86_64/tst-x86_64mod-1.
28407 (LDFLAGS-tst-x86_64mod-1.so): New.
28408 ($(objpfx)tst-x86_64-1): Likewise.
28409 ($(objpfx)x86_64/tst-x86_64mod-1.os): Likewise.
28410 (tst-x86_64-1-clean): Likewise.
28411 * sysdeps/x86_64/tst-x86_64-1.c: New file.
28412 * sysdeps/x86_64/tst-x86_64mod-1.c: Likewise.
28413
28414 2017-09-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
28415
28416 * po/sv.po: Update translations.
28417 * po/fr.po: Likewise.
28418
28419 2017-09-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
28420
28421 * sunrpc/tst-udp-timeout.c (test_udp_server): Increase timeout to 2.5
28422 seconds.
28423 * sunrpc/tst-udp-nonblocking.c (do_test): Increase timeout to 0.75
28424 seconds.
28425 * elf/rtld-Rules: Fix $(error) use.
28426
28427 2017-09-09 Mike FABIAN <mfabian@redhat.com>
28428
28429 [BZ #14925]
28430 * libio/tst-widetext.input: Change “Bengali” to “Bangla”.
28431 * locale/iso-639.def: Change “Bengali” to “Bangla”.
28432 * localedata/locales/bn_BD: “Bengali” was still used in some
28433 comments. Change it to “Bangla”.
28434
28435 2017-09-08 Markus Trippelsdorf <markus@trippelsdorf.de>
28436
28437 * sysdeps/x86_64/fpu/libm-test-ulps: Update for AMD Ryzen.
28438
28439 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28440
28441 * manual/tunables.texi (glibc.tune.cpu): Add thunderx2t99 and
28442 thunderx2t99p1 to list of cpu names.
28443 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
28444 Add thunderx2t99 and thunderx2t99p1 entries to cpu_list.
28445
28446 2017-09-08 Steve Ellcey <sellcey@cavium.com>
28447
28448 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (get_midr_from_mcpu):
28449 Use strcmp instead of tunable_is_name.
28450
28451 2017-09-08 Joseph Myers <joseph@codesourcery.com>
28452
28453 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28454 (F_GET_RW_HINT): New macro.
28455 [__USE_GNU] (F_SET_RW_HINT): Likewise.
28456 [__USE_GNU] (F_GET_FILE_RW_HINT): Likewise.
28457 [__USE_GNU] (F_SET_FILE_RW_HINT): Likewise.
28458 [__USE_GNU] (RWF_WRITE_LIFE_NOT_SET): Likewise.
28459 [__USE_GNU] (RWH_WRITE_LIFE_NONE): Likewise.
28460 [__USE_GNU] (RWH_WRITE_LIFE_SHORT): Likewise.
28461 [__USE_GNU] (RWH_WRITE_LIFE_MEDIUM): Likewise.
28462 [__USE_GNU] (RWH_WRITE_LIFE_LONG): Likewise.
28463 [__USE_GNU] (RWH_WRITE_LIFE_EXTREME): Likewise.
28464
28465 * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
28466 (F_ADD_SEALS): New macro.
28467 [__USE_GNU] (F_GET_SEALS): Likewise.
28468 [__USE_GNU] (F_SEAL_SEAL): Likewise.
28469 [__USE_GNU] (F_SEAL_SHRINK): Likewise.
28470 [__USE_GNU] (F_SEAL_GROW): Likewise.
28471 [__USE_GNU] (F_SEAL_WRITE): Likewise.
28472
28473 2017-09-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28474
28475 * posix/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
28476 (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
28477 * posix/glob_internal.h (__glob_pattern_type):
28478 * posix/glob.c (glob):
28479 * posix/glob_pattern_p.c (__glob_pattern_p):
28480 Use them.
28481
28482 * sysdeps/unix/sysv/linux/arm/glob64.c: Remove file.
28483 * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28484 * sysdeps/unix/sysv/linux/m68k/glob64.c: Likewise.
28485 * sysdeps/unix/sysv/linux/mips/mips64/n64/glob64.c: Likewise.
28486 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28487 * sysdeps/unix/sysv/linux/powerpc/powerpc32/glob64.c: Likewise.
28488 * sysdeps/unix/sysv/linux/sparc/sparc32/glob64.c: Likewise.
28489 * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Likewise.
28490 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28491 * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
28492 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28493 * sysdeps/wordsize-64/glob.c: Likewise.
28494 * sysdeps/wordsize-64/glob64.c: Likewise.
28495 * sysdeps/wordsize-64/globfree.c: Likewise.
28496 * sysdeps/wordsize-64/globfree64.c: Likewise.
28497 * sysdeps/unix/sysv/linux/glob.c: New file.
28498 * sysdeps/unix/sysv/linux/glob64.c: Likewise.
28499 * sysdeps/unix/sysv/linux/globfree.c: Likewise.
28500 * sysdeps/unix/sysv/linux/globfree64.c: Likewise.
28501 * sysdeps/unix/sysv/linux/s390/s390-32/glob64.c: Likewise.
28502 * sysdeps/unix/sysv/linux/oldglob.c [SHLIB_COMPAT]: Also
28503 adds !GLOB_NO_OLD_VERSION as an extra condition.
28504 * sysdeps/unix/sysv/linux/i386/alphasort64.c: Include olddirent.h
28505 using relative path instead of absolute one.
28506 * sysdeps/unix/sysv/linux/i386/getdents64.c: Likewise.
28507 * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
28508 * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
28509 * sysdeps/unix/sysv/linux/i386/versionsort64.c: Likewise.
28510 * sysdeps/unix/sysv/linux/i386/olddirent.h: Move to ...
28511 * sysdeps/unix/sysv/linux//olddirent.h: ... here.
28512
28513 [BZ #1062]
28514 * posix/glob.c (GET_LOGIN_NAME_MAX): Remove.
28515 (glob): Use the same scratch buffer for both getlogin_r and
28516 getpwnam_r. Don’t require preallocation of the login name. This
28517 simplifies storage allocation, and corrects the handling of
28518 long login names.
28519
28520 [BZ #1062]
28521 * posix/glob.c (glob): Port recent patches to platforms
28522 lacking getpwnam_r.
28523 (glob): Fix longstanding misuse of errno after getpwnam_r, which
28524 returns an error number rather than setting errno.
28525
28526 * include/scratch_buffer.h (scratch_buffer): Use a C99 align method
28527 instead of GCC extension.
28528 * malloc/scratch_buffer_grow.c [!_LIBC]: Include libc-config.h.
28529 * malloc/scratch_buffer_grow_preserve.c [!_LIBC]: Likewise.
28530 * malloc/scratch_buffer_set_array_size.c [!_LIBC]: Likewise.
28531
28532 [BZ #866]
28533 [BZ #1062]
28534 * posix/Makefile (tests): Remove bug-glob1 and tst-glob_symlinks.
28535 * posix/bug-glob1.c: Remove file.
28536 * posix/tst-glob_symlinks.c: New file.
28537 * posix/glob.c (__lstat64): New macro.
28538 (is_dir): New function.
28539 (glob, glob_in_dir): Match symlinks even if they are dangling.
28540 (link_stat, link_exists_p): Remove. All uses removed.
28541
28542 [BZ #1062]
28543 [BZ #19971]
28544 * posix/glob.c (struct readdir_result): Remove skip_entry member.
28545 (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
28546 All uses removed.
28547
28548 [BZ #1062]
28549 CVE-2017-15671
28550 * posix/Makefile (routines): Add globfree, globfree64, and
28551 glob_pattern_p.
28552 * posix/flexmember.h: New file.
28553 * posix/glob_internal.h: Likewise.
28554 * posix/glob_pattern_p.c: Likewise.
28555 * posix/globfree.c: Likewise.
28556 * posix/globfree64.c: Likewise.
28557 * sysdeps/gnu/globfree64.c: Likewise.
28558 * sysdeps/unix/sysv/linux/alpha/globfree.c: Likewise.
28559 * sysdeps/unix/sysv/linux/mips/mips64/n64/globfree64.c: Likewise.
28560 * sysdeps/unix/sysv/linux/oldglob.c: Likewise.
28561 * sysdeps/unix/sysv/linux/wordsize-64/globfree64.c: Likewise.
28562 * sysdeps/unix/sysv/linux/x86_64/x32/globfree.c: Likewise.
28563 * sysdeps/wordsize-64/globfree.c: Likewise.
28564 * sysdeps/wordsize-64/globfree64.c: Likewise.
28565 * posix/glob.c (HAVE_CONFIG_H): Use !_LIBC instead.
28566 [NDEBUG): Remove comments.
28567 (GLOB_ONLY_P, _AMIGA, VMS): Remove define.
28568 (dirent_type): New type. Use uint_fast8_t not
28569 uint8_t, as C99 does not require uint8_t.
28570 (DT_UNKNOWN, DT_DIR, DT_LNK): New macros.
28571 (struct readdir_result): Use dirent_type. Do not define skip_entry
28572 unless it is needed; this saves a byte on platforms lacking d_ino.
28573 (readdir_result_type, readdir_result_skip_entry):
28574 New functions, replacing ...
28575 (readdir_result_might_be_symlink, readdir_result_might_be_dir):
28576 these functions, which were removed. This makes the callers
28577 easier to read. All callers changed.
28578 (D_INO_TO_RESULT): Now empty if there is no d_ino.
28579 (size_add_wrapv, glob_use_alloca): New static functions.
28580 (glob, glob_in_dir): Check for size_t overflow in several places,
28581 and fix some size_t checks that were not quite right.
28582 Remove old code using SHELL since Bash no longer
28583 uses this.
28584 (glob, prefix_array): Separate MS code better.
28585 (glob_in_dir): Remove old Amiga and VMS code.
28586 (globfree, __glob_pattern_type, __glob_pattern_p): Move to
28587 separate files.
28588 (glob_in_dir): Do not rely on undefined behavior in accessing
28589 struct members beyond their bounds. Use a flexible array member
28590 instead
28591 (link_stat): Rename from link_exists2_p and return -1/0 instead of
28592 0/1. Caller changed.
28593 (glob): Fix memory leaks.
28594 * posix/glob64 (globfree64): Move to separate file.
28595 * sysdeps/gnu/glob64.c (NO_GLOB_PATTERN_P): Remove define.
28596 (globfree64): Remove hidden alias.
28597 * sysdeps/unix/sysv/linux/Makefile (sysdeps_routines): Add
28598 oldglob.
28599 * sysdeps/unix/sysv/linux/alpha/glob.c (__new_globfree): Move to
28600 separate file.
28601 * sysdeps/unix/sysv/linux/i386/glob64.c (NO_GLOB_PATTERN_P): Remove
28602 define.
28603 Move compat code to separate file.
28604 * sysdeps/wordsize-64/glob.c (globfree): Move definitions to
28605 separate file.
28606
28607 2017-09-07 H.J. Lu <hongjiu.lu@intel.com>
28608
28609 * resolv/tst-resolv-qtypes.c (domain): Changed to
28610 "const char domain[] =".
28611
28612 2017-09-07 Joseph Myers <joseph@codesourcery.com>
28613
28614 * scripts/build-many-glibcs.py (Context.checkout): Default MPFR
28615 version to 3.1.6.
28616
28617 * sysdeps/gnu/netinet/tcp.h (TCP_ULP): New macro.
28618 (TCP_MD5SIG_EXT): Likewise.
28619 (TCP_MD5SIG_FLAG_PREFIX): Likewise.
28620 (struct tcp_md5sig): Replace __tcpm_pad1 by tcpm_flags and
28621 tcpm_prefixlen. Rename __tcpm_pad2 to __tcpm_pad.
28622
28623 * sysdeps/unix/sysv/linux/bits/socket.h (SOL_TLS): New macro.
28624
28625 2017-09-07 Mike FABIAN <mfabian@redhat.com>
28626
28627 * localedata/locales/om_ET (LC_TIME): use ASCII for better readability.
28628
28629 2017-09-07 Akhilesh Kumar <akhilesh.k@samsung.com>
28630
28631 [BZ #22100]
28632 * localedata/locales/om_KE (LC_TIME): copy "om_ET".
28633
28634 2017-09-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
28635
28636 * hurd/get-host.c (_hurd_get_host_config): Also check that more == 0
28637 before assuming that the file is empty. Avoid testing buffer content
28638 when nread == 0.
28639
28640 2017-09-06 Adhemerval Zanella <adhemerval.zanella@linaro.org>
28641
28642 [BZ #18858]
28643 * sysdeps/i386/i686/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28644 Remove define.
28645 * sysdeps/x86_64/multiarch/stpcpy.c (_HAVE_STRING_ARCH_stpcpy):
28646 Likewise.
28647 * sysdeps/x86_64/multiarch/strcspn.c (_HAVE_STRING_ARCH_strcspn):
28648 Likewise.
28649 * sysdeps/x86_64/multiarch/strncat.c (_HAVE_STRING_ARCH_strncat):
28650 Likewise.
28651 * sysdeps/x86_64/multiarch/strncpy.c (_HAVE_STRING_ARCH_strncpy):
28652 Likewise.
28653 * sysdeps/x86_64/multiarch/strpbrk.c (_HAVE_STRING_ARCH_strpbrk):
28654 Likewise.
28655 * sysdeps/x86_64/multiarch/strspn.c (_HAVE_STRING_ARCH_strspn):
28656 Likewise.
28657
28658 2017-09-06 Florian Weimer <fweimer@redhat.com>
28659
28660 * malloc/dynarray_emplace_enlarge.c
28661 (__libc_dynarray_emplace_enlarge): Add missing else.
28662
28663 2017-09-06 Florian Weimer <fweimer@redhat.com>
28664
28665 [BZ #22096]
28666 * resolv/resolv_conf.c (__resolv_conf_attach): Do not free conf in
28667 case of failure to obtain the global conf object.
28668
28669 2017-09-06 Florian Weimer <fweimer@redhat.com>
28670
28671 [BZ #22095]
28672 * resolv/res_init.c (res_vinit_1): Avoid memory leak in case of
28673 dynarray allocation failure.
28674
28675 2017-09-06 Florian Weimer <fweimer@redhat.com>
28676
28677 Remove dead PTR IPv4-to-IPv6 mapping code from nss_dns.
28678 * resolv/nss_dns/dns-host.c (getanswer_r): Remove dead code.
28679 * resolv/tst-res_use_inet6.c (response_ptr_v4, response_ptr_v6):
28680 New functions.
28681 (response): Call them. Add 'p', '6' flag processing.
28682 (test_reverse): New function.
28683 (test_get2_any): Call it.
28684 (test_no_inet6): Add 'p' test.
28685 (test_inet6): Likewise.
28686
28687 2017-09-06 Florian Weimer <fweimer@redhat.com>
28688
28689 Enhance tst-res_use_inet6 to test IPv4-to-IPv6 address mapping.
28690 * resolv/tst-res_use_inet6.c (response): Process flags embedded in
28691 the QNAME.
28692 (test_gai): Adjust query names. Add additional tests.
28693 (test_get2_any, test_get2_no_inet6, test_get2_inet6): Split from
28694 test_get2. Adjust query names. Add additional tests.
28695 (test_no_inet6): New function, extracted from threadfunc.
28696 (threadfunc): Call test_get2_any, test_get2_inet6, test_no_inet6.
28697 Add additional tests.
28698
28699 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28700
28701 [BZ #22070]
28702 * localedata/unicode-gen/utf8_gen.py: Set the width for
28703 characters with Prepended_Concatenation_Mark property to 1
28704 * localedata/charmaps/UTF-8: Updated using the improved script.
28705
28706 2017-09-06 Mike FABIAN <mfabian@redhat.com>
28707
28708 [BZ #21750]
28709 * localedata/unicode-gen/utf8_gen.py: Improve the script to
28710 use the range notation for all ranges of neighbouring characters
28711 with the same width.
28712
28713 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28714
28715 * sysdeps/generic/math-type-macros-double.h: Include
28716 <math-svid-compat.h>.
28717 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28718 * sysdeps/generic/math-type-macros-float.h: Include
28719 <math-svid-compat.h>.
28720 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28721 * sysdeps/generic/math-type-macros-ldouble.h: Include
28722 <math-svid-compat.h>.
28723 (__USE_WRAPPER_TEMPLATE): Define to !LIBM_SVID_COMPAT.
28724 * math/lgamma-compat.h (BUILD_LGAMMA): Include LIBM_SVID_COMPAT
28725 condition.
28726 * math/w_acos_compat.c: Condition contents on [LIBM_SVID_COMPAT].
28727 * math/w_acosf_compat.c: Likewise.
28728 * math/w_acosh_compat.c: Likewise.
28729 * math/w_acoshf_compat.c: Likewise.
28730 * math/w_acoshl_compat.c: Likewise.
28731 * math/w_acosl_compat.c: Likewise.
28732 * math/w_asin_compat.c: Likewise.
28733 * math/w_asinf_compat.c: Likewise.
28734 * math/w_asinl_compat.c: Likewise.
28735 * math/w_atan2_compat.c: Likewise.
28736 * math/w_atan2f_compat.c: Likewise.
28737 * math/w_atan2l_compat.c: Likewise.
28738 * math/w_atanh_compat.c: Likewise.
28739 * math/w_atanhf_compat.c: Likewise.
28740 * math/w_atanhl_compat.c: Likewise.
28741 * math/w_cosh_compat.c: Likewise.
28742 * math/w_coshf_compat.c: Likewise.
28743 * math/w_coshl_compat.c: Likewise.
28744 * math/w_exp10_compat.c: Likewise.
28745 * math/w_exp10f_compat.c: Likewise.
28746 * math/w_exp10l_compat.c: Likewise.
28747 * math/w_exp2_compat.c: Likewise.
28748 * math/w_exp2f_compat.c: Likewise.
28749 * math/w_exp2l_compat.c: Likewise.
28750 * math/w_fmod_compat.c: Likewise.
28751 * math/w_fmodf_compat.c: Likewise.
28752 * math/w_fmodl_compat.c: Likewise.
28753 * math/w_hypot_compat.c: Likewise.
28754 * math/w_hypotf_compat.c: Likewise.
28755 * math/w_hypotl_compat.c: Likewise.
28756 * math/w_j0_compat.c: Likewise.
28757 * math/w_j0f_compat.c: Likewise.
28758 * math/w_j0l_compat.c: Likewise.
28759 * math/w_j1_compat.c: Likewise.
28760 * math/w_j1f_compat.c: Likewise.
28761 * math/w_j1l_compat.c: Likewise.
28762 * math/w_jn_compat.c: Likewise.
28763 * math/w_jnf_compat.c: Likewise.
28764 * math/w_jnl_compat.c: Likewise.
28765 * math/w_lgamma_r_compat.c: Likewise.
28766 * math/w_lgammaf_r_compat.c: Likewise.
28767 * math/w_lgammal_r_compat.c: Likewise.
28768 * math/w_log10_compat.c: Likewise.
28769 * math/w_log10f_compat.c: Likewise.
28770 * math/w_log10l_compat.c: Likewise.
28771 * math/w_log2_compat.c: Likewise.
28772 * math/w_log2f_compat.c: Likewise.
28773 * math/w_log2l_compat.c: Likewise.
28774 * math/w_log_compat.c: Likewise.
28775 * math/w_logf_compat.c: Likewise.
28776 * math/w_logl_compat.c: Likewise.
28777 * math/w_pow_compat.c: Likewise.
28778 * math/w_powf_compat.c: Likewise.
28779 * math/w_powl_compat.c: Likewise.
28780 * math/w_remainder_compat.c: Likewise.
28781 * math/w_remainderf_compat.c: Likewise.
28782 * math/w_remainderl_compat.c: Likewise.
28783 * math/w_sinh_compat.c: Likewise.
28784 * math/w_sinhf_compat.c: Likewise.
28785 * math/w_sinhl_compat.c: Likewise.
28786 * math/w_sqrt_compat.c: Likewise.
28787 * math/w_sqrtf_compat.c: Likewise.
28788 * math/w_sqrtl_compat.c: Likewise.
28789 * math/w_tgamma_compat.c: Likewise.
28790 * math/w_tgammaf_compat.c: Likewise.
28791 * math/w_tgammal_compat.c: Likewise.
28792 * math/w_scalb_compat.c (sysv_scalb): Condition definition on
28793 [LIBM_SVID_COMPAT].
28794 (__scalb): Condition call to sysv_scalb on [LIBM_SVID_COMPAT].
28795 * math/w_scalbf_compat.c (sysv_scalbf): Condition definition on
28796 [LIBM_SVID_COMPAT].
28797 (__scalbf): Condition call to sysv_scalbf on [LIBM_SVID_COMPAT].
28798 * math/w_scalbl_compat.c (sysv_scalbl): Condition definition on
28799 [LIBM_SVID_COMPAT].
28800 (__scalbl): Condition call to sysv_scalbl on [LIBM_SVID_COMPAT].
28801 * sysdeps/i386/fpu/w_sqrt.c: New file.
28802 * sysdeps/ia64/fpu/w_acos.c: Likewise.
28803 * sysdeps/ia64/fpu/w_acosf.c: Likewise.
28804 * sysdeps/ia64/fpu/w_acosh.c: Likewise.
28805 * sysdeps/ia64/fpu/w_acoshf.c: Likewise.
28806 * sysdeps/ia64/fpu/w_acoshl.c: Likewise.
28807 * sysdeps/ia64/fpu/w_acosl.c: Likewise.
28808 * sysdeps/ia64/fpu/w_asin.c: Likewise.
28809 * sysdeps/ia64/fpu/w_asinf.c: Likewise.
28810 * sysdeps/ia64/fpu/w_asinl.c: Likewise.
28811 * sysdeps/ia64/fpu/w_atan2.c: Likewise.
28812 * sysdeps/ia64/fpu/w_atan2f.c: Likewise.
28813 * sysdeps/ia64/fpu/w_atan2l.c: Likewise.
28814 * sysdeps/ia64/fpu/w_atanh.c: Likewise.
28815 * sysdeps/ia64/fpu/w_atanhf.c: Likewise.
28816 * sysdeps/ia64/fpu/w_atanhl.c: Likewise.
28817 * sysdeps/ia64/fpu/w_cosh.c: Likewise.
28818 * sysdeps/ia64/fpu/w_coshf.c: Likewise.
28819 * sysdeps/ia64/fpu/w_coshl.c: Likewise.
28820 * sysdeps/ia64/fpu/w_exp.c: Likewise.
28821 * sysdeps/ia64/fpu/w_exp10.c: Likewise.
28822 * sysdeps/ia64/fpu/w_exp10f.c: Likewise.
28823 * sysdeps/ia64/fpu/w_exp10l.c: Likewise.
28824 * sysdeps/ia64/fpu/w_exp2.c: Likewise.
28825 * sysdeps/ia64/fpu/w_exp2f.c: Likewise.
28826 * sysdeps/ia64/fpu/w_exp2l.c: Likewise.
28827 * sysdeps/ia64/fpu/w_expf.c: Likewise.
28828 * sysdeps/ia64/fpu/w_expl.c: Likewise.
28829 * sysdeps/ia64/fpu/w_fmod.c: Likewise.
28830 * sysdeps/ia64/fpu/w_fmodf.c: Likewise.
28831 * sysdeps/ia64/fpu/w_fmodl.c: Likewise.
28832 * sysdeps/ia64/fpu/w_hypot.c: Likewise.
28833 * sysdeps/ia64/fpu/w_hypotf.c: Likewise.
28834 * sysdeps/ia64/fpu/w_hypotl.c: Likewise.
28835 * sysdeps/ia64/fpu/w_lgamma_r.c: Likewise.
28836 * sysdeps/ia64/fpu/w_lgammaf_r.c: Likewise.
28837 * sysdeps/ia64/fpu/w_lgammal_r.c: Likewise.
28838 * sysdeps/ia64/fpu/w_log.c: Likewise.
28839 * sysdeps/ia64/fpu/w_log10.c: Likewise.
28840 * sysdeps/ia64/fpu/w_log10f.c: Likewise.
28841 * sysdeps/ia64/fpu/w_log10l.c: Likewise.
28842 * sysdeps/ia64/fpu/w_log2.c: Likewise.
28843 * sysdeps/ia64/fpu/w_log2f.c: Likewise.
28844 * sysdeps/ia64/fpu/w_log2l.c: Likewise.
28845 * sysdeps/ia64/fpu/w_logf.c: Likewise.
28846 * sysdeps/ia64/fpu/w_logl.c: Likewise.
28847 * sysdeps/ia64/fpu/w_pow.c: Likewise.
28848 * sysdeps/ia64/fpu/w_powf.c: Likewise.
28849 * sysdeps/ia64/fpu/w_powl.c: Likewise.
28850 * sysdeps/ia64/fpu/w_remainder.c: Likewise.
28851 * sysdeps/ia64/fpu/w_remainderf.c: Likewise.
28852 * sysdeps/ia64/fpu/w_remainderl.c: Likewise.
28853 * sysdeps/ia64/fpu/w_sinh.c: Likewise.
28854 * sysdeps/ia64/fpu/w_sinhf.c: Likewise.
28855 * sysdeps/ia64/fpu/w_sinhl.c: Likewise.
28856 * sysdeps/ia64/fpu/w_sqrt.c: Likewise.
28857 * sysdeps/ia64/fpu/w_sqrtf.c: Likewise.
28858 * sysdeps/ia64/fpu/w_sqrtl.c: Likewise.
28859 * sysdeps/ia64/fpu/w_tgamma.c: Likewise.
28860 * sysdeps/ia64/fpu/w_tgammaf.c: Likewise.
28861 * sysdeps/ia64/fpu/w_tgammal.c: Likewise.
28862 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Condition contents on
28863 [LIBM_SVID_COMPAT].
28864 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
28865 * sysdeps/ieee754/k_standard.c: Likewise.
28866 * sysdeps/ieee754/k_standardf.c: Likewise.
28867 * sysdeps/ieee754/k_standardl.c: Likewise.
28868 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
28869 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
28870 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
28871 * sysdeps/ieee754/ldbl-64-128/w_expl_compat.c: Condition
28872 long_double_symbol call on [LIBM_SVID_COMPAT].
28873 * sysdeps/ieee754/ldbl-opt/w_acoshl_compat.c: Likewise.
28874 * sysdeps/ieee754/ldbl-opt/w_acosl_compat.c: Likewise.
28875 * sysdeps/ieee754/ldbl-opt/w_asinl_compat.c: Likewise.
28876 * sysdeps/ieee754/ldbl-opt/w_atan2l_compat.c: Likewise.
28877 * sysdeps/ieee754/ldbl-opt/w_atanhl_compat.c: Likewise.
28878 * sysdeps/ieee754/ldbl-opt/w_coshl_compat.c: Likewise.
28879 * sysdeps/ieee754/ldbl-opt/w_fmodl_compat.c: Likewise.
28880 * sysdeps/ieee754/ldbl-opt/w_hypotl_compat.c: Likewise.
28881 * sysdeps/ieee754/ldbl-opt/w_j0l_compat.c: Likewise.
28882 * sysdeps/ieee754/ldbl-opt/w_j1l_compat.c: Likewise.
28883 * sysdeps/ieee754/ldbl-opt/w_jnl_compat.c: Likewise.
28884 * sysdeps/ieee754/ldbl-opt/w_lgammal_r_compat.c: Likewise.
28885 * sysdeps/ieee754/ldbl-opt/w_log10l_compat.c: Likewise.
28886 * sysdeps/ieee754/ldbl-opt/w_log2l_compat.c: Likewise.
28887 * sysdeps/ieee754/ldbl-opt/w_logl_compat.c: Likewise.
28888 * sysdeps/ieee754/ldbl-opt/w_powl_compat.c: Likewise.
28889 * sysdeps/ieee754/ldbl-opt/w_remainderl_compat.c: Likewise.
28890 * sysdeps/ieee754/ldbl-opt/w_sinhl_compat.c: Likewise.
28891 * sysdeps/ieee754/ldbl-opt/w_sqrtl_compat.c: Likewise.
28892 * sysdeps/ieee754/ldbl-opt/w_tgammal_compat.c: Likewise.
28893 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c: Condition
28894 long_double_symbol and compat_symbol calls on [LIBM_SVID_COMPAT].
28895
28896 2017-09-05 Steve Ellcey <sellcey@cavium.com>
28897
28898 * include/shlib-compat.h (TEST_COMPAT): New Macro.
28899 * malloc/tst-mallocstate.c: Convert from test-skeleton
28900 to test-driver. Ifdef code using TEST_COMPAT macro.
28901 * math/test-matherr-2.c: Ifdef test using TEST_COMPAT macro.
28902 * math/test-matherr.c: Likewise.
28903
28904 2017-09-05 Joseph Myers <joseph@codesourcery.com>
28905
28906 [BZ #22086]
28907 * debug/pcprofiledump.c (main): Use byte-swapped mask when
28908 comparing word with byte-swapped constant.
28909
28910 2017-09-05 Chris Leonard <cjlhomeaddress@gmail.com>
28911
28912 [BZ #20498]
28913 * locale/iso-639.def: add Miskito.
28914 * localedata/SUPPORTED: Add miq_NI/UTF-8.
28915 * localedata/locales/miq_NI: New file.
28916
28917 2017-09-04 H.J. Lu <hongjiu.lu@intel.com>
28918
28919 [BZ #18822]
28920 * include/sys/stat.h (__chmod): Add libc_hidden_proto.
28921 (__mkdir): Likewise.
28922 * io/chmod.c (__chmod): Add libc_hidden_def.
28923 * io/mkdir.c (__mkdir): Likewise.
28924 * sysdeps/mach/hurd/chmod.c (__chmod): Likewise.
28925 * sysdeps/mach/hurd/mkdir.c (__mkdir): Likewise.
28926 * sysdeps/unix/sysv/linux/generic/chmod.c (__chmod): Likewise.
28927 * sysdeps/unix/sysv/linux/generic/mkdir.c (__mkdir): Likewise.
28928
28929 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28930
28931 * sysdeps/unix/sysv/linux/syscall-names.list: Update kernel
28932 version to 4.13.
28933
28934 [BZ #22082]
28935 * math/bits/math-finite.h (exp10): Redirect if [__GLIBC_USE
28936 (IEC_60559_FUNCS_EXT)], not [__USE_GNU].
28937
28938 2017-09-04 Florian Weimer <fweimer@redhat.com>
28939
28940 * math/math.h: Issue warning if log is defined.
28941
28942 2017-09-04 Joseph Myers <joseph@codesourcery.com>
28943
28944 * scripts/build-many-glibcs.py (Context.checkout): Default Linux
28945 kernel version to 4.13.
28946
28947 2017-09-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
28948
28949 * sysdeps/generic/sigsetops.h: Remove spurious #endif.
28950 (__sigismember, __sigaddset, __sigdelset): Fix referencing set
28951 parameter.
28952 * sysdeps/mach/hurd/bits/socket.h: Include <sys/types.h> instead of
28953 just <bits/types.h>.
28954 * sysdeps/posix/preadv2.c: Use off_t instead of OFF_T.
28955 * sysdeps/posix/preadv64v2.c: Use off64_t instead of OFF_T.
28956 * sysdeps/posix/pwritev2.c: Use off_t instead of OFF_T.
28957 * sysdeps/posix/pwritev64v2.c: Use off64_t instead of OFF_T.
28958 * misc/preadv2.c: Include <errno.h>.
28959 * misc/preadv64v2.c: Include <errno.h>.
28960 * misc/pwritev2.c: Include <errno.h>.
28961 * misc/pwritev64v2.c: Include <errno.h>.
28962 * sysdeps/posix/preadv2.c: Include <errno.h>.
28963 * sysdeps/posix/preadv64v2.c: Include <errno.h>.
28964 Fix <unistd.h> inclusion.
28965 * sysdeps/posix/pwritev2.c: Include <errno.h>.
28966 * sysdeps/posix/pwritev64v2.c: Include <errno.h>.
28967 * sysdeps/mach/hurd/dl-sysdep.c (__access_noerrno, __sbrk,
28968 __strtoul_internal): New functions.
28969 * sysdeps/posix/pause.c: Include <sigsetops.h>.
28970 * sysdeps/posix/system.c: Include <sigsetops.h>.
28971 * sysdeps/mach/hurd/i386/Makefile
28972 [$(subdir) = csu] (sysdep_routines): New rule: divdi3 object.
28973 [$(subdir) = csu] (sysdep-only-routines): Likewise.
28974 [$(subdir) = csu] (CFLAGS-divdi3.c): Likewise.
28975 * sysdeps/x86/fpu/include/bits/fenv.h [NO_HIDDEN]: Redirect
28976 __feraiseexcept_renamed to feraiseexcept instead of
28977 __GI_feraiseexcept.
28978 * sysdeps/mach/hurd/i386/Implies: Add mach/hurd/x86.
28979 * sysdeps/mach/hurd/x86/dl-sysdep.c: New file.
28980 * misc/tst-preadvwritev2-common.c (RWF_HIPRI, RWF_DSYNC, RWF_SYNC,
28981 RWF_NOWAIT): Define to 0 if undefined already.
28982 (do_test_with_invalid_flags): Set invalid_flag to 2 if RWF_SUPPORTED
28983 boils down to 0.
28984 * resolv/tst-resolv-res_init-skeleton.c (run_res_init)
28985 [!CLONE_NEWUTS]: Fail as unsupported if hostname is not NULL.
28986
28987 2017-09-01 Joseph Myers <joseph@codesourcery.com>
28988
28989 * manual/math.texi (pow10): Do not document.
28990 (pow10f): Likewise.
28991 (pow10l): Likewise.
28992 * math/bits/mathcalls.h [__USE_GNU] (pow10): Do not declare.
28993 * math/bits/math-finite.h [__USE_GNU] (pow10): Likewise.
28994 * math/libm-test-exp10.inc (pow10_test): Remove.
28995 (do_test): Do not call pow10.
28996 * math/w_exp10_compat.c (pow10): Make into compat symbol.
28997 [NO_LONG_DOUBLE] (pow10l): Likewise.
28998 * math/w_exp10f_compat.c (pow10f): Likewise.
28999 * math/w_exp10l_compat.c (pow10l): Likewise.
29000 * sysdeps/ia64/fpu/e_exp10.S: Include <shlib-compat.h>.
29001 (pow10): Make into compat symbol.
29002 * sysdeps/ia64/fpu/e_exp10f.S: Include <shlib-compat.h>.
29003 (pow10f): Make into compat symbol.
29004 * sysdeps/ia64/fpu/e_exp10l.S: Include <shlib-compat.h>.
29005 (pow10l): Make into compat symbol.
29006 * sysdeps/ieee754/ldbl-opt/Makefile (libnldbl-calls): Remove
29007 pow10.
29008 (CFLAGS-nldbl-pow10.c): Remove variable..
29009 * sysdeps/ieee754/ldbl-opt/nldbl-pow10.c: Remove file.
29010 * sysdeps/ieee754/ldbl-opt/w_exp10_compat.c (pow10l): Condition on
29011 [SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_27)].
29012 * sysdeps/ieee754/ldbl-opt/w_exp10l_compat.c (compat_symbol):
29013 Undefine and redefine.
29014 (pow10l): Make into compat symbol.
29015 * sysdeps/aarch64/libm-test-ulps: Remove pow10 ulps.
29016 * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
29017 * sysdeps/arm/libm-test-ulps: Likewise.
29018 * sysdeps/hppa/fpu/libm-test-ulps: Likewise.
29019 * sysdeps/i386/fpu/libm-test-ulps: Likewise.
29020 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Likewise.
29021 * sysdeps/microblaze/libm-test-ulps: Likewise.
29022 * sysdeps/mips/mips32/libm-test-ulps: Likewise.
29023 * sysdeps/mips/mips64/libm-test-ulps: Likewise.
29024 * sysdeps/nios2/libm-test-ulps: Likewise.
29025 * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
29026 * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
29027 * sysdeps/s390/fpu/libm-test-ulps: Likewise.
29028 * sysdeps/sh/libm-test-ulps: Likewise.
29029 * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
29030 * sysdeps/tile/libm-test-ulps: Likewise.
29031 * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29032
29033 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29034
29035 * stdlib/tst-atexit-common.c (crumbs): Ensure correct size.
29036
29037 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29038
29039 * posix/tst-regex.c (do_test): Replace "../ChangeLog.8" with
29040 "../ChangeLog.old/ChangeLog.8".
29041 * posix/tst-regex2.c (do_test): Replace "../ChangeLog.14" with
29042 "../ChangeLog.old/ChangeLog.14".
29043
29044 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29045
29046 * manual/contrib.texi: Credit Ulrich Drepper for the POSIX
29047 Threads Library.
29048
29049 2017-09-01 Joseph Myers <joseph@codesourcery.com>
29050
29051 * sysdeps/unix/sysv/linux/gentempfd.c: Include <string.h>.
29052
29053 2017-09-01 H.J. Lu <hongjiu.lu@intel.com>
29054
29055 * csu/version.c (banner): Remove "by Roland McGrath et al.".
29056 * nptl/Banner: Remove "by Ulrich Drepper et al.".
29057
29058 2017-09-01 Paul Pluzhnikov <ppluzhnikov@google.com>
29059
29060 * stdlib/tst-atexit-common.c (do_test): Test support for at least
29061 32 atexit handlers.
29062
29063 2017-09-01 Zack Weinberg <zackw@panix.com>
29064
29065 * math/math.h (HUGE_VAL): Improve commentary.
29066
29067 2017-09-01 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29068 Andreas Schwab <schwab@suse.de>
29069
29070 [BZ #21530]
29071 * include/stdio.h (__gen_tempfd): New function.
29072 * stdio-common/Makefile (routines): Add gentempfd.
29073 * stdio-common/gentempfd.c: New file.
29074 * sysdeps/unix/sysv/linux/gentempfd.c: Likewise.
29075 * stdio-common/tmpfile.c (tmpfile): First try to use a system specific
29076 unnamed file first.
29077
29078 2017-09-01 Florian Weimer <fweimer@redhat.com>
29079
29080 [BZ #21915]
29081 [BZ #21922]
29082 * sysdeps/posix/getaddrinfo.c (gethosts): Look at NSS function
29083 result to determine success or failure, not the errno value.
29084 * nss/Makefile (tests): Add tst-nss-files-hosts-erange.
29085 (tst-nss-files-hosts-erange): Link with -ldl.
29086 * nss/tst-nss-files-hosts-erange.c: New file.
29087 * nss/tst-resolv-basic.c (response): Handle nodata.example.
29088 (do_test): Add NO_DATA tests.
29089 * resolv/tst-resolv-basic.c (test_nodata_nxdomain): New function.
29090 (do_test): Call it.
29091
29092 2017-09-01 Florian Weimer <fweimer@redhat.com>
29093
29094 [BZ #21922]
29095 * sysdeps/posix/getaddrinfo.c (gaih_inet): Report EAI_NODATA error
29096 coming from gethostbyname2_r.
29097
29098 2017-09-01 Florian Weimer <fweimer@redhat.com>
29099
29100 * support/namespace.h (struct support_chroot_configuration): Add
29101 hosts, host_conf.
29102 (struct support_chroot): Add path_hosts, path_host_conf.
29103 * support/support_chroot.c (write_file): New function.
29104 (support_chroot_create): Call it to process /etc/resolv.conf,
29105 /etc/hosts, /etc/host.conf.
29106 (support_chroot_free): Update.
29107
29108 2017-09-01 Florian Weimer <fweimer@redhat.com>
29109
29110 * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use h_errno if
29111 status indicates it is set.
29112
29113 2017-09-01 Florian Weimer <fweimer@redhat.com>
29114
29115 [BZ #20532]
29116 * sysdeps/posix/getaddrinfo.c (gaih_inet): Make reporting of NSS
29117 function lookup failures more reliable.
29118
29119 2017-09-01 Florian Weimer <fweimer@redhat.com>
29120
29121 * sysdeps/posix/getaddrinfo.c (gethosts): Use h_errno directly.
29122 (getcanonname): Likewise.
29123 (gaih_inet): Likewise.
29124
29125 2017-09-01 Florian Weimer <fweimer@redhat.com>
29126
29127 * sysdeps/posix/getaddrinfo.c (gethosts): Use errno directly.
29128 (getcanonname): Likewise.
29129 (gaih_inet): Likewise.
29130
29131 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29132 Richard Henderson <rth@twiddle.net>
29133
29134 * sysdeps/aarch64/fpu/s_llrint.c (OREG_SIZE): New macro.
29135 * sysdeps/aarch64/fpu/s_llround.c (OREG_SIZE): Likewise.
29136 * sysdeps/aarch64/fpu/s_llrintf.c (OREGS, IREGS): Remove.
29137 (IREG_SIZE, OREG_SIZE): New macros.
29138 * sysdeps/aarch64/fpu/s_llroundf.c: (OREGS, IREGS): Remove.
29139 (IREG_SIZE, OREG_SIZE): New macros.
29140 * sysdeps/aarch64/fpu/s_lrintf.c (IREGS): Remove.
29141 (IREG_SIZE): New macro.
29142 * sysdeps/aarch64/fpu/s_lroundf.c (IREGS): Remove.
29143 (IREG_SIZE): New macro.
29144 * sysdeps/aarch64/fpu/s_lrint.c (get-rounding-mode.h, stdint.h):
29145 New includes.
29146 (IREG_SIZE, OREG_SIZE): Initialize if not already set.
29147 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29148 (__CONCATX): Handle exceptions correctly on large values that may
29149 set FE_INVALID.
29150 * sysdeps/aarch64/fpu/s_lround.c (IREG_SIZE, OREG_SIZE):
29151 Initialize if not already set.
29152 (OREGS, IREGS): Set based on IREG_SIZE and OREG_SIZE.
29153
29154 2017-08-31 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29155
29156 * sysdeps/generic/not-cancel.h (NO_CANCELLATION): Remove macro.
29157 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (NO_CANCELLATION):
29158 Likewise.
29159 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (NO_CANCELLATION):
29160 Likewise.
29161 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (NO_CANCELLATION):
29162 Likewise.
29163 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (NO_CANCELLATION):
29164 Likewise.
29165 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (NO_CANCELLATION):
29166 Likewise.
29167 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (NO_CANCELLATION):
29168 Likewise.
29169 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (NO_CANCELLATION):
29170 Likewise.
29171 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h
29172 (NO_CANCELLATION): Likewise.
29173 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (NO_CANCELLATION):
29174 Likewise.
29175 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (NO_CANCELLATION):
29176 Likewise.
29177 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h (NO_CANCELLATION):
29178 Likewise.
29179 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h
29180 (NO_CANCELLATION): Likewise.
29181 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h
29182 (NO_CANCELLATION): Likewise.
29183 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (NO_CANCELLATION):
29184 Likewise
29185 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h (NO_CANCELLATION):
29186 Likewise.
29187 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (NO_CANCELLATION):
29188 Likewise.
29189 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (NO_CANCELLATION):
29190 Likewise.
29191 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): Add
29192 hidden prototype.
29193 * sysdeps/unix/sysv/linux/fcntl.c (__fcntl_nocancel): Define only
29194 for !IS_IN (rtld) and remove NO_CANCELLATION usage.
29195
29196 2017-08-31 Steve Ellcey <sellcey@cavium.com>
29197
29198 * sysdeps/aarch64/dl-irel.h: (elf_ifunc_invoke): Change argument type
29199 in resolver call.
29200
29201 2017-08-31 Florian Weimer <fweimer@redhat.com>
29202
29203 * include/libc-symbols.h (internal_function): Remove.
29204
29205 2017-08-31 Florian Weimer <fweimer@redhat.com>
29206
29207 * stdlib/fmtmsg.c (internal_addseverity): Remove
29208 internal_function.
29209
29210 2017-08-31 Florian Weimer <fweimer@redhat.com>
29211
29212 * stdio-common/printf_fp.c (group_number): Remove
29213 internal_function.
29214 * stdio-common/vfprintf.c (buffered_vfprintf): Likewise.
29215
29216 2017-08-31 Florian Weimer <fweimer@redhat.com>
29217
29218 * posix/fnmatch.c (internal_function): Remove definition.
29219 * posix/fnmatch_loop.c (FCT, EXT, END): Remove internal_function.
29220 * posix/regcomp.c (peek_token, init_word_char)
29221 (duplicate_node_closure, fetch_token, peek_token)
29222 (peek_token_bracket, build_range_exp, build_collating_symbol):
29223 Likewise.
29224 * posix/regex_internal.c (re_string_construct_common)
29225 (create_ci_newstate, create_cd_newstate, re_string_allocate)
29226 (re_string_construct, re_string_realloc_buffers, build_wcs_buffer)
29227 (build_wcs_upper_buffer, re_string_skip_chars, build_upper_buffer)
29228 (re_string_translate_buffer, re_string_reconstruct)
29229 (re_string_peek_byte_case, re_string_fetch_byte_case)
29230 (re_string_destruct, re_string_context_at, re_node_set_alloc)
29231 (re_node_set_init_1, re_node_set_init_2, re_node_set_init_copy)
29232 (re_node_set_add_intersect, re_node_set_init_union)
29233 (re_node_set_merge, re_node_set_insert, re_node_set_insert_last)
29234 (re_node_set_compare, re_node_set_contains, re_node_set_remove_at)
29235 (re_dfa_add_node, calc_state_hash, re_acquire_state)
29236 (re_acquire_state_context): Likewise.
29237 * posix/regex_internal.h (internal_function): Remove definition.
29238 (re_string_realloc_buffers, build_wcs_buffer)
29239 (build_wcs_upper_buffer, build_upper_buffer)
29240 (re_string_translate_buffer, re_string_context_at)
29241 (re_string_char_size_at, re_string_wchar_at)
29242 (re_string_elem_size_at): Likewise.
29243 * posix/regexec.c (match_ctx_init, match_ctx_clean)
29244 (match_ctx_free, match_ctx_add_entry, search_cur_bkref_entry)
29245 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init)
29246 (re_search_internal, re_search_2_stub, re_search_stub)
29247 (re_copy_regs, prune_impossible_nodes, check_matching)
29248 (check_halt_state_context, update_regs, push_fail_stack, set_regs)
29249 (free_fail_stack_return, sift_states_iter_mb)
29250 (sift_states_backward, build_sifted_states)
29251 (update_cur_sifted_state, add_epsilon_src_nodes, check_dst_limits)
29252 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos)
29253 (check_subexp_limits, sift_states_bkref, merge_state_array)
29254 (find_recover_state, transit_state, merge_state_with_log)
29255 (check_subexp_matching_top, transit_state_sb, transit_state_sb)
29256 (transit_state_mb, transit_state_bkref, get_subexp)
29257 (get_subexp_sub, find_subexp_node, check_arrival)
29258 (check_arrival_add_next_nodes, check_arrival_expand_ecl)
29259 (check_arrival_expand_ecl_sub, expand_bkref_cache, build_trtable)
29260 (check_node_accept_bytes, find_collation_sequence_value)
29261 (group_nodes_into_DFAstates, check_node_accept, extend_buffers)
29262 (acquire_init_state_context, check_halt_node_context)
29263 (proceed_next_node, pop_fail_stack, clean_state_log_if_needed)
29264 (sub_epsilon_src_nodes): Likewise.
29265 * posix/spawn_int.h (__spawn_valid_fd): Likewise.
29266 * posix/spawn_valid_fd (__spawn_valid_fd): Likewise.
29267 * posix/wordexp.c (parse_dollars, parse_backtick, parse_dquote)
29268 (eval_expr, w_addmem, w_addstr, w_addword, parse_backslash)
29269 (parse_qtd_backslash, parse_tilde, do_parse_glob, parse_glob)
29270 (parse_squote, eval_expr_val, eval_expr_multdiv, parse_arith)
29271 (exec_comm_child, exec_comm, parse_comm, parse_param): Likewise.
29272 * sysdeps/posix/ttyname.c (getttyname): Likewise.
29273 * sysdeps/posix/ttyname_r.c (getttyname_r): Likewise.
29274 * sysdeps/unix/sysv/linux/preadv.c (__atomic_preadv_replacement)
29275 (PREADV): Likewise.
29276 * sysdeps/unix/sysv/linux/preadv64.c (__atomic_preadv64_replacement)
29277 (PREADV): Likewise.
29278 * sysdeps/unix/sysv/linux/pwritev.c (__atomic_pwritev_replacement)
29279 (PWRITEV): Likewise.
29280 * sysdeps/unix/sysv/linux/pwritev64.c (__atomic_pwritev64_replacement)
29281 (PWRITEV): Likewise.
29282 * sysdeps/unix/sysv/linux/ttyname.c (getttyname): Likewise.
29283 * sysdeps/unix/sysv/linux/ttyname_r.c (getttyname_r): Likewise.
29284
29285 2017-08-31 Florian Weimer <fweimer@redhat.com>
29286
29287 * nptl/allocatestack.c (change_stack_perm, __deallocate_stack)
29288 (setxid_mark_thread, setxid_unmark_thread, setxid_signal_thread):
29289 Remove internal_function.
29290 * nptl/cancellation.c (__pthread_disable_asynccancel): Likewise.
29291 * nptl/libc_pthread_init.c (__libc_pthread_init): Likewise.
29292 * nptl/pthreadP.h (__find_in_stack_list, __free_tcb)
29293 (__deallocate_stack, __libc_pthread_init)
29294 (__pthread_mutex_cond_lock, __pthread_mutex_cond_lock_adjust)
29295 (__pthread_mutex_unlock_usercnt, __pthread_disable_asynccancel)
29296 (__libc_disable_asynccancel, __librt_disable_asynccancel):
29297 Likewise.
29298 * nptl/pthread_create.c (__find_in_stack_list, __free_tcb): Likewise.
29299 * nptl/pthread_mutex_cond_lock.c (__pthread_mutex_lock): Likewise.
29300 * nptl/pthread_mutex_lock.c (__pthread_mutex_cond_lock_adjust):
29301 Likewise.
29302 * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full)
29303 (__pthread_mutex_unlock_usercnt): Likewise.
29304
29305 2017-08-31 Florian Weimer <fweimer@redhat.com>
29306
29307 * io/fts.c (fts_alloc, fts_build, fts_lfree, fts_load)
29308 (fts_maxarglen, fts_padjust, fts_palloc, fts_sort, fts_stat)
29309 (fts_safe_changedir): Remove internal_function.
29310 * io/ftw.c (internal_function): Remove definition.
29311 (ftw_dir, process_entry, ftw_startup): Remove internal_function.
29312
29313 2017-08-31 Florian Weimer <fweimer@redhat.com>
29314
29315 * inet/deadline.c (__deadline_current_time)
29316 (__deadline_from_timeval, __deadline_to_ms): Remove
29317 internal_function.
29318 * inet/getnameinfo.c (nrl_domainname): Likewise.
29319 * inet/getnetgrent_r.c (__internal_setnetgrent_reuse): Likewise.
29320 * inet/inet6_option.c (add_pad): Likewise.
29321 * inet/net-internal.h (__deadline_current_time)
29322 (__deadline_from_timeval, __deadline_to_ms): Likewise.
29323 * inet/rcmd.c (__checkhost_sa, __icheckuser): Likewise.
29324 * sysdeps/mach/hurd/if_index.c (__protocol_available): Likewise.
29325 * sysdeps/unix/sysv/linux/ifaddrs.c (map_newlink): Likewise.
29326
29327 2017-08-31 Joseph Myers <joseph@codesourcery.com>
29328
29329 * math/math.h [__USE_ISOC99] (NAN): Define directly here. Do not
29330 include <bits/nan.h>.
29331 * math/Makefile (headers): Remove bits/nan.h.
29332 * bits/nan.h: Remove.
29333 * sysdeps/ieee754/bits/nan.h: Likewise.
29334 * sysdeps/mips/bits/nan.h: Likewise.
29335
29336 * math/math.h [__USE_ISOC99] (INFINITY): Define directly here. Do
29337 not include <bits/inf.h>.
29338 * math/Makefile (headers): Remove bits/inf.h.
29339 * bits/inf.h: Remove.
29340 * sysdeps/ieee754/bits/inf.h: Likewise.
29341
29342 * math/math.h: Do not include bits/huge_val.h, bits/huge_valf.h,
29343 bits/huge_vall.h or bits/huge_val_flt128.h.
29344 (HUGE_VAL): Define directly here.
29345 [__USE_ISOC99] (HUGE_VALF): Likewise.
29346 [__USE_ISOC99] (HUGE_VALL): Likewise.
29347 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
29348 (HUGE_VAL_F128): Likewise.
29349 * math/Makefile (headers): Remove bits/huge_val.h,
29350 bits/huge_valf.h, bits/huge_vall.h and bits/huge_val_flt128.h.
29351 * bits/huge_val.h: Remove.
29352 * bits/huge_val_flt128.h: Likewise.
29353 * bits/huge_valf.h: Likewise.
29354 * bits/huge_vall.h: Likewise.
29355 * sysdeps/ia64/bits/huge_vall.h: Likewise.
29356 * sysdeps/ieee754/bits/huge_val.h: Likewise.
29357 * sysdeps/ieee754/bits/huge_valf.h: Likewise.
29358 * sysdeps/m68k/m680x0/bits/huge_vall.h: Likewise.
29359 * sysdeps/sh/bits/huge_val.h: Likewise.
29360 * sysdeps/sparc/bits/huge_vall.h: Likewise.
29361 * sysdeps/x86/bits/huge_vall.h: Likewise.
29362
29363 2017-08-31 Florian Weimer <fweimer@redhat.com>
29364
29365 * elf/dl-addr-obj.c (_dl_addr_inside_object): Remove
29366 internal_function.
29367 * elf/dl-cache.c (_dl_cache_libcmp, _dl_load_cache_lookup):
29368 Likewise.
29369 * elf/dl-debug.c (_dl_debug_initialize): Likewise.
29370 * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
29371 * elf/dl-environ.c (_dl_next_ld_env_entry): Likewise.
29372 * elf/dl-execstack.c (_dl_make_stack_executable): Likewise.
29373 * elf/dl-fini.c (_dl_sort_fini): Likewise.
29374 * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
29375 * elf/dl-libc.c (dlerror_run): Likewise.
29376 * elf/dl-load.c (add_name_to_object, decompose_rpath)
29377 (_dl_init_paths, _dl_map_object, _dl_rtld_di_serinfo): Likewise.
29378 * elf/dl-lookup.c (add_dependency, _dl_debug_bindings)
29379 (_dl_lookup_symbol_x, _dl_setup_hash, _dl_debug_bindings):
29380 Likewise.
29381 * elf/dl-misc.c (_dl_sysdep_read_whole_file, _dl_name_match_p)
29382 (_dl_higher_prime_number, _dl_strtoul): Likewise.
29383 * elf/dl-object.c (_dl_add_to_namespace_list, _dl_new_object): Likewise.
29384 * elf/dl-profile.c (_dl_start_profile): Likewise.
29385 * elf/dl-reloc.c (_dl_try_allocate_static_tls)
29386 (_dl_allocate_static_tls, _dl_protect_relro, _dl_reloc_bad_type):
29387 Likewise.
29388 * elf/dl-support.c (_dl_aux_init, _dl_non_dynamic_init): Likewise.
29389 * elf/dl-sym.c (_dl_tls_symaddr, do_sym): Likewise.
29390 * elf/dl-sysdep.c (_dl_sysdep_start_cleanup, _dl_show_auxv): Likewise.
29391 * elf/dl-tls.c (_dl_next_tls_modid, _dl_count_modids)
29392 (_dl_determine_tlsoffset, allocate_dtv, _dl_get_tls_static_info)
29393 (_dl_allocate_tls_storage): Likewise.
29394 * elf/dl-version.c (match_symbol, _dl_check_map_versions)
29395 (_dl_check_all_versions): Likewise.
29396 * elf/dynamic-link.h (_dl_try_allocate_static_tls): Likewise.
29397 * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Likewise.
29398 * elf/tst-_dl_addr_inside_object.c (_dl_addr_inside_object): Likewise.
29399 * sysdeps/aarch64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29400 * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Likewise.
29401 * sysdeps/arm/dl-lookupcfg.h (_dl_unmap): Likewise.
29402 * sysdeps/arm/dl-machine.h (elf_machine_load_address): Remove
29403 internal_function from __dl_start.
29404 * sysdeps/arm/dl-tlsdesc.h (_dl_unmap): Remove internal_function.
29405 * sysdeps/generic/dl-cache.h (_dl_cache_libcmp): Likewise.
29406 * sysdeps/generic/ldsodefs.h (_dl_name_match_p)
29407 (_dl_higher_prime_number, _dl_strtoul, _dl_map_object)
29408 (_dl_map_object_deps, _dl_setup_hash, _dl_rtld_di_serinfo)
29409 (_dl_lookup_symbol_x, _dl_add_to_namespace_list, _dl_new_object)
29410 (_dl_protect_relro, _dl_reloc_bad_type, _dl_check_all_versions)
29411 (_dl_check_map_versions, _dl_sort_fini, _dl_debug_initialize)
29412 (_dl_init_paths, _dl_start_profile, _dl_show_auxv)
29413 (_dl_next_ld_env_entry, _dl_important_hwcaps)
29414 (_dl_load_cache_lookup, _dl_sysdep_read_whole_file)
29415 (_dl_sysdep_start_cleanup, _dl_next_tls_modid, _dl_count_modids)
29416 (_dl_determine_tlsoffset, _dl_get_tls_static_info)
29417 (_dl_allocate_static_tls, _dl_allocate_tls_storage)
29418 (_dl_addr_inside_object, _dl_non_dynamic_init, _dl_aux_init):
29419 Likewise.
29420 (struct rtld_global_ro): Remove internal_function from the
29421 _dl_lookup_symbol_x member.
29422 (_dl_symbol_value): Remove. No longer defined anywhere.
29423 * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Remove
29424 internal_function.
29425 * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29426 * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
29427 * sysdeps/mach/hurd/dl-sysdep.c (_dl_show_auxv): Likewise.
29428 * sysdeps/nios2/dl-init.c (_dl_nios2_get_gp_value): Likewise.
29429 * sysdeps/tile/dl-lookupcfg.h (_dl_unmap): Likewise.
29430 * sysdeps/tile/dl-machine.h (_dl_after_load): Likewise.
29431 * sysdeps/tile/dl-runtime.c (_dl_after_load, _dl_unmap): Likewise.
29432 * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Likewise.
29433 * sysdeps/unix/sysv/linux/dl-vdso.h (_dl_vdso_vsym): Likewise.
29434 * sysdeps/x86_64/dl-lookupcfg.h (_dl_unmap): Likewise.
29435 * sysdeps/x86_64/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic): Likewise.
29436 * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
29437
29438 2017-08-31 Florian Weimer <fweimer@redhat.com>
29439
29440 * gmon/gmon.c (write_hist, write_call_graph, write_bb_counts):
29441 Remove internal_function.
29442 * sysdeps/arm/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29443 Likewise.
29444 * sysdeps/sparc/machine-gmon.h (mcount_internal, _MCOUNT_DECL):
29445 Likewise.
29446
29447 2017-08-31 Florian Weimer <fweimer@redhat.com>
29448
29449 * dlfcn/dlerror.c (_dlerror_run): Remove internal_function.
29450 * elf/dl-sym.c (_dl_vsym, _dl_sym): Likewise.
29451 * include/dlfcn.h (_dl_sym, _dl_vsym, _dlerror_run): Likewise.
29452
29453 2017-08-31 Florian Weimer <fweimer@redhat.com>
29454
29455 * resolv/gai_misc.c (__gai_find_request, __gai_remove_request)
29456 (__gai_enqueue_request): Remove internal_function.
29457 * resolv/gai_misc.h (__gai_enqueue_request, __gai_find_request)
29458 (__gai_remove_request, __gai_notify, __gai_notify_only)
29459 (__gai_sigqueue): Likewise.
29460 * resolv/gai_notify.c (__gai_notify_only, __gai_notify): Likewise.
29461 * resolv/gai_sigqueue.c (__gai_sigqueue): Likewise.
29462 * resolv/inet_ntop.c (inet_ntop4, inet_ntop6): Likewise.
29463 * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
29464 Likewise.
29465
29466 2017-08-31 Florian Weimer <fweimer@redhat.com>
29467
29468 * dirent/scandir-tail.c (SCANDIR_TAIL): Remove internal_function.
29469 * include/dirent.h (__opendirat, __getdents, __getdents64)
29470 (__alloc_dir, __scandir_tail, __scandir64_tail): Likewise.
29471 * sysdeps/posix/opendir.c (__opendirat, __alloc_dir): Likewise.
29472 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
29473 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_getdents64):
29474 Likewise.
29475 * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Likewise.
29476
29477 2017-08-31 Florian Weimer <fweimer@redhat.com>
29478
29479 * sysdeps/unix/sysv/linux/getcwd.c (generic_getcwd): Remove
29480 internal_function.
29481 (GETCWD_RETURN_TYPE): Likewise.
29482
29483 2017-08-31 Florian Weimer <fweimer@redhat.com>
29484
29485 * include/time.h (__tz_compute, __strptime_internal): Remove
29486 internal_function.
29487 * time/strptime_l.c (__strptime_internal): Likewise.
29488 * time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.
29489
29490 2017-08-31 Florian Weimer <fweimer@redhat.com>
29491
29492 * iconv/gconv.c (__gconv): Remove internal_function.
29493 * iconv/gconv_builtin.c (__gconv_get_builtin_trans): Likewise.
29494 * iconv/gconv_cache.c (__gconv_load_cache, find_module_idx)
29495 (find_module, __gconv_compare_alias_cache, __gconv_lookup_cache)
29496 (__gconv_release_cache): Likewise.
29497 * iconv/gconv_close.c (__gconv_close): Likewise.
29498 * iconv/gconv_conf.c (detect_conflict, insert_module, add_module)
29499 (read_conf_file, __gconv_get_path): Likewise.
29500 * iconv/gconv_db.c (derivation_lookup, add_derivation)
29501 (__gconv_release_step, gen_steps, increment_counter)
29502 (find_derivation, __gconv_compare_alias, __gconv_find_transform)
29503 (__gconv_close_transform, free_modules_db): Likewise.
29504 * iconv/gconv_dl.c (__gconv_find_shlib, __gconv_release_shlib):
29505 Likewise.
29506 * iconv/gconv_int.h (__gconv_open, __gconv_close, __gconv)
29507 (__gconv_find_transform, __gconv_lookup_cache)
29508 (__gconv_release_step, __gconv_load_cache, __gconv_get_path)
29509 (__gconv_close_transform, __gconv_release_cache)
29510 (__gconv_loaded_object, __gconv_release_shlib)
29511 (__gconv_compare_alias): Likewise.
29512 * iconv/gconv_open.c (__gconv_open): Likewise.
29513 * iconv/iconv_prog.c (print_known_names, add_known_names): Likewise.
29514 * iconv/iconvconfig.c (add_module): Likewise.
29515 * intl/dcigettext.c (plural_lookup, guess_category_value)
29516 (category_to_name, get_output_charset, _nl_find_msg): Likewise.
29517 * intl/eval-plural.h (plural_eval): Likewise.
29518 * intl/finddomain.c (_nl_find_domain): Likewise.
29519 * intl/gettextP.h (_nl_unload_domain, _nl_find_domain)
29520 (_nl_load_domain, _nl_find_msg): Likewise.
29521 (internal_function): Remove definition.
29522 * intl/loadinfo.h (internal_function): Likewise.
29523 * intl/loadmsgcat.c (_nl_load_domain, _nl_unload_domain): Remove
29524 internal_function.
29525 * intl/localealias.c (internal_function): Remove definition.
29526 (read_alias_file): Remove internal_function.
29527 * intl/plural-exp.c (EXTRACT_PLURAL_EXPRESSION): Likewise.
29528 * intl/plural-exp.h (internal_function): Remove definition.
29529 (FREE_EXPRESSION, EXTRACT_PLURAL_EXPRESSION): Remove
29530 internal_function.
29531 * intl/plural.c: Regenerate.
29532 * intl/plural.y (FREE_EXPRESSION): Remove internal_function.
29533 * locale/coll-lookup.c (__collidx_table_lookup)
29534 (__collseq_table_lookup): Likewise.
29535 * locale/coll-lookup.h (__collidx_table_lookup)
29536 (__collseq_table_lookup): Likewise.
29537 * locale/findlocale.c (_nl_find_locale, _nl_remove_locale): Likewise.
29538 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
29539 * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale)
29540 (_nl_unload_locale): Likewise.
29541 * locale/localeinfo.h (struct __locale_data): Remove
29542 internal_function from cleanup member.
29543 (_nl_find_locale, _nl_load_locale, _nl_unload_locale)
29544 (_nl_remove_locale, _nl_load_locale_from_archive)
29545 (_nl_intern_locale_data, _nl_get_era_entry, _nl_select_era_entry)
29546 (_nl_get_alt_digit, _nl_get_walt_digit, _nl_parse_alt_digit)
29547 (_nl_cleanup_time): Remove internal_function.
29548 * time/alt_digit.c (_nl_get_alt_digit, _nl_get_walt_digit)
29549 (_nl_parse_alt_digit): Likewise.
29550 * time/era.c (_nl_init_era_entries, _nl_get_era_entry)
29551 (_nl_select_era_entry): Likewise.
29552 * time/lc-time-cleanup.c (_nl_cleanup_time): Likewise.
29553 * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29554 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29555 * wcsmbs/wcsmbsload.h (__wcsmbs_load_conv, __wcsmbs_clone_conv)
29556 (__wcsmbs_named_conv, _nl_cleanup_ctype): Likewise.
29557
29558 2017-08-31 Florian Weimer <fweimer@redhat.com>
29559
29560 * rt/aio_sigqueue.c (__aio_sigqueue): Remove internal_function.
29561 * sysdeps/generic/aio_misc.h (__aio_sigqueue): Likewise.
29562 * sysdeps/pthread/aio_misc.c (__aio_free_request, __aio_find_req)
29563 (__aio_find_req_fd, __aio_remove_request, __aio_enqueue_request):
29564 Likewise.
29565 * sysdeps/pthread/aio_misc.h (__aio_enqueue_request)
29566 (__aio_find_req, __aio_find_req_fd, __aio_free_request)
29567 (__aio_notify, __aio_notify_only, __aio_sigqueue): Likewise.
29568 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
29569 Likewise.
29570 * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Likewise.
29571
29572 2017-08-31 Florian Weimer <fweimer@redhat.com>
29573
29574 * misc/getttyent.c (skip, value): Remove internal_function.
29575 * misc/syslog.c (openlog_internal): Likewise.
29576 * misc/tsearch.c (trecurse, tdestroy_recurse): Likewise.
29577
29578 2017-08-31 Florian Weimer <fweimer@redhat.com>
29579
29580 * include/nss.h (__nss_valid_field, __nss_valid_list_field)
29581 (__nss_rewrite_field): Remove internal_function.
29582 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
29583 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
29584 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
29585 * nss/nsswitch.c (nss_parse_file, nss_getline)
29586 (nss_parse_service_list, nss_new_service): Likewise.
29587 * nss/rewrite_field.c (__nss_rewrite_field): Likewise.
29588 * nss/valid_field.c (__nss_valid_field): Likewise.
29589 * nss/valid_list_field.c (__nss_valid_list_field): Likewise.
29590
29591 2017-08-31 Florian Weimer <fweimer@redhat.com>
29592
29593 * malloc/arena.c (__malloc_fork_lock_parent)
29594 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child)
29595 (next_env_entry, new_heap, heap_trim, arena_get2): Remove
29596 internal_function from defintions.
29597 * malloc/hooks.c (mem2mem_check, mem2chunk_check): Likewise.
29598 * malloc/malloc-internal.h (__malloc_fork_lock_parent)
29599 (__malloc_fork_unlock_parent, __malloc_fork_unlock_child): Remove
29600 internal_function from declarations.
29601 * malloc/malloc.c (internal_function): Do not define.
29602 (mem2mem_check): Remove internal_function from declaration.
29603 (munmap_chunk, mremap_chunk): Remove internal_function.
29604 * malloc/mtrace.c (tr_where): Likewise.
29605
29606 2017-08-31 Florian Weimer <fweimer@redhat.com>
29607
29608 * include/rpc/pmap_clnt.h (__get_socket): Remove
29609 internal_function.
29610 * sunrpc/auth_des.c (synchronize): Likewise.
29611 * sunrpc/auth_unix.c (marshal_new_auth): Likewise.
29612 * sunrpc/clnt_perr.c (auth_errmsg): Likewise.
29613 * sunrpc/des_impl.c (des_encrypt, des_set_key): Likewise.
29614 * sunrpc/key_call.c (key_call_keyenvoy, key_call_socket)
29615 (key_call): Likewise.
29616 * sunrpc/pm_getport.c (__get_socket): Likewise.
29617 * sunrpc/pmap_rmt.c (getbroadcastnets): Likewise.
29618 * sunrpc/svc_unix.c (makefd_xprt): Likewise.
29619 * sunrpc/svc_tcp.c (makefd_xprt): Likewise.
29620 * sunrpc/svcauth_des.c (cache_init, cache_spot, cache_ref)
29621 (invalidate): Likewise.
29622 * sunrpc/xcrypt.c (hexval, hex2bin, bin2hex): Likewise.
29623 * sunrpc/xdr_rec.c (fix_buf_size, skip_input_bytes, flush_out)
29624 (set_input_fragment, get_input_bytes): Likewise.
29625
29626 2017-08-31 Florian Weimer <fweimer@redhat.com>
29627
29628 * malloc/malloc.c (_int_free): Remove locked variable and related
29629 asserts.
29630
29631 2017-08-31 H.J. Lu <hongjiu.lu@intel.com>
29632
29633 [BZ #22051]
29634 * Makerules (build-module-helper-objlist): Filter out
29635 $(elf-objpfx)sofini.os.
29636 (build-shlib-objlist): Append $(elf-objpfx)sofini.os if it is
29637 needed.
29638
29639 2017-08-31 Florian Weimer <fweimer@redhat.com>
29640
29641 * libio/fcloseall.c: Assume weak_alias is defined.
29642 * libio/feof.c: Likewise.
29643 * libio/fileno.c: Likewise.
29644 * libio/fileops.c: Assume _LIBC, errno, __set_errno are defined.
29645 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29646 definitions.
29647 (_IO_file_open): Call __open directly.
29648 (_IO_new_file_sync): Assume ESPIPE is defined.
29649 (_IO_file_seekoff_maybe_mmap): Call __read directly.
29650 (_IO_new_file_write): Call __write directly.
29651 * libio/ftello.c (__ftello): Assume EIO, EOVERFLOW are defined.
29652 * libio/ftello64.c (__ftello64): Assume EIO is defined.
29653 * libio/genops.c: Assume _LIBC is defined.
29654 (save_for_backup): Remove internal_function.
29655 * libio/getc.c: Assume weak_alias is defined.
29656 * libio/getwc.c: Likewise.
29657 * libio/iofclose.c: Assume _LIBC is defined.
29658 * libio/iofdopen.c: Likewise.
29659 (_IO_fcntl): Remove macro definition.
29660 (_IO_new_fdopen): Assume F_GETFL, F_SETFL, O_ACCMODE are defined.
29661 Call __fcntl directly.
29662 * libio/iofflush.c: Assume weak_alias is defined.
29663 * libio/iofgetpos.c (_IO_new_fgetpos): Assume EIO, EOVERFLOW are
29664 defined.
29665 * libio/iofgetpos64.c (_IO_new_fgetpos64): Assume EIO is defined.
29666 * libio/iofgets.c: Likewise.
29667 * libio/iofopen.c: Assume _LIBC is defined.
29668 * libio/iofopen64.c: Assume _LIBC, weak_alias are defined.
29669 * libio/iofputs.c: Assume weak_alias is defined.
29670 * libio/iofread.c: Likewise.
29671 * libio/iofsetpos.c (_IO_new_fsetpos): Assume EIO is defined.
29672 * libio/iofsetpos64.c (_IO_new_fsetpos64): Likewise.
29673 * libio/ioftell.c: Assume weak_alias is defined.
29674 (_IO_ftell): Assume EIO, EOVERFLOW are defined.
29675 * libio/iofwide.c: Assume _LIBC is defined.
29676 (_IO_fwide): Drop SHARED conditional because it is implied by
29677 SHLIB_COMPAT.
29678 * libio/iofwrite.c: Assume weak_alias is defined.
29679 * libio/iogetdelim.c: Likewise.
29680 * libio/iogets.c: Assume _LIBC, weak_alias are defined.
29681 * libio/iogetwline.c (wmemcpy): Remove macro definition.
29682 (_IO_getwline): Call __wmemcpy directly.
29683 * libio/iopopen.c: Assume _LIBC is defined.
29684 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29685 (_IO_close): Remove macro definitions.
29686 (_IO_new_proc_open): Call __fork, __dup2, __close_nocancel, execl,
29687 _exit directly.
29688 (_IO_new_proc_close): Call __close_nocancel, __waitpid_nocancel
29689 directly.
29690 * libio/ioputs.c: Assume weak_alias is defined.
29691 * libio/ioseekoff.c: Assume errno, __set_errno are defined.
29692 * libio/iosetbuffer.c: Assume weak_alias is defined.
29693 * libio/iosetvbuf.c: Likewise.
29694 * libio/ioungetc.c: Likewise.
29695 * libio/libioP.h: Assume _LIBC, __GLIBC__, libc_hidden_proto,
29696 libc_hidden_def, libc_hidden_weak, NULL are defined.
29697 (mmap, munmap, ftruncate, OS_FSTAT): Remove macro definitions.
29698 * libio/oldfilepos.c: Assume _LIBC, errno, __set_errno are
29699 defined.
29700 (_POSIX_SOURCE, open, lseek, read, write): Remove macro
29701 definitions.
29702 (_IO_old_file_init_internal): Drop SHARED conditional because it
29703 is implied by SHLIB_COMPAT.
29704 (_IO_old_file_fopen): Call __open directly.
29705 (_IO_old_file_sync): Assume ESPIPE is defined.
29706 (_IO_old_file_write): Call __write directly.
29707 * libio/oldfdopen.c (_IO_fcntl): Remove macro definition.
29708 (_IO_old_fdopen): Assume F_GETFL, O_ACCMODE, F_SETFL are defined.
29709 Call __fcntl directly.
29710 * libio/oldiofgetpos.c: Assume weak_alias is defined.
29711 (_IO_old_fgetpos): Assume EIO is defined.
29712 * libio/oldiofgetpos64.c: Assume weak_alias is defined.
29713 (_IO_old_fgetpos64): Assume EIO is defined.
29714 * libio/oldiofsetpos.c: Assume weak_alias is defined.
29715 (_IO_old_fsetpos): Assume EIO is defined.
29716 * libio/oldiofsetpos64.c: Assume weak_alias is defined.
29717 (_IO_old_fsetpos64): Assume EIO is defined.
29718 * libio/oldiopopen.c: Assume _LIBC is defined.
29719 (_POSIX_SOURCE, _IO_fork, _IO_dup2, _IO_waitpid, _IO_execl)
29720 (_IO_close): Remove macro definitions.
29721 (_IO_old_proc_open): Call __pipe, __close, __dup2, execl, _exit
29722 directly.
29723 (_IO_old_proc_close): Call __close, __waitpid directly.
29724 * libio/put.c: Assume weak_alias is defined.
29725 * libio/stdfiles.c: Assume _LIBC is defined.
29726 * libio/stdio.c: Likewise.
29727 * libio/wfileops.c: Likewise.
29728 (_IO_wfile_sync): Assume ESPIPE is defined.
29729 * libio/wgenops.c: Assume _LIBC is defined.
29730 (save_for_wbackup): Remove internal_function.
29731
29732 2017-08-31 Florian Weimer <fweimer@redhat.com>
29733
29734 * malloc/malloc.c (top_check): Change return type to void. Remove
29735 internal_function.
29736 * malloc/hooks.c (top_check): Likewise.
29737 (malloc_check, realloc_check, memalign_check): Adjust.
29738
29739 2017-08-30 Joseph Myers <joseph@codesourcery.com>
29740
29741 [BZ #21457]
29742 * sysdeps/arm/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29743 * sysdeps/generic/sys/ucontext.h: Add comment about use of struct
29744 sigcontext and namespace requirements.
29745 * sysdeps/i386/sys/ucontext.h: Do not include <bits/sigcontext.h>.
29746 * sysdeps/m68k/sys/ucontext.h: Likewise.
29747 * sysdeps/mips/sys/ucontext.h: Likewise. Include <bits/types.h>.
29748 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h: Do not include
29749 <bits/sigcontext.h>.
29750 (__ctx): Define earlier.
29751 (mcontext_t): Define structure contents rather than using struct
29752 sigcontext.
29753 * sysdeps/unix/sysv/linux/aarch64/ucontext_i.sym (oEXTENSION): Use
29754 __glibc_reserved1 instead of __reserved.
29755 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h: Do not include
29756 <bits/sigcontext.h>.
29757 (__ctx): Define earlier.
29758 (mcontext_t): Define structure contents rather than using struct
29759 sigcontext.
29760 * sysdeps/unix/sysv/linux/alpha/ucontext-offsets.sym: Use
29761 mcontext_t instead of struct sigcontext.
29762 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h: Do not include
29763 <bits/sigcontext.h>.
29764 (__ctx): Define earlier.
29765 (mcontext_t): Define structure contents rather than using struct
29766 sigcontext.
29767 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h: Do not include
29768 <bits/sigcontext.h>.
29769 (__ctx): Define earlier.
29770 (mcontext_t): Define structure contents rather than using struct
29771 sigcontext.
29772 * sysdeps/unix/sysv/linux/ia64/makecontext.c (__makecontext): Use
29773 mcontext_t instead of struct sigcontext.
29774 * sysdeps/unix/sysv/linux/ia64/sigcontext-offsets.sym: Use
29775 mcontext_t instead of struct sigcontext.
29776 * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Do not include
29777 <bits/sigcontext.h>.
29778 (__ctx): New macro.
29779 (struct __ia64_fpreg_mcontext): New type.
29780 (mcontext_t): Define structure contents rather than using struct
29781 sigcontext.
29782 (_SC_GR0_OFFSET): Use mcontext_t instead of struct sigcontext.
29783 (uc_sigmask): Define using __ctx.
29784 (uc_stack): Likewise.
29785 * sysdeps/unix/sysv/linux/ia64/sys/procfs.h: Include
29786 <bits/sigcontext.h>.
29787 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29788 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h: Do not include
29789 <bits/sigcontext.h>.
29790 * sysdeps/unix/sysv/linux/microblaze/sys/ucontext.h: New file.
29791 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h: Do not include
29792 <bits/sigcontext.h>.
29793 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h: Do not include
29794 <bits/sigcontext.h>.
29795 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Do not include
29796 <bits/sigcontext.h>.
29797 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Do not include
29798 <bits/sigcontext.h>.
29799 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Do not include
29800 <bits/sigcontext.h>.
29801 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h: Do not include
29802 <bits/sigcontext.h>.
29803 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h: Do not include
29804 <bits/sigcontext.h>.
29805 (__ctx): Define earlier.
29806 (mcontext_t): Define structure contents rather than using struct
29807 sigcontext.
29808 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: Do not include
29809 <bits/sigcontext.h>. Include <bits/types.h>.
29810 * conform/Makefile (test-xfail-XPG42/signal.h/conform): Remove.
29811 (test-xfail-XPG42/sys/wait.h/conform): Likewise.
29812 (test-xfail-XPG42/ucontext.h/conform): Likewise.
29813 (test-xfail-UNIX98/signal.h/conform): Likewise.
29814 (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
29815 (test-xfail-UNIX98/ucontext.h/conform): Likewise.
29816 (test-xfail-XOPEN2K/signal.h/conform): Likewise.
29817 (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
29818 (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
29819 (test-xfail-POSIX2008/signal.h/conform): Likewise.
29820 (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
29821 (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
29822 (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
29823
29824 2017-08-30 Florian Weimer <fweimer@redhat.com>
29825
29826 * malloc/dynarray_emplace_enlarge.c
29827 (__libc_dynarray_emplace_enlarge): Set errno on overflow.
29828 * malloc/dynarray_resize.c (__libc_dynarray_resize): Likewise.
29829 * malloc/tst-dynarray.c (test_long_overflow): New function.
29830 (do_test): Call it.
29831
29832 2017-08-30 Florian Weimer <fweimer@redhat.com>
29833
29834 * malloc/malloc.c (ARENA_CORRUPTION_BIT, arena_is_corrupt)
29835 (set_arena_corrupt): Remove definitions.
29836 (mtrim): Do not check for corrupt arena.
29837 * malloc/arena.c (arena_lock, reused_arena, arena_get_retry):
29838 Likewise.
29839
29840 2017-08-30 Florian Weimer <fweimer@redhat.com>
29841
29842 [BZ #21754]
29843 * malloc/arena.c (TUNABLE_CALLBACK set_mallopt_check): Do not set
29844 check_action.
29845 (ptmalloc_init): Do not set or use check_action.
29846 * malloc/hooks.c (malloc_check_get_size, realloc_check): Adjust
29847 call to malloc_printerr. Remove return statement.
29848 (free_check): Likewise. Remove arena unlock.
29849 (top_check): Update comment. Adjust call to malloc_printerr.
29850 Remove heap repair code.
29851 * malloc/malloc.c (unlink): Adjust calls to malloc_printerr.
29852 (DEFAULT_CHECK_ACTION, check_action): Remove definitions.
29853 (sysmalloc): Adjust call to malloc_printerr.
29854 (munmap_chunk, __libc_realloc): Likewise. Remove return
29855 statement.
29856 (_int_malloc, int_realloc): Likewise. Remove errstr variable.
29857 Remove errout label and corresponding gotos.
29858 (_int_free): Likewise. Remove arena unlock.
29859 (do_set_mallopt_check): Do not set check_action.
29860 (malloc_printerr): Adjust parameter list. Do not mark arena as
29861 corrupt.
29862 * manual/memory.texi (Malloc Tunable Parameters): Remove TODO
29863 comment.
29864 * manual/probes.texi (Memory Allocation Probes): Remove
29865 memory_mallopt_check_action.
29866
29867 2017-08-30 Steve Ellcey <sellcey@cavium.com>
29868
29869 * sysdeps/unix/sysv/linux/aarch64/makecontext.c (__makecontext):
29870 Use pointer to uint64_t instead of long int for sp.
29871
29872 2017-08-30 Florian Weimer <fweimer@redhat.com>
29873
29874 [BZ #21754]
29875 * malloc/malloc.c (malloc_printerr): Always terminate the process,
29876 without printing a backtrace. Do not leak any information in the
29877 error message.
29878 * manual/memory.texi (Heap Consistency Checking): Update.
29879 * manual/tunables.texi (Memory Allocation Tunables): Likewise.
29880
29881 2017-08-30 Florian Weimer <fweimer@redhat.com>
29882
29883 Do not scale NPTL tests with available number of CPUs.
29884 * nptl/tst-cond16.c (count): Set to constant value of 8.
29885 * nptl/tst-cond18.c (count): Likewise.
29886
29887 2017-08-29 Joseph Myers <joseph@codesourcery.com>
29888
29889 [BZ #22035]
29890 * sysdeps/m68k/m680x0/fpu/bits/mathinline.h (__inline_functions):
29891 Define to take a second argument that is a macro that
29892 concatentates a suffix, not the suffix itself.
29893 (__CONCAT_d): New macro.
29894 (__CONCAT_f): Likewise.
29895 (__CONCAT_l): Likewise.
29896
29897 2017-08-29 Paul Pluzhnikov <ppluzhnikov@google.com>
29898
29899 * stdlib/tst-atexit-common.c (do_test): Test handler inheritance
29900 by child.
29901
29902 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29903 Aurelien Jarno <aurelien@aurel32.net>
29904 Maciej W. Rozycki <macro@imgtec.com>
29905
29906 [BZ #21956]
29907 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Makefile
29908 [subdir = misc] (sysdep_routines): Remove `mips16-syscall5',
29909 `mips16-syscall6' and `mips16-syscall7'.
29910 (CFLAGS-mips16-syscall5.c, CFLAGS-mips16-syscall6.c)
29911 (CFLAGS-mips16-syscall7.c): Remove.
29912 * sysdeps/unix/sysv/linux/mips/mips32/mips16/Versions (libc):
29913 Remove `__mips16_syscall5', `__mips16_syscall6' and
29914 `__mips16_syscall7'.
29915 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall0.c
29916 (__mips16_syscall0): Rename `__mips16_syscall_return' to
29917 `__mips_syscall_return'.
29918 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall1.c
29919 (__mips16_syscall1): Likewise.
29920 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall2.c
29921 (__mips16_syscall2): Likewise.
29922 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall3.c
29923 (__mips16_syscall3): Likewise.
29924 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall4.c
29925 (__mips16_syscall4): Likewise.
29926 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall5.c:
29927 Remove.
29928 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall6.c:
29929 Remove.
29930 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall7.c:
29931 Remove.
29932 * sysdeps/unix/sysv/linux/mips/mips32/mips16/mips16-syscall.h
29933 (__mips16_syscall5): Expand to `__mips_syscall5' rather than
29934 `__mips16_syscall5'. Remove prototype.
29935 (__mips16_syscall6): Expand to `__mips_syscall6' rather than
29936 `__mips16_syscall6'. Remove prototype.
29937 (__mips16_syscall7): Expand to `__mips_syscall7' rather than
29938 `__mips16_syscall7'. Remove prototype.
29939 (__nomips16, __mips16_syscall_return): Move to...
29940 * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
29941 (__nomips16, __mips_syscall_return): ... here.
29942 [__mips16] (INTERNAL_SYSCALL_NCS): Rename
29943 `__mips16_syscall_return' to `__mips_syscall_return'.
29944 [__mips16] (INTERNAL_SYSCALL_MIPS16): Pass `number' to
29945 `internal_syscall##nr'.
29946 [!__mips16] (INTERNAL_SYSCALL): Pass `SYS_ify (name)' to
29947 `internal_syscall##nr'.
29948 (FORCE_FRAME_POINTER): Remove.
29949 (__mips_syscall5): New prototype.
29950 (internal_syscall5): Rewrite to call `__mips_syscall5'.
29951 (__mips_syscall6): New prototype.
29952 (internal_syscall6): Rewrite to call `__mips_syscall6'.
29953 (__mips_syscall7): New prototype.
29954 (internal_syscall7): Rewrite to call `__mips_syscall7'.
29955 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall5.S: New file.
29956 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall6.S: New file.
29957 * sysdeps/unix/sysv/linux/mips/mips32/mips-syscall7.S: New file.
29958 * sysdeps/unix/sysv/linux/mips/mips32/Makefile [subdir = misc]
29959 (sysdep_routines): Add libc-do-syscall.
29960 * sysdeps/unix/sysv/linux/mips/mips32/Versions (libc): Add
29961 `__mips_syscall5', `__mips_syscall6' and `__mips_syscall7'.
29962
29963 2017-08-29 Adhemerval Zanella <adhemerval.zanella@linaro.org>
29964
29965 [BZ #21672]
29966 * nptl/allocatestack.c [_STACK_GROWS_DOWN] (setup_stack_prot):
29967 Set to use !NEED_SEPARATE_REGISTER_STACK as well.
29968 (advise_stack_range): New function.
29969 * nptl/pthread_create.c (START_THREAD_DEFN): Move logic to mark
29970 stack non required to advise_stack_range at allocatestack.c
29971
29972 2017-08-29 Szabolcs Nagy <szabolcs.nagy@arm.com>
29973
29974 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Use __uint64_t.
29975
29976 2017-08-29 Florian Weimer <fweimer@redhat.com>
29977
29978 [BZ #22026]
29979 * iconv/gconv_db.c (gen_steps): Decrement step_cnt after resetting
29980 __end_fct. Mangle __end_fct after setting it to NULL.
29981 * iconv/Makefile (tests): Add tst-gconv-init-failure.
29982 (modules-names, modules-names-tests): Add
29983 tst-gconv-init-failure-mod.
29984 (gconv-modules): New target.
29985 (tst-gconv-init-failure-mod.so): Link against libsupport.
29986 (tst-gconv-init-failure): Depend on gconv-modules,
29987 tst-gconv-init-failure-mod.so.
29988 * iconv/tst-gconv-init-failure-mod.c: New file.
29989 * iconv/tst-gconv-init-failure.c: Likewise.
29990 * iconv/test-gconv-modules: Likewise.
29991
29992 2017-08-29 Florian Weimer <fweimer@redhat.com>
29993
29994 [BZ #22025]
29995 * iconv/gconv_db.c (free_derivation): Remove redundant
29996 parentheses.
29997 (gen_steps): Unconditionally mangle __btowc_fct after
29998 initialization.
29999 (increment_counter): Likewise. Do not call init_fct for internal
30000 modules.
30001
30002 2017-08-29 Joseph Myers <joseph@codesourcery.com>
30003
30004 [BZ #22028]
30005 * math/math.h [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30006 (_MSUF_): Remove macro.
30007 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (_MSUFTO_):
30008 Likewise.
30009 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0]
30010 (__REDIRFROM_X): New macro.
30011 [__FINITE_MATH_ONLY__ && __FINITE_MATH_ONLY__ > 0] (__REDIRTO_X):
30012 Likewise.
30013 * math/bits/math-finite.h (__REDIRFROM_X): Remove macro.
30014 (__REDIRTO_X): Likewise.
30015 (__MATH_REDIRCALL): Do not pass _MSUF_ or _MSUFTO_ macro
30016 arguments.
30017 (__MATH_REDIRCALL_2): Likewise.
30018 (__MATH_REDIRCALL_INTERNAL): Likewise.
30019 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30020 (__REDIRFROM (gamma, , _MSUF_)): Likweise.
30021 (__REDIRFROM (__gamma, _r_finite, _MSUF_)): Likewise.
30022 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30023 * math/test-finite-macros.c: New file.
30024 * math/Makefile (tests): Add test-finite-macros.
30025 (CFLAGS-test-finite-macros.c): New variable.
30026
30027 2017-08-29 Patsy Franklin <pfrankli@redhat.com>
30028 Jeff Law <law@redhat.com>
30029
30030 [BZ #22025]
30031 Mangle NULL pointers in iconv/gconv.
30032 * iconv/gconv_cache.c (find_module): Demangle init_fct before
30033 checking for NULL. Mangle __btowc_fct if init_fct is non-NULL.
30034 * iconv/gconv_db.c (free_derivation): Check that __shlib_handle
30035 is non-NULL before demangling the end_fct. Check for NULL
30036 end_fct after demangling.
30037 (__gconv_release_step): Demangle the end_fct before checking
30038 it for NULL. Remove assert on __shlibc_handle != NULL.
30039 (gen_steps): Don't check btowc_fct for NULL before mangling.
30040 Demangle init_fct before checking for NULL.
30041 (increment_counter): Likewise.
30042 * gconv_dl.c (__gconv_find_shlib): Don't check init_fct or
30043 end_fct for NULL before mangling.
30044 * wcsmbs/btowc.c (__btowc): Demangle btowc_fct before checking
30045 for NULL.
30046
30047 2017-08-29 Akhilesh Kumar <akhilesh.k@samsung.com>
30048
30049 [BZ #21971]
30050 * locale/iso-639.def: add Morisyen.
30051
30052 2017-08-28 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30053
30054 [BZ #21930]
30055 * math/math.h [defined __cplusplus && defined __SUPPORT_SNAN__]
30056 (iszero): New C++ implementation that does not use
30057 fpclassify/__MATH_TG/__builtin_types_compatible_p, when
30058 signaling nans are enabled, since __builtin_types_compatible_p
30059 is a C-only feature.
30060 * math/test-math-iszero.cc: When __HAVE_DISTINCT_FLOAT128 is
30061 defined, include ieee754_float128.h for access to the union and
30062 member ieee854_float128.ieee.
30063 [__HAVE_DISTINCT_FLOAT128] (do_test): Call check_float128.
30064 [__HAVE_DISTINCT_FLOAT128] (check_float128): New function.
30065 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30066 (CXXFLAGS-test-math-iszero.cc): Add -mfloat128 to the build
30067 options of test-math-zero on powerpc64le.
30068
30069 2017-08-28 H.J. Lu <hongjiu.lu@intel.com>
30070
30071 * sysdeps/x86_64/fpu/multiarch/e_expf.c (__redirect_ieee754_expf):
30072 Change double to float.
30073
30074 2017-08-28 Joseph Myers <joseph@codesourcery.com>
30075
30076 * math/math-svid-compat.h [!__ASSEMBLER__]: Make code
30077 unconditional.
30078 * sysdeps/ieee754/s_lib_version.c [!defined SHARED]: Remove
30079 conditional code; define contents only for [LIBM_SVID_COMPAT].
30080
30081 2017-08-28 Florian Weimer <fweimer@redhat.com>
30082
30083 * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-options)
30084 (abi-lp64_be-options): Remove.
30085 * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-options)
30086 (abi-hard-options): Likewise.
30087 * sysdeps/unix/sysv/linux/mips/Makefile(abi-o32_soft-options)
30088 (abi-o32_hard-options, abi-o32_soft_2008-options)
30089 (abi-o32_hard_2008-options, abi-n32_soft-options)
30090 (abi-n32_hard-options, abi-n32_soft_2008-options)
30091 (abi-n32_hard_2008-options, abi-n64_soft-options)
30092 (abi-n64_hard-options, abi-n64_soft_2008-options)
30093 (abi-n64_hard_2008-options): Likewise.
30094 * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-32-options)
30095 (abi-64-v1-options, abi-64-v2-options): Likewise.
30096 * sysdeps/unix/sysv/linux/s390/Makefile (abi-32-options)
30097 (abi-64-options): Likewise.
30098 * sysdeps/unix/sysv/linux/sparc/Makefile (abi-32-options)
30099 (abi-64-options): Likewise.
30100 * sysdeps/unix/sysv/linux/tile/tilegx/Makefile (abi-32-options)
30101 (abi-64-options): Likewise.
30102 * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-options)
30103 (abi-64-options, abi-x32-options): Likewise.
30104
30105 2017-08-28 Florian Weimer <fweimer@redhat.com>
30106
30107 Store supported list of SYS_* system calls in the source tree.
30108 * sysdeps/unix/sysv/linux/Makefile [$(subdir) = misc]
30109 (bits/syscall.h): Generate from list file.
30110 [$(subdir) = misc] (before-compile): Add bits/syscall.h.
30111 [$(subdir) = misc] (tests): Add tst-syscall-list.
30112 [$(subdir) = misc] (tests-special): Add tst-syscall-list.out
30113 [$(subdir) = misc] (tst-syscall-list-macros.list)
30114 [$(subdir) = misc] (tst-syscall-list-nr.list)
30115 (tst-syscall-list-sys.list): Helper targets for new
30116 tst-syscall-list test.
30117 [$(subdir) = misc] (tst-syscall-list.out): Run test script
30118 tst-syscall-list.sh.
30119 [$(subdir) = misc] (bits/syscall%h, bits/syscall%d): Remove
30120 target. Do not include bits/syscall.d.
30121 [$(subdir) = misc] (generated): Do not update.
30122 * sysdeps/unix/sysv/linux/syscall-names.list: New file.
30123 * sysdeps/unix/sysv/linux/gen-syscall-h.awk: Likewise.
30124 * sysdeps/unix/sysv/linux/filter-nr-syscalls.awk: Likewise.
30125 * sysdeps/unix/sysv/linux/tst-syscall-list.sh: Likewise.
30126
30127 2017-08-27 Paul Pluzhnikov <ppluzhnikov@google.com>
30128
30129 * stdlib/Makefile (tst-atexit, tst-at_quick_exit): New tests.
30130 (tst-cxa_atexit, tst-on_exit): Likewise.
30131 * stdlib/Makefile (tests): Add tst-atexit, tst-at_quick_exit,
30132 tst-cxa_atexit, and tst-on_exit.
30133 * stdlib/tst-atexit-common.c: New file.
30134 * stdlib/tst-atexit.c: New file.
30135 * stdlib/tst-at_quick_exit.c: New file.
30136 * stdlib/tst-cxa_atexit.c: New file.
30137 * stdlib/tst-on_exit.c: New file.
30138
30139 2017-08-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
30140
30141 * sysdeps/mach/hurd/bits/sysmacros.h: New file.
30142 * mach/stack_chk_fail_local.c: New file.
30143 * hurd/stack_chk_fail_local.c: New file.
30144 * mach/Machrules ($(interface-library)-routines): Add
30145 stack_chk_fail_local.
30146 * mach/Makefile (CFLAGS-mach_init.o, CFLAGS-RPC_vm_statistics.o,
30147 CFLAGS-RPC_vm_map.o, CFLAGS-RPC_vm_protect.o,
30148 CFLAGS-RPC_i386_set_gdt.o, CFLAGS-RPC_i386_set_ldt.o,
30149 CFLAGS-RPC_task_get_special_port.o): Add $(no-stack-protector).
30150 * hurd/Makefile (CFLAGS-hurdstartup.o,
30151 CFLAGS-RPC_exec_startup_get_info.o): Add $(no-stack-protector).
30152
30153 2017-08-25 H.J. Lu <hongjiu.lu@intel.com>
30154
30155 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
30156 (index_cpu_*, index_arch_*): Removed.
30157
30158 2017-08-25 Szabolcs Nagy <szabolcs.nagy@arm.com>
30159
30160 * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h (elf_greg_t):
30161 Use uint64_t instead of unsigned long.
30162
30163 2017-08-25 Joseph Myers <joseph@codesourcery.com>
30164
30165 * math/tgmath.h [__HAVE_FLOAT128]: Change conditional to
30166 [__HAVE_DISTINCT_FLOAT128].
30167
30168 * math/math.h (_MSUFTO_): Define and undefine for each inclusion
30169 of <bits/math-finite.h>.
30170 (__MATH_DECLARING_LDOUBLE): Do not define and undefine for each
30171 inclusion of <bits/math-finite.h>.
30172 * math/bits/math-finite.h (__REDIRTO_X): Do not define
30173 conditionally on [__MATH_DECLARING_LDOUBLE && defined
30174 __NO_LONG_DOUBLE_MATH].
30175 (__MATH_REDIRCALL): Use _MSUFTO_ in __REDIRTO call.
30176 (__MATH_REDIRCALL_2): Likewise.
30177 (__MATH_REDIRCALL_INTERNAL): Likewise.
30178 (__REDIRFROM (lgamma, , _MSUF_)): Likewise.
30179 (__REDIRFROM (gamma, , _MSUF_)): Likewise.
30180 (__REDIRFROM (tgamma, , _MSUF_)): Likewise.
30181
30182 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-power5.S:
30183 Remove file.
30184 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat-ppc32.S:
30185 Likewise.
30186 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt_compat.c:
30187 Likewise.
30188 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-power5.S:
30189 Likewise.
30190 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat-ppc32.S:
30191 Likewise.
30192 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf_compat.c:
30193 Likewise.
30194 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30195 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30196 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30197 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30198 * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile
30199 (libm-sysdep-routines): Remove w_sqrt_compat-power5,
30200 w_sqrt_compat-ppc32, w_sqrtf_compat-power5 and
30201 w_sqrtf_compat-ppc32.
30202
30203 2017-08-24 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30204
30205 * math/math.h [defined __cplusplus] (issignaling): In the long
30206 double case, call __issignalingl only if __NO_LONG_DOUBLE_MATH
30207 is not defined. Call __issignaling, otherwise.
30208
30209 2017-08-24 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30210
30211 * sysdeps/unix/make-syscalls.sh: Remove cancellable tagging for
30212 syscall definitions and replace __builtin_expect with __glibc_likely.
30213 * sysdeps/unix/syscall-template.S: Update comment about cancellable
30214 syscall.
30215 (SYSCALL_CANCELLABLE): Removedefinition
30216 * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h (PSEUDO): Remove
30217 definition.
30218 (PSEUDO_END): Likewise.
30219 [IS_IN (libpthread)] (CENABLE): Likewise.
30220 [IS_IN (libpthread)] (CDISABLE): Likewise.
30221 [IS_IN (libc)] (CENABLE): Likewise.
30222 [IS_IN (libc)] (CENABLE): Likewise.
30223 [IS_IN (librt)] (CDISABLE): Likewise.
30224 [IS_IN (librt)] (CDISABLE): Likewise.
30225 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30226 * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h (PSEUDO): Remove
30227 definition.
30228 (PSEUDO_END): Likewise.
30229 [IS_IN (libpthread)] (__local_enable_asynccancel): Likewise.
30230 [IS_IN (libpthread)] (__local_disable_asynccancel): Likewise.
30231 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30232 [IS_IN (libc)] (__local_enable_asynccancel): Likewise.
30233 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30234 [IS_IN (librt)] (__local_disable_asynccancel): Likewise.
30235 (CENABLE): Likewise.
30236 (CDISABLE): Likewise.
30237 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30238 * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h (PSEUDO): Remove
30239 defintion.
30240 (PSEUDO_END): Likewise.
30241 [IS_IN (libpthread)] (CENABLE): Likewise.
30242 [IS_IN (libpthread)] (CDISABLE): Likewise.
30243 [IS_IN (libc)] (CENABLE): Likewise.
30244 [IS_IN (libc)] (CENABLE): Likewise.
30245 [IS_IN (librt)] (CDISABLE): Likewise.
30246 [IS_IN (librt)] (CDISABLE): Likewise.
30247 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30248 * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h (PSEUDO): Remove
30249 definition.
30250 (PSEUDO_END): Likewise.
30251 [IS_IN (libpthread)] (CENABLE): Likewise.
30252 [IS_IN (libpthread)] (CDISABLE): Likewise.
30253 [IS_IN (libc)] (CENABLE): Likewise.
30254 [IS_IN (libc)] (CENABLE): Likewise.
30255 [IS_IN (librt)] (CDISABLE): Likewise.
30256 [IS_IN (librt)] (CDISABLE): Likewise.
30257 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30258 * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h (PSEUDO): Remove
30259 definition.
30260 (PSEUDO_END): Likewise.
30261 [IS_IN (libpthread)] (CENABLE): Likewise.
30262 [IS_IN (libpthread)] (CDISABLE): Likewise.
30263 [IS_IN (libc)] (CENABLE): Likewise.
30264 [IS_IN (libc)] (CENABLE): Likewise.
30265 [IS_IN (librt)] (CDISABLE): Likewise.
30266 [IS_IN (librt)] (CDISABLE): Likewise.
30267 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30268 * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Remove
30269 definition.
30270 (PSEUDO_END): Likewise.
30271 [IS_IN (libpthread)] (CENABLE): Likewise.
30272 [IS_IN (libpthread)] (CDISABLE): Likewise.
30273 [IS_IN (libc)] (CENABLE): Likewise.
30274 [IS_IN (libc)] (CENABLE): Likewise.
30275 [IS_IN (librt)] (CDISABLE): Likewise.
30276 [IS_IN (librt)] (CDISABLE): Likewise.
30277 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30278 * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (PSEUDO): Remove
30279 definition.
30280 (PSEUDO_END): Likewise.
30281 [IS_IN (libpthread)] (CENABLE): Likewise.
30282 [IS_IN (libpthread)] (CDISABLE): Likewise.
30283 [IS_IN (libc)] (CENABLE): Likewise.
30284 [IS_IN (libc)] (CENABLE): Likewise.
30285 [IS_IN (librt)] (CDISABLE): Likewise.
30286 [IS_IN (librt)] (CDISABLE): Likewise.
30287 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30288 * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h (PSEUDO): Remove
30289 definition.
30290 (PSEUDO_END): Likewise.
30291 [IS_IN (libpthread)] (CENABLE): Likewise.
30292 [IS_IN (libpthread)] (CDISABLE): Likewise.
30293 [IS_IN (libc)] (CENABLE): Likewise.
30294 [IS_IN (libc)] (CENABLE): Likewise.
30295 [IS_IN (librt)] (CDISABLE): Likewise.
30296 [IS_IN (librt)] (CDISABLE): Likewise.
30297 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30298 * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h (PSEUDO):
30299 Remove definition.
30300 (PSEUDO_END): Likewise.
30301 [IS_IN (libpthread)] (CENABLE): Likewise.
30302 [IS_IN (libpthread)] (CDISABLE): Likewise.
30303 [IS_IN (libc)] (CENABLE): Likewise.
30304 [IS_IN (libc)] (CENABLE): Likewise.
30305 [IS_IN (librt)] (CDISABLE): Likewise.
30306 [IS_IN (librt)] (CDISABLE): Likewise.
30307 (SINGLE_THREAD_P): Likewise.
30308 * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h (PSEUDO): Remove
30309 definition.
30310 (PSEUDO_END): Likewise.
30311 [IS_IN (libpthread)] (CENABLE): Likewise.
30312 [IS_IN (libpthread)] (CDISABLE): Likewise.
30313 [IS_IN (libc)] (CENABLE): Likewise.
30314 [IS_IN (libc)] (CENABLE): Likewise.
30315 [IS_IN (librt)] (CDISABLE): Likewise.
30316 [IS_IN (librt)] (CDISABLE): Likewise.
30317 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30318 * sysdeps/unix/sysv/linux/nios2/sysdep-cancel.h (PSEUDO): Remove
30319 definition.
30320 (PSEUDO_END): Likewise.
30321 [IS_IN (libpthread)] (CENABLE): Likewise.
30322 [IS_IN (libpthread)] (CDISABLE): Likewise.
30323 [IS_IN (libc)] (CENABLE): Likewise.
30324 [IS_IN (libc)] (CENABLE): Likewise.
30325 [IS_IN (librt)] (CDISABLE): Likewise.
30326 [IS_IN (librt)] (CDISABLE): Likewise.
30327 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30328 * sysdeps/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Remove file.
30329 * sysdeps/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
30330 * sysdeps/unix/sysv/linux/powerpc/sysdep-cancel.h: New file.
30331 * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h (PSEUDO): Remove
30332 definition.
30333 (PSEUDO_END): Likewise.
30334 [IS_IN (libpthread)] (CENABLE): Likewise.
30335 [IS_IN (libpthread)] (CDISABLE): Likewise.
30336 [IS_IN (libc)] (CENABLE): Likewise.
30337 [IS_IN (libc)] (CENABLE): Likewise.
30338 [IS_IN (librt)] (CDISABLE): Likewise.
30339 [IS_IN (librt)] (CDISABLE): Likewise.
30340 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30341 * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h (PSEUDO): Remove
30342 definition.
30343 (PSEUDO_END): Likewise.
30344 [IS_IN (libpthread)] (CENABLE): Likewise.
30345 [IS_IN (libpthread)] (CDISABLE): Likewise.
30346 [IS_IN (libc)] (CENABLE): Likewise.
30347 [IS_IN (libc)] (CENABLE): Likewise.
30348 [IS_IN (librt)] (CDISABLE): Likewise.
30349 [IS_IN (librt)] (CDISABLE): Likewise.
30350 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30351 * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h (PSEUDO): Remove
30352 definition.
30353 (PSEUDO_END): Likewise.
30354 [IS_IN (libpthread)] (CENABLE): Likewise.
30355 [IS_IN (libpthread)] (CDISABLE): Likewise.
30356 [IS_IN (libc)] (CENABLE): Likewise.
30357 [IS_IN (libc)] (CENABLE): Likewise.
30358 [IS_IN (librt)] (CDISABLE): Likewise.
30359 [IS_IN (librt)] (CDISABLE): Likewise.
30360 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30361 * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Remove file.
30362 * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
30363 * sysdeps/unix/sysv/linux/sparc/sysdep-cancel.h: New file.
30364 * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h (PSEUDO): Remove
30365 definition.
30366 (PSEUDO_END): Likewise.
30367 [IS_IN (libpthread)] (CENABLE): Likewise.
30368 [IS_IN (libpthread)] (CDISABLE): Likewise.
30369 [IS_IN (libc)] (CENABLE): Likewise.
30370 [IS_IN (libc)] (CENABLE): Likewise.
30371 [IS_IN (librt)] (CDISABLE): Likewise.
30372 [IS_IN (librt)] (CDISABLE): Likewise.
30373 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30374 * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h (PSEUDO): Remove
30375 definition.
30376 (PSEUDO_END): Likewise.
30377 [IS_IN (libpthread)] (CENABLE): Likewise.
30378 [IS_IN (libpthread)] (CDISABLE): Likewise.
30379 [IS_IN (libc)] (CENABLE): Likewise.
30380 [IS_IN (libc)] (CENABLE): Likewise.
30381 [IS_IN (librt)] (CDISABLE): Likewise.
30382 [IS_IN (librt)] (CDISABLE): Likewise.
30383 [__ASSEMBLER__] (SINGLE_THREAD_P): Likewise.
30384
30385 2017-08-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
30386
30387 * sysdeps/ieee754/dbl-64/Makefile: Don't override CFLAGS.
30388
30389 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30390
30391 * sysdeps/x86_64/fpu/libm-test-ulps: Regenerated.
30392
30393 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30394
30395 [BZ #21982]
30396 * string/stratcliff.c (do_test): Declare size, nchars, inner,
30397 middle and outer with size_t instead of int. Repleace %d and
30398 %Zd with %zu in printf. Update "MAX (0, nchars - 128)" and
30399 "MAX (outer, nchars - 64)" to support unsigned outer and
30400 nchars. Also exit loop when outer == 0.
30401
30402 2017-08-23 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30403
30404 * include/fcntl.h (__fcntl_nocancel): Remove definition.
30405 * include/signal.h (__sigsuspend_nocancel): Likewise.
30406 * include/time.h (__nanosleep_nocancel): Likewise.
30407 * sysdeps/generic/not-cancel.h (__fcntl_nocancel): New macro.
30408 * login/utmp_file.c: Include non cancellable syscall header.
30409 * sysdeps/unix/sysv/linux/not-cancel.h (__fcntl_nocancel): New
30410 prototype.
30411
30412 2017-08-23 H.J. Lu <hongjiu.lu@intel.com>
30413
30414 * sysdeps/x86_64/fpu/svml_d_sincos8_core.S: Replace AVX512F
30415 .byte sequences with AVX512F instructions.
30416 * sysdeps/x86_64/fpu/svml_d_wrapper_impl.h: Likewise.
30417 * sysdeps/x86_64/fpu/svml_s_sincosf16_core.S: Likewise.
30418 * sysdeps/x86_64/fpu/svml_s_wrapper_impl.h: Likewise.
30419 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core_avx512.S:
30420 Likewise.
30421 * sysdeps/x86_64/fpu/multiarch/svml_s_sincosf16_core_avx512.S:
30422 Likewise.
30423
30424 2017-08-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
30425 Steve Ellcey <sellcey@cavium.com>
30426
30427 * sysdeps/aarch64/dl-tlsdesc.S (_dl_tlsdesc_dynamic):
30428 Use PTR_REG macro in cmp instruction.
30429
30430 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30431
30432 * include/libc-symbols.h: [!defined HAVE_GCC_IFUNC] (__ifunc):
30433 Change the return type of the ifunc resolver to match the return
30434 type of the target function.
30435
30436 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30437
30438 * sysdeps/unix/sysv/linux/x86_64/syscalls.list (pread64): Remove.
30439 (preadv64): Likewise.
30440 (pwrite64(: Likewise.
30441 (pwritev64): Likewise.
30442
30443 * sysdeps/unix/sysv/linux/x86_64/sysdep.h
30444 (INTERNAL_SYSCALL_NCS_TYPES): Remove define.
30445 (LOAD_ARGS_0): Likewise.
30446 (LOAD_ARGS_1): Likewise.
30447 (LOAD_ARGS_2): Likewise.
30448 (LOAD_ARGS_3): Likewise.
30449 (LOAD_ARGS_4): Likewise.
30450 (LOAD_ARGS_5): Likewise.
30451 (LOAD_ARGS_6): Likewise.
30452 (LOAD_REGS_0): Likewise.
30453 (LOAD_REGS_1): Likewise.
30454 (LOAD_REGS_2): Likewise.
30455 (LOAD_REGS_3): Likewise.
30456 (LOAD_REGS_4): Likewise.
30457 (LOAD_REGS_5): Likewise.
30458 (LOAD_REGS_6): Likewise.
30459 (ASM_ARGS_0): Likewise.
30460 (ASM_ARGS_1): Likewise.
30461 (ASM_ARGS_2): Likewise.
30462 (ASM_ARGS_3): Likewise.
30463 (ASM_ARGS_4): Likewise.
30464 (ASM_ARGS_5): Likewise.
30465 (ASM_ARGS_6): Likewise.
30466 (LOAD_ARGS_TYPES_1): Likewise.
30467 (LOAD_ARGS_TYPES_2): Likewise.
30468 (LOAD_ARGS_TYPES_3): Likewise.
30469 (LOAD_ARGS_TYPES_4): Likewise.
30470 (LOAD_ARGS_TYPES_5): Likewise.
30471 (LOAD_ARGS_TYPES_6): Likewise.
30472 (LOAD_REGS_TYPES_1): Likewise.
30473 (LOAD_REGS_TYPES_2): Likewise.
30474 (LOAD_REGS_TYPES_3): Likewise.
30475 (LOAD_REGS_TYPES_4): Likewise.
30476 (LOAD_REGS_TYPES_5): Likewise.
30477 (LOAD_REGS_TYPES_6): Likewise.
30478 (TYPEFY): New define.
30479 (ARGIFY): Likewise.
30480 (internal_syscall0): Likewise.
30481 (internal_syscall1): Likewise.
30482 (internal_syscall2): Likewise.
30483 (internal_syscall3): Likewise.
30484 (internal_syscall4): Likewise.
30485 (internal_syscall5): Likewise.
30486 (internal_syscall6): Likewise.
30487 * sysdeps/unix/sysv/linux/x86_64/x32/times.c
30488 (INTERNAL_SYSCALL_NCS): Remove define.
30489 (internal_syscall1): Add define.
30490
30491 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30492
30493 * math/w_remainder_compat.c: Remove duplicate inclusion of
30494 math-svid-compat.h.
30495 * math/w_remainderf_compat.c: Likewise.
30496 * math/w_remainderl_compat.c: Likewise.
30497
30498 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30499
30500 * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30501
30502 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30503
30504 [BZ #21684]
30505 * math/tgmath.h (__floating_type): Simplify definitions.
30506 (__real_integer_type): New macro.
30507 (__complex_integer_type): Likewise.
30508 (__expr_is_real): Likewise.
30509 (__tgmath_real_type_sub): Update comment to describe handling of
30510 complex types.
30511 (__tgmath_complex_type_sub): New macro.
30512 (__tgmath_complex_type): Likewise.
30513 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
30514 (__TGMATH_CF128): Use __expr_is_real.
30515 (__TGMATH_UNARY_REAL_IMAG): Use __tgmath_complex_type and
30516 __expr_is_real.
30517 (__TGMATH_BINARY_REAL_IMAG): Likewise.
30518 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Use __expr_is_real.
30519 * math/gen-tgmath-tests.py (Type.create_type): Create complex
30520 integer types.
30521
30522 2017-08-22 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30523
30524 * sysdeps/generic/not-cancel.h (sigsuspend_not_cancel): Remove
30525 macro.
30526 * sysdeps/mach/hurd/sigsuspend.c (sigsuspend_not_cancel): Remove
30527 alias.
30528 * sysdeps/unix/sysv/linux/not-cancel.h (sigsuspend_not_cancel):
30529 Likewise.
30530
30531 * nptl/pthread_mutex_timedlock.c (__pthread_mutex_timedlock): Replace
30532 nanosleep_not_cancel with __nanosleep_nocancel.
30533 * sysdeps/generic/not-cancel.h (nanosleep_not_cancel): Remove macro.
30534 (__nanosleep_nocancel): New macro.
30535 * sysdeps/unix/sysv/linux/nanosleep.c (__nanosleep_nocancel): New
30536 function.
30537 * sysdeps/unix/sysv/linux/not-cancel.h (nanosleep_not_cancel): Remove
30538 macro.
30539 (__nanosleep_nocancel): New prototype.
30540
30541 * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full): Replace
30542 pause_not_cancel with __pause_nocancel.
30543 * sysdeps/generic/not-cancel.h (pause_not_cancel): Remove macro.
30544 (__pause_nocancel): New macro.
30545 * sysdeps/unix/sysv/linux/not-cancel.h (pause_not_cancel): Remove
30546 macro.
30547 (__pause_nocancel): New prototype.
30548 * sysdeps/unix/sysv/linux/pause.c (__pause_nocancel): New function.
30549
30550 2017-08-22 Martin Sebor <msebor@redhat.com>
30551
30552 * include/libc-symbols.h (__ifunc_resolver): Declare resolver
30553 to return a pointer to the same type as the target function.
30554
30555 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30556
30557 [BZ #18822]
30558 [BZ #21986]
30559 * include/printf.h (__printf_fphex): Add attribute_hidden.
30560 (__guess_grouping): New prototype.
30561 * stdio-common/printf_fp.c (__guess_grouping): Removed.
30562 * stdio-common/reg-printf.c (__register_printf_specifier): Add
30563 libc_hidden_proto and libc_hidden_def.
30564 * stdlib/strfmon_l.c (__guess_grouping): Removed.
30565 (__vstrfmon_l): Remove the third argument passed to
30566 __guess_grouping.
30567
30568 2017-08-22 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
30569
30570 * math/math.h [defined __cplusplus] (issignaling): Provide a C++
30571 definition for issignaling that does not rely on __MATH_TG,
30572 since __MATH_TG uses __builtin_types_compatible_p, which is only
30573 available in C mode.
30574 (CFLAGS-test-math-issignaling.cc): New variable.
30575 * math/Makefile [CXX] (tests): Add test-math-issignaling.
30576 * math/test-math-issignaling.cc: New test for C++ implementation
30577 of type-generic issignaling.
30578 * sysdeps/powerpc/powerpc64le/Makefile [subdir == math]
30579 (CXXFLAGS-test-math-issignaling.cc): Add -mfloat128 to the build
30580 options of test-math-issignaling on powerpc64le.
30581
30582 2017-08-22 H.J. Lu <hongjiu.lu@intel.com>
30583
30584 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30585 building libc.a.
30586 (hidden_proto): Likewise.
30587 (hidden_tls_proto): Likewise.
30588 (__hidden_proto): Likewise.
30589
30590 2017-08-22 Florian Weimer <fweimer@redhat.com>
30591
30592 math: Statically link tests of internal functionality.
30593 * math/Makefile (tests): Remove atest-exp, atest-sincos,
30594 atest-exp2.
30595 (tests-static): Add atest-exp, atest-sincos, atest-exp2.
30596 (gmp-objs): Remove assignment.
30597 (atest-exp, atest-sincos, atest-exp2): Remove targets.
30598
30599 2017-08-22 Joseph Myers <joseph@codesourcery.com>
30600
30601 [BZ #21987]
30602 * sysdeps/unix/sysv/linux/sparc/bits/long-double.h: Remove file
30603 and copy to ...
30604 * sysdeps/unix/sysv/linux/sparc/sparc32/bits/long-double.h:
30605 ... here.
30606 * sysdeps/unix/sysv/linux/sparc/sparc64/bits/long-double.h:
30607 ... and here.
30608
30609 * assert/Makefile [$(have-cxx-thread_local)]: Move conditional
30610 variable definitions above inclusion of ../Rules.
30611
30612 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30613
30614 * sysdeps/ieee754/k_standard.c (__kernel_standard): Add default
30615 case calling __builtin_unreachable.
30616
30617 2017-08-21 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30618
30619 * libio/ioopen.c (_IO_waitpid): Replace waitpid_not_cancel with
30620 __waitpid_nocancel.
30621 * sysdeps/generic/not-cancel.h (waitpid_not_cancel): Remove macro.
30622 (__waitpid_nocancel): New macro.
30623 * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel): Remove
30624 macro.
30625 (__waitpid_nocancel): Replace macro with a function.
30626 * sysdeps/unix/sysv/linux/waitpid.c (__waitpid_nocancel): New
30627 function.
30628
30629 * login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
30630 __fcntl_nocancel.
30631 * sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
30632 * sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
30633
30634 * gmon/gmon.c (write_hist): Replace writev_not_cancel_no_status with
30635 __writev_nocancel_nostatus.
30636 (write_call_graph): Likewise.
30637 (write_bb_counts): Likewise.
30638 * resolv/herror.c (herror): Likewise.
30639 * sysdeps/generic/not-cancel.h (writev_not_cancel_no_status): Remove
30640 macro.
30641 (__writev_nocancel_nostatus): New macro.
30642 * sysdeps/unix/sysv/linux/not-cancel.h (writev_not_cancel_no_status):
30643 Remove macro.
30644 (__writev_nocancel_nostatus): New function.
30645
30646 2017-08-21 Joseph Myers <joseph@codesourcery.com>
30647
30648 Revert:
30649 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30650
30651 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30652 building libc.a.
30653 (hidden_proto): Likewise.
30654 (hidden_tls_proto): Likewise.
30655 (__hidden_proto): Likewise.
30656
30657 [BZ #21973]
30658 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Remove file.
30659 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30660 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30661 Likewise.
30662 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat.S:
30663 Likewise.
30664 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30665 Likewise.
30666 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat.S:
30667 Likewise.
30668 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S : Likewise.
30669 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30670 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30671 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30672 * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: Add
30673 GLIBC_2.0 sqrtl symbol.
30674
30675 * math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
30676 [__USE_MISC] (_LIB_VERSION): Likewise.
30677 [__USE_MISC] (struct exception): Likewise.
30678 [__USE_MISC] (matherr): Likewise.
30679 [__USE_MISC] (DOMAIN): Likewise.
30680 [__USE_MISC] (SING): Likewise.
30681 [__USE_MISC] (OVERFLOW): Likewise.
30682 [__USE_MISC] (UNDERFLOW): Likewise.
30683 [__USE_MISC] (TLOSS): Likewise.
30684 [__USE_MISC] (PLOSS): Likewise.
30685 [__USE_MISC] (HUGE): Likewise.
30686 [__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
30687 * math/math-svid-compat.h: New file.
30688 * conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
30689 and matherrl.
30690 * include/math.h [!_ISOMAC] (__matherr): Remove.
30691 * manual/arith.texi (FP Exceptions): Do not document matherr.
30692 * math/Makefile (tests): Change test-matherr to test-matherr-3.
30693 (tests-internal): New variable.
30694 (install-lib): Do not add libieee.a.
30695 (non-lib.a): Likewise.
30696 (extra-objs): Do not add libieee.a and ieee-math.o.
30697 (CPPFLAGS-s_lib_version.c): Remove variable.
30698 ($(objpfx)libieee.a): Remove rule.
30699 ($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
30700 * math/ieee-math.c: Remove.
30701 * math/libm-test-support.c (matherr): Remove.
30702 * math/test-matherr.c: Use <support/test-driver.c>. Add copyright
30703 and license notices. Include <math-svid-compat.h> and
30704 <shlib-compat.h>.
30705 (matherr): Undefine as macro. Use compat_symbol_reference.
30706 (_LIB_VERSION): Likewise.
30707 * math/test-matherr-2.c: New file.
30708 * math/test-matherr-3.c: Likewise.
30709 * sysdeps/generic/math_private.h (__kernel_standard): Remove
30710 declaration.
30711 (__kernel_standard_f): Likewise.
30712 (__kernel_standard_l): Likewise.
30713 * sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
30714 <math_private.h>. Include <math-svid-compat.h>.
30715 (_LIB_VERSION): Undefine as macro.
30716 (_LIB_VERSION_INTERNAL): Always initialize to _POSIX_. Define
30717 only if [LIBM_SVID_COMPAT || !defined SHARED]. If
30718 [LIBM_SVID_COMPAT], use compat_symbol.
30719 * sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
30720 <math_private.h>. Include <math-svid-compat.h>.
30721 (matherr): Undefine as macro.
30722 (__matherr): Define only if [LIBM_SVID_COMPAT]. Use
30723 compat_symbol.
30724 * sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
30725 [_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
30726 compat_symbol_reference.
30727 [_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
30728 [_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
30729 [_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
30730 * sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
30731 (MATHERR_D): Remove declaration.
30732 [!_LIBC] (_LIB_VERSION_TYPE): Likewise
30733 [!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
30734 [LIBM_BUILD] (pmatherrf): Likewise.
30735 [LIBM_BUILD] (pmatherr): Likewise.
30736 [LIBM_BUILD] (pmatherrl): Likewise.
30737 (DOMAIN): Likewise.
30738 (SING): Likewise.
30739 (OVERFLOW): Likewise.
30740 (UNDERFLOW): Likewise.
30741 (TLOSS): Likewise.
30742 (PLOSS): Likewise.
30743 * sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
30744 (__matherrf): Define only if [LIBM_SVID_COMPAT]. Use
30745 compat_symbol.
30746 * sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
30747 (__matherrl): Define only if [LIBM_SVID_COMPAT]. Use
30748 compat_symbol.
30749 * math/lgamma-compat.h: Include <math-svid-compat.h>.
30750 * math/w_acos_compat.c: Likewise.
30751 * math/w_acosf_compat.c: Likewise.
30752 * math/w_acosh_compat.c: Likewise.
30753 * math/w_acoshf_compat.c: Likewise.
30754 * math/w_acoshl_compat.c: Likewise.
30755 * math/w_acosl_compat.c: Likewise.
30756 * math/w_asin_compat.c: Likewise.
30757 * math/w_asinf_compat.c: Likewise.
30758 * math/w_asinl_compat.c: Likewise.
30759 * math/w_atan2_compat.c: Likewise.
30760 * math/w_atan2f_compat.c: Likewise.
30761 * math/w_atan2l_compat.c: Likewise.
30762 * math/w_atanh_compat.c: Likewise.
30763 * math/w_atanhf_compat.c: Likewise.
30764 * math/w_atanhl_compat.c: Likewise.
30765 * math/w_cosh_compat.c: Likewise.
30766 * math/w_coshf_compat.c: Likewise.
30767 * math/w_coshl_compat.c: Likewise.
30768 * math/w_exp10_compat.c: Likewise.
30769 * math/w_exp10f_compat.c: Likewise.
30770 * math/w_exp10l_compat.c: Likewise.
30771 * math/w_exp2_compat.c: Likewise.
30772 * math/w_exp2f_compat.c: Likewise.
30773 * math/w_exp2l_compat.c: Likewise.
30774 * math/w_fmod_compat.c: Likewise.
30775 * math/w_fmodf_compat.c: Likewise.
30776 * math/w_fmodl_compat.c: Likewise.
30777 * math/w_hypot_compat.c: Likewise.
30778 * math/w_hypotf_compat.c: Likewise.
30779 * math/w_hypotl_compat.c: Likewise.
30780 * math/w_j0_compat.c: Likewise.
30781 * math/w_j0f_compat.c: Likewise.
30782 * math/w_j0l_compat.c: Likewise.
30783 * math/w_j1_compat.c: Likewise.
30784 * math/w_j1f_compat.c: Likewise.
30785 * math/w_j1l_compat.c: Likewise.
30786 * math/w_jn_compat.c: Likewise.
30787 * math/w_jnf_compat.c: Likewise.
30788 * math/w_jnl_compat.c: Likewise.
30789 * math/w_lgamma_main.c: Likewise.
30790 * math/w_lgamma_r_compat.c: Likewise.
30791 * math/w_lgammaf_main.c: Likewise.
30792 * math/w_lgammaf_r_compat.c: Likewise.
30793 * math/w_lgammal_main.c: Likewise.
30794 * math/w_lgammal_r_compat.c: Likewise.
30795 * math/w_log10_compat.c: Likewise.
30796 * math/w_log10f_compat.c: Likewise.
30797 * math/w_log10l_compat.c: Likewise.
30798 * math/w_log2_compat.c: Likewise.
30799 * math/w_log2f_compat.c: Likewise.
30800 * math/w_log2l_compat.c: Likewise.
30801 * math/w_log_compat.c: Likewise.
30802 * math/w_logf_compat.c: Likewise.
30803 * math/w_logl_compat.c: Likewise.
30804 * math/w_pow_compat.c: Likewise.
30805 * math/w_powf_compat.c: Likewise.
30806 * math/w_powl_compat.c: Likewise.
30807 * math/w_remainder_compat.c: Likewise.
30808 * math/w_remainderf_compat.c: Likewise.
30809 * math/w_remainderl_compat.c: Likewise.
30810 * math/w_scalb_compat.c: Likewise.
30811 * math/w_scalbf_compat.c: Likewise.
30812 * math/w_scalbl_compat.c: Likewise.
30813 * math/w_sinh_compat.c: Likewise.
30814 * math/w_sinhf_compat.c: Likewise.
30815 * math/w_sinhl_compat.c: Likewise.
30816 * math/w_sqrt_compat.c: Likewise.
30817 * math/w_sqrtf_compat.c: Likewise.
30818 * math/w_sqrtl_compat.c: Likewise.
30819 * math/w_tgamma_compat.c: Likewise.
30820 * math/w_tgammaf_compat.c: Likewise.
30821 * math/w_tgammal_compat.c: Likewise.
30822 * sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
30823 * sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
30824 * sysdeps/ieee754/k_standard.c: Likewise.
30825 * sysdeps/ieee754/k_standardf.c: Likewise.
30826 * sysdeps/ieee754/k_standardl.c: Likewise.
30827 * sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
30828 * sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
30829 * sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
30830 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
30831 * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
30832 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
30833 * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
30834 * sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
30835 * sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
30836 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
30837 Likewise.
30838 * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
30839 Likewise.
30840 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
30841 * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
30842 * sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
30843 * sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
30844
30845 2017-08-21 Florian Weimer <fweimer@redhat.com>
30846
30847 [BZ #21864]
30848 Do not compile benchmark helper objects with -DMODULE_NAME=libc.
30849 * benchtests/Makefile (others-extras): Set to $(bench-extra-objs).
30850 Move before inclusion of ../Rules.
30851
30852 2017-08-21 Florian Weimer <fweimer@redhat.com>
30853
30854 [BZ #21972]
30855 * assert/assert.h (assert): Use static_cast (bool) for C++.
30856 Use the ternary operator in the warning branch for GNU C.
30857 * assert/Makefile (tests): Add tst-assert-c++, tst-assert-g++.
30858 (CFLAGS-tst-assert-c++.o): Compile in C++11 mode.
30859 (CFLAGS-tst-assert-g++.o): Compile in GnU C++11 mode.
30860 (LDLIBS-tst-assert-c++, LDLIBS-tst-assert-g++): Link with libstdc++.
30861 * assert/tst-assert-c++.cc, assert/tst-assert-g++.cc: New files.
30862
30863 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30864
30865 [BZ #18822]
30866 * sysdeps/unix/sysv/linux/x86_64/init-first.c
30867 (__syscall_clock_gettime): Add attribute_hidden.
30868 * sysdeps/unix/sysv/linux/x86_64/makecontext.c
30869 (__start_context): Likewise.
30870
30871 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30872
30873 * include/libc-symbols.h (__hidden_proto_hiddenattr): New for
30874 building libc.a.
30875 (hidden_proto): Likewise.
30876 (hidden_tls_proto): Likewise.
30877 (__hidden_proto): Likewise.
30878
30879 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30880
30881 * include/libc-symbols.h (attribute_hidden): Enable hidden
30882 visibility in libc.a compiled with PIE.
30883
30884 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30885
30886 [BZ #18822]
30887 * sysdeps/unix/sysv/linux/x86/libc-vdso.h (VDSO_SYMBOL(getcpu)):
30888 Add attribute_hidden.
30889
30890 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30891
30892 [BZ #21864]
30893 * Makerules (all-nonlib): Add $(others-extras).
30894 * catgets/Makefile (others-extras): New.
30895 * elf/Makefile (others-extras): Likewise.
30896 * nss/Makefile (others-extras): Likewise.
30897
30898 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30899
30900 [BZ #18822]
30901 * csu/libc-start.c (__libc_multiple_libcs): Removed.
30902 * elf/dl-open.c: Include <libc-internal.h>.
30903 (__libc_multiple_libcs): Removed.
30904 * elf/dl-sysdep.c: Include <libc-internal.h> instead of
30905 <hp-timing.h>.
30906 * include/libc-internal.h (__libc_multiple_libcs): New.
30907 * misc/sbrk.c: Include <libc-internal.h>.
30908 (__libc_multiple_libcs): Removed.
30909
30910 2017-08-21 H.J. Lu <hongjiu.lu@intel.com>
30911
30912 [BZ #18822]
30913 * grp/initgroups.c (__nss_group_database): Removed.
30914 (__nss_initgroups_database): Likewise.
30915 * nscd/gai.c (__nss_hosts_database): Likewise.
30916 * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Likewise.
30917 * posix/tst-rfc3484-2.c (__nss_hosts_database): Likewise.
30918 * posix/tst-rfc3484-3.c (__nss_hosts_database): Likewise.
30919 * posix/tst-rfc3484.c (__nss_hosts_database): Likewise.
30920 * sysdeps/posix/getaddrinfo.c (__nss_hosts_database): Likewise.
30921 * nss/getXXent.c (INTERNAL (REENTRANT_GETNAME)): Add
30922 attribute_hidden.
30923 * nss/nsswitch.c (__nss_database_custom): Define only if
30924 USE_NSCD is defined.
30925 (__nss_configure_lookup): Use __nss_database_custom only if
30926 USE_NSCD is defined.
30927 * nss/nsswitch.h (__nss_database_custom): Declare only if
30928 USE_NSCD is defined. Add attribute_hidden.
30929 (__nss_setent): Add attribute_hidden.
30930 (__nss_endent): Likewise.
30931 (__nss_getent_r): Likewise.
30932 (__nss_getent): Likewise.
30933 (DEFINE_DATABASE): Declare __nss_##arg##_database.
30934
30935 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30936
30937 [BZ #18822]
30938 * sysdeps/unix/sysv/linux/i386/glob64.c (__old_glob64): Add
30939 libc_hidden_proto and libc_hidden_def.
30940
30941 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30942
30943 [BZ #18822]
30944 * sysdeps/unix/sysv/linux/i386/olddirent.h (__old_readdir64):
30945 Add libc_hidden_proto.
30946 * sysdeps/unix/sysv/linux/i386/readdir64.c (__old_readdir64):
30947 Add libc_hidden_def.
30948
30949 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30950
30951 [BZ #21974]
30952 * gmon/Makefile (routines): Remove bb_init_func and
30953 bb_exit_func.
30954 (elide-routines.os): Removed.
30955 * gmon/bb_exit_func.c: Likewise.
30956 * gmon/bb_init_func.c: Likewise.
30957 * include/sys/gmon.h (__bb): Likewise.
30958 (__bb_init_func): Likewise.
30959 (__bb_exit_func): Likewise.
30960 * sysdeps/alpha/bb_init_func.S: Likewise.
30961
30962 2017-08-20 H.J. Lu <hongjiu.lu@intel.com>
30963
30964 * debug/longjmp_chk.c (____longjmp_chk): Moved to ...
30965 * include/setjmp.h (____longjmp_chk): Here. Add
30966 attribute_hidden.
30967
30968 2017-08-19 H.J. Lu <hongjiu.lu@intel.com>
30969
30970 [BZ #18822]
30971 * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE2): Add
30972 attribute_hidden.
30973 (__strspn_sse2): Likewise.
30974
30975 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
30976
30977 * sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
30978 (close_not_cancel_no_status): Likewise.
30979 (__close_nocancel): New macro.
30980 (__close_nocancel_nostatus): Likewise.
30981 * sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
30982 macro.
30983 (close_not_cancel): Likewise.
30984 (close_not_cancel_no_status): Likewise.
30985 (__close_nocancel): New prototype.
30986 (__close_nocancel_nostatus): New function.
30987 * sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
30988 * catgets/open_catalog.c (__open_catalog): Replace
30989 close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
30990 * gmon/gmon.c (write_gmon): Likewise.
30991 * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
30992 * intl/loadmsgcat.c (close): Likewise.
30993 * io/ftw.c (open_dir_stream): Likewise.
30994 (ftw_startup): Likewise.
30995 * libio/fileops.c (_IO_file_open): Likewise.
30996 (_IO_file_close_mmap): Likewise.
30997 (_IO_file_close): Likewise.
30998 * libio/iopopen.c (_IO_dup2): Likewise.
30999 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31000 * locale/loadlocale.c (_nl_load_locale): Likewise.
31001 * login/utmp_file.c (pututline_file): Likewise.
31002 (endutent_file): Likewise.
31003 * misc/daemon.c (daemon): Likewise.
31004 * nscd/nscd_getai.c (__nscd_getai): Likewise.
31005 * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
31006 * nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
31007 * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
31008 * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
31009 * nscd/nscd_helper.c (open_socket): Likewise.
31010 (__nscd_open_socket): Likewise.
31011 * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
31012 * nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
31013 (__nscd_innetgr): Likewise.
31014 * nss/nss_db/db-open.c (internal_setent): Likewise.
31015 * resolv/res-close.c (__res_iclose): Likewise.
31016 * sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
31017 * sysdeps/posix/closedir.c (__closedir): Likewise.
31018 * sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
31019 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31020 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31021 (opendir_tail): Likewise.
31022 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31023 * sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
31024 * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
31025 * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
31026 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31027 (gethostid): Likewise.
31028 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31029 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31030 Likewise.
31031 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31032 * sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
31033 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31034 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31035 Likewise.
31036 * sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
31037 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
31038 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31039 Likewise.
31040 * sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
31041 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31042 Likewise.
31043 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31044 Likewise.
31045 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31046 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31047 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31048 __close_nocancel.
31049
31050 * sysdeps/generic/not-cancel.h (openat_not_cancel): Remove macro.
31051 (openat_not_cancel_3): Likewise.
31052 (openat64_not_cancel_3): Likewise).
31053 (openat_not_cancel_3): Likewise).
31054 * sysdeps/unix/sysv/linux/not-cancel.h (openat_not_cancel): Remove
31055 macro.
31056 (openat_not_cancel_3): Likewise.
31057 (openat64_not_cancel): Likewise.
31058 (openat64_not_cancel_3): Likewise.
31059 * sysdeps/unix/sysv/linux/openat.c (__openat_nocancel): New function.
31060 * sysdeps/unix/sysv/linux/openat64.c (__openat64_nocancel): Likewise.
31061 * io/ftw.c (open_dir_stream): Replace openat{64}_not_cancel{_3} with
31062 __open{64}_nocancel.
31063 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31064 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31065 * sysdeps/posix/opendir.c (__opendirat): Likewise.
31066
31067 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31068
31069 [BZ #18822]
31070 * include/argz.h (__argz_create_sep): New function prototype.
31071 (__argz_append): Likewise.
31072 (__argz_add): Likewise.
31073 (__argz_add_sep): Likewise.
31074 (__argz_delete): Likewise.
31075 (__argz_insert): Likewise.
31076 (__argz_replace): Likewise.
31077 * string/argz.h (__argz_create_sep): Removed.
31078 (__argz_append): Likewise.
31079 (__argz_add): Likewise.
31080 (__argz_add_sep): Likewise.
31081 (__argz_delete): Likewise.
31082 (__argz_insert): Likewise.
31083 (__argz_replace): Likewise.
31084
31085 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31086
31087 * elf/elf.h (NT_GNU_PROPERTY_TYPE_0): New.
31088 (NOTE_GNU_PROPERTY_SECTION_NAME): Likewise.
31089 (GNU_PROPERTY_STACK_SIZE): Likewie.
31090 (GNU_PROPERTY_NO_COPY_ON_PROTECTED): Likewie.
31091 (GNU_PROPERTY_LOPROC): Likewise.
31092 (GNU_PROPERTY_HIPROC): Likewise.
31093 (GNU_PROPERTY_LOUSER): Likewise.
31094 (GNU_PROPERTY_HIUSER): Likewise.
31095 (GNU_PROPERTY_X86_ISA_1_USED): Likwise.
31096 (GNU_PROPERTY_X86_ISA_1_NEEDED): Likwise.
31097 (GNU_PROPERTY_X86_FEATURE_1_AND): Likwise.
31098 (GNU_PROPERTY_X86_ISA_1_486): Likwise.
31099 (GNU_PROPERTY_X86_ISA_1_586): Likwise.
31100 (GNU_PROPERTY_X86_ISA_1_686): Likwise.
31101 (GNU_PROPERTY_X86_ISA_1_SSE): Likwise.
31102 (GNU_PROPERTY_X86_ISA_1_SSE2): Likwise.
31103 (GNU_PROPERTY_X86_ISA_1_SSE3): Likwise.
31104 (GNU_PROPERTY_X86_ISA_1_SSSE3): Likwise.
31105 (GNU_PROPERTY_X86_ISA_1_SSE4_1): Likwise.
31106 (GNU_PROPERTY_X86_ISA_1_SSE4_2): Likwise.
31107 (GNU_PROPERTY_X86_ISA_1_AVX): Likwise.
31108 (GNU_PROPERTY_X86_ISA_1_AVX2): Likwise.
31109 (GNU_PROPERTY_X86_ISA_1_AVX512F): Likwise.
31110 (GNU_PROPERTY_X86_ISA_1_AVX512CD): Likwise.
31111 (GNU_PROPERTY_X86_ISA_1_AVX512ER): Likwise.
31112 (GNU_PROPERTY_X86_ISA_1_AVX512PF): Likwise.
31113 (GNU_PROPERTY_X86_ISA_1_AVX512VL): Likwise.
31114 (GNU_PROPERTY_X86_ISA_1_AVX512DQ): Likwise.
31115 (GNU_PROPERTY_X86_ISA_1_AVX512BW): Likwise.
31116 (GNU_PROPERTY_X86_FEATURE_1_IBT): Likwise.
31117 (GNU_PROPERTY_X86_FEATURE_1_SHSTK): Likwise.
31118
31119 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31120
31121 * misc/sys/cdefs.h (__HAVE_GENERIC_SELECTION): Define to 0, if
31122 in C++ mode.
31123
31124 2017-08-18 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31125
31126 [BZ #21930]
31127 * math/math.h (isinf): Check if in C or C++ mode before using
31128 __builtin_types_compatible_p, since this is a C mode feature.
31129
31130 2017-08-18 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31131
31132 * sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
31133 (__write_nocancel): New macro.
31134 * sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
31135 Rewrite as a function prototype.
31136 (write_not_cancel): Remove macro.
31137 * sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
31138 * gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
31139 (write_gmon): Likewise.
31140 * libio/fileops.c (_IO_new_file_write): Likewise.
31141 * login/utmp_file.c (pututline_file): Likewise.
31142 (updwtmp_file): Likewise.
31143 * stdio-common/psiginfo.c (psiginfo): Likewise.
31144 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31145 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31146 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31147 Likewise.
31148 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31149 Likewise.
31150
31151 * sysdeps/generic/not-cancel.h (read_not_cancel): Remove macro.
31152 (__read_nocancel): New macro.
31153 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31154 __read_nocancel.
31155 * sysdeps/unix/sysv/linux/not-cancel.h (__read_nocancel): Remove
31156 macro.
31157 (__read_nocancel): New prototype.
31158 * sysdeps/unix/sysv/linux/read.c (__read_nocancel): New function.
31159 * catgets/open_catalog.c (__open_catalog): Replace read_not_cancel
31160 with __read_nocancel.
31161 * intl/loadmsgcat.c (read): Likewise.
31162 * libio/fileops.c (_IO_file_read): Likewise.
31163 * locale/loadlocale.c (_nl_load_locale): Likewise.
31164 * login/utmp_file.c (getutent_r_file): Likewise.
31165 (internal_getut_r): Likewise.
31166 (getutline_r_file): Likewise.
31167 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31168 * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
31169 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31170 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31171 Likewise.
31172 * sysdeps/unix/sysv/linux/getsysstats.c (next_line): Likewise.
31173 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31174 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31175 Likewise.
31176 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31177 Likewise.
31178 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31179 Likewise.
31180 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31181 Likewise.
31182 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31183
31184 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
31185
31186 [BZ #21966]
31187 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h
31188 (IFUNC_SELECTOR): Don't use the AVX2 version if FMA isn't
31189 usable.
31190
31191 2017-08-17 DJ Delorie <dj@redhat.com>
31192
31193 * bug17079.c: Update to new test harness.
31194 * test-digits-dots.c: Likewise.
31195 * test-netdb.c: Likewise.
31196 * tst-field.c: Likewise.
31197 * tst-nss-getpwent.c: Likewise.
31198 * tst-nss-static.c: Likewise.
31199 * tst-nss-test1.c: Likewise.
31200 * tst-nss-test2.c: Likewise.
31201 * tst-nss-test3.c: Likewise.
31202 * tst-nss-test4.c: Likewise.
31203 * tst-nss-test5.c: Likewise.
31204
31205 2017-08-17 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31206
31207 * sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
31208 (open_not_cancel_2): Likewise.
31209 (open_nocancel): New macro.
31210 (open64_nocancel): Likewise.
31211 * sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
31212 (open_not_cancel_2): Likewise.
31213 (__open_nocancel): New prototype.
31214 (__open64_nocancel): Likewise.
31215 * sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
31216 __open_nocancel.
31217 * sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
31218 * sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
31219 * catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
31220 with __open_nocancel.
31221 * csu/check_fds.c (check_one_fd): Likewise.
31222 * gmon/gmon.c (write_gmon): Likewise.
31223 * iconv/gconv_cache.c (__gconv_load_cached): Likewise.
31224 * intl/loadmsgcat.c (open): Likewise.
31225 * libio/fileops.c (_IO_file_open): Likewise.
31226 * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
31227 * locale/loadlocale.c (_nl_load_locale): Likewise.
31228 * login/utmp_file.c (setutent_file): Likewise.
31229 * misc/daemon.c (daemon): Likewise.
31230 * nss/nss_db/db-open.c (internal_setent): Likewise.
31231 * sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
31232 * sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
31233 * sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
31234 (__opendir): Likewise.
31235 * sysdeps/posix/spawni.c (__spawni_child): Likewise.
31236 * sysdeps/unix/sysv/linux/fips-private.h (fips_enable_p): Likewise.
31237 * sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
31238 (gethostid): Likewise.
31239 * sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
31240 * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31241 Likewise.
31242 * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
31243 * sysdeps/unix/sysv/linux/grantpt.c (__close_all_fds): Likewise.
31244 * sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
31245 * sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
31246 Likewise.
31247 * sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
31248 Likewise.
31249 * sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
31250 Likewise.
31251 * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
31252 Likewise.
31253 * sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
31254 Likewise.
31255 * sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
31256 Likewise.
31257 * sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
31258 * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
31259
31260 2017-08-17 Wilco Dijkstra <wdijkstr@arm.com>
31261
31262 * benchtests/bench-skeleton.c (main): Add support for
31263 latency benchmarking.
31264 * benchtests/scripts/bench.py: Add support for latency benchmarking.
31265
31266 2017-08-17 H.J. Lu <hongjiu.lu@intel.com>
31267
31268 * Makeconfig (+link-pie-before-libc): Add CRT-* hook to override
31269 the startup object.
31270
31271 2017-08-17 Florian Weimer <fweimer@redhat.com>
31272
31273 * include/sys/socket.h (__opensock): Remove internal_function.
31274 * socket/opensock.c (__opensock): Likewise.
31275 * sysdeps/unix/sysv/linux/opensock.c (__opensock): Likewise.
31276
31277 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31278
31279 [BZ #21944]
31280 * signal/bits/types/__sigval_t.h: New file.
31281 * signal/Makefile (headers): Add bits/types/__sigval_t.h.
31282 * signal/bits/types/sigval_t.h: Include <bits/types/__sigval_t.h>
31283 and define sigval_t using __sigval_t.
31284 * include/bits/types/__sigval_t.h: New file.
31285 * bits/types/sigevent_t.h: Include <bits/types/__sigval_t.h>
31286 instead of <bits/types/__sigval_t.h>.
31287 (struct sigevent): Use __sigval_t instead of sigval_t.
31288 * bits/types/siginfo_t.h: Include <bits/types/__sigval_t.h>
31289 instead of <bits/types/__sigval_t.h>.
31290 (siginfo_t): Use __sigval_t instead of sigval_t.
31291 * sysdeps/unix/sysv/linux/bits/types/sigevent_t.h: Include
31292 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31293 (struct sigevent): Use __sigval_t instead of sigval_t.
31294 * sysdeps/unix/sysv/linux/bits/types/siginfo_t.h: Include
31295 <bits/types/__sigval_t.h> instead of <bits/types/__sigval_t.h>.
31296 (siginfo_t): Use __sigval_t instead of sigval_t.
31297 * signal/signal.h [__USE_MISC]: Include <bits/types/sigval_t.h>.
31298
31299 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31300
31301 * NEWS: Remove "[Add new features here]" for 2.27.
31302
31303 2017-08-16 Joseph Myers <joseph@codesourcery.com>
31304
31305 * sysdeps/unix/sysv/linux/sh/localplt.data: Allow abort in
31306 libc.so.
31307
31308 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31309
31310 * NEWS: Mention x86-64 FMA optimization.
31311
31312 2017-08-16 H.J. Lu <hongjiu.lu@intel.com>
31313
31314 [BZ #21912]
31315 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
31316 Add e_expf-fma.
31317 * sysdeps/x86_64/fpu/multiarch/e_expf-fma.S: New file.
31318 * sysdeps/x86_64/fpu/multiarch/e_expf.c: Likewise.
31319 * sysdeps/x86_64/fpu/multiarch/ifunc-fma.h: Likewise.
31320
31321 2017-08-16 Andreas Schwab <schwab@suse.de>
31322
31323 [BZ #16750]
31324 CVE-2009-5064
31325 * elf/ldd.bash.in: Never run file directly.
31326
31327 2017-08-15 H.J. Lu <hongjiu.lu@intel.com>
31328
31329 [BZ #21955]
31330 * sysdeps/x86_64/fpu/e_expf.S (L(SP_RANGE)): Aligned to 8 bytes.
31331 (L(SP_INF_0)): Likewise.
31332
31333 2017-08-15 Florian Weimer <fweimer@redhat.com>
31334
31335 * gmon/Makefile (tests-special): Add tst-gmon-prof only if
31336 run-built-tests.
31337
31338 2017-08-15 Florian Weimer <fweimer@redhat.com>
31339
31340 Remove BROKEN_THREAD_SIGNALS support for LinuxThreads.
31341 * sysdeps/pthread/aio_misc.c (__aio_enqueue_request): Remove
31342 BROKEN_THREAD_SIGNALS code.
31343 * sysdeps/ppthread/aio_misc.h (struct waitlist, struct
31344 request_list): Remove caller_pid member used for
31345 BROKEN_THREAD_SIGNALS.
31346 [BROKEN_THREAD_SIGNALS] (__aio_notify_only): Remove declaration.
31347 * sysdeps/pthread/aio_notify.c (__aio_notify_only, __aio_notify):
31348 Remove BROKEN_THREAD_SIGNALS support.
31349 * sysdeps/pthread/aio_suspend.c (aio_suspend): Likewise.
31350 * sysdeps/pthread/lio_listio.c (lio_listio_internal): Likewise.
31351
31352 2017-08-15 Florian Weimer <fweimer@redhat.com>
31353
31354 * gmon/Makefile (tests): Add tst-gmon.
31355 (CFLAGS-tst-gmon.c, LDFLAGS-tst-gmon, CRT-tst-gmon, tst-gmon-ENV):
31356 Set.
31357 (tests-special): Add tst-gmon-prof.out.
31358 (tst-gmon.out): Depend on clean-tst-gmon-data.
31359 (clean-tst-gmon-data, tst-gmon-gprof.out): New targets.
31360 * gmon/tst-gmon.c, gmon/tst-gmon-gprof.sh: New files.
31361 * Makeconfig (+link-before-libc): Add CRT-* hook to override the
31362 startup object.
31363 * aclocal.m4 (GPROF): Set and substitute.
31364 * config.amke.in (GPROF): Set.
31365 * configure: Regenerate.
31366
31367 2017-08-15 Gustavo Romero <gromero@linux.vnet.ibm.com>
31368
31369 * elf/elf.h A (NT_PPC_TAR): New macro.
31370 (NT_PPC_PPR): Likewise.
31371 (NT_PPC_DSCR): Likewise.
31372 (NT_PPC_EBB): Likewise.
31373 (NT_PPC_PMU): Likewise.
31374 (NT_PPC_TM_CGPR): Likewise.
31375 (NT_PPC_TM_CFPR): Likewise.
31376 (NT_PPC_TM_CVMX): Likewise.
31377 (NT_PPC_TM_CVSX): Likewise.
31378 (NT_PPC_TM_SPR): Likewise.
31379 (NT_PPC_TM_CTAR): Likewise.
31380 (NT_PPC_TM_CPPR): Likewise.
31381 (NT_PPC_TM_CDSCR): Likewise.
31382
31383 2017-08-15 Florian Weimer <fweimer@redhat.com>
31384
31385 * sysdeps/i386/machine-gmon.h (mcount_internal): Declare with
31386 regparm (2) instead of internal_function.
31387 (_MCOUNT_DECL): Adjust.
31388
31389 2017-08-15 Stefan Liebler <stli@linux.vnet.ibm.com>
31390
31391 * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add z14.
31392 * sysdeps/s390/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increased.
31393
31394 2017-08-14 Joseph Myers <joseph@codesourcery.com>
31395
31396 * conform/data/sys/wait.h-data (si_value): Do not expect for
31397 XPG42.
31398
31399 2017-08-14 Florian Weimer <fweimer@redhat.com>
31400
31401 [BZ #21962]
31402 NSS: Create stubs for accidentally exported lookup functions.
31403 * grp/initgroups.c (__nss_group_lookup, __nss_lookup_function):
31404 Remove declaration.
31405 * inet/ether_hton.c (__nss_ethers_lookup): Likewise.
31406 (ether_hostton): Call __nss_ethers_lookup2 instead.
31407 * inet/ether_ntoh.c (__nss_ethers_lookup): Remove declaration.
31408 (ether_ntohost): Call __nss_ethers_lookup2 instead.
31409 * inet/getnetgrent_r.c (__nss_netgroup_lookup): Remove declaration.
31410 (setup): Call __nss_netgroup_lookup2 instead.
31411 * nss/Makefile (routines): Add compat-lookup.
31412 * nss/Versions (GLIBC_2.27): Add symbol version.
31413 * nss/XXX-lookup (DB_LOOKUP_FCT): Remove declaration. Now provided by <nsswitch.h>.
31414 (DB_COMPAT_FCT): Remove.
31415 * nss/compat-lookup.c: New file.
31416 * nss/nsswitch.h: Generate __nss_*_lookup2 function prototypes
31417 from databases.def.
31418 * nss/service-lookup.c (NO_COMPAT): Remove definition.
31419 * sunrpc/netname.c (__nss_publickey_lookup): Remove declaration.
31420 (netname2user): Call __nss_publickey_lookup2 instead.
31421 * sunrpc/publickey.c (__nss_publickey_lookup): Remove declaration.
31422 (getpublickey, getsecretkey): Call __nss_publickey_lookup2
31423 instead.
31424
31425 2017-08-14 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31426 Sergei Trofimovich <slyfox@inbox.ru>
31427
31428 [BZ #21908]
31429 * sysdeps/unix/sysv/linux/m68k/mmap_internal.h (MMAP2_PAGE_SHIFT):
31430 Rename to MMAP2_PAGE_UNIT.
31431 * sysdeps/unix/sysv/linux/mmap.c: Include mmap_internal iff
31432 __OFF_T_MATCHES_OFF64_T is not defined.
31433 * sysdeps/unix/sysv/linux/mmap_internal.h (page_unit): Declare as
31434 uint64_t.
31435 (MMAP2_PAGE_UNIT) [MMAP2_PAGE_UNIT == -1]: Redefine to page_unit.
31436 (page_unit) [MMAP2_PAGE_UNIT != -1]: Remove definition.
31437
31438 2017-08-14 Florian Weimer <fweimer@redhat.com>
31439
31440 i386: Do not set internal_function.
31441 * config.h.in (USE_REGPARMS, internal_function): Remove.
31442 * sysdeps/i386/configure.ac (USE_REGPARMS): Likewise.
31443 * sysdeps/i386/configure (USE_REGPARMS): Likewise.
31444
31445 2017-08-14 Florian Weimer <fweimer@redhat.com>
31446
31447 * elf/dl-init.c (_dl_init): Remove internal_function.
31448 * sysdeps/generic/ldsodefs.h (_dl_init): Likewise.
31449 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to _dl_init.
31450
31451 2017-08-14 Florian Weimer <fweimer@redhat.com>
31452
31453 * elf/rtld.c (_dl_start): Remove internal_function.
31454 * sysdeps/i386/dl-machine.h (RTLD_START): Adjust call to
31455 _dl_start.
31456
31457 2017-08-14 Florian Weimer <fweimer@redhat.com>
31458
31459 * elf/dl-fini.c (_dl_fini): Remove internal_function
31460 * sysdeps/generic/ldsodefs.h (_dl_fini): Likewise.
31461
31462 2017-08-14 H.J. Lu <hongjiu.lu@intel.com>
31463
31464 * sysdeps/x86/cpu-features.h (bit_cpu_IBT): New.
31465 (bit_cpu_SHSTK): Likewise.
31466 (index_cpu_IBT): Likewise.
31467 (index_cpu_SHSTK): Likewise.
31468 (reg_IBT): Likewise.
31469 (reg_SHSTK): Likewise.
31470 * sysdeps/x86/cpu-tunables.c (TUNABLE_CALLBACK (set_hwcaps)):
31471 Handle index_cpu_IBT and index_cpu_SHSTK.
31472
31473 2017-08-14 Mike FABIAN <mfabian@redhat.com>
31474
31475 [BZ #19982]
31476 * po/fr.po: Fix spelling mistake.
31477
31478 2017-08-13 Florian Weimer <fweimer@redhat.com>
31479
31480 * elf/dl-addr.c (_dl_addr): Remove internal_function.
31481 * elf/dl-error-skeleton.c (_dl_signal_error, _dl_signal_cerror)
31482 (_dl_catch_error, _dl_receive_error): Likewise.
31483 * elf/dl-open.c (_dl_find_dso_for_object): Likewise.
31484 * elf/dl-tls.c (_dl_allocate_tls_init, _dl_allocate_tls)
31485 (_dl_deallocate_tls): Likewise.
31486 * include/dlfcn.h (_dl_addr): Likewise.
31487 * sysdeps/generic/ldsodefs.h (_dl_signal_error, _dl_signal_cerror)
31488 (_dl_catch_error, _dl_receive_error, _dl_find_dso_for_object)
31489 (_dl_allocate_tls_init, _dl_allocate_tls, _dl_deallocate_tls):
31490 Likewise.
31491
31492 2017-08-13 Florian Weimer <fweimer@redhat.com>
31493
31494 * include/stdlib.h: (__strtof_nan, __strtod_nan, __strtold_nan)
31495 (__wcstof_nan, __wcstod_nan, __wcstold_nan): Remove
31496 internal_function.
31497 * stdlib/sttod_nan_main.c (STRTOD_NAN): Likewise.
31498
31499 2017-08-13 Florian Weimer <fweimer@redhat.com>
31500
31501 * elf/dl-support.c (_dl_make_stack_executable_hook): Remove
31502 internal_function.
31503 * nptl/allocatestack.c (__make_stacks_executable): Likewise.
31504 * nptl/pthreadP.h (__make_stacks_executable): Likewise.
31505 * sysdeps/generic/ldsodefs.h (_rtld_global): Remove
31506 internal_function from _dl_make_stack_executable_hook member.
31507 (_dl_make_stack_executable): Remove internal_function.
31508 * sysdeps/mach/hurd/dl-execstack.c (_dl_make_stack_executable):
31509 Likewise.
31510 * sysdeps/unix/sysv/linux/dl-execstack.c
31511 (_dl_make_stack_executable): Likewise.
31512
31513 2017-08-13 Florian Weimer <fweimer@redhat.com>
31514
31515 * sysdeps/unix/sysv/linux/netlinkaccess.h
31516 (__netlink_assert_response): Remove internal_function.
31517 * sysdeps/unix/sysv/linux/netlink_assert_response.c
31518 (__netlink_assert_response): Likewise.
31519
31520 2017-08-13 Florian Weimer <fweimer@redhat.com>
31521
31522 * include/rpc/pmap_clnt.h (__libc_rpc_getport): Remove
31523 internal_function.
31524 * sunrpoc/pm_getport.c (__libc_rpc_getport): Likewise.
31525
31526 2017-08-13 Florian Weimer <fweimer@redhat.com>
31527
31528 * grp/grp-merge.h (__copy_grp, __merge_grp): Remove
31529 internal_function.
31530 * grp/grp-merge.c (__copy_grp, __merge_grp): Likewise.
31531 * inet/netgroup.h (__internal_setnetgrent)
31532 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31533 * inet/getnetgrent_r.c (__internal_setnetgrent)
31534 (__internal_endnetgrent,__internal_getnetgrent_r): Likewise.
31535 * nss/XXX-lookup.c (DB_LOOKUP_FCT, DB_COMPAT_FCT): Likewise.
31536 * nss/getXXbyYY_r.c (DB_LOOKUP_FCT): Likewise.
31537 * nss/getXXent_r.c (DB_LOOKUP_FCT): Likewise.
31538 * nss/nsswitch.h (db_lookup_function): Likewise.
31539
31540 2017-08-13 Florian Weimer <fweimer@redhat.com>
31541
31542 * debug/fortify_fail.c (__fortify_fail, __fortify_fail_abort):
31543 Remove internal_function.
31544 * include/stdio.h (__fortify_fail, __fortify_fail_abort): Likewise.
31545 * sysdeps/mach/hurd/i386/____longjmp_chk.S (CALL_FAIL): Pass
31546 message argument on the stack.
31547 * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S (CALL_FAIL):
31548 Likeweise.
31549
31550 2017-08-12 Mike FABIAN <mfabian@redhat.com>
31551
31552 Adapt test case data to the changes in the thousands
31553 separators.
31554
31555 [BZ #20756]
31556 * localedata/tst-langinfo.sh: Adapt test case data.
31557 * stdlib/tst-strfmon_l.c: Likewise.
31558 * stdlib/tst-strtod4.c: Likewise.
31559 * stdlib/tst-strtod5i.c: Likewise.
31560
31561 2017-08-11 Florian Weimer <fweimer@redhat.com>
31562
31563 [BZ #21242]
31564 * assert/assert.h [__GNUC__ && !__STRICT_ANSI__] (assert):
31565 Suppress pedantic warning resulting from statement expression.
31566 (__ASSERT_FUNCTION): Add missing __extension__.
31567
31568 2017-08-11 Siddhesh Poyarekar <siddhesh@sourceware.org>
31569
31570 * benchtests/bench-memmove-large.c: Print output in JSON
31571 format.
31572 * benchtests/bench-memmove.c: Likewise.
31573
31574 * benchtests/bench-memccpy.c (do_one_test): Remove checks.
31575 * benchtests/bench-memchr.c (do_one_test): Likewise.
31576 * benchtests/bench-memcpy-large.c (do_one_test): Likewise.
31577 * benchtests/bench-memcpy.c (do_one_test): Likewise.
31578 * benchtests/bench-memmove-large.c (do_one_test): Likewise.
31579 * benchtests/bench-memmove.c (do_one_test): Likewise.
31580 * benchtests/bench-memset-large.c (do_one_test): Likewise.
31581 * benchtests/bench-memset.c (do_one_test): Likewise.
31582 * benchtests/bench-string.h (test_init): Remove memsets.
31583
31584 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31585
31586 * manual/lang.texi
31587 (Computing the Width of an Integer Data Type): Rename section to
31588 "Width of an Integer Type". Remove inaccurate statement regarding
31589 lack of C language facilities for determining width of integer
31590 types, and reorder content to improve flow and context of
31591 discussion.
31592
31593 2017-08-10 Rical Jasan <ricaljasan@pacific.net>
31594
31595 * lang.texi (va_copy): Change standard from ISO to C99.
31596 (__va_copy): Add standard and header annotation.
31597 Update description for clarity of origins and current use.
31598
31599 2017-08-10 Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
31600
31601 [BZ #21941]
31602 * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrtf128): Since
31603 xssqrtqp requires operands to be in Vector Registers
31604 (Altivec/VMX), replace the register constraint 'wq' with 'v'.
31605 * sysdeps/powerpc/powerpc64le/power9/fpu/e_sqrtf128.c
31606 (__ieee754_sqrtf128): Likewise.
31607
31608 2017-08-10 Wilco Dijkstra <wdijkstr@arm.com>
31609
31610 * sysdeps/aarch64/memcmp.S (memcmp):
31611 Rewrite of optimized memcmp.
31612
31613 2017-08-10 Florian Weimer <fweimer@redhat.com>
31614
31615 Introduce ld.so exceptions.
31616 * sysdeps/generic/ldsodefs.h (struct dl_exception): Define.
31617 (_dl_exception_create, _dl_exception_create_format)
31618 (_dl_exception_free, _dl_signal_exception, _dl_signal_cexception)
31619 (_dl_catch_exception): Declare.
31620 (_dl_catch_error): Update comment.
31621 * elf/dl-error-skeleton.c (struct catch): Replace objname,
31622 errstring, malloced members with exception member.
31623 (_dl_out_of_memory): Remove.
31624 (fatal_error): New function, extracted from _dl_signal_error.
31625 (_dl_signal_exception, _dl_signal_cexception): New functions.
31626 (_dl_signal_error): Call _dl_exception_create to allocate an
31627 exception object.
31628 (_dl_catch_exception): New function, based on _dl_catch_error.
31629 (_dl_catch_error): Implement using _dl_catch_exception.
31630 * elf/dl-exception.c: New file.
31631 * elf/Makefile (dl-routines): Add dl-exception.
31632 (elide-routines.os): Likewise.
31633 * elf/Version (ld/GLIBC_PRIVATE): Add _dl_exception_create,
31634 _dl_exception_create_format, _dl_exception_free.
31635 * elf/dl-deps.c (_dl_map_object_deps): Use _dl_catch_exception and
31636 _dl_signal_exception.
31637 * elf/dl-lookup.c (make_string): Remove.
31638 (_dl_lookup_symbol_x): Use _dl_exception_create_format,
31639 _dl_signal_cexception, _dl_exception_free.
31640 * elf/dl-open.c (_dl_open): Use _dl_catch_exception and
31641 _dl_signal_exception.
31642 * elf/dl-sym.c (do_sym): Likewise.
31643 * elf/dl-version.c (make_string): Remove.
31644 (match_symbol): Use _dl_exception_create_format,
31645 _dl_signal_cexception, _dl_exception_free.
31646 (_dl_check_map_versions): Likewise.
31647 * sysdeps/generic/localplt.data (ld.so): Add _dl_signal_exception,
31648 _dl_catch_exception.
31649 * sysdeps/unix/sysv/linux/aarch64/localplt.data (ld.so): Likewise.
31650 * sysdeps/unix/sysv/linux/alpha/localplt.data (ld.so): Likewise.
31651 * sysdeps/unix/sysv/linux/arm/localplt.data (ld.so): Likewise.
31652 * sysdeps/unix/sysv/linux/hppa/localplt.data (ld.so): Likewise.
31653 * sysdeps/unix/sysv/linux/i386/localplt.data (ld.so): Likewise.
31654 * sysdeps/unix/sysv/linux/ia64/localplt.data (ld.so): Likewise.
31655 * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Likewise.
31656 * sysdeps/unix/sysv/linux/microblaze/localplt.data (ld.so):
31657 Likewise.
31658 * sysdeps/unix/sysv/linux/nios2/localplt.data (ld.so): Likewise.
31659 * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data
31660 (ld.so): Likewise.
31661 * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data
31662 (ld.so): Likewise.
31663 * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data (ld.so):
31664 Likewise.
31665 * sysdeps/unix/sysv/linux/s390/localplt.data (ld.so): Likewise.
31666 * sysdeps/unix/sysv/linux/sh/localplt.data (ld.so): Likewise.
31667 * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data (ld.so):
31668 Likewise.
31669 * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data (ld.so):
31670 Likewise.
31671 * sysdeps/x86_64/localplt.data (ld.so): Likewise.
31672
31673 2017-08-10 Florian Weimer <fweimer@redhat.com>
31674
31675 * inet/net-internal.h (__inet6_scopeid_pton): Remove
31676 attribute_hidden, internal_function.
31677 * inet/inet6_scopeid_pton.c (__inet6_scopeid_pton): Remove
31678 internal_function.
31679
31680 2017-08-10 Florian Weimer <fweimer@redhat.com>
31681
31682 * malloc/malloc.c (get_max_fast): Reimplement as an inline
31683 function which calls __builtin_unreachable.
31684
31685 2017-08-10 Mike FABIAN <mfabian@redhat.com>
31686
31687 * stdlib/tst-strfmon_l.c: Fix test cases to agree with the changes in
31688 Indian monetary formatting
31689 * stdlib/Makefile: Adapt list of locales needed for the tst-strfmon_l.c
31690 test cases.
31691
31692 2017-08-09 Dmitry V. Levin <ldv@altlinux.org>
31693
31694 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (enum __ptrace_request):
31695 Fix typo in comment.
31696
31697 [BZ #21928]
31698 * sysdeps/unix/sysv/linux/sys/ptrace.h (enum __ptrace_flags,
31699 PTRACE_SEIZE_DEVEL): Remove.
31700 * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h: Likewise.
31701 * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31702 * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31703 * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31704 * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31705
31706 2017-08-09 Joseph Myers <joseph@codesourcery.com>
31707
31708 * posix/bits/types.h (__qaddr_t): Remove.
31709
31710 [BZ #21457]
31711 * sysdeps/arm/sys/ucontext.h (__ctx): Move undefine further down.
31712 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31713 __glibc_reserved1.
31714 * sysdeps/generic/sys/ucontext.h (__ctx): New macro.
31715 (ucontext_t): Use __ctx with uc_flags.
31716 * sysdeps/i386/sys/ucontext.h (__ctx): Move undefine further down.
31717 (__ctxt): Likewise.
31718 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31719 __glibc_reserved1.
31720 * sysdeps/m68k/sys/ucontext.h (__ctx): Move undefine further down.
31721 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31722 __glibc_reserved1.
31723 * sysdeps/mips/sys/ucontext.h (__ctx): Move undefine further down.
31724 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31725 __glibc_reserved1.
31726 * sysdeps/unix/sysv/linux/aarch64/sys/ucontext.h (__ctx): New
31727 macro.
31728 (ucontext_t): Use __ctx with uc_flags.
31729 * sysdeps/unix/sysv/linux/alpha/sys/ucontext.h (__ctx): New macro.
31730 (ucontext_t): Use __ctx with uc_flags.
31731 * sysdeps/unix/sysv/linux/arm/sys/ucontext.h (__ctx): New macro.
31732 (ucontext_t): Use __ctx with uc_flags and uc_regspace.
31733 * sysdeps/unix/sysv/linux/hppa/sys/ucontext.h (__ctx): New macro.
31734 (ucontext_t): Use __ctx with uc_flags.
31735 * sysdeps/unix/sysv/linux/m68k/sys/ucontext.h (__ctx): Move
31736 undefine further down.
31737 (ucontext_t): Use __ctx with uc_flags. Rename uc_filler to
31738 __glibc_reserved1.
31739 * sysdeps/unix/sysv/linux/mips/sys/ucontext.h (__ctx): Move
31740 undefine further down.
31741 (ucontext_t): Use __ctx with uc_flags.
31742 * sysdeps/unix/sysv/linux/nios2/sys/ucontext.h (__ctx): Move
31743 undefine further down.
31744 (ucontext_t): Use __ctx with uc_flags.
31745 * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h (ucontext_t): Use
31746 __ctx with uc_flags, uc_regs_ptr, uc_regs and uc_reg_space.
31747 Rename uc_pad to __glibc_reserved1.
31748 * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__ctx): Move
31749 undefine further down.
31750 (ucontext_t): Use __ctx with uc_flags.
31751 * sysdeps/unix/sysv/linux/sh/sys/ucontext.h (__ctx): Move undefine
31752 further down.
31753 (ucontext_t): Use __ctx with uc_flags.
31754 * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (ucontext_t): Use
31755 __ctx with uc_flags.
31756 * sysdeps/unix/sysv/linux/tile/sys/ucontext.h (__ctx): New macro.
31757 (ucontext_t): Use __ctx with uc_flags.
31758 * sysdeps/unix/sysv/linux/x86/sys/ucontext.h (ucontext_t): Use
31759 __ctx with uc_flags.
31760
31761 2017-08-09 Florian Weimer <fweimer@redhat.com>
31762
31763 [BZ #21932]
31764 * nss/getXXbyYY_r.c (REENTRANT_NAME): Call __resolv_context_put
31765 before early return.
31766
31767 2017-08-09 Andreas Schwab <schwab@suse.de>
31768
31769 [BZ #21041]
31770 * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Update reference to
31771 renamed alias.
31772
31773 [BZ #21041]
31774 * nptl/Makefile (tests) [$(build-shared) = yes]: Add
31775 tst-compat-forwarder.
31776 (modules-names): Add tst-compat-forwarder-mod.
31777 ($(objpfx)tst-compat-forwarder): Depend on
31778 $(objpfx)tst-compat-forwarder-mod.so.
31779 * nptl/tst-compat-forwarder.c: New file.
31780 * nptl/tst-compat-forwarder-mod.c: New file.
31781
31782 2017-08-09 Siddhesh Poyarekar <siddhesh@sourceware.org>
31783
31784 * sysdeps/aarch64/multiarch/memcpy_falkor.S: Fix code style in
31785 comments.
31786
31787 * manual/tunables.texi (Tunable glibc.tune.cpu): Add falkor.
31788 * sysdeps/aarch64/multiarch/Makefile (sysdep_routines): Add
31789 memcpy_falkor.
31790 * sysdeps/aarch64/multiarch/ifunc-impl-list.c (MAX_IFUNC):
31791 Bump.
31792 (__libc_ifunc_impl_list): Add __memcpy_falkor.
31793 * sysdeps/aarch64/multiarch/memcpy.c: Likewise.
31794 * sysdeps/aarch64/multiarch/memcpy_falkor.S: New file.
31795 * sysdeps/unix/sysv/linux/aarch64/cpu-features.c (cpu_list):
31796 Add falkor.
31797 * sysdeps/unix/sysv/linux/aarch64/cpu-features.h (IS_FALKOR):
31798 New macro.
31799
31800 2017-08-08 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31801
31802 [BZ #759]
31803 * manual/setjmp.texi (getcontex): Document uc_stack value
31804 compatibility differences.
31805
31806 2017-08-08 Joseph Myers <joseph@codesourcery.com>
31807
31808 * malloc/mcheck.c (old_free_hook): Use void * instead of __ptr_t.
31809 (old_malloc_hook): Likewise.
31810 (old_memalign_hook): Likewise.
31811 (old_realloc_hook): Likewise.
31812 (struct hdr): Likewise.
31813 (flood): Likewise.
31814 (freehook): Likewise.
31815 (mallochook): Likewise.
31816 (memalignhook): Likewise.
31817 (reallochook): Likewise.
31818 (mprobe): Likewise.
31819 * malloc/mtrace.c (mallwatch): Likewise.
31820 (tr_old_free_hook): Likewise.
31821 (tr_old_malloc_hook): Likewise.
31822 (tr_old_realloc_hook): Likewise.
31823 (tr_old_memalign_hook): Likewise.
31824 (tr_where): Likewise.
31825 (lock_and_info): Likewise.
31826 (tr_freehook): Likewise.
31827 (tr_mallochook): Likewise.
31828 (tr_reallochook): Likewise.
31829 (tr_memalignhook): Likewise.
31830 * misc/err.h [!__GNUC_VA_LIST] (__gnuc_va_list): Likewise.
31831 * misc/mmap.c (__mmap): Likewise.
31832 * misc/mmap64.c (__mmap64): Likewise.
31833 * misc/mprotect.c (__mprotect): Likewise.
31834 * misc/msync.c (msync): Likewise.
31835 * misc/munmap.c (__munmap): Likewise.
31836 * posix/posix_madvise.c (posix_madvise): Likewise.
31837 * socket/send.c (__send): Likewise.
31838 * socket/sendto.c (__sendto): Likewise.
31839 * socket/setsockopt.c (__setsockopt): Likewise.
31840 * string/memcmp.c (__ptr_t): Remove macro.
31841 (MEMCMP): Use void * instead of ptr_t.
31842 * string/memrchr.c (__ptr_t): Remove macro.
31843 (__memrchr): Use void * instead of ptr_t.
31844 * sysdeps/mach/hurd/dl-sysdep.c (__mmap): Likewise.
31845 * sysdeps/mach/hurd/mmap.c (__mmap): Likewise.
31846 * sysdeps/mach/hurd/mmap64.c (__mmap64): Likewise.
31847 * sysdeps/mach/mprotect.c (__mprotect): Likewise.
31848 * sysdeps/mach/msync.c (msync): Likewise.
31849 * sysdeps/mach/munmap.c (__munmap): Likewise.
31850 * sysdeps/mips/bits/setjmp.h (struct __jmp_buf_internal_tag):
31851 Likewise.
31852 * sysdeps/posix/getcwd.c (__getcwd): Likewise.
31853 * sysdeps/powerpc/powerpc32/memset.S (memset): Likewise.
31854 * sysdeps/powerpc/powerpc32/power4/memcpy.S (memcpy): Likewise.
31855 * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Likewise.
31856 * sysdeps/powerpc/powerpc32/power6/memcpy.S (memcpy): Likewise.
31857 * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
31858 * sysdeps/powerpc/powerpc32/power7/memcpy.S (memcpy): Likewise.
31859 * sysdeps/powerpc/powerpc32/power7/mempcpy.S (__mempcpy):
31860 Likewise.
31861 * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
31862 * sysdeps/powerpc/powerpc64/memcpy.S (memcpy): Likewise.
31863 * sysdeps/powerpc/powerpc64/memset.S (memset): Likewise.
31864 * sysdeps/powerpc/powerpc64/power4/memcpy.S (memcpy): Likewise.
31865 * sysdeps/powerpc/powerpc64/power4/memset.S (memset): Likewise.
31866 * sysdeps/powerpc/powerpc64/power6/memcpy.S (memcpy): Likewise.
31867 * sysdeps/powerpc/powerpc64/power6/memset.S (memset): Likewise.
31868 * sysdeps/powerpc/powerpc64/power7/memcpy.S (memcpy): Likewise.
31869 * sysdeps/powerpc/powerpc64/power7/mempcpy.S (__mempcpy):
31870 Likewise.
31871 * sysdeps/powerpc/powerpc64/power7/memset.S (memset): Likewise.
31872 * sysdeps/powerpc/powerpc64/power8/memset.S (memset): Likewise.
31873 * sysdeps/tile/memcmp.c (__ptr_t): Remove macro.
31874 (MEMCMP): Use void * instead of ptr_t.
31875 * sysdeps/unix/sysv/linux/alpha/oldglob.c (old_glob_t): Likewise.
31876 * sysdeps/unix/sysv/linux/mmap.c (__mmap): Likewise.
31877
31878 2017-08-08 Florian Weimer <fweimer@redhat.com>
31879
31880 * sysdeps/posix/getaddrinfo.c (gaih_inet): Remove unreachable
31881 return statement.
31882
31883 2017-08-08 H.J. Lu <hongjiu.lu@intel.com>
31884
31885 [BZ #21913]
31886 * csu/libc-tls.c: Include <startup.h> first.
31887 (__libc_setup_tls): Call _startup_fatal instead of __libc_fatal.
31888 * elf/dl-tunables.c: Include <startup.h> first.
31889 * include/libc-symbols.h (BUILD_PIE_DEFAULT): New.
31890 * sysdeps/generic/startup.h: New file.
31891 * sysdeps/unix/sysv/linux/i386/startup.h: Likewise.
31892 * sysdeps/unix/sysv/linux/i386/brk.c [BUILD_PIE_DEFAULT != 0]
31893 (I386_USE_SYSENTER): New. Defined to 0.
31894
31895 2017-08-08 Andreas Schwab <schwab@suse.de>
31896
31897 [BZ #21041]
31898 * nptl/pt-longjmp.c (longjmp, siglongjmp): Don't use IFUNC resolver.
31899 * nptl/pt-system.c (system): Likewise.
31900
31901 2017-08-07 Adhemerval Zanella <adhemerval.zanella@linaro.org>
31902
31903 [BZ #21780]
31904 * sysdeps/posix/preadv2.c (preadv2): Use ENOTSUP instead of
31905 EOPNOTSUPP.
31906 * sysdeps/posix/preadv64v2.c (preadv64v2): Likewise.
31907 * sysdeps/posix/pwritev2.c (pwritev2): Likewise.
31908 * sysdeps/posix/pwritev64v2.c (pwritev64v2): Likewise.
31909 * sysdeps/unix/sysv/linux/preadv2.c (preadv2): Likewise.
31910 * sysdeps/unix/sysv/linux/preadv64v2.c (preadv64v2): Likewise.
31911 * sysdeps/unix/sysv/linux/pwritev2.c (pwritev2): Likewise.
31912 * sysdeps/unix/sysv/linux/pwritev64v2.c (pwritev64v2): Likewise.
31913
31914 2017-08-07 Joseph Myers <joseph@codesourcery.com>
31915
31916 [BZ #21899]
31917 * bits/sigaction.h (struct sigaction): Define sa_handler and
31918 sa_sigaction using union also for [__USE_XOPEN_EXTENDED].
31919 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31920 [__USE_XOPEN_EXTENDED].
31921 (SA_RESTART): Likewise.
31922 (SA_NODEFER): Likewise.
31923 (SA_RESETHAND): Likewise.
31924 * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h
31925 (struct sigaction): Define sa_handler and sa_sigaction using union
31926 also for [__USE_XOPEN_EXTENDED].
31927 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31928 [__USE_XOPEN_EXTENDED].
31929 (SA_RESTART): Likewise.
31930 (SA_NODEFER): Likewise.
31931 (SA_RESETHAND): Likewise.
31932 * sysdeps/unix/sysv/linux/bits/sigaction.h
31933 (struct sigaction): Define sa_handler and sa_sigaction using union
31934 also for [__USE_XOPEN_EXTENDED].
31935 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31936 [__USE_XOPEN_EXTENDED].
31937 (SA_RESTART): Likewise.
31938 (SA_NODEFER): Likewise.
31939 (SA_RESETHAND): Likewise.
31940 * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
31941 (struct sigaction): Define sa_handler and sa_sigaction using union
31942 also for [__USE_XOPEN_EXTENDED].
31943 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31944 [__USE_XOPEN_EXTENDED].
31945 (SA_RESTART): Likewise.
31946 (SA_NODEFER): Likewise.
31947 (SA_RESETHAND): Likewise.
31948 * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h
31949 (struct sigaction): Define sa_handler and sa_sigaction using union
31950 also for [__USE_XOPEN_EXTENDED].
31951 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31952 [__USE_XOPEN_EXTENDED].
31953 (SA_RESTART): Likewise.
31954 (SA_NODEFER): Likewise.
31955 (SA_RESETHAND): Likewise.
31956 * sysdeps/unix/sysv/linux/mips/bits/sigaction.h
31957 (struct sigaction): Define sa_handler and sa_sigaction using union
31958 also for [__USE_XOPEN_EXTENDED].
31959 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31960 [__USE_XOPEN_EXTENDED].
31961 (SA_RESTART): Likewise.
31962 (SA_NODEFER): Likewise.
31963 (SA_RESETHAND): Likewise.
31964 * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
31965 (struct sigaction): Define sa_handler and sa_sigaction using union
31966 also for [__USE_XOPEN_EXTENDED].
31967 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31968 [__USE_XOPEN_EXTENDED].
31969 (SA_RESTART): Likewise.
31970 (SA_NODEFER): Likewise.
31971 (SA_RESETHAND): Likewise.
31972 * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
31973 (struct sigaction): Define sa_handler and sa_sigaction using union
31974 also for [__USE_XOPEN_EXTENDED].
31975 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31976 [__USE_XOPEN_EXTENDED].
31977 (SA_RESTART): Likewise.
31978 (SA_NODEFER): Likewise. Define directly rather than as alias.
31979 (SA_RESETHAND): Likewise.
31980 (SA_INTERRUPT): Define only for [__USE_MISC].
31981 (SA_NOMASK): Define as alias of SA_NODEFER, only for [__USE_MISC].
31982 (SA_ONESHOT): Define as alias of SA_RESETHAND, only for
31983 [__USE_MISC].
31984 (SA_STACK): Define only for [__USE_MISC].
31985 * sysdeps/unix/sysv/linux/tile/bits/sigaction.h
31986 (struct sigaction): Define sa_handler and sa_sigaction using union
31987 also for [__USE_XOPEN_EXTENDED].
31988 (SA_ONSTACK): Change [__USE_UNIX98] condition to
31989 [__USE_XOPEN_EXTENDED].
31990 (SA_RESTART): Likewise.
31991 (SA_NODEFER): Likewise.
31992 (SA_RESETHAND): Likewise.
31993 (SA_NOPTRACE): Define only for [__USE_MISC].
31994
31995 * catgets/catgets.c (catgets): Use uintN_t instead of u_intN_t.
31996 * catgets/catgetsinfo.h (struct catalog_obj): Likewise.
31997 (struct catalog_info): Likewise.
31998 * inet/htontest.c (lo): Likewise.
31999 (foo): Likewise.
32000 * inet/inet_lnaof.c (inet_lnaof): Likewise.
32001 * inet/inet_net.c (inet_network): Likewise.
32002 * inet/inet_netof.c (inet_netof): Likewise.
32003 * inet/rcmd.c (__ivaliduser): Likewise.
32004 (iruserok): Likewise.
32005 * locale/loadlocale.c (_nl_intern_locale_data): Likewise.
32006 * locale/programs/locale-spec.c (locale_special): Likewise.
32007 * nis/nis_findserv.c (struct findserv_req): Likewise.
32008 (__nis_findfastest_with_timeout): Likewise.
32009 * nss/test-netdb.c (test_network): Likewise.
32010 * resolv/inet_neta.c (inet_neta): Likewise.
32011 * resolv/ns_date.c (ns_datetosecs): Likewise.
32012 (SECS_PER_DAY): Likewise.
32013 * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyaddr_r):
32014 Likewise.
32015 * resolv/res_comp.c (__putlong): Likewise.
32016 (__putshort): Likewise.
32017 (_getlong): Likewise.
32018 (_getshort): Likewise.
32019 * resolv/res_debug.c (p_time): Likewise.
32020 (precsize_ntoa): Likewise.
32021 (precsize_aton): Likewise.
32022 (latlon2ul): Likewise.
32023 (loc_aton): Likewise.
32024 (loc_ntoa): Likewise.
32025 * resolv/res_hconf.c (struct netaddr): Likewise.
32026 (_res_hconf_reorder_addrs): Likewise.
32027 * sunrpc/clnt_tcp.c (clnttcp_call): Likewise.
32028 (clnttcp_control): Likewise.
32029 * sunrpc/clnt_udp.c (clntudp_call): Likewise.
32030 (clntudp_control): Likewise.
32031 * sunrpc/clnt_unix.c (clntunix_call): Likewise.
32032 (clntunix_control): Likewise.
32033 * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise.
32034 * sunrpc/rpc/auth.h (union des_block): Likewise.
32035 * sunrpc/tst-udp-nonblocking.c (do_test): Likewise.
32036 * sunrpc/xdr_rec.c (struct rec_strm): Likewise.
32037 (xdrrec_create): Likewise.
32038 (xdrrec_endofrecord): Likewise.
32039 (flush_out): Likewise.
32040 * sunrpc/xdr_stdio.c (xdrstdio_getlong): Likewise.
32041 (xdrstdio_putlong): Likewise.
32042 * sysdeps/unix/sysv/linux/errqueue.h (struct sock_extended_err):
32043 Likewise.
32044
32045 * misc/sys/cdefs.h (__long_double_t): Remove.
32046 * stdio-common/printf_fp.c (__printf_fp_l): Use long double
32047 instead of __long_double_t,
32048 * stdlib/strfmon_l.c (__vstrfmon_l): Likewise.
32049
32050 2017-08-07 Siddhesh Poyarekar <siddhesh@sourceware.org>
32051
32052 * benchtests/scripts/compare_strings.py: Avoid display error when
32053 running on a text terminal.
32054
32055 * benchtests/scripts/compare_strings.py (main): Add an
32056 optional -base option.
32057 (process_results): New argument base_func.
32058
32059 * benchtests/bench-memcpy.c (test_main): Use TEST_NAME instead of
32060 hardcoding memcpy.
32061 * benchtests/bench-memcpy-large.c (test_name): Likewise.
32062 * benchtests/bench-memcpy-random.c (test_name): Likewise.
32063
32064 2017-08-07 Andreas Schwab <schwab@suse.de>
32065
32066 * elf/Makefile ($(objpfx)tst-pathopt.out): Redirect output to target.
32067 * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
32068 * intl/Makefile ($(objpfx)tst-gettext.out)
32069 ($(objpfx)tst-translit.out, $(objpfx)tst-gettext2.out)
32070 ($(objpfx)tst-gettext4.out, $(objpfx)tst-gettext6.out): Likewise.
32071 * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
32072 * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
32073 * nptl/Makefile ($(objpfx)tst-tls6.out): Likewise.
32074 * posix/Makefile ($(objpfx)globtest.out)
32075 ($(objpfx)wordexp-tst.out, $(objpfx)tst-getconf.out): Likewise.
32076 * stdio-common/Makefile ($(objpfx)tst-unbputc.out)
32077 ($(objpfx)tst-printf.out): Likewise.
32078 * stdlib/Makefile ($(objpfx)tst-fmtmsg.out)
32079 ($(objpfx)tst-setcontext3.out): Likewise.
32080
32081 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
32082
32083 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32084 Add e_exp-fma, e_log-fma, e_pow-fma, s_atan-fma, e_asin-fma,
32085 e_atan2-fma, s_sin-fma, s_tan-fma, mplog-fma, mpa-fma,
32086 slowexp-fma, slowpow-fma, sincos32-fma, doasin-fma, dosincos-fma,
32087 halfulp-fma, mpexp-fma, mpatan2-fma, mpatan-fma, mpsqrt-fma,
32088 and mptan-fma.
32089 (CFLAGS-doasin-fma.c): New.
32090 (CFLAGS-dosincos-fma.c): Likewise.
32091 (CFLAGS-e_asin-fma.c): Likewise.
32092 (CFLAGS-e_atan2-fma.c): Likewise.
32093 (CFLAGS-e_exp-fma.c): Likewise.
32094 (CFLAGS-e_log-fma.c): Likewise.
32095 (CFLAGS-e_pow-fma.c): Likewise.
32096 (CFLAGS-halfulp-fma.c): Likewise.
32097 (CFLAGS-mpa-fma.c): Likewise.
32098 (CFLAGS-mpatan-fma.c): Likewise.
32099 (CFLAGS-mpatan2-fma.c): Likewise.
32100 (CFLAGS-mpexp-fma.c): Likewise.
32101 (CFLAGS-mplog-fma.c): Likewise.
32102 (CFLAGS-mpsqrt-fma.c): Likewise.
32103 (CFLAGS-mptan-fma.c): Likewise.
32104 (CFLAGS-s_atan-fma.c): Likewise.
32105 (CFLAGS-sincos32-fma.c): Likewise.
32106 (CFLAGS-slowexp-fma.c): Likewise.
32107 (CFLAGS-slowpow-fma.c): Likewise.
32108 (CFLAGS-s_sin-fma.c): Likewise.
32109 (CFLAGS-s_tan-fma.c): Likewise.
32110 * sysdeps/x86_64/fpu/multiarch/doasin-fma.c: New file.
32111 * sysdeps/x86_64/fpu/multiarch/dosincos-fma.c: Likewise.
32112 * sysdeps/x86_64/fpu/multiarch/e_asin-fma.c: Likewise.
32113 * sysdeps/x86_64/fpu/multiarch/e_atan2-fma.c: Likewise.
32114 * sysdeps/x86_64/fpu/multiarch/e_exp-fma.c: Likewise.
32115 * sysdeps/x86_64/fpu/multiarch/e_log-fma.c: Likewise.
32116 * sysdeps/x86_64/fpu/multiarch/e_pow-fma.c: Likewise.
32117 * sysdeps/x86_64/fpu/multiarch/halfulp-fma.c: Likewise.
32118 * sysdeps/x86_64/fpu/multiarch/ifunc-avx-fma4.h: Likewise.
32119 * sysdeps/x86_64/fpu/multiarch/ifunc-fma4.h: Likewise.
32120 * sysdeps/x86_64/fpu/multiarch/mpa-fma.c: Likewise.
32121 * sysdeps/x86_64/fpu/multiarch/mpatan-fma.c: Likewise.
32122 * sysdeps/x86_64/fpu/multiarch/mpatan2-fma.c: Likewise.
32123 * sysdeps/x86_64/fpu/multiarch/mpexp-fma.c: Likewise.
32124 * sysdeps/x86_64/fpu/multiarch/mplog-fma.c: Likewise.
32125 * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma.c: Likewise.
32126 * sysdeps/x86_64/fpu/multiarch/mptan-fma.c: Likewise.
32127 * sysdeps/x86_64/fpu/multiarch/s_atan-fma.c: Likewise.
32128 * sysdeps/x86_64/fpu/multiarch/s_sin-fma.c: Likewise.
32129 * sysdeps/x86_64/fpu/multiarch/s_tan-fma.c: Likewise.
32130 * sysdeps/x86_64/fpu/multiarch/sincos32-fma.c: Likewise.
32131 * sysdeps/x86_64/fpu/multiarch/slowexp-fma.c: Likewise.
32132 * sysdeps/x86_64/fpu/multiarch/slowpow-fma.c: Likewise.
32133 * sysdeps/x86_64/fpu/multiarch/e_asin.c: Rewrite.
32134 * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
32135 * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
32136 * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
32137 * sysdeps/x86_64/fpu/multiarch/e_pow.c: Likewise.
32138 * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
32139 * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
32140 * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
32141
32142 2017-08-04 Joseph Myers <joseph@codesourcery.com>
32143
32144 * sysdeps/generic/math_private.h (__EXPR_FLT128): Remove macro.
32145 (min_of_type_f): New macro.
32146 (min_of_type_): Likewise.
32147 (min_of_type_l): Likewise.
32148 (min_of_type_f128): Likewise.
32149 (min_of_type): Define using __MATH_TG and taking an expression
32150 argument.
32151 (math_check_force_underflow): Pass expression instead of type to
32152 min_of_type.
32153 (math_check_force_underflow_nonneg): Likewise.
32154
32155 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32156
32157 * sysdeps/x86/cpu-features.h [__ASSEMBLER__]
32158 (LOAD_RTLD_GLOBAL_RO_RDX, HAS_FEATURE, LOAD_FUNC_GOT_EAX,
32159 HAS_CPU_FEATURE, HAS_ARCH_FEATURE): Removed.
32160
32161 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32162
32163 * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32164 bcopy-ia32, bzero-ia32, rawmemchr-ia32 memchr-ia32,
32165 memcmp-ia32, memcpy-ia32, memmove-ia32, mempcpy-ia32,
32166 memset-ia32, strcat-ia32, strchr-ia32, strrchr-ia32,
32167 strcpy-ia32, strcmp-ia32, strcspn-ia32, strpbrk-ia32,
32168 strspn-ia32, strlen-ia32, stpcpy-ia32, stpncpy-ia32,
32169 memcpy_chk-nonshared, mempcpy_chk-nonshared,
32170 memmove_chk-nonshared and memset_chk-nonshared
32171 * sysdeps/i386/i686/multiarch/bcopy-ia32.S: New file.
32172 * sysdeps/i386/i686/multiarch/bcopy.c: Likewise.
32173 * sysdeps/i386/i686/multiarch/bzero-ia32.S: Likewise.
32174 * sysdeps/i386/i686/multiarch/bzero.c: Likewise.
32175 * sysdeps/i386/i686/multiarch/ifunc-memmove.h: Likewise.
32176 * sysdeps/i386/i686/multiarch/ifunc-memset.h: Likewise.
32177 * sysdeps/i386/i686/multiarch/ifunc-sse2-bsf.h: Likewise.
32178 * sysdeps/i386/i686/multiarch/ifunc-sse2-ssse3.h: Likewise.
32179 * sysdeps/i386/i686/multiarch/ifunc-sse2.h: Likewise.
32180 * sysdeps/i386/i686/multiarch/ifunc-sse4_2.h: Likewise.
32181 * sysdeps/i386/i686/multiarch/ifunc-ssse3-sse4_2.h: Likewise.
32182 * sysdeps/i386/i686/multiarch/memchr-ia32.S: Likewise.
32183 * sysdeps/i386/i686/multiarch/memchr.c: Likewise.
32184 * sysdeps/i386/i686/multiarch/memcmp-ia32.S: Likewise.
32185 * sysdeps/i386/i686/multiarch/memcmp.c: Likewise.
32186 * sysdeps/i386/i686/multiarch/memcpy-ia32.S: Likewise.
32187 * sysdeps/i386/i686/multiarch/memcpy.c: Likewise.
32188 * sysdeps/i386/i686/multiarch/memcpy_chk-nonshared.S: Likewise.
32189 * sysdeps/i386/i686/multiarch/memcpy_chk.c: Likewise.
32190 * sysdeps/i386/i686/multiarch/memmove-ia32.S: Likewise.
32191 * sysdeps/i386/i686/multiarch/memmove.c: Likewise.
32192 * sysdeps/i386/i686/multiarch/memmove_chk-nonshared.S: Likewise.
32193 * sysdeps/i386/i686/multiarch/memmove_chk.c: Likewise.
32194 * sysdeps/i386/i686/multiarch/mempcpy-ia32.S: Likewise.
32195 * sysdeps/i386/i686/multiarch/mempcpy.c: Likewise.
32196 * sysdeps/i386/i686/multiarch/mempcpy_chk-nonshared.S: Likewise.
32197 * sysdeps/i386/i686/multiarch/mempcpy_chk.c: Likewise.
32198 * sysdeps/i386/i686/multiarch/memrchr.c: Likewise.
32199 * sysdeps/i386/i686/multiarch/memset-ia32.S: Likewise.
32200 * sysdeps/i386/i686/multiarch/memset.c: Likewise.
32201 * sysdeps/i386/i686/multiarch/memset_chk-nonshared.S: Likewise.
32202 * sysdeps/i386/i686/multiarch/rawmemchr-ia32.S: Likewise.
32203 * sysdeps/i386/i686/multiarch/rawmemchr.c: Likewise.
32204 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32205 * sysdeps/i386/i686/multiarch/stpcpy-ia32.S: Likewise.
32206 * sysdeps/i386/i686/multiarch/stpcpy.c: Likewise.
32207 * sysdeps/i386/i686/multiarch/stpncpy-ia32.S: Likewise.
32208 * sysdeps/i386/i686/multiarch/stpncpy.c: Likewise.
32209 * sysdeps/i386/i686/multiarch/strcasecmp.c: Likewise.
32210 * sysdeps/i386/i686/multiarch/strcasecmp_l.c: Likewise.
32211 * sysdeps/i386/i686/multiarch/strcat-ia32.S: Likewise.
32212 * sysdeps/i386/i686/multiarch/strcat.c: Likewise.
32213 * sysdeps/i386/i686/multiarch/strchr-ia32.S: Likewise.
32214 * sysdeps/i386/i686/multiarch/strchr.c: Likewise.
32215 * sysdeps/i386/i686/multiarch/strcmp-ia32.S: Likewise.
32216 * sysdeps/i386/i686/multiarch/strcmp.c: Likewise.
32217 * sysdeps/i386/i686/multiarch/strcpy-ia32.S: Likewise.
32218 * sysdeps/i386/i686/multiarch/strcpy.c: Likewise.
32219 * sysdeps/i386/i686/multiarch/strcspn-ia32.S: Likewise.
32220 * sysdeps/i386/i686/multiarch/strcspn.c: Likewise.
32221 * sysdeps/i386/i686/multiarch/strlen-ia32.S: Likewise.
32222 * sysdeps/i386/i686/multiarch/strlen.c: Likewise.
32223 * sysdeps/i386/i686/multiarch/strncase.c: Likewise.
32224 * sysdeps/i386/i686/multiarch/strncase_l.c: Likewise.
32225 * sysdeps/i386/i686/multiarch/strncat.c: Likewise.
32226 * sysdeps/i386/i686/multiarch/strncmp.c: Likewise.
32227 * sysdeps/i386/i686/multiarch/strncpy.c: Likewise.
32228 * sysdeps/i386/i686/multiarch/strnlen.c: Likewise.
32229 * sysdeps/i386/i686/multiarch/strpbrk-ia32.S: Likewise.
32230 * sysdeps/i386/i686/multiarch/strpbrk.c: Likewise.
32231 * sysdeps/i386/i686/multiarch/strrchr-ia32.S: Likewise.
32232 * sysdeps/i386/i686/multiarch/strrchr.c: Likewise.
32233 * sysdeps/i386/i686/multiarch/strspn-ia32.S: Likewise.
32234 * sysdeps/i386/i686/multiarch/strspn.c: Likewise.
32235 * sysdeps/i386/i686/multiarch/wcschr.c: Likewise.
32236 * sysdeps/i386/i686/multiarch/wcscmp.c: Likewise.
32237 * sysdeps/i386/i686/multiarch/wcscpy.c: Likewise.
32238 * sysdeps/i386/i686/multiarch/wcslen.c: Likewise.
32239 * sysdeps/i386/i686/multiarch/wcsrchr.c: Likewise.
32240 * sysdeps/i386/i686/multiarch/wmemcmp.c: Likewise.
32241 * sysdeps/i386/i686/multiarch/bcopy.S: Removed.
32242 * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
32243 * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
32244 * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
32245 * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
32246 * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
32247 * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
32248 * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
32249 * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
32250 * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
32251 * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
32252 * sysdeps/i386/i686/multiarch/memset.S: Likewise.
32253 * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
32254 * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
32255 * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
32256 * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
32257 * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
32258 * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
32259 * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
32260 * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
32261 * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
32262 * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
32263 * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
32264 * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
32265 * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
32266 * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
32267 * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
32268 * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
32269 * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
32270 * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
32271 * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
32272 * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
32273 * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
32274 * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
32275 * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
32276 * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
32277 * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
32278 * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
32279
32280 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32281
32282 * sysdeps/x86_64/fpu/multiarch/Makefile (libmvec-sysdep_routines)
32283 Add svml_d_cos2_core-sse2, svml_d_cos4_core-sse,
32284 svml_d_cos8_core-avx2, svml_d_exp2_core-sse2,
32285 svml_d_exp4_core-sse, svml_d_exp8_core-avx2,
32286 svml_d_log2_core-sse2, svml_d_log4_core-sse,
32287 svml_d_log8_core-avx2, svml_d_pow2_core-sse2,
32288 svml_d_pow4_core-sse, svml_d_pow8_core-avx2
32289 svml_d_sin2_core-sse2, svml_d_sin4_core-sse,
32290 svml_d_sin8_core-avx2, svml_d_sincos2_core-sse2,
32291 svml_d_sincos4_core-sse, svml_d_sincos8_core-avx2,
32292 svml_s_cosf16_core-avx2, svml_s_cosf4_core-sse2,
32293 svml_s_cosf8_core-sse, svml_s_expf16_core-avx2,
32294 svml_s_expf4_core-sse2, svml_s_expf8_core-sse,
32295 svml_s_logf16_core-avx2, svml_s_logf4_core-sse2,
32296 svml_s_logf8_core-sse, svml_s_powf16_core-avx2,
32297 svml_s_powf4_core-sse2, svml_s_powf8_core-sse,
32298 svml_s_sincosf16_core-avx2, svml_s_sincosf4_core-sse2,
32299 svml_s_sincosf8_core-sse, svml_s_sinf16_core-avx2,
32300 svml_s_sinf4_core-sse2 and svml_s_sinf8_core-sse.
32301 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx2.h: New file.
32302 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-avx512.h: Likewise.
32303 * sysdeps/x86_64/fpu/multiarch/ifunc-mathvec-sse4_1.h: Likewise.
32304 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.c: Likewise.
32305 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.c: Likewise.
32306 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.c: Likewise.
32307 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.c: Likewise.
32308 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.c: Likewise.
32309 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.c: Likewise.
32310 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.c: Likewise.
32311 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.c: Likewise.
32312 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.c: Likewise.
32313 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.c: Likewise.
32314 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.c: Likewise.
32315 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.c: Likewise.
32316 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.c: Likewise.
32317 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.c: Likewise.
32318 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.c: Likewise.
32319 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.c: Likewise.
32320 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.c: Likewise.
32321 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.c: Likewise.
32322 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.c: Likewise.
32323 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.c: Likewise.
32324 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.c: Likewise.
32325 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.c: Likewise.
32326 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.c: Likewise.
32327 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.c: Likewise.
32328 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.c: Likewise.
32329 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.c: Likewise.
32330 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.c: Likewise.
32331 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.c: Likewise.
32332 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.c: Likewise.
32333 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.c: Likewise.
32334 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.c: Likewise.
32335 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.c: Likewise.
32336 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.c: Likewise.
32337 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.c: Likewise.
32338 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.c: Likewise.
32339 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.c: Likewise.
32340 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core.S: Renamed to
32341 ...
32342 * sysdeps/x86_64/fpu/multiarch/svml_d_cos2_core-sse2.S: This.
32343 Don't include <sysdep.h> nor <init-arch.h>.
32344 (_ZGVbN2v_cos): Removed.
32345 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core.S: Renamed to
32346 ...
32347 * sysdeps/x86_64/fpu/multiarch/svml_d_cos4_core-sse.S: This.
32348 Don't include <sysdep.h> nor <init-arch.h>.
32349 (_ZGVdN4v_cos): Removed.
32350 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core.S: Renamed to
32351 ...
32352 * sysdeps/x86_64/fpu/multiarch/svml_d_cos8_core-avx2.S: This.
32353 Don't include <sysdep.h> nor <init-arch.h>.
32354 (_ZGVeN8v_cos): Removed.
32355 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core.S: Renamed to
32356 ...
32357 * sysdeps/x86_64/fpu/multiarch/svml_d_exp2_core-sse2.S: This.
32358 Don't include <sysdep.h> nor <init-arch.h>.
32359 (_ZGVbN2v_exp): Removed.
32360 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core.S: Renamed to
32361 ...
32362 * sysdeps/x86_64/fpu/multiarch/svml_d_exp4_core-sse.S: This.
32363 Don't include <sysdep.h> nor <init-arch.h>.
32364 (_ZGVdN4v_exp): Removed.
32365 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core.S: Renamed to
32366 ...
32367 * sysdeps/x86_64/fpu/multiarch/svml_d_exp8_core-avx2.S: This.
32368 Don't include <sysdep.h> nor <init-arch.h>.
32369 (_ZGVeN8v_exp): Removed.
32370 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core.S: Renamed to
32371 ...
32372 * sysdeps/x86_64/fpu/multiarch/svml_d_log2_core-sse2.S: This.
32373 Don't include <sysdep.h> nor <init-arch.h>.
32374 (_ZGVbN2v_log): Removed.
32375 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core.S: Renamed to
32376 ...
32377 * sysdeps/x86_64/fpu/multiarch/svml_d_log4_core-sse.S: This.
32378 Don't include <sysdep.h> nor <init-arch.h>.
32379 (_ZGVdN4v_log): Removed.
32380 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core.S: Renamed to
32381 ...
32382 * sysdeps/x86_64/fpu/multiarch/svml_d_log8_core-avx2.S: This.
32383 Don't include <sysdep.h> nor <init-arch.h>.
32384 (_ZGVeN8v_log): Removed.
32385 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core.S: Renamed to
32386 ...
32387 * sysdeps/x86_64/fpu/multiarch/svml_d_pow2_core-sse2.S: This.
32388 Don't include <sysdep.h> nor <init-arch.h>.
32389 (_ZGVbN2vv_pow): Removed.
32390 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core.S: Renamed to
32391 ...
32392 * sysdeps/x86_64/fpu/multiarch/svml_d_pow4_core-sse.S: This.
32393 Don't include <sysdep.h> nor <init-arch.h>.
32394 (_ZGVdN4vv_pow): Removed.
32395 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core.S: Renamed to
32396 ...
32397 * sysdeps/x86_64/fpu/multiarch/svml_d_pow8_core-avx2.S: This.
32398 Don't include <sysdep.h> nor <init-arch.h>.
32399 (_ZGVeN8vv_pow): Removed.
32400 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core.S: Renamed to
32401 ...
32402 * sysdeps/x86_64/fpu/multiarch/svml_d_sin2_core-sse2.S: This.
32403 Don't include <sysdep.h> nor <init-arch.h>.
32404 (_ZGVbN2v_sin): Removed.
32405 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core.S: Renamed to
32406 ...
32407 * sysdeps/x86_64/fpu/multiarch/svml_d_sin4_core-sse.S: This.
32408 Don't include <sysdep.h> nor <init-arch.h>.
32409 (_ZGVbN4v_sin): Removed.
32410 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core.S: Renamed to
32411 ...
32412 * sysdeps/x86_64/fpu/multiarch/svml_d_sin8_core-avx2.S: This.
32413 Don't include <sysdep.h> nor <init-arch.h>.
32414 (_ZGVbN8v_sin): Removed.
32415 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core.S: Renamed to
32416 ...
32417 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos2_core-sse2.S: This.
32418 Don't include <sysdep.h> nor <init-arch.h>.
32419 (_ZGVbN2vvv_sincos): Removed.
32420 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core.S: Renamed to
32421 ...
32422 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos4_core-sse.S: This.
32423 Don't include <sysdep.h> nor <init-arch.h>.
32424 (_ZGVdN4vvv_sincos): Removed.
32425 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core.S: Renamed to
32426 ...
32427 * sysdeps/x86_64/fpu/multiarch/svml_d_sincos8_core-avx2.S: This.
32428 Don't include <sysdep.h> nor <init-arch.h>.
32429 (_ZGVeN8vvv_sincos): Removed.
32430 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core.S: Renamed to
32431 ...
32432 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf16_core-avx2.S: This.
32433 Don't include <sysdep.h> nor <init-arch.h>.
32434 (_ZGVeN16v_cosf): Removed.
32435 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core.S: Renamed to
32436 ...
32437 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf4_core-sse2.S: This.
32438 Don't include <sysdep.h> nor <init-arch.h>.
32439 (_ZGVbN4v_cosf): Removed.
32440 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core.S: Renamed to
32441 ...
32442 * sysdeps/x86_64/fpu/multiarch/svml_d_cosf8_core-sse.S: This.
32443 Don't include <sysdep.h> nor <init-arch.h>.
32444 (_ZGVdN8v_cosf): Removed.
32445 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core.S: Renamed to
32446 ...
32447 * sysdeps/x86_64/fpu/multiarch/svml_d_expf16_core-avx2.S: This.
32448 Don't include <sysdep.h> nor <init-arch.h>.
32449 (_ZGVeN16v_expf): Removed.
32450 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core.S: Renamed to
32451 ...
32452 * sysdeps/x86_64/fpu/multiarch/svml_d_expf4_core-sse2.S: This.
32453 Don't include <sysdep.h> nor <init-arch.h>.
32454 (_ZGVbN4v_expf): Removed.
32455 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core.S: Renamed to
32456 ...
32457 * sysdeps/x86_64/fpu/multiarch/svml_d_expf8_core-sse.S: This.
32458 Don't include <sysdep.h> nor <init-arch.h>.
32459 (_ZGVdN8v_expf): Removed.
32460 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core.S: Renamed to
32461 ...
32462 * sysdeps/x86_64/fpu/multiarch/svml_d_logf16_core-avx2.S: This.
32463 Don't include <sysdep.h> nor <init-arch.h>.
32464 (_ZGVeN16v_logf): Removed.
32465 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core.S: Renamed to
32466 ...
32467 * sysdeps/x86_64/fpu/multiarch/svml_d_logf4_core-sse2.S: This.
32468 Don't include <sysdep.h> nor <init-arch.h>.
32469 (_ZGVbN4v_logf): Removed.
32470 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core.S: Renamed to
32471 ...
32472 * sysdeps/x86_64/fpu/multiarch/svml_d_logf8_core-sse.S: This.
32473 Don't include <sysdep.h> nor <init-arch.h>.
32474 (_ZGVdN8v_logf): Removed.
32475 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core.S: Renamed to
32476 ...
32477 * sysdeps/x86_64/fpu/multiarch/svml_d_powf16_core-avx2.S: This.
32478 Don't include <sysdep.h> nor <init-arch.h>.
32479 (_ZGVeN16vv_powf): Removed.
32480 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core.S: Renamed to
32481 ...
32482 * sysdeps/x86_64/fpu/multiarch/svml_d_powf4_core-sse2.S: This.
32483 Don't include <sysdep.h> nor <init-arch.h>.
32484 (_ZGVbN4vv_powf): Removed.
32485 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core.S: Renamed to
32486 ...
32487 * sysdeps/x86_64/fpu/multiarch/svml_d_powf8_core-sse.S: This.
32488 Don't include <sysdep.h> nor <init-arch.h>.
32489 (_ZGVdN8vv_powf): Removed.
32490 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core.S: Renamed to
32491 ...
32492 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf16_core-avx2.S: This.
32493 Don't include <sysdep.h> nor <init-arch.h>.
32494 (_ZGVeN16vvv_sincosf): Removed.
32495 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core.S: Renamed to
32496 ...
32497 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf4_core-sse2.S: This.
32498 Don't include <sysdep.h> nor <init-arch.h>.
32499 (_ZGVbN4vvv_sincosf): Removed.
32500 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core.S: Renamed to
32501 ...
32502 * sysdeps/x86_64/fpu/multiarch/svml_d_sincosf8_core-sse.S: This.
32503 Don't include <sysdep.h> nor <init-arch.h>.
32504 (_ZGVdN8vvv_sincosf): Removed.
32505 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core.S: Renamed to
32506 ...
32507 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf16_core-avx2.S: This.
32508 Don't include <sysdep.h> nor <init-arch.h>.
32509 (_ZGVeN16v_sinf): Removed.
32510 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core.S: Renamed to
32511 ...
32512 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf4_core-sse2.S: This.
32513 Don't include <sysdep.h> nor <init-arch.h>.
32514 (_ZGVbN4v_sinf): Removed.
32515 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core.S: Renamed to
32516 ...
32517 * sysdeps/x86_64/fpu/multiarch/svml_d_sinf8_core-sse.S: This.
32518 Don't include <sysdep.h> nor <init-arch.h>.
32519 (_ZGVdN8v_sinf): Removed.
32520
32521 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32522
32523 * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
32524 Add s_ceil-sse4_1, s_ceilf-sse4_1, s_floor-sse4_1,
32525 s_floorf-sse4_1, s_nearbyint-sse4_1, s_nearbyintf-sse4_1,
32526 s_rint-sse4_1 and s_rintf-sse4_1.
32527 * sysdeps/x86_64/fpu/multiarch/ifunc-sse4_1.h: New file.
32528 * sysdeps/x86_64/fpu/multiarch/s_ceil.c: Likewise.
32529 * sysdeps/x86_64/fpu/multiarch/s_ceilf.c: Likewise.
32530 * sysdeps/x86_64/fpu/multiarch/s_floor.c: Likewise.
32531 * sysdeps/x86_64/fpu/multiarch/s_floorf.c: Likewise.
32532 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.c: Likewise.
32533 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.c: Likewise.
32534 * sysdeps/x86_64/fpu/multiarch/s_rint.c: Likewise.
32535 * sysdeps/x86_64/fpu/multiarch/s_rintf.c: Likewise.
32536 * sysdeps/x86_64/fpu/multiarch/s_ceil.S: Renamed to ...
32537 * sysdeps/x86_64/fpu/multiarch/s_ceil-sse4_1.S: This. Don't
32538 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32539 (__ceil): Removed.
32540 * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: Renamed to ...
32541 * sysdeps/x86_64/fpu/multiarch/s_ceilf-sse4_1.S: This. Don't
32542 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32543 (__ceilf): Removed.
32544 * sysdeps/x86_64/fpu/multiarch/s_floor.S: Renamed to ...
32545 * sysdeps/x86_64/fpu/multiarch/s_floor-sse4_1.S: This. Don't
32546 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32547 (__floor): Removed.
32548 * sysdeps/x86_64/fpu/multiarch/s_floorf.S: Renamed to ...
32549 * sysdeps/x86_64/fpu/multiarch/s_floorf-sse4_1.S: This. Don't
32550 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32551 (__floorf): Removed.
32552 * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: Renamed to ...
32553 * sysdeps/x86_64/fpu/multiarch/s_nearbyint-sse4_1.S: This. Don't
32554 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32555 (__nearbyint): Removed.
32556 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: Renamed to ...
32557 * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-sse4_1.S: This. Don't
32558 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32559 (__nearbyintf): Removed.
32560 * sysdeps/x86_64/fpu/multiarch/s_rint.S: Renamed to ...
32561 * sysdeps/x86_64/fpu/multiarch/s_rint-sse4_1.S: This. Don't
32562 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32563 (__rint): Removed.
32564 * sysdeps/x86_64/fpu/multiarch/s_rintf.S: Renamed to ...
32565 * sysdeps/x86_64/fpu/multiarch/s_rintf-sse4_1.S: This. Don't
32566 include <machine/asm.h> nor <init-arch.h>. Include <sysdep.h>.
32567 (__rintf): Removed.
32568
32569 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32570
32571 * sysdeps/i386/start.S (_start): Check Check PIC instead of
32572 SHARED. Avoid dynamic relocation against main in static PIE.
32573
32574 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32575
32576 [BZ #21815]
32577 * elf/Makefile (CFLAGS-tst-prelink.c): New.
32578 (LDFLAGS-tst-prelink): Likewise.
32579
32580 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32581
32582 * sysdeps/unix/sysv/linux/i386/sysdep.h (I386_USE_SYSENTER):
32583 Define to I386_USE_SYSENTER to 0 or 1 if not defined.
32584 (ENTER_KERNEL): Check if I386_USE_SYSENTER is 1 and check PIC.
32585 (INTERNAL_SYSCALL_MAIN_INLINE): Likewise.
32586 (INTERNAL_SYSCALL_NCS): Likewise.
32587 (LOADARGS_1): Likewise.
32588 (LOADARGS_5): Likewise.
32589 (RESTOREARGS_1): Likewise.
32590 (RESTOREARGS_5): Likewise.
32591
32592 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32593
32594 * sysdeps/x86_64/memmove.S (MEMCPY_SYMBOL): Don't check SHARED.
32595 (MEMPCPY_SYMBOL): Likewise.
32596 * sysdeps/x86_64/multiarch/ifunc-impl-list.c
32597 (__libc_ifunc_impl_list): Test memcpy and mempcpy in libc.a.
32598 * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Also include
32599 in libc.a.
32600 * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32601 * sysdeps/x86_64/multiarch/memmove-avx512-no-vzeroupper.S:
32602 Likewise.
32603 * sysdeps/x86_64/multiarch/memcpy.c: Also include in libc.a.
32604 (__hidden_ver1): Don't use in libc.a.
32605 * sysdeps/x86_64/multiarch/memmove-sse2-unaligned-erms.S
32606 (__mempcpy): Don't create a weak alias in libc.a.
32607 * sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: Support
32608 libc.a.
32609 * sysdeps/x86_64/multiarch/mempcpy.c: Also include in libc.a.
32610 (__hidden_ver1): Don't use in libc.a.
32611
32612 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32613
32614 * config.make.in (have-insert): New.
32615 * configure.ac (libc_cv_insert): New. Set to yes if linker
32616 supports INSERT in linker script.
32617 (AC_SUBST(libc_cv_insert): New.
32618 * configure: Regenerated.
32619 * sysdeps/x86_64/Makefile (tests): Add tst-split-dynreloc only
32620 if $(have-insert) == yes.
32621
32622 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32623
32624 * elf/Makefile (tests): Add vismain only if
32625 $(have-protected-data) == yes.
32626 (tests-pie): Likewise.
32627
32628 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32629
32630 [BZ #21871]
32631 * sysdeps/x86/cpu-features.c (init_cpu_features): Set
32632 bit_arch_Use_dl_runtime_resolve_opt only with AVX512F.
32633
32634 2017-08-04 H.J. Lu <hongjiu.lu@intel.com>
32635
32636 [BZ #21790]
32637 * sysdeps/i386/i586/memset.S
32638 (__memset_zero_constant_len_parameter): Removed.
32639 * sysdeps/i386/i686/memset.S
32640 (__memset_zero_constant_len_parameter): Likewise.
32641 * sysdeps/i386/i686/multiarch/memset_chk.S
32642 (__memset_zero_constant_len_parameter): Likewise.
32643 * sysdeps/x86_64/memset.S (__memset_zero_constant_len_parameter):
32644 Likewise.
32645
32646 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32647
32648 * stdlib/getentropy.c (getentropy): Change return type to int.
32649
32650 2017-08-03 Aurelien Jarno <aurelien@aurel32.net>
32651
32652 * sysdeps/i386/i686/fpu/multiarch/libm-test-ulps: Regenerated.
32653
32654 2017-08-03 Joseph Myers <joseph@codesourcery.com>
32655
32656 * math/s_nextafter.c (__nextafter): Use uintN_t instead of
32657 u_intN_t.
32658 * math/s_nexttowardf.c (__nexttowardf): Likewise.
32659 * sysdeps/generic/math_private.h (ieee_double_shape_type):
32660 Likewise.
32661 (ieee_float_shape_type): Likewise.
32662 * sysdeps/i386/fpu/s_fpclassifyl.c (__fpclassifyl): Likewise.
32663 * sysdeps/i386/fpu/s_isnanl.c (__isnanl): Likewise.
32664 * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
32665 * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
32666 * sysdeps/i386/fpu/s_nexttowardf.c (__nexttowardf): Likewise.
32667 * sysdeps/ieee754/dbl-64/e_acosh.c (__ieee754_acosh): Likewise.
32668 * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Likewise.
32669 * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
32670 * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r):
32671 Likewise.
32672 * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
32673 * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn): Likewise.
32674 (__ieee754_yn): Likewise.
32675 * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
32676 * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
32677 * sysdeps/ieee754/dbl-64/e_rem_pio2.c (__ieee754_rem_pio2):
32678 Likewise.
32679 * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
32680 * sysdeps/ieee754/dbl-64/s_ceil.c (__ceil): Likewise.
32681 * sysdeps/ieee754/dbl-64/s_copysign.c (__copysign): Likewise.
32682 * sysdeps/ieee754/dbl-64/s_erf.c (__erf): Likewise.
32683 (__erfc): Likewise.
32684 * sysdeps/ieee754/dbl-64/s_expm1.c (__expm1): Likewise.
32685 * sysdeps/ieee754/dbl-64/s_finite.c (FINITE): Likewise.
32686 * sysdeps/ieee754/dbl-64/s_floor.c (__floor): Likewise.
32687 * sysdeps/ieee754/dbl-64/s_fpclassify.c (__fpclassify): Likewise.
32688 * sysdeps/ieee754/dbl-64/s_isnan.c (__isnan): Likewise.
32689 * sysdeps/ieee754/dbl-64/s_issignaling.c (__issignaling):
32690 Likewise.
32691 * sysdeps/ieee754/dbl-64/s_llrint.c (__llrint): Likewise.
32692 * sysdeps/ieee754/dbl-64/s_llround.c (__llround): Likewise.
32693 * sysdeps/ieee754/dbl-64/s_lrint.c (__lrint): Likewise.
32694 * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Likewise.
32695 * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
32696 * sysdeps/ieee754/dbl-64/s_nextup.c (__nextup): Likewise.
32697 * sysdeps/ieee754/dbl-64/s_remquo.c (__remquo): Likewise.
32698 * sysdeps/ieee754/dbl-64/s_round.c (__round): Likewise.
32699 * sysdeps/ieee754/dbl-64/s_trunc.c (__trunc): Likewise.
32700 * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c
32701 (__issignaling): Likewise.
32702 * sysdeps/ieee754/flt-32/e_atan2f.c (__ieee754_atan2f): Likewise.
32703 * sysdeps/ieee754/flt-32/e_fmodf.c (__ieee754_fmodf): Likewise.
32704 * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r):
32705 Likewise.
32706 * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
32707 * sysdeps/ieee754/flt-32/e_log10f.c (__ieee754_log10f): Likewise.
32708 * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Likewise.
32709 * sysdeps/ieee754/flt-32/e_rem_pio2f.c (__ieee754_rem_pio2f):
32710 Likewise.
32711 * sysdeps/ieee754/flt-32/e_remainderf.c (__ieee754_remainderf):
32712 Likewise.
32713 * sysdeps/ieee754/flt-32/e_sqrtf.c (__ieee754_sqrtf): Likewise.
32714 * sysdeps/ieee754/flt-32/s_ceilf.c (__ceilf): Likewise.
32715 * sysdeps/ieee754/flt-32/s_copysignf.c (__copysignf): Likewise.
32716 * sysdeps/ieee754/flt-32/s_erff.c (__erff): Likewise.
32717 (__erfcf): Likewise.
32718 * sysdeps/ieee754/flt-32/s_expm1f.c (__expm1f): Likewise.
32719 * sysdeps/ieee754/flt-32/s_finitef.c (FINITEF): Likewise.
32720 * sysdeps/ieee754/flt-32/s_floorf.c (__floorf): Likewise.
32721 * sysdeps/ieee754/flt-32/s_fpclassifyf.c (__fpclassifyf):
32722 Likewise.
32723 * sysdeps/ieee754/flt-32/s_isnanf.c (__isnanf): Likewise.
32724 * sysdeps/ieee754/flt-32/s_issignalingf.c (__issignalingf):
32725 Likewise.
32726 * sysdeps/ieee754/flt-32/s_llrintf.c (__llrintf): Likewise.
32727 * sysdeps/ieee754/flt-32/s_llroundf.c (__llroundf): Likewise.
32728 * sysdeps/ieee754/flt-32/s_lrintf.c (__lrintf): Likewise.
32729 * sysdeps/ieee754/flt-32/s_lroundf.c (__lroundf): Likewise.
32730 * sysdeps/ieee754/flt-32/s_modff.c (__modff): Likewise.
32731 * sysdeps/ieee754/flt-32/s_remquof.c (__remquof): Likewise.
32732 * sysdeps/ieee754/flt-32/s_roundf.c (__roundf): Likewise.
32733 * sysdeps/ieee754/ldbl-128/e_acoshl.c (__ieee754_acoshl):
32734 Likewise.
32735 * sysdeps/ieee754/ldbl-128/e_atan2l.c (__ieee754_atan2l):
32736 Likewise.
32737 * sysdeps/ieee754/ldbl-128/e_atanhl.c (__ieee754_atanhl):
32738 Likewise.
32739 * sysdeps/ieee754/ldbl-128/e_fmodl.c (__ieee754_fmodl): Likewise.
32740 * sysdeps/ieee754/ldbl-128/e_gammal_r.c (__ieee754_gammal_r):
32741 Likewise.
32742 * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
32743 Likewise.
32744 * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_jnl): Likewise.
32745 (__ieee754_ynl): Likewise.
32746 * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Likewise.
32747 * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (__ieee754_rem_pio2l):
32748 Likewise.
32749 * sysdeps/ieee754/ldbl-128/e_remainderl.c (__ieee754_remainderl):
32750 Likewise.
32751 * sysdeps/ieee754/ldbl-128/e_sinhl.c (__ieee754_sinhl): Likewise.
32752 * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Likewise.
32753 * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
32754 Likewise.
32755 * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Likewise.
32756 * sysdeps/ieee754/ldbl-128/s_ceill.c (__ceill): Likewise.
32757 * sysdeps/ieee754/ldbl-128/s_copysignl.c (__copysignl): Likewise.
32758 * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfcl): Likewise.
32759 * sysdeps/ieee754/ldbl-128/s_fabsl.c (__fabsl): Likewise.
32760 * sysdeps/ieee754/ldbl-128/s_finitel.c (__finitel): Likewise.
32761 * sysdeps/ieee754/ldbl-128/s_floorl.c (__floorl): Likewise.
32762 * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c (__fpclassifyl):
32763 Likewise.
32764 * sysdeps/ieee754/ldbl-128/s_frexpl.c (__frexpl): Likewise.
32765 * sysdeps/ieee754/ldbl-128/s_isnanl.c (__isnanl): Likewise.
32766 * sysdeps/ieee754/ldbl-128/s_issignalingl.c (__issignalingl):
32767 Likewise.
32768 * sysdeps/ieee754/ldbl-128/s_llrintl.c (__llrintl): Likewise.
32769 * sysdeps/ieee754/ldbl-128/s_llroundl.c (__llroundl): Likewise.
32770 * sysdeps/ieee754/ldbl-128/s_lrintl.c (__lrintl): Likewise.
32771 * sysdeps/ieee754/ldbl-128/s_lroundl.c (__lroundl): Likewise.
32772 * sysdeps/ieee754/ldbl-128/s_modfl.c (__modfl): Likewise.
32773 * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
32774 Likewise.
32775 * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
32776 Likewise.
32777 * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
32778 Likewise.
32779 * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
32780 Likewise.
32781 * sysdeps/ieee754/ldbl-128/s_nextupl.c (__nextupl): Likewise.
32782 * sysdeps/ieee754/ldbl-128/s_remquol.c (__remquol): Likewise.
32783 * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
32784 * sysdeps/ieee754/ldbl-128/s_roundl.c (__roundl): Likewise.
32785 * sysdeps/ieee754/ldbl-128/s_tanhl.c (__tanhl): Likewise.
32786 * sysdeps/ieee754/ldbl-128/s_truncl.c (__truncl): Likewise.
32787 * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl):
32788 Likewise.
32789 * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
32790 Likewise.
32791 * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
32792 * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
32793 Likewise.
32794 * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c
32795 (__ieee754_remainderl): Likewise.
32796 * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
32797 * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
32798 * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
32799 * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
32800 Likewise.
32801 * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
32802 * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
32803 Likewise.
32804 * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
32805 * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Likewise.
32806 * sysdeps/ieee754/ldbl-96/e_asinl.c (__ieee754_asinl): Likewise.
32807 * sysdeps/ieee754/ldbl-96/e_atanhl.c (__ieee754_atanhl): Likewise.
32808 * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
32809 * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
32810 Likewise.
32811 * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Likewise.
32812 * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Likewise.
32813 (__ieee754_y0l): Likewise.
32814 (pzero): Likewise.
32815 (qzero): Likewise.
32816 * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
32817 (__ieee754_y1l): Likewise.
32818 (pone): Likewise.
32819 (qone): Likewise.
32820 * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl): Likewise.
32821 (__ieee754_ynl): Likewise.
32822 * sysdeps/ieee754/ldbl-96/e_lgammal_r.c (sin_pi): Likewise.
32823 (__ieee754_lgammal_r): Likewise.
32824 * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c (__ieee754_rem_pio2l):
32825 Likewise.
32826 * sysdeps/ieee754/ldbl-96/e_sinhl.c (__ieee754_sinhl): Likewise.
32827 * sysdeps/ieee754/ldbl-96/s_copysignl.c (__copysignl): Likewise.
32828 * sysdeps/ieee754/ldbl-96/s_erfl.c (__erfl): Likewise.
32829 (__erfcl): Likewise.
32830 * sysdeps/ieee754/ldbl-96/s_frexpl.c (__frexpl): Likewise.
32831 * sysdeps/ieee754/ldbl-96/s_issignalingl.c (__issignalingl):
32832 Likewise.
32833 * sysdeps/ieee754/ldbl-96/s_llrintl.c (__llrintl): Likewise.
32834 * sysdeps/ieee754/ldbl-96/s_llroundl.c (__llroundl): Likewise.
32835 * sysdeps/ieee754/ldbl-96/s_lrintl.c (__lrintl): Likewise.
32836 * sysdeps/ieee754/ldbl-96/s_lroundl.c (__lroundl): Likewise.
32837 * sysdeps/ieee754/ldbl-96/s_modfl.c (__modfl): Likewise.
32838 * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
32839 * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
32840 Likewise.
32841 * sysdeps/ieee754/ldbl-96/s_nextupl.c (__nextupl): Likewise.
32842 * sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Likewise.
32843 * sysdeps/ieee754/ldbl-96/s_roundl.c (__roundl): Likewise.
32844 * sysdeps/ieee754/ldbl-96/s_tanhl.c (__tanhl): Likewise.
32845 * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
32846 Likewise.
32847 * sysdeps/m68k/m680x0/fpu/e_pow.c (s(__ieee754_pow)): Likewise.
32848 * sysdeps/m68k/m680x0/fpu/s_fpclassifyl.c (__fpclassifyl):
32849 Likewise.
32850 * sysdeps/m68k/m680x0/fpu/s_llrint.c (__llrint): Likewise.
32851 * sysdeps/m68k/m680x0/fpu/s_llrintf.c (__llrintf): Likewise.
32852 * sysdeps/m68k/m680x0/fpu/s_llrintl.c (__llrintl): Likewise.
32853 * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
32854 * sysdeps/x86/fpu/powl_helper.c (__powl_helper): Likewise.
32855
32856 2017-08-03 Florian Weimer <fweimer@redhat.com>
32857
32858 [BZ #21885]
32859 * sysdeps/posix/getaddrinfo.c (gethosts): Release resolver context
32860 on memory allocation failure.
32861
32862 2017-08-03 Alan Modra <amodra@gmail.com>
32863
32864 * sysdeps/powerpc/mod-tlsopt-powerpc.c: Extract from
32865 tst-tlsopt-powerpc.c with function name change and no test harness.
32866 * sysdeps/powerpc/tst-tlsopt-powerpc.c: Remove body of test.
32867 Call tls_get_addr_opt_test.
32868 * sysdeps/powerpc/Makefile (LDFLAGS-tst-tlsopt-powerpc): Don't define.
32869 (modules-names): Add mod-tlsopt-powerpc.
32870 (mod-tlsopt-powerpc.so-no-z-defs): Define.
32871 (tst-tlsopt-powerpc): Depend on .so.
32872 * sysdeps/powerpc/powerpc64/tls-macros.h (__TLS_GET_ADDR): Don't
32873 define. Expand use in TLS_GD and TLS_LD.
32874
32875 2017-08-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32876
32877 * sysdeps/mach/hurd/enbl-secure.c (__libc_init_secure): Define
32878 function.
32879 * sysdeps/posix/shm_open.c: Include <pthread.h>.
32880
32881 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32882
32883 [BZ #21686]
32884 * math/tgmath.h (__TGMATH_BINARY_REAL_ONLY): Add arguments before
32885 comparing size with that of double.
32886 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32887 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32888 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32889 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32890 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32891 * math/gen-tgmath-tests.py (Type.init_types): Create __int128 and
32892 unsigned __int128 types.
32893
32894 2017-08-02 Steve Ellcey <sellcey@cavium.com>
32895
32896 * localedata/Makefile (CFLAGS-tst_iswalnum.c, CFLAGS-tst_iswalpha.c
32897 CFLAGS-tst_iswcntrl.c, CFLAGS-tst_iswdigit.c, CFLAGS-tst_iswgraph.c,
32898 CFLAGS-tst_iswlower.c, CFLAGS-tst_iswprint.c, CFLAGS-tst_iswpunct.c,
32899 CFLAGS-tst_iswspace.c, CFLAGS-tst_iswupper.c, CFLAGS-tst_iswxdigit.c,
32900 CFLAGS-tst_towlower.c, CFLAGS-tst_towupper.c): Remove.
32901
32902 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32903
32904 * sysdeps/x86_64/start.S (_start): Check PIC instead of SHARED.
32905
32906 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32907
32908 * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Check PIC instead
32909 of SHARED.
32910 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S: Likewise.
32911 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
32912 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32913 * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
32914 * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
32915 * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
32916 * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
32917
32918 2017-08-02 Joseph Myers <joseph@codesourcery.com>
32919
32920 [BZ #21685]
32921 * math/tgmath.h (__tgmath_real_type): Use unary + on potentially
32922 bit-field expressions passed to sizeof or typeof.
32923 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32924 (__TGMATH_F128): Likewise.
32925 [__HAVE_FLOAT128 && __GLIBC_USE (IEC_60559_TYPES_EXT)]
32926 (__TGMATH_CF128): Likewise.
32927 (__TGMATH_UNARY_REAL_ONLY): Likewise.
32928 (__TGMATH_UNARY_REAL_RET_ONLY): Likewise.
32929 (__TGMATH_BINARY_FIRST_REAL_ONLY): Likewise.
32930 (__TGMATH_BINARY_FIRST_REAL_STD_ONLY): Likewise.
32931 (__TGMATH_BINARY_REAL_ONLY): Likewise.
32932 (__TGMATH_BINARY_REAL_STD_ONLY): Likewise.
32933 (__TGMATH_BINARY_REAL_RET_ONLY): Likewise.
32934 (__TGMATH_TERNARY_FIRST_SECOND_REAL_ONLY): Likewise.
32935 (__TGMATH_TERNARY_REAL_ONLY): Likewise.
32936 (__TGMATH_TERNARY_FIRST_REAL_RET_ONLY): Likewise.
32937 (__TGMATH_UNARY_REAL_IMAG): Likewise.
32938 (__TGMATH_UNARY_IMAG): Likewise.
32939 (__TGMATH_UNARY_REAL_IMAG_RET_REAL): Likewise.
32940 (__TGMATH_BINARY_REAL_IMAG): Likewise.
32941 * math/gen-tgmath-tests.py (Type.init_types): Create bit_field
32942 type.
32943 (define_vars_for_type): Handle bit_field type specially.
32944 (Tests.__init__): Declare structure with bit-field element.
32945
32946 2017-08-02 H.J. Lu <hongjiu.lu@intel.com>
32947
32948 [BZ #21791]
32949 * sysdeps/i386/i686/multiarch/memcpy-sse2-unaligned.S
32950 (MEMCPY_CHK): Define only if SHARED is defined.
32951 * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S (MEMCPY_CHK):
32952 Likewise.
32953 * sysdeps/i386/i686/multiarch/memcpy-ssse3.S (MEMCPY_CHK):
32954 Likewise.
32955
32956 See ChangeLog.18 for earlier changes.